drm/radeon: Modernize VFCT error handling
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 8 Jul 2026 19:35:16 +0000 (14:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jul 2026 13:15:41 +0000 (09:15 -0400)
commit24071402a41a56dba3e215ca89c6b5d855c678ea
tree31c1a09718cee92dd6991f41fefaf437fb8fcc22
parentc87e6635d2db02c88ae8d09529362da672d34770
drm/radeon: Modernize VFCT error handling

Clean up radeon_acpi_vfct_bios() logging:

- Replace DRM_ERROR with dev_warn tied to the PCI device
- Use unsigned int rather than bare unsigned for the offset

A malformed or missing VFCT table is not fatal: radeon falls back
to the other BIOS fetch methods, so warn rather than error on these
paths.

The goto out label is retained: acpi_get_table() takes a reference on
the table (incrementing its validation_count and mapping it), which
must be released with a paired acpi_put_table() on every exit path.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patch.msgid.link/20260708193518.702584-4-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_bios.c