Restore the DDI translation tables after enabling PG1
Subsystems (2)
PATCH 1/1 Restore the DDI translation tables after enabling PG1
The commit message explains it all, but this cover letter can be made somewhat useful by saying this patch is on top of:
http://lists.freedesktop.org/archives/intel-gfx/2015-February/060079.html
Signature · 15 lines
Damien Damien Lespiau (1): drm/i915/skl: Restore the DDI translation tables when enabling PW1 drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/1 drm/i915/skl: Restore the DDI translation tables when enabling PW1
I was dumping the DDI translation tables to make sure my patch updating the HDMI entry was doing the right thing when I noticed that the table was showing reset values after DPMS.
And indeed, the DDI translation registers are in power well 1 on SKL, and so we're losing their values when shutting down eDP.
Calling intel_prepare_ddi() on PW1 enabling re-programs the table.
--- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_runtime_pm.c +3 -1
@@ -223,8 +223,10 @@ static void skl_power_well_post_enable(struct drm_i915_private *dev_priv, 1 << PIPE_C | 1 << PIPE_B); } -if (power_well->data ==SKL_DISP_PW_1 ) +if (power_well->data ==SKL_DISP_PW_1 ) { +intel_prepare_ddi (dev);gen8_irq_power_well_post_enable (dev_priv,1 <<PIPE_A ); + } } static void hsw_set_power_well(struct drm_i915_private *dev_priv,
Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] drm/i915/skl: Restore the DDI translation tables when enabling PW1
2015-03-02 15:20 GMT-03:00 Damien Lespiau <[email protected]>:
Quoted 10 lines
I was dumping the DDI translation tables to make sure my patch updating the HDMI entry was doing the right thing when I noticed that the table was showing reset values after DPMS.
And indeed, the DDI translation registers are in power well 1 on SKL, and so we're losing their values when shutting down eDP.
Calling
intel_prepare_ddi()on PW1 enabling re-programs the table.Signed-off-by Damien Lespiau <[email protected]>
Quoted 27 lines
--- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_runtime_pm.c +3
-2@@ -223,8 +223,10 @@ static void skl_power_well_post_enable(struct drm_i915_private *dev_priv, 1 << PIPE_C | 1 << PIPE_B); } -if (power_well->data ==SKL_DISP_PW_1 ) +if (power_well->data ==SKL_DISP_PW_1 ) { +intel_prepare_ddi (dev);gen8_irq_power_well_post_enable (dev_priv,1 <<PIPE_A ); + } } static void hsw_set_power_well(struct drm_i915_private *dev_priv, --1.8.3.1
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Paulo Zanoni _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] drm/i915/skl: Restore the DDI translation tables when enabling PW1
In reply to Damien LespiauTask id: 5873 -------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
PNV -5 278/278 273/278
ILK 308/308 308/308
SNB -1 284/284 283/284 IVB -1 380/380 379/380 BYT 294/294 294/294 HSW 387/387 387/387 BDW -1 316/316 315/316 -------------------------------------Detailed------------------------------------- Platform Test drm-intel-nightly Series Applied PNV igt_gem_userptr_blits_coherency-sync NO_RESULT(1)CRASH(5)NRUN(1)PASS(7) CRASH(1)NRUN(1) *PNV igt_gem_userptr_blits_coherency-unsync NO_RESULT(1)CRASH(4)PASS(6) CRASH(1)NRUN(1) PNV igt_gen3_render_linear_blits FAIL(3)DMESG_WARN(1)PASS(7) FAIL(2) PNV igt_gen3_render_mixed_blits FAIL(5)PASS(9) FAIL(2) PNV igt_gem_fence_thrash_bo-write-verify-threaded-none FAIL(2)CRASH(3)PASS(4) CRASH(2) *SNB igt_gem_flink_bad-flink PASS(2) DMESG_WARN(1)PASS(1) IVB igt_gem_storedw_batches_loop_normal DMESG_WARN(1)PASS(2) DMESG_WARN(1)PASS(1) *BDW igt_gem_gtt_hog PASS(17) DMESG_WARN(1)PASS(1)
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx