mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
From 164f7e94da446984f275be1c082b93243beadfba Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Wed, 22 Mar 2023 16:17:57 +0100
|
|
Subject: [PATCH] drm/vc4: plane: Add more debugging for LBM allocation
|
|
|
|
LBM allocations need a different size depending on the line length,
|
|
format, etc.
|
|
|
|
This can get tricky, and fail. Let's add some more prints to ease the
|
|
debugging when it does.
|
|
|
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_plane.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_plane.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_plane.c
|
|
@@ -735,6 +735,7 @@ static int vc4_plane_allocate_lbm(struct
|
|
{
|
|
struct drm_device *drm = state->plane->dev;
|
|
struct vc4_dev *vc4 = to_vc4_dev(drm);
|
|
+ struct drm_plane *plane = state->plane;
|
|
struct vc4_plane_state *vc4_state = to_vc4_plane_state(state);
|
|
unsigned long irqflags;
|
|
u32 lbm_size;
|
|
@@ -743,6 +744,9 @@ static int vc4_plane_allocate_lbm(struct
|
|
if (!lbm_size)
|
|
return 0;
|
|
|
|
+ drm_dbg_driver(drm, "[PLANE:%d:%s] LBM Allocation Size: %u\n",
|
|
+ plane->base.id, plane->name, lbm_size);
|
|
+
|
|
if (WARN_ON(!vc4_state->lbm_offset))
|
|
return -EINVAL;
|
|
|