drm/i915/mtl: Disable MC6 for MTL A step
Subsystems (2)
cover drm/i915/mtl: Disable MC6 for MTL A step
Disabling MC6 for A step as it is not feasible to extend Wa_14017073508 in forcewake path to cover all corner cases. Reverting the commit 8f70f1ec587da.
Badal Nilawar (2):
Revert "drm/i915/mtl: Add Wa_14017073508 for SAMedia" drm/i915/mtl: Disable MC6 for MTL A step
drivers/gpu/drm/i915/gt/intel_gt_pm.c | 27 ----------------------- drivers/gpu/drm/i915/gt/intel_rc6.c | 8 +++++++ drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c | 13 +---------- drivers/gpu/drm/i915/i915_reg.h | 9 -------- 4 files changed, 9 insertions(+), 48 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/2 Revert "drm/i915/mtl: Add Wa_14017073508 for SAMedia"
This reverts commit 8f70f1ec587da0b0d52d768fd8c3defbc5e5b55c.
--- drivers/gpu/drm/i915/gt/intel_gt_pm.c | 27 ----------------------- drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c | 13 +---------- drivers/gpu/drm/i915/i915_reg.h | 9 -------- 3 files changed, 1 insertion(+), 48 deletions(-)
drivers/gpu/drm/i915/gt/intel_gt_pm.c +0 -27
@@ -20,31 +20,10 @@#include "intel_rc6.h" #include "intel_rps.h" #include "intel_wakeref.h" -#include "intel_pcode.h" #include "pxp/intel_pxp_pm.h" #define I915_GT_SUSPEND_IDLE_TIMEOUT (HZ / 2) -static void mtl_media_busy (struct intel_gt *gt) -{ -/* Wa_14017073508: mtl */ -if (IS_MTL_GRAPHICS_STEP (gt->i915,P ,STEP_A0 ,STEP_B0 ) && - gt->type ==GT_MEDIA ) -snb_pcode_write_p (gt->uncore,PCODE_MBOX_GT_STATE , -PCODE_MBOX_GT_STATE_MEDIA_BUSY , -PCODE_MBOX_GT_STATE_DOMAIN_MEDIA ,0 ); -} - -static void mtl_media_idle (struct intel_gt *gt) -{ -/* Wa_14017073508: mtl */ -if (IS_MTL_GRAPHICS_STEP (gt->i915,P ,STEP_A0 ,STEP_B0 ) && - gt->type ==GT_MEDIA ) -snb_pcode_write_p (gt->uncore,PCODE_MBOX_GT_STATE , -PCODE_MBOX_GT_STATE_MEDIA_NOT_BUSY , -PCODE_MBOX_GT_STATE_DOMAIN_MEDIA ,0 ); -} -static void user_forcewake (struct intel_gt *gt,bool suspend) {int count =atomic_read (>->user_wakeref);
@@ -92,9 +71,6 @@ static int __gt_unpark(struct intel_wakeref *wf)GT_TRACE (gt,"\n" ); -/* Wa_14017073508: mtl */ -mtl_media_busy (gt); -/* * It seems that the DMC likes to transition between the DC states a lot * when there are no connected displays (no active power domains) during
@@ -144,9 +120,6 @@ static int __gt_park(struct intel_wakeref *wf)GEM_BUG_ON (!wakeref);intel_display_power_put_async (i915,POWER_DOMAIN_GT_IRQ , wakeref); -/* Wa_14017073508: mtl */ -mtl_media_idle (gt); -return 0 ; }
drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c +1 -12
@@ -12,20 +12,9 @@static bool __guc_rc_supported (struct intel_guc *guc) { -struct intel_gt *gt =guc_to_gt (guc); - -/* -* Wa_14017073508: mtl -* Do not enable gucrc to avoid additional interrupts which -* may disrupt pcode wa. -*/ -if (IS_MTL_GRAPHICS_STEP (gt->i915,P ,STEP_A0 ,STEP_B0 ) && - gt->type ==GT_MEDIA ) -return false; -/* GuC RC is unavailable for pre-Gen12 */ return guc->submission_supported && -GRAPHICS_VER (gt->i915) >=12 ; +GRAPHICS_VER (guc_to_gt (guc)->i915) >=12 ; }static bool __guc_rc_selected (struct intel_guc *guc)
drivers/gpu/drm/i915/i915_reg.h +0 -9
@@ -6469,15 +6469,6 @@/* XEHP_PCODE_FREQUENCY_CONFIG param2 */ #define PCODE_MBOX_DOMAIN_NONE 0x0#define PCODE_MBOX_DOMAIN_MEDIAFF 0x3 - -/* Wa_14017210380: mtl */ -#define PCODE_MBOX_GT_STATE 0x50 -/* sub-commands (param1) */ -#define PCODE_MBOX_GT_STATE_MEDIA_BUSY 0x1 -#define PCODE_MBOX_GT_STATE_MEDIA_NOT_BUSY 0x2 -/* param2 */ -#define PCODE_MBOX_GT_STATE_DOMAIN_MEDIA 0x1 -#define GEN6_PCODE_DATA _MMIO(0x138128)#define GEN6_PCODE_FREQ_IA_RATIO_SHIFT 8#define GEN6_PCODE_FREQ_RING_RATIO_SHIFT 16
Signature · 1 line
2.25.1
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 1/2] Revert "drm/i915/mtl: Add Wa_14017073508 for SAMedia"
Quoted 1 line · Badal Nilawar
This reverts commit
8f70f1ec587da0b0d52d768fd8c3defbc5e5b55c.
Reverts need a commit message too. The why. The cover letter is not recorded in git history.
BR,
Jani.
Quoted 109 lines
Signed-off-by Badal Nilawar <[email protected]>--- drivers/gpu/drm/i915/gt/intel_gt_pm.c | 27 ----------------------- drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c | 13 +---------- drivers/gpu/drm/i915/i915_reg.h | 9 -------- 3 files changed, 1 insertion(+), 48 deletions(-)drivers/gpu/drm/i915/gt/intel_gt_pm.c +0
-27@@ -20,31 +20,10 @@#include "intel_rc6.h" #include "intel_rps.h" #include "intel_wakeref.h" -#include "intel_pcode.h" #include "pxp/intel_pxp_pm.h" #define I915_GT_SUSPEND_IDLE_TIMEOUT (HZ / 2) -static void mtl_media_busy (struct intel_gt *gt) -{ -/* Wa_14017073508: mtl */ -if (IS_MTL_GRAPHICS_STEP (gt->i915,P ,STEP_A0 ,STEP_B0 ) && - gt->type ==GT_MEDIA ) -snb_pcode_write_p (gt->uncore,PCODE_MBOX_GT_STATE , -PCODE_MBOX_GT_STATE_MEDIA_BUSY , -PCODE_MBOX_GT_STATE_DOMAIN_MEDIA ,0 ); -} - -static void mtl_media_idle (struct intel_gt *gt) -{ -/* Wa_14017073508: mtl */ -if (IS_MTL_GRAPHICS_STEP (gt->i915,P ,STEP_A0 ,STEP_B0 ) && - gt->type ==GT_MEDIA ) -snb_pcode_write_p (gt->uncore,PCODE_MBOX_GT_STATE , -PCODE_MBOX_GT_STATE_MEDIA_NOT_BUSY , -PCODE_MBOX_GT_STATE_DOMAIN_MEDIA ,0 ); -} -static void user_forcewake (struct intel_gt *gt,bool suspend) {int count =atomic_read (>->user_wakeref);@@ -92,9 +71,6 @@ static int __gt_unpark(struct intel_wakeref *wf)GT_TRACE (gt,"\n" ); -/* Wa_14017073508: mtl */ -mtl_media_busy (gt); -/* * It seems that the DMC likes to transition between the DC states a lot * when there are no connected displays (no active power domains) during @@ -144,9 +120,6 @@ static int __gt_park(struct intel_wakeref *wf)GEM_BUG_ON (!wakeref);intel_display_power_put_async (i915,POWER_DOMAIN_GT_IRQ , wakeref); -/* Wa_14017073508: mtl */ -mtl_media_idle (gt); -return 0 ; }drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c +1
-12@@ -12,20 +12,9 @@static bool __guc_rc_supported (struct intel_guc *guc) { -struct intel_gt *gt =guc_to_gt (guc); - -/* -* Wa_14017073508: mtl -* Do not enable gucrc to avoid additional interrupts which -* may disrupt pcode wa. -*/ -if (IS_MTL_GRAPHICS_STEP (gt->i915,P ,STEP_A0 ,STEP_B0 ) && - gt->type ==GT_MEDIA ) -return false; -/* GuC RC is unavailable for pre-Gen12 */ return guc->submission_supported && -GRAPHICS_VER (gt->i915) >=12 ; +GRAPHICS_VER (guc_to_gt (guc)->i915) >=12 ; }static bool __guc_rc_selected (struct intel_guc *guc)drivers/gpu/drm/i915/i915_reg.h +0
-9@@ -6469,15 +6469,6 @@/* XEHP_PCODE_FREQUENCY_CONFIG param2 */ #define PCODE_MBOX_DOMAIN_NONE 0x0#define PCODE_MBOX_DOMAIN_MEDIAFF 0x3 - -/* Wa_14017210380: mtl */ -#define PCODE_MBOX_GT_STATE 0x50 -/* sub-commands (param1) */ -#define PCODE_MBOX_GT_STATE_MEDIA_BUSY 0x1 -#define PCODE_MBOX_GT_STATE_MEDIA_NOT_BUSY 0x2 -/* param2 */ -#define PCODE_MBOX_GT_STATE_DOMAIN_MEDIA 0x1 -#define GEN6_PCODE_DATA _MMIO(0x138128)#define GEN6_PCODE_FREQ_IA_RATIO_SHIFT 8#define GEN6_PCODE_FREQ_RING_RATIO_SHIFT 16
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [Intel-gfx] [PATCH 1/2] Revert "drm/i915/mtl: Add Wa_14017073508 for SAMedia"
Hi Jani,
Quoted 5 lines · Jani Nikula
Quoted 1 line · Badal Nilawar
This reverts commit
8f70f1ec587da0b0d52d768fd8c3defbc5e5b55c.Reverts need a commit message too. The why. The cover letter is not recorded in git history.
I will add commit message.
Regards,
Badal
Quoted 114 lines
BR,
Jani.Quoted 109 lines
Signed-off-by Badal Nilawar <[email protected]>--- drivers/gpu/drm/i915/gt/intel_gt_pm.c | 27 ----------------------- drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c | 13 +---------- drivers/gpu/drm/i915/i915_reg.h | 9 -------- 3 files changed, 1 insertion(+), 48 deletions(-)drivers/gpu/drm/i915/gt/intel_gt_pm.c +0
-27@@ -20,31 +20,10 @@#include "intel_rc6.h" #include "intel_rps.h" #include "intel_wakeref.h" -#include "intel_pcode.h" #include "pxp/intel_pxp_pm.h" #define I915_GT_SUSPEND_IDLE_TIMEOUT (HZ / 2) -static void mtl_media_busy (struct intel_gt *gt) -{ -/* Wa_14017073508: mtl */ -if (IS_MTL_GRAPHICS_STEP (gt->i915,P ,STEP_A0 ,STEP_B0 ) && - gt->type ==GT_MEDIA ) -snb_pcode_write_p (gt->uncore,PCODE_MBOX_GT_STATE , -PCODE_MBOX_GT_STATE_MEDIA_BUSY , -PCODE_MBOX_GT_STATE_DOMAIN_MEDIA ,0 ); -} - -static void mtl_media_idle (struct intel_gt *gt) -{ -/* Wa_14017073508: mtl */ -if (IS_MTL_GRAPHICS_STEP (gt->i915,P ,STEP_A0 ,STEP_B0 ) && - gt->type ==GT_MEDIA ) -snb_pcode_write_p (gt->uncore,PCODE_MBOX_GT_STATE , -PCODE_MBOX_GT_STATE_MEDIA_NOT_BUSY , -PCODE_MBOX_GT_STATE_DOMAIN_MEDIA ,0 ); -} -static void user_forcewake (struct intel_gt *gt,bool suspend) {int count =atomic_read (>->user_wakeref);@@ -92,9 +71,6 @@ static int __gt_unpark(struct intel_wakeref *wf)GT_TRACE (gt,"\n" ); -/* Wa_14017073508: mtl */ -mtl_media_busy (gt); -/* * It seems that the DMC likes to transition between the DC states a lot * when there are no connected displays (no active power domains) during @@ -144,9 +120,6 @@ static int __gt_park(struct intel_wakeref *wf)GEM_BUG_ON (!wakeref);intel_display_power_put_async (i915,POWER_DOMAIN_GT_IRQ , wakeref); -/* Wa_14017073508: mtl */ -mtl_media_idle (gt); -return 0 ; }drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c +1
-12@@ -12,20 +12,9 @@static bool __guc_rc_supported (struct intel_guc *guc) { -struct intel_gt *gt =guc_to_gt (guc); - -/* -* Wa_14017073508: mtl -* Do not enable gucrc to avoid additional interrupts which -* may disrupt pcode wa. -*/ -if (IS_MTL_GRAPHICS_STEP (gt->i915,P ,STEP_A0 ,STEP_B0 ) && - gt->type ==GT_MEDIA ) -return false; -/* GuC RC is unavailable for pre-Gen12 */ return guc->submission_supported && -GRAPHICS_VER (gt->i915) >=12 ; +GRAPHICS_VER (guc_to_gt (guc)->i915) >=12 ; }static bool __guc_rc_selected (struct intel_guc *guc)drivers/gpu/drm/i915/i915_reg.h +0
-9@@ -6469,15 +6469,6 @@/* XEHP_PCODE_FREQUENCY_CONFIG param2 */ #define PCODE_MBOX_DOMAIN_NONE 0x0#define PCODE_MBOX_DOMAIN_MEDIAFF 0x3 - -/* Wa_14017210380: mtl */ -#define PCODE_MBOX_GT_STATE 0x50 -/* sub-commands (param1) */ -#define PCODE_MBOX_GT_STATE_MEDIA_BUSY 0x1 -#define PCODE_MBOX_GT_STATE_MEDIA_NOT_BUSY 0x2 -/* param2 */ -#define PCODE_MBOX_GT_STATE_DOMAIN_MEDIA 0x1 -#define GEN6_PCODE_DATA _MMIO(0x138128)#define GEN6_PCODE_FREQ_IA_RATIO_SHIFT 8#define GEN6_PCODE_FREQ_RING_RATIO_SHIFT 16
Re: [Intel-gfx] [PATCH 1/2] Revert "drm/i915/mtl: Add Wa_14017073508 for SAMedia"
Quoted 10 lines · Badal
Hi Jani,
Quoted 5 lines · Jani Nikula
Quoted 1 line · Badal Nilawar
This reverts commit
8f70f1ec587da0b0d52d768fd8c3defbc5e5b55c.Reverts need a commit message too. The why. The cover letter is not recorded in git history.
I will add commit message.
Is it ok if I squash both the commits?
Quoted 108 lines
Regards,
BadalQuoted 106 lines
BR,
Jani.Quoted 101 lines
Signed-off-by Badal Nilawar <[email protected]>---
drivers/gpu/drm/i915/gt/intel_gt_pm.c | 27 -----------------------drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c| 13 +---------- drivers/gpu/drm/i915/i915_reg.h | 9 --------3 files changed, 1 insertion(+), 48 deletions(-)drivers/gpu/drm/i915/gt/intel_gt_pm.c +0
-27@@ -20,31 +20,10 @@ #include "intel_rc6.h" #include "intel_rps.h" #include "intel_wakeref.h" -#include "intel_pcode.h" #include "pxp/intel_pxp_pm.h" #define I915_GT_SUSPEND_IDLE_TIMEOUT (HZ / 2) -static void mtl_media_busy (struct intel_gt *gt) -{ - /* Wa_14017073508: mtl */ - if (IS_MTL_GRAPHICS_STEP(gt->i915, P, STEP_A0, STEP_B0) && - gt->type == GT_MEDIA) - snb_pcode_write_p(gt->uncore, PCODE_MBOX_GT_STATE, - PCODE_MBOX_GT_STATE_MEDIA_BUSY, - PCODE_MBOX_GT_STATE_DOMAIN_MEDIA, 0); -} - -static void mtl_media_idle (struct intel_gt *gt) -{ - /* Wa_14017073508: mtl */ - if (IS_MTL_GRAPHICS_STEP(gt->i915, P, STEP_A0, STEP_B0) && - gt->type == GT_MEDIA) - snb_pcode_write_p(gt->uncore, PCODE_MBOX_GT_STATE, - PCODE_MBOX_GT_STATE_MEDIA_NOT_BUSY, - PCODE_MBOX_GT_STATE_DOMAIN_MEDIA, 0); -} - static void user_forcewake(struct intel_gt *gt, bool suspend) { int count = atomic_read(>->user_wakeref);@@ -92,9 +71,6 @@ static int __gt_unpark(struct intel_wakeref *wf) GT_TRACE(gt, "\n"); - /* Wa_14017073508: mtl */ - mtl_media_busy(gt); - /** It seems that the DMC likes to transition between the DC states a lot * when there are no connected displays (no active power domains) during @@ -144,9 +120,6 @@ static int __gt_park(struct intel_wakeref *wf) GEM_BUG_ON(!wakeref); intel_display_power_put_async(i915, POWER_DOMAIN_GT_IRQ, wakeref); - /* Wa_14017073508: mtl */ - mtl_media_idle(gt); - return 0; }drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c +0
-11@@ -12,20 +12,9 @@ static bool __guc_rc_supported(struct intel_guc *guc) { - struct intel_gt *gt = guc_to_gt(guc); - - /* - * Wa_14017073508: mtl - * Do not enable gucrc to avoid additional interrupts which - * may disrupt pcode wa. - */ - if (IS_MTL_GRAPHICS_STEP(gt->i915, P, STEP_A0, STEP_B0) && - gt->type == GT_MEDIA) - return false; - /* GuC RC is unavailable for pre-Gen12 */return
guc->submission_supported&&
-GRAPHICS_VER(gt->i915)>= 12;
+ GRAPHICS_VER(guc_to_gt(guc)->i915) >= 12; }
static bool__guc_rc_selected(struct intel_guc *guc)drivers/gpu/drm/i915/i915_reg.h +0
-9@@ -6469,15 +6469,6 @@ /* XEHP_PCODE_FREQUENCY_CONFIG param2 */ #define PCODE_MBOX_DOMAIN_NONE 0x0 #define PCODE_MBOX_DOMAIN_MEDIAFF 0x3 - -/* Wa_14017210380: mtl */ -#define PCODE_MBOX_GT_STATE 0x50 -/* sub-commands (param1) */ -#define PCODE_MBOX_GT_STATE_MEDIA_BUSY 0x1 -#define PCODE_MBOX_GT_STATE_MEDIA_NOT_BUSY 0x2 -/* param2 */ -#define PCODE_MBOX_GT_STATE_DOMAIN_MEDIA 0x1 - #define GEN6_PCODE_DATA _MMIO(0x138128) #define GEN6_PCODE_FREQ_IA_RATIO_SHIFT 8 #define GEN6_PCODE_FREQ_RING_RATIO_SHIFT 16
Rodrigo Vivi
maintainerRe: [Intel-gfx] [PATCH 1/2] Revert "drm/i915/mtl: Add Wa_14017073508 for SAMedia"
Quoted 7 lines · Badal
Quoted 4 lines · Badal
Hi Jani,
Quoted 1 line · Jani Nikula
On Wed, 08 Mar 2023, Badal Nilawar <[email protected]> wrote:
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
This reverts commit
8f70f1ec587da0b0d52d768fd8c3defbc5e5b55c.Reverts need a commit message too. The why. The cover letter is not recorded in git history.
I will add commit message.
Is it ok if I squash both the commits?
yes, it is. just don't mark as revert and make sure to add the original one as a Fixes tag. Easier to backport actually.
Quoted 114 lines
Quoted 114 lines
Regards,
BadalQuoted 111 lines
BR,
Jani.Quoted 106 lines
Signed-off-by Badal Nilawar <[email protected]>---
drivers/gpu/drm/i915/gt/intel_gt_pm.c | 27 -----------------------drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c| 13 +---------- drivers/gpu/drm/i915/i915_reg.h | 9 --------3 files changed, 1 insertion(+), 48 deletions(-)drivers/gpu/drm/i915/gt/intel_gt_pm.c +0
-24@@ -20,31 +20,10 @@ #include "intel_rc6.h" #include "intel_rps.h" #include "intel_wakeref.h" -#include "intel_pcode.h" #include "pxp/intel_pxp_pm.h" #define I915_GT_SUSPEND_IDLE_TIMEOUT (HZ / 2) -static void mtl_media_busy (struct intel_gt *gt) -{ - /* Wa_14017073508: mtl */ - if (IS_MTL_GRAPHICS_STEP(gt->i915, P, STEP_A0, STEP_B0) && - gt->type == GT_MEDIA) - snb_pcode_write_p(gt->uncore, PCODE_MBOX_GT_STATE, - PCODE_MBOX_GT_STATE_MEDIA_BUSY, - PCODE_MBOX_GT_STATE_DOMAIN_MEDIA, 0); -} - -static void mtl_media_idle (struct intel_gt *gt) -{ - /* Wa_14017073508: mtl */ - if (IS_MTL_GRAPHICS_STEP(gt->i915, P, STEP_A0, STEP_B0) && - gt->type == GT_MEDIA) - snb_pcode_write_p(gt->uncore, PCODE_MBOX_GT_STATE, - PCODE_MBOX_GT_STATE_MEDIA_NOT_BUSY, - PCODE_MBOX_GT_STATE_DOMAIN_MEDIA, 0); -} - static void user_forcewake(struct intel_gt *gt, bool suspend) { int count = atomic_read(>->user_wakeref);@@ -92,9 +71,6 @@ static int __gt_unpark(struct intel_wakeref *wf) GT_TRACE(gt, "\n"); - /* Wa_14017073508: mtl */ - mtl_media_busy(gt); - /** It seems that the DMC likes to transition between the DC states a lot
* when there are no connected displays (no active power domains) duringdrivers/gpu/drm/i915/gt/intel_gt_pm.c +0
-3@@ -144,9 +120,6 @@ static int __gt_park(struct intel_wakeref *wf) GEM_BUG_ON(!wakeref); intel_display_power_put_async(i915, POWER_DOMAIN_GT_IRQ, wakeref); - /* Wa_14017073508: mtl */ - mtl_media_idle(gt); - return 0; }drivers/gpu/drm/i915/gt/uc/intel_guc_rc.c +0
-11@@ -12,20 +12,9 @@ static bool __guc_rc_supported(struct intel_guc *guc) { - struct intel_gt *gt = guc_to_gt(guc); - - /* - * Wa_14017073508: mtl - * Do not enable gucrc to avoid additional interrupts which - * may disrupt pcode wa. - */ - if (IS_MTL_GRAPHICS_STEP(gt->i915, P, STEP_A0, STEP_B0) && - gt->type == GT_MEDIA) - return false; - /* GuC RC is unavailable for pre-Gen12 */return
guc->submission_supported&&
-GRAPHICS_VER(gt->i915)>= 12;
+ GRAPHICS_VER(guc_to_gt(guc)->i915) >= 12; }
static bool__guc_rc_selected(struct intel_guc *guc)drivers/gpu/drm/i915/i915_reg.h +0
-9@@ -6469,15 +6469,6 @@ /* XEHP_PCODE_FREQUENCY_CONFIG param2 */ #define PCODE_MBOX_DOMAIN_NONE 0x0 #define PCODE_MBOX_DOMAIN_MEDIAFF 0x3 - -/* Wa_14017210380: mtl */ -#define PCODE_MBOX_GT_STATE 0x50 -/* sub-commands (param1) */ -#define PCODE_MBOX_GT_STATE_MEDIA_BUSY 0x1 -#define PCODE_MBOX_GT_STATE_MEDIA_NOT_BUSY 0x2 -/* param2 */ -#define PCODE_MBOX_GT_STATE_DOMAIN_MEDIA 0x1 - #define GEN6_PCODE_DATA _MMIO(0x138128) #define GEN6_PCODE_FREQ_IA_RATIO_SHIFT 8 #define GEN6_PCODE_FREQ_RING_RATIO_SHIFT 16
PATCH 2/2 drm/i915/mtl: Disable MC6 for MTL A step
In reply to Badal NilawarThe Wa_14017073508 require to send Media Busy/Idle mailbox while accessing Media tile. As of now it is getting handled while __gt_unpark, __gt_park. But there are various corner cases where forcewakes are taken without __gt_unpark i.e. without sending Busy Mailbox especially during register reads. Forcewakes are taken without busy mailbox leads to GPU HANG. So bringing mailbox calls under forcewake calls are no feasible option as forcewake calls are atomic and mailbox calls are blocking. The issue already fixed in B step so disabling MC6 on A step and reverting previous commits which handles Wa_14017073508
--- drivers/gpu/drm/i915/gt/intel_rc6.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/gpu/drm/i915/gt/intel_rc6.c +8 -0
@@ -486,6 +486,7 @@ static bool bxt_check_bios_rc6_setup(struct intel_rc6 *rc6)static bool rc6_supported (struct intel_rc6 *rc6) {struct drm_i915_private *i915 =rc6_to_i915 (rc6); +struct intel_gt *gt =rc6_to_gt (rc6);if (!HAS_RC6 (i915))return false;
@@ -502,6 +503,13 @@ static bool rc6_supported(struct intel_rc6 *rc6)return false; } +if (IS_MTL_MEDIA_STEP (gt->i915,STEP_A0 ,STEP_B0 ) && + gt->type ==GT_MEDIA ) { +drm_notice (&i915->drm, +"Media RC6 disabled on A step\n" ); +return false; + } +return true; }
Signature · 1 line
2.25.1
Quoted 10 lines · Badal Nilawar
The
Wa_14017073508require to send Media Busy/Idle mailbox while accessing Media tile. As of now it is getting handled while__gt_unpark,__gt_park. But there are various corner cases where forcewakes are taken without__gt_unparki.e. without sending Busy Mailbox especially during register reads. Forcewakes are taken without busy mailbox leads to GPU HANG. So bringing mailbox calls under forcewake calls are no feasible option as forcewake calls are atomic and mailbox calls are blocking. The issue already fixed in B step so disabling MC6 on A step and reverting previous commits which handlesWa_14017073508
Quoted 3 lines
Fixes 8f70f1ec587d ("drm/i915/mtl: Add Wa_14017073508 for SAMedia")Cc Rodrigo Vivi <[email protected]>Signed-off-by Badal Nilawar <[email protected]>
This patch should probably come before the revert itself.
Quoted 33 lines
--- drivers/gpu/drm/i915/gt/intel_rc6.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/gpu/drm/i915/gt/intel_rc6.c +8
-0@@ -486,6 +486,7 @@ static bool bxt_check_bios_rc6_setup(struct intel_rc6 *rc6)static bool rc6_supported (struct intel_rc6 *rc6) {struct drm_i915_private *i915 =rc6_to_i915 (rc6); +struct intel_gt *gt =rc6_to_gt (rc6);if (!HAS_RC6 (i915))return false;@@ -502,6 +503,13 @@ static bool rc6_supported(struct intel_rc6 *rc6)return false; } +if (IS_MTL_MEDIA_STEP (gt->i915,STEP_A0 ,STEP_B0 ) && + gt->type ==GT_MEDIA ) { +drm_notice (&i915->drm, +"Media RC6 disabled on A step\n" ); +return false; + } +return true; }Signature · 1 line
2.25.1
Hi Rodrigo,
Quoted 11 lines · Rodrigo Vivi
Quoted 10 lines · Badal Nilawar
The
Wa_14017073508require to send Media Busy/Idle mailbox while accessing Media tile. As of now it is getting handled while__gt_unpark,__gt_park. But there are various corner cases where forcewakes are taken without__gt_unparki.e. without sending Busy Mailbox especially during register reads. Forcewakes are taken without busy mailbox leads to GPU HANG. So bringing mailbox calls under forcewake calls are no feasible option as forcewake calls are atomic and mailbox calls are blocking. The issue already fixed in B step so disabling MC6 on A step and reverting previous commits which handlesWa_14017073508
Quoted 7 lines
Quoted 3 lines
Fixes 8f70f1ec587d ("drm/i915/mtl: Add Wa_14017073508 for SAMedia")Cc Rodrigo Vivi <[email protected]>Signed-off-by Badal Nilawar <[email protected]>This patch should probably come before the revert itself.
Reviewed-by Rodrigo Vivi <[email protected]>
Thanks for RB. I will put this patch before revert.
Regards,
Badal Nilawar
Quoted 34 lines
Quoted 34 lines
--- drivers/gpu/drm/i915/gt/intel_rc6.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/gpu/drm/i915/gt/intel_rc6.c +8
-0@@ -486,6 +486,7 @@ static bool bxt_check_bios_rc6_setup(struct intel_rc6 *rc6)static bool rc6_supported (struct intel_rc6 *rc6) {struct drm_i915_private *i915 =rc6_to_i915 (rc6); +struct intel_gt *gt =rc6_to_gt (rc6);if (!HAS_RC6 (i915))return false;@@ -502,6 +503,13 @@ static bool rc6_supported(struct intel_rc6 *rc6)return false; } +if (IS_MTL_MEDIA_STEP (gt->i915,STEP_A0 ,STEP_B0 ) && + gt->type ==GT_MEDIA ) { +drm_notice (&i915->drm, +"Media RC6 disabled on A step\n" ); +return false; + } +return true; }Signature · 1 line
2.25.1