mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
drm/msm: Check if target supports crash dump capture
This patch simply checks first to see if the target can support crash dump capture before proceeding. Signed-off-by: Sharat Masetty <smasetty@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Sean Paul <seanpaul@chromium.org>
This commit is contained in:
parent
ebcdcef303
commit
4f3a31a8e8
|
|
@ -345,6 +345,10 @@ static void msm_gpu_crashstate_capture(struct msm_gpu *gpu,
|
|||
{
|
||||
struct msm_gpu_state *state;
|
||||
|
||||
/* Check if the target supports capturing crash state */
|
||||
if (!gpu->funcs->gpu_state_get)
|
||||
return;
|
||||
|
||||
/* Only save one crash state at a time */
|
||||
if (gpu->crashstate)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user