Skip to contentSkip to conversation

ata: Add APM X-Gene SoC 6.0Gbps SATA PHY support

PATCH Superseded Loc Ho 2 participants 16 messages Nov 14, 2013 – Nov 15, 2013

Subsystems (3)

v1 of 18 Superseded Latest is v18 →

lore
Share & tools
lore

Loc Ho

author
#0 lore raw

cover ata: Add APM X-Gene SoC 6.0Gbps SATA PHY support

ata: Add APM X-Gene SoC 6.0Gbps SATA PHY support

This patch adds support for APM X-Gene SoC 6.0Gbps SATA PHY. This is the physical layer interface for the corresponding SATA host controller. This driver uses the new PHY generic framework posted by Kishon Vijay Abrahm.

---
Loc Ho (3):
Documentation: Add APM X-Gene SATA PHY driver binding documentation
ata: Add APM X-Gene SoC 6.0Gbps SATA PHY driver
arm64: Add APM X-Gene SoC 6.0Gbps SATA PHY DTS entries.

 .../devicetree/bindings/ata/apm-xgene.txt          |   69 +
 arch/arm64/boot/dts/apm-storm.dtsi                 |   25 +
 drivers/ata/Kconfig                                |    6 +
 drivers/ata/Makefile                               |    1 +
 drivers/ata/sata_xgene_phy.c                       | 2142 ++++++++++++++++++++
 5 files changed, 2243 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/ata/apm-xgene.txt
 create mode 100644 drivers/ata/sata_xgene_phy.c
author
#1 lore raw

PATCH 1/3 Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation

Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation

Document the DTS binding for the X-Gene SoC SATA PHY driver.

---
 .../devicetree/bindings/ata/apm-xgene.txt          |   69 ++++++++++++++++++++
 1 files changed, 69 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/ata/apm-xgene.txt
Documentation/devicetree/bindings/ata/apm-xgene.txt new file +69 -0
new file mode 100644
index 0000000..d18db67
@@ -0,0 +1,69 @@
+* APM X-Gene 6.0 Gb/s SATA PHY nodes
+
+SATA PHY nodes are defined to describe on-chip Serial ATA PHY. Each SATA PHY
+(pair of PHY) has its own node.
+
+Required properties:
+- compatible		: Shall be "apm,xgene-ahci-phy"
+- reg			: First memory resource shall be the PHY memory resource
+			  Second memory resource shall be the optional PHY
+			  memory resource if mux'ed with another IP
+- id			: PHY ID (0 = first, 1 = second, 2 = third)
+- #phy-cells		: Shall be 0
+
+Optional properties:
+- status		: Shall be "ok" if enabled or "na" if disabled. Default
+			  is "ok".
+- CTLE0			: PHY override parameters for channel 0 register REG1
+			  field CTLE_EQ. First value for Gen1, second value
+			  for Gen2, and third value for Gen3. Default is 0x2.
+- CTLE1			: PHY override parameters for channel 1 register REG1
+			  field CTLE_EQ. First value for Gen1, second value
+			  for Gen2, and third value for Gen3. Default is 0x2.
+- PQ0			: PHY override parameters for channel 0 register REG125
+			  field PQ_REG. First value for Gen1, second value
+			  for Gen2, and third value for Gen3. Default is 0xA.
+- PQ1			: PHY override parameters for channel 1 register REG125
+			  field PQ_REG. First value for Gen1, second value
+			  for Gen2, and third value for Gen3. Default is 0xA.
+- PQS0			: PHY override parameters for channel 0 register REG125
+			  field PQ_SIGN. First value for Gen1, second value
+			  for Gen2, and third value for Gen3. Default is 0x1.
+- PQS1			: PHY override parameters for channel 1 register REG125
+			  field PQ_SIGN. First value for Gen1, second value
+			  for Gen2, and third value for Gen3. Default is 0x1.
+- SPD0			: PHY override parameters for channel 0 register REG61
+			  field PQ_SIGN. First value for Gen1, second value
+			  for Gen2, and third value for Gen3. Default is 0x5.
+- SPD1			: PHY override parameters for channel 1 register REG61
+			  field PQ_SIGN. First value for Gen1, second value
+			  for Gen2, and third value for Gen3. Default is 0x5.
+
+NOTE: PHY override parameters are board specific setting.
+
+Example:
+		sataphy0: sataphy at 1f210000 {
+			compatible = "apm,xgene-ahci-phy";
+			id = <0>;
+			reg = <0x0 0x1f210000 0x0 0x10000>;
+			#phy-cells = <0>;
+			status = "na";
+		};
+
+		sataphy1: sataphy at 1f220000 {
+			compatible = "apm,xgene-ahci-phy";
+			id = <1>;
+			reg = <0x0 0x1f220000 0x0 0x10000>;
+			#phy-cells = <0>;
+			status = "ok";
+		};
+
+		sataphy2: sataphy at 1f230000 {
+			compatible = "apm,xgene-ahci-phy";
+			id = <2>;
+			reg = <0x0 0x1f230000 0x0 0x10000
+			       0x0 0x1f2d0000 0x0 0x10000 >;
+			#phy-cells = <0>;
+			status = "ok";
+		};
+
Signature · 1 line
1.5.5
author
#2 lore raw

PATCH 2/3 ata: Add APM X-Gene SoC 6.0Gbps SATA PHY driver

ata: add APM X-Gene SoC 6.0Gbps SATA PHY driver

This patch adds support for APM X-Gene SoC 6.0Gbps SATA PHY. This is the physical layer interface for the corresponding SATA host controller. This driver uses the new PHY generic framework posted by Kishon Vijay Abrahm.

---
 drivers/ata/Kconfig          |    6 +
 drivers/ata/Makefile         |    1 +
 drivers/ata/sata_xgene_phy.c | 2142 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 2149 insertions(+), 0 deletions(-)
 create mode 100644 drivers/ata/sata_xgene_phy.c
drivers/ata/Kconfig +6 -0
index 4e73772..d467e06 100644
@@ -106,6 +106,12 @@ config AHCI_IMX
 
 	  If unsure, say N.
 
+config SATA_XGENE_PHY
+	tristate "APM X-Gene 6.0Gbps SATA PHY support"
+	default y if ARM64
+	help
+	  This option enables support for APM X-Gene SoC SATA PHY.
+
 config SATA_FSL
 	tristate "Freescale 3.0Gbps SATA support"
 	depends on FSL_SOC
drivers/ata/Makefile +1 -0
index 46518c6..be53890 100644
@@ -11,6 +11,7 @@ obj-$(CONFIG_SATA_SIL24)	+= sata_sil24.o
 obj-$(CONFIG_SATA_DWC)		+= sata_dwc_460ex.o
 obj-$(CONFIG_SATA_HIGHBANK)	+= sata_highbank.o libahci.o
 obj-$(CONFIG_AHCI_IMX)		+= ahci_imx.o
+obj-$(CONFIG_SATA_XGENE_PHY)	+= sata_xgene_phy.o
 
 # SFF w/ custom DMA
 obj-$(CONFIG_PDC_ADMA)		+= pdc_adma.o
drivers/ata/sata_xgene_phy.c new file +2142 -0

2,142 lines not on this page · raw message

Signature · 1 line
1.5.5
author
#3 lore raw

PATCH 3/3 arm64: Add APM X-Gene SoC 6.0Gbps SATA PHY DTS entries

arm64: Add APM X-Gene SoC 6.0Gbps SATA PHY DTS entries.

This patch adds the DTS entries for the APM X-Gene SoC 6.0Gbps SATA PHY driver. The PHY for controller 0 and 1 are enabled by default.

---
 arch/arm64/boot/dts/apm-storm.dtsi |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
arch/arm64/boot/dts/apm-storm.dtsi +25 -0
index 359d7b6..b29b465 100644
@@ -193,5 +193,30 @@
 			reg = <0x0 0x17000014 0x0 0x100>;
 			mask = <0x1>;
 		};
+
+		sataphy0: sataphy at 1f210000 {
+			compatible = "apm,xgene-ahci-phy";
+			id = <0>;
+			reg = <0x0 0x1f210000 0x0 0x10000>;
+			#phy-cells = <0>;
+			status = "na";
+		};
+
+		sataphy1: sataphy at 1f220000 {
+			compatible = "apm,xgene-ahci-phy";
+			id = <1>;
+			reg = <0x0 0x1f220000 0x0 0x10000>;
+			#phy-cells = <0>;
+			status = "ok";
+		};
+
+		sataphy2: sataphy at 1f230000 {
+			compatible = "apm,xgene-ahci-phy";
+			id = <2>;
+			reg = <0x0 0x1f230000 0x0 0x10000
+			       0x0 0x1f2d0000 0x0 0x10000 >;
+			#phy-cells = <0>;
+			status = "ok";
+		};
 	};
 };
Signature · 1 line
1.5.5
#4 lore raw

PATCH 2/3 ata: Add APM X-Gene SoC 6.0Gbps SATA PHY driver

In reply to Loc Ho

drivers/ata/sata_xgene_phy.c line 967

Quoted 11 lines · Loc Ho
drivers/ata/sata_xgene_phy.c new file +11 -0
+
+/* SATA port 4 - 5 force power down VCO */
+static void xgene_phy_sata45_macro_pdwn_force_vco(struct xgene_ahci_phy_ctx
+						     *ctx)
+{
+	sds_pcie_toggle1to0(ctx->pcie_base, KC_CLKMACRO_CMU_REGS_CMU_REG0_ADDR,
+			    CMU_REG0_PDOWN_MASK);
+	sds_pcie_toggle1to0(ctx->pcie_base,
+			    KC_CLKMACRO_CMU_REGS_CMU_REG32_ADDR,
+			    CMU_REG32_FORCE_VCOCAL_START_MASK);
+}

I think it's bad to have knowledge of specific port numbers in the driver. Can you change this so that the driver treats all PHYs the same way but gets the differences between sata/eth/pcie mode from DT properties?

Quoted 1 line

+void xgene_ahci_serdes_reset_rxa_rxd(struct xgene_ahci_phy_ctx *ctx, int chan)

All functions in the driver should be 'static'. You are not calling these directly from the SATA driver, are you?

drivers/ata/sata_xgene_phy.c line 1787

Quoted 8 lines
drivers/ata/sata_xgene_phy.c new file +8 -0
+	/* Select SATA mux for SATA port 0 - 3 which shared with SGMII ETH */
+	if (ctx->id < 2) {
+		if (xgene_phy_host_sata_select(ctx) != 0) {
+			dev_err(ctx->dev, "SATA%d can not select SATA MUX\n",
+				ctx->id);
+			return -1;
+		}
+	}

I think all checks for the "id" field are to find out what kind of PHY you are talking to, the driver itself does not need to know the id, and the field can be removed if you find that out in a different way.

Quoted 7 lines
drivers/ata/sata_xgene_phy.c new file +7 -0
+	if (ctx->id == 2) {
+		/* For 3rd controller, we must also program another resource */
+		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
+		if (!res) {
+			dev_err(&pdev->dev,
+				"no SATA/PCIE PHY resource address\n");
+			goto error;

drivers/ata/sata_xgene_phy.c line 2060

Quoted 10 lines
drivers/ata/sata_xgene_phy.c new file +10 -0
+		}
+		ctx->pcie_base = devm_ioremap(&pdev->dev, res->start,
+					      resource_size(res));
+		if (!ctx->pcie_base) {
+			dev_err(&pdev->dev,
+				"can't map SATA/PCIe PHY resource\n");
+			rc = -ENOMEM;
+			goto error;
+		}
+	}

If you need a second memory resource, I take that as a hint that the device is actually different from the others, so using a separate "compatible" string in DT might be more appropriate.

Arnd

author
#5 lore raw

PATCH 2/3 ata: Add APM X-Gene SoC 6.0Gbps SATA PHY driver

Hi,

Quoted 7 lines
Quoted 7 lines
drivers/ata/sata_xgene_phy.c new file +7 -0
+
+/* SATA port 4 - 5 force power down VCO */
+static void xgene_phy_sata45_macro_pdwn_force_vco(struct xgene_ahci_phy_ctx
+                                                  *ctx)
+{
+     sds_pcie_toggle1to0(ctx->pcie_base, KC_CLKMACRO_CMU_REGS_CMU_REG0_ADDR,
+                         CMU_REG0_PDOWN_MASK);
Quoted 8 lines

drivers/ata/sata_xgene_phy.c line 967

Quoted 4 lines
drivers/ata/sata_xgene_phy.c new file +4 -0
+     sds_pcie_toggle1to0(ctx->pcie_base,
+                         KC_CLKMACRO_CMU_REGS_CMU_REG32_ADDR,
+                         CMU_REG32_FORCE_VCOCAL_START_MASK);
+}

I think it's bad to have knowledge of specific port numbers in the driver. Can you change this so that the driver treats all PHYs the same way but gets the differences between sata/eth/pcie mode from DT properties?

[Loc Ho]
Okay... I will get rip of the "sata45" and call this function if an base address is available.

Quoted 6 lines
Quoted 3 lines

+void xgene_ahci_serdes_reset_rxa_rxd(struct xgene_ahci_phy_ctx *ctx, int chan)

All functions in the driver should be 'static'. You are not calling these directly from the SATA driver, are you?

[Loc Ho]
Okay... Not anymore.

Quoted 10 lines

drivers/ata/sata_xgene_phy.c line 1787

Quoted 9 lines
drivers/ata/sata_xgene_phy.c new file +8 -0
+     /* Select SATA mux for SATA port 0 - 3 which shared with SGMII ETH */
+     if (ctx->id < 2) {
+             if (xgene_phy_host_sata_select(ctx) != 0) {
+                     dev_err(ctx->dev, "SATA%d can not select SATA MUX\n",
+                             ctx->id);
+                     return -1;
+             }
+     }
Quoted 3 lines

I think all checks for the "id" field are to find out what kind of PHY you are talking to, the driver itself does not need to know the id, and the field can be removed if you find that out in a different way.

[Loc Ho]
This is mainly used for debugging and detection of the 2nd resource. I will use another compatible type.

Quoted 19 lines
Quoted 8 lines
drivers/ata/sata_xgene_phy.c new file +7 -0
+     if (ctx->id == 2) {
+             /* For 3rd controller, we must also program another resource */
+             res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
+             if (!res) {
+                     dev_err(&pdev->dev,
+                             "no SATA/PCIE PHY resource address\n");
+                     goto error;

drivers/ata/sata_xgene_phy.c line 2060

Quoted 10 lines
drivers/ata/sata_xgene_phy.c new file +10 -0
+             }
+             ctx->pcie_base = devm_ioremap(&pdev->dev, res->start,
+                                           resource_size(res));
+             if (!ctx->pcie_base) {
+                     dev_err(&pdev->dev,
+                             "can't map SATA/PCIe PHY resource\n");
+                     rc = -ENOMEM;
+                     goto error;
+             }
+     }
Quoted 3 lines

If you need a second memory resource, I take that as a hint that the device is actually different from the others, so using a separate "compatible" string in DT might be more appropriate.

[Loc Ho]
Okay..

-Loc

#6 lore raw

PATCH 1/3 Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation

In reply to Loc Ho
Quoted 2 lines · Loc Ho
+- id                   : PHY ID (0 = first, 1 = second, 2 = third)
+- #phy-cells           : Shall be 0

Hmm, it seems like this would make more sense if you have #phy-cells=<1> and have the PHY ID in user node as the argument.

Documentation/devicetree/bindings/ata/apm-xgene.txt line 28

Quoted 12 lines

+- CTLE0 : PHY override parameters for channel 0 register REG1

Documentation/devicetree/bindings/ata/apm-xgene.txt new file +11 -0
+                         field CTLE_EQ. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0x2.
+- CTLE1                        : PHY override parameters for channel 1 register REG1
+                         field CTLE_EQ. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0x2.
+- PQ0                  : PHY override parameters for channel 0 register REG125
+                         field PQ_REG. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0xA.
+- PQ1                  : PHY override parameters for channel 1 register REG125
+                         field PQ_REG. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0xA.

As mentioned before, I don't think putting register-level information into the binding is the right approach here.

Arnd

#7 lore raw

PATCH 1/3 Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation

Quoted 6 lines · Arnd Bergmann
Quoted 2 lines · Loc Ho
+- id                   : PHY ID (0 = first, 1 = second, 2 = third)
+- #phy-cells           : Shall be 0

Hmm, it seems like this would make more sense if you have #phy-cells=<1> and have the PHY ID in user node as the argument.

Ignore this comment. After reading patch 2, I concluded that your choice of #phy-cells=0 is probably more appropriate here.

Arnd

author
#8 lore raw

PATCH 1/3 Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation

In reply to Arnd Bergmann

Hi,

Quoted 13 lines

Documentation/devicetree/bindings/ata/apm-xgene.txt line 28

Quoted 12 lines

+- CTLE0 : PHY override parameters for channel 0 register REG1

Documentation/devicetree/bindings/ata/apm-xgene.txt new file +11 -0
+                         field CTLE_EQ. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0x2.
+- CTLE1                        : PHY override parameters for channel 1 register REG1
+                         field CTLE_EQ. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0x2.
+- PQ0                  : PHY override parameters for channel 0 register REG125
+                         field PQ_REG. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0xA.
+- PQ1                  : PHY override parameters for channel 1 register REG125
+                         field PQ_REG. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0xA.
Quoted 3 lines

As mentioned before, I don't think putting register-level information into the binding is the right approach here.

[Loc Ho]
I don't want to change the driver for every possible customer or APM boards out there. In general, if the board designer follows the board design guideline, this isn't necessary. Unfortunately, I can not control what customer do. If these setting is NOT driven by DTS, then I or others may have to change the driver every time there is an new board. Another option is pass them as module parameters.

-Loc

#9 lore raw

PATCH 1/3 Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation

Quoted 16 lines · Loc Ho
Quoted 13 lines

Documentation/devicetree/bindings/ata/apm-xgene.txt line 28

Quoted 12 lines

+- CTLE0 : PHY override parameters for channel 0 register REG1

Documentation/devicetree/bindings/ata/apm-xgene.txt new file +11 -0
+                         field CTLE_EQ. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0x2.
+- CTLE1                        : PHY override parameters for channel 1 register REG1
+                         field CTLE_EQ. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0x2.
+- PQ0                  : PHY override parameters for channel 0 register REG125
+                         field PQ_REG. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0xA.
+- PQ1                  : PHY override parameters for channel 1 register REG125
+                         field PQ_REG. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0xA.
Quoted 3 lines

As mentioned before, I don't think putting register-level information into the binding is the right approach here.

Quoted 7 lines

[Loc Ho]
I don't want to change the driver for every possible customer or APM boards out there. In general, if the board designer follows the board design guideline, this isn't necessary. Unfortunately, I can not control what customer do. If these setting is NOT driven by DTS, then I or others may have to change the driver every time there is an new board. Another option is pass them as module parameters.

Module parameters are certainly not a solution for this, that would make the problem worse.

Would it be possible to read out the values that were set by the firmware at startup and reuse those during run-time? I assume that the devices are already brought up when the kernel starts.

If that s not possible, change the properties to be named after what the setting does and make the values be units that are sensible to a board designer, e.g. (specifics are totally made up here)

- polarity: If present, override the polarity of the signal line.
zero for negative polarity, one for positive polarity. If absent, use the firmware default.
- signal-clock-frequency: If present, override the signal clock frequency. This value is defined in HZ
- x-y-time: If present, override the timing setting for the X/Y signal
time, in nanoseconds.

This way, you can reuse the properties for an updated version of the device that has similar settings but a different register layout.

Arnd

author
#10 lore raw

PATCH 1/3 Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation

Hi,

Quoted 44 lines · Arnd Bergmann
Quoted 16 lines · Loc Ho
Quoted 13 lines

Documentation/devicetree/bindings/ata/apm-xgene.txt line 28

Quoted 12 lines

+- CTLE0 : PHY override parameters for channel 0 register REG1

Documentation/devicetree/bindings/ata/apm-xgene.txt new file +11 -0
+                         field CTLE_EQ. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0x2.
+- CTLE1                        : PHY override parameters for channel 1 register REG1
+                         field CTLE_EQ. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0x2.
+- PQ0                  : PHY override parameters for channel 0 register REG125
+                         field PQ_REG. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0xA.
+- PQ1                  : PHY override parameters for channel 1 register REG125
+                         field PQ_REG. First value for Gen1, second value
+                         for Gen2, and third value for Gen3. Default is 0xA.
Quoted 3 lines

As mentioned before, I don't think putting register-level information into the binding is the right approach here.

Quoted 7 lines

[Loc Ho]
I don't want to change the driver for every possible customer or APM boards out there. In general, if the board designer follows the board design guideline, this isn't necessary. Unfortunately, I can not control what customer do. If these setting is NOT driven by DTS, then I or others may have to change the driver every time there is an new board. Another option is pass them as module parameters.

Module parameters are certainly not a solution for this, that would make the problem worse.

Would it be possible to read out the values that were set by the firmware at startup and reuse those during run-time? I assume that the devices are already brought up when the kernel starts.

If that s not possible, change the properties to be named after what the setting does and make the values be units that are sensible to a board designer, e.g. (specifics are totally made up here)

- polarity: If present, override the polarity of the signal line.
zero for negative polarity, one for positive polarity. If absent, use the firmware default.
- signal-clock-frequency: If present, override the signal clock frequency. This value is defined in HZ
- x-y-time: If present, override the timing setting for the X/Y signal
time, in nanoseconds.

Quoted 3 lines

This way, you can reuse the properties for an updated version of the device that has similar settings but a different register layout.

[Loc Ho]
It may be possible from ACPI point of view (hasn't tried yet). But for DTS, there is no such firmware. I will make the entry more friendly for DTS. For ACPI, I am thinking that the BIOS/Firmware will just initialize it. As long as the clock isn't reset, the value will be there. Let's agree on these:

1. DTS - use more friendly name
2. ACPI - handled by the BIOS/Firmware

-Loc

#11 lore raw

PATCH 1/3 Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation

Quoted 2 lines · Loc Ho

It may be possible from ACPI point of view (hasn't tried yet). But for DTS, there is no such firmware.

Why not? Doesn't any boot loader have to initialize the hardware in order to load a kernel from disk?

Quoted 7 lines

I will make the entry more friendly
for DTS. For ACPI, I am thinking that the BIOS/Firmware will just initialize it. As long as the clock isn't reset, the value will be there. Let's agree on these:

1. DTS - use more friendly name
2. ACPI - handled by the BIOS/Firmware

Make sense.

Arnd

author
#12 lore raw

PATCH 1/3 Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation

Hi,

Quoted 5 lines
Quoted 2 lines

It may be possible from ACPI point of view (hasn't tried yet). But for DTS, there is no such firmware.

Why not? Doesn't any boot loader have to initialize the hardware in order to load a kernel from disk?

[Loc Ho]
Not necessary for network booting, SD boot, and USB boot with ramdisk.

-Loc

#13 lore raw

PATCH 1/3 Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation

Quoted 9 lines · Loc Ho

Hi,

Quoted 5 lines
Quoted 2 lines

It may be possible from ACPI point of view (hasn't tried yet). But for DTS, there is no such firmware.

Why not? Doesn't any boot loader have to initialize the hardware in order to load a kernel from disk?

[Loc Ho]
Not necessary for network booting, SD boot, and USB boot with ramdisk.

But why not just initialize them all if you already have the boot loader contain all the drivers? There really isn't any difference between passing an ACPI blob or a DT blob to the kernel, as far as the boot loader is concerned.

Arnd

author
#14 lore raw

PATCH 1/3 Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation

Hi,

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

It may be possible from ACPI point of view (hasn't tried yet). But for DTS, there is no such firmware.

Why not? Doesn't any boot loader have to initialize the hardware in order to load a kernel from disk?

Quoted 8 lines
Quoted 2 lines

[Loc Ho]
Not necessary for network booting, SD boot, and USB boot with ramdisk.

But why not just initialize them all if you already have the boot loader contain all the drivers? There really isn't any difference between passing an ACPI blob or a DT blob to the kernel, as far as the boot loader is concerned.

[Loc Ho]
Yes... It is a possible solution. The draw back would be slow down the boot loader. For now, let me implement the PHY for DTS and no PHY for ACPI. From previous emails, it was discussed that PHY driver is required for DTS. For ACPI, it is the responsible of the firmware.

-Loc

#15 lore raw

cover ata: Add APM X-Gene SoC 6.0Gbps SATA PHY support

In reply to Loc Ho
Quoted 11 lines · Loc Ho

ata: Add APM X-Gene SoC 6.0Gbps SATA PHY support

This patch adds support for APM X-Gene SoC 6.0Gbps SATA PHY. This is the physical layer interface for the corresponding SATA host controller. This driver uses the new PHY generic framework posted by Kishon Vijay Abrahm.

Please remove the "Reviewed-by" tags and only add them back after you get a reply with the respective comment. Tags like "Reviewed-by", "Acked-by" or "Tested-by" are meant to signify that the reviewer or tester has looked at them and is happy with the results, which is not yet the case here.

Arnd