Re: 答复: [PATCH] sunrpc: queue work on system_power_efficient_wq

2016-09-19 Thread Chunyan Zhang
maker > 发送时间: 2016年9月2日 2:46 > 收件人: Chunyan Zhang; trond.mykleb...@primarydata.com; > anna.schuma...@netapp.com; da...@davemloft.net > 抄送: linux-...@vger.kernel.org; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; Ke Wang (王科) > 主题: Re: [PATCH] sunrpc: queue work on syst

Re: [RFC PATCH 2/4] trace: Introduce an output interface from ftrace to STM

2016-06-20 Thread Chunyan Zhang
On Tue, Jun 7, 2016 at 6:04 PM, Alexander Shishkin wrote: > Chunyan Zhang writes: > >> This patch is introducing a new function to print Ftrace messages >> to STM buffer when the traces happen. In order to reduce the >> effect on timing overhead as much as possible, only

[PATCH V2] coresight-stm: support mmapping channel regions with mmio_addr

2016-06-20 Thread Chunyan Zhang
ce' to save the physical base address of channel region which mmap operation needs to know. Signed-off-by: Chunyan Zhang --- drivers/hwtracing/coresight/coresight-stm.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-stm.c

[PATCH V2 0/4] Integration of function trace with System Trace IP blocks

2016-06-21 Thread Chunyan Zhang
m stm/ftrace.c * Added Acked-by from Steven Rostedt on 4/4. Chunyan Zhang (4): trace: Introduce an output interface from ftrace to STM STM Ftrace: Adding generic buffer interface driver trace: duplicate function pointer to STM stm: Mark the functions of writing buffer with notrace dr

[PATCH V2 1/4] trace: Introduce an output interface from ftrace to STM

2016-06-21 Thread Chunyan Zhang
ed by Philippe Langlais at ST-Microelectronics a long time ago[1]. [1] http://thread.gmane.org/gmane.linux.kernel/1114274/focus=1114275 Signed-off-by: Chunyan Zhang --- include/linux/stm.h | 7 +++ include/linux/trace_output_stm.h | 17 + kernel/trace/Mak

[PATCH V2 3/4] trace: duplicate function pointer to STM

2016-06-21 Thread Chunyan Zhang
This patch inserts an output from Ftrace to STM, logs the pointer of the functions and their parents to STM. Signed-off-by: Chunyan Zhang --- kernel/trace/trace.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 8a4bd6b

[PATCH V2 2/4] STM Ftrace: Adding generic buffer interface driver

2016-06-21 Thread Chunyan Zhang
This patch adds a driver that models itself as an stm_source and who's sole purpose is to be an interface to the rest of the kernel. Once the stm and stm_source have been linked via sysfs, everything that is passed to the interface will endup in the STM trace engine. Signed-off-by: Chunyan

[PATCH V2 4/4] stm: Mark the functions of writing buffer with notrace

2016-06-21 Thread Chunyan Zhang
If CONFIG_STM_FTRACE is selected, Function trace data would be writen to STM buffer, all functions that related to writing data packets to STM buffer should be marked 'notrace' to avoid being traced by Ftrace, otherwise the program would stall into an endless loop. Signed-off-by: Chu

[PATCH V6 0/3] Integration of function trace with System Trace IP blocks

2016-09-07 Thread Chunyan Zhang
nlink hooks for stm_ftrace. * Removed useless header file include from stm/ftrace.c * Added Acked-by from Steven Rostedt on 4/4. Chunyan Zhang (3): tracing: add a possibility of exporting function trace to other places instead of ring buffer only stm class: ftrace: Add ftrace-export

[PATCH V6 1/3] tracing: add a possibility of exporting function trace to other places instead of ring buffer only

2016-09-07 Thread Chunyan Zhang
other destination rather than ring buffer only, we just need to register a new trace_export and implement its own .write() function for writing traces to storage. With this patch, only Function trace (trace type is TRACE_FN) is supported. Signed-off-by: Chunyan Zhang --- include/linux/trace.h

[PATCH V6 3/3] stm: Mark the functions of writing buffer with notrace

2016-09-07 Thread Chunyan Zhang
If CONFIG_STM_FTRACE is selected, Function trace data can be writen to sink via STM, all functions that related to writing data packets to STM should be marked 'notrace' to avoid being traced by Ftrace, otherwise the program would stall into an endless loop. Signed-off-by: Chunyan Zhang

[PATCH V6 2/3] stm class: ftrace: Add ftrace-export-over-stm driver

2016-09-07 Thread Chunyan Zhang
it); + +MODULE_LICENSE("GPL v2"); +MODULE_DESCRIPTION("stm_ftrace driver"); +MODULE_AUTHOR("Chunyan Zhang "); -- 2.7.4

[PATCH] arm64: use preempt_disable_notrace in _percpu_read/write

2016-09-08 Thread Chunyan Zhang
mpt_enable/disable_notrace instead in this_cpu_read(). Since Yonghui Yang helped a lot to find the root cause of this problem, so also add his SOB. Signed-off-by: Yonghui Yang Signed-off-by: Chunyan Zhang --- arch/arm64/include/asm/percpu.h | 8 1 file changed, 4 insertions(+), 4 deletion

[PATCH] arm64: use preempt_disable_notrace in _percpu_read/write

2016-09-08 Thread Chunyan Zhang
mpt_enable/disable_notrace instead in this_cpu_read(). Since Yonghui Yang helped a lot to find the root cause of this problem, so also add his SOB. Signed-off-by: Yonghui Yang Signed-off-by: Chunyan Zhang --- arch/arm64/include/asm/percpu.h | 8 1 file changed, 4 insertions(+), 4 deletion

Re: [PATCH V6 0/3] Integration of function trace with System Trace IP blocks

2016-09-08 Thread Chunyan Zhang
Hi Balbi, On 8 September 2016 at 20:07, Felipe Balbi wrote: > > Hi, > > Chunyan Zhang writes: >> IP blocks allowing a variety of trace sources to log debugging >> information to a pre-defined area have been introduced on a couple of >> architecture [1][2]. These s

Re: [PATCH] arm64: use preempt_disable_notrace in _percpu_read/write

2016-09-08 Thread Chunyan Zhang
s, > Mark. > > On Thu, Sep 08, 2016 at 08:46:42PM +0800, Chunyan Zhang wrote: >> When debug preempt or preempt tracer is enabled, preempt_count_add/sub() >> can be traced by function and function graph tracing, and >> preempt_disable/enable() would call preempt_cou

[PATCH] coresight: stm: return error code instead of zero in .packet() to avoid dead loop

2016-09-09 Thread Chunyan Zhang
, STM framework driver will stall into a dead loop. Returning -EACCES (Permission denied) in .packet() if the device is disabled makes more sense, and this is the same for returning -EINVAL if the channel passed into is not supported. Signed-off-by: Chunyan Zhang --- drivers/hwtracing/core

Re: [PATCHV5 1/3] tracing: add a possibility of exporting function trace to other places instead of ring buffer only

2016-08-30 Thread Chunyan Zhang
On 30 August 2016 at 22:30, Steven Rostedt wrote: > On Tue, 30 Aug 2016 16:07:28 +0800 > Chunyan Zhang wrote: > >> Currently Function traces can be only exported to ring buffer, this >> patch added trace_export concept which can process traces and export >> them to a r

[PATCH] sunrpc: queue work on system_power_efficient_wq

2016-09-01 Thread Chunyan Zhang
From: Ke Wang sunrpc uses workqueue to clean cache regulary. There is no real dependency of executing work on the cpu which queueing it. On a idle system, especially for a heterogeneous systems like big.LITTLE, it is observed that the big idle cpu was woke up many times just to service this work

[PATCH V3 1/3] tracing: add a possibility of exporting function trace to other places instead of ring buffer only

2016-08-08 Thread Chunyan Zhang
ACE_FN) is supported. Signed-off-by: Chunyan Zhang --- include/linux/trace.h | 31 + kernel/trace/trace.c | 124 +- kernel/trace/trace.h | 31 + 3 files changed, 185 insertions(+), 1 deletion(-) create mode 100644 include/lin

[PATCH V3 0/3] Integration of function trace with System Trace IP blocks

2016-08-08 Thread Chunyan Zhang
stm_ftrace. * Removed useless header file include from stm/ftrace.c * Added Acked-by from Steven Rostedt on 4/4. Chunyan Zhang (3): tracing: add a possibility of exporting function trace to other places instead of ring buffer only stm class: ftrace: Add ftrace-export-over-stm driver stm

[PATCH V3 3/3] stm: Mark the functions of writing buffer with notrace

2016-08-08 Thread Chunyan Zhang
If CONFIG_STM_FTRACE is selected, Function trace data can be writen to sink via STM, all functions that related to writing data packets to STM should be marked 'notrace' to avoid being traced by Ftrace, otherwise the program would stall into an endless loop. Signed-off-by: Chunyan Zhang

[PATCH V3 2/3] stm class: ftrace: Add ftrace-export-over-stm driver

2016-08-08 Thread Chunyan Zhang
This patch adds a driver that models itself as an stm_source and registers itself as a trace_export. Once the stm and stm_source have been linked via sysfs, everything that is passed to the interface from Ftrace subsystem will endup in the STM trace engine. Signed-off-by: Chunyan Zhang

Re: [PATCH V3 0/3] Integration of function trace with System Trace IP blocks

2016-08-08 Thread Chunyan Zhang
Removing maxime.coque...@st.com since it seems an unreachable address On Tue, Aug 9, 2016 at 2:32 PM, Chunyan Zhang wrote: > IP blocks allowing a variety of trace sources to log debugging > information to a pre-defined area have been introduced on a couple of > architecture [1][2]. The

Re: [PATCH V3 1/3] tracing: add a possibility of exporting function trace to other places instead of ring buffer only

2016-08-08 Thread Chunyan Zhang
Removing maxime.coque...@st.com since it seems an unreachable address On Tue, Aug 9, 2016 at 2:32 PM, Chunyan Zhang wrote: > Currently ring buffer is the only output of Function traces, this patch > added trace_export concept which would process the traces and export > traces to a r

Re: [PATCH V3 2/3] stm class: ftrace: Add ftrace-export-over-stm driver

2016-08-09 Thread Chunyan Zhang
Removing maxime.coque...@st.com since it seems an unreachable address On Tue, Aug 9, 2016 at 2:32 PM, Chunyan Zhang wrote: > This patch adds a driver that models itself as an stm_source and > registers itself as a trace_export. Once the stm and stm_source > have been linked

Re: [PATCH V1 0/9] add clock driver for Spreadtrum platforms

2017-06-22 Thread Chunyan Zhang
Hi Stephen, On 20 June 2017 at 09:25, Stephen Boyd wrote: > On 06/18, Chunyan Zhang wrote: >> In the last cycle, the patches support Whale2 sc9860 mobile chip have been >> merged. This patchset adds clock driver which is used on almost all >> Spreadtrum SoCs. >&

Re: [PATCH V1 2/9] clk: sprd: Add common infrastructure

2017-06-22 Thread Chunyan Zhang
On 20 June 2017 at 09:29, Stephen Boyd wrote: > On 06/18, Chunyan Zhang wrote: >> Added Spreadtrum's clock driver common structure and registration code. >> >> Signed-off-by: Chunyan Zhang >> --- >> drivers/clk/Makefile | 1 + >> drivers/c

Re: [PATCH V1 3/9] clk: sprd: add gate clock support

2017-06-22 Thread Chunyan Zhang
On 20 June 2017 at 09:31, Stephen Boyd wrote: > On 06/18, Chunyan Zhang wrote: >> diff --git a/drivers/clk/sprd/Makefile b/drivers/clk/sprd/Makefile >> index 8f802b2..333e2b2 100644 >> --- a/drivers/clk/sprd/Makefile >> +++ b/drivers/clk/sprd/Makefile >> @@ -1

Re: [PATCH V1 7/9] clk: sprd: add adjustable pll support

2017-06-22 Thread Chunyan Zhang
On 20 June 2017 at 09:37, Stephen Boyd wrote: > On 06/18, Chunyan Zhang wrote: >> diff --git a/drivers/clk/sprd/Makefile b/drivers/clk/sprd/Makefile >> index 83232e5..c593a93 100644 >> --- a/drivers/clk/sprd/Makefile >> +++ b/drivers/clk/sprd/Makefile >> @@ -1

Re: [PATCH V1 8/9] clk: sprd: add clocks support for SC9860

2017-06-22 Thread Chunyan Zhang
Hi Stephen, On 20 June 2017 at 09:41, Stephen Boyd wrote: > On 06/18, Chunyan Zhang wrote: >> diff --git a/drivers/clk/sprd/Makefile b/drivers/clk/sprd/Makefile >> index c593a93..0d90b40 100644 >> --- a/drivers/clk/sprd/Makefile >> +++ b/drivers/clk/sprd/Makefile &

Re: [PATCH V1 9/9] arm64: dts: add ccu for SC9860

2017-06-22 Thread Chunyan Zhang
Hi Stephen, On 20 June 2017 at 09:24, Stephen Boyd wrote: > On 06/18, Chunyan Zhang wrote: >> diff --git a/arch/arm64/boot/dts/sprd/sc9860-ccu.dtsi >> b/arch/arm64/boot/dts/sprd/sc9860-ccu.dtsi >> new file mode 100644 >> index 000..e15bf2d >> --- /dev/null

Re: [PATCH V1 7/9] clk: sprd: add adjustable pll support

2017-06-22 Thread Chunyan Zhang
Hi Arnd, On 22 June 2017 at 19:15, Arnd Bergmann wrote: > On Thu, Jun 22, 2017 at 12:17 PM, Chunyan Zhang wrote: >> On 20 June 2017 at 09:37, Stephen Boyd wrote: >>> On 06/18, Chunyan Zhang wrote: > >>>> + kint = DIV_ROUND_CLOSEST(((fvco -

[PATCH V3 00/11] add clock driver for Spreadtrum platforms

2017-11-02 Thread Chunyan Zhang
Move the fixed clocks out from the soc node. - Switch to use 64-bit math in pll driver instead of 32-bit math. * Revise binding documentation according to dt modification. * Rename sc9860.c to sc9860-clk.c Chunyan Zhang (11): drivers: move clock common macros out from vendor directories d

[PATCH V3 01/11] drivers: move clock common macros out from vendor directories

2017-11-02 Thread Chunyan Zhang
These macros are used by more than one SoC vendor platforms, avoid to have many copies of these code, this patch moves them to the common clock directory which every clock drivers can access to. Signed-off-by: Chunyan Zhang --- drivers/clk/clk_common.h | 60

[PATCH V3 04/11] clk: sprd: add gate clock support

2017-11-02 Thread Chunyan Zhang
Some clocks on the Spreadtrum's SoCs are just simple gates. Add support for those clocks. Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/Makefile | 1 + drivers/clk/sprd/gate.c | 106 ++ drivers/clk/sprd/gate.h

[PATCH V3 02/11] dt-bindings: Add Spreadtrum clock binding documentation

2017-11-02 Thread Chunyan Zhang
Introduce a new binding with its documentation for Spreadtrum clock sub-framework. Signed-off-by: Chunyan Zhang --- Documentation/devicetree/bindings/clock/sprd.txt | 55 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock

[PATCH V3 06/11] clk: sprd: add divider clock support

2017-11-02 Thread Chunyan Zhang
This is a feature that can also be found in sprd composite clocks, provide a bunch of helpers that can be reused later on. Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/Makefile | 1 + drivers/clk/sprd/div.c| 100 ++ drivers/clk/sprd/div.h

[PATCH V3 08/11] clk: sprd: add adjustable pll support

2017-11-02 Thread Chunyan Zhang
Introduced a common adjustable pll clock driver for Spreadtrum SoCs. Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/Makefile | 1 + drivers/clk/sprd/pll.c| 268 ++ drivers/clk/sprd/pll.h| 110 +++ 3 files changed, 379

[PATCH V3 09/11] clk: sprd: add clocks support for SC9860

2017-11-02 Thread Chunyan Zhang
This patch added the list of clocks for Spreadtrum's SC9860 SoC, together with clock initialization code. Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/Kconfig| 10 + drivers/clk/sprd/Makefile |3 + drivers/clk/sprd/sc9860-

[PATCH V3 11/11] arm64: dts: add clocks for SC9860

2017-11-02 Thread Chunyan Zhang
Some clocks on SC9860 are in the same address area with syscon devices, those are what have a property of 'sprd,syscon' which would refer to syscon devices, others would have a reg property indicated their address ranges. Signed-off-by: Chunyan Zhang --- arch/arm64/boot/dts/sprd/s

[PATCH V3 10/11] arm64: dts: add syscon for whale2 platform

2017-11-02 Thread Chunyan Zhang
Some clocks on the SoC of Whale2 families (e.g. SC9860) are in the same address area with syscon devices, the proper syscon node will be quoted under the definitions of those clocks in DT. Signed-off-by: Chunyan Zhang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 46

[PATCH V3 07/11] clk: sprd: add composite clock support

2017-11-02 Thread Chunyan Zhang
This patch introduced composite driver for Spreadtrum's SoCs. The functions of this composite clock simply consist of divider and mux clocks. Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/Makefile| 1 + drivers/clk/sprd/composite.c

[PATCH V3 05/11] clk: sprd: add mux clock support

2017-11-02 Thread Chunyan Zhang
This patch adds clock multiplexor support for Spreadtrum platforms, the mux clocks also can be found in sprd composite clocks, so provides two helpers that can be reused later on. Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/Makefile | 1 + drivers/clk/sprd/mux.c| 89

[PATCH V3 03/11] clk: sprd: Add common infrastructure

2017-11-02 Thread Chunyan Zhang
Added Spreadtrum's clock driver framework together with common structures and interface functions. Signed-off-by: Chunyan Zhang --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/sprd/Kconfig | 4 ++ drivers/clk/sprd/Makefile | 3 ++ drivers/clk

Re: [PATCH V3 05/11] clk: sprd: add mux clock support

2017-11-03 Thread Chunyan Zhang
On 3 November 2017 at 02:22, Julien Thierry wrote: > > > On 02/11/17 18:11, Julien Thierry wrote: >> >> Hi, >> >> On 02/11/17 06:56, Chunyan Zhang wrote: >>> >>> This patch adds clock multiplexor support for Spreadtrum platforms, >>> t

Re: [PATCH V3 04/11] clk: sprd: add gate clock support

2017-11-03 Thread Chunyan Zhang
Hi Julien, On 3 November 2017 at 01:45, Julien Thierry wrote: > Hi, > > > On 02/11/17 06:56, Chunyan Zhang wrote: >> >> Some clocks on the Spreadtrum's SoCs are just simple gates. Add >> support for those clocks. >> >> Signed-off-by: Chunyan Zha

Re: [PATCH V3 05/11] clk: sprd: add mux clock support

2017-11-03 Thread Chunyan Zhang
Hi Julien, On 3 November 2017 at 02:11, Julien Thierry wrote: > Hi, > > > On 02/11/17 06:56, Chunyan Zhang wrote: >> >> This patch adds clock multiplexor support for Spreadtrum platforms, >> the mux clocks also can be found in sprd composite clocks, so >> pro

[PATCH v2] Coresight: ETMv4: Prevent TRCRSCTLR0&1 from being accessed

2015-08-27 Thread Chunyan Zhang
1 indicates two pairs, and so on ... So, the total number of resource selection control registers which we can access is (TRCIDR4.NUMRSPAIR * 2) Signed-off-by: Chunyan Zhang --- drivers/hwtracing/coresight/coresight-etm4x.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-

Re: [PATCH] selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned

2015-10-14 Thread Chunyan Zhang
Hello Shuah, Can this patch be allowed to merge into next realse? Thanks, Chunyan On Thu, Oct 1, 2015 at 3:33 PM, Chunyan Zhang wrote: > There is a mandate of 16-byte aligned stack on AArch64 [1], so the > STACK_SIZE here should also be 16-byte aligned, otherwise we would > get an e

[PATCH] selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned

2015-10-01 Thread Chunyan Zhang
There is a mandate of 16-byte aligned stack on AArch64 [1], so the STACK_SIZE here should also be 16-byte aligned, otherwise we would get an error when calling clone(). [1] http://lxr.free-electrons.com/source/arch/arm64/kernel/process.c#L265 Signed-off-by: Chunyan Zhang --- tools/testing

Re: [PATCH V4 4/7] mmc: sdhci: add 32-bit block count support for v4 mode

2018-08-06 Thread Chunyan Zhang
Hi Adrian, On 30 July 2018 at 21:05, Adrian Hunter wrote: > On 24/07/18 05:51, Chunyan Zhang wrote: >> Host Controller Version 4.10 re-defines SDMA System Address register >> as 32-bit Block Count for v4 mode, and SDMA uses ADMA System >> Address register (05Fh-058h)

Re: [PATCH V2 1/7] mmc: sdhci: add sd host v4 mode

2018-06-21 Thread Chunyan Zhang
On 21 June 2018 at 18:49, Adrian Hunter wrote: > On 15/06/18 05:04, Chunyan Zhang wrote: >> For SD host controller version 4.00 or later ones, there're two >> modes of implementation - Version 3.00 compatible mode or >> Version 4 mode. This patch introduces a flag to

Re: [PATCH V6 5/9] mmc: sdhci: Add 32-bit block count support for v4 mode

2018-08-27 Thread Chunyan Zhang
On 27 August 2018 at 15:07, Adrian Hunter wrote: > On 24/08/18 12:20, Chunyan Zhang wrote: >> Host Controller Version 4.10 re-defines SDMA System Address register >> as 32-bit Block Count for v4 mode, and SDMA uses ADMA System >> Address register (05Fh-058h) instead if v4

Re: [PATCH V5 06/10] mmc: sdhci: Disable auto-CMD23 if stuff bits is set in CMD23 argument

2018-08-27 Thread Chunyan Zhang
On 27 August 2018 at 18:07, Ulf Hansson wrote: > On 23 August 2018 at 14:50, Adrian Hunter wrote: >> On 16/08/18 10:54, Chunyan Zhang wrote: >>> For version 4.10 and aboves, SDHCI_ARGUMENT2 is also uses to indicate >>> 32-bit number of blocks, it doesn't s

[PATCH V7 0/9] mmc: add support for sdhci 4.0

2018-08-29 Thread Chunyan Zhang
rg/lkml/2018/8/24/205 v5: https://lkml.org/lkml/2018/8/16/122 v4: https://lkml.org/lkml/2018/7/23/269 v3: https://lkml.org/lkml/2018/7/8/239 v2: https://lkml.org/lkml/2018/6/14/936 v1: https://lkml.org/lkml/2018/6/8/108 Chunyan Zhang (9): mmc: sdhci: Add version V4 definition mmc: sdhci: Add sd host v4

[PATCH V7 1/9] mmc: sdhci: Add version V4 definition

2018-08-29 Thread Chunyan Zhang
Added definitions for v400, v410, v420. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 2 +- drivers/mmc/host/sdhci.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 97e4efa..01bf88c 100644 --- a

[PATCH V7 3/9] mmc: sdhci: Change SDMA address register for v4 mode

2018-08-29 Thread Chunyan Zhang
According to the SD host controller specification version 4.10, when Host Version 4 is enabled, SDMA uses ADMA System Address register (05Fh-058h) instead of using SDMA System Address register to support both 32-bit and 64-bit addressing. Signed-off-by: Chunyan Zhang --- drivers/mmc/host

[PATCH V7 2/9] mmc: sdhci: Add sd host v4 mode

2018-08-29 Thread Chunyan Zhang
For SD host controller version 4.00 or later ones, there're two modes of implementation - Version 3.00 compatible mode or Version 4 mode. This patch introduced an interface to enable v4 mode. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 29 + dr

[PATCH V7 9/9] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller

2018-08-29 Thread Chunyan Zhang
From: Chunyan Zhang This patch adds the device-tree binding documentation for Spreadtrum SDHCI driver. Signed-off-by: Chunyan Zhang --- .../devicetree/bindings/mmc/sdhci-sprd.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree

[PATCH V7 7/9] mmc: sdhci: SDMA may use Auto-CMD23 in v4 mode

2018-08-29 Thread Chunyan Zhang
. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 62d843ac90..ac92e0f 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3834,10

[PATCH V7 4/9] mmc: sdhci: Add ADMA2 64-bit addressing support for V4 mode

2018-08-29 Thread Chunyan Zhang
via Host Control 2 register. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 92 +++- drivers/mmc/host/sdhci.h | 12 +-- 2 files changed, 78 insertions(+), 26 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c

[PATCH V7 6/9] mmc: sdhci: Add Auto CMD Auto Select support

2018-08-29 Thread Chunyan Zhang
23 is used and if CMD23 Enable =0, Auto CMD12 is used. In case of Version 4.10 or later, use of Auto CMD Auto Select is recommended rather than use of Auto CMD12 Enable or Auto CMD23 Enable. This patch add this new mode support. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sd

[PATCH V7 8/9] mmc: sdhci-sprd: Add Spreadtrum's initial host controller

2018-08-29 Thread Chunyan Zhang
From: Chunyan Zhang This patch adds the initial support of Secure Digital Host Controller Interface compliant controller found in some latest Spreadtrum chipsets. This patch has been tested on the version of SPRD-R11 controller. R11 is a variant based on SD v4.0 specification. With this driver

[PATCH V7 5/9] mmc: sdhci: Add 32-bit block count support for v4 mode

2018-08-29 Thread Chunyan Zhang
Block Count would cause problems for auto-cmd23, it can be chosen via host->quirk2. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 14 +- drivers/mmc/host/sdhci.h | 8 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.

Re: [PATCH V7 7/9] mmc: sdhci: SDMA may use Auto-CMD23 in v4 mode

2018-08-29 Thread Chunyan Zhang
On 29 August 2018 at 18:59, Adrian Hunter wrote: > On 29/08/18 10:03, Chunyan Zhang wrote: >> When Host Version 4 Enable is set to 1, SDMA uses ADMA System Address >> register (05Fh-058h) instead of using register (000h-004h) to indicate >> its system address of data locatio

Re: [PATCH V7 7/9] mmc: sdhci: SDMA may use Auto-CMD23 in v4 mode

2018-08-30 Thread Chunyan Zhang
On 30 August 2018 at 13:59, Adrian Hunter wrote: > On 29/08/18 14:39, Chunyan Zhang wrote: >> On 29 August 2018 at 18:59, Adrian Hunter wrote: >>> On 29/08/18 10:03, Chunyan Zhang wrote: >>>> When Host Version 4 Enable is set to 1, SDMA uses ADMA System Address >

[PATCH V8 3/9] mmc: sdhci: Change SDMA address register for v4 mode

2018-08-30 Thread Chunyan Zhang
According to the SD host controller specification version 4.10, when Host Version 4 is enabled, SDMA uses ADMA System Address register (05Fh-058h) instead of using SDMA System Address register to support both 32-bit and 64-bit addressing. Signed-off-by: Chunyan Zhang Acked-by: Adrian Hunter

[PATCH V8 2/9] mmc: sdhci: Add sd host v4 mode

2018-08-30 Thread Chunyan Zhang
For SD host controller version 4.00 or later ones, there're two modes of implementation - Version 3.00 compatible mode or Version 4 mode. This patch introduced an interface to enable v4 mode. Signed-off-by: Chunyan Zhang Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci.c

[PATCH V8 5/9] mmc: sdhci: Add 32-bit block count support for v4 mode

2018-08-30 Thread Chunyan Zhang
Block Count would cause problems for auto-cmd23, it can be chosen via host->quirk2. Signed-off-by: Chunyan Zhang Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci.c | 14 +- drivers/mmc/host/sdhci.h | 8 2 files changed, 21 insertions(+), 1 deletion(-) diff --gi

[PATCH V8 6/9] mmc: sdhci: Add Auto CMD Auto Select support

2018-08-30 Thread Chunyan Zhang
23 is used and if CMD23 Enable =0, Auto CMD12 is used. In case of Version 4.10 or later, use of Auto CMD Auto Select is recommended rather than use of Auto CMD12 Enable or Auto CMD23 Enable. This patch add this new mode support. Signed-off-by: Chunyan Zhang Acked-by: Adrian Hunter --- driver

[PATCH V8 9/9] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller

2018-08-30 Thread Chunyan Zhang
From: Chunyan Zhang This patch adds the device-tree binding documentation for Spreadtrum SDHCI driver. Signed-off-by: Chunyan Zhang --- .../devicetree/bindings/mmc/sdhci-sprd.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree

[PATCH V8 7/9] mmc: sdhci: SDMA may use Auto-CMD23 in v4 mode

2018-08-30 Thread Chunyan Zhang
. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 62d843ac90..606d331 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3834,10

[PATCH V8 1/9] mmc: sdhci: Add version V4 definition

2018-08-30 Thread Chunyan Zhang
Added definitions for v400, v410, v420. Signed-off-by: Chunyan Zhang Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci.c | 2 +- drivers/mmc/host/sdhci.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 97e4efa

[PATCH V8 8/9] mmc: sdhci-sprd: Add Spreadtrum's initial host controller

2018-08-30 Thread Chunyan Zhang
From: Chunyan Zhang This patch adds the initial support of Secure Digital Host Controller Interface compliant controller found in some latest Spreadtrum chipsets. This patch has been tested on the version of SPRD-R11 controller. R11 is a variant based on SD v4.0 specification. With this driver

[PATCH V8 0/9] mmc: add support for sdhci 4.0

2018-08-30 Thread Chunyan Zhang
6/14/936 v1: https://lkml.org/lkml/2018/6/8/108 Chunyan Zhang (9): mmc: sdhci: Add version V4 definition mmc: sdhci: Add sd host v4 mode mmc: sdhci: Change SDMA address register for v4 mode mmc: sdhci: Add ADMA2 64-bit addressing support for V4 mode mmc: sdhci: Add 32-bit block count support

[PATCH V8 4/9] mmc: sdhci: Add ADMA2 64-bit addressing support for V4 mode

2018-08-30 Thread Chunyan Zhang
via Host Control 2 register. Signed-off-by: Chunyan Zhang Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci.c | 92 +++- drivers/mmc/host/sdhci.h | 12 +-- 2 files changed, 78 insertions(+), 26 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b

Re: [PATCH V7 7/9] mmc: sdhci: SDMA may use Auto-CMD23 in v4 mode

2018-08-30 Thread Chunyan Zhang
On 30 August 2018 at 15:51, Adrian Hunter wrote: > On 30/08/18 10:04, Chunyan Zhang wrote: >> On 30 August 2018 at 13:59, Adrian Hunter wrote: >>> On 29/08/18 14:39, Chunyan Zhang wrote: >>>> On 29 August 2018 at 18:59, Adrian Hunter wrote: >>>&g

Re: [PATCH V5 07/10] mmc: sdhci: Add Auto CMD Auto Select support

2018-08-23 Thread Chunyan Zhang
On 23 August 2018 at 20:55, Adrian Hunter wrote: > On 16/08/18 10:54, Chunyan Zhang wrote: >> As SD Host Controller Specification v4.10 documents: >> Host Controller Version 4.10 defines this "Auto CMD Auto Select" mode. >> Selection of Auto CMD depends on sett

[PATCH V6 0/9] mmc: add support for sdhci 4.0

2018-08-24 Thread Chunyan Zhang
iver; - Added sdhci_sprd_request() function to hook to mmc_host_ops.request. Previous patch series: v5: https://lkml.org/lkml/2018/8/16/122 v4: https://lkml.org/lkml/2018/7/23/269 v3: https://lkml.org/lkml/2018/7/8/239 v2: https://lkml.org/lkml/2018/6/14/936 v1: https://lkml.org/lkml/2018/6/8/108 Chunyan Zha

[PATCH V6 1/9] mmc: sdhci: Add version V4 definition

2018-08-24 Thread Chunyan Zhang
Added definitions for v400, v410, v420. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 2 +- drivers/mmc/host/sdhci.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 8793340..f70135c 100644 --- a

[PATCH V6 2/9] mmc: sdhci: Add sd host v4 mode

2018-08-24 Thread Chunyan Zhang
For SD host controller version 4.00 or later ones, there're two modes of implementation - Version 3.00 compatible mode or Version 4 mode. This patch introduced an interface to enable v4 mode. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 29 + dr

[PATCH V6 4/9] mmc: sdhci: Add ADMA2 64-bit addressing support for V4 mode

2018-08-24 Thread Chunyan Zhang
via Host Control 2 register. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 92 +++- drivers/mmc/host/sdhci.h | 12 +-- 2 files changed, 78 insertions(+), 26 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c

[PATCH V6 6/9] mmc: sdhci: Add Auto CMD Auto Select support

2018-08-24 Thread Chunyan Zhang
23 is used and if CMD23 Enable =0, Auto CMD12 is used. In case of Version 4.10 or later, use of Auto CMD Auto Select is recommended rather than use of Auto CMD12 Enable or Auto CMD23 Enable. This patch add this new mode support. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sd

[PATCH V6 5/9] mmc: sdhci: Add 32-bit block count support for v4 mode

2018-08-24 Thread Chunyan Zhang
Block Count would cause problems for auto-cmd23, it can be chosen via host->quirk2. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 15 ++- drivers/mmc/host/sdhci.h | 3 +++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/driv

[PATCH V6 3/9] mmc: sdhci: Change SDMA address register for v4 mode

2018-08-24 Thread Chunyan Zhang
According to the SD host controller specification version 4.10, when Host Version 4 is enabled, SDMA uses ADMA System Address register (05Fh-058h) instead of using SDMA System Address register to support both 32-bit and 64-bit addressing. Signed-off-by: Chunyan Zhang --- drivers/mmc/host

[PATCH V6 9/9] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller

2018-08-24 Thread Chunyan Zhang
From: Chunyan Zhang This patch adds the device-tree binding documentation for Spreadtrum SDHCI driver. Signed-off-by: Chunyan Zhang --- .../devicetree/bindings/mmc/sdhci-sprd.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree

[PATCH V6 7/9] mmc: sdhci: SDMA may use Auto-CMD23 in v4 mode

2018-08-24 Thread Chunyan Zhang
. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 7e01601..1cb55f2 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3828,10

[PATCH V6 8/9] mmc: sdhci-sprd: Add Spreadtrum's initial host controller

2018-08-24 Thread Chunyan Zhang
From: Chunyan Zhang This patch adds the initial support of Secure Digital Host Controller Interface compliant controller found in some latest Spreadtrum chipsets. This patch has been tested on the version of SPRD-R11 controller. R11 is a variant based on SD v4.0 specification. With this driver

Re: [PATCH V3 5/7] mmc: sdhci: add Auto CMD Auto Select support

2018-07-23 Thread Chunyan Zhang
On 17 July 2018 at 19:16, Adrian Hunter wrote: > On 09/07/18 06:19, Chunyan Zhang wrote: >> As SD Host Controller Specification v4.10 documents: >> Host Controller Version 4.10 defines this "Auto CMD Auto Select" mode. >> Selection of Auto CMD depends on sett

Re: [PATCH V3 4/7] mmc: sdhci: add 32-bit block count support for v4 mode

2018-07-23 Thread Chunyan Zhang
On 17 July 2018 at 16:29, Adrian Hunter wrote: > On 09/07/18 06:19, Chunyan Zhang wrote: >> When Host Version 4 is enabled, SDMA System Address register is >> re-defined as 32-bit Block Count, and SDMA uses ADMA System >> Address register (05Fh-058h) instead. >> >

Re: [PATCH V4 5/7] mmc: sdhci: add Auto CMD Auto Select support

2018-07-31 Thread Chunyan Zhang
Hi Adrian, On 30 July 2018 at 21:06, Adrian Hunter wrote: > On 23/07/18 13:08, Chunyan Zhang wrote: >> As SD Host Controller Specification v4.10 documents: >> Host Controller Version 4.10 defines this "Auto CMD Auto Select" mode. >> Selection of Auto CMD depends on

Re: [PATCH V4 5/7] mmc: sdhci: add Auto CMD Auto Select support

2018-07-31 Thread Chunyan Zhang
On 31 July 2018 at 16:05, Adrian Hunter wrote: > On 31/07/18 10:04, Chunyan Zhang wrote: >> Hi Adrian, >> >> On 30 July 2018 at 21:06, Adrian Hunter wrote: >>> On 23/07/18 13:08, Chunyan Zhang wrote: >>>> As SD Host Controller Specification v4.10 do

Re: [PATCH V4 5/7] mmc: sdhci: add Auto CMD Auto Select support

2018-07-31 Thread Chunyan Zhang
On 31 July 2018 at 16:56, Adrian Hunter wrote: > On 31/07/18 11:36, Chunyan Zhang wrote: >> On 31 July 2018 at 16:05, Adrian Hunter wrote: >>> On 31/07/18 10:04, Chunyan Zhang wrote: >>>> Hi Adrian, >>>> >>>> On 30 July 2018 at 21:06, Adrian

Re: [PATCH V4 5/7] mmc: sdhci: add Auto CMD Auto Select support

2018-07-31 Thread Chunyan Zhang
On 31 July 2018 at 16:56, Adrian Hunter wrote: > On 31/07/18 11:36, Chunyan Zhang wrote: >> On 31 July 2018 at 16:05, Adrian Hunter wrote: >>> On 31/07/18 10:04, Chunyan Zhang wrote: >>>> Hi Adrian, >>>> >>>> On 30 July 2018 at 21:06, Adrian

Re: [PATCH V4 5/7] mmc: sdhci: add Auto CMD Auto Select support

2018-08-01 Thread Chunyan Zhang
On 31 July 2018 at 17:36, Adrian Hunter wrote: > On 31/07/18 12:20, Chunyan Zhang wrote: >> On 31 July 2018 at 16:56, Adrian Hunter wrote: >>> On 31/07/18 11:36, Chunyan Zhang wrote: >>>> On 31 July 2018 at 16:05, Adrian Hunter wrote: >>>>> On 3

[PATCH V4 0/7] mmc: add support for sdhci 4.0

2018-07-23 Thread Chunyan Zhang
sdio clock; - Removed unuseful print; - Removed two functions which are not used; - Add back the missing pm_runtime_put_autosuspend() after adding sdhci host. * Changed Spreadtrum sdhci driver name to sdhci-sprd. Chunyan Zhang (7): mmc: sdhci: add sd host v4 mode mmc: sdhci: Change SDMA ad

[PATCH V4 2/7] mmc: sdhci: Change SDMA address register for v4 mode

2018-07-23 Thread Chunyan Zhang
According to the SD host controller specification version 4.10, when Host Version 4 is enabled, SDMA uses ADMA System Address register (05Fh-058h) instead of using SDMA System Address register to support both 32-bit and 64-bit addressing. Signed-off-by: Chunyan Zhang --- drivers/mmc/host

[PATCH V4 3/7] mmc: sdhci: add ADMA2 64-bit addressing support for V4 mode

2018-07-23 Thread Chunyan Zhang
via Host Control 2 register. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 90 ++-- drivers/mmc/host/sdhci.h | 15 ++-- 2 files changed, 78 insertions(+), 27 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c

[PATCH V4 1/7] mmc: sdhci: add sd host v4 mode

2018-07-23 Thread Chunyan Zhang
For SD host controller version 4.00 or later ones, there're two modes of implementation - Version 3.00 compatible mode or Version 4 mode. This patch introduced an interface to enable v4 mode. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 28 dr

  1   2   3   4   5   6   7   8   9   >