X86 platform drivers
 help / color / mirror / Atom feed
* ERROR: Writing to dgpu_disable cause Input/Output error
@ 2024-01-03 18:51 Athul Krishna
  2024-01-03 19:35 ` Armin Wolf
  0 siblings, 1 reply; 10+ messages in thread
From: Athul Krishna @ 2024-01-03 18:51 UTC (permalink / raw)
  To: corentin.chary@gmail.com
  Cc: acpi4asus-user@lists.sourceforge.net,
	platform-driver-x86@vger.kernel.org


[-- Attachment #1.1: Type: text/plain, Size: 964 bytes --]

Hello,
This is my first time reporting an issue in the kernel.

Device Details:

- Asus Zephyrus G14 (GA402RJ)
- Latest BIOS
- Arch_x86_64
- Kernel: 6.6.9
- Minimal install​​ using archinstall

ISSUE: Using dgpu_disable provided by asus-nb-wmi to disable and enable dedicated gpu,
causes system crash and reboots, randomly.
9/10 times writing 0 to dgpu_disable will produce an Input/Output error, but the value will be changed to 0, half the time system will crash and reboot. While writing 1 to it doesn't produce an error, I have observed system crash twice just after that.

Steps to Reproduce:

- Remove dpgu: echo 1 | sudo tee ../remove (dgpu path)
- echo 1 | sudo tee /sys/devices/platform/asus-nb-wmi/dgpu_disable
- echo 0 | sudo tee /sys/devices/platform/asus-nb-wmi/dgpu_disable

- echo 1 | sudo tee /sys/bus/pci/rescan

After writing 0 to dgpu_disable, there's an entry in journal about an ACPI bug.
Output of 'journalctl -p 3' and lspci is attached.

[-- Attachment #1.2: Type: text/html, Size: 2747 bytes --]

[-- Attachment #2: journal.txt --]
[-- Type: text/plain, Size: 1829 bytes --]

-- Boot 84ac9ebb0cf443639e11588de731b577 --
Jan 03 23:13:01 ZephyrusG14 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP0.SWUS.SWDS.VGA._STA.GC00], AE_NOT_FOUND (20230628/psargs-330)
Jan 03 23:13:01 ZephyrusG14 kernel: ACPI Error: Aborting method \_SB.PCI0.GPP0.SWUS.SWDS.VGA._STA due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
Jan 03 23:13:01 ZephyrusG14 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP0.SWUS.SWDS.VGA._STA.GC00], AE_NOT_FOUND (20230628/psargs-330)
Jan 03 23:13:01 ZephyrusG14 kernel: ACPI Error: Aborting method \_SB.PCI0.GPP0.SWUS.SWDS.VGA._STA due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
Jan 03 23:13:01 ZephyrusG14 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP0.SWUS.SWDS.VGA._STA.GC00], AE_NOT_FOUND (20230628/psargs-330)
Jan 03 23:13:01 ZephyrusG14 kernel: ACPI Error: Aborting method \_SB.PCI0.GPP0.SWUS.SWDS.VGA._STA due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
Jan 03 23:13:01 ZephyrusG14 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP0.SWUS.SWDS.VGA._STA.GC00], AE_NOT_FOUND (20230628/psargs-330)
Jan 03 23:13:01 ZephyrusG14 kernel: ACPI Error: Aborting method \_SB.PCI0.GPP0.SWUS.SWDS.VGA._STA due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
Jan 03 23:13:01 ZephyrusG14 kernel: hub 6-0:1.0: config failed, hub doesn't have any ports! (err -19)
Jan 03 23:13:01 ZephyrusG14 kernel: asus 0003:0B05:19B6.0002: Asus input not registered
Jan 03 23:13:20 ZephyrusG14 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP0.SWUS.SWDS.VGA._STA.GC00], AE_NOT_FOUND (20230628/psargs-330)
Jan 03 23:13:20 ZephyrusG14 kernel: ACPI Error: Aborting method \_SB.PCI0.GPP0.SWUS.SWDS.VGA._STA due to previous error (AE_NOT_FOUND) (20230628/psparse-529)

[-- Attachment #3: lspci.txt --]
[-- Type: text/plain, Size: 3913 bytes --]

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Root Complex (rev 01)
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 17h-19h IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h Internal PCIe GPP Bridge (rev 10)
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h Internal PCIe GPP Bridge (rev 10)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 7
01:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch (rev c2)
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6650 XT / 6700S / 6800S] (rev c2)
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller
04:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
05:00.0 Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
06:00.0 Non-Volatile memory controller: Micron Technology Inc 2450 NVMe SSD [HendrixV] (DRAM-less) (rev 01)
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev c8)
07:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
07:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 19h PSP/CCP
07:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #3
07:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #4
07:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 60)
07:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
08:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #8
08:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #5
08:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #6

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: ERROR: Writing to dgpu_disable cause Input/Output error
@ 2024-01-29  0:32 Luke Jones
  0 siblings, 0 replies; 10+ messages in thread
From: Luke Jones @ 2024-01-29  0:32 UTC (permalink / raw)
  To: athul.krishna.kr; +Cc: acpi4asus-user, corentin.chary, platform-driver-x86

I think this can sometimes be caused by device drivers holding some 
things open. Can you switch to a TTY, kill all display servers, and 
then try the disable method?

Cheers,
Luke.



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

end of thread, other threads:[~2024-02-06 15:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-03 18:51 ERROR: Writing to dgpu_disable cause Input/Output error Athul Krishna
2024-01-03 19:35 ` Armin Wolf
2024-01-04  2:50   ` Athul Krishna
2024-01-06 22:33     ` Armin Wolf
2024-01-09  0:00       ` Bjorn Helgaas
2024-01-09 10:29         ` Armin Wolf
2024-01-23 15:34           ` Bjorn Helgaas
2024-02-06 14:24             ` Athul Krishna
2024-02-06 15:25               ` Bjorn Helgaas
  -- strict thread matches above, loose matches on Subject: below --
2024-01-29  0:32 Luke Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox