[Intel-xe] [PATCH] drm/xe: Apply mask to RING IMR

Lucas De Marchi lucas.demarchi at intel.com
Mon Dec 4 18:40:31 UTC 2023


On Mon, Dec 04, 2023 at 05:15:25PM +0530, Tejas Upadhyay wrote:
>As per bspec RING interrupt mask register will have
>lower 16 bit masked by upper 16 bit.
>
>Bspec 60352

am I reading the wrong spec? 60352 doesn't say this register has masked
access, i.e. in order to write any of the 0-15 bits we also need to set
the upper bits.

Compare that to e.g. 60279 where we do have a masked register
BCS_SWCTRL.

In this register it seems the upper bits are just another field to be
set rather than considering this a masked register.


Lucas De Marchi


>
>Signed-off-by: Tejas Upadhyay <tejas.upadhyay at intel.com>
>---
> drivers/gpu/drm/xe/regs/xe_engine_regs.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/xe/regs/xe_engine_regs.h b/drivers/gpu/drm/xe/regs/xe_engine_regs.h
>index 444ff9b83bb1..d9013c698710 100644
>--- a/drivers/gpu/drm/xe/regs/xe_engine_regs.h
>+++ b/drivers/gpu/drm/xe/regs/xe_engine_regs.h
>@@ -39,7 +39,7 @@
> #define RING_MI_MODE(base)			XE_REG((base) + 0x9c)
> #define RING_NOPID(base)			XE_REG((base) + 0x94)
>
>-#define RING_IMR(base)				XE_REG((base) + 0xa8)
>+#define RING_IMR(base)				XE_REG((base) + 0xa8, XE_REG_OPTION_MASKED)
> #define   RING_MAX_NONPRIV_SLOTS  12
>
> #define RING_EIR(base)				XE_REG((base) + 0xb0)
>-- 
>2.25.1
>


More information about the Intel-xe mailing list