Bug 217026

Summary: Backlight control broken on kernels 6.1.4+
Product: ACPI Reporter: albimarini4283
Component: ACPICA-CoreAssignee: acpi_acpica-core (acpi_acpica-core)
Status: RESOLVED WILL_FIX_LATER    
Severity: normal CC: albimarini4283, bruce, jwrdegoede
Priority: P1    
Hardware: AMD   
OS: Linux   
Kernel Version: 6.1.11 Subsystem:
Regression: No Bisected commit-id:
Attachments: [PATCH] platform/x86: nvidia-wmi-ec-backlight: Add force module parameter

Description albimarini4283 2023-02-12 20:57:03 UTC
Brightness control does not work with AMD Ryzen 5800H when using hybrid graphics on kernel updates 6.1.4+. I am using a Lenovo Legion Slim 7 (2021, 15ACH6) currently running Arch Linux with the mainline kernel 6.1.11, however, I have been testing my experience with this issue on every point revision from 6.1.3 to 6.1.11.
        
      CPU: AMD Ryzen 5 5800H with Radeon Graphics
      GPU: NVIDIA RTX 3060 Mobile / Max-Q (Proprietary NVIDIA driver, tested with 525.78.01-1 (version prior to 6.1.4 being released) and 525.89.02-1 (latest driver at time of writing))
      System Memory: 40 GB       
      Display: Laptop (Laptop Screen)

The only parameters applied at boot on my system are: nvidia-drm.modeset=1

How to reproduce the issue:
Enable hybrid graphics/Optimus in BIOS setup.

Prior to kernel version 6.1.4, /sys/class/backlight contained two entries:
amdgpu_bl0 and nvidia_wmi_ec_backlight

With these two entries in /sys/class/backlight , I was able to write to their respective brightness files directly or use a program like light to change the values. Those values would change the brightness of the screen depending on if I was using the AMD GPU or NVIDIA GPU to display the current application. I could set these values to roughly the same thing to achieve an overall complete brightness experience regardless of whether or not I was currently running an application on my integrated (AMD) GPU or dedicated (NVIDIA) GPU.

Then, upon updating to kernel versions 6.1.4+, there is no longer an amdgpu_bl0 entry in /sys/class/backlight , just a nvidia_wmi_ec_backlight entry, making it impossible for me to change the brightness on my display when using the iGPU. Interestingly, on kernels 6.1.4+, running "journalctl -b -0 | grep backlight" returns an output "amdgpu: [drm] Skipping amdgpu DM backlight registration", which was not present in prior kernel versions. 

However, if I instead prepend the option "acpi_backlight=native" to my kernel command line options at boot, "amdgpu_bl0" is once again present in /sys/class/backlight but "nvidia_wmi_ec_backlight" has now disappeared and is nowhere to be seen making it so I can change the brightness when using the iGPU, but the brightness is stuck at max when using the dedicated GPU. Running the above journalctl command at this point returns no errors relating to my AMD GPU and does not mention anything about the NVIDIA GPU. Trying different acpi_backlight options on 6.1.4+ does not fix the issue and instead removes functionality.
acpi_backlight=vendor makes an entry called "ideapad" pop up in /sys/class/backlight with nothing else. Changing the brightness values in ideapad does nothing.
acpi_backlight=video makes only two entries appear in /sys/class/backlight, acpi_video0 and acpi_video1. Changing the brightness values in either of these directories does nothing.
acpi_backlight=none causes nothing to appear under /sys/class/backlight. 

If hybrid graphics is disabled, the display is connected to the NVIDIA GPU and /sys/class/backlight/nvidia_0 is present, the NVIDIA driver can change the display brightness without a problem.p

Below is my lscpi -nn and dmidecode outputs on kernel 6.1.3 and 6.1.11.

dmidecode 6.1.3:
# dmidecode 3.4
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.
Table at 0xCA234000.

Handle 0x0000, DMI type 18, 23 bytes
32-bit Memory Error Information
	Type: OK
	Granularity: Unknown
	Operation: Unknown
	Vendor Syndrome: Unknown
	Memory Array Address: Unknown
	Device Address: Unknown
	Resolution: Unknown

Handle 0x0001, DMI type 16, 23 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	Maximum Capacity: 64 GB
	Error Information Handle: 0x0000
	Number Of Devices: 2

Handle 0x0002, DMI type 19, 31 bytes
Memory Array Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x009FFFFFFFF
	Range Size: 40 GB
	Physical Array Handle: 0x0001
	Partition Width: 2

Handle 0x0003, DMI type 7, 27 bytes
Cache Information
	Socket Designation: L1 - Cache
	Configuration: Enabled, Not Socketed, Level 1
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 512 kB
	Maximum Size: 512 kB
	Supported SRAM Types:
		Pipeline Burst
	Installed SRAM Type: Pipeline Burst
	Speed: 1 ns
	Error Correction Type: Multi-bit ECC
	System Type: Unified
	Associativity: 8-way Set-associative

Handle 0x0004, DMI type 7, 27 bytes
Cache Information
	Socket Designation: L2 - Cache
	Configuration: Enabled, Not Socketed, Level 2
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 4 MB
	Maximum Size: 4 MB
	Supported SRAM Types:
		Pipeline Burst
	Installed SRAM Type: Pipeline Burst
	Speed: 1 ns
	Error Correction Type: Multi-bit ECC
	System Type: Unified
	Associativity: 8-way Set-associative

Handle 0x0005, DMI type 7, 27 bytes
Cache Information
	Socket Designation: L3 - Cache
	Configuration: Enabled, Not Socketed, Level 3
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 16 MB
	Maximum Size: 16 MB
	Supported SRAM Types:
		Pipeline Burst
	Installed SRAM Type: Pipeline Burst
	Speed: 1 ns
	Error Correction Type: Multi-bit ECC
	System Type: Unified
	Associativity: 16-way Set-associative

Handle 0x0006, DMI type 4, 48 bytes
Processor Information
	Socket Designation: FP6
	Type: Central Processor
	Family: Zen
	Manufacturer: Advanced Micro Devices, Inc.
	ID: 00 0F A5 00 FF FB 8B 17
	Signature: Family 25, Model 80, Stepping 0
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		PAE (Physical address extension)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		APIC (On-chip APIC hardware supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		PSE-36 (36-bit page size extension)
		CLFSH (CLFLUSH instruction supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		HTT (Multi-threading)
	Version: AMD Ryzen 7 5800H with Radeon Graphics         
	Voltage: 1.2 V
	External Clock: 100 MHz
	Max Speed: 4450 MHz
	Current Speed: 3200 MHz
	Status: Populated, Enabled
	Upgrade: None
	L1 Cache Handle: 0x0003
	L2 Cache Handle: 0x0004
	L3 Cache Handle: 0x0005
	Serial Number: Null
	Asset Tag: Null
	Part Number: Null
	Core Count: 8
	Core Enabled: 8
	Thread Count: 16
	Characteristics:
		64-bit capable
		Multi-Core
		Hardware Thread
		Execute Protection
		Enhanced Virtualization
		Power/Performance Control

Handle 0x0007, DMI type 18, 23 bytes
32-bit Memory Error Information
	Type: OK
	Granularity: Unknown
	Operation: Unknown
	Vendor Syndrome: Unknown
	Memory Array Address: Unknown
	Device Address: Unknown
	Resolution: Unknown

Handle 0x0008, DMI type 17, 84 bytes
Memory Device
	Array Handle: 0x0001
	Error Information Handle: 0x0007
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 8 GB
	Form Factor: Row Of Chips
	Set: None
	Locator: DIMM 0
	Bank Locator: P0 CHANNEL A
	Type: DDR4
	Type Detail: Synchronous Unbuffered (Unregistered)
	Speed: 3200 MT/s
	Manufacturer: Hynix
	Serial Number: 00000000
	Asset Tag: Not Specified
	Part Number: HMAA1GS6CJR6N-XN    
	Rank: 1
	Configured Memory Speed: 3200 MT/s
	Minimum Voltage: 1.2 V
	Maximum Voltage: 1.2 V
	Configured Voltage: 1.2 V
	Memory Technology: DRAM
	Memory Operating Mode Capability: Volatile memory
	Firmware Version: Unknown
	Module Manufacturer ID: Bank 1, Hex 0xAD
	Module Product ID: Unknown
	Memory Subsystem Controller Manufacturer ID: Unknown
	Memory Subsystem Controller Product ID: Unknown
	Non-Volatile Size: None
	Volatile Size: 8 GB
	Cache Size: None
	Logical Size: None

Handle 0x0009, DMI type 20, 35 bytes
Memory Device Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x003FFFFFFFF
	Range Size: 16 GB
	Physical Device Handle: 0x0008
	Memory Array Mapped Address Handle: 0x0002
	Partition Row Position: Unknown
	Interleave Position: Unknown
	Interleaved Data Depth: Unknown

Handle 0x000A, DMI type 18, 23 bytes
32-bit Memory Error Information
	Type: OK
	Granularity: Unknown
	Operation: Unknown
	Vendor Syndrome: Unknown
	Memory Array Address: Unknown
	Device Address: Unknown
	Resolution: Unknown

Handle 0x000B, DMI type 17, 84 bytes
Memory Device
	Array Handle: 0x0001
	Error Information Handle: 0x000A
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 32 GB
	Form Factor: SODIMM
	Set: None
	Locator: DIMM 0
	Bank Locator: P0 CHANNEL B
	Type: DDR4
	Type Detail: Synchronous Unbuffered (Unregistered)
	Speed: 3200 MT/s
	Manufacturer: Unknown
	Serial Number: 07050705
	Asset Tag: Not Specified
	Part Number: F4-3200C22-32GRS
	Rank: 2
	Configured Memory Speed: 3200 MT/s
	Minimum Voltage: 1.2 V
	Maximum Voltage: 1.2 V
	Configured Voltage: 1.2 V
	Memory Technology: DRAM
	Memory Operating Mode Capability: Volatile memory
	Firmware Version: Unknown
	Module Manufacturer ID: Bank 5, Hex 0xCD
	Module Product ID: Unknown
	Memory Subsystem Controller Manufacturer ID: Unknown
	Memory Subsystem Controller Product ID: Unknown
	Non-Volatile Size: None
	Volatile Size: 32 GB
	Cache Size: None
	Logical Size: None

Handle 0x000C, DMI type 20, 35 bytes
Memory Device Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x009FFFFFFFF
	Range Size: 40 GB
	Physical Device Handle: 0x000B
	Memory Array Mapped Address Handle: 0x0002
	Partition Row Position: Unknown
	Interleave Position: Unknown
	Interleaved Data Depth: Unknown

Handle 0x0011, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J137
	Internal Connector Type: None
	External Reference Designator: Keyboard
	External Connector Type: PS/2
	Port Type: Keyboard Port

Handle 0x0012, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J140
	Internal Connector Type: None
	External Reference Designator: Touch Pad
	External Connector Type: PS/2
	Port Type: Mouse Port

Handle 0x0013, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J115
	Internal Connector Type: None
	External Reference Designator: Network
	External Connector Type: RJ-45
	Port Type: Network Port

Handle 0x0014, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J49
	Internal Connector Type: None
	External Reference Designator: USB 3.1 A P0
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0015, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J70
	Internal Connector Type: None
	External Reference Designator: USB 3.1 A P1
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0016, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J39
	Internal Connector Type: None
	External Reference Designator: USB 3.1 Type-C P0
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0017, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J43
	Internal Connector Type: None
	External Reference Designator: USB 3.1 Type-C P1
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0018, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J125
	Internal Connector Type: None
	External Reference Designator: USB 2.0 A P0/1
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0019, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J126
	Internal Connector Type: None
	External Reference Designator: USB 2.0 A P2/3
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x001A, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J119
	Internal Connector Type: None
	External Reference Designator: Micro USB
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x001B, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J136
	Internal Connector Type: None
	External Reference Designator: Sata HDD
	External Connector Type: SAS/SATA Plug Receptacle
	Port Type: SATA

Handle 0x001C, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J138
	Internal Connector Type: None
	External Reference Designator: Sata ODD
	External Connector Type: SAS/SATA Plug Receptacle
	Port Type: SATA

Handle 0x001D, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J129
	Internal Connector Type: None
	External Reference Designator: Microphone
	External Connector Type: Mini Jack (headphones)
	Port Type: Audio Port

Handle 0x001E, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J120
	Internal Connector Type: None
	External Reference Designator: Headphone
	External Connector Type: Mini Jack (headphones)
	Port Type: Audio Port

Handle 0x001F, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J7
	Internal Connector Type: None
	External Reference Designator: ISP CAM
	External Connector Type: Other
	Port Type: Other

Handle 0x0020, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J6
	Internal Connector Type: None
	External Reference Designator: DP CONN
	External Connector Type: Other
	Port Type: Video Port

Handle 0x0021, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J9
	Internal Connector Type: None
	External Reference Designator: eDP CONN
	External Connector Type: Other
	Port Type: Video Port

Handle 0x0022, DMI type 9, 17 bytes
System Slot Information
	Designation: J10
	Type: x8 PCI Express x8
	Current Usage: Available
	Length: Short
	ID: 1
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.1

Handle 0x0023, DMI type 9, 17 bytes
System Slot Information
	Designation: J79
	Type: x4 PCI Express x4
	Current Usage: Available
	Length: Short
	ID: 2
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.6

Handle 0x0024, DMI type 9, 17 bytes
System Slot Information
	Designation: J92
	Type: x1 M.2 Socket 1-SD
	Current Usage: Available
	Length: Short
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.2

Handle 0x0025, DMI type 9, 17 bytes
System Slot Information
	Designation: J90
	Type: x1 M.2 Socket 2
	Current Usage: Available
	Length: Short
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.4

Handle 0x0026, DMI type 9, 17 bytes
System Slot Information
	Designation: J19
	Type: x2 M.2 Socket 3
	Current Usage: Available
	Length: Short
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.7

Handle 0x0027, DMI type 9, 17 bytes
System Slot Information
	Designation: CON1
	Type: x1 M.2 Socket 1-SD
	Current Usage: Available
	Length: Short
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.5

Handle 0x0028, DMI type 10, 6 bytes
On Board Device Information
	Type: Video
	Status: Enabled
	Description: AMD Renoir FP6 GPU

Handle 0x0029, DMI type 10, 6 bytes
On Board Device Information
	Type: Sound
	Status: Enabled
	Description: AZALIA HD Audio

Handle 0x002A, DMI type 10, 6 bytes
On Board Device Information
	Type: SATA Controller
	Status: Enabled
	Description: AMD Renoir FP6

Handle 0x002B, DMI type 10, 6 bytes
On Board Device Information
	Type: Unknown
	Status: Enabled
	Description: ST TPM ST33TPMESPI

Handle 0x002D, DMI type 13, 22 bytes
BIOS Language Information
	Language Description Format: Abbreviated
	Installable Languages: 6
		en-US
		fr-FR
		ja-JP
		ko-KR
		zh-CHT
		zh-CHS
	Currently Installed Language: en-US

Handle 0x002F, DMI type 32, 11 bytes
System Boot Information
	Status: No errors detected

Handle 0x0031, DMI type 133, 5 bytes
OEM-specific Type
	Header and Data:
		85 05 31 00 01
	Strings:
		KHOIHGIUCCHHII

Handle 0x002E, DMI type 24, 5 bytes
Hardware Security
	Power-On Password Status: Disabled
	Keyboard Password Status: Disabled
	Administrator Password Status: Disabled
	Front Panel Reset Status: Disabled

Handle 0x0032, DMI type 248, 18 bytes
OEM-specific Type
	Header and Data:
		F8 12 32 00 AC AC AA 17 00 00 00 00 00 00 00 00
		00 00

Handle 0x002C, DMI type 11, 5 bytes
OEM Strings
	String 1: Modern Preload

Handle 0x000D, DMI type 0, 24 bytes
BIOS Information
	Vendor: LENOVO
	Version: HACN39WW
	Release Date: 09/21/2022
	Address: 0xE0000
	Runtime Size: 128 kB
	ROM Size: 16 MB
	Characteristics:
		ACPI is supported
		USB legacy is supported
		BIOS boot specification is supported
		Function key-initiated network boot is supported
		Targeted content distribution is supported
		UEFI is supported
	BIOS Revision: 1.39
	Firmware Revision: 1.39

Handle 0x000E, DMI type 1, 27 bytes
System Information
	Manufacturer: LENOVO
	Product Name: 82K8
	Version: Legion S7 15ACH6
	Serial Number: PF38G30W
	UUID: 922ef788-1503-11ec-80f0-84a9381614b6
	Wake-up Type: Power Switch
	SKU Number: LENOVO_MT_82K8_BU_idea_FM_Legion S7 15ACH6
	Family: Legion S7 15ACH6

Handle 0x000F, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: LENOVO
	Product Name: LNVNB161216
	Version: SDK0T76461WIN
	Serial Number: PF38G30W
	Asset Tag: No Asset Tag
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: Base Board Chassis Location
	Chassis Handle: 0x0010
	Type: Motherboard
	Contained Object Handles: 0

Handle 0x0010, DMI type 3, 22 bytes
Chassis Information
	Manufacturer: LENOVO
	Type: Notebook
	Lock: Not Present
	Version: Legion S7 15ACH6
	Serial Number: PF38G30W
	Asset Tag: No Asset Tag
	Boot-up State: Safe
	Power Supply State: Safe
	Thermal State: Other
	Security Status: Other
	OEM Information: 0x00000000
	Height: Unspecified
	Number Of Power Cords: 1
	Contained Elements: 0
	SKU Number: Not Specified

Handle 0x0030, DMI type 200, 16 bytes
OEM-specific Type
	Header and Data:
		C8 10 30 00 01 02 01 27 01 14 01 20 B0 80 01 20
	Strings:
		IdeaPad
		82K80080US

Handle 0x0033, DMI type 15, 31 bytes
System Event Log
	Area Length: 34 bytes
	Header Start Offset: 0x0000
	Header Length: 16 bytes
	Data Start Offset: 0x0010
	Access Method: General-purpose non-volatile data functions
	Access Address: 0x00F0
	Status: Valid, Not Full
	Change Token: 0x00000001
	Header Format: Type 1
	Supported Log Type Descriptors: 4
	Descriptor 1: POST error
	Data Format 1: POST results bitmap
	Descriptor 2: PCI system error
	Data Format 2: None
	Descriptor 3: System reconfigured
	Data Format 3: None
	Descriptor 4: Log area reset/cleared
	Data Format 4: None

Handle 0xFEFF, DMI type 127, 4 bytes
End Of Table

dmidecode 6.1.11:
# dmidecode 3.4
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.
Table at 0xCA234000.

Handle 0x0000, DMI type 18, 23 bytes
32-bit Memory Error Information
	Type: OK
	Granularity: Unknown
	Operation: Unknown
	Vendor Syndrome: Unknown
	Memory Array Address: Unknown
	Device Address: Unknown
	Resolution: Unknown

Handle 0x0001, DMI type 16, 23 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	Maximum Capacity: 64 GB
	Error Information Handle: 0x0000
	Number Of Devices: 2

Handle 0x0002, DMI type 19, 31 bytes
Memory Array Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x009FFFFFFFF
	Range Size: 40 GB
	Physical Array Handle: 0x0001
	Partition Width: 2

Handle 0x0003, DMI type 7, 27 bytes
Cache Information
	Socket Designation: L1 - Cache
	Configuration: Enabled, Not Socketed, Level 1
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 512 kB
	Maximum Size: 512 kB
	Supported SRAM Types:
		Pipeline Burst
	Installed SRAM Type: Pipeline Burst
	Speed: 1 ns
	Error Correction Type: Multi-bit ECC
	System Type: Unified
	Associativity: 8-way Set-associative

Handle 0x0004, DMI type 7, 27 bytes
Cache Information
	Socket Designation: L2 - Cache
	Configuration: Enabled, Not Socketed, Level 2
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 4 MB
	Maximum Size: 4 MB
	Supported SRAM Types:
		Pipeline Burst
	Installed SRAM Type: Pipeline Burst
	Speed: 1 ns
	Error Correction Type: Multi-bit ECC
	System Type: Unified
	Associativity: 8-way Set-associative

Handle 0x0005, DMI type 7, 27 bytes
Cache Information
	Socket Designation: L3 - Cache
	Configuration: Enabled, Not Socketed, Level 3
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 16 MB
	Maximum Size: 16 MB
	Supported SRAM Types:
		Pipeline Burst
	Installed SRAM Type: Pipeline Burst
	Speed: 1 ns
	Error Correction Type: Multi-bit ECC
	System Type: Unified
	Associativity: 16-way Set-associative

Handle 0x0006, DMI type 4, 48 bytes
Processor Information
	Socket Designation: FP6
	Type: Central Processor
	Family: Zen
	Manufacturer: Advanced Micro Devices, Inc.
	ID: 00 0F A5 00 FF FB 8B 17
	Signature: Family 25, Model 80, Stepping 0
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		PAE (Physical address extension)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		APIC (On-chip APIC hardware supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		PSE-36 (36-bit page size extension)
		CLFSH (CLFLUSH instruction supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		HTT (Multi-threading)
	Version: AMD Ryzen 7 5800H with Radeon Graphics         
	Voltage: 1.2 V
	External Clock: 100 MHz
	Max Speed: 4450 MHz
	Current Speed: 3200 MHz
	Status: Populated, Enabled
	Upgrade: None
	L1 Cache Handle: 0x0003
	L2 Cache Handle: 0x0004
	L3 Cache Handle: 0x0005
	Serial Number: Null
	Asset Tag: Null
	Part Number: Null
	Core Count: 8
	Core Enabled: 8
	Thread Count: 16
	Characteristics:
		64-bit capable
		Multi-Core
		Hardware Thread
		Execute Protection
		Enhanced Virtualization
		Power/Performance Control

Handle 0x0007, DMI type 18, 23 bytes
32-bit Memory Error Information
	Type: OK
	Granularity: Unknown
	Operation: Unknown
	Vendor Syndrome: Unknown
	Memory Array Address: Unknown
	Device Address: Unknown
	Resolution: Unknown

Handle 0x0008, DMI type 17, 84 bytes
Memory Device
	Array Handle: 0x0001
	Error Information Handle: 0x0007
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 8 GB
	Form Factor: Row Of Chips
	Set: None
	Locator: DIMM 0
	Bank Locator: P0 CHANNEL A
	Type: DDR4
	Type Detail: Synchronous Unbuffered (Unregistered)
	Speed: 3200 MT/s
	Manufacturer: Hynix
	Serial Number: 00000000
	Asset Tag: Not Specified
	Part Number: HMAA1GS6CJR6N-XN    
	Rank: 1
	Configured Memory Speed: 3200 MT/s
	Minimum Voltage: 1.2 V
	Maximum Voltage: 1.2 V
	Configured Voltage: 1.2 V
	Memory Technology: DRAM
	Memory Operating Mode Capability: Volatile memory
	Firmware Version: Unknown
	Module Manufacturer ID: Bank 1, Hex 0xAD
	Module Product ID: Unknown
	Memory Subsystem Controller Manufacturer ID: Unknown
	Memory Subsystem Controller Product ID: Unknown
	Non-Volatile Size: None
	Volatile Size: 8 GB
	Cache Size: None
	Logical Size: None

Handle 0x0009, DMI type 20, 35 bytes
Memory Device Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x003FFFFFFFF
	Range Size: 16 GB
	Physical Device Handle: 0x0008
	Memory Array Mapped Address Handle: 0x0002
	Partition Row Position: Unknown
	Interleave Position: Unknown
	Interleaved Data Depth: Unknown

Handle 0x000A, DMI type 18, 23 bytes
32-bit Memory Error Information
	Type: OK
	Granularity: Unknown
	Operation: Unknown
	Vendor Syndrome: Unknown
	Memory Array Address: Unknown
	Device Address: Unknown
	Resolution: Unknown

Handle 0x000B, DMI type 17, 84 bytes
Memory Device
	Array Handle: 0x0001
	Error Information Handle: 0x000A
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 32 GB
	Form Factor: SODIMM
	Set: None
	Locator: DIMM 0
	Bank Locator: P0 CHANNEL B
	Type: DDR4
	Type Detail: Synchronous Unbuffered (Unregistered)
	Speed: 3200 MT/s
	Manufacturer: Unknown
	Serial Number: 07050705
	Asset Tag: Not Specified
	Part Number: F4-3200C22-32GRS
	Rank: 2
	Configured Memory Speed: 3200 MT/s
	Minimum Voltage: 1.2 V
	Maximum Voltage: 1.2 V
	Configured Voltage: 1.2 V
	Memory Technology: DRAM
	Memory Operating Mode Capability: Volatile memory
	Firmware Version: Unknown
	Module Manufacturer ID: Bank 5, Hex 0xCD
	Module Product ID: Unknown
	Memory Subsystem Controller Manufacturer ID: Unknown
	Memory Subsystem Controller Product ID: Unknown
	Non-Volatile Size: None
	Volatile Size: 32 GB
	Cache Size: None
	Logical Size: None

Handle 0x000C, DMI type 20, 35 bytes
Memory Device Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x009FFFFFFFF
	Range Size: 40 GB
	Physical Device Handle: 0x000B
	Memory Array Mapped Address Handle: 0x0002
	Partition Row Position: Unknown
	Interleave Position: Unknown
	Interleaved Data Depth: Unknown

Handle 0x0011, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J137
	Internal Connector Type: None
	External Reference Designator: Keyboard
	External Connector Type: PS/2
	Port Type: Keyboard Port

Handle 0x0012, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J140
	Internal Connector Type: None
	External Reference Designator: Touch Pad
	External Connector Type: PS/2
	Port Type: Mouse Port

Handle 0x0013, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J115
	Internal Connector Type: None
	External Reference Designator: Network
	External Connector Type: RJ-45
	Port Type: Network Port

Handle 0x0014, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J49
	Internal Connector Type: None
	External Reference Designator: USB 3.1 A P0
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0015, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J70
	Internal Connector Type: None
	External Reference Designator: USB 3.1 A P1
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0016, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J39
	Internal Connector Type: None
	External Reference Designator: USB 3.1 Type-C P0
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0017, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J43
	Internal Connector Type: None
	External Reference Designator: USB 3.1 Type-C P1
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0018, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J125
	Internal Connector Type: None
	External Reference Designator: USB 2.0 A P0/1
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0019, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J126
	Internal Connector Type: None
	External Reference Designator: USB 2.0 A P2/3
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x001A, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J119
	Internal Connector Type: None
	External Reference Designator: Micro USB
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x001B, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J136
	Internal Connector Type: None
	External Reference Designator: Sata HDD
	External Connector Type: SAS/SATA Plug Receptacle
	Port Type: SATA

Handle 0x001C, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J138
	Internal Connector Type: None
	External Reference Designator: Sata ODD
	External Connector Type: SAS/SATA Plug Receptacle
	Port Type: SATA

Handle 0x001D, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J129
	Internal Connector Type: None
	External Reference Designator: Microphone
	External Connector Type: Mini Jack (headphones)
	Port Type: Audio Port

Handle 0x001E, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J120
	Internal Connector Type: None
	External Reference Designator: Headphone
	External Connector Type: Mini Jack (headphones)
	Port Type: Audio Port

Handle 0x001F, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J7
	Internal Connector Type: None
	External Reference Designator: ISP CAM
	External Connector Type: Other
	Port Type: Other

Handle 0x0020, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J6
	Internal Connector Type: None
	External Reference Designator: DP CONN
	External Connector Type: Other
	Port Type: Video Port

Handle 0x0021, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J9
	Internal Connector Type: None
	External Reference Designator: eDP CONN
	External Connector Type: Other
	Port Type: Video Port

Handle 0x0022, DMI type 9, 17 bytes
System Slot Information
	Designation: J10
	Type: x8 PCI Express x8
	Current Usage: Available
	Length: Short
	ID: 1
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.1

Handle 0x0023, DMI type 9, 17 bytes
System Slot Information
	Designation: J79
	Type: x4 PCI Express x4
	Current Usage: Available
	Length: Short
	ID: 2
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.6

Handle 0x0024, DMI type 9, 17 bytes
System Slot Information
	Designation: J92
	Type: x1 M.2 Socket 1-SD
	Current Usage: Available
	Length: Short
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.2

Handle 0x0025, DMI type 9, 17 bytes
System Slot Information
	Designation: J90
	Type: x1 M.2 Socket 2
	Current Usage: Available
	Length: Short
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.4

Handle 0x0026, DMI type 9, 17 bytes
System Slot Information
	Designation: J19
	Type: x2 M.2 Socket 3
	Current Usage: Available
	Length: Short
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.7

Handle 0x0027, DMI type 9, 17 bytes
System Slot Information
	Designation: CON1
	Type: x1 M.2 Socket 1-SD
	Current Usage: Available
	Length: Short
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
	Bus Address: 0200:00:01.5

Handle 0x0028, DMI type 10, 6 bytes
On Board Device Information
	Type: Video
	Status: Enabled
	Description: AMD Renoir FP6 GPU

Handle 0x0029, DMI type 10, 6 bytes
On Board Device Information
	Type: Sound
	Status: Enabled
	Description: AZALIA HD Audio

Handle 0x002A, DMI type 10, 6 bytes
On Board Device Information
	Type: SATA Controller
	Status: Enabled
	Description: AMD Renoir FP6

Handle 0x002B, DMI type 10, 6 bytes
On Board Device Information
	Type: Unknown
	Status: Enabled
	Description: ST TPM ST33TPMESPI

Handle 0x002D, DMI type 13, 22 bytes
BIOS Language Information
	Language Description Format: Abbreviated
	Installable Languages: 6
		en-US
		fr-FR
		ja-JP
		ko-KR
		zh-CHT
		zh-CHS
	Currently Installed Language: en-US

Handle 0x002F, DMI type 32, 11 bytes
System Boot Information
	Status: No errors detected

Handle 0x0031, DMI type 133, 5 bytes
OEM-specific Type
	Header and Data:
		85 05 31 00 01
	Strings:
		KHOIHGIUCCHHII

Handle 0x002E, DMI type 24, 5 bytes
Hardware Security
	Power-On Password Status: Disabled
	Keyboard Password Status: Disabled
	Administrator Password Status: Disabled
	Front Panel Reset Status: Disabled

Handle 0x0032, DMI type 248, 18 bytes
OEM-specific Type
	Header and Data:
		F8 12 32 00 AC AC AA 17 00 00 00 00 00 00 00 00
		00 00

Handle 0x002C, DMI type 11, 5 bytes
OEM Strings
	String 1: Modern Preload

Handle 0x000D, DMI type 0, 24 bytes
BIOS Information
	Vendor: LENOVO
	Version: HACN39WW
	Release Date: 09/21/2022
	Address: 0xE0000
	Runtime Size: 128 kB
	ROM Size: 16 MB
	Characteristics:
		ACPI is supported
		USB legacy is supported
		BIOS boot specification is supported
		Function key-initiated network boot is supported
		Targeted content distribution is supported
		UEFI is supported
	BIOS Revision: 1.39
	Firmware Revision: 1.39

Handle 0x000E, DMI type 1, 27 bytes
System Information
	Manufacturer: LENOVO
	Product Name: 82K8
	Version: Legion S7 15ACH6
	Serial Number: PF38G30W
	UUID: 922ef788-1503-11ec-80f0-84a9381614b6
	Wake-up Type: Power Switch
	SKU Number: LENOVO_MT_82K8_BU_idea_FM_Legion S7 15ACH6
	Family: Legion S7 15ACH6

Handle 0x000F, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: LENOVO
	Product Name: LNVNB161216
	Version: SDK0T76461WIN
	Serial Number: PF38G30W
	Asset Tag: No Asset Tag
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: Base Board Chassis Location
	Chassis Handle: 0x0010
	Type: Motherboard
	Contained Object Handles: 0

Handle 0x0010, DMI type 3, 22 bytes
Chassis Information
	Manufacturer: LENOVO
	Type: Notebook
	Lock: Not Present
	Version: Legion S7 15ACH6
	Serial Number: PF38G30W
	Asset Tag: No Asset Tag
	Boot-up State: Safe
	Power Supply State: Safe
	Thermal State: Other
	Security Status: Other
	OEM Information: 0x00000000
	Height: Unspecified
	Number Of Power Cords: 1
	Contained Elements: 0
	SKU Number: Not Specified

Handle 0x0030, DMI type 200, 16 bytes
OEM-specific Type
	Header and Data:
		C8 10 30 00 01 02 01 27 01 14 01 20 B0 80 01 20
	Strings:
		IdeaPad
		82K80080US

Handle 0x0033, DMI type 15, 31 bytes
System Event Log
	Area Length: 34 bytes
	Header Start Offset: 0x0000
	Header Length: 16 bytes
	Data Start Offset: 0x0010
	Access Method: General-purpose non-volatile data functions
	Access Address: 0x00F0
	Status: Valid, Not Full
	Change Token: 0x00000001
	Header Format: Type 1
	Supported Log Type Descriptors: 4
	Descriptor 1: POST error
	Data Format 1: POST results bitmap
	Descriptor 2: PCI system error
	Data Format 2: None
	Descriptor 3: System reconfigured
	Data Format 3: None
	Descriptor 4: Log area reset/cleared
	Data Format 4: None

Handle 0xFEFF, DMI type 127, 4 bytes
End Of Table

lspci -nn 6.1.3:
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge [1022:1633]
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:02.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51)
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0 [1022:166a]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1 [1022:166b]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2 [1022:166c]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3 [1022:166d]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4 [1022:166e]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5 [1022:166f]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6 [1022:1670]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7 [1022:1671]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2560] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GA106 High Definition Audio Controller [10de:228e] (rev a1)
02:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a)
03:00.0 SD Host controller [0805]: O2 Micro, Inc. SD/MMC Card Reader Controller [1217:8621] (rev 01)
04:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 [144d:a808]
05:00.0 Non-Volatile memory controller [0108]: Micron Technology Inc Device [1344:5405]
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c5)
06:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
06:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
06:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
06:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 01)
06:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]

lspci -nn 6.1.11:
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge [1022:1633]
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:02.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51)
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0 [1022:166a]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1 [1022:166b]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2 [1022:166c]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3 [1022:166d]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4 [1022:166e]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5 [1022:166f]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6 [1022:1670]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7 [1022:1671]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2560] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GA106 High Definition Audio Controller [10de:228e] (rev a1)
02:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a)
03:00.0 SD Host controller [0805]: O2 Micro, Inc. SD/MMC Card Reader Controller [1217:8621] (rev 01)
04:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 [144d:a808]
05:00.0 Non-Volatile memory controller [0108]: Micron Technology Inc Device [1344:5405]
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c5)
06:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
06:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
06:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
06:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 01)
06:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
Comment 1 The Linux kernel's regression tracker (Thorsten Leemhuis) 2023-02-13 13:10:02 UTC
(In reply to albimarini4283 from comment #0)
> The only parameters applied at boot on my system are: nvidia-drm.modeset=1

Have you tried what happens without that parameter?
Comment 2 albimarini4283 2023-02-13 22:04:00 UTC
(In reply to The Linux kernel's regression tracker (Thorsten Leemhuis) from comment #1)
> (In reply to albimarini4283 from comment #0)
> > The only parameters applied at boot on my system are: nvidia-drm.modeset=1
> 
> Have you tried what happens without that parameter?

Yes, I did. It makes no difference on 6.1.3, and on 6.1.11 the behavior is still the same. Only nvidia_wmi_ec_backlight is present in /sys/class/backlight, and if I also add acpi_backlight=native to the parameters on 6.1.11, amdgpu_bl0 appears in /sys/class/backlight, and the nvidia backlight disappears.
Comment 3 Hans de Goede 2023-02-14 14:55:28 UTC
Yes this has already been reported on the malinglist.

There unfortunately is a firmware bug on the Lenovo Legion models.

On models with the Nvidia WMI EC backlight interface, when the laptop is configured in dynamic mux mode in the BIOS (1) the backlight should always be controlled by the Nvidia WMI EC backlight interface. So in theory the kernel is behaving as it should according to the documentation here.

But as you found out, some Legion models are not behaving as the Nvidia WMI spec says they should behave. This is also why you needed the hack/script to write brightness values to both backlight devices at the same time with older kernels.

Daniel Dadap from Nvidia is looking into this, but I'm afraid that we don't have a solution yet.

1) So that you can switch at runtime which GPU is connected to the builtin LCD panel
Comment 4 Hans de Goede 2023-02-14 15:19:08 UTC
Created attachment 303727 [details]
[PATCH] platform/x86: nvidia-wmi-ec-backlight: Add force module parameter

I don't know if you know how to build your own kernels.

If you do here is a patch which adds a force parameter to the nvidia-wmi-ec-backlight driver. This allows specifying the following on the kernel commandline to get the old behavior back (as a workaround for now).

This is not a proper fix, we are still investigating how to fix this properly.
Comment 5 albimarini4283 2023-02-15 20:31:13 UTC
(In reply to Hans de Goede from comment #4)
> Created attachment 303727 [details]
> [PATCH] platform/x86: nvidia-wmi-ec-backlight: Add force module parameter
> 
> I don't know if you know how to build your own kernels.
> 
> If you do here is a patch which adds a force parameter to the
> nvidia-wmi-ec-backlight driver. This allows specifying the following on the
> kernel commandline to get the old behavior back (as a workaround for now).
> 
> This is not a proper fix, we are still investigating how to fix this
> properly.

I managed to apply the patch to kernel 6.1.2, using the kernel commandline "acpi_backlight=native nvidia_wmi_ec_baclight.force=1" restored the previous behaviors of kernels 6.1.3 and prior on the latest stable release. Thank you for the clarification about the problem with the Nvidia WMI EC backlight interface, and I'll definitely be interested in hearing about future development with the Legion models.
Comment 6 albimarini4283 2023-02-15 20:32:04 UTC
Meant to write kernel 6.1.12*, not 6.1.2
Comment 7 Hans de Goede 2023-02-18 10:52:43 UTC
Thank you for testing the patch.

I have pushed this to pdx86/for-next now so that it will go to Linus during the upcoming merge-window and on to the stable kernel series from there.
Comment 8 albimarini4283 2023-02-19 17:11:36 UTC
(In reply to Hans de Goede from comment #7)
> Thank you for testing the patch.
> 
> I have pushed this to pdx86/for-next now so that it will go to Linus during
> the upcoming merge-window and on to the stable kernel series from there.

Sounds good, I'll look forward to the patch on new stable releases
Comment 9 albimarini4283 2023-02-19 17:13:24 UTC
Marked as WILL_FIX_LATER for the time being until a working implementation of the nvidia_wmi_ec interface is present on Lenovo Legion laptops, since the patch isn't a true fix as stated before