From: Raag Jadav <raag.jadav@intel.com>
To: "Cavitt, Jonathan" <jonathan.cavitt@intel.com>
Cc: "Wajdeczko, Michal" <michal.wajdeczko@intel.com>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"Gupta, Saurabhg" <saurabhg.gupta@intel.com>,
"Zuo, Alex" <alex.zuo@intel.com>
Subject: Re: [PATCH v3 5/5] drm/xe/i2c: Report i2c irq handler issue
Date: Mon, 8 Jun 2026 17:20:37 +0200 [thread overview]
Message-ID: <aibdxRlzmaT3E2TD@black.igk.intel.com> (raw)
In-Reply-To: <SN6PR11MB27174A1CB0B3BB00FDAE460DE51C2@SN6PR11MB2717.namprd11.prod.outlook.com>
On Mon, Jun 08, 2026 at 08:04:29PM +0530, Cavitt, Jonathan wrote:
> -----Original Message-----
> From: Wajdeczko, Michal <michal.wajdeczko@intel.com>
> > On 6/5/2026 11:05 PM, Jonathan Cavitt wrote:
> > > Error logging is expected but not included in xe_i2c_irq_handler() for
> > > generic_handle_irq_safe(), so add error logging there.
> > >
> > > This issue was caught by static analysis.
> >
> > hmm, what exactly was this tool complaining about?
>
> It is complaining that xe_i2c_irq_handler() is the only place where
> the return value for generic_handle_irq_safe() is not checked.
>
> >
> > almost no other callers of the generic_handle_irq_safe() are printing any errors
> > (which are more about programming mistakes than runtime failures)
> >
> > I'm asking, as if we believe that such errors are legit then maybe we shouldn't
> >
> > "Deassert after I2C adapter clears the interrupt"
>
> Is this not also the case for every other caller of
> generic_handle_irq_safe()? If generic_handle_irq_safe() fails,
> and it fails for a legitimate reason, we really should be doing
> something about that other than just logging the error and
> moving on. Since we don't, based on historical usage, I don't
> think whatever error generic_handle_irq_safe() can throw is
> a legitimate issue that requires intervention.
>
> But you don't have to believe just me about it. Raag Jadav
> also approves of this implementation where we don't do
> anything about the error other than just log it, and he's the
> one that wrote xe_i2c_irq_handler().
Possible generic_handle_irq_safe() error cases are
1. Missing irq descriptor
2. Called in process ctx when set to enforced irq ctx
Both of which are programming mistakes and unrelated to hardware.
Raag
next prev parent reply other threads:[~2026-06-08 15:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-05 21:05 [PATCH v3 0/5] drm/{i915, xe}: Refactor generic_handle_irq_safe() error messages Jonathan Cavitt
2026-06-05 21:05 ` [PATCH v3 1/5] drm/xe/printk: Add xe_warn_once() Jonathan Cavitt
2026-06-05 21:05 ` [PATCH v3 2/5] drm/xe/heci: Use xe print functions in xe_heci_gsc.c Jonathan Cavitt
2026-06-06 10:30 ` Michal Wajdeczko
2026-06-05 21:05 ` [PATCH v3 3/5] drm/xe/i2c: Use xe print functions in xe_i2c.c Jonathan Cavitt
2026-06-06 6:15 ` Raag Jadav
2026-06-05 21:05 ` [PATCH v3 4/5] drm/i915: Refactor generic_handle_irq_safe() error messages Jonathan Cavitt
2026-06-05 21:05 ` [PATCH v3 5/5] drm/xe/i2c: Report i2c irq handler issue Jonathan Cavitt
2026-06-06 6:18 ` Raag Jadav
2026-06-06 10:39 ` Michal Wajdeczko
2026-06-08 14:34 ` Cavitt, Jonathan
2026-06-08 15:20 ` Raag Jadav [this message]
2026-06-05 22:18 ` ✓ i915.CI.BAT: success for drm/{i915, xe}: Refactor generic_handle_irq_safe() error messages (rev4) Patchwork
2026-06-06 15:30 ` ✗ i915.CI.Full: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aibdxRlzmaT3E2TD@black.igk.intel.com \
--to=raag.jadav@intel.com \
--cc=alex.zuo@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jonathan.cavitt@intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=saurabhg.gupta@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox