* [Intel-xe] [PATCH] drm/xe: Add Wa_14015150844 for DG2 and Xe_LPG
@ 2023-07-27 22:09 Matt Roper
2023-08-02 17:40 ` Matt Atwood
0 siblings, 1 reply; 2+ messages in thread
From: Matt Roper @ 2023-07-27 22:09 UTC (permalink / raw)
To: intel-xe; +Cc: matthew.d.roper
The workaround database tells us to set this bit, even though the bspec
indicates the bit doesn't exist on these platforms. Since this is a
write-only register, we also can't read back its value to verify whether
it's actually working or not. For now we'll trust that the workaround
database knows what it's talking about; if not, the hardware will just
ignore the attempt to write to a non-existent bit and it shouldn't cause
any problems.
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
---
drivers/gpu/drm/xe/regs/xe_gt_regs.h | 1 +
drivers/gpu/drm/xe/xe_wa.c | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/xe/regs/xe_gt_regs.h b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
index d654f3311351..c93d8f8cd93a 100644
--- a/drivers/gpu/drm/xe/regs/xe_gt_regs.h
+++ b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
@@ -328,6 +328,7 @@
#define XEHP_HDC_CHICKEN0 XE_REG_MCR(0xe5f0, XE_REG_OPTION_MASKED)
#define LSC_L1_FLUSH_CTL_3D_DATAPORT_FLUSH_EVENTS_MASK REG_GENMASK(13, 11)
+#define DIS_ATOMIC_CHAINING_TYPED_WRITES REG_BIT(3)
#define RT_CTRL XE_REG_MCR(0xe530)
#define DIS_NULL_QUERY REG_BIT(10)
diff --git a/drivers/gpu/drm/xe/xe_wa.c b/drivers/gpu/drm/xe/xe_wa.c
index 21087f7a4609..497a8c05c715 100644
--- a/drivers/gpu/drm/xe/xe_wa.c
+++ b/drivers/gpu/drm/xe/xe_wa.c
@@ -498,6 +498,11 @@ static const struct xe_rtp_entry_sr engine_was[] = {
*/
.read_mask = 0))
},
+ { XE_RTP_NAME("14015150844"),
+ XE_RTP_RULES(PLATFORM(DG2), FUNC(xe_rtp_match_first_render_or_compute)),
+ XE_RTP_ACTIONS(SET(XEHP_HDC_CHICKEN0, DIS_ATOMIC_CHAINING_TYPED_WRITES,
+ XE_RTP_NOCHECK))
+ },
/* PVC */
@@ -525,6 +530,12 @@ static const struct xe_rtp_entry_sr engine_was[] = {
FUNC(xe_rtp_match_first_render_or_compute)),
XE_RTP_ACTIONS(SET(ROW_CHICKEN3, DIS_FIX_EOT1_FLUSH))
},
+ { XE_RTP_NAME("14015150844"),
+ XE_RTP_RULES(GRAPHICS_VERSION_RANGE(1270, 1271),
+ FUNC(xe_rtp_match_first_render_or_compute)),
+ XE_RTP_ACTIONS(SET(XEHP_HDC_CHICKEN0, DIS_ATOMIC_CHAINING_TYPED_WRITES,
+ XE_RTP_NOCHECK))
+ },
{}
};
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Intel-xe] [PATCH] drm/xe: Add Wa_14015150844 for DG2 and Xe_LPG
2023-07-27 22:09 [Intel-xe] [PATCH] drm/xe: Add Wa_14015150844 for DG2 and Xe_LPG Matt Roper
@ 2023-08-02 17:40 ` Matt Atwood
0 siblings, 0 replies; 2+ messages in thread
From: Matt Atwood @ 2023-08-02 17:40 UTC (permalink / raw)
To: Matt Roper, intel-xe; +Cc: intel-xe
On Thu, Jul 27, 2023 at 03:09:21PM -0700, Matt Roper wrote:
> The workaround database tells us to set this bit, even though the bspec
> indicates the bit doesn't exist on these platforms. Since this is a
> write-only register, we also can't read back its value to verify whether
> it's actually working or not. For now we'll trust that the workaround
> database knows what it's talking about; if not, the hardware will just
> ignore the attempt to write to a non-existent bit and it shouldn't cause
> any problems.
Bspec: 54040
>
Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com>
> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
> ---
> drivers/gpu/drm/xe/regs/xe_gt_regs.h | 1 +
> drivers/gpu/drm/xe/xe_wa.c | 11 +++++++++++
> 2 files changed, 12 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/regs/xe_gt_regs.h b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> index d654f3311351..c93d8f8cd93a 100644
> --- a/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> +++ b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> @@ -328,6 +328,7 @@
>
> #define XEHP_HDC_CHICKEN0 XE_REG_MCR(0xe5f0, XE_REG_OPTION_MASKED)
> #define LSC_L1_FLUSH_CTL_3D_DATAPORT_FLUSH_EVENTS_MASK REG_GENMASK(13, 11)
> +#define DIS_ATOMIC_CHAINING_TYPED_WRITES REG_BIT(3)
>
> #define RT_CTRL XE_REG_MCR(0xe530)
> #define DIS_NULL_QUERY REG_BIT(10)
> diff --git a/drivers/gpu/drm/xe/xe_wa.c b/drivers/gpu/drm/xe/xe_wa.c
> index 21087f7a4609..497a8c05c715 100644
> --- a/drivers/gpu/drm/xe/xe_wa.c
> +++ b/drivers/gpu/drm/xe/xe_wa.c
> @@ -498,6 +498,11 @@ static const struct xe_rtp_entry_sr engine_was[] = {
> */
> .read_mask = 0))
> },
> + { XE_RTP_NAME("14015150844"),
> + XE_RTP_RULES(PLATFORM(DG2), FUNC(xe_rtp_match_first_render_or_compute)),
> + XE_RTP_ACTIONS(SET(XEHP_HDC_CHICKEN0, DIS_ATOMIC_CHAINING_TYPED_WRITES,
> + XE_RTP_NOCHECK))
> + },
>
> /* PVC */
>
> @@ -525,6 +530,12 @@ static const struct xe_rtp_entry_sr engine_was[] = {
> FUNC(xe_rtp_match_first_render_or_compute)),
> XE_RTP_ACTIONS(SET(ROW_CHICKEN3, DIS_FIX_EOT1_FLUSH))
> },
> + { XE_RTP_NAME("14015150844"),
> + XE_RTP_RULES(GRAPHICS_VERSION_RANGE(1270, 1271),
> + FUNC(xe_rtp_match_first_render_or_compute)),
> + XE_RTP_ACTIONS(SET(XEHP_HDC_CHICKEN0, DIS_ATOMIC_CHAINING_TYPED_WRITES,
> + XE_RTP_NOCHECK))
> + },
>
> {}
> };
> --
> 2.41.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-02 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-27 22:09 [Intel-xe] [PATCH] drm/xe: Add Wa_14015150844 for DG2 and Xe_LPG Matt Roper
2023-08-02 17:40 ` Matt Atwood
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.