11 Commits

Author SHA1 Message Date
Ben Widawsky
88ad6d7be8 intel_l3_parity: Make compilation possible without udev
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-23 13:46:06 -07:00
Ben Widawsky
799aeb6d00 intel_l3_parity: Support a daemonic mode
v2: Add a comment explaining the dangers of directly accessing the DFT
register (Daniel)

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20 09:42:07 -07:00
Ben Widawsky
bfa7a5906d intel_l3_parity: Support error injection
Haswell added the ability to inject errors which is extremely useful for
testing. Add two arguments to the tool to inject, and uninject.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20 09:42:07 -07:00
Ben Widawsky
5f95ea780b intel_l3_parity: Actually support multiple slices
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20 09:42:07 -07:00
Ben Widawsky
8ddcfd6882 intel_l3_parity: slice support
Haswell GT3 adds a new slice which is kept distinct from the old
register interface. Plumb it into the code, though it's only 1 slice
still.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20 09:42:07 -07:00
Ben Widawsky
48d1b362c5 intel_l3_parity: Hardware info argument
Add a new command line argument to the tool which will spit out various
parameters for the giving hardware. As a result of this, some new
defines are added to help with the various info.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20 09:42:07 -07:00
Ben Widawsky
a9cd76b36e intel_l3_parity: Use getopt for the l3 parity tool
Add new command line arguments in addition to supporting the old
features. This patch only introduces one feature, the -e argument to
enable a specific row/bank/subbank. Previously you could only enable
all. Otherwise, it has what you expect (we prefer -r -b -s for
specifying the row/bank/subbank).

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20 09:42:07 -07:00
Ben Widawsky
e740bdf5bd intel_l3_parity: Assert all GEN7+ support
v2: Don't assert for Valleyview (Bryan)
Rework code to be a bit more readable.

CC: "Bell, Bryan J" <bryan.j.bell@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20 09:42:07 -07:00
Ben Widawsky
318c0b22d7 intel_l3_parity: Fix indentation
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20 09:42:07 -07:00
Daniel Vetter
5951ffb6a0 lib/drmtest: rip out drm_open_any_master
It's unused. Also most of our tests failed to ask for the right type
of drm fd anyway. So it's imo better to just let them fall over when
they don't get master but want it, like they already do today.

This also allows us to garbage-collect the master parameter to
drm_get_card and associated code.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-19 10:34:34 +02:00
Ben Widawsky
8f7ea34751 tools/dpf: Tool to read and write l3 remap registers.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-05-31 15:20:12 +02:00