Skip to contentSkip to conversation

soc: fsl: Add initial guts driver

PATCH In review Scott Wood 4 participants 17 messages Jul 17, 2016 – Aug 3, 2016

Subsystems (11)
lore
Share & tools
lore

Scott Wood

author maintainer
#0 lore raw

v11 cover soc: fsl: Add initial guts driver

This patchset adds the beginnings of a driver to consolidate accesses to the Freescale/NXP "global utilities" block. Initially only access to SVR (the system version register) is provided. This register is needed by various drivers, mainly for errata detection. Access to SVR via mfspr(SPRN_SVR) is now discouraged, especially in drivers that are not PPC-specific.

I plan to send this via the PPC tree for this merge window, to provide a base for using/extending the guts driver in various drivers in the next cycle.

Scott Wood (1):
powerpc/fsl-pci: Use fsl_guts_get_svr()

Yangbo Lu (2):
dt: bindings: move guts devicetree doc out of powerpc directory
soc: fsl: add GUTS driver for QorIQ platforms

yangbo lu (2):
dt: bindings: update Freescale DCFG compatible powerpc/fsl: move mpc85xx.h to include/linux/fsl

 Documentation/devicetree/bindings/arm/fsl.txt      |   6 +-
 .../bindings/{powerpc => soc}/fsl/guts.txt         |   3 +
 arch/powerpc/Kconfig                               |   1 +
 arch/powerpc/kernel/cpu_setup_fsl_booke.S          |   2 +-
 arch/powerpc/platforms/85xx/common.c               |   2 -
 arch/powerpc/sysdev/fsl_pci.c                      |   8 +-
 drivers/clk/clk-qoriq.c                            |   3 +-
 drivers/i2c/busses/i2c-mpc.c                       |   2 +-
 drivers/iommu/fsl_pamu.c                           |   3 +-
 drivers/net/ethernet/freescale/gianfar.c           |   2 +-
 drivers/soc/Kconfig                                |   2 +-
 drivers/soc/fsl/Kconfig                            |   8 ++
 drivers/soc/fsl/Makefile                           |   1 +
 drivers/soc/fsl/guts.c                             | 113 ++++++++++++++++++
 include/linux/fsl/guts.h                           | 126 +++++++++++++--------
 .../asm/mpc85xx.h => include/linux/fsl/svr.h       |   4 +-
 16 files changed, 223 insertions(+), 63 deletions(-)
 rename Documentation/devicetree/bindings/{powerpc => soc}/fsl/guts.txt (91%)
 create mode 100644 drivers/soc/fsl/Kconfig
 create mode 100644 drivers/soc/fsl/guts.c
 rename arch/powerpc/include/asm/mpc85xx.h => include/linux/fsl/svr.h (97%)
Signature · 1 line
2.7.4
author maintainer
#1 lore raw

PATCH v11 1/5 dt: bindings: update Freescale DCFG compatible

From: yangbo lu <[email protected]>

Update Freescale DCFG compatible with 'fsl,<chip>-dcfg' instead of 'fsl,ls1021a-dcfg' to include more chips such as ls1021a, ls1043a, and ls2080a.

---
 Documentation/devicetree/bindings/arm/fsl.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/fsl.txt +5 -1
index dbbc095..713c1ae 100644
@@ -119,7 +119,11 @@ Freescale DCFG
 configuration and status for the device. Such as setting the secondary
 core start address and release the secondary core from holdoff and startup.
   Required properties:
-  - compatible: should be "fsl,ls1021a-dcfg"
+  - compatible: should be "fsl,<chip>-dcfg"
+    Possible compatibles:
+	"fsl,ls1021a-dcfg"
+	"fsl,ls1043a-dcfg"
+	"fsl,ls2080a-dcfg"
   - reg : should contain base address and length of DCFG memory-mapped registers
 
 Example:
Signature · 1 line
2.7.4
author maintainer
#2 lore raw

PATCH v11 2/5 dt: bindings: move guts devicetree doc out of powerpc directory

In reply to Scott Wood

From: Yangbo Lu <[email protected]>

Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property.

---
 Documentation/devicetree/bindings/{powerpc => soc}/fsl/guts.txt | 3 +++
 1 file changed, 3 insertions(+)
 rename Documentation/devicetree/bindings/{powerpc => soc}/fsl/guts.txt (91%)
Documentation/devicetree/bindings/soc/fsl/guts.txt renamed from Documentation/devicetree/bindings/powerpc/fsl/guts.txt +3 -0
similarity index 91%
rename from Documentation/devicetree/bindings/powerpc/fsl/guts.txt
rename to Documentation/devicetree/bindings/soc/fsl/guts.txt
index b71b203..07adca9 100644
@@ -25,6 +25,9 @@ Recommended properties:
  - fsl,liodn-bits : Indicates the number of defined bits in the LIODN
    registers, for those SOCs that have a PAMU device.
 
+ - little-endian : Indicates that the global utilities block is little
+   endian. The default is big endian.
+
 Examples:
 	global-utilities@e0000 {	/* global utilities block */
 		compatible = "fsl,mpc8548-guts";
Signature · 6 lines
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author maintainer
#3 lore raw

PATCH v11 3/5 soc: fsl: add GUTS driver for QorIQ platforms

In reply to Scott Wood

From: Yangbo Lu <[email protected]>

The global utilities block controls power management, I/O device enabling, power-onreset(POR) configuration monitoring, alternate function selection for multiplexed signals,and clock control.

This patch adds a driver to manage and access global utilities block. Initially only reading SVR is supported. Other guts accesses, such as reading RCW, should eventually be moved into this driver as well.

[scottwood: minor cleanup]
---
 arch/powerpc/platforms/85xx/common.c |   2 -
 drivers/soc/Kconfig                  |   2 +-
 drivers/soc/fsl/Kconfig              |   8 +++
 drivers/soc/fsl/Makefile             |   1 +
 drivers/soc/fsl/guts.c               | 113 +++++++++++++++++++++++++++++++
 include/linux/fsl/guts.h             | 126 ++++++++++++++++++++++-------------
 6 files changed, 201 insertions(+), 51 deletions(-)
 create mode 100644 drivers/soc/fsl/Kconfig
 create mode 100644 drivers/soc/fsl/guts.c
arch/powerpc/platforms/85xx/common.c +0 -2
index 28720a4..badd193 100644
@@ -29,8 +29,6 @@ static const struct of_device_id mpc85xx_common_ids[] __initconst = {
 	{ .compatible = "fsl,srio", },
 	/* So that the DMA channel nodes can be probed individually: */
 	{ .compatible = "fsl,eloplus-dma", },
-	/* For the PMC driver */
-	{ .compatible = "fsl,mpc8548-guts", },
 	/* Probably unnecessary? */
 	{ .compatible = "gpio-leds", },
 	/* For all PCI controllers */
drivers/soc/Kconfig +1 -1
index cb58ef0..7106463 100644
@@ -2,7 +2,7 @@ menu "SOC (System On Chip) specific Drivers"
 
 source "drivers/soc/bcm/Kconfig"
 source "drivers/soc/brcmstb/Kconfig"
-source "drivers/soc/fsl/qe/Kconfig"
+source "drivers/soc/fsl/Kconfig"
 source "drivers/soc/mediatek/Kconfig"
 source "drivers/soc/qcom/Kconfig"
 source "drivers/soc/rockchip/Kconfig"
drivers/soc/fsl/Kconfig new file +8 -0
new file mode 100644
index 0000000..b313759
@@ -0,0 +1,8 @@
+#
+# Freescale SOC drivers
+#
+
+source "drivers/soc/fsl/qe/Kconfig"
+
+config FSL_GUTS
+	bool
drivers/soc/fsl/Makefile +1 -0
index 203307f..02afb7f 100644
@@ -4,3 +4,4 @@
 
 obj-$(CONFIG_QUICC_ENGINE)		+= qe/
 obj-$(CONFIG_CPM)			+= qe/
+obj-$(CONFIG_FSL_GUTS)			+= guts.o
drivers/soc/fsl/guts.c new file +113 -0

113 lines not on this page · raw message

include/linux/fsl/guts.h +78 -48

161 lines not on this page · raw message

Signature · 1 line
2.7.4
author maintainer
#4 lore raw

PATCH v11 4/5 powerpc/fsl: move mpc85xx.h to include/linux/fsl

In reply to Scott Wood

From: yangbo lu <[email protected]>

Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR symbols.

---
 arch/powerpc/kernel/cpu_setup_fsl_booke.S                     | 2 +-
 arch/powerpc/sysdev/fsl_pci.c                                 | 2 +-
 drivers/clk/clk-qoriq.c                                       | 3 +--
 drivers/i2c/busses/i2c-mpc.c                                  | 2 +-
 drivers/iommu/fsl_pamu.c                                      | 3 +--
 drivers/net/ethernet/freescale/gianfar.c                      | 2 +-
 arch/powerpc/include/asm/mpc85xx.h => include/linux/fsl/svr.h | 4 ++--
 7 files changed, 8 insertions(+), 10 deletions(-)
 rename arch/powerpc/include/asm/mpc85xx.h => include/linux/fsl/svr.h (97%)
arch/powerpc/kernel/cpu_setup_fsl_booke.S +1 -1
index 462aed9..2b0284e 100644
@@ -13,13 +13,13 @@
  *
  */
 
+#include <linux/fsl/svr.h>
 #include <asm/page.h>
 #include <asm/processor.h>
 #include <asm/cputable.h>
 #include <asm/ppc_asm.h>
 #include <asm/mmu-book3e.h>
 #include <asm/asm-offsets.h>
-#include <asm/mpc85xx.h>
 
 _GLOBAL(__e500_icache_setup)
 	mfspr	r0, SPRN_L1CSR1
arch/powerpc/sysdev/fsl_pci.c +1 -1
index 0ef9df4..0fd1895 100644
@@ -22,6 +22,7 @@
 #include <linux/delay.h>
 #include <linux/string.h>
 #include <linux/fsl/edac.h>
+#include <linux/fsl/svr.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/memblock.h>
@@ -37,7 +38,6 @@
 #include <asm/pci-bridge.h>
 #include <asm/ppc-pci.h>
 #include <asm/machdep.h>
-#include <asm/mpc85xx.h>
 #include <asm/disassemble.h>
 #include <asm/ppc-opcode.h>
 #include <sysdev/fsl_soc.h>
drivers/clk/clk-qoriq.c +1 -2
index 58566a17..4b6c438 100644
@@ -13,6 +13,7 @@
 #include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/fsl/guts.h>
+#include <linux/fsl/svr.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
@@ -1149,8 +1150,6 @@ bad_args:
 }
 
 #ifdef CONFIG_PPC
-#include <asm/mpc85xx.h>
-
 static const u32 a4510_svrs[] __initconst = {
 	(SVR_P2040 << 8) | 0x10,	/* P2040 1.0 */
 	(SVR_P2040 << 8) | 0x11,	/* P2040 1.1 */
drivers/i2c/busses/i2c-mpc.c +1 -1
index 48ecffe..600704c 100644
@@ -27,9 +27,9 @@
 #include <linux/i2c.h>
 #include <linux/interrupt.h>
 #include <linux/delay.h>
+#include <linux/fsl/svr.h>
 
 #include <asm/mpc52xx.h>
-#include <asm/mpc85xx.h>
 #include <sysdev/fsl_soc.h>
 
 #define DRV_NAME "mpc-i2c"
drivers/iommu/fsl_pamu.c +1 -2
index a34355f..af8fb27 100644
@@ -21,11 +21,10 @@
 #include "fsl_pamu.h"
 
 #include <linux/fsl/guts.h>
+#include <linux/fsl/svr.h>
 #include <linux/interrupt.h>
 #include <linux/genalloc.h>
 
-#include <asm/mpc85xx.h>
-
 /* define indexes for each operation mapping scenario */
 #define OMI_QMAN        0x00
 #define OMI_FMAN        0x01
drivers/net/ethernet/freescale/gianfar.c +1 -1
index 2e6785b..450d31f 100644
@@ -86,11 +86,11 @@
 #include <linux/udp.h>
 #include <linux/in.h>
 #include <linux/net_tstamp.h>
+#include <linux/fsl/svr.h>
 
 #include <asm/io.h>
 #ifdef CONFIG_PPC
 #include <asm/reg.h>
-#include <asm/mpc85xx.h>
 #endif
 #include <asm/irq.h>
 #include <asm/uaccess.h>
include/linux/fsl/svr.h renamed from arch/powerpc/include/asm/mpc85xx.h +2 -2
similarity index 97%
rename from arch/powerpc/include/asm/mpc85xx.h
rename to include/linux/fsl/svr.h
index 213f3a8..8d13836 100644
@@ -9,8 +9,8 @@
  * (at your option) any later version.
  */
 
-#ifndef __ASM_PPC_MPC85XX_H
-#define __ASM_PPC_MPC85XX_H
+#ifndef FSL_SVR_H
+#define FSL_SVR_H
 
 #define SVR_REV(svr)	((svr) & 0xFF)		/* SOC design resision */
 #define SVR_MAJ(svr)	(((svr) >>  4) & 0xF)	/* Major revision field*/
Signature · 6 lines
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author maintainer
#16 lore raw

PATCH v11 5/5 powerpc/fsl-pci: Use fsl_guts_get_svr()

In reply to Scott Wood

Establish an initial user of fsl_guts_get_svr(), so that the code gets some test coverage until users outside arch/powerpc can get converted.

---
 arch/powerpc/Kconfig          | 1 +
 arch/powerpc/sysdev/fsl_pci.c | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
arch/powerpc/Kconfig +1 -0
index fcfe533..765df81 100644
@@ -777,6 +777,7 @@ config FSL_PCI
  	bool
 	select PPC_INDIRECT_PCI
 	select PCI_QUIRKS
+	select FSL_GUTS
 
 config FSL_PMC
 	bool
arch/powerpc/sysdev/fsl_pci.c +5 -1
index 0fd1895..9ba570cf 100644
@@ -22,6 +22,7 @@
 #include <linux/delay.h>
 #include <linux/string.h>
 #include <linux/fsl/edac.h>
+#include <linux/fsl/guts.h>
 #include <linux/fsl/svr.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
@@ -529,7 +530,10 @@ int fsl_add_bridge(struct platform_device *pdev, int is_primary)
 	struct device_node *dev;
 	struct ccsr_pci __iomem *pci;
 	u16 temp;
-	u32 svr = mfspr(SPRN_SVR);
+	u32 svr;
+
+	fsl_guts_init();
+	svr = fsl_guts_get_svr();
 
 	dev = pdev->dev.of_node;
 
Signature · 1 line
2.7.4
#5 lore raw

Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

In reply to Scott Wood
Quoted 7 lines · CEST Scott Wood

From: yangbo lu <[email protected]>

Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR symbols.

Quoted 7 lines

As discussed before, please don't introduce yet another vendor specific way to match a SoC ID from a device driver.

I've posted a patch for an extension to the soc_device infrastructure to allow comparing the running SoC to a table of devices, use that instead.

Arnd

author maintainer
#6 lore raw

Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 16 lines · Arnd Bergmann
Quoted 8 lines · CEST Scott Wood

From: yangbo lu <[email protected]>

Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file.  This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR symbols.

Quoted 7 lines
Quoted 6 lines

As discussed before, please don't introduce yet another vendor specific way to match a SoC ID from a device driver.

I've posted a patch for an extension to the soc_device infrastructure to allow comparing the running SoC to a table of devices, use that instead.

As I asked before, in which relevant maintainership capacity are you NACKing this?

-Scott

#7 lore raw

Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 20 lines · CEST Scott Wood
Quoted 19 lines · Arnd Bergmann
Quoted 8 lines · CEST Scott Wood

From: yangbo lu <[email protected]>

Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR symbols.

Quoted 7 lines

As discussed before, please don't introduce yet another vendor specific way to match a SoC ID from a device driver.

Quoted 6 lines
Quoted 3 lines

I've posted a patch for an extension to the soc_device infrastructure to allow comparing the running SoC to a table of devices, use that instead.

As I asked before, in which relevant maintainership capacity are you NACKing this?

I don't know why that's important, but I suggested the creation of drivers/soc/ as a place to have a more general place for platform specific drivers as part of being maintainer for arm-soc, and almost all changes to drivers/soc go through our tree.

Olof does about half the merges, but I do the majority of the reviews for drivers/soc patches. See also

git log --graph --format="%an %s" --merges drivers/soc/

Arnd

#8 lore raw

Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

In reply to Scott Wood

Quoting Scott Wood (2016-07-21 04:31:48)

Quoted 20 lines · Arnd Bergmann
Quoted 19 lines · CEST Scott Wood
Quoted 8 lines

From: yangbo lu <[email protected]>

Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file.  This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR symbols.

Quoted 7 lines

As discussed before, please don't introduce yet another vendor specific way to match a SoC ID from a device driver.

Quoted 6 lines
Quoted 3 lines

I've posted a patch for an extension to the soc_device infrastructure to allow comparing the running SoC to a table of devices, use that instead.

As I asked before, in which relevant maintainership capacity are you NACKing this?

I'll nack the powerpc part until you guys can agree.

cheers

author maintainer
#9 lore raw

Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 27 lines · Michael Ellerman

Quoting Scott Wood (2016-07-21 04:31:48)

Quoted 26 lines · Arnd Bergmann
Quoted 24 lines · CEST Scott Wood
Quoted 12 lines

From: yangbo lu <[email protected]>

Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file.  This SVR numberspace is used on some ARM chips as well as
PPC, and even to check for a PPC SVR multi-arch drivers would otherwise
need to ifdef the header inclusion and all references to the SVR symbols.

Quoted 7 lines

As discussed before, please don't introduce yet another vendor specific way to match a SoC ID from a device driver.

Quoted 7 lines
Quoted 6 lines
Quoted 3 lines

I've posted a patch for an extension to the soc_device infrastructure to allow comparing the running SoC to a table of devices, use that instead.

As I asked before, in which relevant maintainership capacity are you NACKing
this?

I'll nack the powerpc part until you guys can agree.

OK, I've pulled these patches out.

For the MMC issue I suggest using ifdef CONFIG_PPC and mfspr(SPRN_SVR) like the clock driver does[1] and we can revisit the issue if/when we need to do something similar on an ARM chip.

-Scott

[1] One of the issues with Arnd's approach is that it wouldn't have worked for early things like the clock driver, and he didn't seem to mind using ifdef and mfspr() there.

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#10 lore raw

Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 4 lines · CEST Scott Wood

For the MMC issue I suggest using ifdef CONFIG_PPC and mfspr(SPRN_SVR) like the clock driver does[1] and we can revisit the issue if/when we need to do something similar on an ARM chip.

That sounds ok to me. having an mfspr check isn't nice but does the job to work around existing bindings. For future chips, we can hopefully find a way to identify most quirks early enough that the DT binding can describe them using distinct compatible strings or other properties, if necessary with the help of the boot loader.

Some other folks on MIPS were interested in having the soc_device matching infrastructure and contacted me off-list, but they can of course take the patch I sent and work from that.

Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw

RE: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

In reply to Scott Wood

Hi Scott,

Quoted 40 lines

-----Original Message-----
From: Scott Wood [mailto:[email protected]]
Sent: Friday, July 22, 2016 12:45 AM
To: Michael Ellerman; Arnd Bergmann
Cc: [email protected]; [email protected]; linuxppc- [email protected]; [email protected]; Yangbo Lu
Subject: Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 30 lines · Michael Ellerman

Quoting Scott Wood (2016-07-21 04:31:48)

Quoted 29 lines · Arnd Bergmann
Quoted 19 lines · CEST Scott Wood
Quoted 10 lines

From: yangbo lu <[email protected]>

Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file.  This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR symbols.

Quoted 7 lines
Quoted 6 lines

As discussed before, please don't introduce yet another vendor specific way to match a SoC ID from a device driver.

I've posted a patch for an extension to the soc_device infrastructure to allow comparing the running SoC to a table of devices, use that instead.

As I asked before, in which relevant maintainership capacity are you NACKing this?

Quoted 7 lines
Quoted 1 line

I'll nack the powerpc part until you guys can agree.

OK, I've pulled these patches out.

For the MMC issue I suggest using ifdef CONFIG_PPC and mfspr(SPRN_SVR) like the clock driver does[1] and we can revisit the issue if/when we need to do something similar on an ARM chip.

[Lu Yangbo-B47093] I remembered that Uffe had opposed us to introduce non-generic header files(like '#include <asm/mpc85xx.h>') in mmc driver initially. So I think it will not be accepted to use ifdef CONFIG_PPC and mfspr(SPRN_SVR)... And this method still couldn’t get SVR of ARM chip now.

Any other suggestion here?
Thank you very much.

- Yangbo Lu

Quoted 7 lines

-Scott

[1] One of the issues with Arnd's approach is that it wouldn't have worked for early things like the clock driver, and he didn't seem to mind using ifdef and
mfspr() there.

author maintainer
#12 lore raw

Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 51 lines · Yangbo Lu

Hi Scott,

Quoted 48 lines

-----Original Message-----
From: Scott Wood [mailto:[email protected]]
Sent: Friday, July 22, 2016 12:45 AM
To: Michael Ellerman; Arnd Bergmann
Cc: [email protected]; [email protected]; linuxppc- [email protected]; [email protected]; Yangbo Lu
Subject: Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 29 lines · Michael Ellerman

Quoting Scott Wood (2016-07-21 04:31:48)

Quoted 27 lines · Arnd Bergmann
Quoted 24 lines · CEST Scott Wood
Quoted 11 lines

From: yangbo lu <[email protected]>

Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file.  This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR symbols.

Quoted 7 lines

As discussed before, please don't introduce yet another vendor specific way to match a SoC ID from a device driver.

Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

I've posted a patch for an extension to the soc_device infrastructure to allow comparing the running SoC to a table of devices, use that instead.

As I asked before, in which relevant maintainership capacity are you NACKing this?

I'll nack the powerpc part until you guys can agree.

OK, I've pulled these patches out.

Quoted 8 lines
Quoted 3 lines

For the MMC issue I suggest using ifdef CONFIG_PPC and mfspr(SPRN_SVR) like the clock driver does[1] and we can revisit the issue if/when we need to do something similar on an ARM chip.

[Lu Yangbo-B47093] I remembered that Uffe had opposed us to introduce non- generic header files(like '#include <asm/mpc85xx.h>')
in mmc driver initially. So I think it will not be accepted to use ifdef CONFIG_PPC and mfspr(SPRN_SVR)...
And this method still couldn’t get SVR of ARM chip now.

Right, as I said we'll have to revisit the issue if/when we have the same problem on an ARM chip.  That also applies if the PPC ifdef is still getting NACKed from the MMC side.

Quoted 1 line

Any other suggestion here?

The other option is to try to come up with something that fits into Arnd's framework while addressing the concerns I raised.  The soc_id string should be well-structured to avoid mismatches and compatibility problems (especially since it would get exposed to userspace).  Maybe something like:

svr:<SVR minus E bit>,svre:<full SVR including E bit>,name:<soc name>,die:<soc die name>,rev:X.Y,<tag1>,<tag2>,<...>,

with the final comma used so that globs can put a colon on either end to be sure they're matching a full field.  The SoC die name would be the primary chip for a given die (e.g. p4040 would have a die name of p4080).  The "name" and "die" fields would never include the trailing "e" indicated by the E bit.

Extra tags could be used for common groupings, such as all chips from a particular die before a certain revision.  Once a tag is added it can't be removed or reordered, to maintain userspace compatibility, but new tags could be appended.

Some examples:

svr:0x82000020,svre:0x82000020,name:p4080,die:p4080,rev:2.0, svr:0x82000020,svr e:0x82080020,name:p4080,die:p4080,rev:2.0, svr:0x82000030,svre:0x82000030,name:
p4080,die:p4080,rev:3.0, svr:0x82000030,svre:0x82080030,name:p4080,die:p4080,re v:3.0, svr:0x82010020,svre:0x82010020,name:p4040,die:p4080,rev:2.0, svr:0x820100 20,svre:0x82090020,name:p4040,die:p4080,rev:2.0,

svr:0x82010030,svre:0x82010030
,name:p4040,die:p4080,rev:3.0,
svr:0x82010030,svre:0x82090030,name:p4040,die:p4
080,rev:3.0,

Then if you want to apply a workaround on:
- all chips using the p4080 die, match with "*,die:p4080,*"
- all chips using the rev 2.0 p4080 die, match with "*,die:p4080,rev:2.0,*"
- Only p4040, but of any rev, match with "*,name:p4040,*"

Matching via open-coded hex number should be considered a last resort (it's more error-prone, either for getting the number wrong or for forgetting variants -- the latter is already a common problem), but preferable to adding too many tags.

Using wildcards within a tag field would be discouraged.

-Scott

#13 lore raw

RE: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Hi Scott,

Quoted 70 lines

-----Original Message-----
From: Scott Wood [mailto:[email protected]]
Sent: Wednesday, July 27, 2016 8:38 AM
To: Yangbo Lu; Michael Ellerman; Arnd Bergmann; Ulf Hansson
Cc: [email protected]; [email protected]; linuxppc- [email protected]; [email protected]
Subject: Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 51 lines · Yangbo Lu

Hi Scott,

Quoted 48 lines

-----Original Message-----
From: Scott Wood [mailto:[email protected]]
Sent: Friday, July 22, 2016 12:45 AM
To: Michael Ellerman; Arnd Bergmann
Cc: [email protected]; [email protected]; linuxppc- [email protected]; [email protected]; Yangbo Lu
Subject: Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 29 lines · Michael Ellerman

Quoting Scott Wood (2016-07-21 04:31:48)

Quoted 27 lines · Arnd Bergmann
Quoted 24 lines · CEST Scott Wood
Quoted 11 lines

From: yangbo lu <[email protected]>

Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file.  This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR symbols.

Quoted 7 lines

As discussed before, please don't introduce yet another vendor specific way to match a SoC ID from a device driver.

Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

I've posted a patch for an extension to the soc_device infrastructure to allow comparing the running SoC to a table of devices, use that instead.

As I asked before, in which relevant maintainership capacity are you NACKing this?

I'll nack the powerpc part until you guys can agree.

OK, I've pulled these patches out.

Quoted 8 lines
Quoted 3 lines

For the MMC issue I suggest using ifdef CONFIG_PPC and mfspr(SPRN_SVR) like the clock driver does[1] and we can revisit the issue if/when we need to do something similar on an ARM chip.

[Lu Yangbo-B47093] I remembered that Uffe had opposed us to introduce non- generic header files(like '#include <asm/mpc85xx.h>') in mmc driver initially. So I think it will not be accepted to use ifdef CONFIG_PPC and mfspr(SPRN_SVR)...
And this method still couldn’t get SVR of ARM chip now.

Quoted 3 lines

Right, as I said we'll have to revisit the issue if/when we have the same problem on an ARM chip.  That also applies if the PPC ifdef is still getting NACKed from the MMC side.

[Lu Yangbo-B47093] It's not clear for me about your idea :( Do you mean we can still use this method, or not ?
I think Uffe had opposed to use ifdef CONFIG_PPC and mfspr(SPRN_SVR). Is there any solution to resolve ?
:)

Quoted 11 lines
Quoted 2 lines

Any other suggestion here?

The other option is to try to come up with something that fits into Arnd's framework while addressing the concerns I raised.  The soc_id string should be well-structured to avoid mismatches and compatibility problems (especially since it would get exposed to userspace).  Maybe something like:

svr:<SVR minus E bit>,svre:<full SVR including E bit>,name:<soc name>,die:<soc die name>,rev:X.Y,<tag1>,<tag2>,<...>,

[Lu Yangbo-B47093] The soc_device_attribut struct is defined as below.

struct soc_device_attribute {
        const char *machine;
        const char *family;
        const char *revision;
        const char *soc_id;
};

We can put the 'model' in root node of dts as machine, put 'Freescale QorIQ' as family,
and put x.x as revision. Is it ok?
As you suggested, you like to use below string as soc_id. It's easy to get svr, but how does the software know the name and die, and put them into this string ? It's a large code to define them.

Quoted 2 lines

svr:<SVR minus E bit>,svre:<full SVR including E bit>,name:<soc name>,die:<soc die name>,rev:X.Y,<tag1>,<tag2>,<...>,

Should we remove rev here since there is also a revision member?

Regarding the guts_init, we still call guts_init and then match the soc, or we change to use platform driver? Or do you know any better place to call guts_init to initialize only once?

Thank you so much :)

Quoted 37 lines

with the final comma used so that globs can put a colon on either end to be sure they're matching a full field.  The SoC die name would be the primary chip for a given die (e.g. p4040 would have a die name of p4080).  The "name"
and "die" fields would never include the trailing "e" indicated by the E bit.

Extra tags could be used for common groupings, such as all chips from a particular die before a certain revision.  Once a tag is added it can't be removed or reordered, to maintain userspace compatibility, but new tags could be appended.

Some examples:

svr:0x82000020,svre:0x82000020,name:p4080,die:p4080,rev:2.0, svr:0x82000020,svr e:0x82080020,name:p4080,die:p4080,rev:2.0, svr:0x82000030,svre:0x82000030,name:
p4080,die:p4080,rev:3.0, svr:0x82000030,svre:0x82080030,name:p4080,die:p4080,re v:3.0, svr:0x82010020,svre:0x82010020,name:p4040,die:p4080,rev:2.0, svr:0x820100 20,svre:0x82090020,name:p4040,die:p4080,rev:2.0,

svr:0x82010030,svre:0x82010030
,name:p4040,die:p4080,rev:3.0,
svr:0x82010030,svre:0x82090030,name:p4040,die:p4
080,rev:3.0,

Then if you want to apply a workaround on:
- all chips using the p4080 die, match with "*,die:p4080,*"
- all chips using the rev 2.0 p4080 die, match with "*,die:p4080,rev:2.0,*"
- Only p4040, but of any rev, match with "*,name:p4040,*"

Quoted 8 lines

Matching via open-coded hex number should be considered a last resort (it's more error-prone, either for getting the number wrong or for forgetting variants -- the latter is already a common problem), but preferable to adding too many tags.

Using wildcards within a tag field would be discouraged.

-Scott

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

author maintainer
#14 lore raw

Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 78 lines · Yangbo Lu

Hi Scott,

Quoted 76 lines

-----Original Message-----
From: Scott Wood [mailto:[email protected]]
Sent: Wednesday, July 27, 2016 8:38 AM
To: Yangbo Lu; Michael Ellerman; Arnd Bergmann; Ulf Hansson
Cc: [email protected]; [email protected]; linuxppc- [email protected]; [email protected]
Subject: Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 65 lines · Yangbo Lu

Hi Scott,

Quoted 48 lines

-----Original Message-----
From: Scott Wood [mailto:[email protected]]
Sent: Friday, July 22, 2016 12:45 AM
To: Michael Ellerman; Arnd Bergmann
Cc: [email protected]; [email protected]; linuxppc- [email protected]; [email protected]; Yangbo Lu
Subject: Re: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

Quoted 36 lines · Michael Ellerman

Quoting Scott Wood (2016-07-21 04:31:48)

Quoted 33 lines · Arnd Bergmann
Quoted 29 lines · CEST Scott Wood
Quoted 12 lines

From: yangbo lu <[email protected]>

Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file.  This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR symbols.

Quoted 7 lines

As discussed before, please don't introduce yet another vendor specific way to match a SoC ID from a device driver.

I've posted a patch for an extension to the soc_device infrastructure to allow comparing the running SoC to a table of devices, use that instead.

Quoted 8 lines
Quoted 3 lines
Quoted 2 lines

As I asked before, in which relevant maintainership capacity are you NACKing this?

I'll nack the powerpc part until you guys can agree.

OK, I've pulled these patches out.

For the MMC issue I suggest using ifdef CONFIG_PPC and mfspr(SPRN_SVR) like the clock driver does[1] and we can revisit the issue if/when we need to do something similar on an ARM chip.

[Lu Yangbo-B47093] I remembered that Uffe had opposed us to introduce non- generic header files(like '#include <asm/mpc85xx.h>') in mmc driver initially. So I think it will not be accepted to use ifdef CONFIG_PPC and mfspr(SPRN_SVR)...
And this method still couldn’t get SVR of ARM chip now.

Quoted 8 lines
Quoted 3 lines

Right, as I said we'll have to revisit the issue if/when we have the same problem on an ARM chip.  That also applies if the PPC ifdef is still getting NACKed from the MMC side.

[Lu Yangbo-B47093] It's not clear for me about your idea :( Do you mean we can still use this method, or not ?
I think Uffe had opposed to use ifdef CONFIG_PPC and mfspr(SPRN_SVR). Is there any solution to resolve ?
:)

As I said, I'm OK with using the SPR.  It's up to you to find out whether it's still unacceptable with the MMC maintainers given all the discussion (it would be the quickest way to get the workaround enabled), or just go with the method below.

Quoted 17 lines
Quoted 9 lines
Quoted 1 line

Any other suggestion here?

The other option is to try to come up with something that fits into Arnd's framework while addressing the concerns I raised.  The soc_id string should be well-structured to avoid mismatches and compatibility problems (especially since it would get exposed to userspace).  Maybe something like:

svr:<SVR minus E bit>,svre:<full SVR including E bit>,name:<soc name>,die:<soc die name>,rev:X.Y,<tag1>,<tag2>,<...>,

[Lu Yangbo-B47093] The soc_device_attribut struct is defined as below. struct soc_device_attribute {
        const char *machine;
        const char *family;
        const char *revision;
        const char *soc_id;
};

Quoted 2 lines

We can put the 'model' in root node of dts as machine, put 'Freescale QorIQ' as family,

I'd just put "QorIQ" to avoid the question of whether to use "Freescale" or "NXP".

Quoted 4 lines

and put x.x as revision. Is it ok?
As you suggested, you like to use below string as soc_id. It's easy to get svr, but how does the software know the name and die,
and put them into this string ? It's a large code to define them.

Yes, there would need to be a table in the guts driver for each SVR.  If the SVR isn't found in the table then the soc_id would only contain the svr: and
svre: fields.

Quoted 4 lines
Quoted 3 lines

svr:<SVR minus E bit>,svre:<full SVR including E bit>,name:<soc name>,die:<soc die name>,rev:X.Y,<tag1>,<tag2>,<...>,

Should we remove rev here since there is also a revision member?

Yes, I forgot there was a revision field -- it should go there obviously.

Quoted 3 lines

Regarding the guts_init, we still call guts_init and then match the soc, or we change to use platform driver?
Or do you know any better place to call guts_init to initialize only once?

Use a platform driver for now.  If we ever need to check an ARM SVR in the clock driver or similar place, then Arnd can explain what he wants us to do then :-)

-Scott

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

#15 lore raw

RE: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

SGkgVWZmZSwNCg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFNjb3R0 IFdvb2QgW21haWx0bzpvc3NAYnVzZXJyb3IubmV0XQ0KPiBTZW50OiBXZWRuZXNkYXksIEF1Z3Vz dCAwMywgMjAxNiA1OjQxIEFNDQo+IFRvOiBZYW5nYm8gTHU7IE1pY2hhZWwgRWxsZXJtYW47IEFy bmQgQmVyZ21hbm47IFVsZiBIYW5zc29uDQo+IENjOiBsaW51eC1tbWNAdmdlci5rZXJuZWwub3Jn OyBkZXZpY2V0cmVlQHZnZXIua2VybmVsLm9yZzsgbGludXhwcGMtDQo+IGRldkBsaXN0cy5vemxh YnMub3JnOyBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnOyBYaWFvYm8gWGllDQo+IFN1Ympl Y3Q6IFJlOiBbUEFUQ0ggdjExIDQvNV0gcG93ZXJwYy9mc2w6IG1vdmUgbXBjODV4eC5oIHRvDQo+ IGluY2x1ZGUvbGludXgvZnNsDQo+IA0KPiBPbiBUdWUsIDIwMTYtMDgtMDIgYXQgMDU6NTcgKzAw MDAsIFlhbmdibyBMdSB3cm90ZToNCj4gPiBIaSBTY290dCwNCj4gPg0KPiA+ID4NCj4gPiA+IC0t LS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+ID4gPiBGcm9tOiBTY290dCBXb29kIFttYWlsdG86 b3NzQGJ1c2Vycm9yLm5ldF0NCj4gPiA+IFNlb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3cuIMKgSWYgd2UgZXZlciBuZWVkIHRv IGNoZWNrIGFuIEFSTSBTVlIgaW4NCj4gdGhlIGNsb2NrIGRyaXZlciBvciBzaW1pbGFyIHBsYWNl LCB0aGVuIEFybmQgY2FuIGV4cGxhaW4gd2hhdCBoZSB3YW50cyB1cw0KPiB0byBkbyB0aGVuIDot KQ0KPiANCj4gLVNjb3R0DQoNCg==
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html