Skip to content

examine: Strix Halo APU (gfx1151, Ryzen AI Max+ 395) misclassified as discrete GPU (has_apu=false) #449

Open

Description

@slamdunk111

Summary

On an AMD Ryzen AI Max+ 395 (Strix Halo, gfx1151), rocm examine --json classifies the machine as having no APU ("has_apu": false, GPU entry "is_apu": false, "has_discrete_amd": true). This is a discrete-GPU-only misclassification of an iGPU-with-unified-memory APU, and it feeds wrong routing to consumers that branch on has_apu (APU-specific diagnostics and GTT/memory-tuning flows get skipped on exactly the machines where GTT tuning is the whole point).

Environment

  • OS: Ubuntu 24.04, kernel 6.17.0-1032-oem (Ubuntu OEM)
  • APU: AMD Ryzen AI Max+ 395 w/ Radeon 8060S (Strix Halo, gfx1151)
  • rocm-cli: 0.1.0 (main, 8788394) (nightly channel installer)

Observed

"gpus": [
  {
    "name": "Advanced Micro Devices, Inc. [AMD/ATI] Device",
    "gfx_target": "",
    "pci_id": "0000:66:00.0",
    "is_apu": false,
    "is_amd": true
  }
],
"has_amd_gpu": true,
"has_apu": false,
"has_discrete_amd": true

Ground truth from other official tools on the same machine:

  • amd-smi static: MARKET_NAME: AMD Radeon 8060S Graphics, TARGET_GRAPHICS_VERSION: gfx1151, MEM_CARVEOUT present, VRAM 8192 MB (DRAM-backed)
  • rocminfo: agent Name: gfx1151
  • Unified-memory evidence: mem_info_vram_total=8589934592 alongside a 96 GiB GTT (ttm.pages_limit=25165824) — classic UMA APU split

Expected

has_apu / is_apu should be true for Strix Halo and other Radeon-A APUs.

Suggested fix

PCI-topology heuristics alone miss APUs whose iGPU enumerates on a separate host bridge (Strix Halo exposes the GPU at 0000:66:00.0). Consider classifying by one of:

  • gfx target set: gfx1150 / gfx1151 / gfx1152 are APU-only LLVM targets — a whitelist here is cheap and precise
  • UMA detection: VRAM carve-out is DRAM-backed (no separate HBM/GDDR instance) — amd-smi already exposes this shape

Note: gfx_target being empty in examine output (see #393) is likely also feeding this — fixing the gfx-target lookup would give this classification the cheap precise signal.

Impact

Downstream consumers branching on has_apu misroute: e.g. the official rocm-doctor skill's APU flows and GTT-related diagnostics are skipped on this machine even though GTT tuning (currently 8 GiB carve-out + 96 GiB GTT) is this platform's headline feature.

Activity

  1. slamdunk111 commented on Sep 26, 2026

    @slamdunk111
    Author

    Ground-truth outputs from other official tools on the same machine, backing the issue body. One local directory-name segment in env.PATH-derived text is redacted.

    Additional internal inconsistency in the same rocm examine --json run: the per-GPU entry has "gfx_target": "", while the top-level summary on the very same run reports "detected_gfx_target": "gfx1151" — two probe paths inside one invocation disagree, and the empty per-GPU field is what starves APU classification (related: #393).

    Excerpt:

    "gpus": [
      {
        "name": "Advanced Micro Devices, Inc. [AMD/ATI] Device",
        "gfx_target": "",
        "pci_id": "0000:66:00.0",
        "is_apu": false,
        "is_amd": true
      }
    ],
    "has_apu": false,
    "has_discrete_amd": true

    and from the same JSON: "summary.detected_gfx_target": "gfx1151".

    sysfs / cmdline one-liners (same machine, this boot):

    $ cat /sys/module/ttm/parameters/pages_limit
    25165824
    $ cat /sys/class/drm/card1/device/mem_info_gtt_total
    103079215104   # = 96 GiB GTT
    $ cat /sys/class/drm/card1/device/mem_info_vram_total
    8589934592   # = 8 GiB DRAM-backed carve-out
    $ grep -o 'gttsize=98304' /proc/cmdline
    gttsize=98304
    
    amd-smi static (full) — MARKET_NAME Radeon 8060S, TARGET_GRAPHICS_VERSION gfx1151, MEM_CARVEOUT present
    GPU: 0
        ASIC:
            MARKET_NAME: AMD Radeon 8060S Graphics
            VENDOR_ID: 0x1002
            VENDOR_NAME: Advanced Micro Devices Inc. [AMD/ATI]
            SUBVENDOR_ID: 0x1002
            DEVICE_ID: 0x1586
            SUBSYSTEM_ID: 0x0124
            REV_ID: 0xc1
            ASIC_SERIAL: N/A
            OAM_ID: N/A
            NUM_COMPUTE_UNITS: 40
            TARGET_GRAPHICS_VERSION: gfx1151
            FLAGS: 9
        BUS:
            BDF: 0000:66:00.0
            MAX_PCIE_WIDTH: 16
            MAX_PCIE_SPEED: 16 GT/s
            PCIE_LEVELS: N/A
            PCIE_INTERFACE_VERSION: Gen 4
            SLOT_TYPE: PCIE
        IFWI:
            NAME: AMD STRIX_HALO_GENERIC
            BUILD_DATE: 2024/06/17 02:08
            PART_NUMBER: 113-STRXLGEN-001
            VERSION: 023.011.000.039.000001
        LIMIT:
            PPT0:
                MAX_POWER_LIMIT: N/A
                MIN_POWER_LIMIT: N/A
                SOCKET_POWER_LIMIT: N/A
            PPT1:
                MAX_POWER_LIMIT: N/A
                MIN_POWER_LIMIT: N/A
                SOCKET_POWER_LIMIT: N/A
            SLOWDOWN_EDGE_TEMPERATURE: N/A
            SLOWDOWN_HOTSPOT_TEMPERATURE: N/A
            SLOWDOWN_VRAM_TEMPERATURE: N/A
            SHUTDOWN_EDGE_TEMPERATURE: N/A
            SHUTDOWN_HOTSPOT_TEMPERATURE: N/A
            SHUTDOWN_VRAM_TEMPERATURE: N/A
            PTL_STATE: N/A
            PTL_FORMAT: N/A
        DRIVER:
            NAME: amdgpu
            VERSION: N/A
            OS_KERNEL_VERSION: 6.17.0-1032-oem
        BOARD:
            MODEL_NUMBER: N/A
            PRODUCT_SERIAL: N/A
            FRU_ID: N/A
            PRODUCT_NAME: N/A
            MANUFACTURER_NAME: Advanced Micro Devices, Inc. [AMD/ATI]
        RAS:
            EEPROM_VERSION: N/A
            BAD_PAGE_THRESHOLD: N/A
            BAD_PAGE_THRESHOLD_EXCEEDED: N/A
            PARITY_SCHEMA: N/A
            SINGLE_BIT_SCHEMA: N/A
            DOUBLE_BIT_SCHEMA: N/A
            POISON_SCHEMA: N/A
            ECC_BLOCK_STATE: N/A
        SOC_PSTATE: N/A
        XGMI_PLPD: N/A
        PROFILE: AMDSMI_STATUS_NOT_SUPPORTED - Feature not supported
        PROCESS_ISOLATION: Disabled
        NUMA:
            NODE: 0
            AFFINITY: NONE
            CPU_AFFINITY: N/A
            SOCKET_AFFINITY: N/A
        VRAM:
            TYPE: GDDR7
            VENDOR: UNKNOWN
            SIZE: 8192 MB
            BIT_WIDTH: 256
            MAX_BANDWIDTH: N/A 
        CACHE_INFO:
            CACHE_0:
                CACHE_PROPERTIES: DATA_CACHE, SIMD_CACHE
                CACHE_SIZE: 32 KB
                CACHE_LEVEL: 1
                MAX_NUM_CU_SHARED: 1
                NUM_CACHE_INSTANCE: 40
            CACHE_1:
                CACHE_PROPERTIES: INST_CACHE, SIMD_CACHE
                CACHE_SIZE: 32 KB
                CACHE_LEVEL: 1
                MAX_NUM_CU_SHARED: 2
                NUM_CACHE_INSTANCE: 20
            CACHE_2:
                CACHE_PROPERTIES: DATA_CACHE, SIMD_CACHE
                CACHE_SIZE: 16 KB
                CACHE_LEVEL: 1
                MAX_NUM_CU_SHARED: 2
                NUM_CACHE_INSTANCE: 20
            CACHE_3:
                CACHE_PROPERTIES: DATA_CACHE, SIMD_CACHE
                CACHE_SIZE: 256 KB
                CACHE_LEVEL: 1
                MAX_NUM_CU_SHARED: 10
                NUM_CACHE_INSTANCE: 4
            CACHE_4:
                CACHE_PROPERTIES: DATA_CACHE, SIMD_CACHE
                CACHE_SIZE: 2048 KB
                CACHE_LEVEL: 2
                MAX_NUM_CU_SHARED: 40
                NUM_CACHE_INSTANCE: 1
            CACHE_5:
                CACHE_PROPERTIES: DATA_CACHE, SIMD_CACHE
                CACHE_SIZE: 32768 KB
                CACHE_LEVEL: 3
                MAX_NUM_CU_SHARED: 40
                NUM_CACHE_INSTANCE: 1
        MEM_CARVEOUT: 
                           [0] Minimum (512 MB)
                           [1] (1 GB)
                           [2] (2 GB)
                           [3] (4 GB)
                          *[4] (8 GB)
                           [5] (16 GB)
                           [6] Medium (32 GB)
                           [7] High (64 GB)
        CLOCK:
            SYS:
                CURRENT_LEVEL: 1
                FREQUENCY_LEVELS:
                    LEVEL 0: 600 MHz
                    LEVEL 1: 1183 MHz
                    LEVEL 2: 2900 MHz
            MEM:
                CURRENT_LEVEL: 2
                FREQUENCY_LEVELS:
                    LEVEL 0: 400 MHz
                    LEVEL 1: 800 MHz
                    LEVEL 2: 1000 MHz
            DF:
                CURRENT_LEVEL: 7
                FREQUENCY_LEVELS:
                    LEVEL 0: 400 MHz
                    LEVEL 1: 1000 MHz
                    LEVEL 2: 1200 MHz
                    LEVEL 3: 1400 MHz
                    LEVEL 4: 1600 MHz
                    LEVEL 5: 1700 MHz
                    LEVEL 6: 1850 MHz
                    LEVEL 7: 2000 MHz
            SOC:
                FREQUENCY_LEVELS:
                    LEVEL 0: 600 MHz
                    LEVEL 1: 736 MHz
                    LEVEL 2: 883 MHz
                    LEVEL 3: 981 MHz
                    LEVEL 4: 1104 MHz
                    LEVEL 5: 1261 MHz
                    LEVEL 6: 1472 MHz
                    LEVEL 7: 1472 MHz
            DCEF: N/A
            VCLK0: N/A
            VCLK1: N/A
            DCLK0: N/A
            DCLK1: N/A
    
    
    
    rocminfo (full) — GPU agent Name: gfx1151, Marketing Name: AMD Radeon 8060S Graphics
    �[37mROCk module is loaded�[0m
    =====================    
    HSA System Attributes    
    =====================    
    Runtime Version:         1.21
    Runtime Ext Version:     1.30
    System Timestamp Freq.:  1000.000000MHz
    Sig. Max Wait Duration:  18446744073709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
    Machine Model:           LARGE                              
    System Endianness:       LITTLE                             
    Mwaitx:                  ENABLED
    XNACK enabled:           NO
    DMAbuf Support:          YES
    VMM Support:             YES
    Fabric Support:          NO
    
    ==========               
    HSA Agents               
    ==========               
    *******                  
    Agent 1                  
    *******                  
      Name:                    AMD RYZEN AI MAX+ 395 w/ Radeon 8060S
      Uuid:                    CPU-XX                             
      Marketing Name:          AMD RYZEN AI MAX+ 395 w/ Radeon 8060S
      Vendor Name:             CPU                                
      Feature:                 None specified                     
      Profile:                 FULL_PROFILE                       
      Float Round Mode:        NEAR                               
      Max Queue Number:        0(0x0)                             
      Queue Min Size:          0(0x0)                             
      Queue Max Size:          0(0x0)                             
      Queue Type:              MULTI                              
      Node:                    0                                  
      Device Type:             CPU                                
      Cache Info:              
        L1:                      49152(0xc000) KB                   
      Chip ID:                 0(0x0)                             
      ASIC Revision:           0(0x0)                             
      Cacheline Size:          64(0x40)                           
      Max Clock Freq. (MHz):   5187                               
      BDFID:                   0                                  
      Internal Node ID:        0                                  
      Compute Unit:            32                                 
      SIMDs per CU:            0                                  
      Shader Engines:          0                                  
      Shader Arrs. per Eng.:   0                                  
      WatchPts on Addr. Ranges:1                                  
      Memory Properties:       
      Features:                None
      Pool Info:               
        Pool 1                   
          Segment:                 GLOBAL; FLAGS: FINE GRAINED        
          Size:                    120914452(0x7350214) KB            
          Allocatable:             TRUE                               
          Alloc Granule:           4KB                                
          Alloc Recommended Granule:4KB                                
          Alloc Alignment:         4KB                                
          Accessible by all:       TRUE                               
        Pool 2                   
          Segment:                 GLOBAL; FLAGS: EXTENDED FINE GRAINED
          Size:                    120914452(0x7350214) KB            
          Allocatable:             TRUE                               
          Alloc Granule:           4KB                                
          Alloc Recommended Granule:4KB                                
          Alloc Alignment:         4KB                                
          Accessible by all:       TRUE                               
        Pool 3                   
          Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
          Size:                    120914452(0x7350214) KB            
          Allocatable:             TRUE                               
          Alloc Granule:           4KB                                
          Alloc Recommended Granule:4KB                                
          Alloc Alignment:         4KB                                
          Accessible by all:       TRUE                               
        Pool 4                   
          Segment:                 GLOBAL; FLAGS: COARSE GRAINED      
          Size:                    120914452(0x7350214) KB            
          Allocatable:             TRUE                               
          Alloc Granule:           4KB                                
          Alloc Recommended Granule:4KB                                
          Alloc Alignment:         4KB                                
          Accessible by all:       TRUE                               
      ISA Info:                
    *******                  
    Agent 2                  
    *******                  
      Name:                    gfx1151                            
      Uuid:                    GPU-XX                             
      Marketing Name:          AMD Radeon 8060S Graphics          
      Vendor Name:             AMD                                
      Feature:                 KERNEL_DISPATCH                    
      Profile:                 BASE_PROFILE                       
      Float Round Mode:        NEAR                               
      Max Queue Number:        128(0x80)                          
      Queue Min Size:          64(0x40)                           
      Queue Max Size:          131072(0x20000)                    
      Queue Type:              MULTI                              
      Node:                    1                                  
      Device Type:             GPU                                
      Cache Info:              
        L1:                      32(0x20) KB                        
        L2:                      2048(0x800) KB                     
        L3:                      32768(0x8000) KB                   
      Chip ID:                 5510(0x1586)                       
      ASIC Revision:           0(0x0)                             
      Cacheline Size:          128(0x80)                          
      Max Clock Freq. (MHz):   2900                               
      BDFID:                   26112                              
      Internal Node ID:        1                                  
      Compute Unit:            40                                 
      SIMDs per CU:            2                                  
      Shader Engines:          2                                  
      Shader Arrs. per Eng.:   2                                  
      WatchPts on Addr. Ranges:4                                  
      Coherent Host Access:    FALSE                              
      Memory Properties:       APU
      Features:                KERNEL_DISPATCH 
      Fast F16 Operation:      TRUE                               
      Wavefront Size:          32(0x20)                           
      Workgroup Max Size:      1024(0x400)                        
      Workgroup Max Size per Dimension:
        x                        1024(0x400)                        
        y                        1024(0x400)                        
        z                        1024(0x400)                        
      Max Waves Per CU:        32(0x20)                           
      Max Work-item Per CU:    1024(0x400)                        
      Grid Max Size:           2147483647(0x7fffffff)             
      Grid Max Size per Dimension:
        x                        2147483647(0x7fffffff)             
        y                        65535(0xffff)                      
        z                        65535(0xffff)                      
      Max fbarriers/Workgrp:   32                                 
      Packet Processor uCode:: 36                                 
      SDMA engine uCode::      18                                 
      IOMMU Support::          None                               
      Pool Info:               
        Pool 1                   
          Segment:                 GLOBAL; FLAGS: COARSE GRAINED      
          Size:                    100663296(0x6000000) KB            
          Allocatable:             TRUE                               
          Alloc Granule:           4KB                                
          Alloc Recommended Granule:2048KB                             
          Alloc Alignment:         4KB                                
          Accessible by all:       FALSE                              
        Pool 2                   
          Segment:                 GLOBAL; FLAGS: EXTENDED FINE GRAINED
          Size:                    100663296(0x6000000) KB            
          Allocatable:             TRUE                               
          Alloc Granule:           4KB                                
          Alloc Recommended Granule:2048KB                             
          Alloc Alignment:         4KB                                
          Accessible by all:       FALSE                              
        Pool 3                   
          Segment:                 GROUP                              
          Size:                    64(0x40) KB                        
          Allocatable:             FALSE                              
          Alloc Granule:           0KB                                
          Alloc Recommended Granule:0KB                                
          Alloc Alignment:         0KB                                
          Accessible by all:       FALSE                              
      ISA Info:                
        ISA 1                    
          Name:                    amdgcn-amd-amdhsa--gfx1151         
          Machine Models:          HSA_MACHINE_MODEL_LARGE            
          Profiles:                HSA_PROFILE_BASE                   
          Default Rounding Mode:   NEAR                               
          Default Rounding Mode:   NEAR                               
          Fast f16:                TRUE                               
          Workgroup Max Size:      1024(0x400)                        
          Workgroup Max Size per Dimension:
            x                        1024(0x400)                        
            y                        1024(0x400)                        
            z                        1024(0x400)                        
          Grid Max Size:           4294967295(0xffffffff)             
          Grid Max Size per Dimension:
            x                        2147483647(0x7fffffff)             
            y                        65535(0xffff)                      
            z                        65535(0xffff)                      
          FBarrier Max Size:       32                                 
        ISA 2                    
          Name:                    amdgcn-amd-amdhsa--gfx11-generic   
          Machine Models:          HSA_MACHINE_MODEL_LARGE            
          Profiles:                HSA_PROFILE_BASE                   
          Default Rounding Mode:   NEAR                               
          Default Rounding Mode:   NEAR                               
          Fast f16:                TRUE                               
          Workgroup Max Size:      1024(0x400)                        
          Workgroup Max Size per Dimension:
            x                        1024(0x400)                        
            y                        1024(0x400)                        
            z                        1024(0x400)                        
          Grid Max Size:           4294967295(0xffffffff)             
          Grid Max Size per Dimension:
            x                        2147483647(0x7fffffff)             
            y                        65535(0xffff)                      
            z                        65535(0xffff)                      
          FBarrier Max Size:       32                                 
    *******                  
    Agent 3                  
    *******                  
      Name:                    aie2p                              
      Uuid:                    AIE-XX                             
      Marketing Name:          RyzenAI-npu5                       
      Vendor Name:             AMD                                
      Feature:                 AGENT_DISPATCH                     
      Profile:                 BASE_PROFILE                       
      Float Round Mode:        NEAR                               
      Max Queue Number:        1(0x1)                             
      Queue Min Size:          64(0x40)                           
      Queue Max Size:          64(0x40)                           
      Queue Type:              SINGLE                             
      Node:                    0                                  
      Device Type:             DSP                                
      Cache Info:              
        L2:                      2048(0x800) KB                     
        L3:                      32768(0x8000) KB                   
      Chip ID:                 0(0x0)                             
      ASIC Revision:           0(0x0)                             
      Cacheline Size:          0(0x0)                             
      Max Clock Freq. (MHz):   0                                  
      BDFID:                   0                                  
      Internal Node ID:        0                                  
      Compute Unit:            0                                  
      SIMDs per CU:            0                                  
      Shader Engines:          0                                  
      Shader Arrs. per Eng.:   0                                  
      WatchPts on Addr. Ranges:0                                  
      Memory Properties:       
      Features:                AGENT_DISPATCH
      Pool Info:               
        Pool 1                   
          Segment:                 GLOBAL; FLAGS: KERNARG, COARSE GRAINED
          Size:                    120914452(0x7350214) KB            
          Allocatable:             TRUE                               
          Alloc Granule:           4KB                                
          Alloc Recommended Granule:4KB                                
          Alloc Alignment:         4KB                                
          Accessible by all:       TRUE                               
        Pool 2                   
          Segment:                 GLOBAL; FLAGS: COARSE GRAINED      
          Size:                    65536(0x10000) KB                  
          Allocatable:             TRUE                               
          Alloc Granule:           4KB                                
          Alloc Recommended Granule:0KB                                
          Alloc Alignment:         4KB                                
          Accessible by all:       TRUE                               
        Pool 3                   
          Segment:                 GLOBAL; FLAGS: COARSE GRAINED      
          Size:                    120914452(0x7350214) KB            
          Allocatable:             TRUE                               
          Alloc Granule:           4KB                                
          Alloc Recommended Granule:4KB                                
          Alloc Alignment:         4KB                                
          Accessible by all:       TRUE                               
      ISA Info:                
    *** Done ***             
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions