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 <dhd...@apm.com> 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 U

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

2015-09-17 Thread Duc Dang
no 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 <mlang...@redhat.com> Signed-off-by: Duc Dang <dhd...@apm.com> --- drivers/usb/host/xhci-plat.c | 9 + 1 fil

[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 <dhd...@apm.com> --- drivers/usb/host/xhci.c | 10 ++ 1 file changed, 10 insertions(+)

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

2015-09-17 Thread Duc Dang
-by: Mark Langsdorf <mlang...@redhat.com> Tested-by: Mark Salter <msal...@redhat.com> Signed-off-by: Duc Dang <dhd...@apm.com> --- drivers/usb/host/xhci-plat.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/usb/host/xhci-plat.c

[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: -

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 <a...@arndb.de> 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 c

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 <mathias.ny...@linux.intel.com> wrote: > On 31.08.2015 21:58, Duc Dang wrote: >> >> On Thu, Aug 20, 2015 at 12:38 PM, Duc Dang <dhd...@apm.com> wrote: >>> >>> The xhci platform driver needs to work on sy

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 <dhd...@apm.com> 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

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 h...@lst.de 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 with ext4. But how about the same

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

2015-08-20 Thread Duc Dang
no 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 mlang...@redhat.com Signed-off-by: Duc Dang dhd...@apm.com --- Changes from v6: -None Change from v5: -Change

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

2015-08-20 Thread Duc Dang
-by: Mark Langsdorf mlang...@redhat.com Tested-by: Mark Salter msal...@redhat.com Signed-off-by: Duc Dang dhd...@apm.com --- 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

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 a...@arndb.de 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, it's introducing a regression

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 j...@suse.cz 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 we disconnect an USB/SATA/MMC devices

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
[ffc89728] 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
-by: Mark Langsdorf mlang...@redhat.com Tested-by: Mark Salter msal...@redhat.com Signed-off-by: Duc Dang dhd...@apm.com --- 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

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

2015-08-10 Thread Duc Dang
no 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 mlang...@redhat.com Signed-off-by: Duc Dang dhd...@apm.com --- Change from v5: Change comment to XHCI-compliant USB

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 gre...@linuxfoundation.org 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 gre...@linuxfoundation.org wrote: On Fri, Aug 07, 2015 at 06:03:36PM -0700, Duc Dang wrote

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 li...@arm.linux.org.uk 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 +++ b

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

2015-08-07 Thread Duc Dang
-- 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 v4 1/2] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-08-07 Thread Duc Dang
...@redhat.com Tested-by: Mark Salter msal...@redhat.com Signed-off-by: Duc Dang dhd...@apm.com --- 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

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

2015-08-07 Thread Duc Dang
no regressions or error messages on the machines without platform XHCI. [dhdang: regenerate the patch over 4.2-rc5] Signed-off-by: Mark Langsdorf mlang...@redhat.com Signed-off-by: Duc Dang dhd...@apm.com --- Changes from v3: Regenerate the patch over 4.2-rc5 No code change Changes

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 gre...@linuxfoundation.org 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 v5 1/2] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-08-07 Thread Duc Dang
...@redhat.com Tested-by: Mark Salter msal...@redhat.com Signed-off-by: Duc Dang dhd...@apm.com --- 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

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

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