<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/msm/msm_debugfs.c, branch linux-4.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-12-08T07:50:14Z</updated>
<entry>
<title>drm/msm: Do hw_init() before capturing GPU state</title>
<updated>2021-12-08T07:50:14Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2021-11-08T18:01:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eed6dba98ac31e4941fc6a89758de09ad6a5da32'/>
<id>urn:sha1:eed6dba98ac31e4941fc6a89758de09ad6a5da32</id>
<content type='text'>
commit e4840d537c2c6b1189d4de16ee0f4820e069dcea upstream.

In particular, we need to ensure all the necessary blocks are switched
to 64b mode (a5xx+) otherwise the high bits of the address of the BO to
snapshot state into will be ignored, resulting in:

  *** gpu fault: ttbr0=0000000000000000 iova=0000000000012000 dir=READ type=TRANSLATION source=CP (0,0,0,0)
  platform 506a000.gmu: [drm:a6xx_gmu_set_oob] *ERROR* Timeout waiting for GMU OOB set BOOT_SLUMBER: 0x0

Fixes: 4f776f4511c7 ("drm/msm/gpu: Convert the GPU show function to use the GPU state")
Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
Link: https://lore.kernel.org/r/20211108180122.487859-1-robdclark@gmail.com
Signed-off-by: Rob Clark &lt;robdclark@chromium.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drm/msm: fix memleak on release</title>
<updated>2019-12-13T07:52:44Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2019-10-10T13:13:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8e47f51af8bb504953952973404b51578d8f8e7a'/>
<id>urn:sha1:8e47f51af8bb504953952973404b51578d8f8e7a</id>
<content type='text'>
commit a64fc11b9a520c55ca34d82e5ca32274f49b6b15 upstream.

If a process is interrupted while accessing the "gpu" debugfs file and
the drm device struct_mutex is contended, release() could return early
and fail to free related resources.

Note that the return value from release() is ignored.

Fixes: 4f776f4511c7 ("drm/msm/gpu: Convert the GPU show function to use the GPU state")
Cc: stable &lt;stable@vger.kernel.org&gt;     # 4.18
Cc: Jordan Crouse &lt;jcrouse@codeaurora.org&gt;
Cc: Rob Clark &lt;robdclark@gmail.com&gt;
Reviewed-by: Rob Clark &lt;robdclark@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20191010131333.23635-2-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>drm/msm/gpu: Fix a couple memory leaks in debugfs</title>
<updated>2018-12-21T13:15:14Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2018-10-13T10:28:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7de8218615d3f9dc82b2e0950e034e6fcc3a516e'/>
<id>urn:sha1:7de8218615d3f9dc82b2e0950e034e6fcc3a516e</id>
<content type='text'>
[ Upstream commit 51270de91412b819f654b849db3bf92dac0a0855 ]

The msm_gpu_open() function should free "show_priv" on error or it
causes static checker warnings.

Fixes: 4f776f4511c7 ("drm/msm/gpu: Convert the GPU show function to use the GPU state")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>drm/msm/gpu: Capture the GPU state on a GPU hang</title>
<updated>2018-07-30T12:49:56Z</updated>
<author>
<name>Jordan Crouse</name>
</author>
<published>2018-07-24T16:33:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c0fec7f562ec76404ef0f074a89113a703587f3d'/>
<id>urn:sha1:c0fec7f562ec76404ef0f074a89113a703587f3d</id>
<content type='text'>
Capture the GPU state on a GPU hang and store it for later playback
via the devcoredump facility. Only one crash state is stored at a
time on the assumption that the first hang is usually the most
interesting. The existing crash state can be cleared after capturing
it and then a new one will be captured on the next hang.

Signed-off-by: Jordan Crouse &lt;jcrouse@codeaurora.org&gt;
Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm/gpu: Convert the GPU show function to use the GPU state</title>
<updated>2018-07-30T12:49:48Z</updated>
<author>
<name>Jordan Crouse</name>
</author>
<published>2018-07-24T16:33:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4f776f4511c7f7b6576dfc38c609b168b9188d72'/>
<id>urn:sha1:4f776f4511c7f7b6576dfc38c609b168b9188d72</id>
<content type='text'>
Convert the existing GPU show function to use the GPU state to
dump the information rather than reading it directly from the hardware.
This will require an additional step to capture the state before
dumping it for the existing nodes but it will greatly facilitate reusing
the same code for dumping a previously captured state from a GPU hang.

Signed-off-by: Jordan Crouse &lt;jcrouse@codeaurora.org&gt;
Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm: Don't setup control node debugfs files</title>
<updated>2018-05-03T19:26:10Z</updated>
<author>
<name>Daniel Vetter</name>
</author>
<published>2018-05-03T09:31:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9e1de9002190b712a264a21f31ee9692f6d0bc2e'/>
<id>urn:sha1:9e1de9002190b712a264a21f31ee9692f6d0bc2e</id>
<content type='text'>
It's going away.

v2: Try harder to find them all.

Reviewed-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Cc: Rob Clark &lt;robdclark@gmail.com&gt;
Cc: Jordan Crouse &lt;jcrouse@codeaurora.org&gt;
Cc: Nicolas Dechesne &lt;nicolas.dechesne@linaro.org&gt;
Cc: Archit Taneja &lt;architt@codeaurora.org&gt;
Cc: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20180503093107.25955-1-daniel.vetter@ffwll.ch
</content>
</entry>
<entry>
<title>drm/msm: add a5xx specific debugfs</title>
<updated>2018-02-20T15:41:20Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2017-12-13T20:12:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=331dc0bc195bb77fcbe60b4513464b406a6d20cb'/>
<id>urn:sha1:331dc0bc195bb77fcbe60b4513464b406a6d20cb</id>
<content type='text'>
Add some debugfs to dump out PFP and ME microcontroller state, as well
as some of the queues (MEQ and ROQ).  Also add a debugfs file to trigger
a GPU reset (and reloading the firmware on next submit).

Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm/gpu: use pm-runtime</title>
<updated>2017-04-08T10:59:31Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2017-02-10T20:36:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eeb754746b140c5f55e6b25706a9142aa549b348'/>
<id>urn:sha1:eeb754746b140c5f55e6b25706a9142aa549b348</id>
<content type='text'>
We need to use pm-runtime properly when IOMMU is using device_link() to
control it's own clocks.

Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm/gpu: move suspend/resume into debugfs-&gt;show</title>
<updated>2017-04-08T10:59:31Z</updated>
<author>
<name>Rob Clark</name>
</author>
<published>2017-02-10T19:52:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c3c3ab199bdd5b39f0a16545f4205e20c03ba20f'/>
<id>urn:sha1:c3c3ab199bdd5b39f0a16545f4205e20c03ba20f</id>
<content type='text'>
Each of the per-generation callbacks was doing this.  Lets just simplify
and move it into toplevel show() fxn.

Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm: Remove msm_debugfs_cleanup()</title>
<updated>2017-03-08T10:24:45Z</updated>
<author>
<name>Noralf Trønnes</name>
</author>
<published>2017-03-07T20:49:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85eac4700ede7c583aab29ad6bdfe135f693c29b'/>
<id>urn:sha1:85eac4700ede7c583aab29ad6bdfe135f693c29b</id>
<content type='text'>
Move the contents of msm_debugfs_cleanup() to msm_drm_uninit() to free
up the drm_driver-&gt;debugfs_cleanup callback. Also remove the
mdp_kms_funcs-&gt;debugfs_cleanup callback which has no users.

Cc: robdclark@gmail.com
Signed-off-by: Noralf Trønnes &lt;noralf@tronnes.org&gt;
Acked-by: Rob Clark &lt;robdclark@gmail.com&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/20170307204924.1002-2-noralf@tronnes.org
</content>
</entry>
</feed>
