From 9432764ca1c62e146ea1084b13e335e4a3e52a58 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 10 Jun 2022 01:06:31 +0000 Subject: [PATCH] drm/amdgpu/ucode: Remove firmware load type check in amdgpu_ucode_free_bo From Alice Wong b305469ed00420e53c66064b554531d6fbd98d5b in linux 5.15.y/5.15.46 ab0cd4a9ae5b4679b714d8dbfedc0901fecdce9f in mainline linux --- sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c index 2578e030d9f..11329616427 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c @@ -727,8 +727,7 @@ int amdgpu_ucode_create_bo(struct amdgpu_device *adev) void amdgpu_ucode_free_bo(struct amdgpu_device *adev) { - if (adev->firmware.load_type != AMDGPU_FW_LOAD_DIRECT) - amdgpu_bo_free_kernel(&adev->firmware.fw_buf, + amdgpu_bo_free_kernel(&adev->firmware.fw_buf, &adev->firmware.fw_buf_mc, &adev->firmware.fw_buf_ptr); } -- 2.20.1