* [PATCH 4/8] accel/qaic: delete qaic_bo.handle
[not found] <20250528091307.1894940-1-simona.vetter@ffwll.ch>
@ 2025-05-28 9:13 ` Simona Vetter
2025-05-28 15:15 ` Jeff Hugo
2025-06-06 16:25 ` Jeff Hugo
0 siblings, 2 replies; 5+ messages in thread
From: Simona Vetter @ 2025-05-28 9:13 UTC (permalink / raw)
To: DRI Development
Cc: intel-xe, Simona Vetter, Jeff Hugo, Carl Vanderlip, linux-arm-msm,
Simona Vetter
Handles are per-file, not global, so this makes no sense. Plus it's
set only after calling drm_gem_handle_create(), and drivers are not
allowed to further intialize a bo after that function has published it
already.
It is also entirely unused, which helps enormously with removing it
:-)
Since we're still holding a reference to the bo nothing bad can
happen, hence not cc: stable material.
Cc: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Cc: Carl Vanderlip <quic_carlv@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org
Signed-off-by: Simona Vetter <simona.vetter@ffwll.ch>
Signed-off-by: Simona Vetter <simona.vetter@intel.com>
---
drivers/accel/qaic/qaic.h | 2 --
drivers/accel/qaic/qaic_data.c | 1 -
2 files changed, 3 deletions(-)
diff --git a/drivers/accel/qaic/qaic.h b/drivers/accel/qaic/qaic.h
index 0dbb8e32e4b9..7817ce18b8f2 100644
--- a/drivers/accel/qaic/qaic.h
+++ b/drivers/accel/qaic/qaic.h
@@ -213,8 +213,6 @@ struct qaic_bo {
bool sliced;
/* Request ID of this BO if it is queued for execution */
u16 req_id;
- /* Handle assigned to this BO */
- u32 handle;
/* Wait on this for completion of DMA transfer of this BO */
struct completion xfer_done;
/*
diff --git a/drivers/accel/qaic/qaic_data.c b/drivers/accel/qaic/qaic_data.c
index 1bce1af7c72c..797289e9d780 100644
--- a/drivers/accel/qaic/qaic_data.c
+++ b/drivers/accel/qaic/qaic_data.c
@@ -731,7 +731,6 @@ int qaic_create_bo_ioctl(struct drm_device *dev, void *data, struct drm_file *fi
if (ret)
goto free_bo;
- bo->handle = args->handle;
drm_gem_object_put(obj);
srcu_read_unlock(&qdev->dev_lock, qdev_rcu_id);
srcu_read_unlock(&usr->qddev_lock, usr_rcu_id);
--
2.49.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 4/8] accel/qaic: delete qaic_bo.handle
2025-05-28 9:13 ` [PATCH 4/8] accel/qaic: delete qaic_bo.handle Simona Vetter
@ 2025-05-28 15:15 ` Jeff Hugo
2025-06-02 14:43 ` Simona Vetter
2025-06-06 16:25 ` Jeff Hugo
1 sibling, 1 reply; 5+ messages in thread
From: Jeff Hugo @ 2025-05-28 15:15 UTC (permalink / raw)
To: Simona Vetter, DRI Development
Cc: intel-xe, Carl Vanderlip, linux-arm-msm, Simona Vetter
On 5/28/2025 3:13 AM, Simona Vetter wrote:
> Handles are per-file, not global, so this makes no sense. Plus it's
> set only after calling drm_gem_handle_create(), and drivers are not
> allowed to further intialize a bo after that function has published it
> already.
intialize -> initialize
> It is also entirely unused, which helps enormously with removing it
> :-)
There is a downstream reference to it which hasn't quite made it
upstream yet, but tweaking that should be fine. This is clearly a
problem anyways, so we'll need to find a solution regardless. Thank you
very much for the audit.
> Since we're still holding a reference to the bo nothing bad can
> happen, hence not cc: stable material.
>
> Cc: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
> Cc: Carl Vanderlip <quic_carlv@quicinc.com>
> Cc: linux-arm-msm@vger.kernel.org
> Signed-off-by: Simona Vetter <simona.vetter@ffwll.ch>
> Signed-off-by: Simona Vetter <simona.vetter@intel.com>
SOB chain seems weird to me. I got this email from @ffwll.ch, which
would be the author. Where is @intel.com contributing to the handoff of
the patch?
Overall, looks good to me. Seems like either I can ack this, and you can
merge, or I can just take it forward. I have no preference. Do you?
-Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 4/8] accel/qaic: delete qaic_bo.handle
2025-05-28 15:15 ` Jeff Hugo
@ 2025-06-02 14:43 ` Simona Vetter
2025-06-03 14:43 ` Jeff Hugo
0 siblings, 1 reply; 5+ messages in thread
From: Simona Vetter @ 2025-06-02 14:43 UTC (permalink / raw)
To: Jeff Hugo
Cc: Simona Vetter, DRI Development, intel-xe, Carl Vanderlip,
linux-arm-msm, Simona Vetter
On Wed, May 28, 2025 at 09:15:22AM -0600, Jeff Hugo wrote:
> On 5/28/2025 3:13 AM, Simona Vetter wrote:
> > Handles are per-file, not global, so this makes no sense. Plus it's
> > set only after calling drm_gem_handle_create(), and drivers are not
> > allowed to further intialize a bo after that function has published it
> > already.
>
> intialize -> initialize
>
> > It is also entirely unused, which helps enormously with removing it
> > :-)
>
> There is a downstream reference to it which hasn't quite made it upstream
> yet, but tweaking that should be fine. This is clearly a problem anyways, so
> we'll need to find a solution regardless. Thank you very much for the audit.
>
> > Since we're still holding a reference to the bo nothing bad can
> > happen, hence not cc: stable material.
> >
> > Cc: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
> > Cc: Carl Vanderlip <quic_carlv@quicinc.com>
> > Cc: linux-arm-msm@vger.kernel.org
> > Signed-off-by: Simona Vetter <simona.vetter@ffwll.ch>
> > Signed-off-by: Simona Vetter <simona.vetter@intel.com>
>
> SOB chain seems weird to me. I got this email from @ffwll.ch, which would be
> the author. Where is @intel.com contributing to the handoff of the patch?
I work for intel, so I just whack both of my emails on there for sob
purposes. The intel email tends to be a blackhole for public mail, which
is why I don't use it as From: for anything public.
> Overall, looks good to me. Seems like either I can ack this, and you can
> merge, or I can just take it forward. I have no preference. Do you?
Whatever you like most, I'll resend the series with the wrong patches
dropped soon anyway.
-Sima
--
Simona Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 4/8] accel/qaic: delete qaic_bo.handle
2025-06-02 14:43 ` Simona Vetter
@ 2025-06-03 14:43 ` Jeff Hugo
0 siblings, 0 replies; 5+ messages in thread
From: Jeff Hugo @ 2025-06-03 14:43 UTC (permalink / raw)
To: Simona Vetter
Cc: DRI Development, intel-xe, Carl Vanderlip, linux-arm-msm,
Simona Vetter
On 6/2/2025 8:43 AM, Simona Vetter wrote:
> On Wed, May 28, 2025 at 09:15:22AM -0600, Jeff Hugo wrote:
>> On 5/28/2025 3:13 AM, Simona Vetter wrote:
>>> Handles are per-file, not global, so this makes no sense. Plus it's
>>> set only after calling drm_gem_handle_create(), and drivers are not
>>> allowed to further intialize a bo after that function has published it
>>> already.
>>
>> intialize -> initialize
>>
>>> It is also entirely unused, which helps enormously with removing it
>>> :-)
>>
>> There is a downstream reference to it which hasn't quite made it upstream
>> yet, but tweaking that should be fine. This is clearly a problem anyways, so
>> we'll need to find a solution regardless. Thank you very much for the audit.
>>
>>> Since we're still holding a reference to the bo nothing bad can
>>> happen, hence not cc: stable material.
>>>
>>> Cc: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
>>> Cc: Carl Vanderlip <quic_carlv@quicinc.com>
>>> Cc: linux-arm-msm@vger.kernel.org
>>> Signed-off-by: Simona Vetter <simona.vetter@ffwll.ch>
>>> Signed-off-by: Simona Vetter <simona.vetter@intel.com>
>>
>> SOB chain seems weird to me. I got this email from @ffwll.ch, which would be
>> the author. Where is @intel.com contributing to the handoff of the patch?
>
> I work for intel, so I just whack both of my emails on there for sob
> purposes. The intel email tends to be a blackhole for public mail, which
> is why I don't use it as From: for anything public.>
>> Overall, looks good to me. Seems like either I can ack this, and you can
>> merge, or I can just take it forward. I have no preference. Do you?
>
> Whatever you like most, I'll resend the series with the wrong patches
> dropped soon anyway.
I think I'll apply it this week, with the typo fixed. Then I can
mentally check it off my list as closed.
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
-Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 4/8] accel/qaic: delete qaic_bo.handle
2025-05-28 9:13 ` [PATCH 4/8] accel/qaic: delete qaic_bo.handle Simona Vetter
2025-05-28 15:15 ` Jeff Hugo
@ 2025-06-06 16:25 ` Jeff Hugo
1 sibling, 0 replies; 5+ messages in thread
From: Jeff Hugo @ 2025-06-06 16:25 UTC (permalink / raw)
To: Simona Vetter, DRI Development
Cc: intel-xe, Carl Vanderlip, linux-arm-msm, Simona Vetter
On 5/28/2025 3:13 AM, Simona Vetter wrote:
> Handles are per-file, not global, so this makes no sense. Plus it's
> set only after calling drm_gem_handle_create(), and drivers are not
> allowed to further intialize a bo after that function has published it
> already.
>
> It is also entirely unused, which helps enormously with removing it
> :-)
>
> Since we're still holding a reference to the bo nothing bad can
> happen, hence not cc: stable material.
>
> Cc: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
> Cc: Carl Vanderlip <quic_carlv@quicinc.com>
> Cc: linux-arm-msm@vger.kernel.org
> Signed-off-by: Simona Vetter <simona.vetter@ffwll.ch>
> Signed-off-by: Simona Vetter <simona.vetter@intel.com>
Pushed to drm-misc-next
-Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-06-06 16:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20250528091307.1894940-1-simona.vetter@ffwll.ch>
2025-05-28 9:13 ` [PATCH 4/8] accel/qaic: delete qaic_bo.handle Simona Vetter
2025-05-28 15:15 ` Jeff Hugo
2025-06-02 14:43 ` Simona Vetter
2025-06-03 14:43 ` Jeff Hugo
2025-06-06 16:25 ` Jeff Hugo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox