From: jsg Date: Fri, 10 Jun 2022 01:06:31 +0000 (+0000) Subject: drm/amdgpu/ucode: Remove firmware load type check in amdgpu_ucode_free_bo X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9432764ca1c62e146ea1084b13e335e4a3e52a58;p=openbsd 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 --- 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); }