RE: [PATCH] gpu: drm: amd: amdgpu: Fix calls to dev_{info,err}

2023-08-01 Thread Chen, Guchun
, Guchun > -Original Message- > From: Bert Karwatzki > Sent: Monday, July 31, 2023 5:55 PM > To: amd-gfx@lists.freedesktop.org > Cc: SHANMUGAM, SRINIVASAN ; > Chen, Guchun ; Alex Deucher > > Subject: [PATCH] gpu: drm: amd: amdgpu: Fix calls to d

[PATCH] gpu: drm: amd: amdgpu: Fix calls to dev_{info,err}

2023-08-01 Thread Bert Karwatzki
Commit b0bd0a92b8158ea9c809d885e0f0c21518bdbd14 introduced dev_{info,err} calls which failed (leading to a hang on boot) because of an incorrect usage of the container_of macro. This fixes the error by introducing a pointer to the device as an additional element in struct amdgpu_atpx and struct