All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] intel_l3_parity: Restore support for Ivybridge
@ 2019-07-11 14:10 ` Chris Wilson
  0 siblings, 0 replies; 8+ messages in thread
From: Chris Wilson @ 2019-07-11 14:10 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

With the fancy second slice of Haswell, we lost support for Ivybridge
with its paltry single slice.

Fixes: 8ddcfd6882a9 ("intel_l3_parity: slice support")
Testcase: igt/tools_test/sysfs_l3_parity
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tools/intel_l3_parity.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tools/intel_l3_parity.c b/tools/intel_l3_parity.c
index d8c997af9..dc3d08048 100644
--- a/tools/intel_l3_parity.c
+++ b/tools/intel_l3_parity.c
@@ -195,6 +195,9 @@ int main(int argc, char *argv[])
 
 	for_each_slice(i) {
 		fd[i] = openat(dir, path[i], O_RDWR);
+		if (fd[i] < 0)
+			continue;
+
 		if (read(fd[i], l3logs[i], NUM_REGS * sizeof(uint32_t)) < 0) {
 			perror(path[i]);
 			exit(77);
@@ -333,6 +336,9 @@ int main(int argc, char *argv[])
 
 	/* Per slice operations */
 	for_each_slice(i) {
+		if (fd[i] < 0)
+			continue;
+
 		switch (action) {
 			case 'l':
 				dumpit(i);
@@ -374,6 +380,9 @@ int main(int argc, char *argv[])
 		exit(EXIT_SUCCESS);
 
 	for_each_slice(i) {
+		if (fd[i] < 0)
+			continue;
+
 		ret = write(fd[i], l3logs[i], NUM_REGS * sizeof(uint32_t));
 		if (ret == -1) {
 			perror("Writing sysfs");
-- 
2.22.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-07-12 17:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-11 14:10 [PATCH i-g-t] intel_l3_parity: Restore support for Ivybridge Chris Wilson
2019-07-11 14:10 ` [Intel-gfx] " Chris Wilson
2019-07-11 14:27 ` Ville Syrjälä
2019-07-11 14:27   ` [igt-dev] [Intel-gfx] " Ville Syrjälä
2019-07-11 14:33   ` Ville Syrjälä
2019-07-11 14:33     ` [Intel-gfx] " Ville Syrjälä
2019-07-11 17:45 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-07-12 17:10 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.