mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 17:48:58 +00:00
9af0e94fa6
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.64
Manually rebased:
generic/hack-6.6/780-usb-net-MeigLink_modem_support.patch
bcm27xx/patches-6.6/950-0585-drm-vc4-Introduce-generation-number-enum.patch
bcm27xx/patches-6.6/950-0610-drm-vc4-hvs-Support-BCM2712-HVS.patch
bcm27xx/patches-6.6/950-0829-vc4-hvs-Add-support-for-D0-register-changes.patch
Removed upstreamed:
bcm27xx/patches-6.6/950-0597-drm-vc4-hdmi-Avoid-hang-with-debug-registers-when-su.patch[1]
bcm27xx/patches-6.6/950-0599-drm-vc4-Fix-dlist-debug-not-resetting-the-next-entry.patch[2]
bcm27xx/patches-6.6/950-0600-drm-vc4-Remove-incorrect-limit-from-hvs_dlist-debugf.patch[3]
bcm27xx/patches-6.6/950-0708-drm-vc4-Correct-logic-on-stopping-an-HVS-channel.patch[4]
ramips/patches-6.6/002-01-v6.13-clk-ralink-mtmips-fix-clock-plan-for-Ralink-SoC-RT38.patch[5]
ramips/patches-6.6/002-02-v6.13-clk-ralink-mtmips-fix-clocks-probe-order-in-oldest-r.patch[6]
All other patches automatically rebased.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=223ee2567a55e4f80315c768d2969e6a3b9fb23d
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=8182b5ca19c6f173b6498d1c6d3e4b034b76bbde
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=52c1716f65a558174e381360bd88f18dae4be85c
4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=9728b508b01a5eeeac79ceb676364c674dd951ac
5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=f85a1d06afbcc57ac44176db8f9d7a934979952c
6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=fbb13732c6ffa9d58cedafabcd5ce8fd7ef8ae5a
Build system: x86/64
Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Co-authored-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/17217
Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 5158e28769
)
104 lines
3.9 KiB
Diff
104 lines
3.9 KiB
Diff
From 15153c7b169cbd1779ffa5a5bd3ae3dc0ff2d4eb Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Fri, 24 Mar 2023 09:56:31 +0100
|
|
Subject: [PATCH 0593/1085] drm/vc4: plane: Change ptr0_offset to an array
|
|
|
|
The BCM2712 will have a fairly different dlist, that will feature one
|
|
Pointer 0 word for each plane.
|
|
|
|
Let's prepare by changing the ptr0_offset variable that holds the offset
|
|
in a dlist of the pointer 0 word to an array.
|
|
|
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_drv.h | 3 ++-
|
|
drivers/gpu/drm/vc4/vc4_plane.c | 18 +++++++++---------
|
|
2 files changed, 11 insertions(+), 10 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_drv.h
|
|
+++ b/drivers/gpu/drm/vc4/vc4_drv.h
|
|
@@ -14,6 +14,7 @@
|
|
#include <drm/drm_debugfs.h>
|
|
#include <drm/drm_device.h>
|
|
#include <drm/drm_encoder.h>
|
|
+#include <drm/drm_fourcc.h>
|
|
#include <drm/drm_gem_dma_helper.h>
|
|
#include <drm/drm_managed.h>
|
|
#include <drm/drm_mm.h>
|
|
@@ -411,7 +412,7 @@ struct vc4_plane_state {
|
|
*/
|
|
u32 pos0_offset;
|
|
u32 pos2_offset;
|
|
- u32 ptr0_offset;
|
|
+ u32 ptr0_offset[DRM_FORMAT_MAX_PLANES];
|
|
u32 lbm_offset;
|
|
|
|
/* Offset where the plane's dlist was last stored in the
|
|
--- a/drivers/gpu/drm/vc4/vc4_plane.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_plane.c
|
|
@@ -1242,7 +1242,7 @@ static int vc4_plane_mode_set(struct drm
|
|
*
|
|
* The pointers may be any byte address.
|
|
*/
|
|
- vc4_state->ptr0_offset = vc4_state->dlist_count;
|
|
+ vc4_state->ptr0_offset[0] = vc4_state->dlist_count;
|
|
for (i = 0; i < num_planes; i++)
|
|
vc4_dlist_write(vc4_state, vc4_state->offsets[i]);
|
|
|
|
@@ -1446,13 +1446,13 @@ void vc4_plane_async_set_fb(struct drm_p
|
|
* scanout will start from this address as soon as the FIFO
|
|
* needs to refill with pixels.
|
|
*/
|
|
- writel(addr, &vc4_state->hw_dlist[vc4_state->ptr0_offset]);
|
|
+ writel(addr, &vc4_state->hw_dlist[vc4_state->ptr0_offset[0]]);
|
|
|
|
/* Also update the CPU-side dlist copy, so that any later
|
|
* atomic updates that don't do a new modeset on our plane
|
|
* also use our updated address.
|
|
*/
|
|
- vc4_state->dlist[vc4_state->ptr0_offset] = addr;
|
|
+ vc4_state->dlist[vc4_state->ptr0_offset[0]] = addr;
|
|
|
|
drm_dev_exit(idx);
|
|
}
|
|
@@ -1516,8 +1516,8 @@ static void vc4_plane_atomic_async_updat
|
|
new_vc4_state->dlist[vc4_state->pos0_offset];
|
|
vc4_state->dlist[vc4_state->pos2_offset] =
|
|
new_vc4_state->dlist[vc4_state->pos2_offset];
|
|
- vc4_state->dlist[vc4_state->ptr0_offset] =
|
|
- new_vc4_state->dlist[vc4_state->ptr0_offset];
|
|
+ vc4_state->dlist[vc4_state->ptr0_offset[0]] =
|
|
+ new_vc4_state->dlist[vc4_state->ptr0_offset[0]];
|
|
|
|
/* Note that we can't just call vc4_plane_write_dlist()
|
|
* because that would smash the context data that the HVS is
|
|
@@ -1527,8 +1527,8 @@ static void vc4_plane_atomic_async_updat
|
|
&vc4_state->hw_dlist[vc4_state->pos0_offset]);
|
|
writel(vc4_state->dlist[vc4_state->pos2_offset],
|
|
&vc4_state->hw_dlist[vc4_state->pos2_offset]);
|
|
- writel(vc4_state->dlist[vc4_state->ptr0_offset],
|
|
- &vc4_state->hw_dlist[vc4_state->ptr0_offset]);
|
|
+ writel(vc4_state->dlist[vc4_state->ptr0_offset[0]],
|
|
+ &vc4_state->hw_dlist[vc4_state->ptr0_offset[0]]);
|
|
|
|
drm_dev_exit(idx);
|
|
}
|
|
@@ -1555,7 +1555,7 @@ static int vc4_plane_atomic_async_check(
|
|
if (old_vc4_state->dlist_count != new_vc4_state->dlist_count ||
|
|
old_vc4_state->pos0_offset != new_vc4_state->pos0_offset ||
|
|
old_vc4_state->pos2_offset != new_vc4_state->pos2_offset ||
|
|
- old_vc4_state->ptr0_offset != new_vc4_state->ptr0_offset ||
|
|
+ old_vc4_state->ptr0_offset[0] != new_vc4_state->ptr0_offset[0] ||
|
|
vc4_lbm_size(plane->state) != vc4_lbm_size(new_plane_state))
|
|
return -EINVAL;
|
|
|
|
@@ -1565,7 +1565,7 @@ static int vc4_plane_atomic_async_check(
|
|
for (i = 0; i < new_vc4_state->dlist_count; i++) {
|
|
if (i == new_vc4_state->pos0_offset ||
|
|
i == new_vc4_state->pos2_offset ||
|
|
- i == new_vc4_state->ptr0_offset ||
|
|
+ i == new_vc4_state->ptr0_offset[0] ||
|
|
(new_vc4_state->lbm_offset &&
|
|
i == new_vc4_state->lbm_offset))
|
|
continue;
|