Skip to content

Commit 2b534e9

Browse files
committed
Merge tag 'drm-msm-next-2021-12-26' of ssh://gitlab.freedesktop.org/drm/msm into drm-next
* dpu plane state cleanup in prep for multirect * dpu debugfs cleanup (and moving things to atomic_print_state) in prep for multirect * dp support for sc7280 * struct_mutex removal * include more GMU state in gpu devcore dumps * add support for a506 * remove old eDP sub-driver (never was used in any upstream supported devices and modern things with eDP will use DP sub-driver instead) * debugfs to disable hw gpu hang detect for (igt tests) * debugfs for dumping display hw state * and the usual assortment of cleanup and bug fixes There still seems to be a timing issue with dpu, showing up on sc7180 devices, after the bridge probe-order change. Ie. things work great if loglevel is high enough (or enough debug options are enabled, etc). We'll continue to debug this in the new year. Signed-off-by: Dave Airlie <[email protected]> From: Rob Clark <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/CAF6AEGs+vwr0nkwgYzuYAsCoHtypWpWav+yVvLZGsEJy8tJ56A@mail.gmail.com
2 parents 040bf2a + 6ed9528 commit 2b534e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1431
-3903
lines changed

.mailmap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
# Please keep this list dictionary sorted.
1111
#
1212
Aaron Durbin <[email protected]>
13+
1314
Adam Oldham <[email protected]>
1415
Adam Radford <[email protected]>
1516
1617
Adrian Bunk <[email protected]>
18+
1719
1820
1921
Aleksandar Markovic <[email protected]> <[email protected]>
@@ -172,6 +174,7 @@ Jeff Layton <[email protected]> <[email protected]>
172174
Jens Axboe <[email protected]>
173175
Jens Osterkamp <[email protected]>
174176
177+
175178
176179
177180
@@ -191,6 +194,7 @@ Juha Yrjola <at solidboot.com>
191194
Juha Yrjola <[email protected]>
192195
Juha Yrjola <[email protected]>
193196
197+
194198
Kay Sievers <[email protected]>
195199
196200
@@ -202,9 +206,11 @@ Kenneth W Chen <[email protected]>
202206
Konstantin Khlebnikov <[email protected]> <[email protected]>
203207
Konstantin Khlebnikov <[email protected]> <[email protected]>
204208
209+
Krishna Manikandan <[email protected]> <[email protected]>
205210
Krzysztof Kozlowski <[email protected]> <[email protected]>
206211
Krzysztof Kozlowski <[email protected]> <[email protected]>
207212
Kuninori Morimoto <[email protected]>
213+
208214
209215
Leonid I Ananiev <[email protected]>
210216
@@ -311,6 +317,7 @@ Qais Yousef <[email protected]> <[email protected]>
311317
312318
313319
320+
314321
Rajesh Shah <[email protected]>
315322
Ralf Baechle <[email protected]>
316323
Ralf Wildenhues <[email protected]>
@@ -325,6 +332,7 @@ Rui Saraiva <[email protected]>
325332
Sachin P Sant <[email protected]>
326333
327334
Sam Ravnborg <[email protected]>
335+
Sankeerth Billakanti <[email protected]> <[email protected]>
328336
Santosh Shilimkar <[email protected]>
329337
Santosh Shilimkar <[email protected]>
330338
Sarangdhar Joshi <[email protected]>

Documentation/devicetree/bindings/display/msm/dp-controller.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ properties:
1717
compatible:
1818
enum:
1919
- qcom,sc7180-dp
20+
- qcom,sc7280-dp
21+
- qcom,sc7280-edp
2022
- qcom,sc8180x-dp
2123
- qcom,sc8180x-edp
2224

Documentation/devicetree/bindings/display/msm/edp.txt

Lines changed: 0 additions & 56 deletions
This file was deleted.

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6050,6 +6050,7 @@ F: drivers/gpu/drm/tiny/mi0283qt.c
60506050
DRM DRIVER FOR MSM ADRENO GPU
60516051
M: Rob Clark <[email protected]>
60526052
M: Sean Paul <[email protected]>
6053+
R: Abhinav Kumar <[email protected]>
60536054
60546055
60556056

drivers/gpu/drm/msm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ config DRM_MSM_HDMI_HDCP
6565
config DRM_MSM_DP
6666
bool "Enable DisplayPort support in MSM DRM driver"
6767
depends on DRM_MSM
68+
select RATIONAL
6869
default y
6970
help
7071
Compile in support for DP driver in MSM DRM driver. DP external

drivers/gpu/drm/msm/Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,14 @@ msm-y := \
1919
hdmi/hdmi.o \
2020
hdmi/hdmi_audio.o \
2121
hdmi/hdmi_bridge.o \
22-
hdmi/hdmi_connector.o \
22+
hdmi/hdmi_hpd.o \
2323
hdmi/hdmi_i2c.o \
2424
hdmi/hdmi_phy.o \
2525
hdmi/hdmi_phy_8960.o \
2626
hdmi/hdmi_phy_8996.o \
2727
hdmi/hdmi_phy_8x60.o \
2828
hdmi/hdmi_phy_8x74.o \
2929
hdmi/hdmi_pll_8960.o \
30-
edp/edp.o \
31-
edp/edp_aux.o \
32-
edp/edp_bridge.o \
33-
edp/edp_connector.o \
34-
edp/edp_ctrl.o \
35-
edp/edp_phy.o \
3630
disp/mdp_format.o \
3731
disp/mdp_kms.o \
3832
disp/mdp4/mdp4_crtc.o \

drivers/gpu/drm/msm/adreno/a2xx_gpu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ static bool a2xx_idle(struct msm_gpu *gpu);
1212

1313
static void a2xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)
1414
{
15-
struct msm_drm_private *priv = gpu->dev->dev_private;
1615
struct msm_ringbuffer *ring = submit->ring;
1716
unsigned int i;
1817

@@ -23,7 +22,7 @@ static void a2xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)
2322
break;
2423
case MSM_SUBMIT_CMD_CTX_RESTORE_BUF:
2524
/* ignore if there has not been a ctx switch: */
26-
if (priv->lastctx == submit->queue->ctx)
25+
if (gpu->cur_ctx_seqno == submit->queue->ctx->seqno)
2726
break;
2827
fallthrough;
2928
case MSM_SUBMIT_CMD_BUF:

drivers/gpu/drm/msm/adreno/a3xx_gpu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ static bool a3xx_idle(struct msm_gpu *gpu);
3030

3131
static void a3xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)
3232
{
33-
struct msm_drm_private *priv = gpu->dev->dev_private;
3433
struct msm_ringbuffer *ring = submit->ring;
3534
unsigned int i;
3635

@@ -41,7 +40,7 @@ static void a3xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)
4140
break;
4241
case MSM_SUBMIT_CMD_CTX_RESTORE_BUF:
4342
/* ignore if there has not been a ctx switch: */
44-
if (priv->lastctx == submit->queue->ctx)
43+
if (gpu->cur_ctx_seqno == submit->queue->ctx->seqno)
4544
break;
4645
fallthrough;
4746
case MSM_SUBMIT_CMD_BUF:

drivers/gpu/drm/msm/adreno/a4xx_gpu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ static bool a4xx_idle(struct msm_gpu *gpu);
2424

2525
static void a4xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)
2626
{
27-
struct msm_drm_private *priv = gpu->dev->dev_private;
2827
struct msm_ringbuffer *ring = submit->ring;
2928
unsigned int i;
3029

@@ -35,7 +34,7 @@ static void a4xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)
3534
break;
3635
case MSM_SUBMIT_CMD_CTX_RESTORE_BUF:
3736
/* ignore if there has not been a ctx switch: */
38-
if (priv->lastctx == submit->queue->ctx)
37+
if (gpu->cur_ctx_seqno == submit->queue->ctx->seqno)
3938
break;
4039
fallthrough;
4140
case MSM_SUBMIT_CMD_BUF:

drivers/gpu/drm/msm/adreno/a5xx_debugfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ reset_set(void *data, u64 val)
107107
* try to reset an active GPU.
108108
*/
109109

110-
mutex_lock(&dev->struct_mutex);
110+
mutex_lock(&gpu->lock);
111111

112112
release_firmware(adreno_gpu->fw[ADRENO_FW_PM4]);
113113
adreno_gpu->fw[ADRENO_FW_PM4] = NULL;
@@ -133,7 +133,7 @@ reset_set(void *data, u64 val)
133133
gpu->funcs->recover(gpu);
134134

135135
pm_runtime_put_sync(&gpu->pdev->dev);
136-
mutex_unlock(&dev->struct_mutex);
136+
mutex_unlock(&gpu->lock);
137137

138138
return 0;
139139
}

0 commit comments

Comments
 (0)