[igt-dev] [PATCH i-g-t 1/8] lib/psr: Increase the buffer lenght that stores the output of i915_edp_psr_status
José Roberto de Souza
jose.souza at intel.com
Tue Dec 4 23:09:37 UTC 2018
Sometimes 512 bytes is not enoght to store the whole
i915_edp_psr_status potentially causing fail in tests that depends
in the content that is out of this 512 bytes.
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
---
lib/igt_psr.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index 0ddfb64f..c7bc523c 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -25,10 +25,12 @@
#include "igt_sysfs.h"
#include <errno.h>
+#define PSR_STATUS_MAX_LEN 1024
+
static bool psr_active(int debugfs_fd, bool check_active)
{
bool active;
- char buf[512];
+ char buf[PSR_STATUS_MAX_LEN];
igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf,
sizeof(buf));
--
2.19.2
More information about the igt-dev
mailing list