[PATCH] drm/i915/guc: Add synchronization on interrupt enable flag

Andi Shyti andi.shyti at kernel.org
Wed Aug 20 10:17:39 UTC 2025


Hi Zhanjun,

On Tue, Aug 19, 2025 at 12:00:10PM -0400, Zhanjun Dong wrote:
> Boolean flag access from interrupt context might have synchronous issue on

/synchronous/synchronization/
/issue/issues/

> multiple processor platform, flage modified by one core might be read as an

/flage/flags/

> old value by another core. This issue on interrupt enable flag might causes
> interrupt missing or leakage.

/missing/misses/

> Fixed by change the data type as automic to add memory synchronization.

This can be re-written: "Change the interrupts.enable type to
atomic to ensure memory synchronization."

> 
> Fixes: a187f13d51fa0 ("drm/i915/guc: handle interrupts from media GuC")

What issue are you exactly trying to fix? And have you tested
that this patch is this really fixing it? Where is the flag's
misalignment happening?

Please remember that when in interrupt context you are already
running in atomic, so that probably you don't need to have an
additional atomic access to variables.

Andi

> Signed-off-by: Zhanjun Dong <zhanjun.dong at intel.com>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>


More information about the Intel-gfx mailing list