[PATCH] drm/xe/pcode: Initialize data0 for pcode read routine
Raag Jadav
raag.jadav at intel.com
Sun Aug 10 09:26:00 UTC 2025
On Fri, Aug 08, 2025 at 03:36:56PM +0000, stuartsummers wrote:
> There are two registered filled in when reading data from
> pcode besides the mailbox itself. Currently we allow a NULL
> value for the second of these two (data1) and assume the first
> is defined. However many of the routines that are calling
> this function assume that pcode will ignore the value being
> passed in and so leave that first value (data0) defined but
> uninitialized. To be safe, make sure this value is always
> initialized to something (0 generally) in the event pcode
> behavior changes and starts using this value.
I'm not particularly against it but let's say if/when this happens,
can you guarantee the expected value to be 0?
Raag
More information about the Intel-xe
mailing list