[RESEND v7 36/37] sh: LANDISK OF defconfig

2024-04-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/configs/landisk-of_defconfig | 104 +++ 1 file changed, 104 insertions(+) create mode 100644 arch/sh/configs/landisk-of_defconfig diff --git a/arch/sh/configs/landisk-of_defconfig b/arch/sh/configs/landisk-of_defconfig new file

[RESEND v7 35/37] sh: RTS7751R2D Plus OF defconfig

2024-04-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/configs/rts7751r2dplus-of_defconfig | 75 + 1 file changed, 75 insertions(+) create mode 100644 arch/sh/configs/rts7751r2dplus-of_defconfig diff --git a/arch/sh/configs/rts7751r2dplus-of_defconfig

[RESEND v7 32/37] sh: Add IO DATA USL-5P dts

2024-04-03 Thread Yoshinori Sato
IO DATA DEVICE Inc. USL-5P devicetree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/usl-5p.dts | 85 + 1 file changed, 85 insertions(+) create mode 100644 arch/sh/boot/dts/usl-5p.dts diff --git a/arch/sh/boot/dts/usl-5p.dts

[RESEND v7 34/37] sh: Add dtbs target support.

2024-04-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/sh/boot/dts/Makefile b/arch/sh/boot/dts/Makefile index 4a6dec9714a9..e6b93360c213 100644 --- a/arch/sh/boot/dts/Makefile +++ b/arch/sh/boot/dts/Makefile @@ -1,2 +1,7 @@ #

[RESEND v7 33/37] sh: j2_mimas_v2.dts update

2024-04-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/j2_mimas_v2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/boot/dts/j2_mimas_v2.dts b/arch/sh/boot/dts/j2_mimas_v2.dts index fa9562f78d53..5dfe20866a1c 100644 --- a/arch/sh/boot/dts/j2_mimas_v2.dts +++

[RESEND v7 30/37] sh: add RTS7751R2D Plus DTS

2024-04-03 Thread Yoshinori Sato
Renesas RTS7751R2D Plus devicetree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/rts7751r2dplus.dts | 169 1 file changed, 169 insertions(+) create mode 100644 arch/sh/boot/dts/rts7751r2dplus.dts diff --git a/arch/sh/boot/dts/rts7751r2dplus.dts

[RESEND v7 29/37] sh: SH7751R SoC Internal peripheral definition dtsi.

2024-04-03 Thread Yoshinori Sato
SH7751R internal peripherals device tree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/sh7751r.dtsi | 105 ++ 1 file changed, 105 insertions(+) create mode 100644 arch/sh/boot/dts/sh7751r.dtsi diff --git a/arch/sh/boot/dts/sh7751r.dtsi

[RESEND v7 14/37] clk: Compatible with narrow registers

2024-04-03 Thread Yoshinori Sato
divider and gate only support 32-bit registers. Older hardware uses narrower registers, so I want to be able to handle 8-bit and 16-bit wide registers. Seven clk_divider flags are used, and if I add flags for 8bit access and 16bit access, 8bit will not be enough, so I expanded it to u16.

[RESEND v7 28/37] dt-bindings: soc: renesas: sh: Add SH7751 based target

2024-04-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- .../devicetree/bindings/soc/renesas/sh.yaml | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/renesas/sh.yaml diff --git a/Documentation/devicetree/bindings/soc/renesas/sh.yaml

[RESEND v7 37/37] sh: j2_defconfig: update

2024-04-03 Thread Yoshinori Sato
I've changed some symbols related to DeviceTree, so let's take care of those changes. Signed-off-by: Yoshinori Sato --- arch/sh/configs/j2_defconfig | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/sh/configs/j2_defconfig b/arch/sh/configs/j2_defconfig index

[RESEND v7 31/37] sh: Add IO DATA LANDISK dts

2024-04-03 Thread Yoshinori Sato
IO DATA DEVICE Inc. LANDISK HDL-U devicetree. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/landisk.dts | 77 1 file changed, 77 insertions(+) create mode 100644 arch/sh/boot/dts/landisk.dts diff --git a/arch/sh/boot/dts/landisk.dts

[RESEND v7 25/37] dt-binding: sh: cpus: Add SH CPUs json-schema

2024-04-03 Thread Yoshinori Sato
Renesas SH series and compatible ISA CPUs. Signed-off-by: Yoshinori Sato --- .../devicetree/bindings/sh/cpus.yaml | 63 +++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/sh/cpus.yaml diff --git

[RESEND v7 22/37] dt-bindings: display: smi, sm501: SMI SM501 binding json-schema

2024-04-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- .../bindings/display/smi,sm501.yaml | 398 ++ 1 file changed, 398 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/smi,sm501.yaml diff --git a/Documentation/devicetree/bindings/display/smi,sm501.yaml

[RESEND v7 11/37] pci: pci-sh7751: Add SH7751 PCI driver

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 CPU Internal PCI Controller driver. Signed-off-by: Yoshinori Sato --- drivers/pci/controller/Kconfig | 9 + drivers/pci/controller/Makefile | 1 + drivers/pci/controller/pci-sh7751.c | 342 3 files changed, 352 insertions(+) create mode

[RESEND v7 23/37] dt-bindings: display: sm501 register definition helper

2024-04-03 Thread Yoshinori Sato
Miscellaneous Timing and Miscellaneous Control registers definition. Signed-off-by: Yoshinori Sato --- include/dt-bindings/display/sm501.h | 76 + 1 file changed, 76 insertions(+) create mode 100644 include/dt-bindings/display/sm501.h diff --git

[RESEND v7 27/37] dt-bindings: ata: ata-generic: Add new targets

2024-04-03 Thread Yoshinori Sato
Added new ata-generic target. - iodata,usl-5p-ata - renesas,rts7751r2d-ata Each boards have simple IDE Interface. Use ATA generic driver. Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/ata/ata-generic.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

[RESEND v7 26/37] dt-bindings: vendor-prefixes: Add iodata

2024-04-03 Thread Yoshinori Sato
Add IO DATA DEVICE INC. https://www.iodata.com/ Signed-off-by: Yoshinori Sato Reviewed-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml

[RESEND v7 24/37] mfd: sm501: Convert platform_data to OF property

2024-04-03 Thread Yoshinori Sato
Various parameters of SM501 can be set using platform_data, so parameters cannot be passed in the DeviceTree target. Expands the parameters set in platform_data so that they can be specified using DeviceTree properties. Signed-off-by: Yoshinori Sato --- drivers/mfd/sm501.c | 315

[RESEND v7 17/37] dt-bindings: interrupt-controller: renesas, sh7751-intc: Add json-schema

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 INTC json-schema. Signed-off-by: Yoshinori Sato --- .../renesas,sh7751-intc.yaml | 53 +++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,sh7751-intc.yaml diff --git

[RESEND v7 12/37] dt-bindings: pci: pci-sh7751: Add SH7751 PCI

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 PCI Controller json-schema. Signed-off-by: Yoshinori Sato --- .../bindings/pci/renesas,sh7751-pci.yaml | 89 +++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/renesas,sh7751-pci.yaml diff --git

[RESEND v7 08/37] clocksource: sh_tmu: CLOCKSOURCE support.

2024-04-03 Thread Yoshinori Sato
Allows initialization as CLOCKSOURCE. Signed-off-by: Yoshinori Sato --- drivers/clocksource/sh_tmu.c | 198 --- 1 file changed, 134 insertions(+), 64 deletions(-) diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index

[RESEND v7 21/37] dt-bindings: serial: renesas, scif: Add scif-sh7751.

2024-04-03 Thread Yoshinori Sato
Add Renesas SH7751 SCIF. Signed-off-by: Yoshinori Sato Reviewed-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/serial/renesas,scif.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yaml

[RESEND v7 19/37] dt-bindings: interrupt-controller: renesas, sh7751-irl-ext: Add json-schema

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 external interrupt encoder json-schema. Signed-off-by: Yoshinori Sato --- .../renesas,sh7751-irl-ext.yaml | 57 +++ 1 file changed, 57 insertions(+) create mode 100644

[RESEND v7 05/37] sh: GENERIC_IRQ_CHIP support for CONFIG_OF=y

2024-04-03 Thread Yoshinori Sato
Remove unused function prototype. Add helper update_sr_imask. use for SH7751 irq driver. Add stub intc_finalize. Signed-off-by: Yoshinori Sato --- arch/sh/include/asm/io.h | 2 ++ arch/sh/include/asm/irq.h | 10 -- arch/sh/kernel/cpu/Makefile| 5 +

[RESEND v7 18/37] irqchip: SH7751 external interrupt encoder with enable gate.

2024-04-03 Thread Yoshinori Sato
SH7751 have 15 level external interrupt. It is typically connected to the CPU through a priority encoder that can suppress requests. This driver provides a way to control those hardware with irqchip. Signed-off-by: Yoshinori Sato --- drivers/irqchip/Kconfig | 7 +

[RESEND v7 20/37] serial: sh-sci: fix SH4 OF support.

2024-04-03 Thread Yoshinori Sato
- fix earlycon name. - fix earlyprintk hung (NULL pointer reference). - fix SERIAL_SH_SCI_EARLYCON enablement Signed-off-by: Yoshinori Sato Reviewed-by: Geert Uytterhoeven --- drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/sh-sci.c | 6 +++--- 2 files changed, 4 insertions(+), 4

[RESEND v7 16/37] irqchip: Add SH7751 INTC driver

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 Internal interrupt controller driver. Signed-off-by: Yoshinori Sato --- drivers/irqchip/Kconfig | 8 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-renesas-sh7751.c | 282 +++ 3 files changed, 291 insertions(+) create

[RESEND v7 09/37] dt-binding: Add compatible SH7750 SoC

2024-04-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/timer/renesas,tmu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml index 84bbe15028a1..265d286ffb2f

[RESEND v7 15/37] clk: renesas: Add SH7750/7751 CPG Driver

2024-04-03 Thread Yoshinori Sato
Renesas SH7750 and SH7751 series CPG driver. This driver supported frequency control and clock gating. Signed-off-by: Yoshinori Sato --- drivers/clk/renesas/Kconfig | 13 +- drivers/clk/renesas/Makefile | 1 + drivers/clk/renesas/clk-sh7750.c | 480 +++ 3

[RESEND v7 13/37] dt-bindings: clock: sh7750-cpg: Add renesas, sh7750-cpg header.

2024-04-03 Thread Yoshinori Sato
SH7750 CPG Clock output define. Signed-off-by: Yoshinori Sato --- .../bindings/clock/renesas,sh7750-cpg.yaml| 105 ++ include/dt-bindings/clock/sh7750-cpg.h| 26 + 2 files changed, 131 insertions(+) create mode 100644

[RESEND v7 10/37] sh: Common PCI Framework driver support.

2024-04-03 Thread Yoshinori Sato
Add New OF based PCI Host driver. This driver conflicts some point in legacy PCI driver. To resolve the conflict, I made some changes to the legacy driver. Signed-off-by: Yoshinori Sato --- arch/sh/include/asm/io.h | 6 ++ arch/sh/include/asm/pci.h | 4 arch/sh/kernel/iomap.c|

[RESEND v7 06/37] sh: kernel/setup Update DT support.

2024-04-03 Thread Yoshinori Sato
Fix extrnal fdt initialize and bootargs. Signed-off-by: Yoshinori Sato --- arch/sh/Kconfig | 23 +++ arch/sh/include/asm/setup.h | 1 + arch/sh/kernel/setup.c | 36 +++- 3 files changed, 35 insertions(+), 25 deletions(-)

[RESEND v7 07/37] sh: Fix COMMON_CLK support in CONFIG_OF=y.

2024-04-03 Thread Yoshinori Sato
Initialize the clock and timer using the COMMON_CLK procedure. sh's earlytimer mechanism doesn't work properly in OF, so timer initialization is delayed. If CONFIG_OF=y, perform the general timer initialization procedure. Signed-off-by: Yoshinori Sato --- arch/sh/boards/of-generic.c | 28

[RESEND v7 02/37] sh: Kconfig unified OF supported targets.

2024-04-03 Thread Yoshinori Sato
Targets that support OF should be treated as one board. Signed-off-by: Yoshinori Sato --- arch/sh/Kconfig| 1 + arch/sh/boards/Kconfig | 23 +-- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index

[RESEND v7 04/37] dt-bindings: interrupt-controller: Add header for Renesas SH3/4 INTC.

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 Interrupt controller priority register define. Signed-off-by: Yoshinori Sato --- .../renesas,sh7751-intc.h | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 include/dt-bindings/interrupt-controller/renesas,sh7751-intc.h diff

[RESEND v7 03/37] sh: Enable OF support for build and configuration.

2024-04-03 Thread Yoshinori Sato
IRQ, CLK and PCI will be migrated to a common driver framework. So if OF, disable the SH specific drivers. Signed-off-by: Yoshinori Sato --- arch/sh/Kconfig | 11 ++- arch/sh/drivers/Makefile| 2 ++ arch/sh/kernel/cpu/Makefile | 9 +++--

[RESEND v7 01/37] sh: passing FDT address to kernel startup.

2024-04-03 Thread Yoshinori Sato
R4 is caller saved in SH ABI. Save it so it doesn't get corrupted until it's needed for initialization. Signed-off-by: Yoshinori Sato Reviewed-by: Geert Uytterhoeven --- arch/sh/boot/compressed/head_32.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v7 02/37] sh: Kconfig unified OF supported targets.

2024-04-03 Thread Yoshinori Sato
Targets that support OF should be treated as one board. Signed-off-by: Yoshinori Sato --- arch/sh/Kconfig| 1 + arch/sh/boards/Kconfig | 23 +-- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index

[PATCH v7 13/37] dt-bindings: clock: sh7750-cpg: Add renesas, sh7750-cpg header.

2024-04-03 Thread Yoshinori Sato
SH7750 CPG Clock output define. Signed-off-by: Yoshinori Sato --- .../bindings/clock/renesas,sh7750-cpg.yaml| 105 ++ include/dt-bindings/clock/sh7750-cpg.h| 26 + 2 files changed, 131 insertions(+) create mode 100644

[PATCH v7 03/37] sh: Enable OF support for build and configuration.

2024-04-03 Thread Yoshinori Sato
IRQ, CLK and PCI will be migrated to a common driver framework. So if OF, disable the SH specific drivers. Signed-off-by: Yoshinori Sato --- arch/sh/Kconfig | 11 ++- arch/sh/drivers/Makefile| 2 ++ arch/sh/kernel/cpu/Makefile | 9 +++--

[PATCH v7 05/37] sh: GENERIC_IRQ_CHIP support for CONFIG_OF=y

2024-04-03 Thread Yoshinori Sato
Remove unused function prototype. Add helper update_sr_imask. use for SH7751 irq driver. Add stub intc_finalize. Signed-off-by: Yoshinori Sato --- arch/sh/include/asm/io.h | 2 ++ arch/sh/include/asm/irq.h | 10 -- arch/sh/kernel/cpu/Makefile| 5 +

[PATCH v7 01/37] sh: passing FDT address to kernel startup.

2024-04-03 Thread Yoshinori Sato
R4 is caller saved in SH ABI. Save it so it doesn't get corrupted until it's needed for initialization. Signed-off-by: Yoshinori Sato Reviewed-by: Geert Uytterhoeven --- arch/sh/boot/compressed/head_32.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v7 12/37] dt-bindings: pci: pci-sh7751: Add SH7751 PCI

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 PCI Controller json-schema. Signed-off-by: Yoshinori Sato --- .../bindings/pci/renesas,sh7751-pci.yaml | 89 +++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/renesas,sh7751-pci.yaml diff --git

[PATCH v7 21/37] dt-bindings: serial: renesas,scif: Add scif-sh7751.

2024-04-03 Thread Yoshinori Sato
Add Renesas SH7751 SCIF. Signed-off-by: Yoshinori Sato Reviewed-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/serial/renesas,scif.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yaml

[PATCH v7 14/37] clk: Compatible with narrow registers

2024-04-03 Thread Yoshinori Sato
divider and gate only support 32-bit registers. Older hardware uses narrower registers, so I want to be able to handle 8-bit and 16-bit wide registers. Seven clk_divider flags are used, and if I add flags for 8bit access and 16bit access, 8bit will not be enough, so I expanded it to u16.

[PATCH v7 09/37] dt-binding: Add compatible SH7750 SoC

2024-04-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/timer/renesas,tmu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml index 84bbe15028a1..265d286ffb2f

[PATCH v7 08/37] clocksource: sh_tmu: CLOCKSOURCE support.

2024-04-03 Thread Yoshinori Sato
Allows initialization as CLOCKSOURCE. Signed-off-by: Yoshinori Sato --- drivers/clocksource/sh_tmu.c | 198 --- 1 file changed, 134 insertions(+), 64 deletions(-) diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index

[PATCH v7 23/37] dt-bindings: display: sm501 register definition helper

2024-04-03 Thread Yoshinori Sato
Miscellaneous Timing and Miscellaneous Control registers definition. Signed-off-by: Yoshinori Sato --- include/dt-bindings/display/sm501.h | 76 + 1 file changed, 76 insertions(+) create mode 100644 include/dt-bindings/display/sm501.h diff --git

[PATCH v7 16/37] irqchip: Add SH7751 INTC driver

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 Internal interrupt controller driver. Signed-off-by: Yoshinori Sato --- drivers/irqchip/Kconfig | 8 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-renesas-sh7751.c | 282 +++ 3 files changed, 291 insertions(+) create

[PATCH v7 00/37] Device Tree support for SH7751 based board

2024-04-03 Thread Yoshinori Sato
This is an updated version of something I wrote about 7 years ago. Minimum support for R2D-plus and LANDISK. I think R2D-1 will work if you add AX88796 to dts. And board-specific functions and SCI's SPI functions are not supported. You can get it working with qemu found here.

[PATCH v7 07/37] sh: Fix COMMON_CLK support in CONFIG_OF=y.

2024-04-03 Thread Yoshinori Sato
Initialize the clock and timer using the COMMON_CLK procedure. sh's earlytimer mechanism doesn't work properly in OF, so timer initialization is delayed. If CONFIG_OF=y, perform the general timer initialization procedure. Signed-off-by: Yoshinori Sato --- arch/sh/boards/of-generic.c | 28

[PATCH v7 17/37] dt-bindings: interrupt-controller: renesas, sh7751-intc: Add json-schema

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 INTC json-schema. Signed-off-by: Yoshinori Sato --- .../renesas,sh7751-intc.yaml | 53 +++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,sh7751-intc.yaml diff --git

[PATCH v7 04/37] dt-bindings: interrupt-controller: Add header for Renesas SH3/4 INTC.

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 Interrupt controller priority register define. Signed-off-by: Yoshinori Sato --- .../renesas,sh7751-intc.h | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 include/dt-bindings/interrupt-controller/renesas,sh7751-intc.h diff

[PATCH v7 20/37] serial: sh-sci: fix SH4 OF support.

2024-04-03 Thread Yoshinori Sato
- fix earlycon name. - fix earlyprintk hung (NULL pointer reference). - fix SERIAL_SH_SCI_EARLYCON enablement Signed-off-by: Yoshinori Sato Reviewed-by: Geert Uytterhoeven --- drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/sh-sci.c | 6 +++--- 2 files changed, 4 insertions(+), 4

[PATCH v7 06/37] sh: kernel/setup Update DT support.

2024-04-03 Thread Yoshinori Sato
Fix extrnal fdt initialize and bootargs. Signed-off-by: Yoshinori Sato --- arch/sh/Kconfig | 23 +++ arch/sh/include/asm/setup.h | 1 + arch/sh/kernel/setup.c | 36 +++- 3 files changed, 35 insertions(+), 25 deletions(-)

[PATCH v7 11/37] pci: pci-sh7751: Add SH7751 PCI driver

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 CPU Internal PCI Controller driver. Signed-off-by: Yoshinori Sato --- drivers/pci/controller/Kconfig | 9 + drivers/pci/controller/Makefile | 1 + drivers/pci/controller/pci-sh7751.c | 342 3 files changed, 352 insertions(+) create mode

[PATCH v7 10/37] sh: Common PCI Framework driver support.

2024-04-03 Thread Yoshinori Sato
Add New OF based PCI Host driver. This driver conflicts some point in legacy PCI driver. To resolve the conflict, I made some changes to the legacy driver. Signed-off-by: Yoshinori Sato --- arch/sh/include/asm/io.h | 6 ++ arch/sh/include/asm/pci.h | 4 arch/sh/kernel/iomap.c|

[PATCH v7 22/37] dt-bindings: display: smi, sm501: SMI SM501 binding json-schema

2024-04-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- .../bindings/display/smi,sm501.yaml | 398 ++ 1 file changed, 398 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/smi,sm501.yaml diff --git a/Documentation/devicetree/bindings/display/smi,sm501.yaml

[PATCH v7 19/37] dt-bindings: interrupt-controller: renesas, sh7751-irl-ext: Add json-schema

2024-04-03 Thread Yoshinori Sato
Renesas SH7751 external interrupt encoder json-schema. Signed-off-by: Yoshinori Sato --- .../renesas,sh7751-irl-ext.yaml | 57 +++ 1 file changed, 57 insertions(+) create mode 100644

[PATCH v7 15/37] clk: renesas: Add SH7750/7751 CPG Driver

2024-04-03 Thread Yoshinori Sato
Renesas SH7750 and SH7751 series CPG driver. This driver supported frequency control and clock gating. Signed-off-by: Yoshinori Sato --- drivers/clk/renesas/Kconfig | 13 +- drivers/clk/renesas/Makefile | 1 + drivers/clk/renesas/clk-sh7750.c | 480 +++ 3

[PATCH v7 18/37] irqchip: SH7751 external interrupt encoder with enable gate.

2024-04-03 Thread Yoshinori Sato
SH7751 have 15 level external interrupt. It is typically connected to the CPU through a priority encoder that can suppress requests. This driver provides a way to control those hardware with irqchip. Signed-off-by: Yoshinori Sato --- drivers/irqchip/Kconfig | 7 +

Re: [PATCH v3 15/15] powerpc: Add support for suppressing warning backtraces

2024-04-03 Thread Michael Ellerman
Guenter Roeck writes: > Add name of functions triggering warning backtraces to the __bug_table > object section to enable support for suppressing WARNING backtraces. > > To limit image size impact, the pointer to the function name is only added > to the __bug_table section if both

Re: [PATCH v3 06/15] net: kunit: Suppress lock warning noise at end of dev_addr_lists tests

2024-04-03 Thread Jakub Kicinski
On Wed, 3 Apr 2024 06:19:27 -0700 Guenter Roeck wrote: > dev_addr_lists_test generates lock warning noise at the end of tests > if lock debugging is enabled. There are two sets of warnings. > > WARNING: CPU: 0 PID: 689 at kernel/locking/mutex.c:923 >

Re: [PATCH 0/7] drm/display: Fix display helpers depends on fallouts

2024-04-03 Thread Mark Brown
On Wed, Apr 03, 2024 at 12:56:18PM +0200, Maxime Ripard wrote: > Hi, > > Here's a series addressing the various regressions that were reported > after the Kconfig rework for the DRM display helpers. This makes sense to me and looks like it does the right thing for multi_v7_defconfig so

Re: [PATCH v3] phy/qcom-qmp-combo: propagate correct return value at phy_power_on()

2024-04-03 Thread Stephen Boyd
Quoting Abhinav Kumar (2024-04-03 14:28:52) > > > On 4/3/2024 1:04 PM, Stephen Boyd wrote: > > Quoting Abhinav Kumar (2024-04-03 12:58:50) > >> > >> > >> On 4/3/2024 12:51 PM, Stephen Boyd wrote: > >>> Quoting Kuogee Hsieh (2024-03-29 12:50:35) > Currently qmp_combo_dp_power_on() always

Re: [PATCH] drm/i915/guc: Fix the fix for reset lock confusion

2024-04-03 Thread Andi Shyti
Hi John, On Fri, Mar 29, 2024 at 04:53:05PM -0700, john.c.harri...@intel.com wrote: > From: John Harrison > > The previous fix for the circlular lock splat about the busyness > worker wasn't quite complete. Even though the reset-in-progress flag > is cleared at the start of

Re: [PATCH 0/2] drm/amdgpu/display: Make multi-plane configurations more flexible

2024-04-03 Thread Leo Li
On 2024-03-28 10:33, Pekka Paalanen wrote: On Fri, 15 Mar 2024 13:09:56 -0400 wrote: From: Leo Li These patches aim to make the amdgpgu KMS driver play nicer with compositors when building multi-plane scanout configurations. They do so by: 1. Making cursor behavior more sensible. 2.

Re: [PATCH v3] phy/qcom-qmp-combo: propagate correct return value at phy_power_on()

2024-04-03 Thread Abhinav Kumar
On 4/3/2024 1:04 PM, Stephen Boyd wrote: Quoting Abhinav Kumar (2024-04-03 12:58:50) On 4/3/2024 12:51 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2024-03-29 12:50:35) Currently qmp_combo_dp_power_on() always return 0 in regardless of return value of cfg->configure_dp_phy(). This patch

Re: [PATCH v3 00/15] Add support for suppressing warning backtraces

2024-04-03 Thread Kees Cook
On Wed, Apr 03, 2024 at 06:19:21AM -0700, Guenter Roeck wrote: > Some unit tests intentionally trigger warning backtraces by passing bad > parameters to kernel API functions. Such unit tests typically check the > return value from such calls, not the existence of the warning backtrace. > > Such

Re: [PATCH v0 01/14] IB/hfi1, IB/qib: Make I2C terminology more inclusive

2024-04-03 Thread Dennis Dalessandro
On 4/3/24 4:30 AM, Leon Romanovsky wrote: > On Fri, Mar 29, 2024 at 05:00:25PM +, Easwar Hariharan wrote: >> I2C v7, SMBus 3.2, and I3C specifications have replaced "master/slave" >> with more appropriate terms. Inspired by and following on to Wolfram's series >> to fix drivers/i2c[1], fix

[PATCH 5/5] drm/v3d: Fix race-condition between sysfs/fdinfo and interrupt handler

2024-04-03 Thread Maíra Canal
In V3D, the conclusion of a job is indicated by a IRQ. When a job finishes, then we update the local and the global GPU stats of that queue. But, while the GPU stats are being updated, a user might be reading the stats from sysfs or fdinfo. For example, on `gpu_stats_show()`, we could think about

[PATCH 4/5] drm/v3d: Create function to update a set of GPU stats

2024-04-03 Thread Maíra Canal
Given a set of GPU stats, that is, a `struct v3d_stats` related to a queue in a given context, create a function that can update all this set of GPU stats. Signed-off-by: Maíra Canal --- drivers/gpu/drm/v3d/v3d_sched.c | 20 1 file changed, 12 insertions(+), 8 deletions(-)

[PATCH 3/5] drm/v3d: Create a struct to store the GPU stats

2024-04-03 Thread Maíra Canal
This will make it easier to instantiate the GPU stats variables and it will create a structure where we can store all the variables that refer to GPU stats. Signed-off-by: Maíra Canal --- drivers/gpu/drm/v3d/v3d_drv.c | 14 ++ drivers/gpu/drm/v3d/v3d_drv.h | 18

[PATCH 0/5] drm/v3d: Fix GPU stats inconsistancies and race-condition

2024-04-03 Thread Maíra Canal
This series addresses two major issues on the GPU stats: 1. Currently, we are incrementing `enabled_ns` twice by the end of each job. 2. There is a race-condition between the IRQ handler and the users Apart from addressing this issues, this series improved the GPU stats code as a hole. We

[PATCH 1/5] drm/v3d: Don't increment `enabled_ns` twice

2024-04-03 Thread Maíra Canal
The commit 509433d8146c ("drm/v3d: Expose the total GPU usage stats on sysfs") introduced the calculation of global GPU stats. For the regards, it used the already existing infrastructure provided by commit 09a93cc4f7d1 ("drm/v3d: Implement show_fdinfo() callback for GPU usage stats"). While

[PATCH 2/5] drm/v3d: Create two functions to update all GPU stats variables

2024-04-03 Thread Maíra Canal
Currently, we manually perform all operations to update the GPU stats variables. Apart from the code repetition, this is very prone to errors, as we can see on the previous commit. Therefore, create two functions to manage updating all GPU stats variables. Now, the jobs only need to call for

Re: [PATCH v3] phy/qcom-qmp-combo: propagate correct return value at phy_power_on()

2024-04-03 Thread Stephen Boyd
Quoting Abhinav Kumar (2024-04-03 12:58:50) > > > On 4/3/2024 12:51 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2024-03-29 12:50:35) > >> Currently qmp_combo_dp_power_on() always return 0 in regardless of > >> return value of cfg->configure_dp_phy(). This patch propagate > >> return value of

Re: [PATCH v3] phy/qcom-qmp-combo: propagate correct return value at phy_power_on()

2024-04-03 Thread Abhinav Kumar
On 4/3/2024 12:51 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2024-03-29 12:50:35) Currently qmp_combo_dp_power_on() always return 0 in regardless of return value of cfg->configure_dp_phy(). This patch propagate return value of cfg->configure_dp_phy() all the way back to caller. Is this

Re: [PATCH v3] phy/qcom-qmp-combo: propagate correct return value at phy_power_on()

2024-04-03 Thread Stephen Boyd
Quoting Kuogee Hsieh (2024-03-29 12:50:35) > Currently qmp_combo_dp_power_on() always return 0 in regardless of > return value of cfg->configure_dp_phy(). This patch propagate > return value of cfg->configure_dp_phy() all the way back to caller. Is this found via code inspection or because the

Re: [PATCH 1/4] dt-bindings: display: bridge: add the Hot-plug MIPI DSI connector

2024-04-03 Thread Luca Ceresoli
Hello Rob, [+Cc Wolfram for the I2C discussion below] thanks for your feedback. On Wed, 27 Mar 2024 11:09:08 -0500 Rob Herring wrote: > On Tue, Mar 26, 2024 at 05:28:11PM +0100, Luca Ceresoli wrote: > > Add bindings for a physical, hot-pluggable connector allowing the far end > > of a MIPI

Re: [PATCH v3] phy/qcom-qmp-combo: propagate correct return value at phy_power_on()

2024-04-03 Thread Dmitry Baryshkov
On Wed, Apr 03, 2024 at 10:22:37AM -0700, Kuogee Hsieh wrote: > Dmitry, > > Any more comments? > > On 3/29/2024 12:50 PM, Kuogee Hsieh wrote: > > Currently qmp_combo_dp_power_on() always return 0 in regardless of > > return value of cfg->configure_dp_phy(). This patch propagate > > return value

[PATCH] drm/sysfs: Add drm class-wide attribute to get active device clients

2024-04-03 Thread Adrián Larumbe
Up to this day, all fdinfo-based GPU profilers must traverse the entire /proc directory structure to find open DRM clients with fdinfo file descriptors. This is inefficient and time-consuming. This patch adds a new device class attribute that will install a sysfs file per DRM device, which can be

Re: [RFC PATCH net-next v8 06/14] page_pool: convert to use netmem

2024-04-03 Thread Simon Horman
On Tue, Apr 02, 2024 at 05:20:43PM -0700, Mina Almasry wrote: > Abstrace the memory type from the page_pool so we can later add support > for new memory types. Convert the page_pool to use the new netmem type > abstraction, rather than use struct page directly. > > As of this patch the netmem

Re: [PATCH v3] drm/msm/dp: assign correct DP controller ID to x1e80100 interface table

2024-04-03 Thread Dmitry Baryshkov
On Wed, 3 Apr 2024 at 20:24, Kuogee Hsieh wrote: > > Dmitry, > > any more comments? > No, it was picked by Abhinav for msm-fixes. -- With best wishes Dmitry

Re: [PATCH v3] drm/msm/dp: assign correct DP controller ID to x1e80100 interface table

2024-04-03 Thread Kuogee Hsieh
Dmitry, any more comments? On 3/29/2024 12:46 PM, Kuogee Hsieh wrote: At current x1e80100 interface table, interface #3 is wrongly connected to DP controller #0 and interface #4 wrongly connected to DP controller #2. Fix this problem by connect Interface #3 to DP controller #0 and interface #4

Re: [PATCH v3] phy/qcom-qmp-combo: propagate correct return value at phy_power_on()

2024-04-03 Thread Kuogee Hsieh
Dmitry, Any more comments? On 3/29/2024 12:50 PM, Kuogee Hsieh wrote: Currently qmp_combo_dp_power_on() always return 0 in regardless of return value of cfg->configure_dp_phy(). This patch propagate return value of cfg->configure_dp_phy() all the way back to caller. Changes in V3: -- add v2

[PATCH AUTOSEL 4.19 5/5] fbmon: prevent division by zero in fb_videomode_from_videomode()

2024-04-03 Thread Sasha Levin
From: Roman Smirnov [ Upstream commit c2d953276b8b27459baed1277a4fdd5dd9bd4126 ] The expression htotal * vtotal can have a zero value on overflow. It is necessary to prevent division by zero like in fb_var_to_videomode(). Found by Linux Verification Center (linuxtesting.org) with Svace.

[PATCH AUTOSEL 4.19 4/5] fbdev: viafb: fix typo in hw_bitblt_1 and hw_bitblt_2

2024-04-03 Thread Sasha Levin
From: Aleksandr Burakov [ Upstream commit bc87bb342f106a0402186bcb588fcbe945dced4b ] There are some actions with value 'tmp' but 'dst_addr' is checked instead. It is obvious that a copy-paste error was made here and the value of variable 'tmp' should be checked here. Found by Linux

[PATCH AUTOSEL 5.4 6/6] fbmon: prevent division by zero in fb_videomode_from_videomode()

2024-04-03 Thread Sasha Levin
From: Roman Smirnov [ Upstream commit c2d953276b8b27459baed1277a4fdd5dd9bd4126 ] The expression htotal * vtotal can have a zero value on overflow. It is necessary to prevent division by zero like in fb_var_to_videomode(). Found by Linux Verification Center (linuxtesting.org) with Svace.

[PATCH AUTOSEL 5.4 5/6] fbdev: viafb: fix typo in hw_bitblt_1 and hw_bitblt_2

2024-04-03 Thread Sasha Levin
From: Aleksandr Burakov [ Upstream commit bc87bb342f106a0402186bcb588fcbe945dced4b ] There are some actions with value 'tmp' but 'dst_addr' is checked instead. It is obvious that a copy-paste error was made here and the value of variable 'tmp' should be checked here. Found by Linux

[PATCH AUTOSEL 5.10 8/8] fbmon: prevent division by zero in fb_videomode_from_videomode()

2024-04-03 Thread Sasha Levin
From: Roman Smirnov [ Upstream commit c2d953276b8b27459baed1277a4fdd5dd9bd4126 ] The expression htotal * vtotal can have a zero value on overflow. It is necessary to prevent division by zero like in fb_var_to_videomode(). Found by Linux Verification Center (linuxtesting.org) with Svace.

[PATCH AUTOSEL 5.10 6/8] fbdev: viafb: fix typo in hw_bitblt_1 and hw_bitblt_2

2024-04-03 Thread Sasha Levin
From: Aleksandr Burakov [ Upstream commit bc87bb342f106a0402186bcb588fcbe945dced4b ] There are some actions with value 'tmp' but 'dst_addr' is checked instead. It is obvious that a copy-paste error was made here and the value of variable 'tmp' should be checked here. Found by Linux

[PATCH AUTOSEL 5.15 8/8] fbmon: prevent division by zero in fb_videomode_from_videomode()

2024-04-03 Thread Sasha Levin
From: Roman Smirnov [ Upstream commit c2d953276b8b27459baed1277a4fdd5dd9bd4126 ] The expression htotal * vtotal can have a zero value on overflow. It is necessary to prevent division by zero like in fb_var_to_videomode(). Found by Linux Verification Center (linuxtesting.org) with Svace.

[PATCH AUTOSEL 5.15 6/8] fbdev: viafb: fix typo in hw_bitblt_1 and hw_bitblt_2

2024-04-03 Thread Sasha Levin
From: Aleksandr Burakov [ Upstream commit bc87bb342f106a0402186bcb588fcbe945dced4b ] There are some actions with value 'tmp' but 'dst_addr' is checked instead. It is obvious that a copy-paste error was made here and the value of variable 'tmp' should be checked here. Found by Linux

[PATCH AUTOSEL 6.1 15/15] fbmon: prevent division by zero in fb_videomode_from_videomode()

2024-04-03 Thread Sasha Levin
From: Roman Smirnov [ Upstream commit c2d953276b8b27459baed1277a4fdd5dd9bd4126 ] The expression htotal * vtotal can have a zero value on overflow. It is necessary to prevent division by zero like in fb_var_to_videomode(). Found by Linux Verification Center (linuxtesting.org) with Svace.

[PATCH AUTOSEL 6.1 12/15] fbdev: viafb: fix typo in hw_bitblt_1 and hw_bitblt_2

2024-04-03 Thread Sasha Levin
From: Aleksandr Burakov [ Upstream commit bc87bb342f106a0402186bcb588fcbe945dced4b ] There are some actions with value 'tmp' but 'dst_addr' is checked instead. It is obvious that a copy-paste error was made here and the value of variable 'tmp' should be checked here. Found by Linux

[PATCH AUTOSEL 6.6 20/20] drm/amdgpu: fix use-after-free bug

2024-04-03 Thread Sasha Levin
From: Vitaly Prosyak [ Upstream commit 22207fd5c80177b860279653d017474b2812af5e ] The bug can be triggered by sending a single amdgpu_gem_userptr_ioctl to the AMDGPU DRM driver on any ASICs with an invalid address and size. The bug was reported by Joonkyo Jung . For example the following code:

[PATCH AUTOSEL 6.6 18/20] fbmon: prevent division by zero in fb_videomode_from_videomode()

2024-04-03 Thread Sasha Levin
From: Roman Smirnov [ Upstream commit c2d953276b8b27459baed1277a4fdd5dd9bd4126 ] The expression htotal * vtotal can have a zero value on overflow. It is necessary to prevent division by zero like in fb_var_to_videomode(). Found by Linux Verification Center (linuxtesting.org) with Svace.

[PATCH AUTOSEL 6.6 14/20] fbdev: viafb: fix typo in hw_bitblt_1 and hw_bitblt_2

2024-04-03 Thread Sasha Levin
From: Aleksandr Burakov [ Upstream commit bc87bb342f106a0402186bcb588fcbe945dced4b ] There are some actions with value 'tmp' but 'dst_addr' is checked instead. It is obvious that a copy-paste error was made here and the value of variable 'tmp' should be checked here. Found by Linux

[PATCH AUTOSEL 6.8 28/28] drm/amdgpu: Init zone device and drm client after mode-1 reset on reload

2024-04-03 Thread Sasha Levin
From: Ahmad Rehman [ Upstream commit f679fd6057fbf5ab34aaee28d58b7f81af0cbf48 ] In passthrough environment, when amdgpu is reloaded after unload, mode-1 is triggered after initializing the necessary IPs, That init does not include KFD, and KFD init waits until the reset is completed. KFD init

  1   2   3   >