diff options
| author | André Almeida <[email protected]> | 2025-06-17 12:49:48 +0000 |
|---|---|---|
| committer | André Almeida <[email protected]> | 2025-06-17 14:32:47 +0000 |
| commit | 35dc4ce200623fec8f8eda256cd8abb5befbfae2 (patch) | |
| tree | 2d0faea1169c8c09260527e4cac398d403c4444a /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/doc: Add a section about "Task information" for the wedge API (diff) | |
| download | kernel-35dc4ce200623fec8f8eda256cd8abb5befbfae2.tar.gz kernel-35dc4ce200623fec8f8eda256cd8abb5befbfae2.zip | |
drm: amdgpu: Use struct drm_wedge_task_info inside of struct amdgpu_task_info
To avoid a cast when calling drm_dev_wedged_event(), replace pid and
task name inside of struct amdgpu_task_info with struct
drm_wedge_task_info.
Reviewed-by: Christian König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: André Almeida <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 0ecc88df7208..e5e33a68d935 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -329,7 +329,7 @@ static int amdgpu_gem_object_open(struct drm_gem_object *obj, dev_warn(adev->dev, "validate_and_fence failed: %d\n", r); if (ti) { - dev_warn(adev->dev, "pid %d\n", ti->pid); + dev_warn(adev->dev, "pid %d\n", ti->task.pid); amdgpu_vm_put_task_info(ti); } } |
