<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/lima/lima_sched.h, branch linux-rolling-stable</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-05-28T14:15:58Z</updated>
<entry>
<title>drm/sched: Store the drm client_id in drm_sched_fence</title>
<updated>2025-05-28T14:15:58Z</updated>
<author>
<name>Pierre-Eric Pelloux-Prayer</name>
</author>
<published>2025-05-26T12:54:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2956554823cedb390b7ec4534afa898176317638'/>
<id>urn:sha1:2956554823cedb390b7ec4534afa898176317638</id>
<content type='text'>
This will be used in a later commit to trace the drm client_id in
some of the gpu_scheduler trace events.

This requires changing all the users of drm_sched_job_init to
add an extra parameter.

The newly added drm_client_id field in the drm_sched_fence is a bit
of a duplicate of the owner one. One suggestion I received was to
merge those 2 fields - this can't be done right now as amdgpu uses
some special values (AMDGPU_FENCE_OWNER_*) that can't really be
translated into a client id. Christian is working on getting rid of
those; when it's done we should be able to squash owner/drm_client_id
together.

Reviewed-by: Christian König &lt;christian.koenig@amd.com&gt;
Signed-off-by: Pierre-Eric Pelloux-Prayer &lt;pierre-eric.pelloux-prayer@amd.com&gt;
Signed-off-by: Philipp Stanner &lt;phasta@kernel.org&gt;
Link: https://lore.kernel.org/r/20250526125505.2360-3-pierre-eric.pelloux-prayer@amd.com
</content>
</entry>
<entry>
<title>drm/lima: add mask irq callback to gp and pp</title>
<updated>2024-04-15T01:05:38Z</updated>
<author>
<name>Erico Nunes</name>
</author>
<published>2024-04-05T15:29:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=49c13b4d2dd4a831225746e758893673f6ae961c'/>
<id>urn:sha1:49c13b4d2dd4a831225746e758893673f6ae961c</id>
<content type='text'>
This is needed because we want to reset those devices in device-agnostic
code such as lima_sched.
In particular, masking irqs will be useful before a hard reset to
prevent race conditions.

Signed-off-by: Erico Nunes &lt;nunes.erico@gmail.com&gt;
Signed-off-by: Qiang Yu &lt;yuq825@gmail.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20240405152951.1531555-2-nunes.erico@gmail.com
</content>
</entry>
<entry>
<title>drm/lima: remove guilty drm_sched context handling</title>
<updated>2024-02-12T08:27:28Z</updated>
<author>
<name>Erico Nunes</name>
</author>
<published>2024-01-24T02:59:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e721d1cc8101a26fba22dc9a62309522e15bd0c7'/>
<id>urn:sha1:e721d1cc8101a26fba22dc9a62309522e15bd0c7</id>
<content type='text'>
Marking the context as guilty currently only makes the application which
hits a single timeout problem to stop its rendering context entirely.
All jobs submitted later are dropped from the guilty context.

Lima runs on fairly underpowered hardware for modern standards and it is
not entirely unreasonable that a rendering job may time out occasionally
due to high system load or too demanding application stack. In this case
it would be generally preferred to report the error but try to keep the
application going.

Other similar embedded GPU drivers don't make use of the guilty context
flag. Now that there are reliability improvements to the lima timeout
recovery handling, drop the guilty contexts to let the application keep
running in this case.

Signed-off-by: Erico Nunes &lt;nunes.erico@gmail.com&gt;
Acked-by: Christian König &lt;christian.koenig@amd.com&gt;
Reviewed-by: Vasily Khoruzhick &lt;anarsoul@gmail.com&gt;
Signed-off-by: Qiang Yu &lt;yuq825@gmail.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20240124025947.2110659-7-nunes.erico@gmail.com
</content>
</entry>
<entry>
<title>drm/lima: use scheduler dependency tracking</title>
<updated>2021-08-30T08:58:20Z</updated>
<author>
<name>Daniel Vetter</name>
</author>
<published>2021-08-05T10:46:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c79a4487f33bdac125dc682c5584f3e13f5461f5'/>
<id>urn:sha1:c79a4487f33bdac125dc682c5584f3e13f5461f5</id>
<content type='text'>
Nothing special going on here.

Aside reviewing the code, it seems like drm_sched_job_arm() should be
moved into lima_sched_context_queue_task and put under some mutex
together with drm_sched_push_job(). See the kerneldoc for
drm_sched_push_job().

v2: Rebase over renamed functions to add dependencies.

Reviewed-by: Qiang Yu &lt;yuq825@gmail.com&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@intel.com&gt;
Cc: Qiang Yu &lt;yuq825@gmail.com&gt;
Cc: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Cc: "Christian König" &lt;christian.koenig@amd.com&gt;
Cc: lima@lists.freedesktop.org
Cc: linux-media@vger.kernel.org
Cc: linaro-mm-sig@lists.linaro.org
Link: https://patchwork.freedesktop.org/patch/msgid/20210805104705.862416-9-daniel.vetter@ffwll.ch
</content>
</entry>
<entry>
<title>drm/sched: drop entity parameter from drm_sched_push_job</title>
<updated>2021-08-30T08:54:45Z</updated>
<author>
<name>Daniel Vetter</name>
</author>
<published>2021-08-05T10:46:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0e10e9a1db230ae98c8ccfeaf0734545421c3995'/>
<id>urn:sha1:0e10e9a1db230ae98c8ccfeaf0734545421c3995</id>
<content type='text'>
Originally a job was only bound to the queue when we pushed this, but
now that's done in drm_sched_job_init, making that parameter entirely
redundant.

Remove it.

The same applies to the context parameter in
lima_sched_context_queue_task, simplify that too.

v2:
Rebase on top of msm adopting drm/sched

Reviewed-by: Christian König &lt;christian.koenig@amd.com&gt;
Acked-by: Emma Anholt &lt;emma@anholt.net&gt;
Acked-by: Melissa Wen &lt;mwen@igalia.com&gt;
Reviewed-by: Steven Price &lt;steven.price@arm.com&gt; (v1)
Reviewed-by: Boris Brezillon &lt;boris.brezillon@collabora.com&gt; (v1)
Signed-off-by: Daniel Vetter &lt;daniel.vetter@intel.com&gt;
Cc: Lucas Stach &lt;l.stach@pengutronix.de&gt;
Cc: Russell King &lt;linux+etnaviv@armlinux.org.uk&gt;
Cc: Christian Gmeiner &lt;christian.gmeiner@gmail.com&gt;
Cc: Qiang Yu &lt;yuq825@gmail.com&gt;
Cc: Rob Herring &lt;robh@kernel.org&gt;
Cc: Tomeu Vizoso &lt;tomeu.vizoso@collabora.com&gt;
Cc: Steven Price &lt;steven.price@arm.com&gt;
Cc: Alyssa Rosenzweig &lt;alyssa.rosenzweig@collabora.com&gt;
Cc: Emma Anholt &lt;emma@anholt.net&gt;
Cc: David Airlie &lt;airlied@linux.ie&gt;
Cc: Daniel Vetter &lt;daniel@ffwll.ch&gt;
Cc: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Cc: "Christian König" &lt;christian.koenig@amd.com&gt;
Cc: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Cc: Nirmoy Das &lt;nirmoy.das@amd.com&gt;
Cc: Dave Airlie &lt;airlied@redhat.com&gt;
Cc: Chen Li &lt;chenli@uniontech.com&gt;
Cc: Lee Jones &lt;lee.jones@linaro.org&gt;
Cc: Deepak R Varma &lt;mh12gx2825@gmail.com&gt;
Cc: Kevin Wang &lt;kevin1.wang@amd.com&gt;
Cc: Luben Tuikov &lt;luben.tuikov@amd.com&gt;
Cc: "Marek Olšák" &lt;marek.olsak@amd.com&gt;
Cc: Maarten Lankhorst &lt;maarten.lankhorst@linux.intel.com&gt;
Cc: Andrey Grodzovsky &lt;andrey.grodzovsky@amd.com&gt;
Cc: Dennis Li &lt;Dennis.Li@amd.com&gt;
Cc: Boris Brezillon &lt;boris.brezillon@collabora.com&gt;
Cc: etnaviv@lists.freedesktop.org
Cc: lima@lists.freedesktop.org
Cc: linux-media@vger.kernel.org
Cc: linaro-mm-sig@lists.linaro.org
Cc: Rob Clark &lt;robdclark@gmail.com&gt;
Cc: Sean Paul &lt;sean@poorly.run&gt;
Cc: Melissa Wen &lt;mwen@igalia.com&gt;
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20210805104705.862416-6-daniel.vetter@ffwll.ch
</content>
</entry>
<entry>
<title>drm/lima: Add optional devfreq and cooling device support</title>
<updated>2020-03-28T08:29:46Z</updated>
<author>
<name>Martin Blumenstingl</name>
</author>
<published>2020-03-19T20:34:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1996970773a323533e1cc1b6b97f00a95d675f32'/>
<id>urn:sha1:1996970773a323533e1cc1b6b97f00a95d675f32</id>
<content type='text'>
Most platforms with a Mali-400 or Mali-450 GPU also have support for
changing the GPU clock frequency. Add devfreq support so the GPU clock
rate is updated based on the actual GPU usage when the
"operating-points-v2" property is present in the board.dts.

The actual devfreq code is taken from panfrost_devfreq.c and modified so
it matches what the lima hardware needs:
- a call to dev_pm_opp_set_clkname() during initialization because there
  are two clocks on Mali-4x0 IPs. "core" is the one that actually clocks
  the GPU so we need to control it using devfreq.
- locking when reading or writing the devfreq statistics because (unlike
  than panfrost) we have multiple PP and GP IRQs which may finish jobs
  concurrently.

Signed-off-by: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Signed-off-by: Qiang Yu &lt;yuq825@gmail.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200319203427.2259891-3-martin.blumenstingl@googlemail.com
</content>
</entry>
<entry>
<title>drm/lima: add trace point for tasks</title>
<updated>2020-03-22T01:57:21Z</updated>
<author>
<name>Qiang Yu</name>
</author>
<published>2020-03-07T13:54:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7f60c4b9d964f604262327a0bfdbfd1721288ef8'/>
<id>urn:sha1:7f60c4b9d964f604262327a0bfdbfd1721288ef8</id>
<content type='text'>
track lima task start which can be combined with
dma_fence_signal to identify task execution time.

example command to record:

trace-cmd record -i \
  -e "lima:lima_task_submit" -e "lima:lima_task_run" \
  -e "*fence:*fence_signaled" -e "drm:drm_vblank_event" \
  -e "drm:drm_vblank_event_queued" sleep 4

Reviewed-by: Vasily Khoruzhick &lt;anarsoul@gmail.com&gt;
Signed-off-by: Qiang Yu &lt;yuq825@gmail.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200307135438.9981-1-yuq825@gmail.com
</content>
</entry>
<entry>
<title>drm/lima: save task info dump when task fail</title>
<updated>2020-03-22T01:35:19Z</updated>
<author>
<name>Qiang Yu</name>
</author>
<published>2020-03-07T13:44:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b78edd46f6a9eca23b4070166fe98264c07171cc'/>
<id>urn:sha1:b78edd46f6a9eca23b4070166fe98264c07171cc</id>
<content type='text'>
Save all information to start a task which can be exported to user
for debug usage. Dump file data format is specified in lima_dump.h

v2:
Add include header to address build robot complain.

Tested-by: Andreas Baierl &lt;ichgeh@imkreisrum.de&gt;
Reviewed-by: Vasily Khoruzhick &lt;anarsoul@gmail.com&gt;
Signed-off-by: Qiang Yu &lt;yuq825@gmail.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200307134423.24329-1-yuq825@gmail.com
</content>
</entry>
<entry>
<title>drm/lima: recover task by enlarging heap buffer</title>
<updated>2020-01-27T14:01:15Z</updated>
<author>
<name>Qiang Yu</name>
</author>
<published>2020-01-16T13:11:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2081e8dcf1ee7170c67c0891da5487ac7091d2df'/>
<id>urn:sha1:2081e8dcf1ee7170c67c0891da5487ac7091d2df</id>
<content type='text'>
Increase heap buffer backup memory when GP receive PLBU
out of memory interrupt, then resume the task.

Reviewed-by: Vasily Khoruzhick &lt;anarsoul@gmail.com&gt;
Tested-by: Andreas Baierl &lt;ichgeh@imkreisrum.de&gt;
Signed-off-by: Qiang Yu &lt;yuq825@gmail.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200116131157.13346-5-yuq825@gmail.com
</content>
</entry>
<entry>
<title>drm/lima: use drm_sched_fault for error task handling</title>
<updated>2020-01-09T01:27:38Z</updated>
<author>
<name>Qiang Yu</name>
</author>
<published>2020-01-01T10:38:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c544dafc0722daa41b57cbd7c245186645474d5'/>
<id>urn:sha1:5c544dafc0722daa41b57cbd7c245186645474d5</id>
<content type='text'>
drm_sched_job_timedout works with drm_sched_stop as a pair,
so we'd better use the drm_sched_fault helper to make the
error and timeout handling go the same path.

This also fixes application hang when task error.

Reviewed-by: Vasily Khoruzhick &lt;anarsoul@gmail.com&gt;
Tested-by: Andreas Baierl &lt;ichgeh@imkreisrum.de&gt;
Signed-off-by: Qiang Yu &lt;yuq825@gmail.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200101103831.22429-1-yuq825@gmail.com
</content>
</entry>
</feed>
