]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Optimize the enablement of GECC
authorCandice Li <candice.li@amd.com>
Tue, 11 Feb 2025 01:58:24 +0000 (09:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Feb 2025 19:09:29 +0000 (14:09 -0500)
commit76b1f8b32dc1ad8bb5f6fe2faa669e2858d35932
treeedaf8afa5fe5b485828915987717dc5d6912f88f
parent92d5d2a09de16706fca340b6c1c197e562690da4
drm/amdgpu: Optimize the enablement of GECC

Enable GECC only when the default memory ECC mode or
the module parameter amdgpu_ras_enable is activated.

v2: Add kernel message to remind users explicitly set
    amdgpu_ras_enable=1 before driver loading to enable GECC
    and set amdgpu_ras_enable=0 to disable GECC when GECC is
    currently enabled if needed.

Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c