1 From 670f61146f51a0fcfc75c9c5920922f94c662f59 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Fri, 3 May 2019 13:58:03 +0100
4 Subject: [PATCH 615/725] drm: vc4-firmware-kms: Remove incorrect overscan
7 The overscan support was required for the old mailbox API
8 in order to match up the cursor and frame buffer planes.
9 With the newer API directly talking to dispmanx there is no
10 difference, therefore FKMS does not need to make any
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
15 drivers/gpu/drm/vc4/vc4_firmware_kms.c | 15 ---------------
16 1 file changed, 15 deletions(-)
18 --- a/drivers/gpu/drm/vc4/vc4_firmware_kms.c
19 +++ b/drivers/gpu/drm/vc4/vc4_firmware_kms.c
20 @@ -232,7 +232,6 @@ struct vc4_crtc {
23 struct drm_pending_vblank_event *event;
28 @@ -468,11 +467,6 @@ static void vc4_plane_atomic_update(stru
33 - mb->plane.dst_x += vc4_crtc->overscan[0];
34 - mb->plane.dst_y += vc4_crtc->overscan[1];
37 DRM_DEBUG_ATOMIC("[PLANE:%d:%s] plane update %dx%d@%d +dst(%d,%d, %d,%d) +src(%d,%d, %d,%d) 0x%08x/%08x/%08x/%d, alpha %u zpos %u\n",
38 plane->base.id, plane->name,
40 @@ -1228,15 +1222,6 @@ static int vc4_fkms_create_screen(struct
41 goto err_destroy_encoder;
44 - ret = rpi_firmware_property(vc4->firmware,
45 - RPI_FIRMWARE_FRAMEBUFFER_GET_OVERSCAN,
46 - &vc4_crtc->overscan,
47 - sizeof(vc4_crtc->overscan));
49 - DRM_ERROR("Failed to get overscan state: 0x%08x\n", vc4_crtc->overscan[0]);
50 - memset(&vc4_crtc->overscan, 0, sizeof(vc4_crtc->overscan));