linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Dynamically adding a PCI subfunction
@ 2017-10-09 14:41 Ilia Mirkin
  2017-10-09 15:45 ` Christian König
  2017-10-11 11:47 ` Bjorn Helgaas
  0 siblings, 2 replies; 9+ messages in thread
From: Ilia Mirkin @ 2017-10-09 14:41 UTC (permalink / raw)
  To: Linux PCI; +Cc: Bjorn Helgaas, dri-devel@lists.freedesktop.org, Ben Skeggs

Hello,

As a bit of background, all NVIDIA GPUs since GT215 have an audio
subfunction for HDMI(/DP) audio to be sent to the sink. This generally
works.

However some, especially laptop, devices come up with that function
disabled. We have a quirk to enable it when coming back from runpm,
but that doesn't help the init case. Basically we have to write a bit
to the PCI config space:

https://github.com/torvalds/linux/blob/v4.12/drivers/gpu/drm/nouveau/nouveau_drm.c#L783

(MMIO 0x88000 is an alias for the PCI config space)

This works for runtime pm resume, since the device was originally
there and we just have to make sure the underlying device agrees with
it, but when it's missing on boot, we have to convince linux that it
exists, bind a driver, etc.

What's the best way of going about doing that?

Thanks,

  -ilia

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-10-11 14:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-09 14:41 Dynamically adding a PCI subfunction Ilia Mirkin
2017-10-09 15:45 ` Christian König
2017-10-09 15:57   ` Ilia Mirkin
2017-10-09 16:06     ` Christian König
2017-10-11 11:47 ` Bjorn Helgaas
2017-10-11 12:54   ` Ilia Mirkin
2017-10-11 13:46     ` Bjorn Helgaas
2017-10-11 14:18       ` Ilia Mirkin
2017-10-11 14:53         ` Karol Herbst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).