1 // SPDX-License-Identifier: MIT
3 * Copyright © 2016-2019 Intel Corporation
6 #include <linux/bitfield.h>
7 #include <linux/firmware.h>
8 #include <drm/drm_print.h>
10 #include "intel_uc_fw.h"
11 #include "intel_uc_fw_abi.h"
14 static inline struct intel_gt
*__uc_fw_to_gt(struct intel_uc_fw
*uc_fw
)
16 GEM_BUG_ON(uc_fw
->status
== INTEL_UC_FIRMWARE_UNINITIALIZED
);
17 if (uc_fw
->type
== INTEL_UC_FW_TYPE_GUC
)
18 return container_of(uc_fw
, struct intel_gt
, uc
.guc
.fw
);
20 GEM_BUG_ON(uc_fw
->type
!= INTEL_UC_FW_TYPE_HUC
);
21 return container_of(uc_fw
, struct intel_gt
, uc
.huc
.fw
);
24 #ifdef CONFIG_DRM_I915_DEBUG_GUC
25 void intel_uc_fw_change_status(struct intel_uc_fw
*uc_fw
,
26 enum intel_uc_fw_status status
)
28 uc_fw
->__status
= status
;
29 DRM_DEV_DEBUG_DRIVER(__uc_fw_to_gt(uc_fw
)->i915
->drm
.dev
,
30 "%s firmware -> %s\n",
31 intel_uc_fw_type_repr(uc_fw
->type
),
32 status
== INTEL_UC_FIRMWARE_SELECTED
?
33 uc_fw
->path
: intel_uc_fw_status_repr(status
));
38 * List of required GuC and HuC binaries per-platform.
39 * Must be ordered based on platform + revid, from newer to older.
41 * TGL 35.2 is interface-compatible with 33.0 for previous Gens. The deltas
42 * between 33.0 and 35.2 are only related to new additions to support new Gen12
45 #define INTEL_UC_FIRMWARE_DEFS(fw_def, guc_def, huc_def) \
46 fw_def(TIGERLAKE, 0, guc_def(tgl, 35, 2, 0), huc_def(tgl, 7, 0, 3)) \
47 fw_def(ELKHARTLAKE, 0, guc_def(ehl, 33, 0, 4), huc_def(ehl, 9, 0, 0)) \
48 fw_def(ICELAKE, 0, guc_def(icl, 33, 0, 0), huc_def(icl, 9, 0, 0)) \
49 fw_def(COFFEELAKE, 5, guc_def(cml, 33, 0, 0), huc_def(cml, 4, 0, 0)) \
50 fw_def(COFFEELAKE, 0, guc_def(kbl, 33, 0, 0), huc_def(kbl, 4, 0, 0)) \
51 fw_def(GEMINILAKE, 0, guc_def(glk, 33, 0, 0), huc_def(glk, 4, 0, 0)) \
52 fw_def(KABYLAKE, 0, guc_def(kbl, 33, 0, 0), huc_def(kbl, 4, 0, 0)) \
53 fw_def(BROXTON, 0, guc_def(bxt, 33, 0, 0), huc_def(bxt, 2, 0, 0)) \
54 fw_def(SKYLAKE, 0, guc_def(skl, 33, 0, 0), huc_def(skl, 2, 0, 0))
56 #define __MAKE_UC_FW_PATH(prefix_, name_, major_, minor_, patch_) \
58 __stringify(prefix_) name_ \
59 __stringify(major_) "." \
60 __stringify(minor_) "." \
61 __stringify(patch_) ".bin"
63 #define MAKE_GUC_FW_PATH(prefix_, major_, minor_, patch_) \
64 __MAKE_UC_FW_PATH(prefix_, "_guc_", major_, minor_, patch_)
66 #define MAKE_HUC_FW_PATH(prefix_, major_, minor_, bld_num_) \
67 __MAKE_UC_FW_PATH(prefix_, "_huc_", major_, minor_, bld_num_)
69 /* All blobs need to be declared via MODULE_FIRMWARE() */
70 #define INTEL_UC_MODULE_FW(platform_, revid_, guc_, huc_) \
71 MODULE_FIRMWARE(guc_); \
72 MODULE_FIRMWARE(huc_);
74 INTEL_UC_FIRMWARE_DEFS(INTEL_UC_MODULE_FW
, MAKE_GUC_FW_PATH
, MAKE_HUC_FW_PATH
)
76 /* The below structs and macros are used to iterate across the list of blobs */
77 struct __packed uc_fw_blob
{
83 #define UC_FW_BLOB(major_, minor_, path_) \
84 { .major = major_, .minor = minor_, .path = path_ }
86 #define GUC_FW_BLOB(prefix_, major_, minor_, patch_) \
87 UC_FW_BLOB(major_, minor_, \
88 MAKE_GUC_FW_PATH(prefix_, major_, minor_, patch_))
90 #define HUC_FW_BLOB(prefix_, major_, minor_, bld_num_) \
91 UC_FW_BLOB(major_, minor_, \
92 MAKE_HUC_FW_PATH(prefix_, major_, minor_, bld_num_))
94 struct __packed uc_fw_platform_requirement
{
95 enum intel_platform p
;
96 u8 rev
; /* first platform rev using this FW */
97 const struct uc_fw_blob blobs
[INTEL_UC_FW_NUM_TYPES
];
100 #define MAKE_FW_LIST(platform_, revid_, guc_, huc_) \
102 .p = INTEL_##platform_, \
104 .blobs[INTEL_UC_FW_TYPE_GUC] = guc_, \
105 .blobs[INTEL_UC_FW_TYPE_HUC] = huc_, \
109 __uc_fw_auto_select(struct intel_uc_fw
*uc_fw
, enum intel_platform p
, u8 rev
)
111 static const struct uc_fw_platform_requirement fw_blobs
[] = {
112 INTEL_UC_FIRMWARE_DEFS(MAKE_FW_LIST
, GUC_FW_BLOB
, HUC_FW_BLOB
)
116 for (i
= 0; i
< ARRAY_SIZE(fw_blobs
) && p
<= fw_blobs
[i
].p
; i
++) {
117 if (p
== fw_blobs
[i
].p
&& rev
>= fw_blobs
[i
].rev
) {
118 const struct uc_fw_blob
*blob
=
119 &fw_blobs
[i
].blobs
[uc_fw
->type
];
120 uc_fw
->path
= blob
->path
;
121 uc_fw
->major_ver_wanted
= blob
->major
;
122 uc_fw
->minor_ver_wanted
= blob
->minor
;
127 /* make sure the list is ordered as expected */
128 if (IS_ENABLED(CONFIG_DRM_I915_SELFTEST
)) {
129 for (i
= 1; i
< ARRAY_SIZE(fw_blobs
); i
++) {
130 if (fw_blobs
[i
].p
< fw_blobs
[i
- 1].p
)
133 if (fw_blobs
[i
].p
== fw_blobs
[i
- 1].p
&&
134 fw_blobs
[i
].rev
< fw_blobs
[i
- 1].rev
)
137 pr_err("invalid FW blob order: %s r%u comes before %s r%u\n",
138 intel_platform_name(fw_blobs
[i
- 1].p
),
140 intel_platform_name(fw_blobs
[i
].p
),
147 /* We don't want to enable GuC/HuC on pre-Gen11 by default */
148 if (i915_modparams
.enable_guc
== -1 && p
< INTEL_ICELAKE
)
152 static const char *__override_guc_firmware_path(void)
154 if (i915_modparams
.enable_guc
& (ENABLE_GUC_SUBMISSION
|
155 ENABLE_GUC_LOAD_HUC
))
156 return i915_modparams
.guc_firmware_path
;
160 static const char *__override_huc_firmware_path(void)
162 if (i915_modparams
.enable_guc
& ENABLE_GUC_LOAD_HUC
)
163 return i915_modparams
.huc_firmware_path
;
167 static void __uc_fw_user_override(struct intel_uc_fw
*uc_fw
)
169 const char *path
= NULL
;
171 switch (uc_fw
->type
) {
172 case INTEL_UC_FW_TYPE_GUC
:
173 path
= __override_guc_firmware_path();
175 case INTEL_UC_FW_TYPE_HUC
:
176 path
= __override_huc_firmware_path();
180 if (unlikely(path
)) {
182 uc_fw
->user_overridden
= true;
187 * intel_uc_fw_init_early - initialize the uC object and select the firmware
188 * @uc_fw: uC firmware
190 * @supported: is uC support possible
191 * @platform: platform identifier
192 * @rev: hardware revision
194 * Initialize the state of our uC object and relevant tracking and select the
195 * firmware to fetch and load.
197 void intel_uc_fw_init_early(struct intel_uc_fw
*uc_fw
,
198 enum intel_uc_fw_type type
, bool supported
,
199 enum intel_platform platform
, u8 rev
)
202 * we use FIRMWARE_UNINITIALIZED to detect checks against uc_fw->status
203 * before we're looked at the HW caps to see if we have uc support
205 BUILD_BUG_ON(INTEL_UC_FIRMWARE_UNINITIALIZED
);
206 GEM_BUG_ON(uc_fw
->status
);
207 GEM_BUG_ON(uc_fw
->path
);
212 __uc_fw_auto_select(uc_fw
, platform
, rev
);
213 __uc_fw_user_override(uc_fw
);
216 intel_uc_fw_change_status(uc_fw
, uc_fw
->path
? *uc_fw
->path
?
217 INTEL_UC_FIRMWARE_SELECTED
:
218 INTEL_UC_FIRMWARE_DISABLED
:
219 INTEL_UC_FIRMWARE_NOT_SUPPORTED
);
222 static void __force_fw_fetch_failures(struct intel_uc_fw
*uc_fw
, int e
)
224 struct drm_i915_private
*i915
= __uc_fw_to_gt(uc_fw
)->i915
;
225 bool user
= e
== -EINVAL
;
227 if (i915_inject_probe_error(i915
, e
)) {
228 /* non-existing blob */
229 uc_fw
->path
= "<invalid>";
230 uc_fw
->user_overridden
= user
;
231 } else if (i915_inject_probe_error(i915
, e
)) {
232 /* require next major version */
233 uc_fw
->major_ver_wanted
+= 1;
234 uc_fw
->minor_ver_wanted
= 0;
235 uc_fw
->user_overridden
= user
;
236 } else if (i915_inject_probe_error(i915
, e
)) {
237 /* require next minor version */
238 uc_fw
->minor_ver_wanted
+= 1;
239 uc_fw
->user_overridden
= user
;
240 } else if (uc_fw
->major_ver_wanted
&&
241 i915_inject_probe_error(i915
, e
)) {
242 /* require prev major version */
243 uc_fw
->major_ver_wanted
-= 1;
244 uc_fw
->minor_ver_wanted
= 0;
245 uc_fw
->user_overridden
= user
;
246 } else if (uc_fw
->minor_ver_wanted
&&
247 i915_inject_probe_error(i915
, e
)) {
248 /* require prev minor version - hey, this should work! */
249 uc_fw
->minor_ver_wanted
-= 1;
250 uc_fw
->user_overridden
= user
;
251 } else if (user
&& i915_inject_probe_error(i915
, e
)) {
252 /* officially unsupported platform */
253 uc_fw
->major_ver_wanted
= 0;
254 uc_fw
->minor_ver_wanted
= 0;
255 uc_fw
->user_overridden
= true;
260 * intel_uc_fw_fetch - fetch uC firmware
261 * @uc_fw: uC firmware
263 * Fetch uC firmware into GEM obj.
265 * Return: 0 on success, a negative errno code on failure.
267 int intel_uc_fw_fetch(struct intel_uc_fw
*uc_fw
)
269 struct drm_i915_private
*i915
= __uc_fw_to_gt(uc_fw
)->i915
;
270 struct device
*dev
= i915
->drm
.dev
;
271 struct drm_i915_gem_object
*obj
;
272 const struct firmware
*fw
= NULL
;
273 struct uc_css_header
*css
;
277 GEM_BUG_ON(!i915
->wopcm
.size
);
278 GEM_BUG_ON(!intel_uc_fw_is_enabled(uc_fw
));
280 err
= i915_inject_probe_error(i915
, -ENXIO
);
284 __force_fw_fetch_failures(uc_fw
, -EINVAL
);
285 __force_fw_fetch_failures(uc_fw
, -ESTALE
);
287 err
= request_firmware(&fw
, uc_fw
->path
, dev
);
291 /* Check the size of the blob before examining buffer contents */
292 if (unlikely(fw
->size
< sizeof(struct uc_css_header
))) {
293 dev_warn(dev
, "%s firmware %s: invalid size: %zu < %zu\n",
294 intel_uc_fw_type_repr(uc_fw
->type
), uc_fw
->path
,
295 fw
->size
, sizeof(struct uc_css_header
));
300 css
= (struct uc_css_header
*)fw
->data
;
302 /* Check integrity of size values inside CSS header */
303 size
= (css
->header_size_dw
- css
->key_size_dw
- css
->modulus_size_dw
-
304 css
->exponent_size_dw
) * sizeof(u32
);
305 if (unlikely(size
!= sizeof(struct uc_css_header
))) {
307 "%s firmware %s: unexpected header size: %zu != %zu\n",
308 intel_uc_fw_type_repr(uc_fw
->type
), uc_fw
->path
,
309 fw
->size
, sizeof(struct uc_css_header
));
314 /* uCode size must calculated from other sizes */
315 uc_fw
->ucode_size
= (css
->size_dw
- css
->header_size_dw
) * sizeof(u32
);
318 if (unlikely(css
->key_size_dw
!= UOS_RSA_SCRATCH_COUNT
)) {
319 dev_warn(dev
, "%s firmware %s: unexpected key size: %u != %u\n",
320 intel_uc_fw_type_repr(uc_fw
->type
), uc_fw
->path
,
321 css
->key_size_dw
, UOS_RSA_SCRATCH_COUNT
);
325 uc_fw
->rsa_size
= css
->key_size_dw
* sizeof(u32
);
327 /* At least, it should have header, uCode and RSA. Size of all three. */
328 size
= sizeof(struct uc_css_header
) + uc_fw
->ucode_size
+ uc_fw
->rsa_size
;
329 if (unlikely(fw
->size
< size
)) {
330 dev_warn(dev
, "%s firmware %s: invalid size: %zu < %zu\n",
331 intel_uc_fw_type_repr(uc_fw
->type
), uc_fw
->path
,
337 /* Sanity check whether this fw is not larger than whole WOPCM memory */
338 size
= __intel_uc_fw_get_upload_size(uc_fw
);
339 if (unlikely(size
>= i915
->wopcm
.size
)) {
340 dev_warn(dev
, "%s firmware %s: invalid size: %zu > %zu\n",
341 intel_uc_fw_type_repr(uc_fw
->type
), uc_fw
->path
,
342 size
, (size_t)i915
->wopcm
.size
);
347 /* Get version numbers from the CSS header */
348 uc_fw
->major_ver_found
= FIELD_GET(CSS_SW_VERSION_UC_MAJOR
,
350 uc_fw
->minor_ver_found
= FIELD_GET(CSS_SW_VERSION_UC_MINOR
,
353 if (uc_fw
->major_ver_found
!= uc_fw
->major_ver_wanted
||
354 uc_fw
->minor_ver_found
< uc_fw
->minor_ver_wanted
) {
355 dev_notice(dev
, "%s firmware %s: unexpected version: %u.%u != %u.%u\n",
356 intel_uc_fw_type_repr(uc_fw
->type
), uc_fw
->path
,
357 uc_fw
->major_ver_found
, uc_fw
->minor_ver_found
,
358 uc_fw
->major_ver_wanted
, uc_fw
->minor_ver_wanted
);
359 if (!intel_uc_fw_is_overridden(uc_fw
)) {
365 obj
= i915_gem_object_create_shmem_from_data(i915
, fw
->data
, fw
->size
);
372 uc_fw
->size
= fw
->size
;
373 intel_uc_fw_change_status(uc_fw
, INTEL_UC_FIRMWARE_AVAILABLE
);
375 release_firmware(fw
);
379 intel_uc_fw_change_status(uc_fw
, err
== -ENOENT
?
380 INTEL_UC_FIRMWARE_MISSING
:
381 INTEL_UC_FIRMWARE_ERROR
);
383 dev_notice(dev
, "%s firmware %s: fetch failed with error %d\n",
384 intel_uc_fw_type_repr(uc_fw
->type
), uc_fw
->path
, err
);
385 dev_info(dev
, "%s firmware(s) can be downloaded from %s\n",
386 intel_uc_fw_type_repr(uc_fw
->type
), INTEL_UC_FIRMWARE_URL
);
388 release_firmware(fw
); /* OK even if fw is NULL */
392 static u32
uc_fw_ggtt_offset(struct intel_uc_fw
*uc_fw
)
394 struct i915_ggtt
*ggtt
= __uc_fw_to_gt(uc_fw
)->ggtt
;
395 struct drm_mm_node
*node
= &ggtt
->uc_fw
;
397 GEM_BUG_ON(!drm_mm_node_allocated(node
));
398 GEM_BUG_ON(upper_32_bits(node
->start
));
399 GEM_BUG_ON(upper_32_bits(node
->start
+ node
->size
- 1));
401 return lower_32_bits(node
->start
);
404 static void uc_fw_bind_ggtt(struct intel_uc_fw
*uc_fw
)
406 struct drm_i915_gem_object
*obj
= uc_fw
->obj
;
407 struct i915_ggtt
*ggtt
= __uc_fw_to_gt(uc_fw
)->ggtt
;
408 struct i915_vma dummy
= {
409 .node
.start
= uc_fw_ggtt_offset(uc_fw
),
410 .node
.size
= obj
->base
.size
,
411 .pages
= obj
->mm
.pages
,
415 GEM_BUG_ON(!i915_gem_object_has_pinned_pages(obj
));
416 GEM_BUG_ON(dummy
.node
.size
> ggtt
->uc_fw
.size
);
418 /* uc_fw->obj cache domains were not controlled across suspend */
419 drm_clflush_sg(dummy
.pages
);
421 ggtt
->vm
.insert_entries(&ggtt
->vm
, &dummy
, I915_CACHE_NONE
, 0);
424 static void uc_fw_unbind_ggtt(struct intel_uc_fw
*uc_fw
)
426 struct drm_i915_gem_object
*obj
= uc_fw
->obj
;
427 struct i915_ggtt
*ggtt
= __uc_fw_to_gt(uc_fw
)->ggtt
;
428 u64 start
= uc_fw_ggtt_offset(uc_fw
);
430 ggtt
->vm
.clear_range(&ggtt
->vm
, start
, obj
->base
.size
);
433 static int uc_fw_xfer(struct intel_uc_fw
*uc_fw
, u32 dst_offset
, u32 dma_flags
)
435 struct intel_gt
*gt
= __uc_fw_to_gt(uc_fw
);
436 struct intel_uncore
*uncore
= gt
->uncore
;
440 ret
= i915_inject_probe_error(gt
->i915
, -ETIMEDOUT
);
444 intel_uncore_forcewake_get(uncore
, FORCEWAKE_ALL
);
446 /* Set the source address for the uCode */
447 offset
= uc_fw_ggtt_offset(uc_fw
);
448 GEM_BUG_ON(upper_32_bits(offset
) & 0xFFFF0000);
449 intel_uncore_write_fw(uncore
, DMA_ADDR_0_LOW
, lower_32_bits(offset
));
450 intel_uncore_write_fw(uncore
, DMA_ADDR_0_HIGH
, upper_32_bits(offset
));
452 /* Set the DMA destination */
453 intel_uncore_write_fw(uncore
, DMA_ADDR_1_LOW
, dst_offset
);
454 intel_uncore_write_fw(uncore
, DMA_ADDR_1_HIGH
, DMA_ADDRESS_SPACE_WOPCM
);
457 * Set the transfer size. The header plus uCode will be copied to WOPCM
458 * via DMA, excluding any other components
460 intel_uncore_write_fw(uncore
, DMA_COPY_SIZE
,
461 sizeof(struct uc_css_header
) + uc_fw
->ucode_size
);
464 intel_uncore_write_fw(uncore
, DMA_CTRL
,
465 _MASKED_BIT_ENABLE(dma_flags
| START_DMA
));
467 /* Wait for DMA to finish */
468 ret
= intel_wait_for_register_fw(uncore
, DMA_CTRL
, START_DMA
, 0, 100);
470 dev_err(gt
->i915
->drm
.dev
, "DMA for %s fw failed, DMA_CTRL=%u\n",
471 intel_uc_fw_type_repr(uc_fw
->type
),
472 intel_uncore_read_fw(uncore
, DMA_CTRL
));
474 /* Disable the bits once DMA is over */
475 intel_uncore_write_fw(uncore
, DMA_CTRL
, _MASKED_BIT_DISABLE(dma_flags
));
477 intel_uncore_forcewake_put(uncore
, FORCEWAKE_ALL
);
483 * intel_uc_fw_upload - load uC firmware using custom loader
484 * @uc_fw: uC firmware
485 * @dst_offset: destination offset
486 * @dma_flags: flags for flags for dma ctrl
488 * Loads uC firmware and updates internal flags.
490 * Return: 0 on success, non-zero on failure.
492 int intel_uc_fw_upload(struct intel_uc_fw
*uc_fw
, u32 dst_offset
, u32 dma_flags
)
494 struct intel_gt
*gt
= __uc_fw_to_gt(uc_fw
);
497 /* make sure the status was cleared the last time we reset the uc */
498 GEM_BUG_ON(intel_uc_fw_is_loaded(uc_fw
));
500 err
= i915_inject_probe_error(gt
->i915
, -ENOEXEC
);
504 if (!intel_uc_fw_is_available(uc_fw
))
507 /* Call custom loader */
508 uc_fw_bind_ggtt(uc_fw
);
509 err
= uc_fw_xfer(uc_fw
, dst_offset
, dma_flags
);
510 uc_fw_unbind_ggtt(uc_fw
);
514 intel_uc_fw_change_status(uc_fw
, INTEL_UC_FIRMWARE_TRANSFERRED
);
518 i915_probe_error(gt
->i915
, "Failed to load %s firmware %s (%d)\n",
519 intel_uc_fw_type_repr(uc_fw
->type
), uc_fw
->path
,
521 intel_uc_fw_change_status(uc_fw
, INTEL_UC_FIRMWARE_FAIL
);
525 int intel_uc_fw_init(struct intel_uc_fw
*uc_fw
)
529 /* this should happen before the load! */
530 GEM_BUG_ON(intel_uc_fw_is_loaded(uc_fw
));
532 if (!intel_uc_fw_is_available(uc_fw
))
535 err
= i915_gem_object_pin_pages(uc_fw
->obj
);
537 DRM_DEBUG_DRIVER("%s fw pin-pages err=%d\n",
538 intel_uc_fw_type_repr(uc_fw
->type
), err
);
539 intel_uc_fw_change_status(uc_fw
, INTEL_UC_FIRMWARE_FAIL
);
545 void intel_uc_fw_fini(struct intel_uc_fw
*uc_fw
)
547 intel_uc_fw_cleanup_fetch(uc_fw
);
551 * intel_uc_fw_cleanup_fetch - cleanup uC firmware
552 * @uc_fw: uC firmware
554 * Cleans up uC firmware by releasing the firmware GEM obj.
556 void intel_uc_fw_cleanup_fetch(struct intel_uc_fw
*uc_fw
)
558 if (!intel_uc_fw_is_available(uc_fw
))
561 i915_gem_object_put(fetch_and_zero(&uc_fw
->obj
));
563 intel_uc_fw_change_status(uc_fw
, INTEL_UC_FIRMWARE_SELECTED
);
567 * intel_uc_fw_copy_rsa - copy fw RSA to buffer
569 * @uc_fw: uC firmware
571 * @max_len: max number of bytes to copy
573 * Return: number of copied bytes.
575 size_t intel_uc_fw_copy_rsa(struct intel_uc_fw
*uc_fw
, void *dst
, u32 max_len
)
577 struct sg_table
*pages
= uc_fw
->obj
->mm
.pages
;
578 u32 size
= min_t(u32
, uc_fw
->rsa_size
, max_len
);
579 u32 offset
= sizeof(struct uc_css_header
) + uc_fw
->ucode_size
;
581 GEM_BUG_ON(!intel_uc_fw_is_available(uc_fw
));
583 return sg_pcopy_to_buffer(pages
->sgl
, pages
->nents
, dst
, size
, offset
);
587 * intel_uc_fw_dump - dump information about uC firmware
588 * @uc_fw: uC firmware
589 * @p: the &drm_printer
591 * Pretty printer for uC firmware.
593 void intel_uc_fw_dump(const struct intel_uc_fw
*uc_fw
, struct drm_printer
*p
)
595 drm_printf(p
, "%s firmware: %s\n",
596 intel_uc_fw_type_repr(uc_fw
->type
), uc_fw
->path
);
597 drm_printf(p
, "\tstatus: %s\n",
598 intel_uc_fw_status_repr(uc_fw
->status
));
599 drm_printf(p
, "\tversion: wanted %u.%u, found %u.%u\n",
600 uc_fw
->major_ver_wanted
, uc_fw
->minor_ver_wanted
,
601 uc_fw
->major_ver_found
, uc_fw
->minor_ver_found
);
602 drm_printf(p
, "\tuCode: %u bytes\n", uc_fw
->ucode_size
);
603 drm_printf(p
, "\tRSA: %u bytes\n", uc_fw
->rsa_size
);