From: Jason Andryuk <jason.andryuk@amd.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: <stable@vger.kernel.org>, <xen-devel@lists.xenproject.org>,
<linux-kernel@vger.kernel.org>, Juergen Gross <jgross@suse.com>,
"Stefano Stabellini" <sstabellini@kernel.org>,
Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>,
Jiqian Chen <Jiqian.Chen@amd.com>, Huang Rui <ray.huang@amd.com>
Subject: Re: [PATCH] xen/pciback: Make missing GSI non-fatal
Date: Thu, 27 Feb 2025 10:19:53 -0500 [thread overview]
Message-ID: <8a046a27-c0bc-42ec-accb-17a36135563f@amd.com> (raw)
In-Reply-To: <22a46f43-d60c-465d-9ae7-4d84ca9108d4@suse.com>
On 2025-02-27 03:23, Jan Beulich wrote:
> On 26.02.2025 21:01, Jason Andryuk wrote:
>
>> --- a/drivers/xen/acpi.c
>> +++ b/drivers/xen/acpi.c
>> @@ -101,7 +101,7 @@ int xen_acpi_get_gsi_info(struct pci_dev *dev,
>>
>> pin = dev->pin;
>> if (!pin)
>> - return -EINVAL;
>> + return -ENOENT;
>>
>> entry = acpi_pci_irq_lookup(dev, pin);
>> if (entry) {
>
> While I can understand this change, ...
>
>> @@ -116,7 +116,7 @@ int xen_acpi_get_gsi_info(struct pci_dev *dev,
>> gsi = -1;
>>
>> if (gsi < 0)
>> - return -EINVAL;
>> + return -ENOENT;
>>
>> *gsi_out = gsi;
>> *trigger_out = trigger;
>
> ... I'd expect this needs to keep using an error code other than ENOENT.
> Aiui this path means the device has a pin-based interrupt, just that it's
> not configured correctly. In which case we'd better not allow the device
> to be handed to a guest. Unless there's logic in place (somewhere) to
> make sure it then would get to see a device without pin-based interrupt.
This is actually the case that fails for me.
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
Interrupt: pin A routed to IRQ -2147483648
Interrupt Pin is 0x01, and Interrupt Line is 0xff
I'll have to check the existing code to see what it does.
Also, thanks for catching the commit message typos.
Regards,
Jason
prev parent reply other threads:[~2025-02-27 15:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-26 20:01 Jason Andryuk
2025-02-27 3:36 ` Chen, Jiqian
2025-02-27 14:57 ` Jason Andryuk
2025-02-27 8:23 ` Jan Beulich
2025-02-27 15:19 ` Jason Andryuk [this message]
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=8a046a27-c0bc-42ec-accb-17a36135563f@amd.com \
--to=jason.andryuk@amd.com \
--cc=Jiqian.Chen@amd.com \
--cc=jbeulich@suse.com \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oleksandr_tyshchenko@epam.com \
--cc=ray.huang@amd.com \
--cc=sstabellini@kernel.org \
--cc=stable@vger.kernel.org \
--cc=xen-devel@lists.xenproject.org \
/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
all inboxes | Powered by JetHome®