public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs
@ 2018-07-06 16:39 Ville Syrjala
  2018-07-06 16:43 ` Chris Wilson
  2018-07-06 16:45 ` Antonio Argenziano
  0 siblings, 2 replies; 7+ messages in thread
From: Ville Syrjala @ 2018-07-06 16:39 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

I missed these when sprinkling the memsets. Using stack garbage as the
aux surface state isn't a good idea. Causes kms_front_buffer_tracking
to fail on skl+.

Fixes: a4393c3951ec ("lib: Add aux surface state to igt_buf")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 lib/igt_draw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_draw.c b/lib/igt_draw.c
index ebae915113da..c7d5770dca28 100644
--- a/lib/igt_draw.c
+++ b/lib/igt_draw.c
@@ -568,7 +568,7 @@ static void draw_rect_render(int fd, struct cmd_data *cmd_data,
 	drm_intel_bo *src, *dst;
 	uint32_t devid = intel_get_drm_devid(fd);
 	igt_render_copyfunc_t rendercopy = igt_get_render_copyfunc(devid);
-	struct igt_buf src_buf, dst_buf;
+	struct igt_buf src_buf = {}, dst_buf = {};
 	struct intel_batchbuffer *batch;
 	uint32_t tiling, swizzle;
 	struct buf_data tmp;
-- 
2.16.4

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* Re: [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs
  2018-07-06 16:39 Ville Syrjala
@ 2018-07-06 16:43 ` Chris Wilson
  2018-07-06 16:45 ` Antonio Argenziano
  1 sibling, 0 replies; 7+ messages in thread
From: Chris Wilson @ 2018-07-06 16:43 UTC (permalink / raw)
  To: Ville Syrjala, igt-dev

Quoting Ville Syrjala (2018-07-06 17:39:40)
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> I missed these when sprinkling the memsets. Using stack garbage as the
> aux surface state isn't a good idea. Causes kms_front_buffer_tracking
> to fail on skl+.
> 
> Fixes: a4393c3951ec ("lib: Add aux surface state to igt_buf")
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

And I'm still being lazy and only reviewing the patch in front of me...
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* Re: [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs
  2018-07-06 16:39 Ville Syrjala
  2018-07-06 16:43 ` Chris Wilson
@ 2018-07-06 16:45 ` Antonio Argenziano
  1 sibling, 0 replies; 7+ messages in thread
From: Antonio Argenziano @ 2018-07-06 16:45 UTC (permalink / raw)
  To: Ville Syrjala, igt-dev



On 06/07/18 09:39, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> I missed these when sprinkling the memsets. Using stack garbage as the
> aux surface state isn't a good idea. Causes kms_front_buffer_tracking
> to fail on skl+.
> 
> Fixes: a4393c3951ec ("lib: Add aux surface state to igt_buf")
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>

> ---
>   lib/igt_draw.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/igt_draw.c b/lib/igt_draw.c
> index ebae915113da..c7d5770dca28 100644
> --- a/lib/igt_draw.c
> +++ b/lib/igt_draw.c
> @@ -568,7 +568,7 @@ static void draw_rect_render(int fd, struct cmd_data *cmd_data,
>   	drm_intel_bo *src, *dst;
>   	uint32_t devid = intel_get_drm_devid(fd);
>   	igt_render_copyfunc_t rendercopy = igt_get_render_copyfunc(devid);
> -	struct igt_buf src_buf, dst_buf;
> +	struct igt_buf src_buf = {}, dst_buf = {};
>   	struct intel_batchbuffer *batch;
>   	uint32_t tiling, swizzle;
>   	struct buf_data tmp;
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs
@ 2019-06-24 15:14 Ville Syrjala
  2019-06-24 15:27 ` Ville Syrjälä
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ville Syrjala @ 2019-06-24 15:14 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

I missed these when sprinkling the memsets. Using stack garbage as the
aux surface state isn't a good idea. Causes kms_front_buffer_tracking
to fail on skl+.

Fixes: a4393c3951ec ("lib: Add aux surface state to igt_buf")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 lib/igt_draw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_draw.c b/lib/igt_draw.c
index ebae915113da..c7d5770dca28 100644
--- a/lib/igt_draw.c
+++ b/lib/igt_draw.c
@@ -568,7 +568,7 @@ static void draw_rect_render(int fd, struct cmd_data *cmd_data,
 	drm_intel_bo *src, *dst;
 	uint32_t devid = intel_get_drm_devid(fd);
 	igt_render_copyfunc_t rendercopy = igt_get_render_copyfunc(devid);
-	struct igt_buf src_buf, dst_buf;
+	struct igt_buf src_buf = {}, dst_buf = {};
 	struct intel_batchbuffer *batch;
 	uint32_t tiling, swizzle;
 	struct buf_data tmp;
-- 
2.16.4

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* Re: [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs
  2019-06-24 15:14 [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs Ville Syrjala
@ 2019-06-24 15:27 ` Ville Syrjälä
  2019-06-24 16:34 ` [igt-dev] ✗ Fi.CI.BAT: failure for lib/igt_draw: Zero initalize the igt_bufs (rev2) Patchwork
  2019-06-25  7:17 ` [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs Ser, Simon
  2 siblings, 0 replies; 7+ messages in thread
From: Ville Syrjälä @ 2019-06-24 15:27 UTC (permalink / raw)
  To: igt-dev

On Mon, Jun 24, 2019 at 06:14:18PM +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> I missed these when sprinkling the memsets. Using stack garbage as the
> aux surface state isn't a good idea. Causes kms_front_buffer_tracking
> to fail on skl+.
> 
> Fixes: a4393c3951ec ("lib: Add aux surface state to igt_buf")
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

bash history fail. Please ignore.

> ---
>  lib/igt_draw.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/igt_draw.c b/lib/igt_draw.c
> index ebae915113da..c7d5770dca28 100644
> --- a/lib/igt_draw.c
> +++ b/lib/igt_draw.c
> @@ -568,7 +568,7 @@ static void draw_rect_render(int fd, struct cmd_data *cmd_data,
>  	drm_intel_bo *src, *dst;
>  	uint32_t devid = intel_get_drm_devid(fd);
>  	igt_render_copyfunc_t rendercopy = igt_get_render_copyfunc(devid);
> -	struct igt_buf src_buf, dst_buf;
> +	struct igt_buf src_buf = {}, dst_buf = {};
>  	struct intel_batchbuffer *batch;
>  	uint32_t tiling, swizzle;
>  	struct buf_data tmp;
> -- 
> 2.16.4

-- 
Ville Syrjälä
Intel
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* [igt-dev] ✗ Fi.CI.BAT: failure for lib/igt_draw: Zero initalize the igt_bufs (rev2)
  2019-06-24 15:14 [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs Ville Syrjala
  2019-06-24 15:27 ` Ville Syrjälä
@ 2019-06-24 16:34 ` Patchwork
  2019-06-25  7:17 ` [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs Ser, Simon
  2 siblings, 0 replies; 7+ messages in thread
From: Patchwork @ 2019-06-24 16:34 UTC (permalink / raw)
  To: Ville Syrjälä; +Cc: igt-dev

== Series Details ==

Series: lib/igt_draw: Zero initalize the igt_bufs (rev2)
URL   : https://patchwork.freedesktop.org/series/46083/
State : failure

== Summary ==

Series 46083 revision 2 was fully merged or fully failed: no git log

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* Re: [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs
  2019-06-24 15:14 [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs Ville Syrjala
  2019-06-24 15:27 ` Ville Syrjälä
  2019-06-24 16:34 ` [igt-dev] ✗ Fi.CI.BAT: failure for lib/igt_draw: Zero initalize the igt_bufs (rev2) Patchwork
@ 2019-06-25  7:17 ` Ser, Simon
  2 siblings, 0 replies; 7+ messages in thread
From: Ser, Simon @ 2019-06-25  7:17 UTC (permalink / raw)
  To: ville.syrjala@linux.intel.com, igt-dev@lists.freedesktop.org

On Mon, 2019-06-24 at 18:14 +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> I missed these when sprinkling the memsets. Using stack garbage as the
> aux surface state isn't a good idea. Causes kms_front_buffer_tracking
> to fail on skl+.
> 
> Fixes: a4393c3951ec ("lib: Add aux surface state to igt_buf")
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Simon Ser <simon.ser@intel.com>

> ---
>  lib/igt_draw.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/igt_draw.c b/lib/igt_draw.c
> index ebae915113da..c7d5770dca28 100644
> --- a/lib/igt_draw.c
> +++ b/lib/igt_draw.c
> @@ -568,7 +568,7 @@ static void draw_rect_render(int fd, struct cmd_data *cmd_data,
>  	drm_intel_bo *src, *dst;
>  	uint32_t devid = intel_get_drm_devid(fd);
>  	igt_render_copyfunc_t rendercopy = igt_get_render_copyfunc(devid);
> -	struct igt_buf src_buf, dst_buf;
> +	struct igt_buf src_buf = {}, dst_buf = {};
>  	struct intel_batchbuffer *batch;
>  	uint32_t tiling, swizzle;
>  	struct buf_data tmp;
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2019-06-25  7:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-24 15:14 [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs Ville Syrjala
2019-06-24 15:27 ` Ville Syrjälä
2019-06-24 16:34 ` [igt-dev] ✗ Fi.CI.BAT: failure for lib/igt_draw: Zero initalize the igt_bufs (rev2) Patchwork
2019-06-25  7:17 ` [igt-dev] [PATCH i-g-t] lib/igt_draw: Zero initalize the igt_bufs Ser, Simon
  -- strict thread matches above, loose matches on Subject: below --
2018-07-06 16:39 Ville Syrjala
2018-07-06 16:43 ` Chris Wilson
2018-07-06 16:45 ` Antonio Argenziano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox