[AMD Official Use Only - Internal Distribution Only]
afte the API firmware_realease created, the api logic never changed. (the first commit by Linus)
and you can use below command to reference the api usage case in our drm driver.
$ grep -nR "release_firmware" -A 5 -B 5 drivers/gpu/drm/ | vim -
Best Regards,
Kevin
From: Sheng, Wenhui <Wenhui.Sheng@xxxxxxx>
Sent: Thursday, June 18, 2020 4:31 PM To: Wang, Kevin(Yang) <Kevin1.Wang@xxxxxxx>; amd-gfx@xxxxxxxxxxxxxxxxxxxxx <amd-gfx@xxxxxxxxxxxxxxxxxxxxx> Subject: RE: [PATCH 2/2] drm/amdgpu: add fw release for sdma v5_0
[AMD Official Use Only - Internal Distribution Only] [AMD Official Use Only - Internal Distribution Only]
Although we know that release_firmware has null check, but the code is not maintained by ourselves, so I think it’s much more safe to add null check before invoke release_firmware.
Brs Wenhui
From: Wang, Kevin(Yang) <Kevin1.Wang@xxxxxxx>
[AMD Official Use Only - Internal Distribution Only]
From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> on behalf of Wenhui Sheng <Wenhui.Sheng@xxxxxxx>
sdma v5_0 fw isn't released when module exit [kevin]: the kernel api "release_firmware()" will check argument (is NULL pointer). i think the patch don't need to double check it.
+ |
_______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx