drm/i915: cleanup the CHICKEN_MISC_2 (re)definitions
Subsystems (2)
PATCH 1/1 drm/i915: cleanup the CHICKEN_MISC_2 (re)definitions
* Don't define it twice.
* Define MSBs first, like the rest of i915_reg.h.
* Add CNL_ prefix to the bit that arrived in CNL.
--- drivers/gpu/drm/i915/i915_reg.h | 8 +++----- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/i915_reg.h +3 -5
@@ -6703,12 +6703,10 @@ enum {#define KVM_CONFIG_CHANGE_NOTIFICATION_SELECT (1 << 14)#define CHICKEN_MISC_2 _MMIO(0x42084) -#define GLK_CL0_PWR_DOWN (1 << 10) -#define GLK_CL1_PWR_DOWN (1 << 11) +#define CNL_COMP_PWR_DOWN (1 << 23)#define GLK_CL2_PWR_DOWN (1 << 12) - -#define CHICKEN_MISC_2 _MMIO(0x42084) -#define COMP_PWR_DOWN (1 << 23) +#define GLK_CL1_PWR_DOWN (1 << 11) +#define GLK_CL0_PWR_DOWN (1 << 10)#define _CHICKEN_PIPESL_1_A 0x420b0#define _CHICKEN_PIPESL_1_B 0x420b4
drivers/gpu/drm/i915/intel_runtime_pm.c +2 -2
@@ -2820,7 +2820,7 @@ static void cnl_display_core_init(struct drm_i915_private *dev_priv, bool resume/* 2. Enable Comp */ val =I915_READ (CHICKEN_MISC_2 ); - val &= ~COMP_PWR_DOWN ; + val &= ~CNL_COMP_PWR_DOWN ;I915_WRITE (CHICKEN_MISC_2 , val); val =I915_READ (CNL_PORT_COMP_DW3 );
@@ -2894,7 +2894,7 @@ static void cnl_display_core_uninit(struct drm_i915_private *dev_priv)/* 5. Disable Comp */ val =I915_READ (CHICKEN_MISC_2 ); - val |=COMP_PWR_DOWN ; + val |=CNL_COMP_PWR_DOWN ;I915_WRITE (CHICKEN_MISC_2 , val); }
Signature · 6 lines
2.9.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: cleanup the CHICKEN_MISC_2 (re)definitions
== Series Details ==
== Series Details ==
Series: drm/i915: cleanup the CHICKEN_MISC_2 (re)definitions
URL : https://patchwork.freedesktop.org/series/27321/
State : success
== Summary ==
Series 27321v1 drm/i915: cleanup the CHICKEN_MISC_2 (re)definitions
https://patchwork.freedesktop.org/api/1.0/series/27321/revisions/1/mbox/
Test gem_exec_suspend:
Subgroup basic-s4-devices:
dmesg-warn -> PASS (fi-kbl-r) fdo#100125
Test kms_pipe_crc_basic:
Subgroup hang-read-crc-pipe-b:
dmesg-warn -> PASS (fi-pnv-d510) fdo#101597fdo#100125 https://bugs.freedesktop.org/show_bug.cgi?id=100125
fdo#101597 https://bugs.freedesktop.org/show_bug.cgi?id=101597
fi-bdw-5557u total:279 pass:268 dwarn:0 dfail:0 fail:0 skip:11 time:440s fi-bdw-gvtdvm total:279 pass:265 dwarn:0 dfail:0 fail:0 skip:14 time:429s fi-blb-e6850 total:279 pass:224 dwarn:1 dfail:0 fail:0 skip:54 time:354s fi-bsw-n3050 total:279 pass:243 dwarn:0 dfail:0 fail:0 skip:36 time:532s fi-bxt-j4205 total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:503s fi-byt-j1900 total:279 pass:254 dwarn:1 dfail:0 fail:0 skip:24 time:493s fi-byt-n2820 total:279 pass:250 dwarn:1 dfail:0 fail:0 skip:28 time:491s fi-glk-2a total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:600s fi-hsw-4770 total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:439s fi-hsw-4770r total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:416s fi-ilk-650 total:279 pass:229 dwarn:0 dfail:0 fail:0 skip:50 time:415s fi-ivb-3520m total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:493s fi-ivb-3770 total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:475s fi-kbl-7500u total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:466s fi-kbl-7560u total:279 pass:268 dwarn:1 dfail:0 fail:0 skip:10 time:578s fi-kbl-r total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:583s fi-pnv-d510 total:279 pass:223 dwarn:1 dfail:0 fail:0 skip:55 time:568s fi-skl-6260u total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:466s fi-skl-6700hq total:279 pass:262 dwarn:0 dfail:0 fail:0 skip:17 time:583s fi-skl-6700k total:279 pass:257 dwarn:4 dfail:0 fail:0 skip:18 time:470s fi-skl-6770hq total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:475s fi-skl-gvtdvm total:279 pass:266 dwarn:0 dfail:0 fail:0 skip:13 time:441s fi-skl-x1585l total:279 pass:268 dwarn:0 dfail:0 fail:0 skip:11 time:468s fi-snb-2520m total:279 pass:251 dwarn:0 dfail:0 fail:0 skip:28 time:546s fi-snb-2600 total:279 pass:250 dwarn:0 dfail:0 fail:0 skip:29 time:407s
e1306e0d65a3a850838534019a9a61e73bf1efcc drm-tip: 2017y-07m-14d-13h-56m-32s UTC integration manifest 8cd1822 drm/i915: cleanup the CHICKEN_MISC_2 (re)definitions
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_5195/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
oh! I believe you had warned me about this beforehand but I forgot... sorry....
Quoted 61 lines · Paulo Zanoni
* Don't define it twice.
* Define MSBs first, like the rest ofi915_reg.h.
* AddCNL_prefix to the bit that arrived in CNL.Cc Ville Syrjälä <[email protected]>Cc Rodrigo Vivi <[email protected]>Signed-off-by Paulo Zanoni <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 8 +++----- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/i915_reg.h +3
-5@@ -6703,12 +6703,10 @@ enum {#define KVM_CONFIG_CHANGE_NOTIFICATION_SELECT (1 << 14)#define CHICKEN_MISC_2 _MMIO(0x42084) -#define GLK_CL0_PWR_DOWN (1 << 10) -#define GLK_CL1_PWR_DOWN (1 << 11) +#define CNL_COMP_PWR_DOWN (1 << 23)#define GLK_CL2_PWR_DOWN (1 << 12) - -#define CHICKEN_MISC_2 _MMIO(0x42084) -#define COMP_PWR_DOWN (1 << 23) +#define GLK_CL1_PWR_DOWN (1 << 11) +#define GLK_CL0_PWR_DOWN (1 << 10)#define _CHICKEN_PIPESL_1_A 0x420b0#define _CHICKEN_PIPESL_1_B 0x420b4drivers/gpu/drm/i915/intel_runtime_pm.c +2
-3@@ -2820,7 +2820,7 @@ static void cnl_display_core_init(struct drm_i915_private *dev_priv, bool resume/* 2. Enable Comp */ val =I915_READ (CHICKEN_MISC_2 ); - val &= ~COMP_PWR_DOWN ; + val &= ~CNL_COMP_PWR_DOWN ;I915_WRITE (CHICKEN_MISC_2 , val); val =I915_READ (CNL_PORT_COMP_DW3 );@@ -2894,7 +2894,7 @@ static void cnl_display_core_uninit(struct drm_i915_private *dev_priv)/* 5. Disable Comp */ val =I915_READ (CHICKEN_MISC_2 ); - val |=COMP_PWR_DOWN ; + val |=CNL_COMP_PWR_DOWN ;I915_WRITE (CHICKEN_MISC_2 , val); } --2.9.4
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Rodrigo Vivi Blog: http://blog.vivi.eng.br _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx