All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
To: "x86@kernel.org" <x86@kernel.org>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Adding an interrupt to a PCI device via an ACPI entry
Date: Tue, 12 Mar 2024 20:28:21 +0000	[thread overview]
Message-ID: <20b215fd-51bd-4450-a2ff-110e88d11e95@alliedtelesis.co.nz> (raw)

Hi All,

Is there a way to add information about a PCI device via an ACPI entry? 
I'm trying to deal with a device that has an erratum where regular PCI-e 
MSI interrupts don't work. The workaround is to connect a dedicated INT 
output line to an interrupt input on the board. The hardware design has 
done this but I'm trying to figure out how to make that work with ACPI 
describing the hardware.

I know in devicetree land I can do this with something like

&pcic {
                 mydevice@1,0 {
                         compatible = "pci1234,5678";
                         reg = <0x00000000 0 0 0 0>;
                         interrupt-parent = <&intc>;
                         interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
                 };
};

And then when my driver is bound to device the usual irq resource stuff 
will give me the right interrupt line.

Is there a way of expressing this kind of thing in ACPI?

Thanks,
Chris

             reply	other threads:[~2024-03-12 20:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-12 20:28 Chris Packham [this message]
2024-03-12 21:25 ` Adding an interrupt to a PCI device via an ACPI entry Chris Packham

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=20b215fd-51bd-4450-a2ff-110e88d11e95@alliedtelesis.co.nz \
    --to=chris.packham@alliedtelesis.co.nz \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=x86@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.