Skip to content

Dual GPU system (Raven Ridge APU + R9 Nano Fiji) #66

@ekondis

Description

@ekondis

I'm using a system with a Ryzen R5 2400G APU on a Gigabyte GA-AB350N-Gaming WIFI motherboard, plus a discrete R9 Nano fiji GPU. When I have disabled the integrated graphics through BIOS the discrete GPU works flawlessly on ROCm. However, when I have both GPUs enabled (monitor connected to the APU) I cannot see any GPU working via ROCm. In this case a relevant block of dmesg output is as follows:

...
[    1.687371] kfd kfd: Initialized module
[    1.688006] checking generic (c0000000 300000) vs hw (e0000000 10000000)
[    1.688069] amdgpu 0000:01:00.0: enabling device (0000 -> 0003)
[    1.688865] [drm] initializing kernel modesetting (FIJI 0x1002:0x7300 0x1002:0x0B36 0xCA).
[    1.689679] [drm] register mmio base: 0xFE900000
[    1.690470] [drm] register mmio size: 262144
[    1.691258] [drm] add ip block number 0 <vi_common>
[    1.692057] [drm] add ip block number 1 <gmc_v8_0>
[    1.692787] [drm] add ip block number 2 <tonga_ih>
[    1.693529] [drm] add ip block number 3 <powerplay>
[    1.694281] [drm] add ip block number 4 <dm>
[    1.694975] [drm] add ip block number 5 <gfx_v8_0>
[    1.695630] [drm] add ip block number 6 <sdma_v3_0>
[    1.696232] [drm] add ip block number 7 <uvd_v6_0>
[    1.696720] [drm] add ip block number 8 <vce_v3_0>
[    1.697226] [drm] UVD is enabled in physical mode
[    1.697695] [drm] VCE enabled in physical mode
...
[    1.917101] ATOM BIOS: 113-C8820200-107
[    1.917768] [drm] GPU posting now...
...
[    2.028095] [drm] vm size is 64 GB, 2 levels, block size is 10-bit, fragment size is 9-bit
[    2.029576] amdgpu 0000:01:00.0: VRAM: 4096M 0x000000F400000000 - 0x000000F4FFFFFFFF (4096M used)
[    2.030393] amdgpu 0000:01:00.0: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
[    2.031141] [drm] Detected VRAM RAM=4096M, BAR=256M
[    2.031887] [drm] RAM width 512bits HBM
[    2.033182] [TTM] Zone  kernel: Available graphics memory: 7700476 kiB
[    2.033944] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[    2.034690] [TTM] Initializing pool allocator
[    2.035409] [TTM] Initializing DMA pool allocator
[    2.036096] [drm] amdgpu: 4096M of VRAM memory ready
[    2.036706] [drm] amdgpu: 4096M of GTT memory ready.
[    2.037291] [drm] GART: num cpu pages 262144, num gpu pages 262144
[    2.037900] [drm] PCIE GART of 1024M enabled (table at 0x000000F400000000).
[    2.039900] [drm] Found UVD firmware Version: 1.87 Family ID: 12
[    2.040477] [drm] UVD ENC is disabled
[    2.041653] [drm] Found VCE firmware Version: 53.20 Binary ID: 3
[    2.104067] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.105363] amdgpu: [powerplay] Failed to retrieve minimum clocks.
[    2.106029] amdgpu: [powerplay] Error in phm_get_clock_info 
[    2.106056] ata1.00: ATA-8: WDC WD5000AVVS-63M8B0, 01.00A01, max UDMA/133
[    2.106963] [drm] dce110_link_encoder_construct: Failed to get encoder_cap_info from VBIOS with error code 4!
[    2.107595] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 32), AA
[    2.108854] ata1.00: configured for UDMA/133
[    2.109224] [drm] Display Core initialized with v3.1.59!
[    2.110138] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AVVS-6 0A01 PQ: 0 ANSI: 5
[    2.111128] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.112026] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    2.112061] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    2.112071] sd 0:0:0:0: [sda] Write Protect is off
[    2.112074] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.112089] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.112473] [drm] Driver supports precise vblank timestamp query.
[    2.144240] [drm] UVD initialized successfully.
[    2.233935]  sda: sda1 sda2 sda3 sda4 sda5 sda6
[    2.236079] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.245255] [drm] VCE initialized successfully.
[    2.247630] kfd kfd: Allocated 3969056 bytes on gart
[    2.248376] Topology: Add APU node [0x7300:0x1002]
[    2.249120] kfd kfd: added device 1002:7300
[    2.249924] [drm] Cannot find any crtc or sizes
[    2.252814] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:01:00.0 on minor 0
[    2.253425] checking generic (c0000000 300000) vs hw (c0000000 10000000)
[    2.253426] fb: switching to amdgpudrmfb from EFI VGA
[    2.253965] Console: switching to colour dummy device 80x25
[    2.254411] [drm] initializing kernel modesetting (RAVEN 0x1002:0x15DD 0x1458:0xD000 0xC6).
[    2.254420] [drm] register mmio base: 0xFE400000
[    2.254421] [drm] register mmio size: 524288
[    2.254436] [drm] add ip block number 0 <soc15_common>
[    2.254437] [drm] add ip block number 1 <gmc_v9_0>
[    2.254439] [drm] add ip block number 2 <vega10_ih>
[    2.254440] [drm] add ip block number 3 <psp>
[    2.254442] [drm] add ip block number 4 <powerplay>
[    2.254443] [drm] add ip block number 5 <dm>
[    2.254445] [drm] add ip block number 6 <gfx_v9_0>
[    2.254446] [drm] add ip block number 7 <sdma_v4_0>
[    2.254448] [drm] add ip block number 8 <vcn_v1_0>
[    2.254478] [drm] VCN decode is enabled in VM mode
[    2.254479] [drm] VCN encode is enabled in VM mode
[    2.254480] [drm] VCN jpeg decode is enabled in VM mode
[    2.254482] vga_switcheroo: enabled
[    2.274957] [drm] BIOS signature incorrect 0 0
[    2.274976] ATOM BIOS: 113-RAVEN-107
[    2.275007] [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
[    2.275024] amdgpu 0000:0a:00.0: VRAM: 1024M 0x000000F400000000 - 0x000000F43FFFFFFF (1024M used)
[    2.275026] amdgpu 0000:0a:00.0: GART: 1024M 0x000000F500000000 - 0x000000F53FFFFFFF
[    2.275030] [drm] Detected VRAM RAM=1024M, BAR=1024M
[    2.275032] [drm] RAM width 128bits DDR4
[    2.275039] [drm] amdgpu: 1024M of VRAM memory ready
[    2.275041] [drm] amdgpu: 3072M of GTT memory ready.
[    2.275047] [drm] GART: num cpu pages 262144, num gpu pages 262144
[    2.275202] [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
[    2.276707] [drm] use_doorbell being set to: [true]
[    2.276789] [drm] Found VCN firmware Version: 1.73 Family ID: 18
[    2.276792] [drm] PSP loading VCN firmware
[    2.426836] ata2: SATA link down (SStatus 0 SControl 300)
[    2.440246] amdgpu: [powerplay] dpm has been enabled
[    2.440312] [drm] DM_PPLIB: values for Invalid clock
[    2.440314] [drm] DM_PPLIB:	 0 in kHz
[    2.440315] [drm] DM_PPLIB:	 0 in kHz
[    2.440317] [drm] DM_PPLIB:	 0 in kHz
[    2.440318] [drm] DM_PPLIB:	 1600000 in kHz
[    2.440393] WARNING: CPU: 0 PID: 204 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1372 dcn_bw_update_from_pplib+0x196/0x2c0 [amdgpu]
[    2.440396] Modules linked in: amdkfd amd_iommu_v2 amdgpu(+) chash gpu_sched hid_generic i2c_algo_bit ttm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops usbhid hid drm r8169 i2c_piix4 ahci libahci wmi gpio_amdpt gpio_generic video
[    2.440412] CPU: 0 PID: 204 Comm: systemd-udevd Not tainted 4.19.0-041900-generic #201810221809
[    2.440415] Hardware name: Gigabyte Technology Co., Ltd. AB350N-Gaming WIFI/AB350N-Gaming WIFI-CF, BIOS F23 08/08/2018
[    2.440474] RIP: 0010:dcn_bw_update_from_pplib+0x196/0x2c0 [amdgpu]
[    2.440477] Code: 84 fd 44 ff ff ff 49 8b 95 78 01 00 00 48 89 85 30 ff ff ff df ad 30 ff ff ff d8 f1 db 42 78 de c9 de ca de f9 d9 5a 4c eb 02 <0f> 0b 48 89 da be 04 00 00 00 4c 89 e7 e8 58 4a fe ff 84 c0 0f 84
[    2.440481] RSP: 0018:ffffbd1f42547680 EFLAGS: 00010246
[    2.440483] RAX: 0000000000000001 RBX: ffffbd1f425476e0 RCX: 0000000000000000
[    2.440485] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000246
[    2.440487] RBP: ffffbd1f42547750 R08: 0000000000000000 R09: 00000000000003e2
[    2.440489] R10: ffff9dc49f6e0f00 R11: 0720072007200720 R12: ffff9dc4accb2b00
[    2.440492] R13: ffff9dc49f228000 R14: ffff9dc4a1862d40 R15: ffff9dc49f720000
[    2.440494] FS:  00007f89d52e9680(0000) GS:ffff9dc4afa00000(0000) knlGS:0000000000000000
[    2.440497] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    2.440499] CR2: 00007ffc0f7b4ce8 CR3: 000000042106c000 CR4: 00000000003406f0
[    2.440501] Call Trace:
[    2.440561]  construct+0x841/0xa00 [amdgpu]
[    2.440565]  ? _cond_resched+0x19/0x30
[    2.440622]  dcn10_create_resource_pool+0x41/0x70 [amdgpu]
[    2.440677]  dc_create_resource_pool+0x46/0x180 [amdgpu]
[    2.440680]  ? _cond_resched+0x19/0x30
[    2.440683]  ? __kmalloc+0x1ee/0x220
[    2.440739]  ? dal_gpio_service_create+0xa1/0x130 [amdgpu]
[    2.440793]  dc_create+0x20f/0x630 [amdgpu]
[    2.440796]  ? kmem_cache_alloc_trace+0x172/0x1e0
[    2.440852]  dm_hw_init+0xc6/0x130 [amdgpu]
[    2.440905]  amdgpu_device_init.cold.28+0x113a/0x12e9 [amdgpu]
[    2.440950]  amdgpu_driver_load_kms+0x8b/0x2d0 [amdgpu]
[    2.440962]  drm_dev_register+0x11f/0x160 [drm]
[    2.441006]  amdgpu_pci_probe+0x140/0x1c0 [amdgpu]
[    2.441009]  local_pci_probe+0x46/0x90
[    2.441012]  pci_device_probe+0x18d/0x1a0
[    2.441016]  really_probe+0x243/0x3b0
[    2.441018]  driver_probe_device+0xba/0x100
[    2.441021]  __driver_attach+0xe4/0x110
[    2.441024]  ? driver_probe_device+0x100/0x100
[    2.441026]  bus_for_each_dev+0x74/0xb0
[    2.441029]  ? kmem_cache_alloc_trace+0x1c8/0x1e0
[    2.441032]  driver_attach+0x1e/0x20
[    2.441034]  bus_add_driver+0x159/0x230
[    2.441036]  ? 0xffffffffc0631000
[    2.441039]  driver_register+0x70/0xc0
[    2.441041]  ? 0xffffffffc0631000
[    2.441044]  __pci_register_driver+0x57/0x60
[    2.441084]  amdgpu_init+0x87/0x89 [amdgpu]
[    2.441087]  do_one_initcall+0x4a/0x1c4
[    2.441090]  ? _cond_resched+0x19/0x30
[    2.441093]  ? kmem_cache_alloc_trace+0x172/0x1e0
[    2.441095]  ? kfree+0x15b/0x180
[    2.441098]  do_init_module+0x60/0x220
[    2.441101]  load_module+0x16c1/0x1930
[    2.441104]  __do_sys_finit_module+0xbd/0x120
[    2.441107]  ? __do_sys_finit_module+0xbd/0x120
[    2.441110]  __x64_sys_finit_module+0x1a/0x20
[    2.441112]  do_syscall_64+0x5a/0x110
[    2.441115]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    2.441117] RIP: 0033:0x7f89d4df3839
[    2.441119] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 1f f6 2c 00 f7 d8 64 89 01 48
[    2.441123] RSP: 002b:00007ffc0f7bc248 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    2.441126] RAX: ffffffffffffffda RBX: 000055e725b6ae70 RCX: 00007f89d4df3839
[    2.441128] RDX: 0000000000000000 RSI: 00007f89d4ad2145 RDI: 0000000000000015
[    2.441130] RBP: 00007f89d4ad2145 R08: 0000000000000000 R09: 00007ffc0f7bc360
[    2.441132] R10: 0000000000000015 R11: 0000000000000246 R12: 0000000000000000
[    2.441134] R13: 000055e725b7a9b0 R14: 0000000000020000 R15: 000055e725b6ae70
[    2.441137] ---[ end trace a18cfa66fa2286d4 ]---
[    2.441139] [drm] DM_PPLIB: values for Invalid clock
[    2.441141] [drm] DM_PPLIB:	 300000 in kHz
[    2.441143] [drm] DM_PPLIB:	 600000 in kHz
[    2.441144] [drm] DM_PPLIB:	 626000 in kHz
[    2.441145] [drm] DM_PPLIB:	 654000 in kHz
[    2.441590] [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:1! type 0 expected 3
[    2.441645] [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:2! type 0 expected 3
[    2.457975] [drm] Display Core initialized with v3.1.59!
[    2.483331] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.483334] [drm] Driver supports precise vblank timestamp query.
[    2.506034] [drm] VCN decode and encode initialized successfully.
[    2.507327] kfd kfd: Allocated 3969056 bytes on gart
[    2.507400] Virtual CRAT table created for GPU
[    2.507402] Parsing CRAT table with 1 nodes
[    2.507413] Creating topology SYSFS entries
[    2.507477] Topology: Add dGPU node [0x15dd:0x1002]
[    2.507668] kfd kfd: added device 1002:15dd
[    2.509663] [drm] fb mappable at 0x81100000
[    2.509666] [drm] vram apper at 0x80000000
[    2.509667] [drm] size 14745600
[    2.509669] [drm] fb depth is 24
[    2.509670] [drm]    pitch is 10240
[    2.509765] fbcon: amdgpudrmfb (fb0) is primary device
[    2.546405] Console: switching to colour frame buffer device 320x90
[    2.570456] amdgpu 0000:0a:00.0: fb0: amdgpudrmfb frame buffer device
[    2.584109] amdgpu 0000:0a:00.0: ring 0(gfx) uses VM inv eng 4 on hub 0
[    2.584154] amdgpu 0000:0a:00.0: ring 1(comp_1.0.0) uses VM inv eng 5 on hub 0
[    2.584200] amdgpu 0000:0a:00.0: ring 2(comp_1.1.0) uses VM inv eng 6 on hub 0
[    2.584246] amdgpu 0000:0a:00.0: ring 3(comp_1.2.0) uses VM inv eng 7 on hub 0
[    2.584291] amdgpu 0000:0a:00.0: ring 4(comp_1.3.0) uses VM inv eng 8 on hub 0
[    2.584337] amdgpu 0000:0a:00.0: ring 5(comp_1.0.1) uses VM inv eng 9 on hub 0
[    2.584383] amdgpu 0000:0a:00.0: ring 6(comp_1.1.1) uses VM inv eng 10 on hub 0
[    2.584429] amdgpu 0000:0a:00.0: ring 7(comp_1.2.1) uses VM inv eng 11 on hub 0
[    2.584475] amdgpu 0000:0a:00.0: ring 8(comp_1.3.1) uses VM inv eng 12 on hub 0
[    2.584521] amdgpu 0000:0a:00.0: ring 9(kiq_2.1.0) uses VM inv eng 13 on hub 0
[    2.584567] amdgpu 0000:0a:00.0: ring 10(sdma0) uses VM inv eng 4 on hub 1
[    2.584611] amdgpu 0000:0a:00.0: ring 11(vcn_dec) uses VM inv eng 5 on hub 1
[    2.584656] amdgpu 0000:0a:00.0: ring 12(vcn_enc0) uses VM inv eng 6 on hub 1
[    2.584701] amdgpu 0000:0a:00.0: ring 13(vcn_enc1) uses VM inv eng 7 on hub 1
[    2.584746] amdgpu 0000:0a:00.0: ring 14(vcn_jpeg) uses VM inv eng 8 on hub 1
[    2.589390] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:0a:00.0 on minor 1
...

The output of rocminfo follows:

=====================    
HSA System Attributes    
=====================    
Runtime Version:         1.1
System Timestamp Freq.:  0.000000MHz
Sig. Max Wait Duration:  18446744073709551615 (number of timestamp)
Machine Model:           LARGE                              
System Endianness:       LITTLE                             

==========               
HSA Agents               
==========               
*** Done ***             

Any ideas would be appreciated. I'm interested using the integrated GPU at least for OpenCL, which seems reportedly work.

Thanks.

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