KMS does not work on MSI B350M MORTAR with AMD Ryzen 3 2200g

Paul Menzel pmenzel+amd-gfx at molgen.mpg.de
Mon Jul 16 16:14:09 UTC 2018


Dear Linux folks,


Trying to boot Debian Buster/testing with Linux 4.16.16 on a MSI B350M MORTAR [1]
with a Ryzen 3 2200g and a monitor connected over HDMI, when kernel mode setting
(KMS) is enabled the monitor does not receive any updates, that means I do not
see the login prompt and only the Linux and systemd service messages from before.
The system seems to running though.

Debian’s package *firmware-amd-graphics* [2] is from August 2017 and therefore
outdated. I manually installed the firmware files from the Linux firmware
repository [3].

Here is the log.

```
Jul 16 17:54:39 tokeiihto kernel: [   25.652026] [drm] BIOS signature incorrect 0 0
Jul 16 17:54:39 tokeiihto kernel: [   25.652058] ATOM BIOS: 113-RAVEN-106
Jul 16 17:54:39 tokeiihto kernel: [   25.652096] [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
Jul 16 17:54:39 tokeiihto kernel: [   25.652107] amdgpu 0000:38:00.0: VRAM: 1024M 0x000000F400000000 - 0x000000F43FFFFFFF (1024M used)
Jul 16 17:54:39 tokeiihto kernel: [   25.652109] amdgpu 0000:38:00.0: GTT: 1024M 0x000000F500000000 - 0x000000F53FFFFFFF
Jul 16 17:54:39 tokeiihto kernel: [   25.652113] [drm] Detected VRAM RAM=1024M, BAR=256M
Jul 16 17:54:39 tokeiihto kernel: [   25.652114] [drm] RAM width 128bits UNKNOWN
Jul 16 17:54:39 tokeiihto kernel: [   25.652170] [TTM] Zone  kernel: Available graphics memory: 7703370 kiB
Jul 16 17:54:39 tokeiihto kernel: [   25.652171] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
Jul 16 17:54:39 tokeiihto kernel: [   25.652171] [TTM] Initializing pool allocator
Jul 16 17:54:39 tokeiihto kernel: [   25.652174] [TTM] Initializing DMA pool allocator
Jul 16 17:54:39 tokeiihto kernel: [   25.652202] [drm] amdgpu: 1024M of VRAM memory ready
Jul 16 17:54:39 tokeiihto kernel: [   25.652203] [drm] amdgpu: 3072M of GTT memory ready.
Jul 16 17:54:39 tokeiihto kernel: [   25.652220] [drm] GART: num cpu pages 262144, num gpu pages 262144
Jul 16 17:54:39 tokeiihto kernel: [   25.652433] [drm] PCIE GART of 1024M enabled (table at 0x000000F400800000).
Jul 16 17:54:39 tokeiihto kernel: [   25.652541] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Jul 16 17:54:39 tokeiihto kernel: [   25.652541] [drm] Driver supports precise vblank timestamp query.
Jul 16 17:54:39 tokeiihto kernel: [   25.652983] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_asd.bin
Jul 16 17:54:39 tokeiihto kernel: [   25.653276] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_pfp.bin
Jul 16 17:54:39 tokeiihto kernel: [   25.653498] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_me.bin
Jul 16 17:54:39 tokeiihto kernel: [   25.653668] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_ce.bin
Jul 16 17:54:39 tokeiihto kernel: [   25.653960] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_rlc.bin
Jul 16 17:54:39 tokeiihto kernel: [   25.654817] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_mec.bin
Jul 16 17:54:39 tokeiihto kernel: [   25.656137] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_mec2.bin
Jul 16 17:54:39 tokeiihto kernel: [   25.658217] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_sdma.bin
Jul 16 17:54:39 tokeiihto kernel: [   25.658220] [drm] use_doorbell being set to: [true]
Jul 16 17:54:39 tokeiihto kernel: [   25.659663] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_vcn.bin
Jul 16 17:54:39 tokeiihto kernel: [   25.659667] [drm] Found VCN firmware Version: 1.73 Family ID: 18
Jul 16 17:54:39 tokeiihto kernel: [   25.847424] [drm] VCN decode and encode initialized successfully.
Jul 16 17:54:39 tokeiihto kernel: [   25.852189] amdgpu 0000:38:00.0: ring 0(gfx) uses VM inv eng 4 on hub 0
Jul 16 17:54:39 tokeiihto kernel: [   25.852191] amdgpu 0000:38:00.0: ring 1(comp_1.0.0) uses VM inv eng 5 on hub 0
Jul 16 17:54:39 tokeiihto kernel: [   25.852193] amdgpu 0000:38:00.0: ring 2(comp_1.1.0) uses VM inv eng 6 on hub 0
Jul 16 17:54:39 tokeiihto kernel: [   25.852194] amdgpu 0000:38:00.0: ring 3(comp_1.2.0) uses VM inv eng 7 on hub 0
Jul 16 17:54:39 tokeiihto kernel: [   25.852195] amdgpu 0000:38:00.0: ring 4(comp_1.3.0) uses VM inv eng 8 on hub 0
Jul 16 17:54:39 tokeiihto kernel: [   25.852197] amdgpu 0000:38:00.0: ring 5(comp_1.0.1) uses VM inv eng 9 on hub 0
Jul 16 17:54:39 tokeiihto kernel: [   25.852198] amdgpu 0000:38:00.0: ring 6(comp_1.1.1) uses VM inv eng 10 on hub 0
Jul 16 17:54:39 tokeiihto kernel: [   25.852200] amdgpu 0000:38:00.0: ring 7(comp_1.2.1) uses VM inv eng 11 on hub 0
Jul 16 17:54:39 tokeiihto kernel: [   25.852201] amdgpu 0000:38:00.0: ring 8(comp_1.3.1) uses VM inv eng 12 on hub 0
Jul 16 17:54:39 tokeiihto kernel: [   25.852202] amdgpu 0000:38:00.0: ring 9(kiq_2.1.0) uses VM inv eng 13 on hub 0
Jul 16 17:54:39 tokeiihto kernel: [   25.852204] amdgpu 0000:38:00.0: ring 10(sdma0) uses VM inv eng 4 on hub 1
Jul 16 17:54:39 tokeiihto kernel: [   25.852205] amdgpu 0000:38:00.0: ring 11(vcn_dec) uses VM inv eng 5 on hub 1
Jul 16 17:54:39 tokeiihto kernel: [   25.852207] amdgpu 0000:38:00.0: ring 12(vcn_enc0) uses VM inv eng 6 on hub 1
Jul 16 17:54:39 tokeiihto kernel: [   25.852208] amdgpu 0000:38:00.0: ring 13(vcn_enc1) uses VM inv eng 7 on hub 1
Jul 16 17:54:39 tokeiihto kernel: [   25.856580] [drm] Initialized amdgpu 3.23.0 20150101 for 0000:38:00.0 on minor 0
```

The messages `[drm] BIOS signature incorrect 0 0` stands out. The latest
mainboard firmware version 7A37v1F from May 2018 is installed [4].

Booting with `nomodeset` works.

Please find attached the full log with the KMS boot messages in the
beginning, and the nomodeset messages in the second part.

Do you have any hints how to get modesetting to work?


Kind regards,

Paul


PS: Here is the output of `lspci`.

```
$ lspci -nn
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:15d0]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Device [1022:15d1]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge [1022:1452]
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:15d3]
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge [1022:1452]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:15db]
00:08.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:15dc]
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 61)
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] Device [1022:15e8]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:15e9]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:15ea]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:15eb]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:15ec]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:15ed]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:15ee]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:15ef]
15:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset USB 3.1 xHCI Controller [1022:43bb] (rev 02)
15:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset SATA Controller [1022:43b7] (rev 02)
15:00.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b2] (rev 02)
16:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02)
16:01.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02)
16:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02)
18:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
38:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] [1002:15dd] (rev c8)
38:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:15de]
38:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Device [1022:15df]
38:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15e0]
38:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15e1]
38:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Device [1022:15e3]
39:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 61)
```

[1]: https://www.msi.com/Motherboard/B350M-MORTAR/
[2]: https://packages.debian.org/buster/firmware-amd-graphics
[3]: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/
[4]: https://www.msi.com/Motherboard/support/B350M-MORTAR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kern.log
Type: text/x-log
Size: 181248 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20180716/ae113dac/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5174 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20180716/ae113dac/attachment-0003.bin>


More information about the amd-gfx mailing list