[PATCHv3 5/6] dw_dmac: change dev_crit to dev_WARN in dwc_handle_error

2012-10-18 Thread Andy Shevchenko
In case of handling a bad descriptor the dwc_handle_error() will dump a stack as well. It's a lot more verbose and more likely to get user's attention. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c |6 +++--- 1 file changed, 3 insertions(+), 3

[PATCHv3 2/6] dmaengine: dw_dmac: amend description and indentation

2012-10-18 Thread Andy Shevchenko
heikki.kroge...@linux.intel.com Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/dma/dw_dmac.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index c4b0eb3

[PATCHv3 6/6] dw_dmac: introduce to_dw_desc() macro

2012-10-18 Thread Andy Shevchenko
The to_dw_desc() macro helps to retrieve the dw_desc node from the corresponding list_head structure. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c |6 ++ drivers/dma/dw_dmac_regs.h |2 ++ 2 files changed, 4 insertions(+), 4 deletions

[PATCHv3 3/6] dw_dmac: change dev_printk() to corresponding macros

2012-10-18 Thread Andy Shevchenko
Change printk(KERN_INFO ..., dev_name(...), ...) to dev_info() as well. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c

[PATCHv3 0/6] dw_dmac: few cleanups to the driver

2012-10-18 Thread Andy Shevchenko
There are few cleanups to the driver which partialy acked and reviewed. Since v2: - add one more clean up (patch 6/6) - make a separate patch to WARN a user in dwc_handle_error (suggested by Felipe Balbi) - add a description to patch 4/6 Andy Shevchenko (4): dw_dmac: change dev_printk

[PATCHv3 1/6] dmaengine: dw_dmac: remove CLK dependency

2012-10-18 Thread Andy Shevchenko
From: Heikki Krogerus heikki.kroge...@linux.intel.com This driver could be used on different platforms. Thus, the HAVE_CLK dependency is dropped away. Signed-off-by: Heikki Krogerus heikki.kroge...@linux.intel.com Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Reviewed

[PATCH 2/3] dw_dmac: use 'u32' for LLI structure members, not dma_addr_t

2012-07-13 Thread Andy Shevchenko
Use 'u32' for the LLI structure members, which are defined by hardware to be 32-bit. dma_addr_t is much more vague about its actual size. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c |7 ++- drivers/dma/dw_dmac_regs.h |6 +++--- 2

[PATCH 1/3] dw_dmac: mark dwc_dump_lli inline

2012-07-13 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 9151511..db56ef4 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c

[PATCH 3/3] dw_dmac: set default alignment

2012-07-13 Thread Andy Shevchenko
The default values are filled to support at least mem-to-mem tests provided by dmatest module. It makes sense to choose the 4 bytes (2 least significant bits) alignment by the default. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c |6 ++ 1

Re: [PATCH 3/3] dw_dmac: set default alignment

2012-07-13 Thread Andy Shevchenko
addresses and length of the test data aligned. On the other hand we can't use unaligned address in LLI because of the hardware restriction (2 bits are used for choosing AHB master). -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH 3/3] dw_dmac: set default alignment

2012-07-13 Thread Andy Shevchenko
this patch still in my pool. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org

Re: [PATCH 3/3] dw_dmac: set default alignment

2012-07-13 Thread Andy Shevchenko
On Fri, Jul 13, 2012 at 1:30 PM, viresh kumar viresh.kum...@arm.com wrote: Sorry, got confused now. What works without this patch? And what doesn't work without it? It seems this patch is redundant. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line

irq domain desing for some devices

2012-07-16 Thread Andy Shevchenko
in the API (struct device, request_irq, ...), but keep reference between driver and PIC via some object [1]. Third opinion is to forget about the issue and hope the new coming devices will support either DT, or ACPI 5. [1] https://lkml.org/lkml/2012/7/5/155 Signed-off-by: Andy Shevchenko andriy.shevche

[PATCH] dmaengine: printk(KERN_ERR ...) - pr_err

2012-07-18 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dmaengine.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 26ac0f8..071bd73 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma

Re: [PATCH] dmaengine: Cleanup logging messages

2012-07-18 Thread Andy Shevchenko
On Wed, Jul 18, 2012 at 7:51 PM, Joe Perches j...@perches.com wrote: Use a more current logging style. Add pr_fmt to prefix dmaengine: to messages. Convert printk(KERN_ERR to pr_err(. Convert embedded function name use to %s: , __func__ Align arguments. Original-patch-by: Andy Shevchenko

Re: [PATCH v2 0/5] dmaengine: add ACPI DMA helpers and use them in dw_dmac

2013-04-15 Thread Andy Shevchenko
Will do tomorrow. Thanks! On Mon, Apr 15, 2013 at 7:36 PM, Vinod Koul vinod.k...@intel.com wrote: On Tue, Apr 09, 2013 at 02:05:42PM +0300, Andy Shevchenko wrote: There is a patch series which introduces ACPI DMA helpers in similar way like we have for DeviceTree. In addition it applies

Re: [PATCH v2 0/5] dmaengine: add ACPI DMA helpers and use them in dw_dmac

2013-04-16 Thread Andy Shevchenko
On Mon, 2013-04-15 at 22:06 +0530, Vinod Koul wrote: On Tue, Apr 09, 2013 at 02:05:42PM +0300, Andy Shevchenko wrote: There is a patch series which introduces ACPI DMA helpers in similar way like we have for DeviceTree. In addition it applies this to the first user, namely dw_dmac

[PATCH v2.2 5/5] ACPI / LPSS: register clock device for Lynxpoint DMA properly

2013-04-19 Thread Andy Shevchenko
From: Rafael J. Wysocki rafael.j.wyso...@intel.com The DMA controller in Lynxpoint is enumerated as a regular ACPI device now. To work properly it is using the LPSS root clock as a functional clock. That's why we have to register the clock device accordingly to the ACPI ID of the DMA controller.

Re: [PATCH] platform: fall-back to driver name check if there is no id found

2013-04-19 Thread Andy Shevchenko
On Fri, 2013-04-19 at 21:20 +0800, Eric Miao wrote: On Fri, Apr 19, 2013 at 8:35 PM, Hein Tibosch hein_tibo...@yahoo.es wrote: Hi Andy, Mika, On 8 Feb 2013, Andy Shevchenko wrote: Some of the platform devices rely on the name of their driver to match with. In the current

Re: [PATCH 3/6] dma: acpi-dma: parse CSRT to extract additional resources

2013-04-08 Thread Andy Shevchenko
On Sat, 2013-03-30 at 03:03 +0530, Vinod Koul wrote: On Wed, Mar 27, 2013 at 10:57:59AM +0200, Andy Shevchenko wrote: Since we have CSRT only to get additional DMA controller resources, let's get rid of drivers/acpi/csrt.c and move its logic inside ACPI DMA helpers code. Signed-off

[PATCH v2 0/5] dmaengine: add ACPI DMA helpers and use them in dw_dmac

2013-04-09 Thread Andy Shevchenko
There is a patch series which introduces ACPI DMA helpers in similar way like we have for DeviceTree. In addition it applies this to the first user, namely dw_dmac driver. Since v1: - address one Vinod's comment - replace 5/6 6/6 by 5/5 from Rafael - tested on Intel Lynxpoint system Andy

[PATCH v2 4/5] dw_dmac: add ACPI support

2013-04-09 Thread Andy Shevchenko
Since we have proper ACPI DMA helpers implemented, the driver may use it. This patch introduces custom filter function together with acpi_device_id table. Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers

[PATCH v2 3/5] dma: acpi-dma: parse CSRT to extract additional resources

2013-04-09 Thread Andy Shevchenko
Since we have CSRT only to get additional DMA controller resources, let's get rid of drivers/acpi/csrt.c and move its logic inside ACPI DMA helpers code. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com Acked

[PATCH v2 2/5] dmaengine: call acpi_dma_request_slave_channel as well

2013-04-09 Thread Andy Shevchenko
The slave device could be enumerated by ACPI. In that case the dma_request_slave_channel should use the acpi_dma_request_slave_channel() helper. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com Acked-by: Rafael J

[PATCH v2 5/5] ACPI / LPSS: add support of shared clock

2013-04-09 Thread Andy Shevchenko
From: Rafael J. Wysocki r...@sisk.pl The DMA controller in Lynxpoint is using the LPSS root clock as a functional clock to work properly. Proposed patch adds support of the shared clock. It also avoids hardcoding the name of the DMA device in clk-lpt.c and the name of the root clock in

[PATCH v2 1/5] dma: acpi-dma: introduce ACPI DMA helpers

2013-04-09 Thread Andy Shevchenko
devm_acpi_dma_controller_register(). Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com Acked-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- Documentation/acpi/enumeration.txt | 77 ++ drivers/dma/Kconfig

[PATCH v2.1 5/5] ACPI / LPSS: add support of shared clock

2013-04-09 Thread Andy Shevchenko
From: Rafael J. Wysocki rafael.j.wyso...@intel.com The DMA controller in Lynxpoint is using the LPSS root clock as a functional clock to work properly. Proposed patch adds support of the shared clock. It also avoids hardcoding the name of the DMA device in clk-lpt.c and the name of the root clock

Re: [PATCH v2 0/5] dmaengine: add ACPI DMA helpers and use them in dw_dmac

2013-04-11 Thread Andy Shevchenko
On Tue, 2013-04-09 at 14:05 +0300, Andy Shevchenko wrote: There is a patch series which introduces ACPI DMA helpers in similar way like we have for DeviceTree. In addition it applies this to the first user, namely dw_dmac driver. Since v1: - address one Vinod's comment - replace 5/6

[PATCH 2/4] staging: speakup: remove custom string_unescape_any_inplace

2013-04-12 Thread Andy Shevchenko
There is generic implementation of the function to unescape strings. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Cc: Samuel Thibault samuel.thiba...@ens-lyon.org Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: spea...@braille.uwo.ca Cc: de...@driverdev.osuosl.org

[PATCH 4/4] binfmt_misc: reuse string_unescape_inplace()

2013-04-12 Thread Andy Shevchenko
There is string_unescape_inplace() function which decodes strings in generic way. Let's use it. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Cc: Alexander Viro v...@zeniv.linux.org.uk Cc: linux-fsde...@vger.kernel.org --- fs/binfmt_misc.c | 24 1 file

[PATCH 3/4] dynamic_debug: reuse generic string_unescape function

2013-04-12 Thread Andy Shevchenko
There is kernel function to do the job in generic way. Let's use it. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Cc: Jason Baron jba...@redhat.com --- lib/dynamic_debug.c | 48 +--- 1 file changed, 5 insertions(+), 43 deletions

[PATCH 1/4] lib/string_helpers: introduce generic string_unescape

2013-04-12 Thread Andy Shevchenko
There are several places in kernel where modules unescapes input to convert C-Style Escape Sequences into byte codes. The patch provides generic implementation of such approach. Test cases are also included into the patch. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Cc

Re: memcmp in modules

2013-04-12 Thread Andy Shevchenko
__builtin_memcmp +#define memcmp(a, b, n) __builtin_memcmp(a, b, n) And in this case: modprobe test_string_helpers [ 15.391589] test_string_helpers: Running tests... What did I miss? -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel

[PATCH] dw_dmac: don't wait for FIFO_EMPTY endlessly in dwc_chan_pause

2013-03-21 Thread Andy Shevchenko
. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 43a5329..43e2e89 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c

[PATCH] dw_dmac: fix typo in Kconfig

2013-03-21 Thread Andy Shevchenko
The commit c30f46bc (drivers/Kconfig: add several missing GENERIC_HARDIRQS dependencies) introduced a warning on make defconfig stage. This patch fixes a typo. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 0/4] dw_dmac: cleanup for DT usage

2013-03-22 Thread Andy Shevchenko
It includes few cleanups when used with DT. Patch 4/4 is a modified version of the [1]. [1] http://www.spinics.net/lists/arm-kernel/msg225366.html Andy Shevchenko (3): dw_dmac: fix style of the comments dw_dmac: rename DT related methods to reflect their belonging dw_dmac: make build of DT

[PATCH 4/4] dmaengine: dw_dmac: simplify master selection

2013-03-22 Thread Andy Shevchenko
instead and save them in the dw_dma_chan structure directly. This could be simplified further once all users that today use dw_dma_slave for configuration get converted to device tree based setup instead. Signed-off-by: Arnd Bergmann a...@arndb.de Signed-off-by: Andy Shevchenko andriy.shevche

[PATCH 1/4] dw_dmac: fix style of the comments

2013-03-22 Thread Andy Shevchenko
Let's use capital letter as a first one in the comments. There is no functional changes. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/dma

[PATCH 2/4] dw_dmac: rename DT related methods to reflect their belonging

2013-03-22 Thread Andy Shevchenko
() - dw_dma_of_xlate() dw_dma_id_table - dw_dma_of_id_table There is no functional change. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions

[PATCH 3/4] dw_dmac: make build of DT related methods optional

2013-03-22 Thread Andy Shevchenko
return code of fake one when of_dma_controller_register is not implemented. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma

Re: [PATCH 3/4] dw_dmac: make build of DT related methods optional

2013-03-25 Thread Andy Shevchenko
On Fri, 2013-03-22 at 15:19 +, Arnd Bergmann wrote: On Friday 22 March 2013, Andy Shevchenko wrote: There is no reason to build custom filter function and translation function inside the driver in case we have no DT platform. This patch introduces new method

[PATCH v2 0/4] dw_dmac: cleanup for DT usage

2013-03-26 Thread Andy Shevchenko
It includes few cleanups when used with DT. Patch 4/4 is a modified version of the [1]. [1] http://www.spinics.net/lists/arm-kernel/msg225366.html Since v1: - address Arnd's comments - apply Acks I got from Viresh Andy Shevchenko (3): dw_dmac: fix style of the comments dw_dmac: rename DT

[PATCH v2 1/4] dw_dmac: fix style of the comments

2013-03-26 Thread Andy Shevchenko
Let's use capital letter as a first one in the comments. There is no functional changes. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/dma/dw_dmac.c | 30 +++--- 1 file changed, 15 insertions

[PATCH v2 4/4] dmaengine: dw_dmac: simplify master selection

2013-03-26 Thread Andy Shevchenko
instead and save them in the dw_dma_chan structure directly. This could be simplified further once all users that today use dw_dma_slave for configuration get converted to device tree based setup instead. Signed-off-by: Arnd Bergmann a...@arndb.de Signed-off-by: Andy Shevchenko andriy.shevche

[PATCH v2 3/4] dw_dmac: make wrapper on of_dma_controller_register()

2013-03-26 Thread Andy Shevchenko
This patch introduces new method dw_dma_of_controller_register() and adds checks of the of_node presence together with CONFIG_OF before calling the wrapper. It helps to distinguish the real -ENODEV return code of fake one when of_dma_controller_register is not implemented. Signed-off-by: Andy

[PATCH v2 2/4] dw_dmac: rename DT related methods to reflect their belonging

2013-03-26 Thread Andy Shevchenko
() - dw_dma_of_xlate() dw_dma_id_table - dw_dma_of_id_table There is no functional change. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/dma/dw_dmac.c | 24 +--- 1

Re: [PATCH v2 3/4] dw_dmac: make wrapper on of_dma_controller_register()

2013-03-26 Thread Andy Shevchenko
On Tue, 2013-03-26 at 16:04 +0100, Lars-Peter Clausen wrote: On 03/26/2013 03:53 PM, Andy Shevchenko wrote: This patch introduces new method dw_dma_of_controller_register() and adds checks of the of_node presence together with CONFIG_OF before calling the wrapper. It helps to distinguish

[PATCH v2.1] dw_dmac: make wrapper on of_dma_controller_register()

2013-03-26 Thread Andy Shevchenko
This patch introduces new method dw_dma_of_controller_register(). The wrapper is called only when of_node is present. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Arnd Bergmann a...@arndb.de --- drivers/dma/dw_dmac.c | 19 --- 1 file changed, 12

Re: [PATCH v2.1] dw_dmac: make wrapper on of_dma_controller_register()

2013-03-26 Thread Andy Shevchenko
On Tue, 2013-03-26 at 22:37 +0530, Viresh Kumar wrote: On 26 March 2013 22:34, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: This patch introduces new method dw_dma_of_controller_register(). The wrapper is called only when of_node is present. Signed-off-by: Andy Shevchenko

[PATCH v2.2] dw_dmac: remove unnecessary ENODEV check

2013-03-26 Thread Andy Shevchenko
If CONFIG_OF is not set the of_node of the device will always be NULL. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 274fd7d

[PATCH 1/6] dma: acpi-dma: introduce ACPI DMA helpers

2013-03-27 Thread Andy Shevchenko
devm_acpi_dma_controller_register(). Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com Acked-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- Documentation/acpi/enumeration.txt | 77 ++ drivers/dma/Kconfig

[PATCH 4/6] dw_dmac: add ACPI support

2013-03-27 Thread Andy Shevchenko
Since we have proper ACPI DMA helpers implemented, the driver may use it. This patch introduces custom filter function together with acpi_device_id table. Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers

[PATCH 2/6] dmaengine: call acpi_dma_request_slave_channel as well

2013-03-27 Thread Andy Shevchenko
The slave device could be enumerated by ACPI. In that case the dma_request_slave_channel should use the acpi_dma_request_slave_channel() helper. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com Acked-by: Rafael J

[PATCH 6/6] ACPI / LPSS: add Lynxpoint DMA controller to the list

2013-03-27 Thread Andy Shevchenko
In Lynxpoint we have to enable clock per each LPSS device. That's why we have to enumerate them from drivers/acpi/acpi_lpss.c. The DMA controller is one of such devices. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/acpi/acpi_lpss.c | 7 +++ drivers/clk/x86

[PATCH 0/6] dmaengine: add ACPI DMA helpers and use them in dw_dmac

2013-03-27 Thread Andy Shevchenko
There is a patch series which introduces ACPI DMA helpers in similar way like we have for DeviceTree. In addition it applies this to the first user, namely dw_dmac driver. Andy Shevchenko (6): dma: acpi-dma: introduce ACPI DMA helpers dmaengine: call acpi_dma_request_slave_channel as well

[PATCH 5/6] ACPI / LPSS: return no error from register_device_clock in special cases

2013-03-27 Thread Andy Shevchenko
When device uses the fixed clock and has no private space of LTR, we have to create main LPSS clock and register platform device. This is normally a case for LPSS DMA controller. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/acpi/acpi_lpss.c | 4 1 file

[PATCH 3/6] dma: acpi-dma: parse CSRT to extract additional resources

2013-03-27 Thread Andy Shevchenko
Since we have CSRT only to get additional DMA controller resources, let's get rid of drivers/acpi/csrt.c and move its logic inside ACPI DMA helpers code. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com Acked

Re: [PATCH 05/10] dmatest: split test parameters to separate structure

2013-03-08 Thread Andy Shevchenko
On Tue, 2013-03-05 at 17:16 +0800, Viresh Kumar wrote: On 4 March 2013 17:09, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: Better to keep test parameters separate from internal variables. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma

Re: [PATCH 00/10] dmatest: update the module to use debugfs

2013-03-08 Thread Andy Shevchenko
On Thu, 2013-03-07 at 11:50 +0530, Vinod Koul wrote: On Mon, Mar 04, 2013 at 11:09:24AM +0200, Andy Shevchenko wrote: The first approach to get dmatest module more flexible and easier to play with. The amount of patches could be reduced, but I would like to get a comments first

Re: [PATCH 00/10] dmatest: update the module to use debugfs

2013-03-11 Thread Andy Shevchenko
On Sun, Mar 10, 2013 at 3:44 PM, Viresh Kumar viresh.ku...@linaro.org wrote: On 8 March 2013 21:11, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: On Thu, 2013-03-07 at 11:50 +0530, Vinod Koul wrote: On Mon, Mar 04, 2013 at 11:09:24AM +0200, Andy Shevchenko wrote: The first

[PATCH 10/10] dmatest: append verify result to results

2013-03-04 Thread Andy Shevchenko
Comparison between buffers is stored to the dedicated structure. Note that the verify result is now accessible only via file 'results' in the debugfs. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- Documentation/dmatest.txt | 6 +- drivers/dma/dmatest.c | 182

[PATCH 06/10] dmatest: run test via debugfs

2013-03-04 Thread Andy Shevchenko
. For the details see the above section 1. When dmatest is built as a module... In both cases the module parameters are used as initial values for the test case. You always could check them at run-time by running % grep -H . /sys/module/dmatest/parameters/* Signed-off-by: Andy Shevchenko andriy.shevche

[PATCH 03/10] dmatest: create dmatest_info to keep test parameters

2013-03-04 Thread Andy Shevchenko
. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dmatest.c | 160 +++--- 1 file changed, 113 insertions(+), 47 deletions(-) diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index e3955be..7f9e3cc 100644

[PATCH 08/10] dmatest: define MAX_ERROR_COUNT constant

2013-03-04 Thread Andy Shevchenko
Its meaning is to limit amount of error messages to be printed out when buffer mismatch is occured. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dmatest.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/dma/dmatest.c b

[PATCH 01/10] dmatest: cancel thread immediately when asked for

2013-03-04 Thread Andy Shevchenko
wait_event_freezable_timeout() solves that. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dmatest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index a2c8904..e6b4cfa 100644 --- a/drivers/dma/dmatest.c +++ b/drivers

[PATCH 09/10] dmatest: gather test results in the linked list

2013-03-04 Thread Andy Shevchenko
that the buffer comparison is done in the old way, i.e. data is not collected and just printed out. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- Documentation/dmatest.txt | 19 drivers/dma/dmatest.c | 234 -- 2 files changed

[PATCH 04/10] dmatest: move dmatest_channels and nr_channels to dmatest_info

2013-03-04 Thread Andy Shevchenko
We don't need to have them global and later we would like to protect access to them as well. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dmatest.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/drivers/dma

[PATCH 02/10] dmatest: allocate memory for pq_coefs from heap

2013-03-04 Thread Andy Shevchenko
This will help in future to hide a global variable usage. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dmatest.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index e6b4cfa

[PATCH 05/10] dmatest: split test parameters to separate structure

2013-03-04 Thread Andy Shevchenko
Better to keep test parameters separate from internal variables. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dmatest.c | 109 -- 1 file changed, 62 insertions(+), 47 deletions(-) diff --git a/drivers/dma

[PATCH 07/10] dmatest: return actual state in 'run' file

2013-03-04 Thread Andy Shevchenko
. sleep 1 done echo Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- Documentation/dmatest.txt | 12 drivers/dma/dmatest.c | 23 +-- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/Documentation/dmatest.txt b

[PATCH 00/10] dmatest: update the module to use debugfs

2013-03-04 Thread Andy Shevchenko
the commit messages. Module was tested on Intel Medfield and Lynxpoint systems with dw_dmac DMA controller embedded. Andy Shevchenko (10): dmatest: cancel thread immediately when asked for dmatest: allocate memory for pq_coefs from heap dmatest: create dmatest_info to keep test parameters

Re: [PATCH 04/10] dmatest: move dmatest_channels and nr_channels to dmatest_info

2013-03-05 Thread Andy Shevchenko
On Tue, 2013-03-05 at 17:12 +0800, Viresh Kumar wrote: On 4 March 2013 17:09, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: We don't need to have them global and later we would like to protect access to them as well. Signed-off-by: Andy Shevchenko andriy.shevche

Re: [PATCH 06/10] dmatest: run test via debugfs

2013-03-05 Thread Andy Shevchenko
On Tue, 2013-03-05 at 14:56 +0530, Vinod Koul wrote: On Mon, Mar 04, 2013 at 11:09:30AM +0200, Andy Shevchenko wrote: @@ -0,0 +1,48 @@ + DMA Test Guide + == + + Andy Shevchenko andriy.shevche...@linux.intel.com

Re: [PATCH v9 3/9] ARM: edma: add AM33XX support to the private EDMA API

2013-03-06 Thread Andy Shevchenko
= ~(0xff shift); + mux |= xbar_chans[i][0] shift; + writel(mux, (void *)((u32)xbar + offset)); + } -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH 06/10] dmatest: run test via debugfs

2013-03-07 Thread Andy Shevchenko
Oh, missed Cc list in the middle. Return it back and thus leave a full message below. On Thu, Mar 7, 2013 at 8:11 AM, Vinod Koul vinod.k...@intel.com wrote: On Wed, Mar 06, 2013 at 05:53:20PM +0200, Andy Shevchenko wrote: How do you terminate a test? Esp if you have started bunch of concurent

Re: [PATCH, resend] kfifo: initialize fifo accordingly to C99 standard

2012-11-29 Thread Andy Shevchenko
On Thu, Nov 29, 2012 at 1:56 AM, Andrew Morton a...@linux-foundation.org wrote: On Wed, 21 Nov 2012 16:31:11 +0200 Andy Shevchenko andriy.shevche...@linux.intel.com wrote: When build a kernel with make W=1 we will get a warning about missing initializer. It comes from kfifo usage style

Re: [PATCH, resend] kfifo: initialize fifo accordingly to C99 standard

2012-11-29 Thread Andy Shevchenko
On Thu, Nov 29, 2012 at 11:21 AM, Andy Shevchenko andy.shevche...@gmail.com wrote: On Thu, Nov 29, 2012 at 1:56 AM, Andrew Morton a...@linux-foundation.org wrote: On Wed, 21 Nov 2012 16:31:11 +0200 Andy Shevchenko andriy.shevche...@linux.intel.com wrote: When build a kernel with make W=1 we

Re: [PATCH, resend] kfifo: initialize fifo accordingly to C99 standard

2012-11-29 Thread Andy Shevchenko
On Thu, Nov 29, 2012 at 3:51 AM, Andrew Morton a...@linux-foundation.org wrote: On Wed, 21 Nov 2012 16:31:11 +0200 Andy Shevchenko andriy.shevche...@linux.intel.com wrote: When build a kernel with make W=1 we will get a warning about missing initializer. It comes from kfifo usage style

Re: [PATCH] dw_dmac: add support for Lynxpoint DMA controllers

2013-02-07 Thread Andy Shevchenko
On Fri, Feb 8, 2013 at 6:28 AM, Viresh Kumar viresh.ku...@linaro.org wrote: On Thu, Feb 7, 2013 at 10:35 PM, Andy Shevchenko andy.shevche...@gmail.com wrote: On Thu, Feb 7, 2013 at 5:39 PM, Viresh Kumar viresh.ku...@linaro.org wrote: On 7 February 2013 21:06, Andy Shevchenko andriy.shevche

[PATCH] platform: fall-back to driver name check if there is no id found

2013-02-08 Thread Andy Shevchenko
to match by the driver name. This will make it similar to the DT or ACPI cases. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Reported-by: Mika Westerberg mika.westerb...@linux.intel.com Cc: Eric Miao eric.m...@marvell.com Cc: Greg Kroah-Hartman gre...@suse.de --- drivers/base

[PATCH, resend] platform: fall-back to driver name check if there is no id found

2013-02-11 Thread Andy Shevchenko
to match by the driver name. This will make it similar to the DT or ACPI cases. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Reported-by: Mika Westerberg mika.westerb...@linux.intel.com Cc: Eric Miao eric.y.m...@gmail.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org

[PATCH 4/6] dma: coh901318_lli: set residue only if dma is in progress

2013-02-12 Thread Andy Shevchenko
When status is DMA_SUCCESS the residue should be zero. Otherwise it's a bug. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Cc: Linus Walleij linus.wall...@linaro.org Cc: linux-arm-ker...@lists.infradead.org --- drivers/dma/coh901318.c |4 +++- 1 file changed, 3 insertions

[PATCH 1/6] of: dma: protect list write operation by spin_lock

2013-02-12 Thread Andy Shevchenko
It's possible to have an inconsistency in the list due to unprotected operation on it. The patch adds a proper locking on the list operation. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Rob Herring rob.herr...@calxeda.com --- drivers/of/dma.c |2 ++ 1 file

[PATCH 0/6] dma: various fixes in different DMAC drivers

2013-02-12 Thread Andy Shevchenko
This is a patcset of independent fixes of the DMAC drivers. They are simple and being understandable in their context. Andy Shevchenko (6): of: dma: protect list write operation by spin_lock dmaengine.h: remove redundant else keyword dma: coh901318_lli: avoid unbalanced locking dma

[PATCH 3/6] dma: coh901318_lli: avoid unbalanced locking

2013-02-12 Thread Andy Shevchenko
I have not checked the code but there is a possibility that custom pool-lock is not needed at all due to dma_pool contains it's own lock. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Cc: Linus Walleij linus.wall...@linaro.org Cc: linux-arm-ker...@lists.infradead.org

[PATCH 5/6] edma: do not waste memory for dma_mask

2013-02-12 Thread Andy Shevchenko
Accordingly to commentary in the platform_device_register_full the memory allocated for dma_mask will not going to be freed. That's why is better to assign dma_mask afterwards. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/edma.c |6 -- 1 file changed

[PATCH 2/6] dmaengine.h: remove redundant else keyword

2013-02-12 Thread Andy Shevchenko
dmaengine_device_control returns -ENOSYS in case the dma driver doesn't have such functionality. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- include/linux/dmaengine.h |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/dmaengine.h b

[PATCH 6/6] dma: tegra20-apb-dma: remove unnecessary assignment

2013-02-12 Thread Andy Shevchenko
There is no need to assign 0 to residue, because dma_cookie_status() does this for us. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/tegra20-apb-dma.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb

Re: [PATCH] dw_dmac: adjust slave_id accordingly to request line base

2013-02-12 Thread Andy Shevchenko
On Tue, Feb 12, 2013 at 5:56 PM, Vinod Koul vinod.k...@intel.com wrote: On Wed, Jan 30, 2013 at 09:32:56AM +0200, Andy Shevchenko wrote: On Tue, 2013-01-29 at 20:57 +0530, Viresh Kumar wrote: On Tue, Jan 29, 2013 at 10:52 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: We had

Re: [PATCH] dw_dmac: apply default dma_mask if needed

2013-02-12 Thread Andy Shevchenko
On Tue, Feb 12, 2013 at 6:16 PM, Vinod Koul vinod.k...@intel.com wrote: On Tue, Jan 29, 2013 at 05:06:24PM +0200, Andy Shevchenko wrote: In some cases we got the device without dma_mask configured. We have to apply the default value to avoid crashes during memory mapping. what

[PATCH] dw_dmac: add support for Lynxpoint DMA controllers

2013-02-07 Thread Andy Shevchenko
From: Mika Westerberg mika.westerb...@linux.intel.com Intel Lynxpoint PCH Low Power Subsystem has DMA controller to support general purpose serial buses like SPI, I2C, and HSUART. This controller is enumerated from ACPI namespace with ACPI ID INTL9C60. Signed-off-by: Andy Shevchenko

Re: [PATCH] dw_dmac: add support for Lynxpoint DMA controllers

2013-02-07 Thread Andy Shevchenko
On Thu, Feb 7, 2013 at 5:39 PM, Viresh Kumar viresh.ku...@linaro.org wrote: On 7 February 2013 21:06, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: From: Mika Westerberg mika.westerb...@linux.intel.com Intel Lynxpoint PCH Low Power Subsystem has DMA controller to support general

Re: [PATCH 07/33] dma: Convert to devm_ioremap_resource()

2013-01-29 Thread Andy Shevchenko
in argument 1 (different address spaces) drivers/dma/dw_dmac.c:1691:32:expected void const *ptr drivers/dma/dw_dmac.c:1691:32:got void [noderef] asn:2*[assigned] regs -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

[PATCH] dw_dmac: apply default dma_mask if needed

2013-01-29 Thread Andy Shevchenko
In some cases we got the device without dma_mask configured. We have to apply the default value to avoid crashes during memory mapping. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers

Re: [PATCH] dw_dmac: adjust slave_id accordingly to request line base

2013-01-29 Thread Andy Shevchenko
we have to pass this info somehow to the DMAC driver. And like Mika already mentioned we have no other generic way except IORESOURCE_DMA. If you have something better in mind, please share. We could adopt our code then. -- Andy Shevchenko andriy.shevche...@linux.intel.com Intel Finland Oy

Re: [PATCH v5 03/14] ARM: edma: add AM33XX support to the private EDMA API

2013-01-29 Thread Andy Shevchenko
On Wed, Jan 30, 2013 at 8:41 AM, Matt Porter mpor...@ti.com wrote: On Mon, Jan 28, 2013 at 09:27:24PM +0200, Andy Shevchenko wrote: On Tue, Jan 15, 2013 at 10:32 PM, Matt Porter mpor...@ti.com wrote: Adds support for parsing the TI EDMA DT data into the required EDMA private API platform

Re: [PATCH] dw_dmac: adjust slave_id accordingly to request line base

2013-01-30 Thread Andy Shevchenko
On Wed, 2013-01-30 at 13:31 +0530, Viresh Kumar wrote: On Wed, Jan 30, 2013 at 1:02 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: We get a device from the ACPI CSRT table. During enumeration we don't know what kind of the device it is. From the enumeration point of view

[PATCH v3.5] dw_dmac: return proper residue value

2013-01-24 Thread Andy Shevchenko
by this patch due to len field in the descriptor structure is left untouched by the original code. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw_dmac.c | 47 ++-- drivers/dma/dw_dmac_regs.h |1 + 2 files

Re: [PATCH v3.5] dw_dmac: return proper residue value

2013-01-25 Thread Andy Shevchenko
On Fri, 2013-01-25 at 09:43 +0530, Viresh Kumar wrote: On Thu, Jan 24, 2013 at 6:37 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: Currently the driver returns full length of the active descriptor which is wrong. We have to go throught the active descriptor and substract

Re: [PATCH v3.5] dw_dmac: return proper residue value

2013-01-25 Thread Andy Shevchenko
On Fri, Jan 25, 2013 at 10:56 AM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: On Fri, 2013-01-25 at 09:43 +0530, Viresh Kumar wrote: On Thu, Jan 24, 2013 at 6:37 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: diff --git a/drivers/dma/dw_dmac.c b/drivers/dma

<    1   2   3   4   5   6   7   8   9   10   >