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,
struct drm_plane_state *state = plane->state;
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,
};
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 */
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,