intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] Small refactorings v2
@ 2013-02-18 22:00 Paulo Zanoni
  2013-02-18 22:00 ` [PATCH 1/8] drm/i915: create functions for the "unclaimed register" checks Paulo Zanoni
                   ` (7 more replies)
  0 siblings, 8 replies; 22+ messages in thread
From: Paulo Zanoni @ 2013-02-18 22:00 UTC (permalink / raw)
  To: intel-gfx; +Cc: Paulo Zanoni

From: Paulo Zanoni <paulo.r.zanoni@intel.com>

Hi

All the patches on this series have already been sent to this mailing list
(maybe with different titles) and received comments, except for patch 5, which
was posted on pastebin by Daniel. This series contains new versions of the
patches with all the bikesheds applied.

Please notice that even though patches 6 and 8 are only coding style changes,
they were created because we already had regressions caused by the confusing
code.

Thanks,
Paulo


Paulo Zanoni (8):
  drm/i915: create functions for the "unclaimed register" checks
  drm/i915: use FPGA_DBG for the "unclaimed register" checks
  drm/i915: clear the FPGA_DBG_RM_NOCLAIM bit at driver init
  drm/i915: use HAS_DDI on intel_hdmi.c and intel_display.c
  drm/i915: wait_event_timeout's timeout is in jiffies
  drm/i915: add aux_ch_ctl_reg to struct intel_dp
  drm/i915: rename sdvox_reg to hdmi_reg on HDMI context
  drm/i915: clarify confusion between SDVO and HDMI registers

 drivers/gpu/drm/i915/i915_dma.c      |    4 ++
 drivers/gpu/drm/i915/i915_drv.c      |   31 ++++++++++----
 drivers/gpu/drm/i915/i915_reg.h      |   22 +++++-----
 drivers/gpu/drm/i915/intel_ddi.c     |    4 +-
 drivers/gpu/drm/i915/intel_display.c |   42 ++++++++++---------
 drivers/gpu/drm/i915/intel_dp.c      |   77 ++++++++++++----------------------
 drivers/gpu/drm/i915/intel_drv.h     |    5 ++-
 drivers/gpu/drm/i915/intel_hdmi.c    |   74 ++++++++++++++++----------------
 drivers/gpu/drm/i915/intel_sdvo.c    |   22 +++++-----
 9 files changed, 140 insertions(+), 141 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 22+ messages in thread
* [PATCH 0/7] Unclaimed register reporting V2
@ 2013-01-25 20:57 Paulo Zanoni
  2013-01-25 20:57 ` [PATCH 3/7] drm/i915: clear the FPGA_DBG_RM_NOCLAIM bit at driver init Paulo Zanoni
  0 siblings, 1 reply; 22+ messages in thread
From: Paulo Zanoni @ 2013-01-25 20:57 UTC (permalink / raw)
  To: intel-gfx; +Cc: Paulo Zanoni

From: Paulo Zanoni <paulo.r.zanoni@intel.com>

Hi

This is new version of 2 patches I sent last week. First we change how unclaimed
registers are currently reported by our driver and in the end we enable gen 7
error interrupts.

Here's what we do:
  - Make the current code a little bit more organized
  - Use FPGA_DBG instead of GEN7_ERR_INT for the polling code
  - Initialize FPGA_DBG to clear one "unclaimed register" message
  - Check unclaimed registers on I915_READ
  - Replace the DRM_ERROR with WARNs
  - Only print uncnlaimed registers if drm_debug is set
  - Finally, print Gen 7 error interrupts

We had some discussion regarding these patches, and there is still no consensus
on what exactly we should do, so feel free to nack patches. Still, the patches
here are to some extent based on the comments I received (mainly from Ben,
Daniel and Chris), so I hope they're not too bad. Also, I really think that at
least the first 3 patches should be merged, and also some equivalent form of the
last patch should be merged.

Another thing I have to add: after patch 7 you may see a few dozen "unclaimed
register" messages when booting if you have the power well disabled. All these
messages go away if you blacklist snd_hda_intel. Still, I like to have messages
reminding me that something is wrong in some driver. And you'll only see those
messages if you have drm_debug, because of patch 0006.

Thanks,
Paulo

Paulo Zanoni (7):
  drm/i915: create macros for the "unclaimed register" checks
  drm/i915: use FPGA_DBG for the "unclaimed register" checks
  drm/i915: clear the FPGA_DBG_RM_NOCLAIM bit at driver init
  drm/i915: check for unclaimed registers on I915_READ too
  drm/i915: WARN on unclaimed registers
  drm/i915: only check for unclaimed registers if drm_debug
  drm/i915: print Gen 7 error interrupts

 drivers/gpu/drm/i915/i915_dma.c |    4 ++++
 drivers/gpu/drm/i915/i915_drv.c |   26 ++++++++++++++++++--------
 drivers/gpu/drm/i915/i915_irq.c |   28 +++++++++++++++++++++++++++-
 drivers/gpu/drm/i915/i915_reg.h |    5 ++++-
 4 files changed, 53 insertions(+), 10 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2013-03-04 22:25 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-18 22:00 [PATCH 0/8] Small refactorings v2 Paulo Zanoni
2013-02-18 22:00 ` [PATCH 1/8] drm/i915: create functions for the "unclaimed register" checks Paulo Zanoni
2013-02-18 22:00 ` [PATCH 2/8] drm/i915: use FPGA_DBG " Paulo Zanoni
2013-02-18 22:00 ` [PATCH 3/8] drm/i915: clear the FPGA_DBG_RM_NOCLAIM bit at driver init Paulo Zanoni
2013-02-19  9:32   ` Chris Wilson
2013-02-19 19:13   ` [PATCH 3/7] " Paulo Zanoni
2013-02-19 19:45     ` Daniel Vetter
2013-02-18 22:00 ` [PATCH 4/8] drm/i915: use HAS_DDI on intel_hdmi.c and intel_display.c Paulo Zanoni
2013-02-18 22:00 ` [PATCH 5/8] drm/i915: wait_event_timeout's timeout is in jiffies Paulo Zanoni
2013-03-03 17:36   ` Daniel Vetter
2013-02-18 22:00 ` [PATCH 6/8] drm/i915: add aux_ch_ctl_reg to struct intel_dp Paulo Zanoni
2013-02-18 22:00 ` [PATCH 7/8] drm/i915: rename sdvox_reg to hdmi_reg on HDMI context Paulo Zanoni
2013-02-19 11:47   ` Daniel Vetter
2013-02-18 22:00 ` [PATCH 8/8] drm/i915: clarify confusion between SDVO and HDMI registers Paulo Zanoni
2013-02-19 12:06   ` Daniel Vetter
2013-02-19 19:19     ` Paulo Zanoni
2013-03-04 22:28       ` Daniel Vetter
2013-02-19 19:21   ` [PATCH 9/8] drm/i915: unify the definitions of the HDMI/SDVO register Paulo Zanoni
2013-02-19 19:21     ` [PATCH 10/8] drm/i915: remove duplicated SDVO/HDMI bit definitions Paulo Zanoni
2013-02-19 19:21     ` [PATCH 11/8] drm/i915: rename some HDMI " Paulo Zanoni
  -- strict thread matches above, loose matches on Subject: below --
2013-01-25 20:57 [PATCH 0/7] Unclaimed register reporting V2 Paulo Zanoni
2013-01-25 20:57 ` [PATCH 3/7] drm/i915: clear the FPGA_DBG_RM_NOCLAIM bit at driver init Paulo Zanoni
2013-01-26  1:05   ` Ben Widawsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).