From: Bjorn Helgaas <helgaas@kernel.org>
To: "Deucher, Alexander" <Alexander.Deucher@amd.com>
Cc: "Quan, Evan" <Evan.Quan@amd.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"bhelgaas@google.com" <bhelgaas@google.com>,
"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH] PCI: Create device links for AMD integrated USB xHCI and UCSI controllers
Date: Wed, 15 Sep 2021 16:45:15 -0500 [thread overview]
Message-ID: <20210915214515.GA1541334@bjorn-Precision-5520> (raw)
In-Reply-To: <BL1PR12MB51440CACA2F90377687A1C12F7DB9@BL1PR12MB5144.namprd12.prod.outlook.com>
On Wed, Sep 15, 2021 at 04:39:36PM +0000, Deucher, Alexander wrote:
> [Public]
>
> > -----Original Message-----
> > From: Bjorn Helgaas <helgaas@kernel.org>
> > Sent: Tuesday, September 14, 2021 11:29 AM
> > To: Quan, Evan <Evan.Quan@amd.com>
> > Cc: linux-pci@vger.kernel.org; bhelgaas@google.com; Deucher, Alexander
> > <Alexander.Deucher@amd.com>; stable@vger.kernel.org
> > Subject: Re: [PATCH] PCI: Create device links for AMD integrated USB xHCI
> > and UCSI controllers
> >
> > On Fri, Sep 03, 2021 at 02:33:11PM +0800, Evan Quan wrote:
> > > Latest AMD GPUs have built-in USB xHCI and UCSI controllers. Add
> > > device link support for them.
> > >
> > > Cc: stable@vger.kernel.org
> > > Signed-off-by: Evan Quan <evan.quan@amd.com>
> >
> > Applied to pci/pm for v5.16, thanks!
>
> Any chance we can get this applied for 5.15/stable? This fixes
> runtime pm problems on GPU boards with integrated USB.
> https://gitlab.freedesktop.org/drm/amd/-/issues/1704
Thanks for the link. It's always nice to have a clue about what
problems a quirk fixes.
I added the link to the commit log and moved the whole thing to
for-linus for v5.15.
> Thanks,
>
> Alex
>
> >
> > > ---
> > > drivers/pci/quirks.c | 9 +++++++--
> > > 1 file changed, 7 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index
> > > dea10d62d5b9..f0c5dd3406a1 100644
> > > --- a/drivers/pci/quirks.c
> > > +++ b/drivers/pci/quirks.c
> > > @@ -5338,7 +5338,7 @@
> > DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID,
> > > PCI_CLASS_MULTIMEDIA_HD_AUDIO, 8,
> > quirk_gpu_hda);
> > >
> > > /*
> > > - * Create device link for NVIDIA GPU with integrated USB xHCI Host
> > > + * Create device link for GPUs with integrated USB xHCI Host
> > > * controller to VGA.
> > > */
> > > static void quirk_gpu_usb(struct pci_dev *usb) @@ -5347,9 +5347,11 @@
> > > static void quirk_gpu_usb(struct pci_dev *usb) }
> > > DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_NVIDIA,
> > PCI_ANY_ID,
> > > PCI_CLASS_SERIAL_USB, 8, quirk_gpu_usb);
> > > +DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_ATI, PCI_ANY_ID,
> > > + PCI_CLASS_SERIAL_USB, 8, quirk_gpu_usb);
> > >
> > > /*
> > > - * Create device link for NVIDIA GPU with integrated Type-C UCSI
> > > controller
> > > + * Create device link for GPUs with integrated Type-C UCSI controller
> > > * to VGA. Currently there is no class code defined for UCSI device over PCI
> > > * so using UNKNOWN class for now and it will be updated when UCSI
> > > * over PCI gets a class code.
> > > @@ -5362,6 +5364,9 @@ static void quirk_gpu_usb_typec_ucsi(struct
> > > pci_dev *ucsi)
> > DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID,
> > > PCI_CLASS_SERIAL_UNKNOWN, 8,
> > > quirk_gpu_usb_typec_ucsi);
> > > +DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_ATI, PCI_ANY_ID,
> > > + PCI_CLASS_SERIAL_UNKNOWN, 8,
> > > + quirk_gpu_usb_typec_ucsi);
> > >
> > > /*
> > > * Enable the NVIDIA GPU integrated HDA controller if the BIOS left
> > > it
> > > --
> > > 2.29.0
> > >
prev parent reply other threads:[~2021-09-15 21:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-03 6:33 [PATCH] PCI: Create device links for AMD integrated USB xHCI and UCSI controllers Evan Quan
2021-09-03 19:55 ` Bjorn Helgaas
2021-09-07 16:09 ` Deucher, Alexander
2021-09-07 17:35 ` Bjorn Helgaas
2021-09-14 12:59 ` Deucher, Alexander
2021-09-14 13:48 ` Bjorn Helgaas
2021-09-14 15:28 ` Bjorn Helgaas
2021-09-15 16:39 ` Deucher, Alexander
2021-09-15 21:45 ` Bjorn Helgaas [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=20210915214515.GA1541334@bjorn-Precision-5520 \
--to=helgaas@kernel.org \
--cc=Alexander.Deucher@amd.com \
--cc=Evan.Quan@amd.com \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
--cc=stable@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox