[Hp Omen 15 - amdgpu + nouveau] No/garbled output over HDMI
Hi,
New user of nouveau here. Testing on a laptop, HP Omen 15 with Ryzen 4600H + NVidia 1660 Ti. Display over the laptop screen connected to amdgpu works while the HDMI port connected to NVidia does not.
xrandr has following output:
$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x54 cap: 0x9, Source Output, Sink Offload crtcs: 4 outputs: 1 associated providers: 1 name:Unknown AMD Radeon GPU @ pci:0000:07:00.0
Provider 1: id: 0x85 cap: 0x2, Sink Output crtcs: 4 outputs: 3 associated providers: 1 name:modesetting
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 60.02*+ 39.98
1680x1050 60.02
1280x1024 60.02
1440x900 60.02
1280x800 60.02
1280x720 60.02
1024x768 60.02
800x600 60.02
640x480 60.02
HDMI-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
Initially tried Linux 5.8, there were many errors in dmesg. Tried with Linux 5.10, there is one error but it does not work.
[ 20.772329] nouveau 0000:01:00.0: fifo: fault 09 [PHYS_WRITE] at 000000017fef0000 engine c0 [BAR2] client 08 [HUB/HOST_CPU_NB] reason 0d [REGION_VIOLATION] on channel -1 [0000000000 unknown]
[ 20.796928] nouveau 0000:01:00.0: fifo: fault 09 [PHYS_WRITE] at 000000017fef0000 engine c0 [BAR2] client 08 [HUB/HOST_CPU_NB] reason 0d [REGION_VIOLATION] on channel -1 [0000000000 unknown]
[ 20.897235] ------------[ cut here ]------------
[ 20.897241] nouveau 0000:01:00.0: timeout
[ 20.897340] WARNING: CPU: 8 PID: 159 at drivers/gpu/drm/nouveau/nvkm/falcon/v1.c:247 nvkm_falcon_v1_wait_for_halt+0xbe/0xd0 [nouveau]
[ 20.897342] Modules linked in: ccm rfcomm cmac algif_hash algif_skcipher af_alg bnep uvcvideo btusb btrtl videobuf2_vmalloc btbcm videobuf2_memops btintel videobuf2_v4l2 videobuf2_common bluetooth videodev ecdh_generic mc ecc snd_acp3x_pdm_dma snd_acp3x_rn snd_soc_dmic joydev snd_hda_codec_realtek binfmt_misc snd_hda_codec_generic amdgpu ledtrig_audio edac_mce_amd snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec kvm_amd snd_hda_core nouveau iwlmvm kvm mac80211 crct10dif_pclmul snd_seq_midi nls_iso8859_1 snd_seq_midi_event snd_hwdep ghash_clmulni_intel soundwire_bus iommu_v2 libarc4 mxm_wmi snd_rawmidi gpu_sched input_leds hp_wmi aesni_intel snd_soc_core crypto_simd cryptd ttm glue_helper snd_compress snd_seq ac97_bus snd_pcm_dmaengine rapl iwlwifi serio_raw hid_multitouch sparse_keymap wmi_bmof efi_pstore drm_kms_helper snd_pcm cec snd_rn_pci_acp3x rc_core snd_seq_device k10temp i2c_algo_bit snd_timer
[ 20.897420] snd_pci_acp3x fb_sys_fops ccp syscopyarea sysfillrect snd cfg80211 sysimgblt ucsi_ccg ucsi_acpi soundcore typec_ucsi typec mac_hid acpi_tad sch_fq_codel parport_pc ppdev lp parport drm ip_tables x_tables autofs4 hid_generic crc32_pclmul i2c_piix4 sdhci_pci ahci nvme libahci cqhci nvme_core r8169 sdhci realtek i2c_nvidia_gpu xhci_pci xhci_pci_renesas wmi video i2c_hid hid
[ 20.897466] CPU: 8 PID: 159 Comm: kworker/8:1 Tainted: G W 5.10.0-1008-oem #9-Ubuntu
[ 20.897468] Hardware name: HP OMEN Laptop 15-en0xxx/8786, BIOS F.07 09/16/2020
[ 20.897476] Workqueue: pm pm_runtime_work
[ 20.897525] RIP: 0010:nvkm_falcon_v1_wait_for_halt+0xbe/0xd0 [nouveau]
[ 20.897528] Code: 8b 40 10 48 8b 78 10 4c 8b 67 50 4d 85 e4 75 03 4c 8b 27 e8 74 af 44 e5 4c 89 e2 48 c7 c7 be d2 29 c1 48 89 c6 e8 73 0c 83 e5 <0f> 0b eb a9 e8 69 94 88 e5 66 0f 1f 84 00 00 00 00 00 0f 1f 44 00
[ 20.897530] RSP: 0018:ffffaf89404db900 EFLAGS: 00010286
[ 20.897532] RAX: 0000000000000000 RBX: ffffffffffffff92 RCX: 0000000000000027
[ 20.897534] RDX: 0000000000000027 RSI: 00000000ffffdfff RDI: ffffa0b11f818a48
[ 20.897535] RBP: ffffaf89404db948 R08: ffffa0b11f818a40 R09: ffffaf89404db6c0
[ 20.897536] R10: 0000000000000001 R11: 0000000000000001 R12: ffffa0ae01415610
[ 20.897538] R13: ffffa0ae0f0e8c00 R14: ffffa0ae1895db40 R15: ffffa0ae0f0e8c00
[ 20.897540] FS: 0000000000000000(0000) GS:ffffa0b11f800000(0000) knlGS:0000000000000000
[ 20.897542] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 20.897543] CR2: 00007f0fc9647300 CR3: 00000001d4c10000 CR4: 0000000000350ee0
[ 20.897545] Call Trace:
[ 20.897597] nvkm_falcon_wait_for_halt+0x15/0x20 [nouveau]
[ 20.897633] gm200_acr_hsfw_boot+0xc7/0x160 [nouveau]
[ 20.897715] tu102_acr_hsfw_boot+0x12/0x20 [nouveau]
[ 20.897760] nvkm_acr_hsf_boot+0x98/0xe0 [nouveau]
[ 20.897808] tu102_acr_init+0x1a/0x40 [nouveau]
[ 20.897853] nvkm_acr_load+0x3f/0xf0 [nouveau]
[ 20.897899] nvkm_acr_init+0x51/0x60 [nouveau]
[ 20.897953] nvkm_subdev_init+0x99/0xd0 [nouveau]
[ 20.897969] ? ktime_get+0x3e/0xa0
[ 20.898054] nvkm_device_init+0x118/0x1a0 [nouveau]
[ 20.898122] nvkm_udevice_init+0x48/0x60 [nouveau]
[ 20.898174] nvkm_object_init+0x43/0x110 [nouveau]
[ 20.898227] nvkm_object_init+0x74/0x110 [nouveau]
[ 20.898281] nvkm_object_init+0x74/0x110 [nouveau]
[ 20.898354] nvkm_client_resume+0xe/0x10 [nouveau]
[ 20.898406] nvif_client_resume+0x1d/0x20 [nouveau]
[ 20.898472] nouveau_do_resume+0x2f/0xc0 [nouveau]
[ 20.898536] nouveau_pmops_runtime_resume+0x86/0x150 [nouveau]
[ 20.898549] pci_pm_runtime_resume+0x74/0x90
[ 20.898563] ? pci_pm_default_resume+0x30/0x30
[ 20.898574] __rpm_callback+0x8c/0x150
[ 20.898582] ? pci_pm_default_resume+0x30/0x30
[ 20.898585] rpm_callback+0x24/0x80
[ 20.898587] ? pci_pm_default_resume+0x30/0x30
[ 20.898589] rpm_resume+0x547/0x760
[ 20.898595] ? wait_woken+0x80/0x80
[ 20.898597] __pm_runtime_resume+0x52/0x80
[ 20.898600] rpm_get_suppliers+0x41/0xc0
[ 20.898603] ? pci_pm_default_resume+0x30/0x30
[ 20.898607] __rpm_callback+0x13c/0x150
[ 20.898609] ? pci_pm_default_resume+0x30/0x30
[ 20.898612] rpm_callback+0x24/0x80
[ 20.898614] ? pci_pm_default_resume+0x30/0x30
[ 20.898619] rpm_resume+0x547/0x760
[ 20.898623] pm_runtime_work+0x7d/0xa0
[ 20.898628] process_one_work+0x1ef/0x390
[ 20.898631] worker_thread+0x4d/0x3f0
[ 20.898635] kthread+0x114/0x150
[ 20.898638] ? process_one_work+0x390/0x390
[ 20.898640] ? kthread_park+0x90/0x90
[ 20.898645] ret_from_fork+0x22/0x30
[ 20.898649] ---[ end trace be8412e705c99154 ]---
[ 20.898661] nouveau 0000:01:00.0: acr: AHESASC binary failed
[ 20.898669] nouveau 0000:01:00.0: acr: init failed, -110
[ 20.899007] nouveau 0000:01:00.0: init failed with -110
[ 20.899011] nouveau: Xorg[1198]:00000000:00000080: init failed with -110
[ 20.899015] nouveau: DRM-master:00000000:00000000: init failed with -110
[ 20.899022] nouveau: DRM-master:00000000:00000000: init failed with -110
[ 20.899027] nouveau 0000:01:00.0: DRM: Client resume failed with error: -110
[ 20.899030] nouveau 0000:01:00.0: DRM: resume failed with: -110
System details:
$ inxi -Fxz
System: Kernel: 5.10.0-1008-oem x86_64 bits: 64 compiler: N/A Desktop: Xfce 4.14.2 Distro: Ubuntu 20.04.1 LTS (Focal Fossa)
Machine: Type: Laptop System: HP product: OMEN Laptop 15-en0xxx v: N/A serial: <filter>
Mobo: HP model: 8786 v: 22.54 serial: <filter> UEFI: AMI v: F.07 date: 09/16/2020
Battery: ID-1: BAT0 charge: 44.0 Wh condition: 69.9/69.9 Wh (100%) model: Hewlett-Packard Primary status: Discharging
CPU: Topology: 6-Core model: AMD Ryzen 5 4600H with Radeon Graphics bits: 64 type: MT MCP arch: Zen rev: 1
L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 71865
Speed: 1774 MHz min/max: 1400/3000 MHz Core speeds (MHz): 1: 1774 2: 1774 3: 1397 4: 1397 5: 3987 6: 3992 7: 1768
8: 1774 9: 1397 10: 1396 11: 1397 12: 1397
Graphics: Device-1: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: Hewlett-Packard driver: nouveau v: kernel
bus ID: 01:00.0
Device-2: Advanced Micro Devices [AMD/ATI] Renoir vendor: Hewlett-Packard driver: amdgpu v: kernel bus ID: 07:00.0
Display: x11 server: X.Org 1.20.8 driver: amdgpu,ati,modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz
OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.10.0-1008-oem LLVM 10.0.0) v: 4.6 Mesa 20.0.8 direct render: Yes
Audio: Device-1: NVIDIA TU116 High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
bus ID: 01:00.1
Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Hewlett-Packard
driver: snd_rn_pci_acp3x v: kernel bus ID: 07:00.5
Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
bus ID: 07:00.6
Sound Server: ALSA v: k5.10.0-1008-oem
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8169 v: kernel
port: e000 bus ID: 02:00.0
IF: eno1 state: down mac: <filter>
Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: e000 bus ID: 03:00.0
IF: wlo1 state: up mac: <filter>
Drives: Local Storage: total: 931.51 GiB used: 58.07 GiB (6.2%)
ID-1: /dev/nvme0n1 vendor: Kingston model: SA2000M81000G size: 931.51 GiB
ID-2: /dev/nvme1n1 vendor: Samsung model: MZVLB512HBJQ-000H1 size: 476.94 GiB
Partition: ID-1: / size: 161.41 GiB used: 46.26 GiB (28.7%) fs: ext4 dev: /dev/nvme0n1p1
Sensors: System Temperatures: cpu: 37.8 C mobo: N/A
Fan Speeds (RPM): N/A
GPU: device: amdgpu temp: 27 C device: nouveau temp: N/A
Info: Processes: 317 Uptime: 44m Memory: 15.07 GiB used: 1.40 GiB (9.3%) Init: systemd runlevel: 5 Compilers: gcc: 9.3.0
Shell: bash v: 5.0.17 inxi: 3.0.38
Tried running xrandr --setprovideroutputsource 1 0
as per https://wiki.archlinux.org/index.php/PRIME#Reverse_PRIME but it did not have any effect. Running the reverse gives an error:
$ xrandr --setprovideroutputsource 0 1
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 35 (RRSetProviderOutputSource)
Value in failed request: 0x54
Serial number of failed request: 16
Current serial number in output stream: 17
dmesg and Xorg.0.log attached. Appreciate any help in trying to set it up. Thanks!