mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
f07e572f64
bcm2708: boot tested on RPi B+ v1.2 bcm2709: boot tested on RPi 3B v1.2 and RPi 4B v1.1 4G bcm2710: boot tested on RPi 3B v1.2 bcm2711: boot tested on RPi 4B v1.1 4G Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
67 lines
2.3 KiB
Diff
67 lines
2.3 KiB
Diff
From b1a1e864164d0cde517b85c2ac2cb6f6ceaa78b4 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
Date: Mon, 28 Jan 2019 14:40:16 +0000
|
|
Subject: [PATCH] gpu: vc4_firmware_kms: Fix up 64 bit compile
|
|
warnings.
|
|
|
|
Resolve two build warnings with regard using incorrectly
|
|
sized parameters in logging messages on 64 bit builds.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_firmware_kms.c | 11 ++++++-----
|
|
1 file changed, 6 insertions(+), 5 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_firmware_kms.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_firmware_kms.c
|
|
@@ -161,14 +161,14 @@ static void vc4_primary_plane_atomic_upd
|
|
WARN_ON_ONCE(vc4_plane->pitch != fb->pitches[0]);
|
|
}
|
|
|
|
- DRM_DEBUG_ATOMIC("[PLANE:%d:%s] primary update %dx%d@%d +%d,%d 0x%08x/%d\n",
|
|
+ DRM_DEBUG_ATOMIC("[PLANE:%d:%s] primary update %dx%d@%d +%d,%d 0x%pad/%d\n",
|
|
plane->base.id, plane->name,
|
|
state->crtc_w,
|
|
state->crtc_h,
|
|
bpp,
|
|
state->crtc_x,
|
|
state->crtc_y,
|
|
- bo->paddr + fb->offsets[0],
|
|
+ &fbinfo->base,
|
|
fb->pitches[0]);
|
|
|
|
ret = rpi_firmware_transaction(vc4->firmware,
|
|
@@ -198,6 +198,7 @@ static void vc4_cursor_plane_atomic_upda
|
|
struct vc4_crtc *vc4_crtc = to_vc4_crtc(state->crtc);
|
|
struct drm_framebuffer *fb = state->fb;
|
|
struct drm_gem_cma_object *bo = drm_fb_cma_get_gem_obj(fb, 0);
|
|
+ dma_addr_t addr = bo->paddr + fb->offsets[0];
|
|
int ret;
|
|
u32 packet_state[] = {
|
|
state->crtc->state->active,
|
|
@@ -207,13 +208,13 @@ static void vc4_cursor_plane_atomic_upda
|
|
};
|
|
WARN_ON_ONCE(fb->pitches[0] != state->crtc_w * 4);
|
|
|
|
- DRM_DEBUG_ATOMIC("[PLANE:%d:%s] update %dx%d cursor at %d,%d (0x%08x/%d)",
|
|
+ DRM_DEBUG_ATOMIC("[PLANE:%d:%s] update %dx%d cursor at %d,%d (0x%pad/%d)",
|
|
plane->base.id, plane->name,
|
|
state->crtc_w,
|
|
state->crtc_h,
|
|
state->crtc_x,
|
|
state->crtc_y,
|
|
- bo->paddr + fb->offsets[0],
|
|
+ &addr,
|
|
fb->pitches[0]);
|
|
|
|
/* add on the top/left offsets when overscan is active */
|
|
@@ -239,7 +240,7 @@ static void vc4_cursor_plane_atomic_upda
|
|
fb != old_state->fb) {
|
|
u32 packet_info[] = { state->crtc_w, state->crtc_h,
|
|
0, /* unused */
|
|
- bo->paddr + fb->offsets[0],
|
|
+ addr,
|
|
0, 0, /* hotx, hoty */};
|
|
|
|
ret = rpi_firmware_property(vc4->firmware,
|