[Freedreno] [PATCH 2/2] drm/msm/gpu: Fix crash during system suspend after unbind

2022-09-28 Thread Akhil P Oommen
In adreno_unbind, we should clean up gpu device's drvdata to avoid accessing a stale pointer during system suspend. Also, check for NULL ptr in both system suspend/resume callbacks. Signed-off-by: Akhil P Oommen --- Rebased on msm-next + some external fixes to boot sc7280 device.

[Freedreno] [PATCH 1/2] drm/msm/a6xx: Replace kcalloc() with kvzalloc()

2022-09-28 Thread Akhil P Oommen
In order to reduce chance of allocation failure while capturing a6xx gpu state, use kvzalloc() instead of kcalloc() in state_kcalloc(). Indirectly, this patch helps to fix leaking memory allocated for gmu_debug object. Fixes: b859f9b009b (drm/msm/gpu: Snapshot GMU debug buffer) Signed-off-by:

Re: [Freedreno] [PATCH v2 09/10] drm/msm/dp: drop modeset sanity checks

2022-09-28 Thread Johan Hovold
On Tue, Sep 27, 2022 at 11:42:53AM -0700, Abhinav Kumar wrote: > On 9/27/2022 12:14 AM, Johan Hovold wrote: > > On Mon, Sep 26, 2022 at 11:17:20AM -0700, Abhinav Kumar wrote: > >> On 9/13/2022 1:53 AM, Johan Hovold wrote: > >>> Drop the overly defensive modeset sanity checks of function parameters

Re: [Freedreno] [PATCH v3 3/5] clk: qcom: gdsc: Add a reset op to poll gdsc collapse

2022-09-28 Thread Akhil P Oommen
On 9/27/2022 10:56 PM, Bjorn Andersson wrote: On Fri, Aug 19, 2022 at 01:48:37AM +0530, Akhil P Oommen wrote: Add a reset op compatible function to poll for gdsc collapse. Signed-off-by: Akhil P Oommen --- (no changes since v2) Changes in v2: - Minor update to function prototype

Re: [Freedreno] [PATCH v2 09/10] drm/msm/dp: drop modeset sanity checks

2022-09-28 Thread Abhinav Kumar
On 9/28/2022 5:24 AM, Johan Hovold wrote: On Tue, Sep 27, 2022 at 11:42:53AM -0700, Abhinav Kumar wrote: On 9/27/2022 12:14 AM, Johan Hovold wrote: On Mon, Sep 26, 2022 at 11:17:20AM -0700, Abhinav Kumar wrote: On 9/13/2022 1:53 AM, Johan Hovold wrote: Drop the overly defensive modeset

[Freedreno] [PATCH v6] drm/msm/dp: add atomic_check to bridge ops

2022-09-28 Thread Kuogee Hsieh
DRM commit_tails() will disable downstream crtc/encoder/bridge if both disable crtc is required and crtc->active is set before pushing a new frame downstream. There is a rare case that user space display manager issue an extra screen update immediately followed by close DRM device while down