Skip to contentSkip to conversation

hdmi sound rerouted?

alsa-devel Clemens Ladisch 4 participants 6 messages Sep 28, 2013 – Oct 8, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 8 lines · Dagg Stompler
Quoted 8 lines
Quoted 3 lines · [email protected] wrote:

card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]

The second one is called "Generic" because your kernel does not (yet) know the hardware.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300 Series] 06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RV635 HDMI Audio [Radeon HD 3600 Series]

These are the HDMI outputs of *two* graphics cards. The first one's model is so new that the driver doesn't know it.

the 3600 doesn't have hdmi socket so I think it is irrelevant for my issue.

The RV635 chip does support HDMI outputs (even if none are actually connected), so the corresponding PCI device shows up here.

Quoted 3 lines
Quoted 1 line
Quoted 1 line

If you update the kernel, you will get two devices named "HDA ATI HDMI".

upgrade to where?

Oops. Even the latest driver lacks the PCI IDs of many HDMI HDA devices (aa50/aa58/aa60/aa68/aa80/aa88/aa90/aa98: Cypress/Juniper/Redwood/Cedar/ Cayman+Antilles/Barts/Turks/Caicos).

Alex, are these devices that require disabling snooping?

Regards,
Clemens

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk

#2 lore raw
Quoted 33 lines

-----Original Message-----
From: Clemens Ladisch [mailto:[email protected]]
Sent: Saturday, September 28, 2013 6:33 PM
To: Dagg Stompler
Cc: [email protected]; Deucher, Alexander; alsa-devel@alsa- project.org
Subject: Re: [Alsa-user] [alsa-devel] hdmi sound rerouted?

Quoted 9 lines · Dagg Stompler
Quoted 9 lines
Quoted 3 lines · [email protected] wrote:

card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]

The second one is called "Generic" because your kernel does not (yet) know the hardware.

Quoted 1 line

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar

HDMI Audio [Radeon HD 5400/6300 Series]

Quoted 1 line
Quoted 1 line
Quoted 1 line

06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RV635

HDMI Audio [Radeon HD 3600 Series]

Quoted 5 lines
Quoted 3 lines

These are the HDMI outputs of *two* graphics cards. The first one's model is so new that the driver doesn't know it.

the 3600 doesn't have hdmi socket so I think it is irrelevant for my issue.

The RV635 chip does support HDMI outputs (even if none are actually connected), so the corresponding PCI device shows up here.

Quoted 1 line
Quoted 1 line
Quoted 1 line

If you update the kernel, you will get two devices named "HDA ATI

HDMI".

Quoted 1 line
Quoted 8 lines
Quoted 1 line

upgrade to where?

Oops. Even the latest driver lacks the PCI IDs of many HDMI HDA devices (aa50/aa58/aa60/aa68/aa80/aa88/aa90/aa98:
Cypress/Juniper/Redwood/Cedar/ Cayman+Antilles/Barts/Turks/Caicos).

Alex, are these devices that require disabling snooping?

Sorry what does snooping mean in this context?

Alex

#3 lore raw
Quoted 7 lines · Alexander
Quoted 5 lines

Even the latest driver lacks the PCI IDs of many HDMI HDA devices (aa50/aa58/aa60/aa68/aa80/aa88/aa90/aa98: Cypress/Juniper/Redwood/Cedar/ Cayman+Antilles/Barts/Turks/Caicos).

Alex, are these devices that require disabling snooping?

Sorry what does snooping mean in this context?

Coherent memory accesses, i.e., not setting bit 18 in the stream descriptor control register; the HDA spec says:

| Traffic Priority (TP):  If set to a 1, the stream will be treated as
| preferred traffic if the underlying bus supports it.  If set to a 0,
| the traffic will be handled on a “best effort” basis.  [...]
| On PCI Express, for example, setting the TP bit to a 1 might cause
| the controller to generate non-snooped isochronous traffic, while
| a PCI implementation may ignore this bit.
| It is permitted to implement this bit as RO if there is no
| controllability available.

So "require" might be wrong, this is just an optimization. Anyway, devices up to aa48 use snooping, while from aaa0 (Tahiti XT) forward, the driver sets TP (<http://git.kernel.org/linus/1815b34a6267>).
The question is, what was the first device to support this?

Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#4 lore raw
In reply to Deucher, Alexander

At Mon, 30 Sep 2013 02:23:22 +0000,

Quoted 36 lines · Alexander
Quoted 36 lines

-----Original Message-----
From: Clemens Ladisch [mailto:[email protected]]
Sent: Saturday, September 28, 2013 6:33 PM
To: Dagg Stompler
Cc: [email protected]; Deucher, Alexander; alsa-devel@alsa- project.org
Subject: Re: [Alsa-user] [alsa-devel] hdmi sound rerouted?

Quoted 9 lines · Dagg Stompler
Quoted 9 lines
Quoted 3 lines · [email protected] wrote:

card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]

The second one is called "Generic" because your kernel does not (yet) know the hardware.

Quoted 1 line

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar

HDMI Audio [Radeon HD 5400/6300 Series]

Quoted 1 line
Quoted 1 line
Quoted 1 line

06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RV635

HDMI Audio [Radeon HD 3600 Series]

Quoted 5 lines
Quoted 3 lines

These are the HDMI outputs of *two* graphics cards. The first one's model is so new that the driver doesn't know it.

the 3600 doesn't have hdmi socket so I think it is irrelevant for my issue.

The RV635 chip does support HDMI outputs (even if none are actually connected), so the corresponding PCI device shows up here.

Quoted 1 line
Quoted 1 line
Quoted 1 line

If you update the kernel, you will get two devices named "HDA ATI

HDMI".

Quoted 2 lines

upgrade to where?

Quoted 8 lines
Quoted 6 lines

Oops. Even the latest driver lacks the PCI IDs of many HDMI HDA devices (aa50/aa58/aa60/aa68/aa80/aa88/aa90/aa98:
Cypress/Juniper/Redwood/Cedar/ Cayman+Antilles/Barts/Turks/Caicos).

Alex, are these devices that require disabling snooping?

Sorry what does snooping mean in this context?

Most of HD-audio controller have a snoop control, but the recent AMD HDMI audio controller don't have the feature, thus the driver must use the non-cached pages. At least, PCI ID 1002:aaa0, aaa8 and aab0 are known to require such.

Now the question is whether all new chips above (aa50,...) require the same workaround, too. Could you check this or forward the inquiry to someone in AMD?

FWIW, such a chip needs to set AZX_DRIVER_ATIHDMI_NS bits in driver_data of pci entries in sound/pci/hda/hda_intel.c.

thanks,

Takashi

#5 lore raw
Quoted 56 lines

-----Original Message-----
From: Takashi Iwai [mailto:[email protected]]
Sent: Monday, September 30, 2013 5:18 AM
To: Deucher, Alexander
Cc: Clemens Ladisch; Dagg Stompler; [email protected]; alsa- [email protected]
Subject: Re: [alsa-devel] [Alsa-user] hdmi sound rerouted?

At Mon, 30 Sep 2013 02:23:22 +0000,

Quoted 6 lines · Alexander
Quoted 6 lines

-----Original Message-----
From: Clemens Ladisch [mailto:[email protected]]
Sent: Saturday, September 28, 2013 6:33 PM
To: Dagg Stompler
Cc: [email protected]; Deucher, Alexander; alsa-

devel@alsa-

Quoted 30 lines
Quoted 30 lines

project.org
Subject: Re: [Alsa-user] [alsa-devel] hdmi sound rerouted?

Quoted 9 lines · Dagg Stompler
Quoted 9 lines
Quoted 3 lines · [email protected] wrote:

card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]

The second one is called "Generic" because your kernel does not (yet) know the hardware.

Quoted 1 line

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar

HDMI Audio [Radeon HD 5400/6300 Series]

Quoted 1 line
Quoted 1 line
Quoted 1 line

06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RV635

HDMI Audio [Radeon HD 3600 Series]

Quoted 5 lines
Quoted 3 lines

These are the HDMI outputs of *two* graphics cards. The first one's model is so new that the driver doesn't know it.

the 3600 doesn't have hdmi socket so I think it is irrelevant for my issue.

The RV635 chip does support HDMI outputs (even if none are actually connected), so the corresponding PCI device shows up here.

Quoted 1 line
Quoted 1 line
Quoted 1 line

If you update the kernel, you will get two devices named "HDA ATI

HDMI".

Quoted 2 lines

upgrade to where?

Quoted 8 lines
Quoted 6 lines

Oops. Even the latest driver lacks the PCI IDs of many HDMI HDA devices (aa50/aa58/aa60/aa68/aa80/aa88/aa90/aa98:
Cypress/Juniper/Redwood/Cedar/ Cayman+Antilles/Barts/Turks/Caicos).

Alex, are these devices that require disabling snooping?

Sorry what does snooping mean in this context?

Quoted 8 lines

Most of HD-audio controller have a snoop control, but the recent AMD HDMI audio controller don't have the feature, thus the driver must use the non-cached pages. At least, PCI ID 1002:aaa0, aaa8 and aab0 are known to require such.

Now the question is whether all new chips above (aa50,...) require the same workaround, too. Could you check this or forward the inquiry to someone in AMD?

According to our internal teams, disabling snooping is only required on the audio parts included in Evergreen and Northern Islands GPUs. Older chips like R7xx (aa48) and newer chips like Southern Islands (aaa0) are able to use snooping. I'm not real familiar with the audio portions of the GPUs so if you need further clarification, let me know.

Alex

Quoted 8 lines

FWIW, such a chip needs to set AZX_DRIVER_ATIHDMI_NS bits in driver_data of pci entries in sound/pci/hda/hda_intel.c.

thanks,

Takashi

#6 lore raw

At Mon, 7 Oct 2013 13:36:24 +0000,

Quoted 62 lines · Alexander
Quoted 62 lines

-----Original Message-----
From: Takashi Iwai [mailto:[email protected]]
Sent: Monday, September 30, 2013 5:18 AM
To: Deucher, Alexander
Cc: Clemens Ladisch; Dagg Stompler; [email protected]; alsa- [email protected]
Subject: Re: [alsa-devel] [Alsa-user] hdmi sound rerouted?

At Mon, 30 Sep 2013 02:23:22 +0000,

Quoted 6 lines · Alexander
Quoted 6 lines

-----Original Message-----
From: Clemens Ladisch [mailto:[email protected]]
Sent: Saturday, September 28, 2013 6:33 PM
To: Dagg Stompler
Cc: [email protected]; Deucher, Alexander; alsa-

devel@alsa-

Quoted 30 lines
Quoted 30 lines

project.org
Subject: Re: [Alsa-user] [alsa-devel] hdmi sound rerouted?

Quoted 9 lines · Dagg Stompler
Quoted 9 lines
Quoted 3 lines · [email protected] wrote:

card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]

The second one is called "Generic" because your kernel does not (yet) know the hardware.

Quoted 1 line

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar

HDMI Audio [Radeon HD 5400/6300 Series]

Quoted 1 line
Quoted 1 line
Quoted 1 line

06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RV635

HDMI Audio [Radeon HD 3600 Series]

Quoted 5 lines
Quoted 3 lines

These are the HDMI outputs of *two* graphics cards. The first one's model is so new that the driver doesn't know it.

the 3600 doesn't have hdmi socket so I think it is irrelevant for my issue.

The RV635 chip does support HDMI outputs (even if none are actually connected), so the corresponding PCI device shows up here.

Quoted 1 line
Quoted 1 line
Quoted 1 line

If you update the kernel, you will get two devices named "HDA ATI

HDMI".

Quoted 2 lines

upgrade to where?

Quoted 8 lines
Quoted 6 lines

Oops. Even the latest driver lacks the PCI IDs of many HDMI HDA devices (aa50/aa58/aa60/aa68/aa80/aa88/aa90/aa98:
Cypress/Juniper/Redwood/Cedar/ Cayman+Antilles/Barts/Turks/Caicos).

Alex, are these devices that require disabling snooping?

Sorry what does snooping mean in this context?

Most of HD-audio controller have a snoop control, but the recent AMD HDMI audio controller don't have the feature, thus the driver must use the non-cached pages. At least, PCI ID 1002:aaa0, aaa8 and aab0 are known to require such.

Quoted 5 lines
Quoted 3 lines

Now the question is whether all new chips above (aa50,...) require the same workaround, too. Could you check this or forward the inquiry to someone in AMD?

According to our internal teams, disabling snooping is only required on the audio parts included in Evergreen and Northern Islands GPUs. Older chips like R7xx (aa48) and newer chips like Southern Islands (aaa0) are able to use snooping. I'm not real familiar with the audio portions of the GPUs so if you need further clarification, let me know.

Thanks for the information.

Though, it's strange that the information doesn't match with what I've heard (and also with what I've tested with a laptop). I've heard that it's Southern Island HDMI that needs the snoop-disablement.

Could you ask again whether it's really Evergreen / Nothern Islands?

thanks,

Takashi

Quoted 13 lines

Alex

Quoted 8 lines

FWIW, such a chip needs to set AZX_DRIVER_ATIHDMI_NS bits in driver_data of pci entries in sound/pci/hda/hda_intel.c.

thanks,

Takashi