drm/i915: Use wait_for_register in hsw_disable_lcpll()
Subsystems (2)
PATCH 1/1 drm/i915: Use wait_for_register in hsw_disable_lcpll()
There is no need to use macro as we can use generic function. And as side effect we can lower driver footprint.
--- drivers/gpu/drm/i915/intel_display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_display.c +4 -4
@@ -8693,11 +8693,11 @@ static void hsw_disable_lcpll(struct drm_i915_private *dev_priv, val |=LCPLL_CD_SOURCE_FCLK ;I915_WRITE (LCPLL_CTL , val); -if (wait_for_us (I915_READ (LCPLL_CTL ) & -LCPLL_CD_SOURCE_FCLK_DONE ,1 )) +if (__intel_wait_for_register_fw (dev_priv,LCPLL_CTL , +LCPLL_CD_SOURCE_FCLK_DONE , +LCPLL_CD_SOURCE_FCLK_DONE , +1 ,0 , &val))DRM_ERROR ("Switching to FCLK failed\n" ); - - val =I915_READ (LCPLL_CTL ); } val |=LCPLL_PLL_DISABLE ;
Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 15 lines · Michal Wajdeczko
There is no need to use macro as we can use generic function. And as side effect we can lower driver footprint.
Signed-off-by Michal Wajdeczko <[email protected]>Cc Chris Wilson <[email protected]>Cc Paulo Zanoni <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/intel_display.c +0
-0
drivers/gpu/drm/i915/intel_display.c static void hsw_disable_lcpll(struct drm_i915_private *dev_priv, · line 8699
Quoted 9 lines
drivers/gpu/drm/i915/intel_display.c +4
-2@@ -8693,11 +8693,11 @@ static void hsw_disable_lcpll(struct drm_i915_private *dev_priv, val |=LCPLL_CD_SOURCE_FCLK ;I915_WRITE (LCPLL_CTL , val); -if (wait_for_us (I915_READ (LCPLL_CTL ) & -LCPLL_CD_SOURCE_FCLK_DONE ,1 )) +if (__intel_wait_for_register_fw (dev_priv,LCPLL_CTL , +LCPLL_CD_SOURCE_FCLK_DONE , +LCPLL_CD_SOURCE_FCLK_DONE , +1 ,0 , &val))
This changes it from a I915_READ() to I915_READ_FW. It should be safe to drop the forcewakes, but the jury is out over the spinlock. Can anyone else concurrently access the same cacheline?
-Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Use wait_for_register in hsw_disable_lcpll()
In reply to Michal Wajdeczko== Series Details ==
== Series Details ==
Series: drm/i915: Use wait_for_register in hsw_disable_lcpll()
URL : https://patchwork.freedesktop.org/series/22776/
State : success
== Summary ==
Series 22776v1 drm/i915: Use wait_for_register in hsw_disable_lcpll()
https://patchwork.freedesktop.org/api/1.0/series/22776/revisions/1/mbox/
fi-bdw-5557u total:278 pass:267 dwarn:0 dfail:0 fail:0 skip:11 time:429s fi-bdw-gvtdvm total:278 pass:256 dwarn:8 dfail:0 fail:0 skip:14 time:430s fi-bsw-n3050 total:278 pass:242 dwarn:0 dfail:0 fail:0 skip:36 time:573s fi-bxt-j4205 total:278 pass:259 dwarn:0 dfail:0 fail:0 skip:19 time:505s fi-bxt-t5700 total:278 pass:258 dwarn:0 dfail:0 fail:0 skip:20 time:550s fi-byt-j1900 total:278 pass:254 dwarn:0 dfail:0 fail:0 skip:24 time:479s fi-byt-n2820 total:278 pass:250 dwarn:0 dfail:0 fail:0 skip:28 time:482s fi-hsw-4770 total:278 pass:262 dwarn:0 dfail:0 fail:0 skip:16 time:416s fi-hsw-4770r total:278 pass:262 dwarn:0 dfail:0 fail:0 skip:16 time:410s fi-ilk-650 total:278 pass:228 dwarn:0 dfail:0 fail:0 skip:50 time:425s fi-ivb-3520m total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time:495s fi-ivb-3770 total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time:471s fi-kbl-7500u total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time:449s fi-kbl-7560u total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time:567s fi-skl-6260u total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time:451s fi-skl-6700hq total:278 pass:261 dwarn:0 dfail:0 fail:0 skip:17 time:570s fi-skl-6700k total:278 pass:256 dwarn:4 dfail:0 fail:0 skip:18 time:457s fi-skl-6770hq total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time:495s fi-skl-gvtdvm total:278 pass:265 dwarn:0 dfail:0 fail:0 skip:13 time:432s fi-snb-2520m total:278 pass:250 dwarn:0 dfail:0 fail:0 skip:28 time:530s fi-snb-2600 total:278 pass:248 dwarn:0 dfail:0 fail:1 skip:29 time:405s
02f6d3e01f3e1b6b91efeaceabd24e36e0540b49 drm-tip: 2017y-04m-10d-11h-06m-04s UTC integration manifest eb658bc drm/i915: Use wait_for_register in hsw_disable_lcpll()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_4461/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx