<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/msm/msm_gpu.c, branch linux-4.20.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.20.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.20.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-11-30T16:34:23Z</updated>
<entry>
<title>drm/msm: Fix task dump in gpu recovery</title>
<updated>2018-11-30T16:34:23Z</updated>
<author>
<name>Sharat Masetty</name>
</author>
<published>2018-10-12T08:56:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=482f96324a4e08818db7d75bb12beaaea6c9561d'/>
<id>urn:sha1:482f96324a4e08818db7d75bb12beaaea6c9561d</id>
<content type='text'>
The current recovery code gets a pointer to the task struct and does a
few things all within the rcu_read_lock. This puts constraints on the
types of gfp flags that can be used within the rcu lock. This patch
instead gets a reference to the task within the rcu lock and releases
the lock immediately, this way the task stays afloat until we need it and
we also get to use the desired gfp flags.

Signed-off-by: Sharat Masetty &lt;smasetty@codeaurora.org&gt;
Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
</content>
</entry>
<entry>
<title>drm/msm: Check if target supports crash dump capture</title>
<updated>2018-11-30T16:33:54Z</updated>
<author>
<name>Sharat Masetty</name>
</author>
<published>2018-10-12T08:56:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4f3a31a8e8bff5fc363ec9f4755e58a15f7f36c7'/>
<id>urn:sha1:4f3a31a8e8bff5fc363ec9f4755e58a15f7f36c7</id>
<content type='text'>
This patch simply checks first to see if the target can support crash dump
capture before proceeding.

Signed-off-by: Sharat Masetty &lt;smasetty@codeaurora.org&gt;
Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
</content>
</entry>
<entry>
<title>drm/msm: re-factor devfreq code</title>
<updated>2018-10-04T13:14:20Z</updated>
<author>
<name>Sharat Masetty</name>
</author>
<published>2018-10-04T09:41:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=de0a3d094de0858f091cf353c437e912ca41a506'/>
<id>urn:sha1:de0a3d094de0858f091cf353c437e912ca41a506</id>
<content type='text'>
The devfreq framework requires the drivers to provide busy time estimations.
The GPU driver relies on the hardware performance counteres for the busy time
estimations, but different hardware revisions have counters which can be
sourced from different clocks. So the busy time estimation will be target
dependent.  Additionally on targets where the clocks are completely controlled
by the on chip microcontroller, fetching and setting the current GPU frequency
will be different. This patch aims to embrace these differences by re-factoring
the devfreq code a bit.

Signed-off-by: Sharat Masetty &lt;smasetty@codeaurora.org&gt;
Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm: suspend devfreq on init</title>
<updated>2018-10-04T13:14:20Z</updated>
<author>
<name>Sharat Masetty</name>
</author>
<published>2018-10-04T09:41:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d3fa91c90931e6f3b26f7acbac84b44c6756fa08'/>
<id>urn:sha1:d3fa91c90931e6f3b26f7acbac84b44c6756fa08</id>
<content type='text'>
Devfreq turns on and starts recommending power level as soon as it is
initialized. The GPU is still not powered on by the time the devfreq
init happens and this leads to problems on GPU's where register access
is needed to get/set power levels. So we start suspended and only restart
devfreq when GPU is powered on.

Signed-off-by: Sharat Masetty &lt;smasetty@codeaurora.org&gt;
Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm/gpu: fix parameters in function msm_gpu_crashstate_capture</title>
<updated>2018-10-04T00:24:54Z</updated>
<author>
<name>Anders Roxell</name>
</author>
<published>2018-07-31T20:45:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6969019f65b43afb6da6a26f1d9e55bbdfeebcd5'/>
<id>urn:sha1:6969019f65b43afb6da6a26f1d9e55bbdfeebcd5</id>
<content type='text'>
When CONFIG_DEV_COREDUMP isn't defined msm_gpu_crashstate_capture
doesn't pass the correct parameters.
drivers/gpu/drm/msm/msm_gpu.c: In function ‘recover_worker’:
drivers/gpu/drm/msm/msm_gpu.c:479:34: error: passing argument 2 of ‘msm_gpu_crashstate_capture’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  msm_gpu_crashstate_capture(gpu, submit, comm, cmd);
                                  ^~~~~~
drivers/gpu/drm/msm/msm_gpu.c:388:13: note: expected ‘char *’ but argument is of type ‘struct msm_gem_submit *’
 static void msm_gpu_crashstate_capture(struct msm_gpu *gpu, char *comm,
             ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/msm/msm_gpu.c:479:2: error: too many arguments to function ‘msm_gpu_crashstate_capture’
  msm_gpu_crashstate_capture(gpu, submit, comm, cmd);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/msm/msm_gpu.c:388:13: note: declared here
 static void msm_gpu_crashstate_capture(struct msm_gpu *gpu, char *comm,

In current code the function msm_gpu_crashstate_capture parameters.

Fixes: cdb95931dea3 ("drm/msm/gpu: Add the buffer objects from the submit to the crash dump")
Signed-off-by: Anders Roxell &lt;anders.roxell@linaro.org&gt;
Reviewed-By: Jordan Crouse &lt;jcrouse@codeaurora.org&gt;
Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm: Add A6XX device support</title>
<updated>2018-08-10T22:49:18Z</updated>
<author>
<name>Jordan Crouse</name>
</author>
<published>2018-08-06T17:33:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4b565ca5a2cbbbb6345e8789da89c193b6b00e5a'/>
<id>urn:sha1:4b565ca5a2cbbbb6345e8789da89c193b6b00e5a</id>
<content type='text'>
Add support for the A6XX family of Adreno GPUs. The biggest addition
is the GMU (Graphics Management Unit) which takes over most of the
power management of the GPU itself but in a ironic twist of fate
needs a goodly amount of management itself. Add support for the
A6XX core code, the GMU and the HFI (hardware firmware interface)
queue that the CPU uses to communicate with the GMU.

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: Add a helper function to parse clock names</title>
<updated>2018-08-10T22:49:18Z</updated>
<author>
<name>Jordan Crouse</name>
</author>
<published>2018-08-06T17:33:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8e54eea503caec53d39e67407ffa785690f38ba4'/>
<id>urn:sha1:8e54eea503caec53d39e67407ffa785690f38ba4</id>
<content type='text'>
Add a helper function to parse the clock names and set up
the bulk data so we can take advantage of the bulk clock
functions instead of rolling our own. This is added
as a helper function so the upcoming a6xx GMU code can
also take advantage of it.

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: avoid deprecated do_gettimeofday</title>
<updated>2018-07-30T12:50:12Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2018-07-26T12:39:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3530a17f4dc8f1f667fee14c16f229162daa79bb'/>
<id>urn:sha1:3530a17f4dc8f1f667fee14c16f229162daa79bb</id>
<content type='text'>
All users of do_gettimeofday() have been removed, but this one recently
crept in, along with an incorrect printing of the microseconds portion.

This converts it to using ktime_get_real_timespec64() as a direct
replacement, and adds the leading zeroes. I considered using monotonic
times (ktime_get()) instead, but as this timestamp appears to only
be used for humans rather than compared with other timestamps, the
real time domain is probably good enough.

Fixes: e43b045e2c82 ("drm/msm/gpu: Capture the state of the GPU")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Rob Clark &lt;robdclark@gmail.com&gt;
</content>
</entry>
<entry>
<title>drm/msm/gpu: Add the buffer objects from the submit to the crash dump</title>
<updated>2018-07-30T12:50:10Z</updated>
<author>
<name>Jordan Crouse</name>
</author>
<published>2018-07-24T16:33:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cdb95931dea32981545e34a3b1dfc9e172425d95'/>
<id>urn:sha1:cdb95931dea32981545e34a3b1dfc9e172425d95</id>
<content type='text'>
For hangs, dump copy out the contents of the buffer objects attached to the
guilty submission and print them in the crash dump report.

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: 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>
</feed>
