Re: [PATCH v8 0/3] usb: xhci-platform: Configure 64-bit DMA mask if the platform is capable

2015-09-30 Thread Duc Dang
On Thu, Sep 17, 2015 at 11:19 AM, Duc Dang wrote: > The xhci platform driver does not work with system that only supports > 64-bit DMA as it requests 32-bit DMA mask during driver initialization. > This patch set addresses this issue and also adds XHCI-compliant USB > Con

Re: [PATCH v8 1/3] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-09-17 Thread Duc Dang
On Thu, Sep 17, 2015 at 12:51 PM, Arnd Bergmann wrote: > On Thursday 17 September 2015 11:19:46 Duc Dang wrote: >> The xhci platform driver needs to work on systems that >> either only support 64-bit DMA or only support 32-bit DMA. >> Attempt to set a coherent dma mas

[PATCH v8 3/3] usb: xhci: configure 32-bit DMA if the controller does not support 64-bit DMA

2015-09-17 Thread Duc Dang
This change avoids DMA error in the cases where dma_mask and coherent_dma_mask of a 32-bit controller get configured as DMA_BIT_MASK(64) when running on a 64-bit system. Signed-off-by: Duc Dang --- drivers/usb/host/xhci.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers

[PATCH v8 2/3] usb: Add support for ACPI identification to xhci-platform

2015-09-17 Thread Duc Dang
regressions or error messages on the machines without platform XHCI. [dhdang: regenerate the patch over v4.3-rc1 and address new comments] Signed-off-by: Mark Langsdorf Signed-off-by: Duc Dang --- drivers/usb/host/xhci-plat.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers

[PATCH v8 1/3] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-09-17 Thread Duc Dang
: Mark Langsdorf Tested-by: Mark Salter Signed-off-by: Duc Dang --- drivers/usb/host/xhci-plat.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 890ad9d..34c93e8 100644 --- a/drivers/usb

[PATCH v8 0/3] usb: xhci-platform: Configure 64-bit DMA mask if the platform is capable

2015-09-17 Thread Duc Dang
The xhci platform driver does not work with system that only supports 64-bit DMA as it requests 32-bit DMA mask during driver initialization. This patch set addresses this issue and also adds XHCI-compliant USB Controller ACPI identification into xhci-platform driver. Changes from v7: - On

Re: [PATCH v7 1/2] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-09-10 Thread Duc Dang
On Tue, Sep 1, 2015 at 4:54 AM, Mathias Nyman wrote: > On 31.08.2015 21:58, Duc Dang wrote: >> >> On Thu, Aug 20, 2015 at 12:38 PM, Duc Dang wrote: >>> >>> The xhci platform driver needs to work on systems that >>> either only support 64-bit DMA or onl

Re: [PATCH v7 1/2] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-08-31 Thread Duc Dang
On Thu, Aug 20, 2015 at 12:38 PM, Duc Dang wrote: > The xhci platform driver needs to work on systems that > either only support 64-bit DMA or only support 32-bit DMA. > Attempt to set a coherent dma mask for 64-bit DMA, and > attempt again with 32-bit DMA if that fails. > > [

Re: 4.2 kernel trace when hot unplug a mounted USB/SATA/MMC devices with ext2/ext3/ext4 file system

2015-08-24 Thread Duc Dang
On Sat, Aug 15, 2015 at 1:58 AM, Christoph Hellwig wrote: > On Fri, Aug 14, 2015 at 05:52:44PM -0700, Duc Dang wrote: >> The commit 08439fec26 "ext4: remove block_device_ejected" only causes >> issue with ext4 and >> trying reverting it helps our test passes wit

[PATCH v7 2/2] usb: Add support for ACPI identification to xhci-platform

2015-08-20 Thread Duc Dang
regressions or error messages on the machines without platform XHCI. [dhdang: regenerate the patch over 4.2-rc5 and address new comments] Signed-off-by: Mark Langsdorf Signed-off-by: Duc Dang --- Changes from v6: -None Change from v5: -Change comment to "XHCI-complian

[PATCH v7 1/2] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-08-20 Thread Duc Dang
: Mark Langsdorf Tested-by: Mark Salter Signed-off-by: Duc Dang --- Changes from v6: -Add WARN_ON if dma_mask is NULL -Use dma_coerce_mask_and_coherent to assign dma_mask and coherent_dma_mask Changes from v5: -Change comment -Assign dma_mask to

Re: [PATCH v5 1/2] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-08-19 Thread Duc Dang
On Sat, Aug 15, 2015 at 1:05 PM, Arnd Bergmann wrote: > > On Saturday 08 August 2015 13:31:02 Duc Dang wrote: > > > > > > If we know that pdev->dev.dma_mask will always be initialised at this > > > point, then the above change is fine. If not,

Re: 4.2 kernel trace when hot unplug a mounted USB/SATA/MMC devices with ext2/ext3/ext4 file system

2015-08-14 Thread Duc Dang
On Fri, Aug 14, 2015 at 1:09 AM, Jan Kara wrote: > On Thu 13-08-15 09:01:28, Darrick J. Wong wrote: >> On Wed, Aug 12, 2015 at 08:17:28PM -0700, Duc Dang wrote: >> > Hi Theodore, Andreas, Jan, Andrew and All, >> > >> > We are seeing kernel trace when w

4.2 kernel trace when hot unplug a mounted USB/SATA/MMC devices with ext2/ext3/ext4 file system

2015-08-12 Thread Duc Dang
k_run+0x94/0xe8 [] do_notify_resume+0x54/0x68 ---[ end trace 1fa355ac70316ea2 ]--- -- Regards, Duc Dang. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH v6 1/2] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-08-10 Thread Duc Dang
: Mark Langsdorf Tested-by: Mark Salter Signed-off-by: Duc Dang --- Changes from v5: -Change comment -Assign dma_mask to coherent_dma_mask if dma_mask is NULL to make sure dma_set_mask_and_coherent does not fail prematurely. Changes from v4: -None Changes from v3

[PATCH v6 2/2] usb: Add support for ACPI identification to xhci-platform

2015-08-10 Thread Duc Dang
regressions or error messages on the machines without platform XHCI. [dhdang: regenerate the patch over 4.2-rc5 and address new comments] Signed-off-by: Mark Langsdorf Signed-off-by: Duc Dang --- Change from v5: Change comment to "XHCI-compliant USB Controller" as "

Re: [PATCH v5 1/2] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-08-08 Thread Duc Dang
On Sat, Aug 8, 2015 at 2:22 AM, Russell King - ARM Linux wrote: > On Fri, Aug 07, 2015 at 08:18:48PM -0700, Duc Dang wrote: >> diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c >> index 890ad9d..5d03f8b 100644 >> --- a/drivers/usb/host/xhci-plat.c >

Re: [PATCH v4 2/2] usb: Add support for ACPI identification to xhci-platform

2015-08-08 Thread Duc Dang
On Sat, Aug 8, 2015 at 8:37 AM, Greg KH wrote: > On Sat, Aug 08, 2015 at 07:43:40AM +0200, Javier Martinez Canillas wrote: >> Hello Greg, >> >> On Sat, Aug 8, 2015 at 3:29 AM, Greg KH wrote: >> > On Fri, Aug 07, 2015 at 06:03:36PM -0700, Duc Dang wrote: >>

[PATCH v5 2/2] usb: Add support for ACPI identification to xhci-platform

2015-08-07 Thread Duc Dang
regressions or error messages on the machines without platform XHCI. Signed-off-by: Mark Langsdorf Signed-off-by: Duc Dang --- Changes from v4: Remove #ifdef CONFIG_ACPI Changes from v3: Regenerate the patch over 4.2-rc5 No code change Changes from v2 Replaced

[PATCH v5 1/2] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-08-07 Thread Duc Dang
-by: Mark Salter Signed-off-by: Duc Dang --- Changes from v4: None Changes from v3: Re-generate the patch over 4.2-rc5 No code change. Changes from v2: None Changes from v1: Consolidated to use dma_set_mask_and_coherent Got rid of the check against

Re: [PATCH v4 2/2] usb: Add support for ACPI identification to xhci-platform

2015-08-07 Thread Duc Dang
On Fri, Aug 7, 2015 at 6:29 PM, Greg KH wrote: > On Fri, Aug 07, 2015 at 06:03:36PM -0700, Duc Dang wrote: >> Provide the methods to let ACPI identify the need to use >> xhci-platform. Change the Kconfig files so the >> xhci-plat.o file is selectable during kernel config

[PATCH v4 2/2] usb: Add support for ACPI identification to xhci-platform

2015-08-07 Thread Duc Dang
regressions or error messages on the machines without platform XHCI. [dhdang: regenerate the patch over 4.2-rc5] Signed-off-by: Mark Langsdorf Signed-off-by: Duc Dang --- Changes from v3: Regenerate the patch over 4.2-rc5 No code change Changes from v2 Replaced tristate

[PATCH v4 1/2] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-08-07 Thread Duc Dang
-by: Mark Salter Signed-off-by: Duc Dang --- Changes from v3: Re-generate the patch over 4.2-rc5 No code change. Changes from v2: None Changes from v1: Consolidated to use dma_set_mask_and_coherent Got rid of the check against sizeof(dma_addr_t) drivers

Re: [PATCH v3 1/2] make xhci platform driver use 64 bit or 32 bit DMA

2015-08-07 Thread Duc Dang
gt; Care to repost the whole patch updated? I tested this v3 patch set with 4.2-rc5 and it works fine on my X-Gene arm64 platform. The only problem is 'git am' will complain (due to line offset changed, I guess). Using 'patch -p 1' to apply the 2 patches is fine. I will repost the whole set over 4.2-rc5. > > Let me apply and see if it still work as is. > > -Loc -- Regards, Duc Dang. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html