From: Davidlohr Bueso <dave@stgolabs.net>
To: Dan Williams <dan.j.williams@intel.com>
Cc: Ira Weiny <ira.weiny@intel.com>,
kernel test robot <lkp@intel.com>,
Jonathan.Cameron@huawei.com, linux-cxl@vger.kernel.org,
oe-kbuild@lists.linux.dev, Julia Lawall <julia.lawall@lip6.fr>
Subject: Re: [cxl:pending 13/21] drivers/cxl/pci.c:511:8-33: WARNING: Threaded IRQ with no primary handler requested without IRQF_ONESHOT (unless it is nested IRQ)
Date: Tue, 31 Jan 2023 16:27:01 -0800 [thread overview]
Message-ID: <20230201002701.a7lwsouomqvoheso@offworld> (raw)
In-Reply-To: <63d993bdecd01_3a36e529454@dwillia2-xfh.jf.intel.com.notmuch>
On Tue, 31 Jan 2023, Dan Williams wrote:
>Ira Weiny wrote:
>[..]
>> > Considering MSIs are edge triggered interrupts, this should be benign.
>>
>> I'm trying to understand this a bit more. So I looked in more detail. I
>> believe Dan suggested that I could use irq_default_primary_handler() in
>> this case by passing NULL. And this would handle threading the irq
>> processing for me.
>>
>> It looks from a software standpoint this should work. But the kdocs
>> really imply that not masking the irq in the handler may be an issue.
>> Thus the 'requirement' of using IRQF_ONESHOT.
>>
>> Is this somehow different with MSI? Is this a case of the kdocs being a
>> bit out of date for MSI?
>
>My reading, may be from the changelog and not the kdocs, was that at
>request_irq() time it is difficult to discern level triggered vs
>edge-triggered. So for the default primary handler, that does nothing to
>quiet a screaming level-triggered interrupt, just require oneshot mode.
Right and it's only level-triggered that are the problem after done with
the hardirq handler. So in the msi/cxl case we already know that all this
is edge (sent once and forgotten by the hardware), which is why I was saying
it's harmless. It's still probably a good idea to have it explicitly oneshot
semantics as Dan's patch.
Thanks,
Davidlohr
next prev parent reply other threads:[~2023-02-01 0:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <202301291620.DxnDWLoW-lkp@intel.com>
2023-01-30 21:55 ` [cxl:pending 13/21] drivers/cxl/pci.c:511:8-33: WARNING: Threaded IRQ with no primary handler requested without IRQF_ONESHOT (unless it is nested IRQ) Davidlohr Bueso
2023-01-31 22:10 ` Ira Weiny
2023-01-31 22:18 ` Dan Williams
2023-02-01 0:27 ` Davidlohr Bueso [this message]
2023-02-01 19:24 ` Ira Weiny
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=20230201002701.a7lwsouomqvoheso@offworld \
--to=dave@stgolabs.net \
--cc=Jonathan.Cameron@huawei.com \
--cc=dan.j.williams@intel.com \
--cc=ira.weiny@intel.com \
--cc=julia.lawall@lip6.fr \
--cc=linux-cxl@vger.kernel.org \
--cc=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/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