dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Khatri, Sunil" <sukhatri@amd.com>
To: "Christian König" <christian.koenig@amd.com>,
	"Sunil Khatri" <sunil.khatri@amd.com>,
	dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
	"Jani Nikula" <jani.nikula@linux.intel.com>
Cc: Alex Deucher <alexander.deucher@amd.com>,
	Tvrtko Ursulin <tvrtko.ursulin@igalia.com>,
	Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Subject: Re: [PATCH V8 2/5] drm/amdgpu: add drm_file reference in userq_mgr
Date: Tue, 22 Apr 2025 14:27:37 +0530	[thread overview]
Message-ID: <50506fc2-4b42-4b40-8a87-0f36f4664513@amd.com> (raw)
In-Reply-To: <4714e132-e875-4a16-b94b-0d5af0418b7f@amd.com>


On 4/22/2025 2:07 PM, Christian König wrote:
> Am 17.04.25 um 18:10 schrieb Sunil Khatri:
>> drm_file will be used in usermode queues code to
>> enable better process information in logging and hence
>> add drm_file part of the userq_mgr struct.
>>
>> update the drm_file pointer in userq_mgr for each
>> amdgpu_driver_open_kms.
>>
>> Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
>> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
>> ---
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c       | 1 +
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h | 1 +
>>   2 files changed, 2 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
>> index 3d319687c1c9..3de3071d66ee 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
>> @@ -1436,6 +1436,7 @@ int amdgpu_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv)
>>   
>>   	amdgpu_ctx_mgr_init(&fpriv->ctx_mgr, adev);
>>   
>> +	fpriv->userq_mgr.file = file_priv;
>>   	r = amdgpu_userq_mgr_init(&fpriv->userq_mgr, adev);
> It would be cleaner to give that as parameter to amdgpu_userq_mgr_init() I think.
>
> Apart from that Reviewed-by: Christian König <christian.koenig@amd.com>

Thanks Chrisitian, i have that in mind already and will make the change 
when pushing to asdn after drm patch [first in the series merged and 
pulled back in asdn]

Regards
Sunil Khatri


>
> Regards,
> Christian.
>
>>   	if (r)
>>   		DRM_WARN("Can't setup usermode queues, use legacy workload submission only\n");
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h
>> index b2da513b3d02..29c1360d8c8c 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h
>> @@ -79,6 +79,7 @@ struct amdgpu_userq_mgr {
>>   	struct amdgpu_device		*adev;
>>   	struct delayed_work		resume_work;
>>   	struct list_head		list;
>> +	struct drm_file			*file;
>>   };
>>   
>>   struct amdgpu_db_info {

  reply	other threads:[~2025-04-22  8:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-17 16:10 [PATCH V8 1/5] drm: add drm_file_err function to add process info Sunil Khatri
2025-04-17 16:10 ` [PATCH V8 2/5] drm/amdgpu: add drm_file reference in userq_mgr Sunil Khatri
2025-04-22  8:37   ` Christian König
2025-04-22  8:57     ` Khatri, Sunil [this message]
2025-04-17 16:10 ` [PATCH V8 3/5] drm/amdgpu: use drm_file_err in fence timeouts Sunil Khatri
2025-04-17 16:10 ` [PATCH V8 4/5] drm/amdgpu: change DRM_ERROR to drm_file_err in amdgpu_userqueue.c Sunil Khatri
2025-04-17 16:10 ` [PATCH V8 5/5] drm/amdgpu: change DRM_DBG_DRIVER to drm_dbg_driver Sunil Khatri
2025-04-22  9:03 ` [PATCH V8 1/5] drm: add drm_file_err function to add process info Christian König
2025-04-28 11:39   ` Khatri, Sunil
2025-04-28 11:49     ` Jani Nikula
2025-04-30 14:40       ` Khatri, Sunil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50506fc2-4b42-4b40-8a87-0f36f4664513@amd.com \
    --to=sukhatri@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=pierre-eric.pelloux-prayer@amd.com \
    --cc=sunil.khatri@amd.com \
    --cc=tvrtko.ursulin@igalia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox