Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] No Sound w/ Genkernel 6.5.1 on Ryzen 7 6800H
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
SDNick484
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 231

PostPosted: Mon Sep 04, 2023 3:27 pm    Post subject: [Solved] No Sound w/ Genkernel 6.5.1 on Ryzen 7 6800H Reply with quote

I have a laptop (Thinkbook 14P G3 ARH) with a Ryzen 7 6800H that I have been trying to configure Gentoo on. With the current Gentoo live USB, sound works fine, but when I compile a kernel (=gentoo-sources-6.5.1) using genkernel, I am not seeing any sound cards (i.e. aplay: device_list:277: no soundcards found...). I tried grabbing the config that the live USB uses (kernel 6.1.46) however that also results in no soundcard found. I have read through both Ryzen & AMDGPU, but I don't see what I'm missing. My current .config is here. To be clear, this isn't an alsa/pulse config issue, rather the devices just aren't present (i.e. if I cat /proc/bus/input/devices, they're not listed).

My current kernel boot parameters are: "splash i8042.nopnp=1 pci=nocrs amdgpu.dc=1 amd.audio=1" (the i8042 & pci entries are to address a mouse bug; the amd entries were just things I am trying to fix the audio).

The relevant device info from lspci -vv is below:
Code:

34:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
        Subsystem: Lenovo Rembrandt Radeon High Definition Audio Controller
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin B routed to IRQ 110
        IOMMU group: 18
        Region 0: Memory at 987c8000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [64] Express (v2) Legacy Endpoint, MSI 00
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
                LnkCap: Port #0, Speed 16GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 16GT/s, Width x16
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR-
                         10BitTagComp+ 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix+, MaxEETLPPrefixes 1
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- 10BitTagReq- OBFF Disabled,
                         AtomicOpsCtl: ReqEn+
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete- EqualizationPhase1-
                         EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
                Address: 00000000fee00000  Data: 0000
        Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Capabilities: [2a0 v1] Access Control Services
                ACSCap: SrcValid- TransBlk- ReqRedir- CmpltRedir- UpstreamFwd- EgressCtrl- DirectTrans-
                ACSCtl: SrcValid- TransBlk- ReqRedir- CmpltRedir- UpstreamFwd- EgressCtrl- DirectTrans-
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

34:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 60)
        Subsystem: Lenovo ACP/ACP3X/ACP6x Audio Coprocessor
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin B routed to IRQ 255
        IOMMU group: 22
        Region 0: Memory at 98780000 (32-bit, non-prefetchable) [disabled] [size=256K]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [64] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0W
                DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
                LnkCap: Port #0, Speed 16GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 16GT/s, Width x16
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR-
                         10BitTagComp+ 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix+, MaxEETLPPrefixes 1
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- TPHComp- ExtTPHComp-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- 10BitTagReq- OBFF Disabled,
                         AtomicOpsCtl: ReqEn-
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete- EqualizationPhase1-
                         EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Capabilities: [2a0 v1] Access Control Services
                ACSCap: SrcValid- TransBlk- ReqRedir- CmpltRedir- UpstreamFwd- EgressCtrl- DirectTrans-
                ACSCtl: SrcValid- TransBlk- ReqRedir- CmpltRedir- UpstreamFwd- EgressCtrl- DirectTrans-
        Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x

34:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
        Subsystem: Lenovo Family 17h/19h HD Audio Controller
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin C routed to IRQ 111
        IOMMU group: 23
        Region 0: Memory at 987c0000 (32-bit, non-prefetchable) [size=32K]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [64] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0W
                DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
                LnkCap: Port #0, Speed 16GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 16GT/s, Width x16
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR-
                         10BitTagComp+ 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix+, MaxEETLPPrefixes 1
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- TPHComp- ExtTPHComp-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- 10BitTagReq- OBFF Disabled,
                         AtomicOpsCtl: ReqEn-
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete- EqualizationPhase1-
                         EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
                Address: 00000000fee00000  Data: 0000
        Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Capabilities: [2a0 v1] Access Control Services
                ACSCap: SrcValid- TransBlk- ReqRedir- CmpltRedir- UpstreamFwd- EgressCtrl- DirectTrans-
                ACSCtl: SrcValid- TransBlk- ReqRedir- CmpltRedir- UpstreamFwd- EgressCtrl- DirectTrans-
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel


Last edited by SDNick484 on Mon Sep 04, 2023 11:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5790
Location: Bavaria

PostPosted: Mon Sep 04, 2023 4:15 pm    Post subject: Reply with quote

SDNick484,

I can see in your kernel .config you have already - almost - everything enabled as <M>odule for your sound, but not
Code:
# CONFIG_SOUNDWIRE_AMD is not set

If this does not help, then you are in a good position: You have a working Linux system == current Gentoo live USB. Here you can ask which modules are loaded ("lsmod") and can compare it (completely; not only sound modules) with your non-working "lsmod". You can also compare both system-logs with "dmesg". Check also both kernel command line parameters.
Back to top
View user's profile Send private message
SDNick484
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 231

PostPosted: Mon Sep 04, 2023 5:43 pm    Post subject: Reply with quote

pietinger wrote:
SDNick484,

I can see in your kernel .config you have already - almost - everything enabled as <M>odule for your sound, but not
Code:
# CONFIG_SOUNDWIRE_AMD is not set

If this does not help, then you are in a good position: You have a working Linux system == current Gentoo live USB. Here you can ask which modules are loaded ("lsmod") and can compare it (completely; not only sound modules) with your non-working "lsmod". You can also compare both system-logs with "dmesg". Check also both kernel command line parameters.


Thanks, let me try setting that and rebuild, will post shortly.

I did collect the live USB modules and the ones from a prior kernel to compare and nothing major/obvious jumped out (I suspect it might be some sort of module parameter missing, but I'm not clear how it's detected on the live USB). After this new kernel compiles, I'll try the comparison again. As far as boot parameters are concerned, this is what I see from the live USB.
Code:

"overlayfs nodhcp cdroot BOOT_IMAGE=/boot/gentoo looptype=squashfs loop=/image.squashfs"

I also captured the dmesg from the live USB which I posted here.

EDIT: Issue still presen with CONFIG_SOUNDWIRE_AMD; new kernel config is here. I am rebooting to make sure I have the Gentoo live USB modules captured correctly, will post the modules shortly.
Back to top
View user's profile Send private message
SDNick484
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 231

PostPosted: Mon Sep 04, 2023 8:33 pm    Post subject: Reply with quote

Still no sound; here's the module comparison:

Here is a sorted list of all the modules running with the live USB (sound works):
Code:

Module                  Size  Used by
acpi_als               20480  1
acpi_cpufreq           28672  0
acpi_tad               16384  0
amd_pmc                28672  0
amdgpu               9134080  27
binfmt_misc            24576  1
bluetooth             774144  6 btrtl,btmtk,btintel,btbcm,btusb
btbcm                  24576  1 btusb
btintel                45056  1 btusb
btmtk                  16384  1 btusb
btrtl                  28672  1 btusb
btusb                  65536  0
ccp                   102400  1 kvm_amd
cec                    53248  1 drm_display_helper
cfg80211              958464  3 iwlmvm,iwlwifi,mac80211
cqhci                  32768  1 sdhci_pci
crc32_pclmul           16384  0
crc32c_intel           24576  2
crct10dif_pclmul       16384  1
dm_multipath           40960  0
drm                   475136  21 gpu_sched,drm_kms_helper,drm_display_helper,drm_buddy,amdgpu,drm_ttm_helper,ttm
drm_buddy              20480  1 amdgpu
drm_display_helper    139264  1 amdgpu
drm_kms_helper        147456  4 drm_display_helper,amdgpu
drm_ttm_helper         16384  1 amdgpu
ecdh_generic           16384  1 bluetooth
edac_mce_amd           40960  0
firmware_attributes_class    16384  1 think_lmi
fuse                  159744  2
ghash_clmulni_intel    16384  0
gpu_sched              40960  1 amdgpu
hid_multitouch         32768  0
i2c_algo_bit           16384  1 amdgpu
i2c_hid                32768  1 i2c_hid_acpi
i2c_hid_acpi           16384  0
i2c_piix4              28672  0
ideapad_laptop         36864  0
industrialio           90112  3 industrialio_triggered_buffer,acpi_als,kfifo_buf
industrialio_triggered_buffer    16384  1 acpi_als
intel_rapl_common      28672  1 intel_rapl_msr
intel_rapl_msr         20480  0
iommu_v2               24576  1 amdgpu
irqbypass              16384  1 kvm
iwlmvm                503808  0
iwlwifi               368640  1 iwlmvm
joydev                 28672  0
k10temp                16384  0
kfifo_buf              16384  1 industrialio_triggered_buffer
kvm                   950272  1 kvm_amd
kvm_amd               155648  0
ledtrig_audio          16384  1 snd_hda_codec_generic
libarc4                16384  1 mac80211
mac80211             1146880  1 iwlmvm
mc                     61440  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
mmc_core              180224  3 sdhci,cqhci,sdhci_pci
nvme                   49152  1
nvme_core             139264  2 nvme
pcspkr                 16384  0
platform_profile       16384  1 ideapad_laptop
qrtr                   40960  4
rapl                   16384  0
rfkill                 24576  8 iwlmvm,bluetooth,ideapad_laptop,cfg80211
sdhci                  73728  1 sdhci_pci
sdhci_pci              69632  0
serio_raw              20480  0
sha512_ssse3           49152  0
snd                   102400  16 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
snd_acp_config         16384  1 snd_rn_pci_acp3x
snd_hda_codec         143360  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_codec_generic    90112  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     77824  1
snd_hda_codec_realtek   147456  1
snd_hda_core           90112  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hda_intel          49152  2
snd_hrtimer            16384  1
snd_hwdep              16384  1 snd_hda_codec
snd_intel_dspcfg       32768  1 snd_hda_intel
snd_intel_sdw_acpi     20480  1 snd_intel_dspcfg
snd_pci_acp3x          20480  0
snd_pci_acp5x          20480  0
snd_pcm               131072  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_rn_pci_acp3x       20480  0
snd_seq                86016  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
snd_seq_dummy          16384  0
snd_soc_acpi           16384  1 snd_acp_config
snd_timer              36864  3 snd_seq,snd_hrtimer,snd_pcm
soundcore              16384  1 snd
sp5100_tco             20480  0
sparse_keymap          16384  1 ideapad_laptop
think_lmi              36864  0
thunderbolt           344064  0
ttm                    77824  2 amdgpu,drm_ttm_helper
typec                  69632  1 typec_ucsi
typec_ucsi             45056  1 ucsi_acpi
uas                    32768  0
ucsi_acpi              16384  0
uvcvideo              122880  0
video                  61440  2 amdgpu,ideapad_laptop
videobuf2_common       61440  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
videobuf2_memops       20480  1 videobuf2_vmalloc
videobuf2_v4l2         28672  1 uvcvideo
videobuf2_vmalloc      20480  1 uvcvideo
videodev              241664  3 videobuf2_v4l2,uvcvideo,videobuf2_common
wmi                    28672  4 video,wmi_bmof,ideapad_laptop,think_lmi
wmi_bmof               16384  0


Here's a sorted list of modules running when I boot my kernel (no soundcards):
Code:

Module                  Size  Used by
8021q                  49152  0
ac97_bus               12288  1 snd_soc_core
acpi_als               16384  1
acpi_tad               20480  0
amd_pmc                36864  0
amdgpu              10895360  10
amdxcp                 12288  1 amdgpu
binfmt_misc            28672  1
bluetooth            1130496  43 btrtl,btintel,btbcm,bnep,btusb,rfcomm
bnep                   32768  2
btbcm                  24576  1 btusb
btintel                57344  1 btusb
btrtl                  28672  1 btusb
btusb                  73728  0
cec                    77824  1 drm_display_helper
cfg80211             1331200  3 iwlmvm,iwlwifi,mac80211
cqhci                  32768  1 sdhci_pci
crc32c_generic         12288  0
crc64                  16384  1 crc64_rocksoft
crc64_rocksoft         16384  1 t10_pi
drm                   778240  14 gpu_sched,drm_kms_helper,drm_suballoc_helper,drm_display_helper,drm_buddy,amdgpu,drm_ttm_helper,ttm,amdxcp
drm_buddy              20480  1 amdgpu
drm_display_helper    229376  1 amdgpu
drm_kms_helper        266240  4 drm_display_helper,amdgpu
drm_suballoc_helper    12288  1 amdgpu
drm_ttm_helper         12288  1 amdgpu
edac_mce_amd           40960  0
efi_pstore             12288  0
efivarfs               24576  1
ext4                 1110016  1
fat                   102400  1 vfat
firmware_attributes_class    12288  1 think_lmi
garp                   16384  1 8021q
gpu_sched              57344  1 amdgpu
hid_multitouch         32768  0
i2c_designware_core    45056  1 i2c_designware_platform
i2c_designware_platform    28672  0
i2c_hid                36864  1 i2c_hid_acpi
i2c_hid_acpi           12288  0
i2c_piix4              32768  0
ideapad_laptop         53248  0
industrialio          135168  3 industrialio_triggered_buffer,acpi_als,kfifo_buf
industrialio_triggered_buffer    12288  1 acpi_als
intel_rapl_common      36864  1 intel_rapl_msr
intel_rapl_msr         20480  0
iommu_v2               24576  1 amdgpu
iosf_mbi               24576  3 i2c_designware_platform,intel_rapl_common,sdhci_pci
irqbypass              12288  1 kvm
iwlmvm                688128  0
iwlwifi               475136  1 iwlmvm
jbd2                  200704  1 ext4
joydev                 24576  0
k10temp                12288  0
kfifo_buf              12288  1 industrialio_triggered_buffer
kvm                  1368064  1 kvm_amd
kvm_amd               180224  0
libarc4                12288  1 mac80211
llc                    16384  2 stp,garp
mac80211             1531904  1 iwlmvm
mbcache                16384  1 ext4
mc                     94208  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
mmc_core              253952  3 sdhci,cqhci,sdhci_pci
mrp                    20480  1 8021q
nvme                   57344  4
nvme_core             192512  5 nvme
pcspkr                 12288  0
platform_profile       12288  1 ideapad_laptop
rapl                   20480  0
rc_core                73728  1 cec
rfcomm                 98304  16
rfkill                 40960  7 iwlmvm,bluetooth,ideapad_laptop,cfg80211
roles                  16384  1 typec_ucsi
sd_mod                 86016  1
sdhci                  90112  1 sdhci_pci
sdhci_pci              90112  0
serio_raw              16384  0
snd                   151552  12 snd_seq,snd_seq_device,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
snd_acp6x_pdm_dma      12288  0
snd_acp_config         16384  6 snd_rn_pci_acp3x,snd_pci_acp6x,snd_pci_acp5x,snd_sof_amd_rembrandt,snd_acp_pci,snd_pci_ps
snd_acp_pci            12288  0
snd_compress           28672  1 snd_soc_core
snd_hda_codec         221184  1 snd_hda_intel
snd_hda_core          143360  2 snd_hda_intel,snd_hda_codec
snd_hda_intel          61440  0
snd_hrtimer            12288  1
snd_hwdep              20480  1 snd_hda_codec
snd_intel_dspcfg       24576  1 snd_hda_intel
snd_pci_acp3x          16384  0
snd_pci_acp5x          16384  0
snd_pci_acp6x          16384  0
snd_pci_ps             24576  0
snd_pcm               192512  11 snd_sof_amd_acp,snd_pci_acp6x,snd_hda_intel,snd_hda_codec,snd_sof,snd_acp6x_pdm_dma,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pci_ps
snd_rn_pci_acp3x       20480  0
snd_rpl_pci_acp6x      16384  0
snd_seq               122880  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
snd_seq_dummy          12288  0
snd_soc_acp6x_mach     24576  0
snd_soc_acpi           12288  2 snd_sof_amd_acp,snd_acp_config
snd_soc_core          434176  4 snd_soc_acp6x_mach,snd_sof,snd_acp6x_pdm_dma,snd_soc_dmic
snd_soc_dmic           12288  0
snd_sof               245760  2 snd_sof_amd_acp,snd_sof_pci
snd_sof_amd_acp        53248  1 snd_sof_amd_rembrandt
snd_sof_amd_rembrandt    16384  0
snd_sof_pci            24576  1 snd_sof_amd_rembrandt
snd_sof_utils          16384  1 snd_sof
snd_sof_xtensa_dsp     16384  1 snd_sof_amd_acp
snd_timer              53248  3 snd_seq,snd_hrtimer,snd_pcm
soundcore              16384  1 snd
sp5100_tco             16384  0
sparse_keymap          12288  1 ideapad_laptop
stp                    12288  1 garp
t10_pi                 20480  2 sd_mod,nvme_core
think_lmi              36864  0
ttm                   106496  2 amdgpu,drm_ttm_helper
typec                 110592  1 typec_ucsi
typec_ucsi             57344  1 ucsi_acpi
uas                    32768  0
ucsi_acpi              12288  0
usb_storage            86016  2 uas
uvc                    12288  1 uvcvideo
uvcvideo              143360  0
vfat                   20480  2
video                  65536  2 amdgpu,ideapad_laptop
videobuf2_common       77824  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         36864  1 uvcvideo
videobuf2_vmalloc      20480  1 uvcvideo
videodev              344064  2 videobuf2_v4l2,uvcvideo
wmi                    40960  4 video,wmi_bmof,ideapad_laptop,think_lmi
wmi_bmof               12288  0
xhci_hcd              380928  1 xhci_pci
xhci_pci               24576  0
xhci_pci_renesas       16384  1 xhci_pci


These are the modules loaded on the USB but not loaded on mine (some are present, just not loaded - manually loading them doesn't help):
Code:

acpi_cpufreq
btmtk
ccp
crc32_pclmul
crc32c_intel
crct10dif_pclmul
dm_multipath
ecdh_generic
fuse
ghash_clmulni_intel
i2c_algo_bit
ledtrig_audio
qrtr
sha512_ssse3
snd_hda_codec_generic
snd_hda_codec_hdmi
snd_hda_codec_realtek
snd_intel_sdw_acpi
thunderbolt


The four "snd_*" modules are all built but not loaded. Manually loading them doesn't fix the issue. After manually loading any missing modules present on the USB, the gap of those present on the live USB but missing on the my kernel is:
Code:

acpi_cpufreq
ccp
crc32_pclmul
crc32c_intel
crct10dif_pclmul
ecdh_generic
ghash_clmulni_intel
i2c_algo_bit
sha512_ssse3
thunderbolt



Finally, here are the modules present on my kernel, but not on the USB:
Code:

8021q
ac97_bus
amdxcp
bnep
crc32c_generic
crc64
crc64_rocksoft
drm_suballoc_helper
efi_pstore
efivarfs
ext4
fat
garp
i2c_designware_core
i2c_designware_platform
iosf_mbi
jbd2
llc
mbcache
mrp
rc_core
rfcomm
roles
sd_mod
snd_acp6x_pdm_dma
snd_acp_pci
snd_compress
snd_pci_acp6x
snd_pci_ps
snd_rpl_pci_acp6x
snd_soc_acp6x_mach
snd_soc_core
snd_soc_dmic
snd_sof
snd_sof_amd_acp
snd_sof_amd_rembrandt
snd_sof_pci
snd_sof_utils
snd_sof_xtensa_dsp
stp
t10_pi
usb_storage
uvc
vfat
xhci_hcd
xhci_pci
xhci_pci_renesas
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5790
Location: Bavaria

PostPosted: Mon Sep 04, 2023 10:35 pm    Post subject: Reply with quote

First of all I would like to ask you if you have edited the .config file ?

(If yes, please read: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Never_edit_.config ... and do what Neddy said: Throw it away)

As already said you have enabled all possible sound modules in your kernel and therefore I searched related options which are compiled static = built-in the kernel. I have found only one:
Code:
CONFIG_AMD_IOMMU=y
CONFIG_AMD_IOMMU_V2=m

CONFIG_INTEL_IOMMU=y

Please enable AMD_IOMMU_V2 also static <*> into your kernel (you dont need INTEL; you might disable it).

If this does not help. then please install our (stable) binary distribution kernel: "emerge gentoo-kernel-bin" (if you have grub pls dont forget to do also a "grub-mkconfig" after this) and boot into this kernel. Check if your sound works. IF YES:

AND IF

you want to use this config for a 6.5.1 kernel you have to do a "make oldconfig" (and not only copying it - please tell me if you need help here).
Back to top
View user's profile Send private message
SDNick484
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 231

PostPosted: Mon Sep 04, 2023 11:01 pm    Post subject: Reply with quote

pietinger wrote:
First of all I would like to ask you if you have edited the .config file ?

(If yes, please read: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Never_edit_.config ... and do what Neddy said: Throw it away)

As already said you have enabled all possible sound modules in your kernel and therefore I searched related options which are compiled static = built-in the kernel. I have found only one:
Code:
CONFIG_AMD_IOMMU=y
CONFIG_AMD_IOMMU_V2=m

CONFIG_INTEL_IOMMU=y

Please enable AMD_IOMMU_V2 also static <*> into your kernel (you dont need INTEL; you might disable it).

If this does not help. then please install our (stable) binary distribution kernel: "emerge gentoo-kernel-bin" (if you have grub pls dont forget to do also a "grub-mkconfig" after this) and boot into this kernel. Check if your sound works. IF YES:

AND IF

you want to use this config for a 6.5.1 kernel you have to do a "make oldconfig" (and not only copying it - please tell me if you need help here).


Don't worry, I never directly modify my config.

Thanks again for the assistance; I found my issue. Turns out, one of my kernel parameters was causing the issue (I'm not exactly sure which, but I suspect it was either "i8042.nopnp=1" or "pci=nocrs"). Those were being specified because of an old bug that caused the trackpad to not work in an older kernel (which is apparently fixed).

I ended up rebuilding using gentoo-sources-6.1.46 with the live USB config and removing those parameters and everything worked. I built it again with 6.5.1 based on that same config and again, sounds (& mouse) work without those parameters so I'm all set.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5790
Location: Bavaria

PostPosted: Tue Sep 05, 2023 12:23 am    Post subject: Reply with quote

SDNick484 wrote:
I found my issue. Turns out, one of my kernel parameters was causing the issue [...]

Happy to hear that :D

... and thank you for your report !

Have fun with gentoo ! 8)
Back to top
View user's profile Send private message
SDNick484
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 231

PostPosted: Tue Sep 05, 2023 12:54 am    Post subject: Reply with quote

pietinger wrote:
SDNick484 wrote:
I found my issue. Turns out, one of my kernel parameters was causing the issue [...]

Happy to hear that :D

... and thank you for your report !

Have fun with gentoo ! 8)


Next year will mark 20 years of fun with Gentoo for me!
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5790
Location: Bavaria

PostPosted: Tue Sep 05, 2023 10:13 am    Post subject: Reply with quote

SDNick484 wrote:
Next year will mark 20 years of fun with Gentoo for me!

Hehe ... I will need 10 months more ... 8O
Back to top
View user's profile Send private message
o5gmmob8
l33t
l33t


Joined: 17 Oct 2003
Posts: 617

PostPosted: Tue May 20, 2025 3:17 pm    Post subject: no sound - HP laptop - AMD Ryzen Reply with quote

I have no sound with the internal speakers or headphones, bluetooth works fine.

I referenced:
https://forums.gentoo.org/viewtopic-t-1164949-start-0.html

https://wiki.gentoo.org/wiki/HP_Elitebook_845_G10


runing:
Code:
hwinfo | grep CSC3551 -> no output


Code:
i2cdetect -r -a 1 -> Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory

I appear to have no i2c device notes at all.

I am using a distribution kernel, gentoo-kernel. The one thing that stood out to me was that my configuration does not have CONFIG_AMD_IOMMUV2 set. It only has CONFIG_AMD_IOMMU set.


Code:
root@workstation #dmesg | grep -i sound
[    9.882837] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:08.1/0000:03:00.1/sound/card0/input14
[    9.882867] input: HD-Audio Generic HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:08.1/0000:03:00.1/sound/card0/input15
[    9.882881] input: HD-Audio Generic HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:08.1/0000:03:00.1/sound/card0/input16
[    9.975402] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1/input17
[   10.182091] input: HD-Audio Generic Headphone as /devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1/input18


Code:
root@workstation-PUVXPD31WKP1JX #lspci | grep -i audio
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
03:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 71)
03:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h/1ah HD Audio Controller


Would you advise rebuilding the kernel with iommu v2 set? Or, is there something else I should try?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5790
Location: Bavaria

PostPosted: Tue May 20, 2025 5:57 pm    Post subject: Re: no sound - HP laptop - AMD Ryzen Reply with quote

o5gmmob8 wrote:
Would you advise rebuilding the kernel with iommu v2 set? Or, is there something else I should try?

Kernel 6.6 was the last version with CONFIG_AMD_IOMMU_V2. Since 6.7 there is only CONFIG_AMD_IOMMU ;-)

For more investigation (best in a new thread) we would need more information: The output of "dmesg" after booting the distribution kernel + "emerge --info" + "lspci -nnk" (complete). Please note the reference to “wgetpaste” here: https://wiki.gentoo.org/wiki/User:Pietinger/Overview_of_System_Information
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
o5gmmob8
l33t
l33t


Joined: 17 Oct 2003
Posts: 617

PostPosted: Tue May 20, 2025 8:39 pm    Post subject: Reply with quote

I meant to start it in a new thread, that aside, here that is:
https://forums.gentoo.org/viewtopic-p-8862363.html#8862363
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



OSZAR »