Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1102900d authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher
Browse files

drm/amdgpu:pass ctx->guilty address to entity init



this way the real interested guilty is connected to entity->guilty
pointer, and we can use entity->pointer later in gpu recovery procedure

Signed-off-by: default avatarMonk Liu <Monk.Liu@amd.com>
Reviewed-by: default avatarChunming Zhou <David1.Zhou@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b3eebe3d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -743,6 +743,7 @@ struct amdgpu_ctx {
	enum amd_sched_priority init_priority;
	enum amd_sched_priority override_priority;
	struct mutex            lock;
	atomic_t	guilty;
};

struct amdgpu_ctx_mgr {
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ static int amdgpu_ctx_init(struct amdgpu_device *adev,
			continue;

		r = amd_sched_entity_init(&ring->sched, &ctx->rings[i].entity,
					  rq, amdgpu_sched_jobs, NULL);
					  rq, amdgpu_sched_jobs, &ctx->guilty);
		if (r)
			goto failed;
	}