Gentoo Archives: gentoo-user

From: Klaus Dittrich <kladit@××××××××.de>
To: gentoo-user@l.g.o
Cc: "Peter Böhm" <peter.bo@×××.de>, Julien Roy <julien@××××.ca>
Subject: Re: [gentoo-user] need help with amdgpu driver
Date: Fri, 27 Jan 2023 15:54:49
Message-Id: 4684cccd-d54f-c744-7062-f1f17367c1ec@t-online.de
1 On 27.01.23 16:05, Klaus Dittrich wrote:
2 > On 27.01.23 15:30, Julien Roy wrote:
3 >> Klaus Dittrich <kladit@××××××××.de> writes:
4 >>> as I do not use a initrd or initramfs I am, as far as I know, forced
5 >>> to compile the driver amdgpu into the kernel, not as modules to be
6 >>> loaded.
7 >>
8 >> No, you can use modules even without an initrd.
9 >>
10 >>> I looked at https://wiki.gentoo.org/wiki/Amdgpu#Unknown_firmware_blobs
11 >>> but I still do not know what name is relevant to the built-in-gpu
12 >>> of a AMD-7900X  processor.(!?)
13 >>>
14 >>> Does this gpu really needs all these blobs of the list there?
15 >>>
16 >> No, these blobs are given as examples. They vary per GPU models and in
17 >> fact there are several hundred different blobs available:
18 >>
19 >> ls -l /lib/firmware/amdgpu | wc -l
20 >> 479
21 >>
22 >> So you have to figure out which ones you need. The easiest method is to
23 >> let the kernel load them itself by having the driver built as a module,
24 >> otherwise it may take several iterations of modifying the
25 >> CONFIG_EXTRA_FIRMWARE value until you get it to work.
26 >>
27 >
28 > Julien and Peter,
29 >
30 > now I (assume I) understand what you mean.
31 >
32 > The kernel needs the entries to CONFIG_EXTRA_FIRMWARE
33 > just for drivers to be compiled in and for modules just
34 > to reduce the seeking  in /lib/firmware/amdgpu ?
35 >
36 > So when I set CONFIG_DRM_AMDGPU=m and then look at dmesg
37 > of the so compiled kernel it detects the type of
38 > hardware I have (here the type of the cpu-built-in gpui
39 > and tells me (via dmesg) which blobs  are needed
40 > to satisfy the driver for the hardware it has detected.
41 >
42 > I will try that, moment please ..
43
44 Julien and Peter,
45
46 I got no errors or messages form dmesg saying that some blobs
47 are missed.
48 I got some console messsages written in an very big font-
49 So I compiled the the kernel again with AMDGPU=y this time
50 and now I got all the messages of the kernel boot
51 in normal fonts (my screen is 3840x2160).
52
53 dmesg:
54 [ 0.666078] amdgpu 0000:0d:00.0: amdgpu: Fetched VBIOS from VFCT
55 [ 0.666079] amdgpu: ATOM BIOS: 102-RAPHAEL-008
56 [ 0.666084] [drm] VCN(0) decode is enabled in VM mode
57 [ 0.666085] [drm] VCN(0) encode is enabled in VM mode
58 [ 0.666087] amdgpu 0000:0d:00.0: vgaarb: deactivate vga console
59 [ 0.666089] amdgpu 0000:0d:00.0: amdgpu: Trusted Memory Zone (TMZ)
60 feature not supported
61 [ 0.666091] amdgpu 0000:0d:00.0: amdgpu: PCIE atomic ops is not supported
62 [ 0.666299] [drm] vm size is 262144 GB, 4 levels, block size is
63 9-bit, fragment size is 9-bit
64 [ 0.666303] amdgpu 0000:0d:00.0: amdgpu: VRAM: 512M
65 0x000000F400000000 - 0x000000F41FFFFFFF (512M used)
66 [ 0.666305] amdgpu 0000:0d:00.0: amdgpu: GART: 1024M
67 0x0000000000000000 - 0x000000003FFFFFFF
68 [ 0.666307] amdgpu 0000:0d:00.0: amdgpu: AGP: 267419648M
69 0x000000F800000000 - 0x0000FFFFFFFFFFFF
70 [ 0.666311] [drm] Detected VRAM RAM=512M, BAR=512M
71 [ 0.666312] [drm] RAM width 128bits DDR5
72 [ 0.666327] [drm] amdgpu: 512M of VRAM memory ready
73 [ 0.666329] [drm] amdgpu: 31782M of GTT memory ready.
74 [ 0.666525] [drm] GART: num cpu pages 262144, num gpu pages 262144
75 [ 0.666639] [drm] PCIE GART of 1024M enabled (table at
76 0x000000F41FC00000).
77 [ 0.666963] amdgpu 0000:0d:00.0: amdgpu: PSP runtime database doesn't
78 exist
79 [ 0.666967] amdgpu 0000:0d:00.0: amdgpu: PSP runtime database doesn't
80 exist
81 [ 0.667073] [drm] Loading DMUB firmware via PSP: version=0x05000500
82 [ 0.668329] [drm] use_doorbell being set to: [true]
83 [ 0.668408] [drm] Found VCN firmware Version ENC: 1.24 DEC: 2 VEP: 0
84 Revision: 0
85 [ 0.668411] amdgpu 0000:0d:00.0: amdgpu: Will use PSP to load VCN
86 firmware
87 [ 0.691438] [drm] reserve 0xa00000 from 0xf41e000000 for PSP TMR
88 [ 0.760009] amdgpu 0000:0d:00.0: amdgpu: RAS: optional ras ta ucode
89 is not available
90 [ 0.767012] amdgpu 0000:0d:00.0: amdgpu: RAP: optional rap ta ucode
91 is not available
92 [ 0.767016] amdgpu 0000:0d:00.0: amdgpu: SECUREDISPLAY: securedisplay
93 ta ucode is not available
94 [ 0.767276] amdgpu 0000:0d:00.0: amdgpu: smu driver if version =
95 0x00000004, smu fw if version = 0x00000005, smu fw program = 0, smu fw
96 version = 0x00544fcc (84.79.204)
97 [ 0.768927] [drm] Display Core initialized with v3.2.207!
98 [ 0.769472] [drm] DMUB hardware initialized: version=0x05000500
99 [ 0.815836] amdgpu 0000:0d:00.0: adding component (ops
100 0xffffffff827288f0)
101 [ 0.816440] device: 'i2c-0': device_add
102 [ 0.816442] bus: 'i2c': add device i2c-0
103 [ 0.843548] device: 'i2c-1': device_add
104 [ 0.843549] bus: 'i2c': add device i2c-1
105 [ 0.843778] device: 'i2c-2': device_add
106 [ 0.843778] bus: 'i2c': add device i2c-2
107 [ 0.843809] device: 'i2c-3': device_add
108 [ 0.843810] bus: 'i2c': add device i2c-3
109 [ 0.844448] [drm] kiq ring mec 2 pipe 1 q 0
110 [ 0.846850] [drm] VCN decode and encode initialized
111 successfully(under DPG Mode).
112 [ 0.847968] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
113 [ 0.848003] amdgpu: sdma_bitmap: 3
114 [ 0.848271] amdgpu: Virtual CRAT table created for GPU
115 [ 0.848480] amdgpu: Topology: Add dGPU node [0x164e:0x1002]
116 [ 0.848482] kfd kfd: amdgpu: added device 1002:164e
117 [ 0.848489] amdgpu 0000:0d:00.0: amdgpu: SE 1, SH per SE 1, CU per SH
118 2, active_cu_number 2
119 [ 0.848557] device: 'hwmon0': device_add
120 [ 0.848701] amdgpu 0000:0d:00.0: amdgpu: ring gfx_0.0.0 uses VM inv
121 eng 0 on hub 0
122 [ 0.848703] amdgpu 0000:0d:00.0: amdgpu: ring comp_1.0.0 uses VM inv
123 eng 1 on hub 0
124 [ 0.848704] amdgpu 0000:0d:00.0: amdgpu: ring comp_1.1.0 uses VM inv
125 eng 4 on hub 0
126 [ 0.848705] amdgpu 0000:0d:00.0: amdgpu: ring comp_1.2.0 uses VM inv
127 eng 5 on hub 0
128 [ 0.848707] amdgpu 0000:0d:00.0: amdgpu: ring comp_1.3.0 uses VM inv
129 eng 6 on hub 0
130 [ 0.848708] amdgpu 0000:0d:00.0: amdgpu: ring comp_1.0.1 uses VM inv
131 eng 7 on hub 0
132 [ 0.848710] amdgpu 0000:0d:00.0: amdgpu: ring comp_1.1.1 uses VM inv
133 eng 8 on hub 0
134 [ 0.848711] amdgpu 0000:0d:00.0: amdgpu: ring comp_1.2.1 uses VM inv
135 eng 9 on hub 0
136 [ 0.848712] amdgpu 0000:0d:00.0: amdgpu: ring comp_1.3.1 uses VM inv
137 eng 10 on hub 0
138 [ 0.848717] amdgpu 0000:0d:00.0: amdgpu: ring vcn_dec_0 uses VM inv
139 eng 0 on hub 1
140 [ 0.848718] amdgpu 0000:0d:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv
141 eng 1 on hub 1
142 [ 0.848719] amdgpu 0000:0d:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv
143 eng 4 on hub 1
144 [ 0.848829] device: 'renderD128': device_add
145 [ 0.848854] device: 'card0': device_add
146 [ 0.848864] device: 'card0-HDMI-A-1': device_add
147 [ 0.848872] device: 'card0-DP-1': device_add
148 [ 0.848876] device: 'i2c-4': device_add
149 [ 0.848877] bus: 'i2c': add device i2c-4
150 [ 0.848940] device: 'card0-DP-2': device_add
151 [ 0.848942] device: 'i2c-5': device_add
152 [ 0.848943] bus: 'i2c': add device i2c-5
153 [ 0.849073] device: 'card0-DP-3': device_add
154 [ 0.849144] device: 'i2c-6': device_add
155 [ 0.849145] bus: 'i2c': add device i2c-6
156 [ 0.849149] [drm] Initialized amdgpu 3.49.0 20150101 for 0000:0d:00.0
157 on minor 0
158 [ 0.856232] device: 'fb0': device_add
159 [ 0.856319] fbcon: amdgpudrmfb (fb0) is primary device
160 [ 0.856325] device: 'vtcon1': device_add
161 [ 0.856509] [drm] DSC precompute is not needed.
162 [ 1.131925] [drm] REG_WAIT timeout 1us * 100000 tries -
163 optc31_disable_crtc line:136
164 [ 1.201847] Console: switching to colour frame buffer device 240x67
165 [ 1.220757] amdgpu 0000:0d:00.0: [drm] fb0: amdgpudrmfb frame buffer
166 device
167 [ 1.221296] driver: 'amdgpu': driver_bound: bound to device
168 '0000:0d:00.0'
169 [ 1.221307] bus: 'pci': really_probe: bound device 0000:0d:00.0 to
170 driver amdgpu
171
172
173
174 The only suspicious lines are
175
176 [ 0.760009] amdgpu 0000:0d:00.0: amdgpu: RAS: optional ras ta ucode
177 is not available
178 [ 0.767012] amdgpu 0000:0d:00.0: amdgpu: RAP: optional rap ta ucode
179 is not available
180 [ 0.767016] amdgpu 0000:0d:00.0: amdgpu: SECUREDISPLAY: securedisplay
181 ta ucode is not available
182
183 It seems I made a step forward and I will try to get get X11 up next.
184
185 Thanks to all of you for your help
186
187 --
188 Regard Klaus

Replies

Subject Author
Re: [gentoo-user] need help with amdgpu driver "Björn Fischer" <bf@×××××××××××××××××××××.de>