|
s2k7
发表于 2022-7-18 21:42
来自 日本
我的主板 ASUS TUF B550M-PLUS,CPU 5700G
楼主提供的amdgpu 在物理机上完美启动。 确认了 /dev/dri。
请问 ncme ssd 是否可以当做储存使用?还没时间测试。
我目前主要用ESXi-7.0.3,虚拟了TS877,启动 amdgpu 出现了一些错误,烦请楼主抽时间看看。显卡直通了。
估计显卡信息没有完全直通好。
[s2k7@NAS2C2DA1 ~]$ sudo /sbin/init_amdgpu
Find system reservation_ww_class is ok
amdgpu ok
[s2k7@NAS2C2DA1 ~]$
dmesg
[ 308.938722] [drm] amdgpu kernel modesetting enabled.
[ 308.938771] [drm] amdgpu version: 5.13.20.5.1
[ 308.938817] [drm] OS DRM version: 5.10.0
[ 308.938944] amdgpu: CRAT table not found
[ 308.938979] amdgpu: Virtual CRAT table created for CPU
[ 308.939026] amdgpu: Topology: Add CPU node
[ 308.942829] amdkcl: is_firmware_framebuffer:enable the runtime pm
[ 308.943008] amdgpu 0000:0b:00.0: enabling device (0000 -> 0003)
[ 308.943550] [drm] initializing kernel modesetting (RENOIR 0x1002:0x1638 0x1043:0x8809 0xC8).
[ 308.943634] amdgpu 0000:0b:00.0: amdgpu: Trusted Memory Zone (TMZ) feature enabled
[ 308.943728] [drm] register mmio base: 0xFE200000
[ 308.943773] [drm] register mmio size: 524288
[ 308.945336] [drm] add ip block number 0 <soc15_common>
[ 308.945385] [drm] add ip block number 1 <gmc_v9_0>
[ 308.945427] [drm] add ip block number 2 <vega10_ih>
[ 308.945466] [drm] add ip block number 3 <psp>
[ 308.945501] [drm] add ip block number 4 <smu>
[ 308.945537] [drm] add ip block number 5 <dm>
[ 308.945571] [drm] add ip block number 6 <gfx_v9_0>
[ 308.945610] [drm] add ip block number 7 <sdma_v4_0>
[ 308.945649] [drm] add ip block number 8 <vcn_v2_0>
[ 308.945687] [drm] add ip block number 9 <jpeg_v2_0>
[ 308.991914] [drm] BIOS signature incorrect 79 cb
[ 308.992281] amdgpu 0000:0b:00.0: amdgpu: Fetched VBIOS from ROM BAR
[ 308.992346] amdgpu: ATOM BIOS: 113-CEZANNE-018
[ 308.992430] [drm] VCN decode is enabled in VM mode
[ 308.992478] [drm] VCN encode is enabled in VM mode
[ 308.992525] [drm] JPEG decode is enabled in VM mode
[ 308.992584] amdgpu 0000:0b:00.0: amdgpu: PCIE atomic ops is not supported
[ 308.992683] [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
[ 308.992776] amdgpu 0000:0b:00.0: amdgpu: VRAM: 4096M 0x000000F400000000 - 0x000000F4FFFFFFFF (4096M used)
[ 308.992884] amdgpu 0000:0b:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
[ 308.992968] amdgpu 0000:0b:00.0: amdgpu: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
[ 308.993062] [drm] Detected VRAM RAM=4096M, BAR=4096M
[ 308.993111] [drm] RAM width 128bits DDR4
[ 308.993219] [drm] amdgpu: 4096M of VRAM memory ready
[ 308.993271] [drm] amdgpu: 7956M of GTT memory ready.
[ 308.993323] [drm] GART: num cpu pages 262144, num gpu pages 262144
[ 308.993481] [drm] PCIE GART of 1024M enabled.
[ 308.993516] [drm] PTB located at 0x000000F400900000
[ 308.994076] amdgpu 0000:0b:00.0: amdgpu: PSP runtime database doesn't exist
[ 308.994170] [drm] Loading DMUB firmware via PSP: version=0x01010020
[ 308.995034] [drm] Found VCN firmware Version ENC: 1.16 DEC: 5 VEP: 0 Revision: 3
[ 308.995095] amdgpu 0000:0b:00.0: amdgpu: Will use PSP to load VCN firmware
[ 309.597707] [drm] reserve 0x400000 from 0xf4ff800000 for PSP TMR
[ 311.602049] [drm] psp gfx command UNKNOWN CMD(0xFFFFFFFF) failed and response status is (0xFFFFFFFF)
[ 311.602237] [drm:psp_hw_start [amdgpu]] *ERROR* PSP load tmr failed!
[ 311.602353] [drm:psp_hw_init [amdgpu]] *ERROR* PSP firmware loading failed
[ 311.602462] [drm:amdgpu_device_fw_loading [amdgpu]] *ERROR* hw_init of IP block <psp> failed -22
[ 311.602548] amdgpu 0000:0b:00.0: amdgpu: amdgpu_device_ip_init failed
[ 311.602611] amdgpu 0000:0b:00.0: amdgpu: Fatal error during GPU init
[ 311.602673] amdgpu 0000:0b:00.0: amdgpu: amdgpu: finishing device.
[ 311.613100] ------------[ cut here ]------------
[ 311.613168] Memory manager not clean during takedown.
[ 311.613228] WARNING: CPU: 1 PID: 24475 at drivers/gpu/drm/drm_mm.c:999 drm_mm_takedown+0x1d/0x20
[ 311.613312] Modules linked in: amdgpu(O+) amdttm(O) amd_sched(O) amdkcl(O) rfcomm usdm_drv(O) intel_qat(O) uio iscsi_tcp(O) libiscsi_tcp(O) libiscsi(O) scsi_transport_iscsi(O) fbdisk(O) xt_nat cfg80211 dummy br_netfilter bridge stp xt_connmark xt_TCPMSS xt_LOG xt_set ip_set_hash_netiface ip_set_hash_net ip_set xt_MASQUERADE xt_REDIRECT iptable_nat nf_nat xt_policy xt_mark 8021q ipv6 uvcvideo videobuf2_v4l2 videobuf2_vmalloc videobuf2_memops videobuf2_common snd_usb_caiaq snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_rawmidi fnotify(O) nfsd udf isofs vfio_pci irqbypass vfio_virqfd vfio exfat ufsd(PO) jnl(O) cdc_acm pl2303 usbserial vmxnet3(O) qm2_i2c(O) drbd lru_cache flashcache(O) dm_tier_hro_algo dm_thin_pool dm_bio_prison dm_persistent_data hal_netlink(O) r8152(O) usbnet mii igb e1000e mv14xx(O) mpt3sas scsi_transport_sas raid_class qla2xxx scsi_transport_fc k10temp hwmon_vid uas usb_storage xhci_pci xhci_hcd usblp uhci_hcd ehci_pci ehci_hcd
[ 311.613976] CPU: 1 PID: 24475 Comm: modprobe Tainted: P O 5.10.60-qnap #1
[ 311.614038] Hardware name: VMware, Inc. VMware7,1/440BX Desktop Reference Platform, BIOS VMW71.00V.18452719.B64.2108091906 08/09/2021
[ 311.614130] RIP: 0010:drm_mm_takedown+0x1d/0x20
[ 311.614175] Code: 31 c0 c3 66 2e 0f 1f 84 00 00 00 00 00 48 8b 47 38 48 83 c7 38 48 39 f8 75 02 f3 c3 48 c7 c7 a0 c6 39 82 31 c0 e8 b3 0c ad ff <0f> 0b c3 41 54 55 b9 15 00 00 00 53 48 89 fb 4c 8b 67 18 48 89 f5
[ 311.614315] RSP: 0018:ffffc90004a17a70 EFLAGS: 00010286
[ 311.614356] RAX: 0000000000000000 RBX: ffff888141760000 RCX: 0000000000000001
[ 311.614410] RDX: 0000000000000027 RSI: 00000000ffffdfff RDI: ffff888237c97998
[ 311.614464] RBP: ffff888141765db8 R08: 0000000000000003 R09: 0000000000001fff
[ 311.614519] R10: ffff888149b83800 R11: ffffc90004a17880 R12: ffff888141765db8
[ 311.614573] R13: ffff888141765db8 R14: 0000000000000001 R15: ffff8881417661c0
[ 311.614628] FS: 00007f6338d16700(0000) GS:ffff888237c80000(0000) knlGS:0000000000000000
[ 311.614689] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 311.614743] CR2: 00007f2c6c7bc000 CR3: 0000000141a3e000 CR4: 00000000007506e0
[ 311.614804] PKRU: 55555554
[ 311.614825] Call Trace:
[ 311.614925] amdgpu_vram_mgr_fini+0xdb/0x150 [amdgpu]
[ 311.615000] amdgpu_ttm_fini+0x11d/0x2a0 [amdgpu]
[ 311.615069] amdgpu_bo_fini+0x1d/0x80 [amdgpu]
[ 311.615141] gmc_v9_0_sw_fini+0x3e/0x50 [amdgpu]
[ 311.615217] amdgpu_device_fini_sw+0xcd/0x2e0 [amdgpu]
[ 311.615263] ? do_pci_disable_device+0x51/0x70
[ 311.615327] amdgpu_driver_release_kms+0xd/0x20 [amdgpu]
[ 311.615371] drm_dev_release+0x1b/0x30
[ 311.615403] release_nodes+0x13a/0x1e0
[ 311.615433] really_probe+0xd3/0x4f0
[ 311.615462] driver_probe_device+0x58/0x140
[ 311.615496] device_driver_attach+0x4a/0x50
[ 311.615529] __driver_attach+0xa1/0x140
[ 311.615560] ? device_driver_attach+0x50/0x50
[ 311.615595] bus_for_each_dev+0x5f/0xb0
[ 311.615626] bus_add_driver+0x15c/0x220
[ 311.615656] driver_register+0x56/0xf0
[ 311.615687] ? 0xffffffffa11a0000
[ 311.615714] do_one_initcall+0x49/0x1d0
[ 311.615746] ? __vunmap+0x1f7/0x250
[ 311.615775] ? _cond_resched+0x10/0x20
[ 311.615806] ? kmem_cache_alloc+0x30/0x3f0
[ 311.615840] do_init_module+0x50/0x1fe
[ 311.615872] load_module+0x25e5/0x28f0
[ 311.615903] ? asm_sysvec_apic_timer_interrupt+0x12/0x20
[ 311.615945] ? __do_sys_init_module+0x10a/0x140
[ 311.615981] __do_sys_init_module+0x10a/0x140
[ 311.616016] do_syscall_64+0x2d/0x40
[ 311.616045] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 311.616085] RIP: 0033:0x7f6338540009
[ 311.616115] 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 4f 8e 2b 00 f7 d8 64 89 01 48
[ 311.616265] RSP: 002b:00007ffc8e581b08 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[ 311.616323] RAX: ffffffffffffffda RBX: 00007f6338d16690 RCX: 00007f6338540009
[ 311.616378] RDX: 000000000081ac90 RSI: 0000000000c33270 RDI: 00007f6337828010
[ 311.616432] RBP: 000000000081ac90 R08: 000000000081d730 R09: 0000000000000000
[ 311.616487] R10: 00000000ffffffff R11: 0000000000000246 R12: 00007f6337828010
[ 311.616541] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
[ 311.616596] ---[ end trace 664a36d21ab48af1 ]---
[ 311.616642] ------------[ cut here ]------------
[ 311.616678] Memory manager not clean during takedown.
[ 311.616723] WARNING: CPU: 1 PID: 24475 at drivers/gpu/drm/drm_mm.c:999 drm_mm_takedown+0x1d/0x20
[ 311.616790] Modules linked in: amdgpu(O+) amdttm(O) amd_sched(O) amdkcl(O) rfcomm usdm_drv(O) intel_qat(O) uio iscsi_tcp(O) libiscsi_tcp(O) libiscsi(O) scsi_transport_iscsi(O) fbdisk(O) xt_nat cfg80211 dummy br_netfilter bridge stp xt_connmark xt_TCPMSS xt_LOG xt_set ip_set_hash_netiface ip_set_hash_net ip_set xt_MASQUERADE xt_REDIRECT iptable_nat nf_nat xt_policy xt_mark 8021q ipv6 uvcvideo videobuf2_v4l2 videobuf2_vmalloc videobuf2_memops videobuf2_common snd_usb_caiaq snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_rawmidi fnotify(O) nfsd udf isofs vfio_pci irqbypass vfio_virqfd vfio exfat ufsd(PO) jnl(O) cdc_acm pl2303 usbserial vmxnet3(O) qm2_i2c(O) drbd lru_cache flashcache(O) dm_tier_hro_algo dm_thin_pool dm_bio_prison dm_persistent_data hal_netlink(O) r8152(O) usbnet mii igb e1000e mv14xx(O) mpt3sas scsi_transport_sas raid_class qla2xxx scsi_transport_fc k10temp hwmon_vid uas usb_storage xhci_pci xhci_hcd usblp uhci_hcd ehci_pci ehci_hcd
[ 311.617449] CPU: 1 PID: 24475 Comm: modprobe Tainted: P W O 5.10.60-qnap #1
[ 311.617511] Hardware name: VMware, Inc. VMware7,1/440BX Desktop Reference Platform, BIOS VMW71.00V.18452719.B64.2108091906 08/09/2021
[ 311.617603] RIP: 0010:drm_mm_takedown+0x1d/0x20
[ 311.617639] Code: 31 c0 c3 66 2e 0f 1f 84 00 00 00 00 00 48 8b 47 38 48 83 c7 38 48 39 f8 75 02 f3 c3 48 c7 c7 a0 c6 39 82 31 c0 e8 b3 0c ad ff <0f> 0b c3 41 54 55 b9 15 00 00 00 53 48 89 fb 4c 8b 67 18 48 89 f5
[ 311.617780] RSP: 0018:ffffc90004a17a88 EFLAGS: 00010286
[ 311.617821] RAX: 0000000000000000 RBX: ffff888141760000 RCX: 0000000000000001
[ 311.617875] RDX: 0000000000000027 RSI: 00000000ffffdfff RDI: ffff888237c97998
[ 311.617930] RBP: ffff8881417652a0 R08: 0000000000000003 R09: 0000000000001fff
[ 311.617985] R10: ffff888149b83800 R11: ffffc90004a17898 R12: ffff8881417661a0
[ 311.618040] R13: ffff888141776870 R14: 0000000000000001 R15: ffff8881417661c0
[ 311.618095] FS: 00007f6338d16700(0000) GS:ffff888237c80000(0000) knlGS:0000000000000000
[ 311.618164] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 311.618215] CR2: 00007f2c6c7bc000 CR3: 0000000141a3e000 CR4: 00000000007506e0
[ 311.618276] PKRU: 55555554
[ 311.618298] Call Trace:
[ 311.618375] amdgpu_gtt_mgr_fini+0x6f/0xf0 [amdgpu]
[ 311.618445] amdgpu_ttm_fini+0x125/0x2a0 [amdgpu]
[ 311.618512] amdgpu_bo_fini+0x1d/0x80 [amdgpu]
[ 311.618581] gmc_v9_0_sw_fini+0x3e/0x50 [amdgpu]
[ 311.618647] amdgpu_device_fini_sw+0xcd/0x2e0 [amdgpu]
[ 311.618690] ? do_pci_disable_device+0x51/0x70
[ 311.618753] amdgpu_driver_release_kms+0xd/0x20 [amdgpu]
[ 311.618797] drm_dev_release+0x1b/0x30
[ 311.618828] release_nodes+0x13a/0x1e0
[ 311.618858] really_probe+0xd3/0x4f0
[ 311.618888] driver_probe_device+0x58/0x140
[ 311.618921] device_driver_attach+0x4a/0x50
[ 311.618954] __driver_attach+0xa1/0x140
[ 311.618984] ? device_driver_attach+0x50/0x50
[ 311.619019] bus_for_each_dev+0x5f/0xb0
[ 311.619050] bus_add_driver+0x15c/0x220
[ 311.619080] driver_register+0x56/0xf0
[ 311.619110] ? 0xffffffffa11a0000
[ 311.619138] do_one_initcall+0x49/0x1d0
[ 311.619181] ? __vunmap+0x1f7/0x250
[ 311.619211] ? _cond_resched+0x10/0x20
[ 311.619242] ? kmem_cache_alloc+0x30/0x3f0
[ 311.619276] do_init_module+0x50/0x1fe
[ 311.619308] load_module+0x25e5/0x28f0
[ 311.619339] ? asm_sysvec_apic_timer_interrupt+0x12/0x20
[ 311.619381] ? __do_sys_init_module+0x10a/0x140
[ 311.619416] __do_sys_init_module+0x10a/0x140
[ 311.619452] do_syscall_64+0x2d/0x40
[ 311.619481] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 311.619521] RIP: 0033:0x7f6338540009
[ 311.619551] 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 4f 8e 2b 00 f7 d8 64 89 01 48
[ 311.619692] RSP: 002b:00007ffc8e581b08 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[ 311.619750] RAX: ffffffffffffffda RBX: 00007f6338d16690 RCX: 00007f6338540009
[ 311.619805] RDX: 000000000081ac90 RSI: 0000000000c33270 RDI: 00007f6337828010
[ 311.619859] RBP: 000000000081ac90 R08: 000000000081d730 R09: 0000000000000000
[ 311.619914] R10: 00000000ffffffff R11: 0000000000000246 R12: 00007f6337828010
[ 311.619968] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
[ 311.620023] ---[ end trace 664a36d21ab48af2 ]---
[ 311.620071] [drm] amdgpu: ttm finalized
[ 311.621159] amdgpu: probe of 0000:0b:00.0 failed with error -22
|
|