drm/amdgpu: force read discovery file if set discovery=2
authorYifan Zhang <yifan1.zhang@amd.com>
Wed, 26 Oct 2022 02:55:10 +0000 (10:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 10 Nov 2022 20:29:05 +0000 (15:29 -0500)
commit7701d10a1eb04025b594484975ee09eee11078b1
tree01e29d9a5c6d9fed1b373b3f870a9a6e95e16485
parentcb20d6508bff89d85319dbe9a74c50983afc3390
drm/amdgpu: force read discovery file if set discovery=2

If discovery is set to 2 in module parameters explicitly, the
intention is to use the discovery file in FW rather than the one in
BIOS, usually because the latter is incorrect. This patch to force
read discovery file if set discovery=2.

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c