Skip to content

Commit 3051204

Browse files
boddobrobclark
authored andcommitted
drm/msm/mdp5: Update SSPP_MAX value
'SSPP_MAX + 1' is the max number of hwpipes that can be present on a MDP5 platform. Recently, 2 new cursor hwpipes were added, which caused overflows in arrays that used SSPP_MAX to represent the number of elements. Update the SSPP_MAX value to incorporate the extra hwpipes. Signed-off-by: Archit Taneja <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent a5fef53 commit 3051204

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
#ifndef __MDP5_PIPE_H__
1919
#define __MDP5_PIPE_H__
2020

21-
#define SSPP_MAX (SSPP_RGB3 + 1) /* TODO: Add SSPP_MAX in mdp5.xml.h */
21+
/* TODO: Add SSPP_MAX in mdp5.xml.h */
22+
#define SSPP_MAX (SSPP_CURSOR1 + 1)
2223

2324
/* represents a hw pipe, which is dynamically assigned to a plane */
2425
struct mdp5_hw_pipe {

0 commit comments

Comments
 (0)