[PATCH v8 2/2] clk: hisilicon: Add clock driver for hi3559A SoC

2021-03-23 Thread Dongjiu Geng
From: Dongjiu Geng Add clock drivers for hi3559A SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon

[PATCH v8 1/2] dt-bindings: Document the hi3559a clock bindings

2021-03-23 Thread Dongjiu Geng
From: Dongjiu Geng Add DT bindings documentation for hi3559a SoC clock. Signed-off-by: Dongjiu Geng Reviewed-by: Rob Herring --- .../clock/hisilicon,hi3559av100-clock.yaml | 59 include/dt-bindings/clock/hi3559av100-clock.h | 165 + 2 files changed

[PATCH v8 0/2] Enable Hi3559A SOC clock

2021-03-23 Thread Dongjiu Geng
This patchset is separated from this series: https://lore.kernel.org/patchwork/cover/1353321/ v7->v8: Mainly address Stephen's comments 1. Add const for some function and variables 2. Remove the useless function and variables 3. Add a define for a mask width Dongjiu Geng (2): dt-

Re: [PATCH v7 0/4] Enable Hi3559A SOC clock and HiSilicon Hiedma Controller

2021-01-12 Thread Dongjiu Geng
On 2021/1/12 18:40, Vinod Koul wrote: > On 15-12-20, 11:09, Dongjiu Geng wrote: >> v6->v7: >> 1. rename hisi,misc-control to hisi,misc-control to hisilicon,misc-control >> >> v5->v6: >> 1. Drop #size-cells and #address-cell in the hisilicon,hi3559av100-cloc

Re: [PATCH v7 1/4] dt-bindings: Document the hi3559a clock bindings

2021-01-06 Thread Dongjiu Geng
On 2020/12/22 2:54, Rob Herring wrote: > On Tue, 15 Dec 2020 11:09:44 +0000, Dongjiu Geng wrote: >> Add DT bindings documentation for hi3559a SoC clock. >> >> Signed-off-by: Dongjiu Geng >> --- >> .../clock/hisilicon,hi3559av100-clock.yaml| 59

[PATCH v7 3/4] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller

2020-12-14 Thread Dongjiu Geng
The Hiedma Controller v310 Provides eight DMA channels, each channel can be configured for one-way transfer. The data can be transferred in 8-bit, 16-bit, 32-bit, or 64-bit mode. This documentation describes DT bindings of this controller. Signed-off-by: Dongjiu Geng --- .../bindings/dma

Re: [PATCH RESEND v6 3/4] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller

2020-12-14 Thread Dongjiu Geng
On 2020/12/12 4:57, Rob Herring wrote: > On Sat, 12 Dec 2020 13:11:14 +0000, Dongjiu Geng wrote: >> The Hiedma Controller v310 Provides eight DMA channels, each >> channel can be configured for one-way transfer. The data can >> be transferred in 8-bit, 16-bit, 32-bit,

[PATCH v7 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-12-14 Thread Dongjiu Geng
Add clock drivers for hi3559A SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/clk-hi3559a.c | 865

[PATCH v7 0/4] Enable Hi3559A SOC clock and HiSilicon Hiedma Controller

2020-12-14 Thread Dongjiu Geng
. fix the 'make dt_binding_check' issues in 'Enable HiSilicon Hiedma Controller' patchset v2->v3: 1. change dt-bindings documents from txt to yaml format. 2. Add SHUB clock to access the devices of m7 Dongjiu Geng (4): dt-bindings: Document the hi3559a clock bindings

[PATCH v7 4/4] dmaengine: dma: Add Hiedma Controller v310 Device Driver

2020-12-14 Thread Dongjiu Geng
Signed-off-by: Dongjiu Geng --- drivers/dma/Kconfig | 14 + drivers/dma/Makefile |1 + drivers/dma/hiedmacv310.c | 1442 + drivers/dma/hiedmacv310.h | 136 4 files changed, 1593 insertions(+) create mode 100644 drivers/dma/hiedmacv310.c

[PATCH v7 1/4] dt-bindings: Document the hi3559a clock bindings

2020-12-14 Thread Dongjiu Geng
Add DT bindings documentation for hi3559a SoC clock. Signed-off-by: Dongjiu Geng --- .../clock/hisilicon,hi3559av100-clock.yaml| 59 +++ include/dt-bindings/clock/hi3559av100-clock.h | 165 ++ 2 files changed, 224 insertions(+) create mode 100644 Documentation

[PATCH RESEND v6 3/4] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller

2020-12-11 Thread Dongjiu Geng
The Hiedma Controller v310 Provides eight DMA channels, each channel can be configured for one-way transfer. The data can be transferred in 8-bit, 16-bit, 32-bit, or 64-bit mode. This documentation describes DT bindings of this controller. Signed-off-by: Dongjiu Geng --- .../bindings/dma

[PATCH RESEND v6 1/4] dt-bindings: Document the hi3559a clock bindings

2020-12-11 Thread Dongjiu Geng
Add DT bindings documentation for hi3559a SoC clock. Signed-off-by: Dongjiu Geng --- .../clock/hisilicon,hi3559av100-clock.yaml| 59 +++ include/dt-bindings/clock/hi3559av100-clock.h | 165 ++ 2 files changed, 224 insertions(+) create mode 100644 Documentation

[PATCH RESEND v6 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-12-11 Thread Dongjiu Geng
Add clock drivers for hi3559A SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/clk-hi3559a.c | 865

[PATCH v6 RESEND 4/4] dmaengine: dma: Add Hiedma Controller v310 Device Driver

2020-12-11 Thread Dongjiu Geng
Signed-off-by: Dongjiu Geng --- drivers/dma/Kconfig | 14 + drivers/dma/Makefile |1 + drivers/dma/hiedmacv310.c | 1442 + drivers/dma/hiedmacv310.h | 136 4 files changed, 1593 insertions(+) create mode 100644 drivers/dma/hiedmacv310.c

[PATCH RESEND v6 0/4] Enable Hi3559A SOC clock and HiSilicon Hiedma Controller

2020-12-11 Thread Dongjiu Geng
Controller' patchset v2->v3: 1. change dt-bindings documents from txt to yaml format. 2. Add SHUB clock to access the devices of m7 Dongjiu Geng (4): dt-bindings: Document the hi3559a clock bindings clk: hisilicon: Add clock driver for hi3559A SoC dt: bindings: dma: Add DT bindings f

[PATCH v6 0/4] Enable Hi3559A SOC clock and HiSilicon Hiedma Controller

2020-12-11 Thread Dongjiu Geng
Controller' patchset v2->v3: 1. change dt-bindings documents from txt to yaml format. 2. Add SHUB clock to access the devices of m7 Dongjiu Geng (4): dt-bindings: Document the hi3559a clock bindings clk: hisilicon: Add clock driver for hi3559A SoC dt: bindings: dma: Add DT bindings f

[PATCH v6 1/4] dt-bindings: Document the hi3559a clock bindings

2020-12-11 Thread Dongjiu Geng
Add DT bindings documentation for hi3559a SoC clock. Signed-off-by: Dongjiu Geng --- .../clock/hisilicon,hi3559av100-clock.yaml| 59 +++ include/dt-bindings/clock/hi3559av100-clock.h | 165 ++ 2 files changed, 224 insertions(+) create mode 100644 Documentation

[PATCH v6 3/4] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller

2020-12-11 Thread Dongjiu Geng
The Hiedma Controller v310 Provides eight DMA channels, each channel can be configured for one-way transfer. The data can be transferred in 8-bit, 16-bit, 32-bit, or 64-bit mode. This documentation describes DT bindings of this controller. Signed-off-by: Dongjiu Geng --- .../bindings/dma

[PATCH v6 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-12-11 Thread Dongjiu Geng
Add clock drivers for hi3559A SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/clk-hi3559a.c | 865

[PATCH v6 4/4] dmaengine: dma: Add Hiedma Controller v310 Device Driver

2020-12-11 Thread Dongjiu Geng
Signed-off-by: Dongjiu Geng --- drivers/dma/Kconfig | 14 + drivers/dma/Makefile |1 + drivers/dma/hiedmacv310.c | 1442 + drivers/dma/hiedmacv310.h | 136 4 files changed, 1593 insertions(+) create mode 100644 drivers/dma/hiedmacv310.c

[PATCH v6 1/4] dt-bindings: Document the hi3559a clock bindings

2020-12-11 Thread Dongjiu Geng
Add DT bindings documentation for hi3559a SoC clock. Signed-off-by: Dongjiu Geng --- .../clock/hisilicon,hi3559av100-clock.yaml| 59 +++ include/dt-bindings/clock/hi3559av100-clock.h | 165 ++ 2 files changed, 224 insertions(+) create mode 100644 Documentation

[PATCH v6 3/4] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller

2020-12-11 Thread Dongjiu Geng
The Hiedma Controller v310 Provides eight DMA channels, each channel can be configured for one-way transfer. The data can be transferred in 8-bit, 16-bit, 32-bit, or 64-bit mode. This documentation describes DT bindings of this controller. Signed-off-by: Dongjiu Geng --- .../bindings/dma

[PATCH v6 4/4] dmaengine: dma: Add Hiedma Controller v310 Device Driver

2020-12-11 Thread Dongjiu Geng
Signed-off-by: Dongjiu Geng --- drivers/dma/Kconfig | 14 + drivers/dma/Makefile |1 + drivers/dma/hiedmacv310.c | 1442 + drivers/dma/hiedmacv310.h | 136 4 files changed, 1593 insertions(+) create mode 100644 drivers/dma/hiedmacv310.c

[PATCH v6 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-12-11 Thread Dongjiu Geng
Add clock drivers for hi3559A SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/clk-hi3559a.c | 865

[PATCH v6 0/4] Enable Hi3559A SOC clock and HiSilicon Hiedma Controller

2020-12-11 Thread Dongjiu Geng
ilicon Hiedma Controller' patchset v2->v3: 1. change dt-bindings documents from txt to yaml format. 2. Add SHUB clock to access the devices of m7 Dongjiu Geng (4): dt-bindings: Document the hi3559a clock bindings clk: hisilicon: Add clock driver for hi3559A SoC dt: bindings:

Re: [PATCH v5 1/4] dt-bindings: Document the hi3559a clock bindings

2020-12-07 Thread Dongjiu Geng
On 2020/12/1 6:07, Rob Herring wrote: > On Thu, Nov 19, 2020 at 08:01:26PM +0000, Dongjiu Geng wrote: >> Add DT bindings documentation for hi3559a SoC clock. >> >> Signed-off-by: Dongjiu Geng >> --- >> .../clock/hisilicon,hi3559av100-clock.yaml| 66

Re: [PATCH v5 0/4] Enable Hi3559A SOC clock and HiSilicon Hiedma Controller

2020-11-28 Thread Dongjiu Geng
ping, sorry for the noise. On 2020/11/20 4:01, Dongjiu Geng wrote: > v4->v5: > 1. change the patch author mail name > > v3->v4: > 1. fix the 'make dt_binding_check' issues. > 2. Combine the 'Enable HiSilicon Hiedma Controller' series p

[PATCH v4] clk: hisilicon: refine hi3620_mmc_clk_init() and fix memory leak issues

2020-11-19 Thread Dongjiu Geng
issues in hisi_clk_init(). Fixes: 75af25f581b1 ("clk: hisi: remove static variable") Fixes: 62ac983b6141 ("clk: hisilicon: add hi3620_mmc_clks") Cc: Markus Elfring Signed-off-by: Dongjiu Geng --- v3->v4: 1. omit a blank in hisi_register_clk_mmc() 2. Further need to do: con

Re: [v3] clk: hisilicon: refine hi3620_mmc_clk_init() and fix memory leak issues

2020-11-19 Thread Dongjiu Geng
On 2020/11/19 22:40, Markus Elfring wrote: >> How about we adjust such a function call in another series patches? > > You can try to offer desirable changes also in a corresponding patch series > as usual. sure, ok > > Regards, > Markus > . >

Re: [PATCH v3] clk: hisilicon: refine hi3620_mmc_clk_init() and fix memory leak issues

2020-11-19 Thread Dongjiu Geng
On 2020/11/19 17:07, Markus Elfring wrote: >> Refine hi3620_mmc_clk_init() to use of_clk_add_hw_provider() >> instead of of_clk_add_provider(), … > > … >> +++ b/drivers/clk/hisilicon/clk-hi3620.c > … >> @@ -439,17 +440,22 @@ static struct clk *hisi_register_clk_mmc(struct >> hisi_mmc_clock *mmc_

Re: [PATCH 1/2] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller

2020-11-19 Thread Dongjiu Geng
On 2020/11/16 23:27, Rob Herring wrote: > On Sat, 14 Nov 2020 00:34:39 +0000, Dongjiu Geng wrote: >> The Hiedma Controller v310 Provides eight DMA channels, each >> channel can be configured for one-way transfer. The data can >> be transferred in 8-bit, 16-bit, 32-bit,

[PATCH v5 3/4] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller

2020-11-19 Thread Dongjiu Geng
The Hiedma Controller v310 Provides eight DMA channels, each channel can be configured for one-way transfer. The data can be transferred in 8-bit, 16-bit, 32-bit, or 64-bit mode. This documentation describes DT bindings of this controller. Signed-off-by: Dongjiu Geng --- .../bindings/dma

[PATCH v5 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-19 Thread Dongjiu Geng
Add clock drivers for hi3559A SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/clk-hi3559a.c | 865

[PATCH v5 4/4] dmaengine: dma: Add Hiedma Controller v310 Device Driver

2020-11-19 Thread Dongjiu Geng
Signed-off-by: Dongjiu Geng --- drivers/dma/Kconfig | 14 + drivers/dma/Makefile |1 + drivers/dma/hiedmacv310.c | 1441 + drivers/dma/hiedmacv310.h | 136 4 files changed, 1592 insertions(+) create mode 100644 drivers/dma/hiedmacv310.c

[PATCH v5 1/4] dt-bindings: Document the hi3559a clock bindings

2020-11-19 Thread Dongjiu Geng
Add DT bindings documentation for hi3559a SoC clock. Signed-off-by: Dongjiu Geng --- .../clock/hisilicon,hi3559av100-clock.yaml| 66 +++ include/dt-bindings/clock/hi3559av100-clock.h | 165 ++ 2 files changed, 231 insertions(+) create mode 100644 Documentation

[PATCH v5 0/4] Enable Hi3559A SOC clock and HiSilicon Hiedma Controller

2020-11-19 Thread Dongjiu Geng
ntroller' patchset v2->v3: 1. change dt-bindings documents from txt to yaml format. 2. Add SHUB clock to access the devices of m7 Dongjiu Geng (4): dt-bindings: Document the hi3559a clock bindings clk: hisilicon: Add clock driver for hi3559A SoC dt: bindings: dma: Add DT bindings for

[PATCH v4 1/4] dt-bindings: Document the hi3559a clock bindings

2020-11-19 Thread Dongjiu Geng
Add DT bindings documentation for hi3559a SoC clock. Signed-off-by: Dongjiu Geng --- .../clock/hisilicon,hi3559av100-clock.yaml| 66 +++ include/dt-bindings/clock/hi3559av100-clock.h | 165 ++ 2 files changed, 231 insertions(+) create mode 100644 Documentation

[PATCH v4 3/4] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller

2020-11-19 Thread Dongjiu Geng
The Hiedma Controller v310 Provides eight DMA channels, each channel can be configured for one-way transfer. The data can be transferred in 8-bit, 16-bit, 32-bit, or 64-bit mode. This documentation describes DT bindings of this controller. Signed-off-by: Dongjiu Geng --- .../bindings/dma

[PATCH v4 4/4] dmaengine: dma: Add Hiedma Controller v310 Device Driver

2020-11-19 Thread Dongjiu Geng
Signed-off-by: Dongjiu Geng --- drivers/dma/Kconfig | 14 + drivers/dma/Makefile |1 + drivers/dma/hiedmacv310.c | 1441 + drivers/dma/hiedmacv310.h | 136 4 files changed, 1592 insertions(+) create mode 100644 drivers/dma/hiedmacv310.c

[PATCH v4 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-19 Thread Dongjiu Geng
Add clock drivers for hi3559A SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/clk-hi3559a.c | 865

[PATCH v4 0/4] Enable Hi3559A SOC clock and HiSilicon Hiedma Controller

2020-11-19 Thread Dongjiu Geng
3: 1. change dt-bindings documents from txt to yaml format. 2. Add SHUB clock to access the devices of m7 Dongjiu Geng (4): dt-bindings: Document the hi3559a clock bindings clk: hisilicon: Add clock driver for hi3559A SoC dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controlle

Re: [PATCH V3] clk: hisilicon: refine hi3620_mmc_clk_init() and fix memory leak issues

2020-11-18 Thread Dongjiu Geng
ping, sorry for this noise. On 2020/11/13 3:22, Dongjiu Geng wrote: > Refine hi3620_mmc_clk_init() to use of_clk_add_hw_provider() > instead of of_clk_add_provider(), the called function hisi_register_clk_mmc() > returns 'clk_hw *' to adapt to this change. Also free memory

Re: [PATCH v3 1/2] dt-bindings: Document the hi3559a clock bindings

2020-11-16 Thread Dongjiu Geng
On 2020/11/16 23:02, Rob Herring wrote: > On Sat, 14 Nov 2020 00:22:36 +0000, Dongjiu Geng wrote: >> Add DT bindings documentation for hi3559a SoC clock. >> >> Signed-off-by: Dongjiu Geng >> --- >> .../clock/hisilicon,hi3559av100-clock.yaml| 65

[PATCH 2/2] dmaengine: dma: Add Hiedma Controller v310 Device Driver

2020-11-13 Thread Dongjiu Geng
Hisilicon EDMA Controller(EDMAC) directly transfers data between a memory and a peripheral, between peripherals, or between memories. This avoids the CPU intervention and reduces the interrupt handling overhead of the CPU, this driver enables this controller. Signed-off-by: Dongjiu Geng

[PATCH 1/2] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller

2020-11-13 Thread Dongjiu Geng
The Hiedma Controller v310 Provides eight DMA channels, each channel can be configured for one-way transfer. The data can be transferred in 8-bit, 16-bit, 32-bit, or 64-bit mode. This documentation describes DT bindings of this controller. Signed-off-by: Dongjiu Geng --- .../bindings/dma

[PATCH 1/2] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller

2020-11-13 Thread Dongjiu Geng
The Hiedma Controller v310 Provides eight DMA channels, each channel can be configured for one-way transfer. The data can be transferred in 8-bit, 16-bit, 32-bit, or 64-bit mode. This documentation describes DT bindings of this controller. Signed-off-by: Dongjiu Geng --- .../bindings/dma

[PATCH 2/2] dmaengine: dma: Add Hiedma Controller v310 Device Driver

2020-11-13 Thread Dongjiu Geng
Hisilicon EDMA Controller(EDMAC) directly transfers data between a memory and a peripheral, between peripherals, or between memories. This avoids the CPU intervention and reduces the interrupt handling overhead of the CPU, this driver enables this controller. Signed-off-by: Dongjiu Geng

[PATCH v3 2/2] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-13 Thread Dongjiu Geng
Add clock drivers for hi3559A SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/clk-hi3559a.c | 865

[PATCH v3 1/2] dt-bindings: Document the hi3559a clock bindings

2020-11-13 Thread Dongjiu Geng
Add DT bindings documentation for hi3559a SoC clock. Signed-off-by: Dongjiu Geng --- .../clock/hisilicon,hi3559av100-clock.yaml| 65 +++ include/dt-bindings/clock/hi3559av100-clock.h | 165 ++ 2 files changed, 230 insertions(+) create mode 100644 Documentation

[PATCH v3 0/2] Enable Hi3559A SOC clock

2020-11-13 Thread Dongjiu Geng
v2->v3: 1. change dt-bindings documents from txt to yaml format. 2. Add SHUB clock to access the devices of m7 Dongjiu Geng (2): dt-bindings: Document the hi3559a clock bindings clk: hisilicon: Add clock driver for hi3559A SoC .../clock/hisilicon,hi3559av100-clock.yaml| 65 ++ driv

[PATCH v2 2/2] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-12 Thread Dongjiu Geng
Add clock drivers for hi3559A SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile| 1 + drivers/clk/hisilicon

[PATCH v2 1/2] dt-bindings: Document the hi3559a clock bindings

2020-11-12 Thread Dongjiu Geng
Add DT bindings documentation for hi3559a SoC clock. Signed-off-by: Dongjiu Geng --- .../bindings/clock/hi3559av100-clock.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/hi3559av100-clock.txt diff --git a

[PATCH v2 2/2] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-12 Thread Dongjiu Geng
Add clock drivers for hi3559A SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile| 1 + drivers/clk/hisilicon

[PATCH v2 1/2] dt-bindings: Document the hi3559a clock bindings

2020-11-12 Thread Dongjiu Geng
Add DT bindings documentation for hi3559a SoC clock. Signed-off-by: Dongjiu Geng --- .../bindings/clock/hi3559av100-clock.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/hi3559av100-clock.txt diff --git a

Re: [PATCH V3] clk: hisilicon: refine hi3620_mmc_clk_init() and fix memory leak issues

2020-11-12 Thread Dongjiu Geng
add Markus On 2020/11/13 3:22, Dongjiu Geng wrote: > Refine hi3620_mmc_clk_init() to use of_clk_add_hw_provider() > instead of of_clk_add_provider(), the called function hisi_register_clk_mmc() > returns 'clk_hw *' to adapt to this change. Also free memory mapping and >

[PATCH V3] clk: hisilicon: refine hi3620_mmc_clk_init() and fix memory leak issues

2020-11-12 Thread Dongjiu Geng
issues in hisi_clk_init(). Fixes: 75af25f581b1 ("clk: hisi: remove static variable") Fixes: 62ac983b6141 ("clk: hisilicon: add hi3620_mmc_clks") Cc: Markus Elfring Signed-off-by: Dongjiu Geng --- v2->v3: 1. Refind hi3620_mmc_clk_init() and hisi_register_clk_mmc() in order to u

[PATCH] clk: hisilicon: refine hi3620_mmc_clk_init() and fix memory leak issues

2020-11-12 Thread Dongjiu Geng
issues in hisi_clk_init(). Fixes: 75af25f581b1 ("clk: hisi: remove static variable") Fixes: 62ac983b6141 ("clk: hisilicon: add hi3620_mmc_clks") Cc: Markus Elfring Signed-off-by: Dongjiu Geng --- v2->v3: 1. Refind hi3620_mmc_clk_init() and hisi_register_clk_mmc() in order to u

Re: [PATCH] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-11 Thread Dongjiu Geng
On 2020/11/12 6:23, Rob Herring wrote: > On Mon, Nov 09, 2020 at 08:28:38PM +0000, Dongjiu Geng wrote: >> Add clock drivers for hi3559A SoC, this driver controls the SoC >> registers to supply different clocks to different IPs in the SoC. >> >> Signed-off-by: Dongjiu G

Re: [PATCH v2] clk: hisilicon: Free clk_data and unmap region obtained by of_iomap

2020-11-10 Thread Dongjiu Geng
On 2020/11/10 1:54, Markus Elfring wrote: > … >> +++ b/drivers/clk/hisilicon/clk-hi3620.c > … >> @@ -478,6 +478,10 @@ static void __init hi3620_mmc_clk_init(struct >> device_node *node) >> >> clk_data->clk_num = num; >> of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); >> +

[PATCH] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-09 Thread Dongjiu Geng
Add clock drivers for hi3559A SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/Kconfig | 7 + drivers/clk/hisilicon/Makefile| 1 + drivers/clk/hisilicon

Re: [PATCH V2] clk: hisilicon: Free clk_data and unmap region obtained by of_iomap

2020-11-09 Thread Dongjiu Geng
add Markus On 2020/11/10 2:09, Dongjiu Geng wrote: > Free memory mapping and free clk_data, if clock initialization > is not successful. > > Fixes: 75af25f581b1 ("clk: hisi: remove static variable") > Fixes: 62ac983b6141 ("clk: hisilicon: add hi3620_mmc_clks&q

Re: [PATCH] clk: hisilicon: Fix the memory leak issues

2020-11-09 Thread Dongjiu Geng
On 2020/11/8 21:55, Markus Elfring wrote: >> When return errors, … > > I would find an other wording more appropriate for this change description. > > >> …, so fix this issue. > > I suggest to replace this information by an other imperative wording > and the tag “Fixes”. OK, done, I have submi

[PATCH V2] clk: hisilicon: Free clk_data and unmap region obtained by of_iomap

2020-11-09 Thread Dongjiu Geng
Free memory mapping and free clk_data, if clock initialization is not successful. Fixes: 75af25f581b1 ("clk: hisi: remove static variable") Fixes: 62ac983b6141 ("clk: hisilicon: add hi3620_mmc_clks") Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/clk-hi3620.c | 8 +

[PATCH] clk: hisilicon: Fix the memory leak issues

2020-11-06 Thread Dongjiu Geng
When return errors, the clock driver does not unmap the mapped memory, so fix this issue. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/clk-hi3620.c | 8 ++-- drivers/clk/hisilicon/clk.c| 5 - 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/clk

Re: Using fixed LPI number for some Device ID

2020-11-02 Thread Dongjiu Geng
On 2020/10/31 17:55, Marc Zyngier wrote: > Dongjiu, > > On Sat, 31 Oct 2020 02:19:19 +, > Dongjiu Geng wrote: >> >> Hi Marc, >> Sorry to disturb you, Currently the LPI number is not fixed for the >> device. The LPI number is dynamically allocated start f

Re: Using fixed LPI number for some Device ID

2020-11-02 Thread Dongjiu Geng
On 2020/10/31 17:58, Marc Zyngier wrote: > On Sat, 31 Oct 2020 03:10:24 +, > Dongjiu Geng wrote: > > [...] > >> Sorry for the noise, Because Marc rarely uses the ARM email address, >> so I replace to use Marc's kernel.org address instead of ARM emai

Re: Using fixed LPI number for some Device ID

2020-10-30 Thread Dongjiu Geng
On 2020/10/31 10:59, Thomas Gleixner wrote: > On Sat, Oct 31 2020 at 10:19, Dongjiu Geng wrote: >> Hi Marc, >> Sorry to disturb you, Currently the LPI number is not fixed for >> the device. The LPI number is dynamically allocated start from 8092. >> For two OS w

Re: Using fixed LPI number for some Device ID

2020-10-30 Thread Dongjiu Geng
Hi Marc, Sorry to disturb you, Currently the LPI number is not fixed for the device. The LPI number is dynamically allocated start from 8092. For two OS which shares the ITS, One OS needs to configure the device interrupt required by another OS, and the other OS uses a fixed interrupt ID t

Using fixed LPI number for some Device ID

2020-10-30 Thread Dongjiu Geng
Hi Marc, Sorry to disturb you, Currently the LPI number is not fixed for the device. The LPI number is dynamically allocated start from 8092. For two OS which shares the ITS, One OS needs to configure the device interrupt required by another OS, and the other OS uses a fixed interrupt ID to re

Re: Adjust interrupt Priority for ARM64 GIC

2020-09-01 Thread Dongjiu Geng
On 2020/9/1 15:48, Marc Zyngier wrote: > Hi Dongjiu, > > In the future, please use my kernel.org address, as I don't work > for ARM anymore, and would have missed this email if I wasn't pointed > to it. > > On 2020-08-14 18:10, Dongjiu Geng wrote: >> Hi Ma

[PATCH v2] sched: Add trace for task wake up latency and leave running time

2020-08-21 Thread Dongjiu Geng
s/kernel/debug/tracing/events/sched/sched_leave_running_time/filter echo 1 > /sys/kernel/debug/tracing/events/sched/sched_leave_running_time/enable Signed-off-by: Dongjiu Geng --- include/linux/sched.h| 7 include/trace/events/sched.h | 66 +

[PATCH] sched: Add trace for task wake up latency and leave running time

2020-08-21 Thread Dongjiu Geng
ents/sched/sched_leave_running_time/filter echo 1 > /sys/kernel/debug/tracing/events/sched/sched_leave_running_time/enable Signed-off-by: Dongjiu Geng --- include/linux/sched.h| 7 include/trace/events/sched.h | 66 kernel/sched/core.c

Adjust interrupt Priority for ARM64 GIC

2020-08-14 Thread Dongjiu Geng
Hi Marc, In the Linux kernel, we can not adjust the interrupt Priority, For all the interrupts, the interrupt Priority are fixed to 0xa0. In some scenarios, it needs to change the Priority. so I want to upstream a serie patch to support to change the Priority through procfs. do you agree I u

[RFC RESEND PATCH] kvm: arm64: export memory error recovery capability to user space

2018-12-14 Thread Dongjiu Geng
When user space do memory recovery, it will check whether KVM and guest support the error recovery, only when both of them support, user space will do the error recovery. This patch exports this capability of KVM to user space. Cc: Peter Maydell Signed-off-by: Dongjiu Geng --- User space needs

[PATCH RFC] kvm: arm64: export memory error recovery capability to user space

2018-12-13 Thread Dongjiu Geng
When user space do memory recovery, it will check whether KVM and guest support the error recovery, only when both of them support, user space will do the error recovery. This patch exports this capability of KVM to user space. Cc: Peter Maydell Signed-off-by: Dongjiu Geng --- User space needs

[PATCH v3 0/2] rename function name and enable 32bit vcpu events

2018-10-11 Thread Dongjiu Geng
sages. Dongjiu Geng (2): arm/arm64: KVM: rename function kvm_arch_dev_ioctl_check_extension() arm/arm64: KVM: enable 32 bits kvm vcpu events support arch/arm/include/asm/kvm_host.h | 2 +- arch/arm64/include/asm/kvm_host.h | 2 +- arch/arm64/kvm/reset.c| 5 ++--- virt/kvm/arm/

[PATCH v3 1/2] arm/arm64: KVM: rename function kvm_arch_dev_ioctl_check_extension()

2018-10-11 Thread Dongjiu Geng
Rename kvm_arch_dev_ioctl_check_extension() to kvm_arch_vm_ioctl_check_extension(), because it does not have any relationship with device. Renaming this function can make code readable. Cc: James Morse Reviewed-by: Suzuki K Poulose Signed-off-by: Dongjiu Geng --- I remeber James also

[PATCH v3 2/2] arm/arm64: KVM: enable 32 bits kvm vcpu events support

2018-10-11 Thread Dongjiu Geng
ports vcpu events by checking the KVM_CAP_VCPU_EVENTS extension Cc: James Morse Reviewed-by : Suzuki K Poulose Signed-off-by: Dongjiu Geng --- For the 32 bits kvm migration, it needs to enable the vcpu events, this patch will enable it. The user space QEMU patch is here: https://patchwork.ozlabs

[PATCH RESEND v3] arm64: clean the additional checks before calling ghes_notify_sea()

2018-08-10 Thread Dongjiu Geng
In order to remove the additional check before calling the ghes_notify_sea(), make stub definition when !CONFIG_ACPI_APEI_SEA. After this cleanup, we can simply call the ghes_notify_sea() to let APEI driver handle the SEA notification. CC: Tyler Baicar CC: James Morse Signed-off-by: Dongjiu

[PATCH RESEND v2] arm64: clean the additional checks before calling ghes_notify_sea()

2018-08-07 Thread Dongjiu Geng
In order to remove the additional check before calling the ghes_notify_sea(), make stub definition when !CONFIG_ACPI_APEI_SEA. After this cleanup, we can simply call the ghes_notify_sea() to let APEI driver handle the SEA notification. CC: Tyler Baicar CC: James Morse Signed-off-by: Dongjiu

[PATCH] arm64: clean the additional checks before calling ghes_notify_sea()

2018-07-26 Thread Dongjiu Geng
In order to remove the additional check before calling the ghes_notify_sea(), make stub definition when !CONFIG_ACPI_APEI_SEA. Signed-off-by: Dongjiu Geng --- This cleanup is ever mentioned by Mark Rutland in [1] [1]: https://lkml.org/lkml/2018/5/31/289 --- arch/arm64/mm/fault.c | 7

[PATCH] arm64: clean the additional checks before calling ghes_notify_sea()

2018-07-26 Thread Dongjiu Geng
In order to remove the additional check before calling the ghes_notify_sea(), make stub definition when !CONFIG_ACPI_APEI_SEA. Signed-off-by: Dongjiu Geng --- This cleanup is ever mentioned by Mark Rutland in [1] [1]: https://lkml.org/lkml/2018/5/31/289 --- arch/arm64/mm/fault.c | 7

[PATCH v5 1/2] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS

2018-06-25 Thread Dongjiu Geng
, user space can get/set the SError exception state to do migrate/snapshot/suspend. Signed-off-by: Dongjiu Geng --- change since v4: Address Christoffer's comments, thanks Christoffer's review. 1. Change the 'Capebility' to 'Capability' to fix the typo issue 2. Not wra

[PATCH] usb: xhci: remove the code build warning

2018-06-05 Thread Dongjiu Geng
/host/xhci-tegra.c:482:6: note: ‘err’ was declared here Signed-off-by: Dongjiu Geng --- How to reproduce: 1. make defconfig ARCH=arm 2. make -j100 CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm Then you can see below warnings: drivers/usb/host/xhci-tegra.c: In function ‘tegra_xusb_mbox_thread’: driver

[PATCH v1 2/2] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS

2018-05-30 Thread Dongjiu Geng
, user space can get/set the SError exception state to do migrate/snapshot/suspend. Signed-off-by: Dongjiu Geng -- this series patch is separated from https://www.spinics.net/lists/kvm/msg168917.html change since V12: 1. change (vcpu->arch.hcr_el2 & HCR_VSE) to !!(vcpu->arch.hcr_el2 &am

[PATCH v1 0/2] Add NOTIFY_SEI notification type support

2018-05-30 Thread Dongjiu Geng
This series patch is separated from https://www.spinics.net/lists/kvm/msg168917.html 1. CPI 6.1 adds support for NOTIFY_SEI as a GHES notification mechanism, so this patch supports this notification in software Dongjiu Geng (2): ACPI / APEI: Add SEI notification type support for ARMv8

[PATCH v1 2/2] arm64: handle NOTIFY_SEI notification by the APEI driver

2018-05-30 Thread Dongjiu Geng
When kernel or KVM gets the NOTIFY_SEI notification, it firstly calls the APEI driver to handle this notification. Signed-off-by: Dongjiu Geng --- arch/arm64/kernel/traps.c | 15 +++ 1 file changed, 15 insertions(+) --- change since https://www.spinics.net/lists/kvm/msg168919.html

[PATCH v1 1/2] ACPI / APEI: Add SEI notification type support for ARMv8

2018-05-30 Thread Dongjiu Geng
ACPI 6.x adds support for NOTIFY_SEI as a GHES notification mechanism, so add new GHES notification handling functions. Expose API ghes_notify_sei() to arch code, arch code will call this API when it gets this NOTIFY_SEI. Signed-off-by: Dongjiu Geng --- Note: Firmware will follow the SError mask

[PATCH v12 3/4] ACPI / APEI: Add SEI notification type support for ARMv8

2018-05-15 Thread Dongjiu Geng
ACPI 6.x adds support for NOTIFY_SEI as a GHES notification mechanism, so add new GHES notification handling functions. Expose API ghes_notify_sei() to arch code, arch code will call this API when it gets this NOTIFY_SEI. Signed-off-by: Dongjiu Geng Note: Firmware will follow the SError mask

[PATCH v12 1/4] arm64: KVM: export the capability to set guest SError syndrome

2018-05-15 Thread Dongjiu Geng
user space, otherwise returns false. Signed-off-by: Dongjiu Geng Reviewed-by: James Morse Change from V11: 1. Change the commit message 2. Update the Documentation/virtual/kvm/api.tx --- Documentation/virtual/kvm/api.txt | 11 +++ arch/arm64/kvm/reset.c| 3 +++ include

[PATCH v12 4/4] arm64: handle NOTIFY_SEI notification by the APEI driver

2018-05-15 Thread Dongjiu Geng
Add a helper to handle the NOTIFY_SEI notification, when kernel gets the NOTIFY_SEI notification, call this helper and let APEI driver to handle this notification. Signed-off-by: Dongjiu Geng --- arch/arm64/include/asm/system_misc.h | 1 + arch/arm64/kernel/traps.c| 4 arch

[PATCH v12 2/4] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS

2018-05-15 Thread Dongjiu Geng
, user space can get/set the SError exception state to do migrate/snapshot/suspend. Signed-off-by: Dongjiu Geng Change since V11: Address James's comments, thanks James 1. Align the struct of kvm_vcpu_events to 64 bytes 2. Avoid exposing the stale ESR value in the kvm_arm_vcpu_get_events() 3. C

[PATCH v12 0/4] set VSESR_EL2 by user space and support NOTIFY_SEI notification

2018-05-15 Thread Dongjiu Geng
Initialise kvm_vcpu_events to 0 so that padding transferred to user-space doesn't contain kernel stack. Dongjiu Geng (4): arm64: KVM: export the capability to set guest SError syndrome arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS ACPI / APEI: Add SEI notification type supp

[PATCH v11 4/4] arm64: handle NOTIFY_SEI notification by the APEI driver

2018-04-09 Thread Dongjiu Geng
Add a helper to handle the NOTIFY_SEI notification, when kernel gets the NOTIFY_SEI notification, call this helper and let APEI driver to handle this notification. Signed-off-by: Dongjiu Geng --- arch/arm64/include/asm/system_misc.h | 1 + arch/arm64/kernel/traps.c| 4 arch

[PATCH v11 2/4] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS

2018-04-09 Thread Dongjiu Geng
This new IOCTL exports user-invisible states related to SError. Together with appropriate user space changes, it can inject SError with specified syndrome to guest by setup kvm_vcpu_events value. Also it can support live migration. Signed-off-by: Dongjiu Geng Change since V10: Address James&#

[PATCH v11 3/4] ACPI / APEI: Add SEI notification type support for ARMv8

2018-04-09 Thread Dongjiu Geng
ACPI 6.x adds support for NOTIFY_SEI as a GHES notification mechanism, so add new GHES notification handling functions. Expose API ghes_notify_sei() to arch code, arch code will call this API when it gets this NOTIFY_SEI. Signed-off-by: Dongjiu Geng --- drivers/acpi/apei/Kconfig | 15

[PATCH v11 0/4] set VSESR_EL2 by user space and support NOTIFY_SEI notification

2018-04-09 Thread Dongjiu Geng
Make kvm_vcpu_events struct align to 4 bytes 4. Add something check in the kvm_arm_vcpu_set_events() 5. Check kvm_arm_vcpu_get/set_events()'s return value. 6. Initialise kvm_vcpu_events to 0 so that padding transferred to user-space doesn't contain kernel stack. Dongjiu Geng (4): arm64:

[PATCH v11 1/4] arm64: KVM: export the capability to set guest SError syndrome

2018-04-09 Thread Dongjiu Geng
Before user space injects a SError, it needs to know whether it can specify the guest Exception Syndrome, so KVM should tell user space whether it has such capability. Signed-off-by: Dongjiu Geng --- Documentation/virtual/kvm/api.txt | 11 +++ arch/arm64/kvm/reset.c| 3

[PATCH v10 2/5] arm64: KVM: export the capability to set guest SError syndrome

2018-03-03 Thread Dongjiu Geng
Before user space injects a SError, it needs to know whether it can specify the guest Exception Syndrome, so KVM should tell user space whether it has such capability. Signed-off-by: Dongjiu Geng --- Documentation/virtual/kvm/api.txt | 11 +++ arch/arm64/kvm/reset.c| 3

  1   2   3   >