Skip to contentSkip to conversation

Add support for nuvoton ma35d1 pin control

PATCH Superseded Jacky Huang 5 participants 14 messages Jan 23, 2024 – Jan 29, 2024

Subsystems (6)

v3 of 9 Superseded Latest is v9 →

lore
Share & tools
lore
#0 lore raw

v3 cover Add support for nuvoton ma35d1 pin control

From: Jacky Huang <[email protected]>

This patch series adds the pin control and GPIO driver for the nuvoton ma35d1 ARMv8 SoC. It includes DT binding documentation, the ma35d1 pin control driver, and device tree updates.

This pin control driver has been tested on the ma35d1 som board with Linux 6.7.

v3:
- Update DTS and YAML files
- Corrected the unit address of nodes gpioa ~ gpion.
- Removed the invalid "pin-default" node.
- Removed the phandle entry from "nuvoton,pins".
- Update pinctrl driver
- Fixed the Kconfig by using "depend on" instead of "if".
- Removed unused #include of header files.
- Utilized immutable irq_chip instead of dynamic irq_chip.
- Replaced ma35_dt_free_map() with pinconf_generic_dt_free_map().
- Implemented other minor fixes as suggested by the reviewer.

v2:
- Update nuvoton,ma35d1-pinctrl.yaml
- Update the 'nuvoton,pins' to follow the style of rockchip pinctrl approch.
- Use power-source to indicate the pin voltage selection which follow the realtek pinctrl approch.
- Instead of integer, use drive-strength-microamp to specify the real driving strength capability of IO pins.
- Update ma35d1 pinctrl driver
- Add I/O drive strength lookup table for translating device tree setting into control register.
- Remove ma35d1-pinfunc.h which is unused after update definition of 'nuvoton,pins'.

Jacky Huang (4):
dt-bindings: reset: Add syscon to nuvoton ma35d1 system-management
node
dt-bindings: pinctrl: Document nuvoton ma35d1 pin control
arm64: dts: nuvoton: Add pinctrl support for ma35d1
pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver

 .../pinctrl/nuvoton,ma35d1-pinctrl.yaml       |  163 ++
 .../bindings/reset/nuvoton,ma35d1-reset.yaml  |    3 +-
 .../boot/dts/nuvoton/ma35d1-iot-512m.dts      |   80 +-
 .../boot/dts/nuvoton/ma35d1-som-256m.dts      |   83 +-
 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi       |  150 +-
 drivers/pinctrl/nuvoton/Kconfig               |   18 +
 drivers/pinctrl/nuvoton/Makefile              |    2 +
 drivers/pinctrl/nuvoton/pinctrl-ma35.c        | 1214 +++++++++++
 drivers/pinctrl/nuvoton/pinctrl-ma35.h        |   50 +
 drivers/pinctrl/nuvoton/pinctrl-ma35d1.c      | 1797 +++++++++++++++++
 10 files changed, 3550 insertions(+), 10 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml
 create mode 100644 drivers/pinctrl/nuvoton/pinctrl-ma35.c
 create mode 100644 drivers/pinctrl/nuvoton/pinctrl-ma35.h
 create mode 100644 drivers/pinctrl/nuvoton/pinctrl-ma35d1.c
Signature · 1 line
2.34.1
#1 lore raw

PATCH v3 1/4 dt-bindings: reset: Add syscon to nuvoton ma35d1 system-management node

From: Jacky Huang <[email protected]>

Add a compatible 'syscon' to the system management node since the system control registers are mapped by this driver. The other driver must access the system control registers through 'regmap' using a phandle that references this node.

---
 .../devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml +2 -1
index 34c5c1c08ec1..3ce7dcecd87a 100644
@@ -18,6 +18,7 @@ properties:
   compatible:
     items:
       - const: nuvoton,ma35d1-reset
+      - const: syscon
 
   reg:
     maxItems: 1
@@ -37,7 +38,7 @@ examples:
   - |
 
     system-management@40460000 {
-        compatible = "nuvoton,ma35d1-reset";
+        compatible = "nuvoton,ma35d1-reset", "syscon";
         reg = <0x40460000 0x200>;
         #reset-cells = <1>;
     };
Signature · 1 line
2.34.1
#2 lore raw

PATCH v3 2/4 dt-bindings: pinctrl: Document nuvoton ma35d1 pin control

In reply to Jacky Huang

From: Jacky Huang <[email protected]>

Add documentation to describe nuvoton ma35d1 pin control and GPIO.

---
 .../pinctrl/nuvoton,ma35d1-pinctrl.yaml       | 163 ++++++++++++++++++
 1 file changed, 163 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml new file +163 -0
new file mode 100644
index 000000000000..8b9ec263213f
@@ -0,0 +1,163 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pinctrl/nuvoton,ma35d1-pinctrl.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Nuvoton MA35D1 pin control and GPIO
+
+maintainers:
+  - Shan-Chun Hung <[email protected]>
+  - Jacky Huang <[email protected]>
+
+allOf:
+  - $ref: pinctrl.yaml#
+
+properties:
+  compatible:
+    enum:
+      - nuvoton,ma35d1-pinctrl
+
+  '#address-cells':
+    const: 1
+
+  '#size-cells':
+    const: 1
+
+  nuvoton,sys:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description:
+      phandle of the system-management node.
+
+  ranges: true
+
+patternProperties:
+  "^gpio@[0-9a-f]+$":
+    type: object
+    additionalProperties: false
+    properties:
+      gpio-controller: true
+
+      '#gpio-cells':
+        const: 2
+
+      reg:
+        maxItems: 1
+
+      clocks:
+        maxItems: 1
+
+      interrupt-controller: true
+
+      '#interrupt-cells':
+        const: 2
+
+      interrupts:
+        description:
+          The interrupt outputs to sysirq.
+        maxItems: 1
+
+    required:
+      - gpio-controller
+      - '#gpio-cells'
+      - reg
+      - clocks
+      - interrupt-controller
+      - '#interrupt-cells'
+      - interrupts
+
+  "^pin-[a-z0-9]+$":
+    type: object
+    description:
+      A pinctrl node should contain at least one subnodes representing the
+      pinctrl groups available on the machine. Each subnode will list the
+      pins it needs, and how they should be configured, with regard to muxer
+      configuration, pullups, drive strength, input enable/disable and input
+      schmitt.
+
+    $ref: pincfg-node.yaml#
+
+    properties:
+      power-source:
+        description: |
+          Valid arguments are described as below:
+          0: power supply of 1.8V
+          1: power supply of 3.3V
+        enum: [0, 1]
+
+      drive-strength-microamp:
+        oneOf:
+          - enum: [ 2900, 4400, 5800, 7300, 8600, 10100, 11500, 13000 ]
+            description: 1.8V I/O driving strength
+          - enum: [ 17100, 25600, 34100, 42800, 48000, 56000, 77000, 82000 ]
+            description: 3.3V I/O driving strength
+
+    unevaluatedProperties: false
+
+  "-grp$":
+    type: object
+    description:
+      Pinctrl node's client devices use subnodes for desired pin configuration.
+      Client device subnodes use below standard properties.
+    properties:
+      nuvoton,pins:
+        description:
+          Each entry consists of 4 parameters and represents the mux and config
+          setting for one pin.
+        $ref: /schemas/types.yaml#/definitions/uint32-matrix
+        minItems: 1
+        items:
+          items:
+            - minimum: 0
+              maximum: 13
+              description:
+                Pin bank.
+            - minimum: 0
+              maximum: 15
+              description:
+                Pin bank index.
+            - minimum: 0
+              maximum: 15
+              description:
+                Mux 0 means GPIO and mux 1 to 15 means the specific device function.
+
+required:
+  - compatible
+  - nuvoton,sys
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/gpio/gpio.h>
+    #include <dt-bindings/clock/nuvoton,ma35d1-clk.h>
+
+    pinctrl@40040000 {
+        compatible = "nuvoton,ma35d1-pinctrl";
+        #address-cells = <1>;
+        #size-cells = <1>;
+        nuvoton,sys = <&sys>;
+        ranges = <0 0x40040000 0xc00>;
+
+        gpio@0 {
+            reg = <0x0 0x40>;
+            interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
+            clocks = <&clk GPA_GATE>;
+            gpio-controller;
+            #gpio-cells = <2>;
+            interrupt-controller;
+            #interrupt-cells = <2>;
+        };
+
+        uart-grp {
+            uart11-pins {
+                nuvoton,pins = <11 0 2>,
+                               <11 1 2>,
+                               <11 2 2>,
+                               <11 3 2>;
+                bias-disable;
+                power-source = <1>;
+            };
+        };
+    };
Signature · 1 line
2.34.1
#4 lore raw

PATCH v3 3/4 arm64: dts: nuvoton: Add pinctrl support for ma35d1

In reply to Jacky Huang

From: Jacky Huang <[email protected]>

Add 'pinctrl' node and 'gpioa' ~ 'gpion' nodes to the dtsi of ma35d1 SoC and describe default pin configurations.

Enable all UART nodes presented on som and iot boards, and add pinctrl function settings to these nodes.

---
 .../boot/dts/nuvoton/ma35d1-iot-512m.dts      |  80 +++++++++-
 .../boot/dts/nuvoton/ma35d1-som-256m.dts      |  83 +++++++++-
 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi       | 150 +++++++++++++++++-
 3 files changed, 304 insertions(+), 9 deletions(-)
arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts +76 -4
index b89e2be6abae..9482bec1aa57 100644
@@ -14,6 +14,10 @@ / {
 
 	aliases {
 		serial0 = &uart0;
+		serial10 = &uart10;
+		serial12 = &uart12;
+		serial13 = &uart13;
+		serial14 = &uart14;
 	};
 
 	chosen {
@@ -33,10 +37,6 @@ clk_hxt: clock-hxt {
 	};
 };
 
-&uart0 {
-	status = "okay";
-};
-
 &clk {
 	assigned-clocks = <&clk CAPLL>,
 			  <&clk DDRPLL>,
@@ -54,3 +54,75 @@ &clk {
 			   "integer",
 			   "integer";
 };
+
+&pinctrl {
+	uart-grp {
+		pinctrl_uart0: uart0-pins {
+			nuvoton,pins = <4 14 1>,
+				       <4 15 1>;
+			bias-disable;
+			power-source = <1>;
+		};
+
+		pinctrl_uart10: uart10-pins {
+			nuvoton,pins = <7 4 2>,
+				       <7 5 2>,
+				       <7 6 2>,
+				       <7 7 2>;
+			bias-disable;
+			power-source = <1>;
+		};
+
+		pinctrl_uart12: uart12-pins {
+			nuvoton,pins = <2 13 2>,
+				       <2 14 2>,
+				       <2 15 2>;
+			bias-disable;
+			power-source = <1>;
+		};
+
+		pinctrl_uart13: uart13-pins {
+			nuvoton,pins = <7 12 3>,
+				       <7 13 3>;
+			bias-disable;
+			power-source = <1>;
+		};
+
+		pinctrl_uart14: uart14-pins {
+			nuvoton,pins = <7 14 2>,
+				       <7 15 2>;
+			bias-disable;
+			power-source = <1>;
+		};
+	};
+};
+
+&uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart0>;
+	status = "okay";
+};
+
+&uart10 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart10>;
+	status = "okay";
+};
+
+&uart12 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart12>;
+	status = "okay";
+};
+
+&uart13 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart13>;
+	status = "okay";
+};
+
+&uart14 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart14>;
+	status = "okay";
+};
arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts +79 -4

98 lines not on this page · raw message

arch/arm64/boot/dts/nuvoton/ma35d1.dtsi +149 -1

162 lines not on this page · raw message

Signature · 1 line
2.34.1
#5 lore raw

PATCH v3 4/4 pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver

In reply to Jacky Huang

From: Jacky Huang <[email protected]>

Add common pinctrl and GPIO driver for Nuvoton MA35 series SoC, and add support for ma35d1 pinctrl.

---
 drivers/pinctrl/nuvoton/Kconfig          |   18 +
 drivers/pinctrl/nuvoton/Makefile         |    2 +
 drivers/pinctrl/nuvoton/pinctrl-ma35.c   | 1214 +++++++++++++++
 drivers/pinctrl/nuvoton/pinctrl-ma35.h   |   50 +
 drivers/pinctrl/nuvoton/pinctrl-ma35d1.c | 1797 ++++++++++++++++++++++
 5 files changed, 3081 insertions(+)
 create mode 100644 drivers/pinctrl/nuvoton/pinctrl-ma35.c
 create mode 100644 drivers/pinctrl/nuvoton/pinctrl-ma35.h
 create mode 100644 drivers/pinctrl/nuvoton/pinctrl-ma35d1.c
drivers/pinctrl/nuvoton/Kconfig +18 -0
index 2abbfcec1fae..6dd5e62a8758 100644
@@ -45,3 +45,21 @@ config PINCTRL_NPCM8XX
 	  Say Y or M here to enable pin controller and GPIO support for
 	  the Nuvoton NPCM8XX SoC. This is strongly recommended when
 	  building a kernel that will run on this chip.
+
+config PINCTRL_MA35
+	bool
+	depends on (ARCH_MA35 || COMPILE_TEST) && OF
+	select GENERIC_PINCTRL_GROUPS
+	select GENERIC_PINMUX_FUNCTIONS
+	select GENERIC_PINCONF
+	select GPIOLIB
+	select GPIO_GENERIC
+	select GPIOLIB_IRQCHIP
+	select MFD_SYSCON
+
+config PINCTRL_MA35D1
+	bool "Pinctrl and GPIO driver for Nuvoton MA35D1"
+	select PINCTRL_MA35
+	help
+	  Say Y here to enable pin controller and GPIO support
+	  for Nuvoton MA35D1 SoC.
drivers/pinctrl/nuvoton/Makefile +2 -0
index 08031eab0af6..346c5082bc60 100644
@@ -4,3 +4,5 @@
 obj-$(CONFIG_PINCTRL_WPCM450)	+= pinctrl-wpcm450.o
 obj-$(CONFIG_PINCTRL_NPCM7XX)	+= pinctrl-npcm7xx.o
 obj-$(CONFIG_PINCTRL_NPCM8XX)	+= pinctrl-npcm8xx.o
+obj-$(CONFIG_PINCTRL_MA35)	+= pinctrl-ma35.o
+obj-$(CONFIG_PINCTRL_MA35D1)	+= pinctrl-ma35d1.o
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +1214 -0

1,214 lines not on this page · raw message

drivers/pinctrl/nuvoton/pinctrl-ma35.h new file +50 -0

50 lines not on this page · raw message

drivers/pinctrl/nuvoton/pinctrl-ma35d1.c new file +1797 -0

1,710 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.34.1

Part of the diff is not shown here. View the raw message.

#6 lore raw

Re: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver

kernel test robot noticed the following build warnings:

Hi Jacky,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linusw-pinctrl/devel]
[also build test WARNING on linusw-pinctrl/for-next robh/for-next pza/reset/next linus/master v6.8-rc1 next-20240125] [cannot apply to pza/imx-drm/next]
[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/Jacky-Huang/dt-bindings-reset-Add-syscon-to-nuvoton-ma35d1-system-management-node/20240123-161939
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
patch link:    https://lore.kernel.org/r/20240123080637.1902578-5-ychuang570808%40gmail.com
patch subject: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver
config: x86_64-randconfig-122-20240128 (https://download.01.org/0day-ci/archive/20240128/[email protected]/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240128/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)

>> drivers/pinctrl/nuvoton/pinctrl-ma35.c:287:25: sparse: sparse: symbol 'ma35_pmx_ops' was not declared. Should it be static?

drivers/pinctrl/nuvoton/pinctrl-ma35.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false

vim +/ma35_pmx_ops +287 drivers/pinctrl/nuvoton/pinctrl-ma35.c

286

 > 287	const struct pinmux_ops ma35_pmx_ops = {

288 .get_functions_count = ma35_pinmux_get_func_count,
289 .get_function_name = ma35_pinmux_get_func_name,
290 .get_function_groups = ma35_pinmux_get_func_groups,
291 .set_mux = ma35_pinmux_set_mux,
292 .strict = true,
293 };
294

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#7 lore raw

Re: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver

In reply to Jacky Huang
kernel test robot noticed the following build warnings:

Hi Jacky,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linusw-pinctrl/devel]
[also build test WARNING on linusw-pinctrl/for-next robh/for-next pza/reset/next linus/master v6.8-rc1 next-20240125] [cannot apply to pza/imx-drm/next]
[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/Jacky-Huang/dt-bindings-reset-Add-syscon-to-nuvoton-ma35d1-system-management-node/20240123-161939
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
patch link:    https://lore.kernel.org/r/20240123080637.1902578-5-ychuang570808%40gmail.com
patch subject: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver
config: alpha-kismet-CONFIG_PINCTRL_MA35-CONFIG_PINCTRL_MA35D1-0-0 (https://download.01.org/0day-ci/archive/20240128/[email protected]/config)
reproduce: (https://download.01.org/0day-ci/archive/20240128/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

kismet warnings: (new ones prefixed by >>)

>> kismet: WARNING: unmet direct dependencies detected for PINCTRL_MA35 when selected by PINCTRL_MA35D1

WARNING: unmet direct dependencies detected for PINCTRL_MA35
Depends on [n]: PINCTRL [=y] && (ARCH_MA35 || COMPILE_TEST [=y]) && OF [=n] Selected by [y]:
- PINCTRL_MA35D1 [=y] && PINCTRL [=y]

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#8 lore raw

Re: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver

In reply to Jacky Huang
kernel test robot noticed the following build warnings:

Hi Jacky,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linusw-pinctrl/devel]
[also build test WARNING on linusw-pinctrl/for-next robh/for-next linus/master v6.8-rc1 next-20240125] [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/Jacky-Huang/dt-bindings-reset-Add-syscon-to-nuvoton-ma35d1-system-management-node/20240123-161939
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
patch link:    https://lore.kernel.org/r/20240123080637.1902578-5-ychuang570808%40gmail.com
patch subject: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver
config: x86_64-randconfig-121-20240128 (https://download.01.org/0day-ci/archive/20240128/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240128/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

drivers/pinctrl/nuvoton/pinctrl-ma35.c: In function 'ma35_gpiolib_register':
drivers/pinctrl/nuvoton/pinctrl-ma35.c:523:27: error: 'struct gpio_chip' has no member named 'of_gpio_n_cells'

     523 |                 bank->chip.of_gpio_n_cells = 2;
         |                           ^
   drivers/pinctrl/nuvoton/pinctrl-ma35.c: At top level:
   drivers/pinctrl/nuvoton/pinctrl-ma35.c:1008:10: error: 'const struct pinconf_ops' has no member named 'is_generic'
    1008 |         .is_generic = true,
         |          ^~~~~~~~~~
>> drivers/pinctrl/nuvoton/pinctrl-ma35.c:1008:23: warning: initialization of 'int (*)(struct pinctrl_dev *, unsigned int,  long unsigned int *)' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1008 |         .is_generic = true,
         |                       ^~~~
   drivers/pinctrl/nuvoton/pinctrl-ma35.c:1008:23: note: (near initialization for 'ma35_pinconf_ops.pin_config_group_get')
   drivers/pinctrl/nuvoton/pinctrl-ma35.c: In function 'ma35_pinctrl_parse_groups':
   drivers/pinctrl/nuvoton/pinctrl-ma35.c:1024:15: error: implicit declaration of function 'pinconf_generic_parse_dt_config'; did you mean 'pinconf_generic_dump_config'? [-Werror=implicit-function-declaration]
    1024 |         ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &nconfigs);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |               pinconf_generic_dump_config

cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PINCTRL_MA35 Depends on [n]: PINCTRL [=y] && (ARCH_MA35 || COMPILE_TEST [=n]) && OF [=n] Selected by [y]:
- PINCTRL_MA35D1 [=y] && PINCTRL [=y]

vim +1008 drivers/pinctrl/nuvoton/pinctrl-ma35.c

1004
1005 static const struct pinconf_ops ma35_pinconf_ops = {
1006 .pin_config_get = ma35_pinconf_get,
1007 .pin_config_set = ma35_pinconf_set,

> 1008		.is_generic = true,

1009 };
1010

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#9 lore raw

Re: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver

In reply to Jacky Huang

Le 23/01/2024 à 09:06, Jacky Huang a écrit :

Quoted 7 lines

From: Jacky Huang <[email protected]>

Add common pinctrl and GPIO driver for Nuvoton MA35 series SoC, and add support for ma35d1 pinctrl.

---

Hi,

Should there be a v4, a few nits below.

CJ

Quoted 14 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +14 -0
+static int ma35_pinctrl_dt_node_to_map_func(struct pinctrl_dev *pctldev,
+					    struct device_node *np,
+					    struct pinctrl_map **map,
+					    unsigned int *num_maps)
+{
+	struct ma35_pinctrl *npctl = pinctrl_dev_get_drvdata(pctldev);
+	struct ma35_pin_group *grp;
+	struct pinctrl_map *new_map;
+	struct device_node *parent;
+	int map_num = 1;
+	int i;
+
+	/*
+	 * first find the group of this node and check if we need create

drivers/pinctrl/nuvoton/pinctrl-ma35.c line 199

Quoted 10 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +10 -0
+	 * config maps for pins
+	 */
+	grp = ma35_pinctrl_find_group_by_name(npctl, np->name);
+	if (!grp) {
+		dev_err(npctl->dev, "unable to find group for node %s\n", np->name);
+		return -EINVAL;
+	}
+
+	map_num += grp->npins;
+	new_map = devm_kzalloc(pctldev->dev, sizeof(*new_map) * map_num, GFP_KERNEL);

devm_kcalloc()?

Quoted 29 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +29 -0
+	if (!new_map)
+		return -ENOMEM;
+
+	*map = new_map;
+	*num_maps = map_num;
+	/* create mux map */
+	parent = of_get_parent(np);
+	if (!parent) {
+		devm_kfree(pctldev->dev, new_map);
+		return -EINVAL;
+	}
+
+	new_map[0].type = PIN_MAP_TYPE_MUX_GROUP;
+	new_map[0].data.mux.function = parent->name;
+	new_map[0].data.mux.group = np->name;
+	of_node_put(parent);
+
+	new_map++;
+	for (i = 0; i < grp->npins; i++) {
+		new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN;
+		new_map[i].data.configs.group_or_pin = pin_get_name(pctldev, grp->pins[i]);
+		new_map[i].data.configs.configs = grp->settings[i].configs;
+		new_map[i].data.configs.num_configs = grp->settings[i].nconfigs;
+	}
+	dev_dbg(pctldev->dev, "maps: function %s group %s num %d\n",
+		(*map)->data.mux.function, (*map)->data.mux.group, map_num);
+
+	return 0;
+}

...

Quoted 20 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +20 -0
+static int ma35_pinctrl_parse_groups(struct device_node *np, struct ma35_pin_group *grp,
+				     struct ma35_pinctrl *npctl, u32 index)
+{
+	unsigned long *configs;
+	unsigned int nconfigs;
+	struct ma35_pin_setting *pin;
+	const __be32 *list;
+	int i, j, size, ret;
+
+	dev_dbg(npctl->dev, "group(%d): %s\n", index, np->name);
+
+	grp->name = np->name;
+
+	ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &nconfigs);
+	if (ret)
+		return ret;
+
+	/*
+	 * the binding format is nuvoton,pins = <bank pin-mfp pin-function>,
+	 * do sanity check and calculate pins number

drivers/pinctrl/nuvoton/pinctrl-ma35.c line 1040

Quoted 10 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +10 -0
+	 */
+	list = of_get_property(np, "nuvoton,pins", &size);
+	size /= sizeof(*list);
+	if (!size || size % 3) {
+		dev_err(npctl->dev, "wrong setting!\n");
+		return -EINVAL;
+	}
+	grp->npins = size / 3;
+
+	grp->pins = devm_kzalloc(npctl->dev, grp->npins * sizeof(*grp->pins), GFP_KERNEL);

devm_kcalloc()?

drivers/pinctrl/nuvoton/pinctrl-ma35.c line 1044

Quoted 4 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +4 -0
+	if (!grp->pins)
+		return -ENOMEM;
+
+	grp->settings = devm_kzalloc(npctl->dev, grp->npins * sizeof(*grp->settings), GFP_KERNEL);

devm_kcalloc()?

Quoted 26 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +26 -0
+	if (!grp->settings)
+		return -ENOMEM;
+
+	pin = grp->settings;
+
+	for (i = 0, j = 0; i < size; i += 3, j++) {
+		pin->offset = be32_to_cpu(*list++) * MA35_MFP_REG_SZ_PER_BANK + MA35_MFP_REG_BASE;
+		pin->shift = (be32_to_cpu(*list++) * MA35_MFP_BITS_PER_PORT) % 32;
+		pin->muxval = be32_to_cpu(*list++);
+		pin->configs = configs;
+		pin->nconfigs = nconfigs;
+		grp->pins[j] = npctl->info->get_pin_num(pin->offset, pin->shift);
+		pin++;
+	}
+	return 0;
+}
+
+static int ma35_pinctrl_parse_functions(struct device_node *np, struct ma35_pinctrl *npctl,
+					u32 index)
+{
+	struct device_node *child;
+	struct ma35_pin_func *func;
+	struct ma35_pin_group *grp;
+	static u32 grp_index;
+	u32 ret, i = 0;
+

drivers/pinctrl/nuvoton/pinctrl-ma35.c line 1080

Quoted 10 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +10 -0
+	dev_dbg(npctl->dev, "parse function(%d): %s\n", index, np->name);
+
+	func = &npctl->functions[index];
+	func->name = np->name;
+	func->ngroups = of_get_child_count(np);
+
+	if (func->ngroups <= 0)
+		return 0;
+
+	func->groups = devm_kzalloc(npctl->dev, func->ngroups * sizeof(char *), GFP_KERNEL);

devm_kcalloc()?

Quoted 4 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +4 -0
+	if (!func->groups)
+		return -ENOMEM;
+
+	for_each_child_of_node(np, child) {

drivers/pinctrl/nuvoton/pinctrl-ma35.c line 1094

Quoted 10 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +10 -0
+		func->groups[i] = child->name;
+		grp = &npctl->groups[grp_index++];
+		ret = ma35_pinctrl_parse_groups(child, grp, npctl, i++);
+		if (ret) {
+			of_node_put(child);
+			return ret;
+		}
+	}
+	return 0;
+}

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#10 lore raw

Re: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver

Dear Christophe,

Thanks for your review.

In the next version, I will follow your suggestion and replace all instances of devm_kzalloc() mentioned here with the use of devm_kcalloc().

Best Regards,
Jacky Huang

Quoted 183 lines · Christophe JAILLET

Le 23/01/2024 à 09:06, Jacky Huang a écrit :

Quoted 7 lines

From: Jacky Huang <[email protected]>

Add common pinctrl and GPIO driver for Nuvoton MA35 series SoC, and add support for ma35d1 pinctrl.

---

Hi,

Should there be a v4, a few nits below.

CJ

Quoted 20 lines

+static int ma35_pinctrl_dt_node_to_map_func(struct pinctrl_dev *pctldev,
+                        struct device_node *np,
+                        struct pinctrl_map **map,
+                        unsigned int *num_maps)

drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +15 -0
+{
+    struct ma35_pinctrl *npctl = pinctrl_dev_get_drvdata(pctldev);
+    struct ma35_pin_group *grp;
+    struct pinctrl_map *new_map;
+    struct device_node *parent;
+    int map_num = 1;
+    int i;
+
+    /*
+     * first find the group of this node and check if we need create
+     * config maps for pins
+     */
+    grp = ma35_pinctrl_find_group_by_name(npctl, np->name);
+    if (!grp) {
+        dev_err(npctl->dev, "unable to find group for node %s\n", 
Quoted 7 lines

np->name);
+        return -EINVAL;
+    }
+
+    map_num += grp->npins;
+    new_map = devm_kzalloc(pctldev->dev, sizeof(*new_map) * map_num, GFP_KERNEL);

devm_kcalloc()?

Quoted 31 lines

+    if (!new_map)
+        return -ENOMEM;

drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +19 -0
+
+    *map = new_map;
+    *num_maps = map_num;
+    /* create mux map */
+    parent = of_get_parent(np);
+    if (!parent) {
+        devm_kfree(pctldev->dev, new_map);
+        return -EINVAL;
+    }
+
+    new_map[0].type = PIN_MAP_TYPE_MUX_GROUP;
+    new_map[0].data.mux.function = parent->name;
+    new_map[0].data.mux.group = np->name;
+    of_node_put(parent);
+
+    new_map++;
+    for (i = 0; i < grp->npins; i++) {
+        new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN;
+        new_map[i].data.configs.group_or_pin = pin_get_name(pctldev, 

grp->pins[i]);
+        new_map[i].data.configs.configs = grp->settings[i].configs; +        new_map[i].data.configs.num_configs = grp->settings[i].nconfigs;
+    }
+    dev_dbg(pctldev->dev, "maps: function %s group %s num %d\n", +        (*map)->data.mux.function, (*map)->data.mux.group, map_num);

drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +3 -0
+
+    return 0;
+}

...

Quoted 26 lines

+static int ma35_pinctrl_parse_groups(struct device_node *np, struct ma35_pin_group *grp,
+                     struct ma35_pinctrl *npctl, u32 index)

drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +12 -0
+{
+    unsigned long *configs;
+    unsigned int nconfigs;
+    struct ma35_pin_setting *pin;
+    const __be32 *list;
+    int i, j, size, ret;
+
+    dev_dbg(npctl->dev, "group(%d): %s\n", index, np->name);
+
+    grp->name = np->name;
+
+    ret = pinconf_generic_parse_dt_config(np, NULL, &configs, 

&nconfigs);
+    if (ret)
+        return ret;
+
+    /*
+     * the binding format is nuvoton,pins = <bank pin-mfp pin-function>,
+     * do sanity check and calculate pins number +     */
+    list = of_get_property(np, "nuvoton,pins", &size); +    size /= sizeof(*list);

Quoted 8 lines

+    if (!size || size % 3) {
+        dev_err(npctl->dev, "wrong setting!\n"); +        return -EINVAL;
+    }
+    grp->npins = size / 3;
+
+    grp->pins = devm_kzalloc(npctl->dev, grp->npins * sizeof(*grp->pins), GFP_KERNEL);

devm_kcalloc()?

Quoted 5 lines

+    if (!grp->pins)
+        return -ENOMEM;
+
+    grp->settings = devm_kzalloc(npctl->dev, grp->npins * sizeof(*grp->settings), GFP_KERNEL);

devm_kcalloc()?

Quoted 40 lines

+    if (!grp->settings)
+        return -ENOMEM;

drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +5 -0
+
+    pin = grp->settings;
+
+    for (i = 0, j = 0; i < size; i += 3, j++) {
+        pin->offset = be32_to_cpu(*list++) * 

MA35_MFP_REG_SZ_PER_BANK + MA35_MFP_REG_BASE;
+        pin->shift = (be32_to_cpu(*list++) * MA35_MFP_BITS_PER_PORT) % 32;
+        pin->muxval = be32_to_cpu(*list++);
+        pin->configs = configs;
+        pin->nconfigs = nconfigs;
+        grp->pins[j] = npctl->info->get_pin_num(pin->offset, pin->shift);
+        pin++;
+    }
+    return 0;

drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +3 -0
+}
+
+static int ma35_pinctrl_parse_functions(struct device_node *np, 

struct ma35_pinctrl *npctl,
+                    u32 index)

drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +17 -0
+{
+    struct device_node *child;
+    struct ma35_pin_func *func;
+    struct ma35_pin_group *grp;
+    static u32 grp_index;
+    u32 ret, i = 0;
+
+    dev_dbg(npctl->dev, "parse function(%d): %s\n", index, np->name);
+
+    func = &npctl->functions[index];
+    func->name = np->name;
+    func->ngroups = of_get_child_count(np);
+
+    if (func->ngroups <= 0)
+        return 0;
+
+    func->groups = devm_kzalloc(npctl->dev, func->ngroups * 
Quoted 1 line

sizeof(char *), GFP_KERNEL);

devm_kcalloc()?

Quoted 14 lines

+    if (!func->groups)
+        return -ENOMEM;

drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +12 -0
+
+    for_each_child_of_node(np, child) {
+        func->groups[i] = child->name;
+        grp = &npctl->groups[grp_index++];
+        ret = ma35_pinctrl_parse_groups(child, grp, npctl, i++);
+        if (ret) {
+            of_node_put(child);
+            return ret;
+        }
+    }
+    return 0;
+}
#11 lore raw

Re: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver

In reply to Jacky Huang

Hi Jacky,

thanks for your patch!

this caught my eye:

Quoted 6 lines · Jacky Huang

From: Jacky Huang <[email protected]>

Add common pinctrl and GPIO driver for Nuvoton MA35 series SoC, and add support for ma35d1 pinctrl.

(...)

drivers/pinctrl/nuvoton/pinctrl-ma35.c line 811

Quoted 2 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +2 -0
+       if (ma35_pinconf_get_power_source(npctl, pin) == MVOLT_1800) {
+               for (i = 0; i < sizeof(ds_1800mv_tbl) / sizeof(u32); i++) {

Isn't this equivalent to:

for (i = 0; i < ARRAY_SIZE(ds_1800mv_tbl; i++) {

drivers/pinctrl/nuvoton/pinctrl-ma35.c line 816

Quoted 5 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +5 -0
+                       if (ds_1800mv_tbl[i] == strength)
+                               ds_val = i;
+               }
+       } else {
+               for (i = 0; i < sizeof(ds_3300mv_tbl) / sizeof(u32); i++) {

Dito

Perhaps more cases, pls check!

Yours,
Linus Walleij

#12 lore raw

Re: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver

Dear Linus,

Thanks for your review.

Quoted 27 lines · Linus Walleij

Hi Jacky,

thanks for your patch!

this caught my eye:

Quoted 6 lines · Jacky Huang

From: Jacky Huang <[email protected]>

Add common pinctrl and GPIO driver for Nuvoton MA35 series SoC, and add support for ma35d1 pinctrl.

(...)

drivers/pinctrl/nuvoton/pinctrl-ma35.c line 811

Quoted 2 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +2 -0
+       if (ma35_pinconf_get_power_source(npctl, pin) == MVOLT_1800) {
+               for (i = 0; i < sizeof(ds_1800mv_tbl) / sizeof(u32); i++) {

Isn't this equivalent to:

for (i = 0; i < ARRAY_SIZE(ds_1800mv_tbl; i++) {

drivers/pinctrl/nuvoton/pinctrl-ma35.c line 816

Quoted 5 lines
drivers/pinctrl/nuvoton/pinctrl-ma35.c new file +5 -0
+                       if (ds_1800mv_tbl[i] == strength)
+                               ds_val = i;
+               }
+       } else {
+               for (i = 0; i < sizeof(ds_3300mv_tbl) / sizeof(u32); i++) {
Quoted 6 lines

Dito

Perhaps more cases, pls check!

Yours,
Linus Walleij

Yes, I will use ARRAY_SIZE instead.

Best Regards,
Jacky Huang

#13 lore raw

Re: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver

In reply to Jacky Huang
kernel test robot noticed the following build errors:

Hi Jacky,

kernel test robot noticed the following build errors:

[auto build test ERROR on linusw-pinctrl/devel]
[also build test ERROR on linusw-pinctrl/for-next robh/for-next linus/master v6.8-rc1 next-20240125] [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/Jacky-Huang/dt-bindings-reset-Add-syscon-to-nuvoton-ma35d1-system-management-node/20240123-161939
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
patch link:    https://lore.kernel.org/r/20240123080637.1902578-5-ychuang570808%40gmail.com
patch subject: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver
config: x86_64-randconfig-121-20240128 (https://download.01.org/0day-ci/archive/20240129/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240129/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

drivers/pinctrl/nuvoton/pinctrl-ma35.c: In function 'ma35_gpiolib_register':

>> drivers/pinctrl/nuvoton/pinctrl-ma35.c:523:27: error: 'struct gpio_chip' has no member named 'of_gpio_n_cells'
     523 |                 bank->chip.of_gpio_n_cells = 2;
         |                           ^
   drivers/pinctrl/nuvoton/pinctrl-ma35.c: At top level:
>> drivers/pinctrl/nuvoton/pinctrl-ma35.c:1008:10: error: 'const struct pinconf_ops' has no member named 'is_generic'
    1008 |         .is_generic = true,
         |          ^~~~~~~~~~
   drivers/pinctrl/nuvoton/pinctrl-ma35.c:1008:23: warning: initialization of 'int (*)(struct pinctrl_dev *, unsigned int,  long unsigned int *)' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1008 |         .is_generic = true,
         |                       ^~~~
   drivers/pinctrl/nuvoton/pinctrl-ma35.c:1008:23: note: (near initialization for 'ma35_pinconf_ops.pin_config_group_get')
   drivers/pinctrl/nuvoton/pinctrl-ma35.c: In function 'ma35_pinctrl_parse_groups':
>> drivers/pinctrl/nuvoton/pinctrl-ma35.c:1024:15: error: implicit declaration of function 'pinconf_generic_parse_dt_config'; did you mean 'pinconf_generic_dump_config'? [-Werror=implicit-function-declaration]
    1024 |         ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &nconfigs);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |               pinconf_generic_dump_config

cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PINCTRL_MA35 Depends on [n]: PINCTRL [=y] && (ARCH_MA35 || COMPILE_TEST [=n]) && OF [=n] Selected by [y]:
- PINCTRL_MA35D1 [=y] && PINCTRL [=y]

vim +523 drivers/pinctrl/nuvoton/pinctrl-ma35.c

506
507 static int ma35_gpiolib_register(struct platform_device *pdev, struct ma35_pinctrl *npctl)
508 {
509 struct ma35_pin_ctrl *ctrl = npctl->ctrl;
510 struct ma35_pin_bank *bank = ctrl->pin_banks;
511 int ret;
512 int i;
513
514 for (i = 0; i < ctrl->nr_banks; ++i, ++bank) {
515 if (!bank->valid) {
516 dev_warn(&pdev->dev, "bank %s is not valid\n",
517 bank->np->name);
518 continue;
519 }
520 bank->irqtype = 0;
521 bank->irqinten = 0;
522 bank->chip.label = bank->name;

 > 523			bank->chip.of_gpio_n_cells = 2;

524 bank->chip.parent = &pdev->dev;
525 bank->chip.request = ma35_gpio_core_to_request;
526 bank->chip.direction_input = ma35_gpio_core_direction_in;
527 bank->chip.direction_output = ma35_gpio_core_direction_out;
528 bank->chip.get = ma35_gpio_core_get;
529 bank->chip.set = ma35_gpio_core_set;
530 bank->chip.base = -1;
531 bank->chip.ngpio = bank->nr_pins;
532 bank->chip.can_sleep = false;
533 spin_lock_init(&bank->lock);
534
535 if (bank->irq > 0) {
536 struct gpio_irq_chip *girq;
537
538 girq = &bank->chip.irq;
539 gpio_irq_chip_set_chip(girq, &ma35_gpio_irqchip);
540 girq->parent_handler = ma35_irq_demux_intgroup;
541 girq->num_parents = 1;
542
543 girq->parents = devm_kcalloc(&pdev->dev, 1, sizeof(*girq->parents),
544 GFP_KERNEL);
545 if (!girq->parents)
546 return -ENOMEM;
547
548 girq->parents[0] = bank->irq;
549 girq->default_type = IRQ_TYPE_NONE;
550 girq->handler = handle_level_irq;
551 }
552
553 ret = gpiochip_add_data(&bank->chip, bank);
554 if (ret) {
555 dev_err(&pdev->dev, "failed to register gpio_chip %s, error code: %d\n",
556 bank->chip.label, ret);
557 goto fail;
558 }
559 }
560 return 0;
561
562 fail:
563 for (--i, --bank; i >= 0; --i, --bank) {
564 if (!bank->valid)
565 continue;
566 gpiochip_remove(&bank->chip);
567 }
568 return ret;
569 }
570

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki