public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add a quirk in xhci-plat for parent nodes to specify no 64 bit support
@ 2023-10-31  4:40 Naveen Kumar
  2023-10-31  4:40 ` [PATCH 1/2] usb: host: xhci-plat: Add quirk-no-64-bit-support Naveen Kumar
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Naveen Kumar @ 2023-10-31  4:40 UTC (permalink / raw)
  To: Mathias Nyman, Greg Kroah-Hartman
  Cc: linux-usb, linux-kernel, royluo, Naveen Kumar M

From: Naveen Kumar M <mnkumar@google.com>

This patch aims to expose the XHCI_NO_64BIT_SUPPORT flag to the parent
nodes of xhci for clients to specify if they can not support 64 bit DMA
memory pointers. This issue was observed with a Google SoC that uses
a DWC3 controller where the virtual address's higher order bits are
truncated

Naveen Kumar M (2):
  usb: host: xhci-plat: Add quirk-no-64-bit-support
  dt-bindings: usb: add no-64-bit-support property

 Documentation/devicetree/bindings/usb/usb-xhci.yaml | 4 ++++
 drivers/usb/host/xhci-plat.c                        | 3 +++
 2 files changed, 7 insertions(+)

-- 
2.42.0.820.g83a721a137-goog


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/2] usb: host: xhci-plat: Add quirk-no-64-bit-support
  2023-10-31  4:40 [PATCH 0/2] Add a quirk in xhci-plat for parent nodes to specify no 64 bit support Naveen Kumar
@ 2023-10-31  4:40 ` Naveen Kumar
  2023-11-01  4:43   ` Naveen Kumar M
  2023-10-31  4:40 ` [PATCH 2/2] dt-bindings: usb: add no-64-bit-support property Naveen Kumar
  2023-11-01  4:42 ` [PATCH 0/2] Add a quirk in xhci-plat for parent nodes to specify no 64 bit support Naveen Kumar M
  2 siblings, 1 reply; 10+ messages in thread
From: Naveen Kumar @ 2023-10-31  4:40 UTC (permalink / raw)
  To: Mathias Nyman, Greg Kroah-Hartman
  Cc: linux-usb, linux-kernel, royluo, Naveen Kumar M

From: Naveen Kumar M <mnkumar@google.com>

This patch exposes the existing quirk XHCI_NO_64BIT_SUPPORT so that dwc3
clients can also use this flag. Despite HCCPARAMS1 being set to 1 some
clients may not support 64 bit addressing.

Signed-off-by: Naveen Kumar M <mnkumar@google.com>
---
 drivers/usb/host/xhci-plat.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index b93161374293..d5f37decb7da 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -249,6 +249,9 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
 		if (device_property_read_bool(tmpdev, "quirk-broken-port-ped"))
 			xhci->quirks |= XHCI_BROKEN_PORT_PED;
 
+		if (device_property_read_bool(tmpdev, "quirk-no-64-bit-support"))
+			xhci->quirks |= XHCI_NO_64BIT_SUPPORT;
+
 		device_property_read_u32(tmpdev, "imod-interval-ns",
 					 &xhci->imod_interval);
 	}
-- 
2.42.0.820.g83a721a137-goog


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/2] dt-bindings: usb: add no-64-bit-support property
  2023-10-31  4:40 [PATCH 0/2] Add a quirk in xhci-plat for parent nodes to specify no 64 bit support Naveen Kumar
  2023-10-31  4:40 ` [PATCH 1/2] usb: host: xhci-plat: Add quirk-no-64-bit-support Naveen Kumar
@ 2023-10-31  4:40 ` Naveen Kumar
  2023-10-31  5:54   ` Greg Kroah-Hartman
                     ` (2 more replies)
  2023-11-01  4:42 ` [PATCH 0/2] Add a quirk in xhci-plat for parent nodes to specify no 64 bit support Naveen Kumar M
  2 siblings, 3 replies; 10+ messages in thread
From: Naveen Kumar @ 2023-10-31  4:40 UTC (permalink / raw)
  To: Mathias Nyman, Greg Kroah-Hartman
  Cc: linux-usb, linux-kernel, royluo, Naveen Kumar M

From: Naveen Kumar M <mnkumar@google.com>

Add a new DT option to specify whether a host controller is able to
support 64-bit DMA memory pointers

Signed-off-by: Naveen Kumar M <mnkumar@google.com>
---
 Documentation/devicetree/bindings/usb/usb-xhci.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.yaml b/Documentation/devicetree/bindings/usb/usb-xhci.yaml
index 180a261c3e8f..20dc134004f3 100644
--- a/Documentation/devicetree/bindings/usb/usb-xhci.yaml
+++ b/Documentation/devicetree/bindings/usb/usb-xhci.yaml
@@ -25,6 +25,10 @@ properties:
     description: Set if the controller has broken port disable mechanism
     type: boolean
 
+  quirk-no-64-bit-support:
+    description: Set if the xHC doesn't support 64-bit DMA memory pointers
+    type: boolean
+
   imod-interval-ns:
     description: Interrupt moderation interval
     default: 5000
-- 
2.42.0.820.g83a721a137-goog


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] dt-bindings: usb: add no-64-bit-support property
  2023-10-31  4:40 ` [PATCH 2/2] dt-bindings: usb: add no-64-bit-support property Naveen Kumar
@ 2023-10-31  5:54   ` Greg Kroah-Hartman
  2023-10-31 16:52   ` Krzysztof Kozlowski
       [not found]   ` <CA+Hc5+4Gh6gDuD_NORmJR0zHx3qK6oTagx=wQ_EWf=_NJ0qy6A@mail.gmail.com>
  2 siblings, 0 replies; 10+ messages in thread
From: Greg Kroah-Hartman @ 2023-10-31  5:54 UTC (permalink / raw)
  To: Naveen Kumar; +Cc: Mathias Nyman, linux-usb, linux-kernel, royluo

On Tue, Oct 31, 2023 at 04:40:21AM +0000, Naveen Kumar wrote:
> From: Naveen Kumar M <mnkumar@google.com>
> 
> Add a new DT option to specify whether a host controller is able to
> support 64-bit DMA memory pointers
> 
> Signed-off-by: Naveen Kumar M <mnkumar@google.com>
> ---
>  Documentation/devicetree/bindings/usb/usb-xhci.yaml | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.yaml b/Documentation/devicetree/bindings/usb/usb-xhci.yaml
> index 180a261c3e8f..20dc134004f3 100644
> --- a/Documentation/devicetree/bindings/usb/usb-xhci.yaml
> +++ b/Documentation/devicetree/bindings/usb/usb-xhci.yaml
> @@ -25,6 +25,10 @@ properties:
>      description: Set if the controller has broken port disable mechanism
>      type: boolean
>  
> +  quirk-no-64-bit-support:
> +    description: Set if the xHC doesn't support 64-bit DMA memory pointers
> +    type: boolean
> +
>    imod-interval-ns:
>      description: Interrupt moderation interval
>      default: 5000
> -- 
> 2.42.0.820.g83a721a137-goog
> 
> 

You did not send this patch to all of the relevant
maintainers/reviewers, why not?

please always use scripts/get_maintainer.pl on your patches.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] dt-bindings: usb: add no-64-bit-support property
  2023-10-31  4:40 ` [PATCH 2/2] dt-bindings: usb: add no-64-bit-support property Naveen Kumar
  2023-10-31  5:54   ` Greg Kroah-Hartman
@ 2023-10-31 16:52   ` Krzysztof Kozlowski
       [not found]   ` <CA+Hc5+4Gh6gDuD_NORmJR0zHx3qK6oTagx=wQ_EWf=_NJ0qy6A@mail.gmail.com>
  2 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2023-10-31 16:52 UTC (permalink / raw)
  To: Naveen Kumar, Mathias Nyman, Greg Kroah-Hartman
  Cc: linux-usb, linux-kernel, royluo

On 31/10/2023 05:40, Naveen Kumar wrote:
> From: Naveen Kumar M <mnkumar@google.com>
> 
> Add a new DT option to specify whether a host controller is able to
> support 64-bit DMA memory pointers
> 
> Signed-off-by: Naveen Kumar M <mnkumar@google.com>
> ---
>  Documentation/devicetree/bindings/usb/usb-xhci.yaml | 4 ++++

Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC. It might happen, that command when run on an older
kernel, gives you outdated entries. Therefore please be sure you base
your patches on recent Linux kernel.

You missed at least devicetree list (maybe more), so this won't be
tested by automated tooling. Performing review on untested code might be
a waste of time, thus I will skip this patch entirely till you follow
the process allowing the patch to be tested.

Please kindly resend and include all necessary To/Cc entries.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] dt-bindings: usb: add no-64-bit-support property
       [not found]   ` <CA+Hc5+4Gh6gDuD_NORmJR0zHx3qK6oTagx=wQ_EWf=_NJ0qy6A@mail.gmail.com>
@ 2023-11-01  4:36     ` Naveen Kumar M
  2023-11-01  7:06     ` Krzysztof Kozlowski
  1 sibling, 0 replies; 10+ messages in thread
From: Naveen Kumar M @ 2023-11-01  4:36 UTC (permalink / raw)
  To: Mathias Nyman, Greg Kroah-Hartman, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-usb, linux-kernel, royluo, devicetree

Apologies for sending without plain text mode in the previous mail.
Adding the reviewers/maintainers I missed in the initial mail to this
patch

On Wed, Nov 1, 2023 at 9:50 AM Naveen Kumar M <mnkumar@google.com> wrote:
>
> Adding the reviewers/maintainers I missed in the previous mail to this patch
>
> On Tue, Oct 31, 2023 at 10:11 AM Naveen Kumar <mnkumar@google.com> wrote:
>>
>> From: Naveen Kumar M <mnkumar@google.com>
>>
>> Add a new DT option to specify whether a host controller is able to
>> support 64-bit DMA memory pointers
>>
>> Signed-off-by: Naveen Kumar M <mnkumar@google.com>
>> ---
>>  Documentation/devicetree/bindings/usb/usb-xhci.yaml | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.yaml b/Documentation/devicetree/bindings/usb/usb-xhci.yaml
>> index 180a261c3e8f..20dc134004f3 100644
>> --- a/Documentation/devicetree/bindings/usb/usb-xhci.yaml
>> +++ b/Documentation/devicetree/bindings/usb/usb-xhci.yaml
>> @@ -25,6 +25,10 @@ properties:
>>      description: Set if the controller has broken port disable mechanism
>>      type: boolean
>>
>> +  quirk-no-64-bit-support:
>> +    description: Set if the xHC doesn't support 64-bit DMA memory pointers
>> +    type: boolean
>> +
>>    imod-interval-ns:
>>      description: Interrupt moderation interval
>>      default: 5000
>> --
>> 2.42.0.820.g83a721a137-goog
>>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 0/2] Add a quirk in xhci-plat for parent nodes to specify no 64 bit support
  2023-10-31  4:40 [PATCH 0/2] Add a quirk in xhci-plat for parent nodes to specify no 64 bit support Naveen Kumar
  2023-10-31  4:40 ` [PATCH 1/2] usb: host: xhci-plat: Add quirk-no-64-bit-support Naveen Kumar
  2023-10-31  4:40 ` [PATCH 2/2] dt-bindings: usb: add no-64-bit-support property Naveen Kumar
@ 2023-11-01  4:42 ` Naveen Kumar M
  2 siblings, 0 replies; 10+ messages in thread
From: Naveen Kumar M @ 2023-11-01  4:42 UTC (permalink / raw)
  To: Mathias Nyman, Greg Kroah-Hartman, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-usb, linux-kernel, royluo, devicetree

Adding the reviewers/maintainers I missed in the previous mail to this patch

On Tue, Oct 31, 2023 at 10:10 AM Naveen Kumar <mnkumar@google.com> wrote:
>
> From: Naveen Kumar M <mnkumar@google.com>
>
> This patch aims to expose the XHCI_NO_64BIT_SUPPORT flag to the parent
> nodes of xhci for clients to specify if they can not support 64 bit DMA
> memory pointers. This issue was observed with a Google SoC that uses
> a DWC3 controller where the virtual address's higher order bits are
> truncated
>
> Naveen Kumar M (2):
>   usb: host: xhci-plat: Add quirk-no-64-bit-support
>   dt-bindings: usb: add no-64-bit-support property
>
>  Documentation/devicetree/bindings/usb/usb-xhci.yaml | 4 ++++
>  drivers/usb/host/xhci-plat.c                        | 3 +++
>  2 files changed, 7 insertions(+)
>
> --
> 2.42.0.820.g83a721a137-goog
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] usb: host: xhci-plat: Add quirk-no-64-bit-support
  2023-10-31  4:40 ` [PATCH 1/2] usb: host: xhci-plat: Add quirk-no-64-bit-support Naveen Kumar
@ 2023-11-01  4:43   ` Naveen Kumar M
  2023-11-01  6:27     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 10+ messages in thread
From: Naveen Kumar M @ 2023-11-01  4:43 UTC (permalink / raw)
  To: Mathias Nyman, Greg Kroah-Hartman, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-usb, linux-kernel, royluo, devicetree

Adding the reviewers/maintainers I missed in the previous mail to this patch

On Tue, Oct 31, 2023 at 10:10 AM Naveen Kumar <mnkumar@google.com> wrote:
>
> From: Naveen Kumar M <mnkumar@google.com>
>
> This patch exposes the existing quirk XHCI_NO_64BIT_SUPPORT so that dwc3
> clients can also use this flag. Despite HCCPARAMS1 being set to 1 some
> clients may not support 64 bit addressing.
>
> Signed-off-by: Naveen Kumar M <mnkumar@google.com>
> ---
>  drivers/usb/host/xhci-plat.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
> index b93161374293..d5f37decb7da 100644
> --- a/drivers/usb/host/xhci-plat.c
> +++ b/drivers/usb/host/xhci-plat.c
> @@ -249,6 +249,9 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
>                 if (device_property_read_bool(tmpdev, "quirk-broken-port-ped"))
>                         xhci->quirks |= XHCI_BROKEN_PORT_PED;
>
> +               if (device_property_read_bool(tmpdev, "quirk-no-64-bit-support"))
> +                       xhci->quirks |= XHCI_NO_64BIT_SUPPORT;
> +
>                 device_property_read_u32(tmpdev, "imod-interval-ns",
>                                          &xhci->imod_interval);
>         }
> --
> 2.42.0.820.g83a721a137-goog
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] usb: host: xhci-plat: Add quirk-no-64-bit-support
  2023-11-01  4:43   ` Naveen Kumar M
@ 2023-11-01  6:27     ` Greg Kroah-Hartman
  0 siblings, 0 replies; 10+ messages in thread
From: Greg Kroah-Hartman @ 2023-11-01  6:27 UTC (permalink / raw)
  To: Naveen Kumar M
  Cc: Mathias Nyman, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-usb, linux-kernel, royluo, devicetree

On Wed, Nov 01, 2023 at 10:13:08AM +0530, Naveen Kumar M wrote:
> Adding the reviewers/maintainers I missed in the previous mail to this patch

That's not going to work, please resend a new series, and please, do not
top-post.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] dt-bindings: usb: add no-64-bit-support property
       [not found]   ` <CA+Hc5+4Gh6gDuD_NORmJR0zHx3qK6oTagx=wQ_EWf=_NJ0qy6A@mail.gmail.com>
  2023-11-01  4:36     ` Naveen Kumar M
@ 2023-11-01  7:06     ` Krzysztof Kozlowski
  1 sibling, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2023-11-01  7:06 UTC (permalink / raw)
  To: Naveen Kumar M, Mathias Nyman, Greg Kroah-Hartman, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-usb, linux-kernel, royluo, devicetree

On 01/11/2023 05:20, Naveen Kumar M wrote:
> Adding the reviewers/maintainers I missed in the previous mail to this patch

Nope, it does not work like this.
1. I don't have the patch in mailbox.
2. How can I be sure it was even tested by automation?

I won't be reviewing it. Follow Linux kernel submission process.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-11-01  7:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-31  4:40 [PATCH 0/2] Add a quirk in xhci-plat for parent nodes to specify no 64 bit support Naveen Kumar
2023-10-31  4:40 ` [PATCH 1/2] usb: host: xhci-plat: Add quirk-no-64-bit-support Naveen Kumar
2023-11-01  4:43   ` Naveen Kumar M
2023-11-01  6:27     ` Greg Kroah-Hartman
2023-10-31  4:40 ` [PATCH 2/2] dt-bindings: usb: add no-64-bit-support property Naveen Kumar
2023-10-31  5:54   ` Greg Kroah-Hartman
2023-10-31 16:52   ` Krzysztof Kozlowski
     [not found]   ` <CA+Hc5+4Gh6gDuD_NORmJR0zHx3qK6oTagx=wQ_EWf=_NJ0qy6A@mail.gmail.com>
2023-11-01  4:36     ` Naveen Kumar M
2023-11-01  7:06     ` Krzysztof Kozlowski
2023-11-01  4:42 ` [PATCH 0/2] Add a quirk in xhci-plat for parent nodes to specify no 64 bit support Naveen Kumar M

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox