Re: Dynamically adding a PCI subfunction

2017-10-12 Thread Bjorn Helgaas
On Mon, Oct 09, 2017 at 10:41:38AM -0400, Ilia Mirkin wrote: > 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 > d

Re: Dynamically adding a PCI subfunction

2017-10-12 Thread Bjorn Helgaas
On Wed, Oct 11, 2017 at 08:54:05AM -0400, Ilia Mirkin wrote: > On Wed, Oct 11, 2017 at 7:47 AM, Bjorn Helgaas wrote: > > On Mon, Oct 09, 2017 at 10:41:38AM -0400, Ilia Mirkin wrote: > >> Hello, > >> > >> As a bit of background, all NVIDIA GPUs since GT215 have an audio > >> subfunction for HDMI(/D

Re: Dynamically adding a PCI subfunction

2017-10-11 Thread Karol Herbst
On Wed, Oct 11, 2017 at 4:18 PM, Ilia Mirkin wrote: > On Wed, Oct 11, 2017 at 9:46 AM, Bjorn Helgaas wrote: >> On Wed, Oct 11, 2017 at 08:54:05AM -0400, Ilia Mirkin wrote: >>> On Wed, Oct 11, 2017 at 7:47 AM, Bjorn Helgaas wrote: >>> > /* do magic */ >>> > nvif_mask(&device->object, 0x088488

Re: Dynamically adding a PCI subfunction

2017-10-11 Thread Ilia Mirkin
On Wed, Oct 11, 2017 at 9:46 AM, Bjorn Helgaas wrote: > On Wed, Oct 11, 2017 at 08:54:05AM -0400, Ilia Mirkin wrote: >> On Wed, Oct 11, 2017 at 7:47 AM, Bjorn Helgaas wrote: >> > /* do magic */ >> > nvif_mask(&device->object, 0x088488, (1 << 25), (1 << 25)); >> > >> > Wow, that *is* inscrutab

Re: Dynamically adding a PCI subfunction

2017-10-11 Thread Ilia Mirkin
On Wed, Oct 11, 2017 at 7:47 AM, Bjorn Helgaas wrote: > On Mon, Oct 09, 2017 at 10:41:38AM -0400, Ilia Mirkin wrote: >> 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 s

Re: Dynamically adding a PCI subfunction

2017-10-09 Thread Christian König
Am 09.10.2017 um 17:57 schrieb Ilia Mirkin: On Mon, Oct 9, 2017 at 11:45 AM, Christian König wrote: Am 09.10.2017 um 16:41 schrieb Ilia Mirkin: 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

Re: Dynamically adding a PCI subfunction

2017-10-09 Thread Ilia Mirkin
On Mon, Oct 9, 2017 at 11:45 AM, Christian König wrote: > Am 09.10.2017 um 16:41 schrieb Ilia Mirkin: >> >> 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, especia

Re: Dynamically adding a PCI subfunction

2017-10-09 Thread Christian König
Am 09.10.2017 um 16:41 schrieb Ilia Mirkin: 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 ena

Dynamically adding a PCI subfunction

2017-10-09 Thread Ilia Mirkin
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 d