Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lenovo Legion 15ach6h : amdgpuBusId seems incorrect #1388

Open
Malix-Labs opened this issue Feb 23, 2025 · 5 comments
Open

Lenovo Legion 15ach6h : amdgpuBusId seems incorrect #1388

Malix-Labs opened this issue Feb 23, 2025 · 5 comments

Comments

@Malix-Labs
Copy link

Malix-Labs commented Feb 23, 2025

On my machine (a factory-modified-issued Lenovo Legion 15ach6h), the amdgpuBusId seems to be PCI:5:0:0 instead of PCI:6:0:0

Subject

https://github.com/NixOS/nixos-hardware/tree/master/lenovo/legion/15ach6h#setup-at-the-time-of-testing

amdgpuBusId = lib.mkDefault "PCI:6:0:0";

Log

fastfetch

[nix-shell:~]$ fastfetch
          ▗▄▄▄       ▗▄▄▄▄    ▄▄▄▖             malix@nixos
          ▜███▙       ▜███▙  ▟███▛             -----------
           ▜███▙       ▜███▙▟███▛              OS: NixOS 24.11 (Vicuna) x86_64
            ▜███▙       ▜██████▛               Host: 82JU (LEGION 5 15ACH6H)
     ▟█████████████████▙ ▜████▛     ▟▙         Kernel: Linux 6.13.2
    ▟███████████████████▙ ▜███▙    ▟██▙        Uptime: 8 mins
           ▄▄▄▄▖           ▜███▙  ▟███▛        Packages: 1094 (nix-system)
          ▟███▛             ▜██▛ ▟███▛         Shell: bash 5.2.37
         ▟███▛               ▜▛ ▟███▛          Display (AUO5895): 1920x1080 @ 165 Hz in 15" [Built-in] *
▟███████████▛                  ▟██████████▙    Display (ASUSTek COMPUTER INC 27"): 2560x1440 @ 120 Hz in 27" [External]
▜██████████▛                  ▟███████████▛    DE: GNOME 47.2
      ▟███▛ ▟▙               ▟███▛             WM: Mutter (Wayland)
     ▟███▛ ▟██▙             ▟███▛              WM Theme: Adwaita
    ▟███▛  ▜███▙           ▝▀▀▀▀               Theme: Adwaita [GTK2/3/4]
    ▜██▛    ▜███▙ ▜██████████████████▛         Icons: Adwaita [GTK2/3/4]
     ▜▛     ▟████▙ ▜████████████████▛          Font: Cantarell (11pt) [GTK2/3/4]
           ▟██████▙       ▜███▙                Cursor: Adwaita (24px)
          ▟███▛▜███▙       ▜███▙               Terminal: GNOME Console 47.1
         ▟███▛  ▜███▙       ▜███▙              Terminal Font: Source Code Pro (10pt)
         ▝▀▀▀    ▀▀▀▀▘       ▀▀▀▘              CPU: AMD Ryzen 7 5800H (16) @ 4.46 GHz
                                               GPU 1: NVIDIA GeForce RTX 3060 Mobile / Max-Q [Discrete]
                                               GPU 2: AMD Radeon Vega Series / Radeon Vega Mobile Series [Integrated]
                                               Memory: 2.07 GiB / 13.51 GiB (15%)
                                               Swap: 0 B / 14.86 GiB (0%)
                                               Disk (/): 12.97 GiB / 922.70 GiB (1%) - ext4
                                               Local IP (eno1): 192.168.1.50/24
                                               Battery (L20D4PC1): 100% [AC Connected]
                                               Locale: en_US.UTF-8

                                                                       
                                                                       

lspci

[nix-shell:~]$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
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] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GA106 High Definition Audio Controller (rev a1)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)
04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852AE 802.11ax PCIe Wireless Network Adapter
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c5)
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h/1ah HD Audio Controller
06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
06:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)

nix-info -m

[nix-shell:~]$ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.13.2, NixOS, 24.11 (Vicuna), 24.11.714433.0ff09db9d034`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.12`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@Malix-Labs
Copy link
Author

@Lyndeno @yuannan

@Lyndeno
Copy link
Contributor

Lyndeno commented Feb 23, 2025

I don't have this model to test. Has anyone else seen identical models with different IDs?

@Mic92
Copy link
Member

Mic92 commented Feb 24, 2025

Sometimes Lenovo has different versions of the same model depending on the location you buy it.
We noticed it with X1 laptops bought in Europe vs UAE.

@Mic92
Copy link
Member

Mic92 commented Feb 24, 2025

Is there a way to accustom for both pcie ids?

@Malix-Labs
Copy link
Author

Would there be a way to detect the PCI ports dynamically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants