Add the Renesas USBF controller support
Subsystems (6)
Herve Codina
maintainerv2 cover Add the Renesas USBF controller support
Hi,
This series add support for the Renesas USBF controller (USB Device Controller) available in the Renesas RZ/N1 SoC.
The first three patches are related to the H2MODE bit from CFG_USB register. This register is managed by the Renesas sysctrl driver. The H2MODE bit allows to configure the internal USB Port interface for two hosts or one host and one device.
The next patches are related to the USBF controller with a new binding definition, the driver itself and myself as a maintainer of this controller.
Best regards,
Herve Codina
Changes v1 -> v2:
- Patch 1:
Rename r9a06g032_sysctrl_get_usb_h2mode to r9a06g032_sysctrl_get_usb_role and return USB_ROLE_{HOST,DEVICE} or an error code.
Reword commit log
- Patches 2 and 3:
No changes. Some previous feedbacks still need to be taken into account
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/ - Patch 4:
Rename file from renesas,usbf.yaml to renesas,rzn1-usbf.yaml. Remove 'oneOf'.
Add blank line and line break.
Add 'power-domains'.
Reword commit log
- Patch 5:
Remove clocks handling (handled by runtime PM through the clock domain pointed by power-domains).
Fix compilation warning raised by the 'kernel test robot'.
- Patch 6:
Add 'power-domains'
- Patch 7:
Add 'Reviewed-by: Geert Uytterhoeven <[email protected]>'
Herve Codina (7):
soc: renesas: r9a06g032-sysctrl: Export function to get the usb role
dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
soc: renesas: r9a06g032-sysctrl: Handle h2mode device-tree property
dt-bindings: usb: add the Renesas RZ/N1 USBF controller binding
usb: gadget: udc: add Renesas RZ/N1 USBF controller support
ARM: dts: r9a06g032: Add the USBF controller node
MAINTAINERS: add the Renesas RZ/N1 USBF controller entry
.../clock/renesas,r9a06g032-sysctrl.yaml | 10 + .../bindings/usb/renesas,rzn1-usbf.yaml | 68 + MAINTAINERS | 8 + arch/arm/boot/dts/r9a06g032.dtsi | 12 + drivers/clk/renesas/r9a06g032-clocks.c | 39 + drivers/usb/gadget/udc/Kconfig | 11 + drivers/usb/gadget/udc/Makefile | 1 + drivers/usb/gadget/udc/renesas_usbf.c | 3430 +++++++++++++++++ include/linux/soc/renesas/r9a06g032-sysctrl.h | 2 + 9 files changed, 3581 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml create mode 100644 drivers/usb/gadget/udc/renesas_usbf.c
Signature · 1 line
2.38.1
Herve Codina
maintainerPATCH v2 1/7 soc: renesas: r9a06g032-sysctrl: Export function to get the usb role
The usb role retrieved is determined from the CFG_USB[H2MODE] value. The CFG_USB register is located within the system controller.
We need a helper to get the usb role based on H2MODE value from the CFG_USB register without syscon.
--- drivers/clk/renesas/r9a06g032-clocks.c | 18 ++++++++++++++++++ include/linux/soc/renesas/r9a06g032-sysctrl.h | 2 ++ 2 files changed, 20 insertions(+)
drivers/clk/renesas/r9a06g032-clocks.c +18 -0
@@ -23,8 +23,11 @@#include <linux/slab.h> #include <linux/soc/renesas/r9a06g032-sysctrl.h> #include <linux/spinlock.h> +#include <linux/usb/role.h> #include <dt-bindings/clock/r9a06g032-sysctrl.h> +#define R9A06G032_SYSCTRL_USB 0x00 +#define R9A06G032_SYSCTRL_USB_H2MODE (1<<1)#define R9A06G032_SYSCTRL_DMAMUX 0xA0struct r9a06g032_gate {
@@ -341,6 +344,21 @@ int r9a06g032_sysctrl_set_dmamux(u32 mask, u32 val) }EXPORT_SYMBOL_GPL (r9a06g032_sysctrl_set_dmamux); + +/* Exported helper to get the H2MODE bit from USB register */ +int r9a06g032_sysctrl_get_usb_role (void ) +{ +u32 usb; + +if (!sysctrl_priv) +return -EPROBE_DEFER ; + + usb =readl (sysctrl_priv->reg +R9A06G032_SYSCTRL_USB ); +return (usb &R9A06G032_SYSCTRL_USB_H2MODE ) ? +USB_ROLE_HOST :USB_ROLE_DEVICE ; +} +EXPORT_SYMBOL_GPL (r9a06g032_sysctrl_get_usb_role); +/* register/bit pairs are encoded as an uint16_t */ static void clk_rdesc_set(struct r9a06g032_priv *clocks,
include/linux/soc/renesas/r9a06g032-sysctrl.h +2 -0
@@ -4,8 +4,10 @@#ifdef CONFIG_CLK_R9A06G032 int r9a06g032_sysctrl_set_dmamux (u32 mask,u32 val); +int r9a06g032_sysctrl_get_usb_role (void );#else static inline int r9a06g032_sysctrl_set_dmamux (u32 mask,u32 val) {return -ENODEV ; } +static inline int r9a06g032_sysctrl_get_usb_role (void ) {return -ENODEV ; }#endif #endif /* __LINUX_SOC_RENESAS_R9A06G032_SYSCTRL_H__ */
Signature · 1 line
2.38.1
Re: [PATCH v2 1/7] soc: renesas: r9a06g032-sysctrl: Export function to get the usb role
Quoted 8 lines · Herve Codina
The usb role retrieved is determined from the CFG_USB[H2MODE] value. The
CFG_USBregister is located within the system controller.We need a helper to get the usb role based on H2MODE value from the
CFG_USBregister without syscon.Signed-off-by Herve Codina <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Herve Codina
maintainerPATCH v2 2/7 dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
In reply to Herve CodinaAdd the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 device
--- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +10 -0
@@ -39,6 +39,16 @@ properties: '#power-domain-cells': const: 0 + renesas,h2mode: + description: | + Configure the USBs mode. + - <0> : the USBs are in 1 host and 1 device mode. + - <1> : the USBs are in 2 host mode. + If the property is not present, the value used is the one already present + in the CFG_USB register (from reset or set by the bootloader). + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + '#address-cells': const: 1
Signature · 1 line
2.38.1
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 6 lines · Herve Codina
Add the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 deviceSigned-off-by Herve Codina <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
In reply to Herve CodinaQuoted 17 lines · Herve Codina
Add the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 deviceSigned-off-by Herve Codina <[email protected]>--- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +0
-0@@ -39,6 +39,16 @@ properties: '#power-domain-cells': const: 0
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml properties: · line 50
Quoted 10 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +9
-0+ renesas,h2mode: + description: | + Configure the USBs mode. + - <0> : the USBs are in 1 host and 1 device mode. + - <1> : the USBs are in 2 host mode. + If the property is not present, the value used is the one already present + in the CFG_USB register (from reset or set by the bootloader). + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]
0/1 are quite cryptic. Why not making it a string which is easy to read and understand? Can be something like "two-hosts" and "one-host". Or anything you find more readable...
Best regards,
Krzysztof
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Herve Codina
Add the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 deviceSigned-off-by Herve Codina <[email protected]>--- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +0
-0@@ -39,6 +39,16 @@ properties: '#power-domain-cells': const: 0
Quoted 13 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml properties: · line 50
Quoted 9 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +9
-0+ renesas,h2mode: + description: | + Configure the USBs mode. + - <0> : the USBs are in 1 host and 1 device mode. + - <1> : the USBs are in 2 host mode. + If the property is not present, the value used is the one already present + in the CFG_USB register (from reset or set by the bootloader). + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]0/1 are quite cryptic. Why not making it a string which is easy to read and understand? Can be something like "two-hosts" and "one-host". Or anything you find more readable...
...but actually you should rather make it a property of your USB controller, not clock controller. You have two controllers and we have a generic property for them - dr_mode.
Best regards,
Krzysztof
Herve Codina
maintainerRe: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi Krzysztof,
Quoted 34 lines · On Tue, 15 Nov 2022 14:07:52 +0100 Krzysztof Kozlowski…
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Herve Codina
Add the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 deviceSigned-off-by Herve Codina <[email protected]>--- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +0
-0@@ -39,6 +39,16 @@ properties: '#power-domain-cells': const: 0Quoted 13 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml properties: · line 50
Quoted 9 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +9
-0+ renesas,h2mode: + description: | + Configure the USBs mode. + - <0> : the USBs are in 1 host and 1 device mode. + - <1> : the USBs are in 2 host mode. + If the property is not present, the value used is the one already present + in the CFG_USB register (from reset or set by the bootloader). + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]0/1 are quite cryptic. Why not making it a string which is easy to read and understand? Can be something like "two-hosts" and "one-host". Or anything you find more readable...
Quoted 7 lines
...but actually you should rather make it a property of your USB controller, not clock controller. You have two controllers and we have a generic property for them -
dr_mode.Best regards,
Krzysztof
IMHO, this property in the USB controllers does not make sense. Indeed each controller cannot have a different 'mode'. Some controllers are USB host only (EHCI and OHCI) and the USBF controller I worked on is device only.
'h2mode' allows to choose between host or device on one of the USB but not at the USB controller level.
This property should be handle outside the USB controller nodes.
Currently, this node (declared as a clock node) is in fact a sysctrl node and can do some configuration not related to clocks.
I agree with you something related to choosing USB Host/Device in a clock node seems strange.
Some discussion were already opened related to this property and how to handle it:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
Regards,
Hervé
Signature · 3 lines
Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Herve Codina
maintainerRe: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi Krzysztof, Geert,
Quoted 59 lines · On Tue, 15 Nov 2022 15:04:17 +0100 Herve Codina <[email protected]>…
Hi Krzysztof,
Quoted 34 lines · On Tue, 15 Nov 2022 14:07:52 +0100 Krzysztof Kozlowski…
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Herve Codina
Add the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 deviceSigned-off-by Herve Codina <[email protected]>--- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +0
-0@@ -39,6 +39,16 @@ properties: '#power-domain-cells': const: 0Quoted 13 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml properties: · line 50
Quoted 9 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +9
-0+ renesas,h2mode: + description: | + Configure the USBs mode. + - <0> : the USBs are in 1 host and 1 device mode. + - <1> : the USBs are in 2 host mode. + If the property is not present, the value used is the one already present + in the CFG_USB register (from reset or set by the bootloader). + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]0/1 are quite cryptic. Why not making it a string which is easy to read and understand? Can be something like "two-hosts" and "one-host". Or anything you find more readable...
Quoted 7 lines
...but actually you should rather make it a property of your USB controller, not clock controller. You have two controllers and we have a generic property for them -
dr_mode.Best regards,
KrzysztofIMHO, this property in the USB controllers does not make sense. Indeed each controller cannot have a different 'mode'. Some controllers are USB host only (EHCI and OHCI) and the USBF controller I worked on is device only.
'h2mode' allows to choose between host or device on one of the USB but not at the USB controller level.This property should be handle outside the USB controller nodes.
Currently, this node (declared as a clock node) is in fact a sysctrl node and can do some configuration not related to clocks.
Quoted 8 lines
I agree with you something related to choosing USB Host/Device in a clock node seems strange.
Some discussion were already opened related to this property and how to handle it:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
We advanced on this topic.
First, even if 'renesas,r9a06g032-sysctrl.yaml' is present in the devicetree/bindings/clock/ directory, this node is really a 'system controller' node:
- title: Renesas RZ/N1D (R9A06G032) System Controller
- compatible: renesas,r9a06g032-sysctrl
It handles clocks, power domains, some DMA routing, ...
Now, the property 'h2mode' allows to choose between:
- 2 USB hosts
or
- 1 USB host and 1 USB device.
This switching is system wide and has no reason to be done in one specific USB controller. It can impact multiple devices and PLL settings.
The 'renesas,r9a06g032-sysctrl' node, as the system control node of our system, is the best candidate to handle the property.
In order to be less cryptic in the property value, what do you think about:
renesas,h2mode:
- one-dev : the USBs are in 1 host and 1 device mode.
- only-hosts : the USBs are in 2 hosts mode.
With these details and change on the property value, Is it ok for you to have the 'renesas,h2mode' property in the 'renesas,r9a06g032-sysctrl' node ?
Regards,
Hervé
Signature · 3 lines
Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 88 lines · Herve Codina
Hi Krzysztof, Geert,
Quoted 59 lines · On Tue, 15 Nov 2022 15:04:17 +0100 Herve Codina <[email protected]>…
Hi Krzysztof,
Quoted 34 lines · On Tue, 15 Nov 2022 14:07:52 +0100 Krzysztof Kozlowski…
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Herve Codina
Add the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 deviceSigned-off-by Herve Codina <[email protected]>--- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +0
-0@@ -39,6 +39,16 @@ properties: '#power-domain-cells': const: 0Quoted 13 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml properties: · line 50
Quoted 9 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +9
-0+ renesas,h2mode: + description: | + Configure the USBs mode. + - <0> : the USBs are in 1 host and 1 device mode. + - <1> : the USBs are in 2 host mode. + If the property is not present, the value used is the one already present + in the CFG_USB register (from reset or set by the bootloader). + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]0/1 are quite cryptic. Why not making it a string which is easy to read and understand? Can be something like "two-hosts" and "one-host". Or anything you find more readable...
Quoted 7 lines
...but actually you should rather make it a property of your USB controller, not clock controller. You have two controllers and we have a generic property for them -
dr_mode.Best regards,
KrzysztofIMHO, this property in the USB controllers does not make sense. Indeed each controller cannot have a different 'mode'. Some controllers are USB host only (EHCI and OHCI) and the USBF controller I worked on is device only.
'h2mode' allows to choose between host or device on one of the USB but not at the USB controller level.This property should be handle outside the USB controller nodes.
Currently, this node (declared as a clock node) is in fact a sysctrl node and can do some configuration not related to clocks.
Quoted 8 lines
I agree with you something related to choosing USB Host/Device in a clock node seems strange.
Some discussion were already opened related to this property and how to handle it:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/We advanced on this topic.
First, even if 'renesas,r9a06g032-sysctrl.yaml' is present in the devicetree/bindings/clock/ directory, this node is really a 'system controller' node:
- title: Renesas RZ/N1D (R9A06G032) System Controller
- compatible: renesas,r9a06g032-sysctrlIt handles clocks, power domains, some DMA routing, ...
Now, the property 'h2mode' allows to choose between:
- 2 USB hosts
or
- 1 USB host and 1 USB device.
Quoted 6 lines
This switching is system wide and has no reason to be done in one specific USB controller. It can impact multiple devices and PLL settings.
The 'renesas,r9a06g032-sysctrl' node, as the system control node of our system, is the best candidate to handle the property.
Not necessarily. IIUC, you have:
1. sysctrl with some register(s) for choosing device mode
2. usb device or host at one address
3. usb host at separate address
If so then:
A. Pretty often we have wrapper nodes for this purpose (USB, phy wrappers or glues) which are usually needed to configure something for a generic block (like Synopsys etc).
B. Pretty often the device (so your USB host or device) needs to poke something in system controller registers, e.g. for power or some other setup.
Your case looks a lot like (B). We have many, many of such examples already. Actually it is exactly like that, except that it affects possibility of another device (e.g. choosing USB device blocks having host there).
C. It looks a bit like a multi-serial-protocol interfaces (so UART+I2C+SPI). The difference is that such cases have all these nodes defined as a children of the protocol-wrapping device. Not here.
I would propose to go with (B) unless of course it's causes some crazy architecture/code choices. Why? Because with exception of (C) we should not define properties which represent DT node choices. IOW, Choosing a node and compatible (e.g. usb controller as device) is enough to describe the hardware. No need for other properties to control some register in other block.
Quoted 6 lines
In order to be less cryptic in the property value, what do you think about:
renesas,h2mode:
- one-dev : the USBs are in 1 host and 1 device mode.
- only-hosts : the USBs are in 2 hosts mode.
Name looks better, if we go this path.
Quoted 4 lines
With these details and change on the property value, Is it ok for you to have the 'renesas,h2mode' property in the 'renesas,r9a06g032-sysctrl' node ?
Best regards,
Krzysztof
Herve Codina
maintainerRe: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi,
Quoted 93 lines · On Mon, 21 Nov 2022 12:43:16 +0100 Krzysztof Kozlowski…
Quoted 92 lines · Herve Codina
Hi Krzysztof, Geert,
Quoted 59 lines · On Tue, 15 Nov 2022 15:04:17 +0100 Herve Codina <[email protected]>…
Hi Krzysztof,
Quoted 34 lines · On Tue, 15 Nov 2022 14:07:52 +0100 Krzysztof Kozlowski…
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Herve Codina
Add the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 deviceSigned-off-by Herve Codina <[email protected]>--- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +0
-0@@ -39,6 +39,16 @@ properties: '#power-domain-cells': const: 0Quoted 13 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml properties: · line 50
Quoted 9 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +9
-0+ renesas,h2mode: + description: | + Configure the USBs mode. + - <0> : the USBs are in 1 host and 1 device mode. + - <1> : the USBs are in 2 host mode. + If the property is not present, the value used is the one already present + in the CFG_USB register (from reset or set by the bootloader). + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]0/1 are quite cryptic. Why not making it a string which is easy to read and understand? Can be something like "two-hosts" and "one-host". Or anything you find more readable...
Quoted 7 lines
...but actually you should rather make it a property of your USB controller, not clock controller. You have two controllers and we have a generic property for them -
dr_mode.Best regards,
KrzysztofIMHO, this property in the USB controllers does not make sense. Indeed each controller cannot have a different 'mode'. Some controllers are USB host only (EHCI and OHCI) and the USBF controller I worked on is device only.
'h2mode' allows to choose between host or device on one of the USB but not at the USB controller level.This property should be handle outside the USB controller nodes.
Currently, this node (declared as a clock node) is in fact a sysctrl node and can do some configuration not related to clocks.
Quoted 8 lines
I agree with you something related to choosing USB Host/Device in a clock node seems strange.
Some discussion were already opened related to this property and how to handle it:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/We advanced on this topic.
First, even if 'renesas,r9a06g032-sysctrl.yaml' is present in the devicetree/bindings/clock/ directory, this node is really a 'system controller' node:
- title: Renesas RZ/N1D (R9A06G032) System Controller
- compatible: renesas,r9a06g032-sysctrlIt handles clocks, power domains, some DMA routing, ...
Now, the property 'h2mode' allows to choose between:
- 2 USB hosts
or
- 1 USB host and 1 USB device.This switching is system wide and has no reason to be done in one specific USB controller. It can impact multiple devices and PLL settings.
Quoted 9 lines
Quoted 2 lines
The 'renesas,r9a06g032-sysctrl' node, as the system control node of our system, is the best candidate to handle the property.
Not necessarily. IIUC, you have:
1. sysctrl with some register(s) for choosing device mode
2. usb device or host at one address
3. usb host at separate address
Just to clarify, usb device and host controller are not provided by the same IP.
We have an USB host at some address range (PCI OHCI/EHCI USB host below a PCI bridge) and the USB device at some other address range (below a AHB to someting bridge).
And I am not sure that only USB host or devices are affected by this property change.
Quoted 8 lines
If so then:
A. Pretty often we have wrapper nodes for this purpose (USB, phy wrappers or glues) which are usually needed to configure something for a generic block (like Synopsys etc).B. Pretty often the device (so your USB host or device) needs to poke something in system controller registers, e.g. for power or some other setup.
And we did it for some items (clocks and power).
Quoted 10 lines
Your case looks a lot like (B). We have many, many of such examples already. Actually it is exactly like that, except that it affects possibility of another device (e.g. choosing USB device blocks having host there).
C. It looks a bit like a multi-serial-protocol interfaces (so UART+I2C+SPI). The difference is that such cases have all these nodes defined as a children of the protocol-wrapping device. Not here.
Quoted 6 lines
I would propose to go with (B) unless of course it's causes some crazy architecture/code choices. Why? Because with exception of (C) we should not define properties which represent DT node choices. IOW, Choosing a node and compatible (e.g. usb controller as device) is enough to describe the hardware. No need for other properties to control some register in other block.
The issue with h2mode is that it affects several devices and these devices should not be in a "running" state when the h2mode is changed.
PCI devices (host controllers) itself are not described in the DT. They are automatically enumerated.
Changing the property in USB device controller can leads to hang on other busses. Indeed, changing this property when a device affected by the property is running can lead to a bus hang.
In order to do that from the USB device controller I need to synchronize the other devices to wait for this setting before running.
1) probe sysctrl without setting h2mode
2) probe some devices (USB host and probably others)
Stop at some point and wait for the h2mode property setting.
3) probe usb device -> Set h2mode property
4) allow devices waiting for the property setting to continue.
This synchronization seems pretty tricky and what to do if nobody set the property (USB device controller not present or status="disabled" for instance) ?
Setting this property in sysctrl probe avoid the need for all of this synchronization:
1) probe sysctrl and set h2mode.
2) probe other devices (no need to wait for the setting as it is already done)
The probing of the other devices (or the starting of they running state) is guaranteed as they all need some clocks and so cannot start without having the sysctrl node already probed.
This sysctrl node handles the clocks.
So, I think that this property must be set during sysctrl probe call.
From the DT point of view, I can put the property in the USB device controller node but I have the feeling that, if I do that, I will do some ugly things at sysctrl probe such as parsing nodes other than the sysctrl one to find the property and set h2mode accordingly :(
Quoted 10 lines
Quoted 8 lines
In order to be less cryptic in the property value, what do you think about:
renesas,h2mode:
- one-dev : the USBs are in 1 host and 1 device mode.
- only-hosts : the USBs are in 2 hosts mode.Name looks better, if we go this path.
Ok, I will take care if we go this path.
Quoted 7 lines
Quoted 5 lines
With these details and change on the property value, Is it ok for you to have the 'renesas,h2mode' property in the 'renesas,r9a06g032-sysctrl' node ?
Regards,
Hervé
Signature · 3 lines
Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 144 lines · Herve Codina
Hi,
Quoted 93 lines · On Mon, 21 Nov 2022 12:43:16 +0100 Krzysztof Kozlowski…
Quoted 92 lines · Herve Codina
Hi Krzysztof, Geert,
Quoted 59 lines · On Tue, 15 Nov 2022 15:04:17 +0100 Herve Codina <[email protected]>…
Hi Krzysztof,
Quoted 34 lines · On Tue, 15 Nov 2022 14:07:52 +0100 Krzysztof Kozlowski…
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Herve Codina
Add the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 deviceSigned-off-by Herve Codina <[email protected]>--- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +0
-0@@ -39,6 +39,16 @@ properties: '#power-domain-cells': const: 0Quoted 13 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml properties: · line 50
Quoted 9 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +9
-0+ renesas,h2mode: + description: | + Configure the USBs mode. + - <0> : the USBs are in 1 host and 1 device mode. + - <1> : the USBs are in 2 host mode. + If the property is not present, the value used is the one already present + in the CFG_USB register (from reset or set by the bootloader). + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]0/1 are quite cryptic. Why not making it a string which is easy to read and understand? Can be something like "two-hosts" and "one-host". Or anything you find more readable...
Quoted 7 lines
...but actually you should rather make it a property of your USB controller, not clock controller. You have two controllers and we have a generic property for them -
dr_mode.Best regards,
KrzysztofIMHO, this property in the USB controllers does not make sense. Indeed each controller cannot have a different 'mode'. Some controllers are USB host only (EHCI and OHCI) and the USBF controller I worked on is device only.
'h2mode' allows to choose between host or device on one of the USB but not at the USB controller level.This property should be handle outside the USB controller nodes.
Currently, this node (declared as a clock node) is in fact a sysctrl node and can do some configuration not related to clocks.
Quoted 8 lines
I agree with you something related to choosing USB Host/Device in a clock node seems strange.
Some discussion were already opened related to this property and how to handle it:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/We advanced on this topic.
First, even if 'renesas,r9a06g032-sysctrl.yaml' is present in the devicetree/bindings/clock/ directory, this node is really a 'system controller' node:
- title: Renesas RZ/N1D (R9A06G032) System Controller
- compatible: renesas,r9a06g032-sysctrlIt handles clocks, power domains, some DMA routing, ...
Now, the property 'h2mode' allows to choose between:
- 2 USB hosts
or
- 1 USB host and 1 USB device.This switching is system wide and has no reason to be done in one specific USB controller. It can impact multiple devices and PLL settings.
Quoted 9 lines
Quoted 2 lines
The 'renesas,r9a06g032-sysctrl' node, as the system control node of our system, is the best candidate to handle the property.
Not necessarily. IIUC, you have:
1. sysctrl with some register(s) for choosing device mode
2. usb device or host at one address
3. usb host at separate addressJust to clarify, usb device and host controller are not provided by the same IP.
We have an USB host at some address range (PCI OHCI/EHCI USB host below a PCI bridge) and the USB device at some other address range (below a AHB to someting bridge).
And I am not sure that only USB host or devices are affected by this property change.Quoted 8 lines
If so then:
A. Pretty often we have wrapper nodes for this purpose (USB, phy wrappers or glues) which are usually needed to configure something for a generic block (like Synopsys etc).B. Pretty often the device (so your USB host or device) needs to poke something in system controller registers, e.g. for power or some other setup.
And we did it for some items (clocks and power).
Quoted 10 lines
Your case looks a lot like (B). We have many, many of such examples already. Actually it is exactly like that, except that it affects possibility of another device (e.g. choosing USB device blocks having host there).
C. It looks a bit like a multi-serial-protocol interfaces (so UART+I2C+SPI). The difference is that such cases have all these nodes defined as a children of the protocol-wrapping device. Not here.
Quoted 6 lines
I would propose to go with (B) unless of course it's causes some crazy architecture/code choices. Why? Because with exception of (C) we should not define properties which represent DT node choices. IOW, Choosing a node and compatible (e.g. usb controller as device) is enough to describe the hardware. No need for other properties to control some register in other block.
Quoted 2 lines
The issue with h2mode is that it affects several devices and these devices should not be in a "running" state when the h2mode is changed.
Why the change should happen when device is running? And why this should be anyway different than your existing hsmode property - it also will happen when system and device are running.
Quoted 2 lines
PCI devices (host controllers) itself are not described in the DT. They are automatically enumerated.
Aren't we talking about USB controller in a MMIO-based SoC?
Quoted 8 lines
Changing the property in USB device controller can leads to hang on other busses. Indeed, changing this property when a device affected by the property is running can lead to a bus hang.>
In order to do that from the USB device controller I need to synchronize the other devices to wait for this setting before running.
1) probe sysctrl without setting h2mode
2) probe some devices (USB host and probably others)
Stop at some point and wait for the h2mode property setting.
Why do you need to wait? Which device needs to wait? There are no such devices... if they are then please bring entire DTS, not some pieces in this patchset.
Quoted 2 lines
3) probe usb device -> Set h2mode property
4) allow devices waiting for the property setting to continue.
I don't get why do you need such order. Your sysctrl also probes any time so old solution has exactly the same problem, doesn't it?
Quoted 8 lines
This synchronization seems pretty tricky and what to do if nobody set the property (USB device controller not present or status="disabled" for instance) ?
Setting this property in sysctrl probe avoid the need for all of this synchronization:
1) probe sysctrl and set h2mode.
2) probe other devices (no need to wait for the setting as it is already done)
No, because other devices probe before sysctrl. If you bring here any manual ordering, you are doing it wrong.
Quoted 4 lines
The probing of the other devices (or the starting of they running state) is guaranteed as they all need some clocks and so cannot start without having the sysctrl node already probed.
This sysctrl node handles the clocks.
Ah, so sysctrl is a clock controller for these?
Then still there are no other devices depending on your USB. The USB is the owner of this property (specific bits in register), no one else.
Best regards,
Krzysztof
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi Krzysztof,
Quoted 184 lines · Krzysztof Kozlowski
Quoted 134 lines · Herve Codina
Quoted 86 lines · On Mon, 21 Nov 2022 12:43:16 +0100 Krzysztof Kozlowski…
Quoted 85 lines · Herve Codina
Quoted 55 lines · On Tue, 15 Nov 2022 15:04:17 +0100 Herve Codina <[email protected]>…
On Tue, 15 Nov 2022 14:07:52 +0100
Quoted 34 lines · Krzysztof Kozlowski
Quoted 19 lines · Herve Codina
Quoted 18 lines
Add the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 deviceSigned-off-by Herve Codina <[email protected]>--- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +0
-0@@ -39,6 +39,16 @@ properties: '#power-domain-cells': const: 0Quoted 13 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml properties: · line 50
Quoted 9 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +9
-0+ renesas,h2mode: + description: | + Configure the USBs mode. + - <0> : the USBs are in 1 host and 1 device mode. + - <1> : the USBs are in 2 host mode. + If the property is not present, the value used is the one already present + in the CFG_USB register (from reset or set by the bootloader). + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]0/1 are quite cryptic. Why not making it a string which is easy to read and understand? Can be something like "two-hosts" and "one-host". Or anything you find more readable...
Quoted 7 lines
...but actually you should rather make it a property of your USB controller, not clock controller. You have two controllers and we have a generic property for them -
dr_mode.Best regards,
KrzysztofIMHO, this property in the USB controllers does not make sense. Indeed each controller cannot have a different 'mode'. Some controllers are USB host only (EHCI and OHCI) and the USBF controller I worked on is device only.
'h2mode' allows to choose between host or device on one of the USB but not at the USB controller level.This property should be handle outside the USB controller nodes.
Currently, this node (declared as a clock node) is in fact a sysctrl node and can do some configuration not related to clocks.
Quoted 8 lines
I agree with you something related to choosing USB Host/Device in a clock node seems strange.
Some discussion were already opened related to this property and how to handle it:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/We advanced on this topic.
First, even if 'renesas,r9a06g032-sysctrl.yaml' is present in the devicetree/bindings/clock/ directory, this node is really a 'system controller' node:
- title: Renesas RZ/N1D (R9A06G032) System Controller
- compatible: renesas,r9a06g032-sysctrlIt handles clocks, power domains, some DMA routing, ...
Now, the property 'h2mode' allows to choose between:
- 2 USB hosts
or
- 1 USB host and 1 USB device.This switching is system wide and has no reason to be done in one specific USB controller. It can impact multiple devices and PLL settings.
Quoted 9 lines
Quoted 2 lines
The 'renesas,r9a06g032-sysctrl' node, as the system control node of our system, is the best candidate to handle the property.
Not necessarily. IIUC, you have:
1. sysctrl with some register(s) for choosing device mode
2. usb device or host at one address
3. usb host at separate addressJust to clarify, usb device and host controller are not provided by the same IP.
We have an USB host at some address range (PCI OHCI/EHCI USB host below a PCI bridge) and the USB device at some other address range (below a AHB to someting bridge).
And I am not sure that only USB host or devices are affected by this property change.Quoted 8 lines
If so then:
A. Pretty often we have wrapper nodes for this purpose (USB, phy wrappers or glues) which are usually needed to configure something for a generic block (like Synopsys etc).B. Pretty often the device (so your USB host or device) needs to poke something in system controller registers, e.g. for power or some other setup.
And we did it for some items (clocks and power).
Quoted 10 lines
Your case looks a lot like (B). We have many, many of such examples already. Actually it is exactly like that, except that it affects possibility of another device (e.g. choosing USB device blocks having host there).
C. It looks a bit like a multi-serial-protocol interfaces (so UART+I2C+SPI). The difference is that such cases have all these nodes defined as a children of the protocol-wrapping device. Not here.
Quoted 6 lines
I would propose to go with (B) unless of course it's causes some crazy architecture/code choices. Why? Because with exception of (C) we should not define properties which represent DT node choices. IOW, Choosing a node and compatible (e.g. usb controller as device) is enough to describe the hardware. No need for other properties to control some register in other block.
Quoted 2 lines
The issue with h2mode is that it affects several devices and these devices should not be in a "running" state when the h2mode is changed.
Why the change should happen when device is running? And why this should be anyway different than your existing hsmode property - it also will happen when system and device are running.
Quoted 2 lines
PCI devices (host controllers) itself are not described in the DT. They are automatically enumerated.
Aren't we talking about USB controller in a MMIO-based SoC?
Quoted 8 lines
Changing the property in USB device controller can leads to hang on other busses. Indeed, changing this property when a device affected by the property is running can lead to a bus hang.>
In order to do that from the USB device controller I need to synchronize the other devices to wait for this setting before running.
1) probe sysctrl without setting h2mode
2) probe some devices (USB host and probably others)
Stop at some point and wait for the h2mode property setting.Why do you need to wait? Which device needs to wait? There are no such devices... if they are then please bring entire DTS, not some pieces in this patchset.
Quoted 2 lines
3) probe usb device -> Set h2mode property
4) allow devices waiting for the property setting to continue.I don't get why do you need such order. Your sysctrl also probes any time so old solution has exactly the same problem, doesn't it?
Quoted 8 lines
This synchronization seems pretty tricky and what to do if nobody set the property (USB device controller not present or status="disabled" for instance) ?
Setting this property in sysctrl probe avoid the need for all of this synchronization:
1) probe sysctrl and set h2mode.
2) probe other devices (no need to wait for the setting as it is already done)No, because other devices probe before sysctrl. If you bring here any manual ordering, you are doing it wrong.
Quoted 4 lines
The probing of the other devices (or the starting of they running state) is guaranteed as they all need some clocks and so cannot start without having the sysctrl node already probed.
This sysctrl node handles the clocks.
Quoted 4 lines
Ah, so sysctrl is a clock controller for these?
Then still there are no other devices depending on your USB. The USB is the owner of this property (specific bits in register), no one else.
1. There are two USB devices.
2. The USB drivers can be modular, the sysctrl driver cannot, as it is the main clock controller.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 196 lines · Geert Uytterhoeven
Hi Krzysztof,
Quoted 184 lines · Krzysztof Kozlowski
Quoted 134 lines · Herve Codina
Quoted 86 lines · On Mon, 21 Nov 2022 12:43:16 +0100 Krzysztof Kozlowski…
Quoted 85 lines · Herve Codina
Quoted 55 lines · On Tue, 15 Nov 2022 15:04:17 +0100 Herve Codina <[email protected]>…
On Tue, 15 Nov 2022 14:07:52 +0100
Quoted 34 lines · Krzysztof Kozlowski
Quoted 19 lines · Herve Codina
Quoted 18 lines
Add the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 deviceSigned-off-by Herve Codina <[email protected]>--- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +0
-0@@ -39,6 +39,16 @@ properties: '#power-domain-cells': const: 0Quoted 13 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml properties: · line 50
Quoted 9 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +9
-0+ renesas,h2mode: + description: | + Configure the USBs mode. + - <0> : the USBs are in 1 host and 1 device mode. + - <1> : the USBs are in 2 host mode. + If the property is not present, the value used is the one already present + in the CFG_USB register (from reset or set by the bootloader). + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]0/1 are quite cryptic. Why not making it a string which is easy to read and understand? Can be something like "two-hosts" and "one-host". Or anything you find more readable...
Quoted 7 lines
...but actually you should rather make it a property of your USB controller, not clock controller. You have two controllers and we have a generic property for them -
dr_mode.Best regards,
KrzysztofIMHO, this property in the USB controllers does not make sense. Indeed each controller cannot have a different 'mode'. Some controllers are USB host only (EHCI and OHCI) and the USBF controller I worked on is device only.
'h2mode' allows to choose between host or device on one of the USB but not at the USB controller level.This property should be handle outside the USB controller nodes.
Currently, this node (declared as a clock node) is in fact a sysctrl node and can do some configuration not related to clocks.
Quoted 8 lines
I agree with you something related to choosing USB Host/Device in a clock node seems strange.
Some discussion were already opened related to this property and how to handle it:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/We advanced on this topic.
First, even if 'renesas,r9a06g032-sysctrl.yaml' is present in the devicetree/bindings/clock/ directory, this node is really a 'system controller' node:
- title: Renesas RZ/N1D (R9A06G032) System Controller
- compatible: renesas,r9a06g032-sysctrlIt handles clocks, power domains, some DMA routing, ...
Now, the property 'h2mode' allows to choose between:
- 2 USB hosts
or
- 1 USB host and 1 USB device.This switching is system wide and has no reason to be done in one specific USB controller. It can impact multiple devices and PLL settings.
Quoted 9 lines
Quoted 2 lines
The 'renesas,r9a06g032-sysctrl' node, as the system control node of our system, is the best candidate to handle the property.
Not necessarily. IIUC, you have:
1. sysctrl with some register(s) for choosing device mode
2. usb device or host at one address
3. usb host at separate addressJust to clarify, usb device and host controller are not provided by the same IP.
We have an USB host at some address range (PCI OHCI/EHCI USB host below a PCI bridge) and the USB device at some other address range (below a AHB to someting bridge).
And I am not sure that only USB host or devices are affected by this property change.Quoted 8 lines
If so then:
A. Pretty often we have wrapper nodes for this purpose (USB, phy wrappers or glues) which are usually needed to configure something for a generic block (like Synopsys etc).B. Pretty often the device (so your USB host or device) needs to poke something in system controller registers, e.g. for power or some other setup.
And we did it for some items (clocks and power).
Quoted 10 lines
Your case looks a lot like (B). We have many, many of such examples already. Actually it is exactly like that, except that it affects possibility of another device (e.g. choosing USB device blocks having host there).
C. It looks a bit like a multi-serial-protocol interfaces (so UART+I2C+SPI). The difference is that such cases have all these nodes defined as a children of the protocol-wrapping device. Not here.
Quoted 6 lines
I would propose to go with (B) unless of course it's causes some crazy architecture/code choices. Why? Because with exception of (C) we should not define properties which represent DT node choices. IOW, Choosing a node and compatible (e.g. usb controller as device) is enough to describe the hardware. No need for other properties to control some register in other block.
Quoted 2 lines
The issue with h2mode is that it affects several devices and these devices should not be in a "running" state when the h2mode is changed.
Why the change should happen when device is running? And why this should be anyway different than your existing hsmode property - it also will happen when system and device are running.
Quoted 2 lines
PCI devices (host controllers) itself are not described in the DT. They are automatically enumerated.
Aren't we talking about USB controller in a MMIO-based SoC?
Quoted 8 lines
Changing the property in USB device controller can leads to hang on other busses. Indeed, changing this property when a device affected by the property is running can lead to a bus hang.>
In order to do that from the USB device controller I need to synchronize the other devices to wait for this setting before running.
1) probe sysctrl without setting h2mode
2) probe some devices (USB host and probably others)
Stop at some point and wait for the h2mode property setting.Why do you need to wait? Which device needs to wait? There are no such devices... if they are then please bring entire DTS, not some pieces in this patchset.
Quoted 2 lines
3) probe usb device -> Set h2mode property
4) allow devices waiting for the property setting to continue.I don't get why do you need such order. Your sysctrl also probes any time so old solution has exactly the same problem, doesn't it?
Quoted 8 lines
This synchronization seems pretty tricky and what to do if nobody set the property (USB device controller not present or status="disabled" for instance) ?
Setting this property in sysctrl probe avoid the need for all of this synchronization:
1) probe sysctrl and set h2mode.
2) probe other devices (no need to wait for the setting as it is already done)No, because other devices probe before sysctrl. If you bring here any manual ordering, you are doing it wrong.
Quoted 4 lines
The probing of the other devices (or the starting of they running state) is guaranteed as they all need some clocks and so cannot start without having the sysctrl node already probed.
This sysctrl node handles the clocks.Quoted 4 lines
Ah, so sysctrl is a clock controller for these?
Then still there are no other devices depending on your USB. The USB is the owner of this property (specific bits in register), no one else.
1. There are two USB devices.
2. The USB drivers can be modular, the sysctrl driver cannot, as it is the main clock controller.
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Best regards,
Krzysztof
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi Krzysztof,
Quoted 198 lines · Krzysztof Kozlowski
Quoted 186 lines · Geert Uytterhoeven
Quoted 184 lines · Krzysztof Kozlowski
Quoted 134 lines · Herve Codina
Quoted 86 lines · On Mon, 21 Nov 2022 12:43:16 +0100 Krzysztof Kozlowski…
Quoted 85 lines · Herve Codina
Quoted 55 lines · On Tue, 15 Nov 2022 15:04:17 +0100 Herve Codina <[email protected]>…
On Tue, 15 Nov 2022 14:07:52 +0100
Quoted 34 lines · Krzysztof Kozlowski
Quoted 19 lines · Herve Codina
Quoted 18 lines
Add the h2mode property to force the USBs mode ie:
- 2 hosts
or
- 1 host and 1 deviceSigned-off-by Herve Codina <[email protected]>--- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +0
-0@@ -39,6 +39,16 @@ properties: '#power-domain-cells': const: 0Quoted 13 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml properties: · line 50
Quoted 9 lines
Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml +9
-0+ renesas,h2mode: + description: | + Configure the USBs mode. + - <0> : the USBs are in 1 host and 1 device mode. + - <1> : the USBs are in 2 host mode. + If the property is not present, the value used is the one already present + in the CFG_USB register (from reset or set by the bootloader). + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1]0/1 are quite cryptic. Why not making it a string which is easy to read and understand? Can be something like "two-hosts" and "one-host". Or anything you find more readable...
Quoted 7 lines
...but actually you should rather make it a property of your USB controller, not clock controller. You have two controllers and we have a generic property for them -
dr_mode.Best regards,
KrzysztofIMHO, this property in the USB controllers does not make sense. Indeed each controller cannot have a different 'mode'. Some controllers are USB host only (EHCI and OHCI) and the USBF controller I worked on is device only.
'h2mode' allows to choose between host or device on one of the USB but not at the USB controller level.This property should be handle outside the USB controller nodes.
Currently, this node (declared as a clock node) is in fact a sysctrl node and can do some configuration not related to clocks.
Quoted 8 lines
I agree with you something related to choosing USB Host/Device in a clock node seems strange.
Some discussion were already opened related to this property and how to handle it:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/We advanced on this topic.
First, even if 'renesas,r9a06g032-sysctrl.yaml' is present in the devicetree/bindings/clock/ directory, this node is really a 'system controller' node:
- title: Renesas RZ/N1D (R9A06G032) System Controller
- compatible: renesas,r9a06g032-sysctrlIt handles clocks, power domains, some DMA routing, ...
Now, the property 'h2mode' allows to choose between:
- 2 USB hosts
or
- 1 USB host and 1 USB device.This switching is system wide and has no reason to be done in one specific USB controller. It can impact multiple devices and PLL settings.
Quoted 9 lines
Quoted 2 lines
The 'renesas,r9a06g032-sysctrl' node, as the system control node of our system, is the best candidate to handle the property.
Not necessarily. IIUC, you have:
1. sysctrl with some register(s) for choosing device mode
2. usb device or host at one address
3. usb host at separate addressJust to clarify, usb device and host controller are not provided by the same IP.
We have an USB host at some address range (PCI OHCI/EHCI USB host below a PCI bridge) and the USB device at some other address range (below a AHB to someting bridge).
And I am not sure that only USB host or devices are affected by this property change.Quoted 8 lines
If so then:
A. Pretty often we have wrapper nodes for this purpose (USB, phy wrappers or glues) which are usually needed to configure something for a generic block (like Synopsys etc).B. Pretty often the device (so your USB host or device) needs to poke something in system controller registers, e.g. for power or some other setup.
And we did it for some items (clocks and power).
Quoted 10 lines
Your case looks a lot like (B). We have many, many of such examples already. Actually it is exactly like that, except that it affects possibility of another device (e.g. choosing USB device blocks having host there).
C. It looks a bit like a multi-serial-protocol interfaces (so UART+I2C+SPI). The difference is that such cases have all these nodes defined as a children of the protocol-wrapping device. Not here.
Quoted 6 lines
I would propose to go with (B) unless of course it's causes some crazy architecture/code choices. Why? Because with exception of (C) we should not define properties which represent DT node choices. IOW, Choosing a node and compatible (e.g. usb controller as device) is enough to describe the hardware. No need for other properties to control some register in other block.
Quoted 2 lines
The issue with h2mode is that it affects several devices and these devices should not be in a "running" state when the h2mode is changed.
Why the change should happen when device is running? And why this should be anyway different than your existing hsmode property - it also will happen when system and device are running.
Quoted 2 lines
PCI devices (host controllers) itself are not described in the DT. They are automatically enumerated.
Aren't we talking about USB controller in a MMIO-based SoC?
Quoted 8 lines
Changing the property in USB device controller can leads to hang on other busses. Indeed, changing this property when a device affected by the property is running can lead to a bus hang.>
In order to do that from the USB device controller I need to synchronize the other devices to wait for this setting before running.
1) probe sysctrl without setting h2mode
2) probe some devices (USB host and probably others)
Stop at some point and wait for the h2mode property setting.Why do you need to wait? Which device needs to wait? There are no such devices... if they are then please bring entire DTS, not some pieces in this patchset.
Quoted 2 lines
3) probe usb device -> Set h2mode property
4) allow devices waiting for the property setting to continue.I don't get why do you need such order. Your sysctrl also probes any time so old solution has exactly the same problem, doesn't it?
Quoted 8 lines
This synchronization seems pretty tricky and what to do if nobody set the property (USB device controller not present or status="disabled" for instance) ?
Setting this property in sysctrl probe avoid the need for all of this synchronization:
1) probe sysctrl and set h2mode.
2) probe other devices (no need to wait for the setting as it is already done)No, because other devices probe before sysctrl. If you bring here any manual ordering, you are doing it wrong.
Quoted 4 lines
The probing of the other devices (or the starting of they running state) is guaranteed as they all need some clocks and so cannot start without having the sysctrl node already probed.
This sysctrl node handles the clocks.Quoted 8 lines
Quoted 4 lines
Ah, so sysctrl is a clock controller for these?
Then still there are no other devices depending on your USB. The USB is the owner of this property (specific bits in register), no one else.
1. There are two USB devices.
2. The USB drivers can be modular, the sysctrl driver cannot, as it is the main clock controller.This does not change anything. Herve wrote:
Quoted 8 lines
Quoted 1 line
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 9 lines · Geert Uytterhoeven
Quoted 9 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Quoted 6 lines
Quoted 1 line
Where is the synchronization problem?
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Best regards,
Krzysztof
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
The issue here is that there are two _different drivers_ (USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.
Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 25 lines · Geert Uytterhoeven
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device? Broken dependency. What if you want to use this in a different SoC, where the sysctrl does not provide clocks? Broken dependency.
You have here in such case parent-child dependency, not provider-consumer. Just like for all serial-protocol engines (I2C/UART/SPI).
Best regards,
Krzysztof
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi Krzysztof,
Quoted 33 lines · Krzysztof Kozlowski
Quoted 23 lines · Geert Uytterhoeven
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
Quoted 8 lines
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Exactly.
Quoted 3 lines
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device?
Enabling the clocks does not have anything to do with this ordering. Clock consumers that are part of the clock domain are probed after clock providers. If the clock is missing, that would be an incorrect description in DTS.
Quoted 2 lines
Broken dependency. What if you want to use this in a different SoC, where the sysctrl does not provide clocks? Broken dependency.
This is the "renesas,r9a06g032-sysctrl" DT bindings document. It talks about this SoC implementation specifically.
This is not a random synthesizable IP Core that can appear anywhere.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 27 lines · Geert Uytterhoeven
Quoted 18 lines
Quoted 9 lines
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
Quoted 8 lines
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Quoted 7 lines
Exactly.
Quoted 3 lines
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device?
Enabling the clocks does not have anything to do with this ordering.
That was the argument from Herve, that ordering is guaranteed by clocks.
Quoted 3 lines
Clock consumers that are part of the clock domain are probed after clock providers. If the clock is missing, that would be an incorrect description in DTS.
If not clocks, what else is guaranteeing the ordering? You did not express it in DT.
Best regards,
Krzysztof
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi Krzysztof,
Quoted 36 lines · Krzysztof Kozlowski
Quoted 27 lines · Geert Uytterhoeven
Quoted 18 lines
Quoted 9 lines
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
Quoted 8 lines
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Quoted 7 lines
Exactly.
Quoted 3 lines
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device?
Enabling the clocks does not have anything to do with this ordering.
Quoted 8 lines
That was the argument from Herve, that ordering is guaranteed by clocks.
Quoted 3 lines
Clock consumers that are part of the clock domain are probed after clock providers. If the clock is missing, that would be an incorrect description in DTS.
If not clocks, what else is guaranteeing the ordering? You did not express it in DT.
clocks and power-domains
And if not clocks and power-domains... Oops, we didn't express in DT that the SoC needs to be powered at all ;-)
Can we please stop this pointless discussion?
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 8 lines · Geert Uytterhoeven
Quoted 3 lines
If not clocks, what else is guaranteeing the ordering? You did not express it in DT.
clocks and power-domains
And if not clocks and power-domains... Oops, we didn't express in DT that the SoC needs to be powered at all ;-)
The SoC is a parent of that device, so you have an expressed dependency...
Best regards,
Krzysztof
Herve Codina
maintainerRe: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
In reply to Krzysztof KozlowskiQuoted 44 lines · On Tue, 22 Nov 2022 09:42:48 +0100 Krzysztof Kozlowski…
Quoted 25 lines · Geert Uytterhoeven
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Quoted 5 lines
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device? Broken dependency. What if you want to use this in a different SoC, where the sysctrl does not provide clocks? Broken dependency.
The issue is really related to the Renesas sysctrl itself and not related to the USB drivers themselves.
From the drivers themselves, the issue is not seen (I mean the driver takes no specific action related to this issue).
If we change the SOC, the issue will probably not exist anymore.
Quoted 7 lines
You have here in such case parent-child dependency, not provider-consumer. Just like for all serial-protocol engines (I2C/UART/SPI).
Best regards,
Krzysztof
Signature · 3 lines
Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 53 lines · Herve Codina
Quoted 44 lines · On Tue, 22 Nov 2022 09:42:48 +0100 Krzysztof Kozlowski…
Quoted 25 lines · Geert Uytterhoeven
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Quoted 5 lines
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device? Broken dependency. What if you want to use this in a different SoC, where the sysctrl does not provide clocks? Broken dependency.
Quoted 6 lines
The issue is really related to the Renesas sysctrl itself and not related to the USB drivers themselves.
From the drivers themselves, the issue is not seen (I mean the driver takes no specific action related to this issue).
If we change the SOC, the issue will probably not exist anymore.
Yeah, and in the next SoC you will bring 10 of such properties to sysctrl arguing that if one was approved, 10 is also fine. Somehow people on the lists like to use that argument - I saw it somewhere, so I am allowed to do here the same.
I understand that the registers responsible for configuration are in sysctrl block, but it does not mean that it should be described as part of sysctrl Devicetree node. If there was no synchronization problem, this would be regular example of register in syscon which is handled (toggled) by the device (so USB device/host controller). Since there is synchronization problem, you argue that it is correct representation of hardware. No, it is not, because logically in DT you do not describe mode or existence of other devices in some other node and it still does not describe this ordering.
Best regards,
Krzysztof
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi Krzysztof,
Quoted 60 lines · Krzysztof Kozlowski
Quoted 53 lines · Herve Codina
Quoted 44 lines · On Tue, 22 Nov 2022 09:42:48 +0100 Krzysztof Kozlowski…
Quoted 25 lines · Geert Uytterhoeven
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Quoted 5 lines
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device? Broken dependency. What if you want to use this in a different SoC, where the sysctrl does not provide clocks? Broken dependency.
Quoted 5 lines
The issue is really related to the Renesas sysctrl itself and not related to the USB drivers themselves.
From the drivers themselves, the issue is not seen (I mean the driver takes no specific action related to this issue).
If we change the SOC, the issue will probably not exist anymore.
Quoted 4 lines
Yeah, and in the next SoC you will bring 10 of such properties to sysctrl arguing that if one was approved, 10 is also fine. Somehow people on the lists like to use that argument - I saw it somewhere, so I am allowed to do here the same.
Like pin control properties? ;-)
This property represents a wiring on the board...
I.e. a system integration issue.
Quoted 9 lines
I understand that the registers responsible for configuration are in sysctrl block, but it does not mean that it should be described as part of sysctrl Devicetree node. If there was no synchronization problem, this would be regular example of register in syscon which is handled (toggled) by the device (so USB device/host controller). Since there is synchronization problem, you argue that it is correct representation of hardware. No, it is not, because logically in DT you do not describe mode or existence of other devices in some other node and it still does not describe this ordering.
So we have to drop the property, and let the sysctrl block look for <name>@<reg> nodes, and check which ones are enabled?
Running out of ideas...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 83 lines · Geert Uytterhoeven
Hi Krzysztof,
Quoted 60 lines · Krzysztof Kozlowski
Quoted 53 lines · Herve Codina
Quoted 44 lines · On Tue, 22 Nov 2022 09:42:48 +0100 Krzysztof Kozlowski…
Quoted 25 lines · Geert Uytterhoeven
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Quoted 5 lines
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device? Broken dependency. What if you want to use this in a different SoC, where the sysctrl does not provide clocks? Broken dependency.
Quoted 5 lines
The issue is really related to the Renesas sysctrl itself and not related to the USB drivers themselves.
From the drivers themselves, the issue is not seen (I mean the driver takes no specific action related to this issue).
If we change the SOC, the issue will probably not exist anymore.Quoted 4 lines
Yeah, and in the next SoC you will bring 10 of such properties to sysctrl arguing that if one was approved, 10 is also fine. Somehow people on the lists like to use that argument - I saw it somewhere, so I am allowed to do here the same.
Like pin control properties? ;-)
This property represents a wiring on the board...
I.e. a system integration issue.Quoted 9 lines
I understand that the registers responsible for configuration are in sysctrl block, but it does not mean that it should be described as part of sysctrl Devicetree node. If there was no synchronization problem, this would be regular example of register in syscon which is handled (toggled) by the device (so USB device/host controller). Since there is synchronization problem, you argue that it is correct representation of hardware. No, it is not, because logically in DT you do not describe mode or existence of other devices in some other node and it still does not describe this ordering.
Quoted 4 lines
So we have to drop the property, and let the sysctrl block look for <name>@<reg> nodes, and check which ones are enabled?
Running out of ideas...
One solution could be making USB nodes children of the sysctrl block which:
1. Gives proper ordering (children cannot start before parent) regardless of any other shared resources,
2. Allows to drop this mode property and instead check what type of children you have and configure mode depending on them.
However this also might not be correct representation of hardware (dunno...), so I am also running out of ideas.
Anyway, I appreciate your explanations. I don't oppose this and I defer the decision to Rob (for this or for v3 patch with descriptive strings).
Best regards,
Krzysztof
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi Krzysztof,
[email protected] wrote on Wed, 23 Nov 2022 10:39:41 +0100:
Quoted 84 lines · Geert Uytterhoeven
Quoted 83 lines
Hi Krzysztof,
Quoted 60 lines · Krzysztof Kozlowski
Quoted 53 lines · Herve Codina
Quoted 44 lines · On Tue, 22 Nov 2022 09:42:48 +0100 Krzysztof Kozlowski…
Quoted 25 lines · Geert Uytterhoeven
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Quoted 5 lines
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device? Broken dependency. What if you want to use this in a different SoC, where the sysctrl does not provide clocks? Broken dependency.
Quoted 5 lines
The issue is really related to the Renesas sysctrl itself and not related to the USB drivers themselves.
From the drivers themselves, the issue is not seen (I mean the driver takes no specific action related to this issue).
If we change the SOC, the issue will probably not exist anymore.Quoted 4 lines
Yeah, and in the next SoC you will bring 10 of such properties to sysctrl arguing that if one was approved, 10 is also fine. Somehow people on the lists like to use that argument - I saw it somewhere, so I am allowed to do here the same.
Like pin control properties? ;-)
This property represents a wiring on the board...
I.e. a system integration issue.Quoted 9 lines
I understand that the registers responsible for configuration are in sysctrl block, but it does not mean that it should be described as part of sysctrl Devicetree node. If there was no synchronization problem, this would be regular example of register in syscon which is handled (toggled) by the device (so USB device/host controller). Since there is synchronization problem, you argue that it is correct representation of hardware. No, it is not, because logically in DT you do not describe mode or existence of other devices in some other node and it still does not describe this ordering.
Quoted 4 lines
Quoted 4 lines
So we have to drop the property, and let the sysctrl block look for <name>@<reg> nodes, and check which ones are enabled?
Running out of ideas...
I'm stepping in, hopefully I won't just be bikeshedding on something that has already been discussed but here is my grain of salt.
Quoted 8 lines
One solution could be making USB nodes children of the sysctrl block which:
1. Gives proper ordering (children cannot start before parent) regardless of any other shared resources,
2. Allows to drop this mode property and instead check what type of children you have and configure mode depending on them.However this also might not be correct representation of hardware (dunno...), so I am also running out of ideas.
I see what you mean here, but AFAICS that is clearly a wrong representation of the hardware. Sorting nodes by bus seems the aim of device tree because there is a physical relationship, that's why we have (i2c as an example):
ahb {
foo-controller@xxx {
reg = <xxx>;
};
};But what you are describing now is conceptually closer to:
clk-controller {
foo-controller {
reg = ?
};
};Not mentioning that this only works once, because foo-controller might also need other blocks to be ready before probing and those might be different blocks (they are the same in the rzn1 case, but more generally, they are not). So in the end I am not in favor of this solution.
If we compare the dependency between the USB device controller and the sysctrl block which contains the h2mode register to existing dependencies, they are all treated with properties. These properties, eg:
foo-controller {
clocks = <&provider [index]>;
};were initially used to just tell the consumer which resource it should grab/enable. If the device was not yet ready, we would rely on the probe deferral mechanism to try again later. Not optimal, but not bad either as it made things work. Since v5.11 and the addition of automatic device links, the probe order is explicitly ordered. <provider> could always get probed before <foo-controller>. So, isn't what we need here? What about the following:
sysctrl {
h2mode = "something";
};
usb-device {
h2mode-provider = <&sysctrl>;
};We can initially just make this work with some additional logic on both sides. The USB device controller would manually check whether sysctrl has been probed or not (in practice, because of the clocks and power domains being described this will always be a yes, but IIUC we want to avoid relying on it) and otherwise, defer its probe. On the sysctrl side it is just a matter of checking (like we already do):
if (!sysctrl_priv) return -EPROBE_DEFER;
To be honest I would love to see the device link mechanism extended to "custom" phandle properties like that, it would avoid the burden of checking for deferrals manually, aside with boot time improvements. If we go this way, we shall decide whether we want to:
* extend the list of properties that will lead to a dependency creation [1]
* or maybe settle on a common suffix that could always be used, especially for specific cases like this one where there is an explicit provider-consumer dependency that must be fulfilled:
DEFINE_SUFFIX_PROP(provider, "-provider", "#provider-cells")
* or perhaps extend struct of_device_id to contain the name of the properties pointing to phandles that describe probe dependencies with:
char *provider_prop_name; char *provider_cells_prop_name;
and use them from of/property.c to generate the links when relevant.
[1] https://elixir.bootlin.com/linux/v6.0/source/drivers/of/property.c#L1298
Thanks,
Miquèl
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Quoted 116 lines · Miquel Raynal
Hi Krzysztof,
[email protected] wrote on Wed, 23 Nov 2022 10:39:41 +0100:
Quoted 84 lines · Geert Uytterhoeven
Quoted 83 lines
Hi Krzysztof,
Quoted 60 lines · Krzysztof Kozlowski
Quoted 53 lines · Herve Codina
Quoted 44 lines · On Tue, 22 Nov 2022 09:42:48 +0100 Krzysztof Kozlowski…
Quoted 25 lines · Geert Uytterhoeven
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Quoted 5 lines
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device? Broken dependency. What if you want to use this in a different SoC, where the sysctrl does not provide clocks? Broken dependency.
Quoted 5 lines
The issue is really related to the Renesas sysctrl itself and not related to the USB drivers themselves.
From the drivers themselves, the issue is not seen (I mean the driver takes no specific action related to this issue).
If we change the SOC, the issue will probably not exist anymore.Quoted 4 lines
Yeah, and in the next SoC you will bring 10 of such properties to sysctrl arguing that if one was approved, 10 is also fine. Somehow people on the lists like to use that argument - I saw it somewhere, so I am allowed to do here the same.
Like pin control properties? ;-)
This property represents a wiring on the board...
I.e. a system integration issue.Quoted 9 lines
I understand that the registers responsible for configuration are in sysctrl block, but it does not mean that it should be described as part of sysctrl Devicetree node. If there was no synchronization problem, this would be regular example of register in syscon which is handled (toggled) by the device (so USB device/host controller). Since there is synchronization problem, you argue that it is correct representation of hardware. No, it is not, because logically in DT you do not describe mode or existence of other devices in some other node and it still does not describe this ordering.
Quoted 4 lines
Quoted 4 lines
So we have to drop the property, and let the sysctrl block look for <name>@<reg> nodes, and check which ones are enabled?
Running out of ideas...
I'm stepping in, hopefully I won't just be bikeshedding on something that has already been discussed but here is my grain of salt.
Quoted 8 lines
One solution could be making USB nodes children of the sysctrl block which:
1. Gives proper ordering (children cannot start before parent) regardless of any other shared resources,
2. Allows to drop this mode property and instead check what type of children you have and configure mode depending on them.However this also might not be correct representation of hardware (dunno...), so I am also running out of ideas.
I see what you mean here, but AFAICS that is clearly a wrong representation of the hardware. Sorting nodes by bus seems the aim of device tree because there is a physical relationship, that's why we have (i2c as an example):
ahb { foo-controller@xxx { reg = <xxx>; }; };
Quoted 7 lines
But what you are describing now is conceptually closer to:
clk-controller { foo-controller { reg = ? }; };
Which is not a problem. reg can be anything - offset from sysctrl node or absolute offset. We have it in many places already. What's the issue here?
Quoted 5 lines
Not mentioning that this only works once, because foo-controller might also need other blocks to be ready before probing and those might be different blocks (they are the same in the rzn1 case, but more generally, they are not).
But what is the problem of needing other blocks? All devices need something and we solve it...
Quoted 20 lines
So in the end I am not in favor of this
solution.If we compare the dependency between the USB device controller and the sysctrl block which contains the h2mode register to existing dependencies, they are all treated with properties. These properties, eg:
foo-controller { clocks = <&provider [index]>; };were initially used to just tell the consumer which resource it should grab/enable. If the device was not yet ready, we would rely on the probe deferral mechanism to try again later. Not optimal, but not bad either as it made things work. Since v5.11 and the addition of automatic device links, the probe order is explicitly ordered. <provider> could always get probed before <foo-controller>. So, isn't what we need here? What about the following:
Quoted 7 lines
sysctrl {
h2mode = "something";
};
usb-device {
h2mode-provider = <&sysctrl>;
};No, because next time one will add 10 of such properties:
sysctrl {
h2mode = ""
g2mode = ""
i2mode = ""
....
}and keep arguing that because these registers are in sysctrl, so they should have their own property in sysctrl mode.
That's not correct representation of hardware.
Quoted 28 lines
We can initially just make this work with some additional logic on both sides. The USB device controller would manually check whether sysctrl has been probed or not (in practice, because of the clocks and power domains being described this will always be a yes, but IIUC we want to avoid relying on it) and otherwise, defer its probe. On the sysctrl side it is just a matter of checking (like we already do):
if (!sysctrl_priv) return -EPROBE_DEFER;To be honest I would love to see the device link mechanism extended to "custom" phandle properties like that, it would avoid the burden of checking for deferrals manually, aside with boot time improvements. If we go this way, we shall decide whether we want to:
* extend the list of properties that will lead to a dependency creation [1]
* or maybe settle on a common suffix that could always be used, especially for specific cases like this one where there is an explicit provider-consumer dependency that must be fulfilled:
DEFINE_SUFFIX_PROP(provider, "-provider", "#provider-cells")* or perhaps extend struct
of_device_idto contain the name of the properties pointing to phandles that describe probe dependencies with:char *provider_prop_name; char *provider_cells_prop_name;
Quoted 7 lines
and use them from
of/property.cto generate the links when relevant.[1] https://elixir.bootlin.com/linux/v6.0/source/drivers/of/property.c#L1298
Thanks,
Miquèl
Best regards,
Krzysztof
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi Krzysztof,
[email protected] wrote on Thu, 24 Nov 2022 10:46:14 +0100:
Quoted 129 lines · Miquel Raynal
Quoted 116 lines
Hi Krzysztof,
[email protected] wrote on Wed, 23 Nov 2022 10:39:41 +0100:
Quoted 84 lines · Geert Uytterhoeven
Quoted 83 lines
Hi Krzysztof,
Quoted 60 lines · Krzysztof Kozlowski
Quoted 53 lines · Herve Codina
Quoted 44 lines · On Tue, 22 Nov 2022 09:42:48 +0100 Krzysztof Kozlowski…
Quoted 25 lines · Geert Uytterhoeven
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Quoted 5 lines
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device? Broken dependency. What if you want to use this in a different SoC, where the sysctrl does not provide clocks? Broken dependency.
Quoted 5 lines
The issue is really related to the Renesas sysctrl itself and not related to the USB drivers themselves.
From the drivers themselves, the issue is not seen (I mean the driver takes no specific action related to this issue).
If we change the SOC, the issue will probably not exist anymore.Quoted 4 lines
Yeah, and in the next SoC you will bring 10 of such properties to sysctrl arguing that if one was approved, 10 is also fine. Somehow people on the lists like to use that argument - I saw it somewhere, so I am allowed to do here the same.
Like pin control properties? ;-)
This property represents a wiring on the board...
I.e. a system integration issue.Quoted 9 lines
I understand that the registers responsible for configuration are in sysctrl block, but it does not mean that it should be described as part of sysctrl Devicetree node. If there was no synchronization problem, this would be regular example of register in syscon which is handled (toggled) by the device (so USB device/host controller). Since there is synchronization problem, you argue that it is correct representation of hardware. No, it is not, because logically in DT you do not describe mode or existence of other devices in some other node and it still does not describe this ordering.
Quoted 4 lines
Quoted 4 lines
So we have to drop the property, and let the sysctrl block look for <name>@<reg> nodes, and check which ones are enabled?
Running out of ideas...
I'm stepping in, hopefully I won't just be bikeshedding on something that has already been discussed but here is my grain of salt.
Quoted 8 lines
One solution could be making USB nodes children of the sysctrl block which:
1. Gives proper ordering (children cannot start before parent) regardless of any other shared resources,
2. Allows to drop this mode property and instead check what type of children you have and configure mode depending on them.However this also might not be correct representation of hardware (dunno...), so I am also running out of ideas.
I see what you mean here, but AFAICS that is clearly a wrong representation of the hardware. Sorting nodes by bus seems the aim of device tree because there is a physical relationship, that's why we have (i2c as an example):
ahb { foo-controller@xxx { reg = <xxx>; }; };Quoted 7 lines
But what you are describing now is conceptually closer to:
clk-controller { foo-controller { reg = ? }; };Which is not a problem. reg can be anything - offset from sysctrl node or absolute offset. We have it in many places already. What's the issue here?
Quoted 7 lines
Quoted 4 lines
Not mentioning that this only works once, because foo-controller might also need other blocks to be ready before probing and those might be different blocks (they are the same in the rzn1 case, but more generally, they are not).
But what is the problem of needing other blocks? All devices need something and we solve it...
What I am saying is that parenting only works once. All the other dependencies must be described by properties.
The h2mode register, no matter its content, should be set early in the boot process, at least before any of the concerned controllers, which are totally independent hardware blocks, probe. If one of them has started, a change to the h2mode property could just stall the system. The USB controllers do not *need* this property nor want to change it (see below).
The fact that the USB controllers are totally independent hardware blocks make me thing that they should *not* be children of the sysctrl. In our case one of them even is a PCI device! Would you represent a PCI device within the sysctrl node? The other is somehow memory mapped behind a bridge. Again, this has to be described somewhere, and parenting usually is the right fit for that.
Hence, the only real thing that remains to be described, as you rightly pointed out in your earlier reviews, is the probe order which is nothing related to any kind of parenting in this case.
Quoted 36 lines
Quoted 20 lines
So in the end I am not in favor of this
solution.If we compare the dependency between the USB device controller and the sysctrl block which contains the h2mode register to existing dependencies, they are all treated with properties. These properties, eg:
foo-controller { clocks = <&provider [index]>; };were initially used to just tell the consumer which resource it should grab/enable. If the device was not yet ready, we would rely on the probe deferral mechanism to try again later. Not optimal, but not bad either as it made things work. Since v5.11 and the addition of automatic device links, the probe order is explicitly ordered. <provider> could always get probed before <foo-controller>. So, isn't what we need here? What about the following:
Quoted 7 lines
sysctrl { h2mode = "something"; }; usb-device { h2mode-provider = <&sysctrl>; };No, because next time one will add 10 of such properties:
sysctrl { h2mode = "" g2mode = "" i2mode = "" .... }
Quoted 4 lines
and keep arguing that because these registers are in sysctrl, so they should have their own property in sysctrl mode.
That's not correct representation of hardware.
Actually my main focus here was more on the "sysctrl-provider" logic. We need a probe dependency so we have two choices:
- pointing
- parenting
For the reasons above, I bet the former is the most accurate approach.
If the h2mode property bothers you, it's fine, we can just drop it. The USB device controller can do without it:
- either it just probes without knowing the mode, its bus will remain empty so the device is useless, but nothing will break.
- or (this is my favorite) we add another sysctrl helper that exposes the h2mode, very much like we've done with the dmamux [2] and we just avoid probing if the mode that we receive does not ask for a USB device controller. Speeds-up the boot process.
[2] https://lore.kernel.org/all/[email protected]/
Either ways, we would still need the probe order to be enforced, which might be achieved on Linux side with the below explanations.
Quoted 29 lines
Quoted 29 lines
We can initially just make this work with some additional logic on both sides. The USB device controller would manually check whether sysctrl has been probed or not (in practice, because of the clocks and power domains being described this will always be a yes, but IIUC we want to avoid relying on it) and otherwise, defer its probe. On the sysctrl side it is just a matter of checking (like we already do):
if (!sysctrl_priv) return -EPROBE_DEFER;To be honest I would love to see the device link mechanism extended to "custom" phandle properties like that, it would avoid the burden of checking for deferrals manually, aside with boot time improvements. If we go this way, we shall decide whether we want to:
* extend the list of properties that will lead to a dependency creation [1]
* or maybe settle on a common suffix that could always be used, especially for specific cases like this one where there is an explicit provider-consumer dependency that must be fulfilled:
DEFINE_SUFFIX_PROP(provider, "-provider", "#provider-cells")* or perhaps extend struct
of_device_idto contain the name of the properties pointing to phandles that describe probe dependencies with:char *provider_prop_name; char *provider_cells_prop_name;and use them from
of/property.cto generate the links when relevant.
Quoted 9 lines
Quoted 5 lines
[1] https://elixir.bootlin.com/linux/v6.0/source/drivers/of/property.c#L1298
Thanks,
MiquèlBest regards,
Krzysztof
Thanks,
Miquèl
Re: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property
Hi Krzysztof,
[email protected] wrote on Thu, 24 Nov 2022 11:27:57 +0100:
Quoted 203 lines
Hi Krzysztof,
[email protected] wrote on Thu, 24 Nov 2022 10:46:14 +0100:
Quoted 129 lines · Miquel Raynal
Quoted 116 lines
Hi Krzysztof,
[email protected] wrote on Wed, 23 Nov 2022 10:39:41 +0100:
Quoted 84 lines · Geert Uytterhoeven
Quoted 83 lines
Hi Krzysztof,
Quoted 60 lines · Krzysztof Kozlowski
Quoted 53 lines · Herve Codina
Quoted 44 lines · On Tue, 22 Nov 2022 09:42:48 +0100 Krzysztof Kozlowski…
Quoted 25 lines · Geert Uytterhoeven
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines
Quoted 1 line · This does not change anything. Herve
probe some devices (USB host and probably others)
Why some can be probed earlier and some not, if there are no dependencies? If there are dependencies, it's the same case with sysctrl touching the register bit and the USB controller touching it (as well via syscon, but that's obvious, I assume).
Where is the synchronization problem?
Quoted 8 lines
Quoted 4 lines
The h2mode bit (and probably a few other controls we haven't figured out yet) in the sysctrl must be set before any of the USB devices is active. Hence it's safest for the sysctrl to do this before any of the USB drivers probes.
Again, this does not differ from many, many of other devices. All of them must set something in system controller block, before they start operating (or at specific time). It's exactly the same everywhere.
Quoted 8 lines
The issue here is that there are two
_differentdrivers_(USB host and device). When both are modular, and the driver that depends on the sysctrl setting is loaded second, you have a problem: the sysctrl change must not be done when the first driver is already using the hardware.Hence the sysctrl driver should take care of it itself during early initialization (it's the main clock controller, so it's a dependency for all other I/O device drivers).
I assumed you have there bit for the first device (which can switch between USB host and USB device) to choose appropriate mode. The bindings also expressed this - "the USBs are". Never said anything about dependency between these USBs.
Are you saying that the mode for first device cannot be changed once the second device (which is only host) is started? IOW, the mode setup must happen before any of these devices are started?
Quoted 5 lines
Anyway with sysctrl approach you will have dependency and you cannot rely on clock provider-consumer relationship to order that dependency. What if you make all clocks on and do not take any clocks in USB device? Broken dependency. What if you want to use this in a different SoC, where the sysctrl does not provide clocks? Broken dependency.
Quoted 5 lines
The issue is really related to the Renesas sysctrl itself and not related to the USB drivers themselves.
From the drivers themselves, the issue is not seen (I mean the driver takes no specific action related to this issue).
If we change the SOC, the issue will probably not exist anymore.Quoted 4 lines
Yeah, and in the next SoC you will bring 10 of such properties to sysctrl arguing that if one was approved, 10 is also fine. Somehow people on the lists like to use that argument - I saw it somewhere, so I am allowed to do here the same.
Like pin control properties? ;-)
This property represents a wiring on the board...
I.e. a system integration issue.Quoted 9 lines
I understand that the registers responsible for configuration are in sysctrl block, but it does not mean that it should be described as part of sysctrl Devicetree node. If there was no synchronization problem, this would be regular example of register in syscon which is handled (toggled) by the device (so USB device/host controller). Since there is synchronization problem, you argue that it is correct representation of hardware. No, it is not, because logically in DT you do not describe mode or existence of other devices in some other node and it still does not describe this ordering.
Quoted 4 lines
Quoted 4 lines
So we have to drop the property, and let the sysctrl block look for <name>@<reg> nodes, and check which ones are enabled?
Running out of ideas...
I'm stepping in, hopefully I won't just be bikeshedding on something that has already been discussed but here is my grain of salt.
Quoted 8 lines
One solution could be making USB nodes children of the sysctrl block which:
1. Gives proper ordering (children cannot start before parent) regardless of any other shared resources,
2. Allows to drop this mode property and instead check what type of children you have and configure mode depending on them.However this also might not be correct representation of hardware (dunno...), so I am also running out of ideas.
I see what you mean here, but AFAICS that is clearly a wrong representation of the hardware. Sorting nodes by bus seems the aim of device tree because there is a physical relationship, that's why we have (i2c as an example):
ahb { foo-controller@xxx { reg = <xxx>; }; };Quoted 7 lines
But what you are describing now is conceptually closer to:
clk-controller { foo-controller { reg = ? }; };Which is not a problem. reg can be anything - offset from sysctrl node or absolute offset. We have it in many places already. What's the issue here?
Quoted 7 lines
Quoted 4 lines
Not mentioning that this only works once, because foo-controller might also need other blocks to be ready before probing and those might be different blocks (they are the same in the rzn1 case, but more generally, they are not).
But what is the problem of needing other blocks? All devices need something and we solve it...
What I am saying is that parenting only works once. All the other dependencies must be described by properties.
The h2mode register, no matter its content, should be set early in the boot process, at least before any of the concerned controllers, which are totally independent hardware blocks, probe. If one of them has started, a change to the h2mode property could just stall the system. The USB controllers do not *need* this property nor want to change it (see below).
The fact that the USB controllers are totally independent hardware blocks make me thing that they should *not* be children of the sysctrl. In our case one of them even is a PCI device! Would you represent a PCI device within the sysctrl node? The other is somehow memory mapped behind a bridge. Again, this has to be described somewhere, and parenting usually is the right fit for that.
Hence, the only real thing that remains to be described, as you rightly pointed out in your earlier reviews, is the probe order which is nothing related to any kind of parenting in this case.
Quoted 36 lines
Quoted 20 lines
So in the end I am not in favor of this
solution.If we compare the dependency between the USB device controller and the sysctrl block which contains the h2mode register to existing dependencies, they are all treated with properties. These properties, eg:
foo-controller { clocks = <&provider [index]>; };were initially used to just tell the consumer which resource it should grab/enable. If the device was not yet ready, we would rely on the probe deferral mechanism to try again later. Not optimal, but not bad either as it made things work. Since v5.11 and the addition of automatic device links, the probe order is explicitly ordered. <provider> could always get probed before <foo-controller>. So, isn't what we need here? What about the following:
Quoted 7 lines
sysctrl { h2mode = "something"; }; usb-device { h2mode-provider = <&sysctrl>; };No, because next time one will add 10 of such properties:
sysctrl { h2mode = "" g2mode = "" i2mode = "" .... }Quoted 4 lines
and keep arguing that because these registers are in sysctrl, so they should have their own property in sysctrl mode.
That's not correct representation of hardware.
Quoted 8 lines
Actually my main focus here was more on the "sysctrl-provider" logic. We need a probe dependency so we have two choices:
- pointing
- parenting
For the reasons above, I bet the former is the most accurate approach.If the h2mode property bothers you, it's fine, we can just drop it. The USB device controller can do without it:
I'm partially wrong here. I forgot that we somehow need to know whether the second USB controller is host or device, and decide this before the USB controllers probe. It is still possible to do it without the property by looking up the tree against the USB controller compatible or node name. We would do this in the sysctrl probe and set the right mode depending on its presence.
I would definitely go for a property instead, but if this is a no-go, I guess that's the last resort.
Quoted 47 lines
- either it just probes without knowing the mode, its bus will remain empty so the device is useless, but nothing will break.
- or (this is my favorite) we add another sysctrl helper that exposes the h2mode, very much like we've done with the dmamux [2] and we just avoid probing if the mode that we receive does not ask for a USB device controller. Speeds-up the boot process.[2] https://lore.kernel.org/all/[email protected]/
Either ways, we would still need the probe order to be enforced, which might be achieved on Linux side with the below explanations.
Quoted 35 lines
Quoted 34 lines
We can initially just make this work with some additional logic on both sides. The USB device controller would manually check whether sysctrl has been probed or not (in practice, because of the clocks and power domains being described this will always be a yes, but IIUC we want to avoid relying on it) and otherwise, defer its probe. On the sysctrl side it is just a matter of checking (like we already do):
if (!sysctrl_priv) return -EPROBE_DEFER;To be honest I would love to see the device link mechanism extended to "custom" phandle properties like that, it would avoid the burden of checking for deferrals manually, aside with boot time improvements. If we go this way, we shall decide whether we want to:
* extend the list of properties that will lead to a dependency creation [1]
* or maybe settle on a common suffix that could always be used, especially for specific cases like this one where there is an explicit provider-consumer dependency that must be fulfilled:
DEFINE_SUFFIX_PROP(provider, "-provider", "#provider-cells")* or perhaps extend struct
of_device_idto contain the name of the properties pointing to phandles that describe probe dependencies with:char *provider_prop_name; char *provider_cells_prop_name;and use them from
of/property.cto generate the links when relevant.[1] https://elixir.bootlin.com/linux/v6.0/source/drivers/of/property.c#L1298
Thanks,
Miquèl
Quoted 6 lines
Quoted 3 lines
Best regards,
KrzysztofThanks,
Miquèl
Thanks,
Miquèl
Herve Codina
maintainerPATCH v2 3/7 soc: renesas: r9a06g032-sysctrl: Handle h2mode device-tree property
In reply to Herve CodinaHandle the h2mode property and forces the CFG_USB[H2MODE] bit accordingly.
--- drivers/clk/renesas/r9a06g032-clocks.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
drivers/clk/renesas/r9a06g032-clocks.c +21 -0
@@ -946,6 +946,7 @@ static int __init r9a06g032_clocks_probe(struct platform_device *pdev)struct clk *mclk;unsigned int i;u16 uart_group_sel[2 ]; +u32 usb, h2mode;int error; clocks =devm_kzalloc (dev,sizeof (*clocks),GFP_KERNEL );
@@ -966,6 +967,26 @@ static int __init r9a06g032_clocks_probe(struct platform_device *pdev) clocks->reg =of_iomap (np,0 );if (WARN_ON (!clocks->reg))return -ENOMEM ; + + error =of_property_read_u32 (np,"renesas,h2mode" , &h2mode); +if (!error) { + usb =readl (clocks->reg +R9A06G032_SYSCTRL_USB ); +switch (h2mode) { +case 0 : +/* 1 host, 1 device */ + usb &= ~R9A06G032_SYSCTRL_USB_H2MODE ; +break ; +case 1 : +/* 2 hosts */ + usb |=R9A06G032_SYSCTRL_USB_H2MODE ; +break ; +default : +dev_err (dev,"invalid h2mode %d\n" , h2mode); +return -EINVAL ; + } +writel (usb, clocks->reg +R9A06G032_SYSCTRL_USB ); + } +for (i =0 ; i <ARRAY_SIZE (r9a06g032_clocks); ++i) {const struct r9a06g032_clkdesc *d = &r9a06g032_clocks[i]; const char *parent_name = d->source ?
Signature · 1 line
2.38.1
Re: [PATCH v2 3/7] soc: renesas: r9a06g032-sysctrl: Handle h2mode device-tree property
Hi Hervé,
Quoted 5 lines · Herve Codina
Handle the h2mode property and forces the CFG_USB[H2MODE] bit accordingly.
Signed-off-by Herve Codina <[email protected]>
Thanks for the update!
Minor nit below.
Quoted 9 lines
drivers/clk/renesas/r9a06g032-clocks.c +5
-0@@ -966,6 +967,26 @@ static int __init r9a06g032_clocks_probe(struct platform_device *pdev) clocks->reg =of_iomap (np,0 );if (WARN_ON (!clocks->reg))return -ENOMEM ; + + error =of_property_read_u32 (np,"renesas,h2mode" , &h2mode); +if (!error) { + usb =readl (clocks->reg +R9A06G032_SYSCTRL_USB ); +switch (h2mode) {
drivers/clk/renesas/r9a06g032-clocks.c static int __init r9a06g032_clocks_probe(struct platform_device *pdev) · line 984
Quoted 10 lines
drivers/clk/renesas/r9a06g032-clocks.c +10
-0+case 0 : +/* 1 host, 1 device */ + usb &= ~R9A06G032_SYSCTRL_USB_H2MODE ; +break ; +case 1 : +/* 2 hosts */ + usb |=R9A06G032_SYSCTRL_USB_H2MODE ; +break ; +default : +dev_err (dev,"invalid h2mode %d\n" , h2mode);
%u
drivers/clk/renesas/r9a06g032-clocks.c static int __init r9a06g032_clocks_probe(struct platform_device *pdev) · line 992
Quoted 8 lines
drivers/clk/renesas/r9a06g032-clocks.c +5
-0+return -EINVAL ; + } +writel (usb, clocks->reg +R9A06G032_SYSCTRL_USB ); + } +for (i =0 ; i <ARRAY_SIZE (r9a06g032_clocks); ++i) {const struct r9a06g032_clkdesc *d = &r9a06g032_clocks[i]; const char *parent_name = d->source ?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Herve Codina
maintainerPATCH v2 4/7 dt-bindings: usb: add the Renesas RZ/N1 USBF controller binding
In reply to Herve CodinaThe Renesas RZ/N1 USBF controller is an USB2.0 device controller (UDC) available in the Renesas r9a06g032 SoC (RZ/N1 family).
--- .../bindings/usb/renesas,rzn1-usbf.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml
Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml new file +68 -0
@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/renesas,rzn1-usbf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/N1 SoCs USBF (USB Function) controller binding + +description: | + The Renesas USBF controller is an USB2.0 device + controller (UDC). + +maintainers: + - Herve Codina <[email protected]> + +properties: + compatible: + items: + - enum: + - renesas,r9a06g032-usbf + - const: renesas,rzn1-usbf + + reg: + maxItems: 1 + + clocks: + items: + - description: Internal bus clock (AHB) for Function + - description: Internal bus clock (AHB) for Power Management + + clock-names: + items: + - const: hclkf + - const: hclkpm + + power-domains: + maxItems: 1 + + interrupts: + items: + - description: The USBF EPC interrupt + - description: The USBF AHB-EPC interrupt + +required: + - compatible + - reg + - clocks + - clock-names + - power-domains + - interrupts + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/clock/r9a06g032-sysctrl.h> + + usb@4001e000 { + compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf"; + reg = <0x4001e000 0x2000>; + interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&sysctrl R9A06G032_HCLK_USBF>, + <&sysctrl R9A06G032_HCLK_USBPM>; + clock-names = "hclkf", "hclkpm"; + power-domains = <&sysctrl>; + };
Signature · 1 line
2.38.1
Re: [PATCH v2 4/7] dt-bindings: usb: add the Renesas RZ/N1 USBF controller binding
Quoted 2 lines · Herve Codina
The Renesas RZ/N1 USBF controller is an USB2.0 device controller (UDC) available in the Renesas r9a06g032 SoC (RZ/N1 family).
Subject: drop redundant, second "binding".
Quoted 13 lines
Signed-off-by Herve Codina <[email protected]>--- .../bindings/usb/renesas,rzn1-usbf.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yamlDocumentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml new file +0
-0
Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml new file +7
-0@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/renesas,rzn1-usbf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/N1 SoCs USBF (USB Function) controller binding
Drop "binding"
With two above:
Best regards,
Krzysztof
Herve Codina
maintainerRe: [PATCH v2 4/7] dt-bindings: usb: add the Renesas RZ/N1 USBF controller binding
Quoted 29 lines · On Tue, 15 Nov 2022 14:13:00 +0100 Krzysztof Kozlowski…
Quoted 2 lines · Herve Codina
The Renesas RZ/N1 USBF controller is an USB2.0 device controller (UDC) available in the Renesas r9a06g032 SoC (RZ/N1 family).
Subject: drop redundant, second "binding".
Quoted 13 lines
Signed-off-by Herve Codina <[email protected]>--- .../bindings/usb/renesas,rzn1-usbf.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yamlDocumentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml new file +0
-0Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml new file +7
-0@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/renesas,rzn1-usbf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/N1 SoCs USBF (USB Function) controller bindingDrop "binding"
Quoted 7 lines
With two above:
Reviewed-by Krzysztof Kozlowski <[email protected]>Best regards,
Krzysztof
"binding" will be dropped as suggested in v3.
Thanks for the review.
Hervé
Signature · 3 lines
Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Herve Codina
maintainerPATCH v2 5/7 usb: gadget: udc: add Renesas RZ/N1 USBF controller support
In reply to Herve CodinaAdd support for the Renesas USBF controller.
This controller is an USB2.0 UDC controller available in the Renesas r9a06g032 SoC (RZ/N1 family).
--- drivers/usb/gadget/udc/Kconfig | 11 + drivers/usb/gadget/udc/Makefile | 1 + drivers/usb/gadget/udc/renesas_usbf.c | 3430 +++++++++++++++++++++++++ 3 files changed, 3442 insertions(+) create mode 100644 drivers/usb/gadget/udc/renesas_usbf.c
drivers/usb/gadget/udc/Kconfig +11 -0
@@ -204,6 +204,17 @@ config USB_RENESAS_USB3 dynamically linked module called "renesas_usb3" and force all gadget drivers to also be dynamically linked. +config USB_RENESAS_USBF + tristate 'Renesas USB Function controller' + depends on ARCH_RENESAS || COMPILE_TEST + help + Renesas USB Function controller is a USB peripheral controller + available on RZ/N1 Renesas SoCs. + + Say "y" to link the driver statically, or "m" to build a + dynamically linked module called "renesas_usbf" and force all + gadget drivers to also be dynamically linked. + config USB_PXA27X tristate "PXA 27x" depends on HAS_IOMEM
drivers/usb/gadget/udc/Makefile +1 -0
@@ -27,6 +27,7 @@ obj-$(CONFIG_USB_TEGRA_XUDC) += tegra-xudc.o obj-$(CONFIG_USB_M66592) += m66592-udc.o obj-$(CONFIG_USB_R8A66597) += r8a66597-udc.o obj-$(CONFIG_USB_RENESAS_USB3) += renesas_usb3.o +obj-$(CONFIG_USB_RENESAS_USBF) += renesas_usbf.o obj-$(CONFIG_USB_FSL_QE) += fsl_qe_udc.o obj-$(CONFIG_USB_S3C_HSUDC) += s3c-hsudc.o obj-$(CONFIG_USB_LPC32XX) += lpc32xx_udc.o
drivers/usb/gadget/udc/renesas_usbf.c new file +3430 -0
2,976 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.38.1
Part of the diff is not shown here. View the raw message.
Herve Codina
maintainerPATCH v2 6/7 ARM: dts: r9a06g032: Add the USBF controller node
In reply to Herve CodinaAdd the USBF controller available in the r9a06g032 SoC.
--- arch/arm/boot/dts/r9a06g032.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/r9a06g032.dtsi +12 -0
@@ -117,6 +117,18 @@ dmamux: dma-router@a0 { }; }; + udc: usb@4001e000 { + compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf"; + reg = <0x4001e000 0x2000>; + interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&sysctrl R9A06G032_HCLK_USBF>, + <&sysctrl R9A06G032_HCLK_USBPM>; + clock-names = "hclkf", "hclkpm"; + power-domains = <&sysctrl>; + status = "disabled"; + }; + pci_usb: pci@40030000 { compatible = "renesas,pci-r9a06g032", "renesas,pci-rzn1"; device_type = "pci";
Signature · 1 line
2.38.1
Re: [PATCH v2 6/7] ARM: dts: r9a06g032: Add the USBF controller node
Quoted 15 lines · Herve Codina
Add the USBF controller available in the r9a06g032 SoC.
Signed-off-by Herve Codina <[email protected]>--- arch/arm/boot/dts/r9a06g032.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/boot/dts/r9a06g032.dtsi +0
-0@@ -117,6 +117,18 @@ dmamux: dma-router@a0 { }; };
arch/arm/boot/dts/r9a06g032.dtsi dmamux: dma-router@a0 { · line 129
Quoted 10 lines
arch/arm/boot/dts/r9a06g032.dtsi +10
-0+ udc: usb@4001e000 { + compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf"; + reg = <0x4001e000 0x2000>; + interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&sysctrl R9A06G032_HCLK_USBF>, + <&sysctrl R9A06G032_HCLK_USBPM>; + clock-names = "hclkf", "hclkpm"; + power-domains = <&sysctrl>; + status = "disabled";
If you provided all resources (clocks, power domains etc), why disabling it?
Best regards,
Krzysztof
Herve Codina
maintainerRe: [PATCH v2 6/7] ARM: dts: r9a06g032: Add the USBF controller node
Hi Krzysztof,
Quoted 16 lines · On Tue, 15 Nov 2022 14:16:27 +0100 Krzysztof Kozlowski…
Quoted 15 lines · Herve Codina
Add the USBF controller available in the r9a06g032 SoC.
Signed-off-by Herve Codina <[email protected]>--- arch/arm/boot/dts/r9a06g032.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/boot/dts/r9a06g032.dtsi +0
-0@@ -117,6 +117,18 @@ dmamux: dma-router@a0 { }; };
Quoted 12 lines
arch/arm/boot/dts/r9a06g032.dtsi dmamux: dma-router@a0 { · line 129
Quoted 10 lines
arch/arm/boot/dts/r9a06g032.dtsi +10
-0+ udc: usb@4001e000 { + compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf"; + reg = <0x4001e000 0x2000>; + interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&sysctrl R9A06G032_HCLK_USBF>, + <&sysctrl R9A06G032_HCLK_USBPM>; + clock-names = "hclkf", "hclkpm"; + power-domains = <&sysctrl>; + status = "disabled";If you provided all resources (clocks, power domains etc), why disabling it?
Because I forgot to remove the 'status' property ... 'status' will be simply removed in v3.
Sorry for this mistake.
Thanks for the review,
Hervé
Signature · 3 lines
Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Herve Codina
maintainerRe: [PATCH v2 6/7] ARM: dts: r9a06g032: Add the USBF controller node
Hi Krzysztof
Quoted 34 lines · On Tue, 15 Nov 2022 14:27:54 +0100 Herve Codina <[email protected]>…
Hi Krzysztof,
Quoted 16 lines · On Tue, 15 Nov 2022 14:16:27 +0100 Krzysztof Kozlowski…
Quoted 15 lines · Herve Codina
Add the USBF controller available in the r9a06g032 SoC.
Signed-off-by Herve Codina <[email protected]>--- arch/arm/boot/dts/r9a06g032.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/boot/dts/r9a06g032.dtsi +0
-0@@ -117,6 +117,18 @@ dmamux: dma-router@a0 { }; };Quoted 12 lines
arch/arm/boot/dts/r9a06g032.dtsi dmamux: dma-router@a0 { · line 129
Quoted 10 lines
arch/arm/boot/dts/r9a06g032.dtsi +10
-0+ udc: usb@4001e000 { + compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf"; + reg = <0x4001e000 0x2000>; + interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&sysctrl R9A06G032_HCLK_USBF>, + <&sysctrl R9A06G032_HCLK_USBPM>; + clock-names = "hclkf", "hclkpm"; + power-domains = <&sysctrl>; + status = "disabled";If you provided all resources (clocks, power domains etc), why disabling it?
Quoted 7 lines
Because I forgot to remove the 'status' property ... 'status' will be simply removed in v3.
Sorry for this mistake.Thanks for the review,
Hervé
I said something completely wrong for this point.
status is set disabled because it is a .dtsi and can be included by several dts to represent a board.
This node (USB device) can be wired on some board and not on some others.
So, the node will be enabled in each dts board that has the USBF device wired and used.
Hervé
Signature · 3 lines
Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [PATCH v2 6/7] ARM: dts: r9a06g032: Add the USBF controller node
Quoted 47 lines · Herve Codina
Hi Krzysztof
Quoted 34 lines · On Tue, 15 Nov 2022 14:27:54 +0100 Herve Codina <[email protected]>…
Hi Krzysztof,
Quoted 16 lines · On Tue, 15 Nov 2022 14:16:27 +0100 Krzysztof Kozlowski…
Quoted 15 lines · Herve Codina
Add the USBF controller available in the r9a06g032 SoC.
Signed-off-by Herve Codina <[email protected]>--- arch/arm/boot/dts/r9a06g032.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/boot/dts/r9a06g032.dtsi +0
-0@@ -117,6 +117,18 @@ dmamux: dma-router@a0 { }; };Quoted 12 lines
arch/arm/boot/dts/r9a06g032.dtsi dmamux: dma-router@a0 { · line 129
Quoted 10 lines
arch/arm/boot/dts/r9a06g032.dtsi +10
-0+ udc: usb@4001e000 { + compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf"; + reg = <0x4001e000 0x2000>; + interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&sysctrl R9A06G032_HCLK_USBF>, + <&sysctrl R9A06G032_HCLK_USBPM>; + clock-names = "hclkf", "hclkpm"; + power-domains = <&sysctrl>; + status = "disabled";If you provided all resources (clocks, power domains etc), why disabling it?
Quoted 7 lines
Because I forgot to remove the 'status' property ... 'status' will be simply removed in v3.
Sorry for this mistake.Thanks for the review,
Hervé
Quoted 8 lines
I said something completely wrong for this point.
status is set disabled because it is a .dtsi and can be included by several dts to represent a board.
This node (USB device) can be wired on some board and not on some others.
So, the node will be enabled in each dts board that has the USBF device wired and used.
So it depends on having the connector? Yes, makes sense as well. Actually my recommendation was about internal parts of OS, which usually do not require anything from board. I missed the part that it is an USB...
Best regards,
Krzysztof
Re: [PATCH v2 6/7] ARM: dts: r9a06g032: Add the USBF controller node
In reply to Krzysztof KozlowskiHi Krzysztof,
Quoted 16 lines · Krzysztof Kozlowski
Quoted 15 lines · Herve Codina
Add the USBF controller available in the r9a06g032 SoC.
Signed-off-by Herve Codina <[email protected]>--- arch/arm/boot/dts/r9a06g032.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/boot/dts/r9a06g032.dtsi +0
-0@@ -117,6 +117,18 @@ dmamux: dma-router@a0 { }; };
Quoted 12 lines
arch/arm/boot/dts/r9a06g032.dtsi dmamux: dma-router@a0 { · line 129
Quoted 10 lines
arch/arm/boot/dts/r9a06g032.dtsi +10
-0+ udc: usb@4001e000 { + compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf"; + reg = <0x4001e000 0x2000>; + interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&sysctrl R9A06G032_HCLK_USBF>, + <&sysctrl R9A06G032_HCLK_USBPM>; + clock-names = "hclkf", "hclkpm"; + power-domains = <&sysctrl>; + status = "disabled";If you provided all resources (clocks, power domains etc), why disabling it?
Doesn't this depend on wiring on the board, and providing pin control in the board DTS?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2 6/7] ARM: dts: r9a06g032: Add the USBF controller node
Quoted 11 lines · Geert Uytterhoeven
Quoted 11 lines
Quoted 10 lines
arch/arm/boot/dts/r9a06g032.dtsi +10
-0+ udc: usb@4001e000 { + compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf"; + reg = <0x4001e000 0x2000>; + interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&sysctrl R9A06G032_HCLK_USBF>, + <&sysctrl R9A06G032_HCLK_USBPM>; + clock-names = "hclkf", "hclkpm"; + power-domains = <&sysctrl>; + status = "disabled";
Quoted 5 lines
Quoted 1 line
If you provided all resources (clocks, power domains etc), why disabling it?
Doesn't this depend on wiring on the board, and providing pin control in the board DTS?
Yes, that could be the reason, so if this was the intention, it's fine.
Best regards,
Krzysztof
Re: [PATCH v2 6/7] ARM: dts: r9a06g032: Add the USBF controller node
In reply to Herve CodinaQuoted 3 lines · Herve Codina
Add the USBF controller available in the r9a06g032 SoC.
Signed-off-by Herve Codina <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Herve Codina
maintainerPATCH v2 7/7 MAINTAINERS: add the Renesas RZ/N1 USBF controller entry
In reply to Herve CodinaAfter contributing the driver, add myself as the maintainer for Renesas RZ/N1 USBF controller.
--- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
@@ -17627,6 +17627,14 @@ S: Maintained F: Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml F: drivers/rtc/rtc-rzn1.c +RENESAS RZ/N1 USBF CONTROLLER DRIVER +M: Herve Codina <[email protected]> +L: [email protected] +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/usb/renesas,usbf.yaml +F: drivers/usb/gadget/udc/renesas_usbf.c + RENESAS R-CAR GEN3 & RZ/N1 NAND CONTROLLER DRIVER M: Miquel Raynal <[email protected]> L: [email protected]
Signature · 1 line
2.38.1
kernel test robot
build botRe: [PATCH v2 7/7] MAINTAINERS: add the Renesas RZ/N1 USBF controller entry
I love your patch! Perhaps something to improve:
Hi Herve,
I love your patch! Perhaps something to improve:
[auto build test WARNING on geert-renesas-drivers/renesas-clk]
[also build test WARNING on usb/usb-testing usb/usb-next usb/usb-linus geert-renesas-devel/next linus/master v6.1-rc5 next-20221114] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Herve-Codina/Add-the-Renesas-USBF-controller-support/20221114-192136 base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git renesas-clk patch link: https://lore.kernel.org/r/20221114111513.1436165-8-herve.codina%40bootlin.com patch subject: [PATCH v2 7/7] MAINTAINERS: add the Renesas RZ/N1 USBF controller entry reproduce: # https://github.com/intel-lab-lkp/linux/commit/2d4ab4c37cc32d82286869f7ec4ee5247354db88 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Herve-Codina/Add-the-Renesas-USBF-controller-support/20221114-192136 git checkout 2d4ab4c37cc32d82286869f7ec4ee5247354db88 make menuconfig # enable CONFIG_COMPILE_TEST, CONFIG_WARN_MISSING_DOCUMENTS, CONFIG_WARN_ABI_ERRORS make htmldocs
If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
>> Warning: MAINTAINERS references a file that doesn't exist: Documentation/devicetree/bindings/usb/renesas,usbf.yaml
Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 6.1.0-rc1 Kernel Configuration
#CONFIG_CC_VERSION_TEXT="gcc-11 (Debian 11.3.0-8) 11.3.0" CONFIG_CC_IS_GCC=yCONFIG_GCC_VERSION=110300 CONFIG_CLANG_VERSION=0CONFIG_AS_IS_GNU=yCONFIG_AS_VERSION=23900CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=23900CONFIG_LLD_VERSION=0CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123CONFIG_IRQ_WORK=yCONFIG_BUILDTIME_TABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#CONFIG_BROKEN_ON_SMP=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_COMPILE_TEST=y
# CONFIG_WERROR is not setCONFIG_LOCALVERSION=""CONFIG_BUILD_SALT=""CONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_HAVE_KERNEL_XZ=yCONFIG_HAVE_KERNEL_LZO=yCONFIG_HAVE_KERNEL_LZ4=yCONFIG_HAVE_KERNEL_ZSTD=yCONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
# CONFIG_KERNEL_ZSTD is not setCONFIG_DEFAULT_INIT=""CONFIG_DEFAULT_HOSTNAME="(none)"
# CONFIG_SYSVIPC is not set
# CONFIG_WATCH_QUEUE is not set
# CONFIG_CROSS_MEMORY_ATTACH is not set
# CONFIG_USELIB is not setCONFIG_HAVE_ARCH_AUDITSYSCALL=y
#
# IRQ subsystem
#CONFIG_GENERIC_IRQ_PROBE=yCONFIG_GENERIC_IRQ_SHOW=yCONFIG_HARDIRQS_SW_RESEND=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_DOMAIN_HIERARCHY=yCONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=yCONFIG_GENERIC_IRQ_RESERVATION_MODE=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=y
# end of IRQ subsystem
CONFIG_CLOCKSOURCE_WATCHDOG=yCONFIG_ARCH_CLOCKSOURCE_INIT=yCONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=yCONFIG_GENERIC_TIME_VSYSCALL=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_CLOCKEVENTS_BROADCAST=yCONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=yCONFIG_GENERIC_CMOS_UPDATE=yCONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=yCONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
#
# Timers subsystem
#CONFIG_HZ_PERIODIC=y
# CONFIG_NO_HZ_IDLE is not set
# CONFIG_NO_HZ is not set
# CONFIG_HIGH_RES_TIMERS is not setCONFIG_CLOCKSOURCE_WATCHDOG_MAX_SKEW_US=100
# end of Timers subsystem
CONFIG_HAVE_EBPF_JIT=yCONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y
#
# BPF subsystem
#
# CONFIG_BPF_SYSCALL is not set
# end of BPF subsystem
CONFIG_PREEMPT_NONE_BUILD=yCONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
# CONFIG_PREEMPT_DYNAMIC is not set
#
# CPU/Task time and stats accounting
#CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
# CONFIG_IRQ_TIME_ACCOUNTING is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_PSI is not set
# end of CPU/Task time and stats accounting
CONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#CONFIG_TINY_RCU=y
# CONFIG_RCU_EXPERT is not setCONFIG_SRCU=yCONFIG_TINY_SRCU=y
# end of RCU Subsystem
# CONFIG_IKCONFIG is not set
# CONFIG_IKHEADERS is not setCONFIG_LOG_BUF_SHIFT=17CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#
# Scheduler features
#
# end of Scheduler features
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y CONFIG_CC_HAS_INT128=y CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5" CONFIG_GCC12_NO_ARRAY_BOUNDS=y CONFIG_ARCH_SUPPORTS_INT128=y
# CONFIG_CGROUPS is not setCONFIG_NAMESPACES=y
# CONFIG_UTS_NS is not set
# CONFIG_TIME_NS is not set
# CONFIG_USER_NS is not set
# CONFIG_PID_NS is not set
# CONFIG_CHECKPOINT_RESTORE is not set
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_RELAY is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_BOOT_CONFIG is not set
# CONFIG_INITRAMFS_PRESERVE_MTIME is not set CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_LD_ORPHAN_WARN=yCONFIG_SYSCTL=yCONFIG_SYSCTL_EXCEPTION_TRACE=y CONFIG_HAVE_PCSPKR_PLATFORM=y
# CONFIG_EXPERT is not setCONFIG_MULTIUSER=yCONFIG_SGETMASK_SYSCALL=yCONFIG_SYSFS_SYSCALL=yCONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_IO_URING=yCONFIG_ADVISE_SYSCALLS=yCONFIG_MEMBARRIER=yCONFIG_KALLSYMS=y CONFIG_KALLSYMS_BASE_RELATIVE=y CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y CONFIG_RSEQ=y
# CONFIG_EMBEDDED is not set CONFIG_HAVE_PERF_EVENTS=y
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=y
# end of Kernel Performance Events And Counters
# CONFIG_PROFILING is not set
# end of General setup
CONFIG_64BIT=yCONFIG_X86_64=yCONFIG_X86=yCONFIG_INSTRUCTION_DECODER=yCONFIG_OUTPUT_FORMAT="elf64-x86-64"CONFIG_LOCKDEP_SUPPORT=yCONFIG_STACKTRACE_SUPPORT=yCONFIG_MMU=yCONFIG_ARCH_MMAP_RND_BITS_MIN=28CONFIG_ARCH_MMAP_RND_BITS_MAX=32CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16CONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_BUG_RELATIVE_POINTERS=yCONFIG_ARCH_MAY_HAVE_PC_FDC=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_ARCH_HAS_CPU_RELAX=yCONFIG_ARCH_HIBERNATION_POSSIBLE=yCONFIG_ARCH_NR_GPIO=1024CONFIG_ARCH_SUSPEND_POSSIBLE=yCONFIG_AUDIT_ARCH=yCONFIG_ARCH_SUPPORTS_UPROBES=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_PGTABLE_LEVELS=4CONFIG_CC_HAS_SANE_STACKPROTECTOR=y
#
# Processor type and features
#
# CONFIG_SMP is not set CONFIG_X86_FEATURE_NAMES=y CONFIG_X86_MPPARSE=y
# CONFIG_GOLDFISH is not set
# CONFIG_X86_CPU_RESCTRL is not set
# CONFIG_X86_EXTENDED_PLATFORM is not set
# CONFIG_SCHED_OMIT_FRAME_POINTER is not set # CONFIG_HYPERVISOR_GUEST is not set
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not set CONFIG_GENERIC_CPU=y CONFIG_X86_INTERNODE_CACHE_SHIFT=6 CONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=y CONFIG_X86_MINIMUM_CPU_FAMILY=64 CONFIG_X86_DEBUGCTLMSR=y CONFIG_IA32_FEAT_CTL=y CONFIG_X86_VMX_FEATURE_NAMES=y CONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_HYGON=y CONFIG_CPU_SUP_CENTAUR=y CONFIG_CPU_SUP_ZHAOXIN=yCONFIG_HPET_TIMER=yCONFIG_DMI=yCONFIG_NR_CPUS_RANGE_BEGIN=1 CONFIG_NR_CPUS_RANGE_END=1 CONFIG_NR_CPUS_DEFAULT=1CONFIG_NR_CPUS=1CONFIG_UP_LATE_INIT=y CONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=y
# CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS is not set # CONFIG_X86_MCE is not set
#
# Performance monitoring
#
# CONFIG_PERF_EVENTS_AMD_POWER is not set
# CONFIG_PERF_EVENTS_AMD_UNCORE is not set
# CONFIG_PERF_EVENTS_AMD_BRS is not set
# end of Performance monitoring
CONFIG_X86_16BIT=yCONFIG_X86_ESPFIX64=y CONFIG_X86_VSYSCALL_EMULATION=y
# CONFIG_X86_IOPL_IOPERM is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
# CONFIG_X86_5LEVEL is not set CONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_AMD_MEM_ENCRYPT is not set CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SPARSEMEM_DEFAULT=y CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 # CONFIG_X86_CHECK_BIOS_CORRUPTION is not set CONFIG_MTRR=y
# CONFIG_MTRR_SANITIZER is not set CONFIG_X86_PAT=y CONFIG_ARCH_USES_PG_UNCACHED=y CONFIG_X86_UMIP=yCONFIG_CC_HAS_IBT=y
# CONFIG_X86_KERNEL_IBT is not set
# CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS is not set CONFIG_X86_INTEL_TSX_MODE_OFF=y
# CONFIG_X86_INTEL_TSX_MODE_ON is not set
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set # CONFIG_HZ_100 is not setCONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=250
# CONFIG_KEXEC is not set
# CONFIG_CRASH_DUMP is not set CONFIG_PHYSICAL_START=0x1000000
# CONFIG_RELOCATABLE is not set CONFIG_PHYSICAL_ALIGN=0x200000 CONFIG_LEGACY_VSYSCALL_XONLY=y
# CONFIG_LEGACY_VSYSCALL_NONE is not set
# CONFIG_CMDLINE_BOOL is not set CONFIG_MODIFY_LDT_SYSCALL=y
# CONFIG_STRICT_SIGALTSTACK_SIZE is not set CONFIG_HAVE_LIVEPATCH=y
# end of Processor type and features
CONFIG_CC_HAS_SLS=yCONFIG_CC_HAS_RETURN_THUNK=y
# CONFIG_SPECULATION_MITIGATIONS is not setCONFIG_ARCH_HAS_ADD_PAGES=yCONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
#
# Power management and ACPI options
#
# CONFIG_SUSPEND is not set
# CONFIG_PM is not setCONFIG_ARCH_SUPPORTS_ACPI=y
# CONFIG_ACPI is not set
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
# end of CPU Frequency scaling
#
# CPU Idle
#
# CONFIG_CPU_IDLE is not set
# end of CPU Idle # end of Power management and ACPI options
#
# Bus options (PCI etc.)
#CONFIG_ISA_DMA_API=y
# end of Bus options (PCI etc.)
#
# Binary Emulations
#
# CONFIG_IA32_EMULATION is not set
# CONFIG_X86_X32_ABI is not set
# end of Binary Emulations
CONFIG_HAVE_KVM=y
# CONFIG_VIRTUALIZATION is not setCONFIG_AS_AVX512=yCONFIG_AS_SHA1_NI=yCONFIG_AS_SHA256_NI=yCONFIG_AS_TPAUSE=y
#
# General architecture-dependent options
#CONFIG_GENERIC_ENTRY=y
# CONFIG_JUMP_LABEL is not set
# CONFIG_STATIC_CALL_SELFTEST is not set CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_HAVE_IOREMAP_PROT=y CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KRETPROBES=y CONFIG_HAVE_OPTPROBES=y CONFIG_HAVE_KPROBES_ON_FTRACE=y CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=y CONFIG_HAVE_FUNCTION_ERROR_INJECTION=y CONFIG_HAVE_NMI=y CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y CONFIG_HAVE_ARCH_TRACEHOOK=y CONFIG_HAVE_DMA_CONTIGUOUS=y CONFIG_GENERIC_SMP_IDLE_THREAD=y CONFIG_ARCH_HAS_FORTIFY_SOURCE=y CONFIG_ARCH_HAS_SET_MEMORY=y CONFIG_ARCH_HAS_SET_DIRECT_MAP=y CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y CONFIG_ARCH_WANTS_NO_INSTR=y CONFIG_HAVE_ASM_MODVERSIONS=y CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_RSEQ=yCONFIG_HAVE_RUST=y CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y CONFIG_HAVE_HW_BREAKPOINT=y CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y CONFIG_HAVE_USER_RETURN_NOTIFIER=y CONFIG_HAVE_PERF_EVENTS_NMI=y CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y CONFIG_HAVE_PERF_REGS=y CONFIG_HAVE_PERF_USER_STACK_DUMP=y CONFIG_HAVE_ARCH_JUMP_LABEL=y CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y CONFIG_MMU_GATHER_MERGE_VMAS=y CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y CONFIG_HAVE_CMPXCHG_LOCAL=y CONFIG_HAVE_CMPXCHG_DOUBLE=y CONFIG_HAVE_ARCH_SECCOMP=y CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
# CONFIG_SECCOMP is not set CONFIG_HAVE_ARCH_STACKLEAK=y CONFIG_HAVE_STACKPROTECTOR=y
# CONFIG_STACKPROTECTOR is not set CONFIG_ARCH_SUPPORTS_LTO_CLANG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y CONFIG_LTO_NONE=y CONFIG_ARCH_SUPPORTS_CFI_CLANG=y CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y CONFIG_HAVE_CONTEXT_TRACKING_USER=y CONFIG_HAVE_CONTEXT_TRACKING_USER_OFFSTACK=y CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y CONFIG_HAVE_MOVE_PUD=y CONFIG_HAVE_MOVE_PMD=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y CONFIG_HAVE_ARCH_HUGE_VMAP=y CONFIG_HAVE_ARCH_HUGE_VMALLOC=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_HAVE_ARCH_SOFT_DIRTY=y CONFIG_HAVE_MOD_ARCH_SPECIFIC=y CONFIG_MODULES_USE_ELF_RELA=y CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=y CONFIG_SOFTIRQ_ON_OWN_STACK=y CONFIG_ARCH_HAS_ELF_RANDOMIZE=y CONFIG_HAVE_ARCH_MMAP_RND_BITS=y CONFIG_HAVE_EXIT_THREAD=y CONFIG_ARCH_MMAP_RND_BITS=28 CONFIG_PAGE_SIZE_LESS_THAN_64KB=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_HAVE_OBJTOOL=y CONFIG_HAVE_JUMP_LABEL_HACK=y CONFIG_HAVE_NOINSTR_HACK=y CONFIG_HAVE_NOINSTR_VALIDATION=y CONFIG_HAVE_UACCESS_VALIDATION=y CONFIG_HAVE_STACK_VALIDATION=y CONFIG_HAVE_RELIABLE_STACKTRACE=y
# CONFIG_COMPAT_32BIT_TIME is not set CONFIG_HAVE_ARCH_VMAP_STACK=y
# CONFIG_VMAP_STACK is not set CONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=y CONFIG_RANDOMIZE_KSTACK_OFFSET=y
# CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT is not set CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y CONFIG_STRICT_KERNEL_RWX=y CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y CONFIG_HAVE_ARCH_PREL32_RELOCATIONS=y CONFIG_ARCH_HAS_MEM_ENCRYPT=y CONFIG_HAVE_STATIC_CALL=y CONFIG_HAVE_STATIC_CALL_INLINE=y CONFIG_HAVE_PREEMPT_DYNAMIC=y CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y CONFIG_ARCH_HAS_ELFCORE_COMPAT=y CONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=y CONFIG_DYNAMIC_SIGFRAME=y CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG=y
#
# GCOV-based kernel profiling
#CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling
CONFIG_HAVE_GCC_PLUGINS=y
# CONFIG_GCC_PLUGINS is not set
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0
# CONFIG_MODULES is not setCONFIG_BLOCK=y
# CONFIG_BLOCK_LEGACY_AUTOLOAD is not set
# CONFIG_BLK_DEV_BSGLIB is not set
# CONFIG_BLK_DEV_INTEGRITY is not set
# CONFIG_BLK_DEV_ZONED is not set
# CONFIG_BLK_WBT is not set
# CONFIG_BLK_SED_OPAL is not set
# CONFIG_BLK_INLINE_ENCRYPTION is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not setCONFIG_MSDOS_PARTITION=yCONFIG_EFI_PARTITION=y
# end of Partition Types
#
# IO Schedulers
#
# CONFIG_MQ_IOSCHED_DEADLINE is not set
# CONFIG_MQ_IOSCHED_KYBER is not set
# CONFIG_IOSCHED_BFQ is not set
# end of IO Schedulers
CONFIG_INLINE_SPIN_UNLOCK_IRQ=yCONFIG_INLINE_READ_UNLOCK=yCONFIG_INLINE_READ_UNLOCK_IRQ=yCONFIG_INLINE_WRITE_UNLOCK=yCONFIG_INLINE_WRITE_UNLOCK_IRQ=yCONFIG_ARCH_SUPPORTS_ATOMIC_RMW=yCONFIG_ARCH_USE_QUEUED_SPINLOCKS=yCONFIG_ARCH_USE_QUEUED_RWLOCKS=yCONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE=yCONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=yCONFIG_ARCH_HAS_SYSCALL_WRAPPER=y
#
# Executable file formats
#
# CONFIG_BINFMT_ELF is not set
# CONFIG_BINFMT_SCRIPT is not set
# CONFIG_BINFMT_MISC is not setCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#
# CONFIG_SWAP is not set
#
# SLAB allocator options
#
# CONFIG_SLAB is not setCONFIG_SLUB=y
# CONFIG_SLAB_MERGE_DEFAULT is not set
# CONFIG_SLAB_FREELIST_RANDOM is not set
# CONFIG_SLAB_FREELIST_HARDENED is not set
# CONFIG_SLUB_STATS is not set
# end of SLAB allocator options
# CONFIG_SHUFFLE_PAGE_ALLOCATOR is not set
# CONFIG_COMPAT_BRK is not setCONFIG_SPARSEMEM=yCONFIG_SPARSEMEM_EXTREME=yCONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
# CONFIG_SPARSEMEM_VMEMMAP is not setCONFIG_HAVE_FAST_GUP=yCONFIG_EXCLUSIVE_SYSTEM_RAM=yCONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
# CONFIG_MEMORY_HOTPLUG is not setCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
# CONFIG_COMPACTION is not set
# CONFIG_PAGE_REPORTING is not setCONFIG_PHYS_ADDR_T_64BIT=y
# CONFIG_KSM is not setCONFIG_DEFAULT_MMAP_MIN_ADDR=4096CONFIG_ARCH_WANT_GENERAL_HUGETLB=yCONFIG_ARCH_WANTS_THP_SWAP=y
# CONFIG_TRANSPARENT_HUGEPAGE is not setCONFIG_NEED_PER_CPU_KM=yCONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=yCONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=yCONFIG_HAVE_SETUP_PER_CPU_AREA=y
# CONFIG_CMA is not setCONFIG_GENERIC_EARLY_IOREMAP=y
# CONFIG_IDLE_PAGE_TRACKING is not setCONFIG_ARCH_HAS_CACHE_LINE_SIZE=yCONFIG_ARCH_HAS_CURRENT_STACK_POINTER=yCONFIG_ARCH_HAS_PTE_DEVMAP=yCONFIG_ZONE_DMA=yCONFIG_ZONE_DMA32=yCONFIG_VM_EVENT_COUNTERS=y
# CONFIG_PERCPU_STATS is not set
#
# GUP_TEST needs to have DEBUG_FS enabled
#CONFIG_ARCH_HAS_PTE_SPECIAL=yCONFIG_SECRETMEM=y
# CONFIG_ANON_VMA_NAME is not set
# CONFIG_USERFAULTFD is not set
# CONFIG_LRU_GEN is not set
#
# Data Access Monitoring
#
# CONFIG_DAMON is not set
# end of Data Access Monitoring # end of Memory Management options
# CONFIG_NET is not set
#
# Device Drivers
#CONFIG_HAVE_EISA=y
# CONFIG_EISA is not setCONFIG_HAVE_PCI=y
# CONFIG_PCI is not set
# CONFIG_PCCARD is not set
#
# Generic Driver Options
#
# CONFIG_UEVENT_HELPER is not set
# CONFIG_DEVTMPFS is not set
# CONFIG_STANDALONE is not set
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
#
# Firmware loader
#CONFIG_FW_LOADER=yCONFIG_EXTRA_FIRMWARE=""
# CONFIG_FW_LOADER_USER_HELPER is not set
# CONFIG_FW_LOADER_COMPRESS is not set
# CONFIG_FW_UPLOAD is not set
# end of Firmware loader
CONFIG_ALLOW_DEV_COREDUMP=yCONFIG_GENERIC_CPU_AUTOPROBE=yCONFIG_GENERIC_CPU_VULNERABILITIES=y
# end of Generic Driver Options
#
# Bus devices
#
# CONFIG_ARM_INTEGRATOR_LM is not set
# CONFIG_BT1_APB is not set
# CONFIG_BT1_AXI is not set
# CONFIG_HISILICON_LPC is not set
# CONFIG_INTEL_IXP4XX_EB is not set
# CONFIG_QCOM_EBI2 is not set
# CONFIG_MHI_BUS is not set
# CONFIG_MHI_BUS_EP is not set
# end of Bus devices
#
# Firmware Drivers
#
#
# ARM System Control and Management Interface Protocol #
# CONFIG_ARM_SCMI_PROTOCOL is not set
# end of ARM System Control and Management Interface Protocol
# CONFIG_EDD is not setCONFIG_FIRMWARE_MEMMAP=y
# CONFIG_DMIID is not set
# CONFIG_DMI_SYSFS is not setCONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# CONFIG_FW_CFG_SYSFS is not set
# CONFIG_SYSFB_SIMPLEFB is not set
# CONFIG_BCM47XX_NVRAM is not set
# CONFIG_GOOGLE_FIRMWARE is not set
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
# CONFIG_GNSS is not set
# CONFIG_MTD is not set
# CONFIG_OF is not setCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
# CONFIG_BLK_DEV is not set
#
# NVME Support
#
# CONFIG_NVME_FC is not set
# end of NVME Support
#
# Misc devices
#
# CONFIG_DUMMY_IRQ is not set
# CONFIG_ATMEL_SSC is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_QCOM_COINCELL is not set
# CONFIG_SRAM is not set
# CONFIG_XILINX_SDFEC is not set
# CONFIG_C2PORT is not set
#
# EEPROM support
#
# CONFIG_EEPROM_93CX6 is not set
# end of EEPROM support
#
# Texas Instruments shared transport line discipline #
# end of Texas Instruments shared transport line discipline
#
# Altera FPGA firmware download module (requires I2C) #
# CONFIG_ECHO is not set
# CONFIG_PVPANIC is not set
# end of Misc devices
#
# SCSI device support
#CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not set
# CONFIG_SCSI is not set
# end of SCSI device support
# CONFIG_ATA is not set
# CONFIG_MD is not set
# CONFIG_TARGET_CORE is not set
#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not set
# end of IEEE 1394 (FireWire) support
# CONFIG_MACINTOSH_DRIVERS is not set
#
# Input device support
#CONFIG_INPUT=y
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_SPARSEKMAP is not set
# CONFIG_INPUT_MATRIXKMAP is not set
#
# Userland interfaces
#
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#
# CONFIG_INPUT_KEYBOARD is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
# CONFIG_RMI4_CORE is not set
#
# Hardware I/O ports
#
# CONFIG_SERIO is not setCONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
# CONFIG_GAMEPORT is not set
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=yCONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not setCONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set
# CONFIG_LDISC_AUTOLOAD is not set
#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_AMBA_PL010 is not set
# CONFIG_SERIAL_MESON is not set
# CONFIG_SERIAL_CLPS711X is not set
# CONFIG_SERIAL_SAMSUNG is not set
# CONFIG_SERIAL_TEGRA is not set
# CONFIG_SERIAL_IMX is not set
# CONFIG_SERIAL_UARTLITE is not set
# CONFIG_SERIAL_SH_SCI is not set
# CONFIG_SERIAL_MSM is not set
# CONFIG_SERIAL_VT8500 is not set
# CONFIG_SERIAL_OMAP is not set
# CONFIG_SERIAL_LANTIQ is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_TIMBERDALE is not set
# CONFIG_SERIAL_BCM63XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_MXS_AUART is not set
# CONFIG_SERIAL_MPS2_UART is not set
# CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_FSL_LINFLEXUART is not set
# CONFIG_SERIAL_ST_ASC is not set
# CONFIG_SERIAL_STM32 is not set
# CONFIG_SERIAL_OWL is not set
# CONFIG_SERIAL_RDA is not set
# CONFIG_SERIAL_LITEUART is not set
# CONFIG_SERIAL_SUNPLUS is not set
# end of Serial drivers
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_NULL_TTY is not set
# CONFIG_SERIAL_DEV_BUS is not set
# CONFIG_VIRTIO_CONSOLE is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_ASPEED_KCS_IPMI_BMC is not set
# CONFIG_NPCM7XX_KCS_IPMI_BMC is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_MWAVE is not set
# CONFIG_DEVMEM is not set
# CONFIG_NVRAM is not set
# CONFIG_HANGCHECK_TIMER is not set
# CONFIG_TCG_TPM is not set
# CONFIG_TELCLOCK is not set
# CONFIG_RANDOM_TRUST_CPU is not set
# CONFIG_RANDOM_TRUST_BOOTLOADER is not set
# end of Character devices
#
# I2C support
#
# CONFIG_I2C is not set
# end of I2C support
# CONFIG_I3C is not set
# CONFIG_SPI is not set
# CONFIG_SPMI is not set
# CONFIG_HSI is not set
# CONFIG_PPS is not set
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK_OPTIONAL=y
#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks. #
# end of PTP clock support
# CONFIG_PINCTRL is not set
# CONFIG_GPIOLIB is not set
# CONFIG_W1 is not set
# CONFIG_POWER_RESET is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_HWMON is not set
# CONFIG_THERMAL is not set
# CONFIG_WATCHDOG is not setCONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not setCONFIG_BCMA_POSSIBLE=y
# CONFIG_BCMA is not set
#
# Multifunction device drivers
#
# CONFIG_MFD_SUN4I_GPADC is not set
# CONFIG_MFD_AT91_USART is not set
# CONFIG_MFD_MADERA is not set
# CONFIG_MFD_EXYNOS_LPASS is not set
# CONFIG_MFD_MXS_LRADC is not set
# CONFIG_MFD_MX25_TSADC is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_PM8XXX is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_SUN6I_PRCM is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_TQMX86 is not set
# CONFIG_MFD_STM32_LPTIMER is not set
# CONFIG_MFD_STM32_TIMERS is not set
# end of Multifunction device drivers
# CONFIG_REGULATOR is not set
# CONFIG_RC_CORE is not set
#
# CEC support
#
# CONFIG_MEDIA_CEC_SUPPORT is not set
# end of CEC support
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#
# CONFIG_IMX_IPUV3_CORE is not set
# CONFIG_DRM is not set
#
# ARM devices
#
# end of ARM devices
#
# Frame buffer Devices
#
# CONFIG_FB is not set
# CONFIG_MMP_DISP is not set
# end of Frame buffer Devices
#
# Backlight & LCD device support
#
# CONFIG_LCD_CLASS_DEVICE is not set
# CONFIG_BACKLIGHT_CLASS_DEVICE is not set
# end of Backlight & LCD device support
#
# Console display driver support
#CONFIG_VGA_CONSOLE=yCONFIG_DUMMY_CONSOLE=yCONFIG_DUMMY_CONSOLE_COLUMNS=80CONFIG_DUMMY_CONSOLE_ROWS=25
# end of Console display driver support # end of Graphics support
# CONFIG_SOUND is not set
#
# HID support
#
# CONFIG_HID is not set
# end of HID support
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
# CONFIG_USB_SUPPORT is not set
# CONFIG_MMC is not set
# CONFIG_MEMSTICK is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not setCONFIG_EDAC_ATOMIC_SCRUB=yCONFIG_EDAC_SUPPORT=yCONFIG_RTC_LIB=yCONFIG_RTC_MC146818_LIB=y
# CONFIG_RTC_CLASS is not set
# CONFIG_DMADEVICES is not set
#
# DMABUF options
#
# CONFIG_SYNC_FILE is not set
# CONFIG_DMABUF_HEAPS is not set
# end of DMABUF options
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
# CONFIG_VFIO is not set
# CONFIG_VIRT_DRIVERS is not set
# CONFIG_VIRTIO_MENU is not set
# CONFIG_VHOST_MENU is not set
#
# Microsoft Hyper-V guest support
#
# end of Microsoft Hyper-V guest support
# CONFIG_GREYBUS is not set
# CONFIG_COMEDI is not set
# CONFIG_STAGING is not set
# CONFIG_CHROME_PLATFORMS is not set
# CONFIG_MELLANOX_PLATFORM is not set
# CONFIG_OLPC_XO175 is not set
# CONFIG_SURFACE_PLATFORMS is not set
# CONFIG_X86_PLATFORM_DEVICES is not set
# CONFIG_COMMON_CLK is not set
# CONFIG_HWSPINLOCK is not set
#
# Clock Source drivers
#CONFIG_CLKEVT_I8253=yCONFIG_I8253_LOCK=yCONFIG_CLKBLD_I8253=y
# CONFIG_BCM2835_TIMER is not set
# CONFIG_BCM_KONA_TIMER is not set
# CONFIG_DAVINCI_TIMER is not set
# CONFIG_DIGICOLOR_TIMER is not set
# CONFIG_OMAP_DM_TIMER is not set
# CONFIG_DW_APB_TIMER is not set
# CONFIG_FTTMR010_TIMER is not set
# CONFIG_IXP4XX_TIMER is not set
# CONFIG_MESON6_TIMER is not set
# CONFIG_OWL_TIMER is not set
# CONFIG_RDA_TIMER is not set
# CONFIG_SUN4I_TIMER is not set
# CONFIG_TEGRA_TIMER is not set
# CONFIG_VT8500_TIMER is not set
# CONFIG_NPCM7XX_TIMER is not set
# CONFIG_ASM9260_TIMER is not set
# CONFIG_CLKSRC_DBX500_PRCMU is not set
# CONFIG_CLPS711X_TIMER is not set
# CONFIG_MXS_TIMER is not set
# CONFIG_NSPIRE_TIMER is not set
# CONFIG_INTEGRATOR_AP_TIMER is not set
# CONFIG_CLKSRC_PISTACHIO is not set
# CONFIG_CLKSRC_STM32_LP is not set
# CONFIG_ARMV7M_SYSTICK is not set
# CONFIG_ATMEL_PIT is not set
# CONFIG_ATMEL_ST is not set
# CONFIG_CLKSRC_SAMSUNG_PWM is not set
# CONFIG_FSL_FTM_TIMER is not set
# CONFIG_OXNAS_RPS_TIMER is not set
# CONFIG_MTK_TIMER is not set
# CONFIG_SH_TIMER_CMT is not set
# CONFIG_SH_TIMER_MTU2 is not set
# CONFIG_RENESAS_OSTM is not set
# CONFIG_SH_TIMER_TMU is not set
# CONFIG_EM_TIMER_STI is not set
# CONFIG_CLKSRC_PXA is not set
# CONFIG_TIMER_IMX_SYS_CTR is not set
# CONFIG_CLKSRC_ST_LPC is not set
# CONFIG_GXP_TIMER is not set
# CONFIG_MSC313E_TIMER is not set
# CONFIG_MICROCHIP_PIT64B is not set
# end of Clock Source drivers
# CONFIG_MAILBOX is not set
# CONFIG_IOMMU_SUPPORT is not set
#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set
# end of Remoteproc drivers
#
# Rpmsg drivers
#
# CONFIG_RPMSG_VIRTIO is not set
# end of Rpmsg drivers
#
# SOC (System On Chip) specific Drivers
#
#
# Amlogic SoC drivers
#
# CONFIG_MESON_CANVAS is not set
# CONFIG_MESON_CLK_MEASURE is not set
# CONFIG_MESON_GX_SOCINFO is not set
# CONFIG_MESON_MX_SOCINFO is not set
# end of Amlogic SoC drivers
#
# Apple SoC drivers
#
# CONFIG_APPLE_SART is not set
# end of Apple SoC drivers
#
# ASPEED SoC drivers
#
# CONFIG_ASPEED_LPC_CTRL is not set
# CONFIG_ASPEED_LPC_SNOOP is not set
# CONFIG_ASPEED_UART_ROUTING is not set
# CONFIG_ASPEED_P2A_CTRL is not set
# CONFIG_ASPEED_SOCINFO is not set
# end of ASPEED SoC drivers
# CONFIG_AT91_SOC_ID is not set
# CONFIG_AT91_SOC_SFR is not set
#
# Broadcom SoC drivers
#
# CONFIG_SOC_BCM63XX is not set
# CONFIG_SOC_BRCMSTB is not set
# end of Broadcom SoC drivers
#
# NXP/Freescale QorIQ SoC drivers
#
# end of NXP/Freescale QorIQ SoC drivers
#
# fujitsu SoC drivers # # end of fujitsu SoC drivers
#
# i.MX SoC drivers
#
# CONFIG_SOC_IMX8M is not set
# CONFIG_SOC_IMX9 is not set
# end of i.MX SoC drivers
#
# IXP4xx SoC drivers
#
# CONFIG_IXP4XX_QMGR is not set
# CONFIG_IXP4XX_NPE is not set
# end of IXP4xx SoC drivers
#
# Enable LiteX SoC Builder specific drivers
#
# CONFIG_LITEX_SOC_CONTROLLER is not set
# end of Enable LiteX SoC Builder specific drivers
#
# MediaTek SoC drivers
#
# CONFIG_MTK_CMDQ is not set
# CONFIG_MTK_DEVAPC is not set
# CONFIG_MTK_INFRACFG is not set
# CONFIG_MTK_MMSYS is not set
# end of MediaTek SoC drivers
#
# Qualcomm SoC drivers
#
# CONFIG_QCOM_GENI_SE is not set
# CONFIG_QCOM_GSBI is not set
# CONFIG_QCOM_LLCC is not set
# CONFIG_QCOM_RPMH is not set
# CONFIG_QCOM_SPM is not set
# CONFIG_QCOM_ICC_BWMON is not set
# end of Qualcomm SoC drivers
# CONFIG_SOC_RENESAS is not set
# CONFIG_ROCKCHIP_GRF is not set
# CONFIG_SOC_SAMSUNG is not set
# CONFIG_SOC_TI is not set
# CONFIG_UX500_SOC_ID is not set
#
# Xilinx SoC drivers
#
# end of Xilinx SoC drivers # end of SOC (System On Chip) specific Drivers
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
# CONFIG_IIO is not set
# CONFIG_PWM is not set
#
# IRQ chip support
#
# CONFIG_AL_FIC is not set
# CONFIG_RENESAS_INTC_IRQPIN is not set
# CONFIG_RENESAS_IRQC is not set
# CONFIG_RENESAS_RZA1_IRQC is not set
# CONFIG_RENESAS_RZG2L_IRQC is not set
# CONFIG_SL28CPLD_INTC is not set
# CONFIG_TS4800_IRQ is not set
# CONFIG_INGENIC_TCU_IRQ is not set
# CONFIG_IRQ_UNIPHIER_AIDET is not set
# CONFIG_MESON_IRQ_GPIO is not set
# CONFIG_IMX_IRQSTEER is not set
# CONFIG_IMX_INTMUX is not set
# CONFIG_EXYNOS_IRQ_COMBINER is not set
# CONFIG_MST_IRQ is not set
# CONFIG_MCHP_EIC is not set
# CONFIG_SUNPLUS_SP7021_INTC is not set
# end of IRQ chip support
# CONFIG_IPACK_BUS is not set
# CONFIG_RESET_CONTROLLER is not set
#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
# CONFIG_PHY_PISTACHIO_USB is not set
# CONFIG_PHY_CAN_TRANSCEIVER is not set
#
# PHY drivers for Broadcom platforms
#
# CONFIG_PHY_BCM63XX_USBH is not set
# CONFIG_BCM_KONA_USB2_PHY is not set
# end of PHY drivers for Broadcom platforms
# CONFIG_PHY_HI6220_USB is not set
# CONFIG_PHY_HI3660_USB is not set
# CONFIG_PHY_HI3670_USB is not set
# CONFIG_PHY_HI3670_PCIE is not set
# CONFIG_PHY_HISTB_COMBPHY is not set
# CONFIG_PHY_HISI_INNO_USB2 is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_PXA_USB is not set
# CONFIG_PHY_MMP3_USB is not set
# CONFIG_PHY_MMP3_HSIC is not set
# CONFIG_PHY_MT7621_PCI is not set
# CONFIG_PHY_RALINK_USB is not set
# CONFIG_PHY_RCAR_GEN3_USB3 is not set
# CONFIG_PHY_ROCKCHIP_DPHY_RX0 is not set
# CONFIG_PHY_ROCKCHIP_PCIE is not set
# CONFIG_PHY_ROCKCHIP_SNPS_PCIE3 is not set
# CONFIG_PHY_EXYNOS_MIPI_VIDEO is not set
# CONFIG_PHY_SAMSUNG_USB2 is not set
# CONFIG_PHY_ST_SPEAR1310_MIPHY is not set
# CONFIG_PHY_ST_SPEAR1340_MIPHY is not set
# CONFIG_PHY_TEGRA194_P2U is not set
# CONFIG_PHY_DA8XX_USB is not set
# CONFIG_OMAP_CONTROL_PHY is not set
# CONFIG_TI_PIPE3 is not set
# CONFIG_PHY_INTEL_KEEMBAY_EMMC is not set
# CONFIG_PHY_INTEL_KEEMBAY_USB is not set
# CONFIG_PHY_INTEL_LGM_EMMC is not set
# CONFIG_PHY_XILINX_ZYNQMP is not set
# end of PHY Subsystem
# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set
#
# Performance monitor support
#
# CONFIG_ARM_CCN is not set
# CONFIG_ARM_CMN is not set
# CONFIG_FSL_IMX8_DDR_PMU is not set
# CONFIG_XGENE_PMU is not set
# CONFIG_ARM_DMC620_PMU is not set
# CONFIG_MARVELL_CN10K_TAD_PMU is not set
# CONFIG_ALIBABA_UNCORE_DRW_PMU is not set
# CONFIG_MARVELL_CN10K_DDR_PMU is not set
# end of Performance monitor support
# CONFIG_RAS is not set
#
# Android
#
# CONFIG_ANDROID_BINDER_IPC is not set
# end of Android
# CONFIG_DAX is not set
# CONFIG_NVMEM is not set
#
# HW tracing support
#
# CONFIG_STM is not set
# CONFIG_INTEL_TH is not set
# end of HW tracing support
# CONFIG_FPGA is not set
# CONFIG_TEE is not set
# CONFIG_SIOX is not set
# CONFIG_SLIMBUS is not set
# CONFIG_INTERCONNECT is not set
# CONFIG_COUNTER is not set
# CONFIG_PECI is not set
# CONFIG_HTE is not set
# end of Device Drivers
#
# File systems
#CONFIG_DCACHE_WORD_ACCESS=y
# CONFIG_VALIDATE_FS_PARSER is not set
# CONFIG_EXT2_FS is not set
# CONFIG_EXT3_FS is not set
# CONFIG_EXT4_FS is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not set
# CONFIG_F2FS_FS is not setCONFIG_EXPORTFS=y
# CONFIG_EXPORTFS_BLOCK_OPS is not setCONFIG_FILE_LOCKING=y
# CONFIG_FS_ENCRYPTION is not set
# CONFIG_FS_VERITY is not set
# CONFIG_DNOTIFY is not set
# CONFIG_INOTIFY_USER is not set
# CONFIG_FANOTIFY is not set
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_FUSE_FS is not set
# CONFIG_OVERLAY_FS is not set
#
# Caches
#
# CONFIG_FSCACHE is not set
# end of Caches
#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set
# end of CD-ROM/DVD Filesystems
#
# DOS/FAT/EXFAT/NT Filesystems
#
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_EXFAT_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_NTFS3_FS is not set
# end of DOS/FAT/EXFAT/NT Filesystems
#
# Pseudo filesystems
#CONFIG_PROC_FS=y
# CONFIG_PROC_KCORE is not setCONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=y
# CONFIG_PROC_CHILDREN is not setCONFIG_PROC_PID_ARCH_STATUS=yCONFIG_KERNFS=yCONFIG_SYSFS=y
# CONFIG_TMPFS is not set
# CONFIG_HUGETLBFS is not setCONFIG_ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=yCONFIG_ARCH_HAS_GIGANTIC_PAGE=y
# CONFIG_CONFIGFS_FS is not set
# end of Pseudo filesystems
# CONFIG_MISC_FILESYSTEMS is not set
# CONFIG_NLS is not set
# CONFIG_UNICODE is not setCONFIG_IO_WQ=y
# end of File systems
#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITY is not set
# CONFIG_SECURITYFS is not set CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=y
# CONFIG_HARDENED_USERCOPY is not set
# CONFIG_FORTIFY_SOURCE is not set
# CONFIG_STATIC_USERMODEHELPER is not set CONFIG_DEFAULT_SECURITY_DAC=y CONFIG_LSM="landlock,lockdown,yama,loadpin,safesetid,integrity,bpf"
#
# Kernel hardening options
#
#
# Memory initialization
#CONFIG_INIT_STACK_NONE=y
# CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set
# CONFIG_INIT_ON_FREE_DEFAULT_ON is not setCONFIG_CC_HAS_ZERO_CALL_USED_REGS=y
# CONFIG_ZERO_CALL_USED_REGS is not set
# end of Memory initialization
CONFIG_RANDSTRUCT_NONE=y
# end of Kernel hardening options # end of Security options
# CONFIG_CRYPTO is not set
#
# Library routines
#
# CONFIG_PACKING is not setCONFIG_BITREVERSE=yCONFIG_GENERIC_STRNCPY_FROM_USER=yCONFIG_GENERIC_STRNLEN_USER=y
# CONFIG_CORDIC is not set
# CONFIG_PRIME_NUMBERS is not setCONFIG_GENERIC_PCI_IOMAP=yCONFIG_GENERIC_IOMAP=yCONFIG_ARCH_USE_CMPXCHG_LOCKREF=yCONFIG_ARCH_HAS_FAST_MULTIPLIER=yCONFIG_ARCH_USE_SYM_ANNOTATIONS=y
#
# Crypto library routines
#CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=y
# CONFIG_CRYPTO_LIB_CHACHA is not set
# CONFIG_CRYPTO_LIB_CURVE25519 is not setCONFIG_CRYPTO_LIB_POLY1305_RSIZE=11
# CONFIG_CRYPTO_LIB_POLY1305 is not set
# end of Crypto library routines
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not set
# CONFIG_CRC_T10DIF is not set
# CONFIG_CRC64_ROCKSOFT is not set
# CONFIG_CRC_ITU_T is not setCONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not setCONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not set
# CONFIG_CRC64 is not set
# CONFIG_CRC4 is not set
# CONFIG_CRC7 is not set
# CONFIG_LIBCRC32C is not set
# CONFIG_CRC8 is not set
# CONFIG_RANDOM32_SELFTEST is not set
# CONFIG_XZ_DEC is not setCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT_MAP=yCONFIG_HAS_DMA=yCONFIG_NEED_SG_DMA_LENGTH=yCONFIG_NEED_DMA_MAP_STATE=yCONFIG_ARCH_DMA_ADDR_T_64BIT=yCONFIG_SWIOTLB=y
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_IRQ_POLL is not setCONFIG_HAVE_GENERIC_VDSO=yCONFIG_GENERIC_GETTIMEOFDAY=yCONFIG_GENERIC_VDSO_TIME_NS=yCONFIG_ARCH_HAS_PMEM_API=yCONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=yCONFIG_ARCH_HAS_COPY_MC=yCONFIG_ARCH_STACKWALK=yCONFIG_STACKDEPOT=yCONFIG_SBITMAP=y
# CONFIG_PARMAN is not set
# CONFIG_OBJAGG is not set
# end of Library routines
#
# Kernel hacking
#
#
# printk and dmesg options # # CONFIG_PRINTK_TIME is not set # CONFIG_PRINTK_CALLER is not set # CONFIG_STACKTRACE_BUILD_ID is not set CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 CONFIG_CONSOLE_LOGLEVEL_QUIET=4 CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 # CONFIG_DYNAMIC_DEBUG is not set # CONFIG_DYNAMIC_DEBUG_CORE is not set # CONFIG_SYMBOLIC_ERRNAME is not set CONFIG_DEBUG_BUGVERBOSE=y # end of printk and dmesg options
# CONFIG_DEBUG_KERNEL is not set
#
# Compile-time checks and compiler options
#CONFIG_AS_HAS_NON_CONST_LEB128=yCONFIG_FRAME_WARN=2048
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_HEADERS_INSTALL is not setCONFIG_DEBUG_SECTION_MISMATCH=yCONFIG_SECTION_MISMATCH_WARN_ONLY=yCONFIG_OBJTOOL=y
# end of Compile-time checks and compiler options
#
# Generic Kernel Debugging Instruments
#
# CONFIG_MAGIC_SYSRQ is not set
# CONFIG_DEBUG_FS is not setCONFIG_HAVE_ARCH_KGDB=yCONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y
# CONFIG_UBSAN is not setCONFIG_HAVE_ARCH_KCSAN=yCONFIG_HAVE_KCSAN_COMPILER=y
# end of Generic Kernel Debugging Instruments
#
# Networking Debugging
#
# end of Networking Debugging
#
# Memory Debugging
#
# CONFIG_PAGE_EXTENSION is not setCONFIG_SLUB_DEBUG=y
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_PAGE_TABLE_CHECK is not set
# CONFIG_PAGE_POISONING is not set
# CONFIG_DEBUG_RODATA_TEST is not setCONFIG_ARCH_HAS_DEBUG_WX=y
# CONFIG_DEBUG_WX is not setCONFIG_GENERIC_PTDUMP=yCONFIG_HAVE_DEBUG_KMEMLEAK=yCONFIG_ARCH_HAS_DEBUG_VM_PGTABLE=y
# CONFIG_DEBUG_VM_PGTABLE is not setCONFIG_ARCH_HAS_DEBUG_VIRTUAL=yCONFIG_DEBUG_MEMORY_INIT=yCONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=yCONFIG_HAVE_ARCH_KASAN=yCONFIG_HAVE_ARCH_KASAN_VMALLOC=yCONFIG_CC_HAS_KASAN_GENERIC=yCONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS=y
# CONFIG_KASAN is not setCONFIG_HAVE_ARCH_KFENCE=y
# CONFIG_KFENCE is not setCONFIG_HAVE_ARCH_KMSAN=y
# end of Memory Debugging
#
# Debug Oops, Lockups and Hangs
#
# CONFIG_PANIC_ON_OOPS is not setCONFIG_PANIC_ON_OOPS_VALUE=0CONFIG_PANIC_TIMEOUT=0CONFIG_HARDLOCKUP_CHECK_TIMESTAMP=y
# end of Debug Oops, Lockups and Hangs
#
# Scheduler Debugging
#
# end of Scheduler Debugging
# CONFIG_DEBUG_TIMEKEEPING is not set
#
# Lock Debugging (spinlocks, mutexes, etc...)
#CONFIG_LOCK_DEBUGGING_SUPPORT=y
# CONFIG_WW_MUTEX_SELFTEST is not set
# end of Lock Debugging (spinlocks, mutexes, etc...)
# CONFIG_DEBUG_IRQFLAGS is not setCONFIG_STACKTRACE=y
# CONFIG_WARN_ALL_UNSEEDED_RANDOM is not set
#
# Debug kernel data structures
#
# CONFIG_BUG_ON_DATA_CORRUPTION is not set
# end of Debug kernel data structures
#
# RCU Debugging
#
# end of RCU Debugging
CONFIG_USER_STACKTRACE_SUPPORT=yCONFIG_HAVE_RETHOOK=yCONFIG_HAVE_FUNCTION_TRACER=yCONFIG_HAVE_DYNAMIC_FTRACE=yCONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=yCONFIG_HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=yCONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS=yCONFIG_HAVE_DYNAMIC_FTRACE_NO_PATCHABLE=yCONFIG_HAVE_FTRACE_MCOUNT_RECORD=yCONFIG_HAVE_SYSCALL_TRACEPOINTS=yCONFIG_HAVE_FENTRY=yCONFIG_HAVE_OBJTOOL_MCOUNT=yCONFIG_HAVE_C_RECORDMCOUNT=yCONFIG_HAVE_BUILDTIME_MCOUNT_SORT=yCONFIG_TRACING_SUPPORT=y
# CONFIG_FTRACE is not set
# CONFIG_SAMPLES is not setCONFIG_HAVE_SAMPLE_FTRACE_DIRECT=yCONFIG_HAVE_SAMPLE_FTRACE_DIRECT_MULTI=yCONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
#
# x86 Debugging # # CONFIG_X86_VERBOSE_BOOTUP is not set CONFIG_EARLY_PRINTK=y CONFIG_HAVE_MMIOTRACE_SUPPORT=y CONFIG_IO_DELAY_0X80=y # CONFIG_IO_DELAY_0XED is not set # CONFIG_IO_DELAY_UDELAY is not set # CONFIG_IO_DELAY_NONE is not set CONFIG_UNWINDER_ORC=y # CONFIG_UNWINDER_FRAME_POINTER is not set # end of x86 Debugging
#
# Kernel Testing and Coverage
#
# CONFIG_KUNIT is not setCONFIG_ARCH_HAS_KCOV=yCONFIG_CC_HAS_SANCOV_TRACE_PC=y
# CONFIG_KCOV is not set
# CONFIG_RUNTIME_TESTING_MENU is not setCONFIG_ARCH_USE_MEMTEST=y
# CONFIG_MEMTEST is not set
# end of Kernel Testing and Coverage
#
# Rust hacking
#
# end of Rust hacking
CONFIG_WARN_MISSING_DOCUMENTS=yCONFIG_WARN_ABI_ERRORS=y
# end of Kernel hacking
Herve Codina
maintainerRe: [PATCH v2 7/7] MAINTAINERS: add the Renesas RZ/N1 USBF controller entry
Hi All,
Quoted 23 lines · On Tue, 15 Nov 2022 20:20:33 +0800 kernel test robot <[email protected]> wrote:
Hi Herve,
I love your patch! Perhaps something to improve:
[auto build test WARNING on geert-renesas-drivers/renesas-clk]
[also build test WARNING on usb/usb-testing usb/usb-next usb/usb-linus geert-renesas-devel/next linus/master v6.1-rc5 next-20221114] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]url: https://github.com/intel-lab-lkp/linux/commits/Herve-Codina/Add-the-Renesas-USBF-controller-support/20221114-192136 base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git renesas-clk patch link: https://lore.kernel.org/r/20221114111513.1436165-8-herve.codina%40bootlin.com patch subject: [PATCH v2 7/7] MAINTAINERS: add the Renesas RZ/N1 USBF controller entry reproduce: # https://github.com/intel-lab-lkp/linux/commit/2d4ab4c37cc32d82286869f7ec4ee5247354db88 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Herve-Codina/Add-the-Renesas-USBF-controller-support/20221114-192136 git checkout 2d4ab4c37cc32d82286869f7ec4ee5247354db88 make menuconfig # enable CONFIG_COMPILE_TEST, CONFIG_WARN_MISSING_DOCUMENTS, CONFIG_WARN_ABI_ERRORS make htmldocs
Quoted 7 lines
If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
Warning:
MAINTAINERSreferences a file that doesn't exist:Documentation/devicetree/bindings/usb/renesas,usbf.yaml
Oops, I renamed a file and missed the MAINTAINER file update. Will be fixed in v3.
Hervé
Signature · 3 lines
Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com