Skip to content

Commit bf5baa5

Browse files
6by9popcornmix
authored andcommitted
drm/vc4: The check for assigned HVS channels is not applicable firmware_kms
Channel assignments is only in full KMS, so skip the check if in firmware kms mode. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent d118594 commit bf5baa5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/gpu/drm/vc4/vc4_kms.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ static int
579579
vc4_atomic_check(struct drm_device *dev, struct drm_atomic_state *state)
580580
{
581581
unsigned long unassigned_channels = GENMASK(NUM_CHANNELS - 1, 0);
582+
struct vc4_dev *vc4 = to_vc4_dev(state->dev);
582583
struct drm_crtc_state *crtc_state;
583584
struct drm_crtc *crtc;
584585
int i, ret;
@@ -590,7 +591,7 @@ vc4_atomic_check(struct drm_device *dev, struct drm_atomic_state *state)
590591
bool is_assigned = false;
591592
unsigned int channel;
592593

593-
if (!crtc_state->active)
594+
if (!crtc_state->active || vc4->firmware_kms)
594595
continue;
595596

596597
/*

0 commit comments

Comments
 (0)