<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/msm/msm_gem_submit.c, branch linux-6.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-04-10T12:44:17Z</updated>
<entry>
<title>drm/msm/gem: Fix error code msm_parse_deps()</title>
<updated>2025-04-10T12:44:17Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2025-02-17T07:32:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=efe759dcf3352d8379a1adad7b4d14044a4c41a7'/>
<id>urn:sha1:efe759dcf3352d8379a1adad7b4d14044a4c41a7</id>
<content type='text'>
[ Upstream commit 0b305b7cadce835505bd93183a599acb1f800a05 ]

The SUBMIT_ERROR() macro turns the error code negative.  This extra '-'
operation turns it back to positive EINVAL again.  The error code is
passed to ERR_PTR() and since positive values are not an IS_ERR() it
eventually will lead to an oops.  Delete the '-'.

Fixes: 866e43b945bf ("drm/msm: UAPI error reporting")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
Patchwork: https://patchwork.freedesktop.org/patch/637625/
Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>drm/msm: UAPI error reporting</title>
<updated>2025-01-03T15:20:28Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2024-12-30T16:00:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=866e43b945bf98f8e807dfa45eca92f931f3a032'/>
<id>urn:sha1:866e43b945bf98f8e807dfa45eca92f931f3a032</id>
<content type='text'>
Debugging incorrect UAPI usage tends to be a bit painful, so add a
helper macro to make it easier to add debug logging which can be enabled
at runtime via drm.debug.

Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
Reviewed-by: Akhil P Oommen &lt;quic_akhilpo@quicinc.com&gt;
Patchwork: https://patchwork.freedesktop.org/patch/630578/
</content>
</entry>
<entry>
<title>drm/msm/gem: prevent integer overflow in msm_ioctl_gem_submit()</title>
<updated>2025-01-03T15:20:27Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2024-11-15T14:50:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3a47f4b439beb98e955d501c609dfd12b7836d61'/>
<id>urn:sha1:3a47f4b439beb98e955d501c609dfd12b7836d61</id>
<content type='text'>
The "submit-&gt;cmd[i].size" and "submit-&gt;cmd[i].offset" variables are u32
values that come from the user via the submit_lookup_cmds() function.
This addition could lead to an integer wrapping bug so use size_add()
to prevent that.

Fixes: 198725337ef1 ("drm/msm: fix cmdstream size check")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
Patchwork: https://patchwork.freedesktop.org/patch/624696/
Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
</content>
</entry>
<entry>
<title>drm/msm/gem: Convert to drm_exec</title>
<updated>2023-12-10T19:19:44Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2023-11-21T00:38:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a6397e63877e82528c67058e6e6e8d700682df50'/>
<id>urn:sha1:a6397e63877e82528c67058e6e6e8d700682df50</id>
<content type='text'>
Replace the ww_mutex locking dance with the drm_exec helper.

v2: Error path fixes, move drm_exec_fini so we only call it once (and
    only if we have drm_exec_init()

Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
Patchwork: https://patchwork.freedesktop.org/patch/568342/
</content>
</entry>
<entry>
<title>drm/msm/gem: Cleanup submit_cleanup_bo()</title>
<updated>2023-12-10T18:23:14Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2023-11-21T00:38:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3a48a40387e73e1a37428b11cb3ba56d4c108571'/>
<id>urn:sha1:3a48a40387e73e1a37428b11cb3ba56d4c108571</id>
<content type='text'>
Now that it only handles unlock duty, drop the superfluous arg and
rename it.

Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
Reviewed-by: Dmitry Baryshkov &lt;dmitry.baryshkov@linaro.org&gt;
Patchwork: https://patchwork.freedesktop.org/patch/568333/
</content>
</entry>
<entry>
<title>drm/msm/gem: Split out submit_unpin_objects() helper</title>
<updated>2023-12-10T18:23:13Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2023-11-21T00:38:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2d7d2c4e84802485a1e765bd0732d41526dcf25c'/>
<id>urn:sha1:2d7d2c4e84802485a1e765bd0732d41526dcf25c</id>
<content type='text'>
Untangle unpinning from unlock/unref loop.  The unpin only happens in
error paths so it is easier to decouple from the normal unlock path.

Since we never have an intermediate state where a subset of buffers
are pinned (ie. we never bail out of the pin or unpin loops) we can
replace the bo state flag bit with a global flag in the submit.

Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
Reviewed-by: Dmitry Baryshkov &lt;dmitry.baryshkov@linaro.org&gt;
Patchwork: https://patchwork.freedesktop.org/patch/568335/
</content>
</entry>
<entry>
<title>drm/msm/gem: Don't queue job to sched in error cases</title>
<updated>2023-12-10T18:23:13Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2023-11-21T00:38:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ceab575cafed594fb3cee1bec01a0e4ed5e2d752'/>
<id>urn:sha1:ceab575cafed594fb3cee1bec01a0e4ed5e2d752</id>
<content type='text'>
We shouldn't be running the job in error cases.  This also avoids having
to think too hard about where the objs get unpinned (and if necessary,
the resv takes over tracking that the obj is busy).. ie. error cases it
always happens synchronously, and normal cases it happens from scheduler
job_run() callback.

Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
Reviewed-by: Dmitry Baryshkov &lt;dmitry.baryshkov@linaro.org&gt;
Patchwork: https://patchwork.freedesktop.org/patch/568331/
</content>
</entry>
<entry>
<title>drm/msm/gem: Remove submit_unlock_unpin_bo()</title>
<updated>2023-12-10T18:23:13Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2023-11-21T00:38:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=202f98c19a11e335867a1906c2fb6c53680e4603'/>
<id>urn:sha1:202f98c19a11e335867a1906c2fb6c53680e4603</id>
<content type='text'>
The only point it is called is before pinning objects, so the "unpin"
part of the name is fiction.  Just remove it and call submit_cleanup_bo()
directly.

Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
Reviewed-by: Dmitry Baryshkov &lt;dmitry.baryshkov@linaro.org&gt;
Patchwork: https://patchwork.freedesktop.org/patch/568330/
</content>
</entry>
<entry>
<title>drm/msm/gem: Remove "valid" tracking</title>
<updated>2023-12-10T18:23:13Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2023-11-21T00:38:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a3dec9cdf42bceccdf7a7185099a515ba0a8b29b'/>
<id>urn:sha1:a3dec9cdf42bceccdf7a7185099a515ba0a8b29b</id>
<content type='text'>
This was a small optimization for pre-soft-pin userspace.  But mesa
switched to soft-pin nearly 5yrs ago.  So lets drop the optimization
and simplify the code.

Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
Reviewed-by: Dmitry Baryshkov &lt;dmitry.baryshkov@linaro.org&gt;
Patchwork: https://patchwork.freedesktop.org/patch/568328/
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'drm-misc/drm-misc-next' into msm-next</title>
<updated>2023-12-10T18:07:54Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2023-12-10T18:07:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cbaf84e73811ed0ff7ff6d7f52b73fd7ed082d65'/>
<id>urn:sha1:cbaf84e73811ed0ff7ff6d7f52b73fd7ed082d65</id>
<content type='text'>
Backmerge drm-misc-next to pick up some dependencies for drm/msm
patches, in particular:

https://patchwork.freedesktop.org/patch/570219/?series=127251&amp;rev=1
https://patchwork.freedesktop.org/series/123411/

Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
</content>
</entry>
</feed>
