Skip to content

Commit 0311454

Browse files
committed
Merge tag 'amlogic-fixes-v6.3-rc' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux into arm/fixes
Amlogic fixes for v6.3-rc: - fix conflicts between DMC memory space and Amlogic perf driver * tag 'amlogic-fixes-v6.3-rc' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux: perf/amlogic: adjust register offsets arm64: dts: meson-g12-common: resolve conflict between canvas & pmu arm64: dts: meson-g12-common: specify full DMC range Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 167fba6 + f9d323e commit 0311454

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,15 +1571,20 @@
15711571

15721572
dmc: bus@38000 {
15731573
compatible = "simple-bus";
1574-
reg = <0x0 0x38000 0x0 0x400>;
15751574
#address-cells = <2>;
15761575
#size-cells = <2>;
1577-
ranges = <0x0 0x0 0x0 0x38000 0x0 0x400>;
1576+
ranges = <0x0 0x0 0x0 0x38000 0x0 0x2000>;
15781577

15791578
canvas: video-lut@48 {
15801579
compatible = "amlogic,canvas";
15811580
reg = <0x0 0x48 0x0 0x14>;
15821581
};
1582+
1583+
pmu: pmu@80 {
1584+
reg = <0x0 0x80 0x0 0x40>,
1585+
<0x0 0xc00 0x0 0x40>;
1586+
interrupts = <GIC_SPI 52 IRQ_TYPE_EDGE_RISING>;
1587+
};
15831588
};
15841589

15851590
usb2_phy1: phy@3a000 {
@@ -1705,12 +1710,6 @@
17051710
};
17061711
};
17071712

1708-
pmu: pmu@ff638000 {
1709-
reg = <0x0 0xff638000 0x0 0x100>,
1710-
<0x0 0xff638c00 0x0 0x100>;
1711-
interrupts = <GIC_SPI 52 IRQ_TYPE_EDGE_RISING>;
1712-
};
1713-
17141713
aobus: bus@ff800000 {
17151714
compatible = "simple-bus";
17161715
reg = <0x0 0xff800000 0x0 0x100000>;

drivers/perf/amlogic/meson_g12_ddr_pmu.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,23 @@
2121
#define DMC_QOS_IRQ BIT(30)
2222

2323
/* DMC bandwidth monitor register address offset */
24-
#define DMC_MON_G12_CTRL0 (0x20 << 2)
25-
#define DMC_MON_G12_CTRL1 (0x21 << 2)
26-
#define DMC_MON_G12_CTRL2 (0x22 << 2)
27-
#define DMC_MON_G12_CTRL3 (0x23 << 2)
28-
#define DMC_MON_G12_CTRL4 (0x24 << 2)
29-
#define DMC_MON_G12_CTRL5 (0x25 << 2)
30-
#define DMC_MON_G12_CTRL6 (0x26 << 2)
31-
#define DMC_MON_G12_CTRL7 (0x27 << 2)
32-
#define DMC_MON_G12_CTRL8 (0x28 << 2)
33-
34-
#define DMC_MON_G12_ALL_REQ_CNT (0x29 << 2)
35-
#define DMC_MON_G12_ALL_GRANT_CNT (0x2a << 2)
36-
#define DMC_MON_G12_ONE_GRANT_CNT (0x2b << 2)
37-
#define DMC_MON_G12_SEC_GRANT_CNT (0x2c << 2)
38-
#define DMC_MON_G12_THD_GRANT_CNT (0x2d << 2)
39-
#define DMC_MON_G12_FOR_GRANT_CNT (0x2e << 2)
40-
#define DMC_MON_G12_TIMER (0x2f << 2)
24+
#define DMC_MON_G12_CTRL0 (0x0 << 2)
25+
#define DMC_MON_G12_CTRL1 (0x1 << 2)
26+
#define DMC_MON_G12_CTRL2 (0x2 << 2)
27+
#define DMC_MON_G12_CTRL3 (0x3 << 2)
28+
#define DMC_MON_G12_CTRL4 (0x4 << 2)
29+
#define DMC_MON_G12_CTRL5 (0x5 << 2)
30+
#define DMC_MON_G12_CTRL6 (0x6 << 2)
31+
#define DMC_MON_G12_CTRL7 (0x7 << 2)
32+
#define DMC_MON_G12_CTRL8 (0x8 << 2)
33+
34+
#define DMC_MON_G12_ALL_REQ_CNT (0x9 << 2)
35+
#define DMC_MON_G12_ALL_GRANT_CNT (0xa << 2)
36+
#define DMC_MON_G12_ONE_GRANT_CNT (0xb << 2)
37+
#define DMC_MON_G12_SEC_GRANT_CNT (0xc << 2)
38+
#define DMC_MON_G12_THD_GRANT_CNT (0xd << 2)
39+
#define DMC_MON_G12_FOR_GRANT_CNT (0xe << 2)
40+
#define DMC_MON_G12_TIMER (0xf << 2)
4141

4242
/* Each bit represent a axi line */
4343
PMU_FORMAT_ATTR(event, "config:0-7");

0 commit comments

Comments
 (0)