[PATCH] drm/i915: Remove unused underrun interrupt bits

Ville Syrjälä ville.syrjala at linux.intel.com
Thu Oct 10 17:30:50 UTC 2024


On Thu, Oct 10, 2024 at 10:43:44PM +0530, Vivekanandan, Balasubramani wrote:
> On 09.10.2024 15:35, Pottumuttu, Sai Teja wrote:
> > 
> > On 09-10-2024 13:05, Vivekanandan, Balasubramani wrote:
> > > On 26.09.2024 10:52, Pottumuttu, Sai Teja wrote:
> > > > On 25-09-2024 19:33, Ville Syrjälä wrote:
> > > > > On Wed, Sep 25, 2024 at 04:48:02PM +0530, Sai Teja Pottumuttu wrote:
> > > > > > Underrun recovery was defeatured and was never brought into usage.
> > > > > > Thus we can safely remove the interrupt register bits introduced by the
> > > > > > feature for detecting soft and hard underruns.
> > > > > > 
> > > > > > Signed-off-by: Sai Teja Pottumuttu <sai.teja.pottumuttu at intel.com>
> > > > > > ---
> > > > > >    .../gpu/drm/i915/display/intel_display_irq.c  | 19 +++----------------
> > > > > >    .../gpu/drm/i915/display/intel_display_irq.h  |  1 -
> > > > > >    .../drm/i915/display/intel_fifo_underrun.c    |  5 ++---
> > > > > There's a lot more related stuff in that file.
> > > > Assuming that you are referring to the ICL_PIPE_STATUS register and the bits
> > > > added there to detect soft, hard, port underruns,
> > > Is it only the underrun recovery defeatured? Do we have the reporting of
> > > underruns caused downstream by the port/transcoder working?
> > > Then it makes sense to me to still keep the Port/Transcoder underrun
> > > reporting as it would help in debugging any underruns.
> > > Still there would be stuff related to Hard/Soft underruns which can be
> > > removed from the driver like those in function
> > > icl_pipe_status_underrun_mask, printing of soft/hard underruns in
> > > intel_cpu_fifo_underrun_irq_handler.
> > > 
> > > Regards,
> > > Bala
> > 
> > The reporting is also de-featured. So, as part of the logging/reporting we
> > had 4 things being reported and following are there statuses
> > 
> > 1. PIPE_STATUS_SOFT_UNDERRUN_XELPD: This can safely be removed.
> > 2. PIPE_STATUS_HARD_UNDERRUN_XELPD: This can be removed as well.
> > 3. PIPE_STATUS_PORT_UNDERRUN_XELPD: This seems to be the problem, this is
> > de-featured as well but currently is always set and thus the string "port"
> > appears in the ci bugs. Removing this might cause duplications in ci bugs if
> > it fails to understand that its the same bug even without "port".
> > 4. PIPE_STATUS_UNDERRUN: This still tells that the underrun happened on the
> > transcoder attached to this pipe. But then as far as I understand, the
> > underrun interrupt itself tells that its an underrun on the transcoder so we
> > need not use this bit specificially I believe. But then again removing this
> > and the "transcoder" string there might cause ci issues.
> > 
> > So, we have two options here
> > 
> > 1. Either just remove the SOFT/HARD underrun bits/reporting for now and
> > remove the other ones at a later point of time.
> > 2. Or remove all these bits and make sure CI doesn't start filing duplicate
> > bugs.
> > 
> > What would be your suggestion here?
> 
> We can just remove the SOFT/HARD underrun reporting for now to avoid impacting CI.

IMO just rip all of it out. It'll be completely gone from the hardware
soon enough anyway, so we're just putting off the inevitable if we try
to do some kind of partial surgery.

-- 
Ville Syrjälä
Intel


More information about the Intel-gfx mailing list