[PATCH V2] PCI: Add ACS quirk for Ampere root ports

2018-02-20 Thread Feng Kan
on ACS but disable all the peer-to-peer features. Signed-off-by: Feng Kan --- V2 - Correct patch summary as per Bjorn's comment This is a rebranding of APM to Ampere, it is a change of vendor id and device id, all functionality stays the same as before. drivers/pci/quirks.c

[PATCH] pci: quirk: adding Ampere vendor id to ACS quirk list

2018-01-25 Thread Feng Kan
Adding Ampere Computing vendor id to the ACS quirk list. Signed-off-by: Feng Kan --- Tanmay is no longer with us. After the email system is rebranded to the new company. We will clean up the remaining legacy items. drivers/pci/quirks.c| 9 + include/linux/pci_ids.h | 1 + 2 files

Re: [PATCH v3 0/5] ACPI: DMA ranges management

2017-11-30 Thread Feng Kan
On Wed, Nov 29, 2017 at 11:28 PM, Feng Kan wrote: > On Thu, Aug 3, 2017 at 5:32 AM, Lorenzo Pieralisi > wrote: >> This patch series is v3 of a previous posting: >> >> v2->v3: >> - Fixed DMA masks computation >> - Fixed size computation ov

Re: [PATCH v3 0/5] ACPI: DMA ranges management

2017-11-29 Thread Feng Kan
in order to detect DMA ranges for devices and > update their data structures to make them work with their related DMA > addressing restrictions. > > Cc: Will Deacon > Cc: Hanjun Guo > Cc: Feng Kan > Cc: Jon Masters > Cc: Robert Moore > Cc: Robin Murphy > Cc: Zhang

[PATCH] iommu: enable bypass transaction caching for ARM SMMU 500

2017-10-11 Thread Feng Kan
-off-by: Feng Kan --- drivers/iommu/arm-smmu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 3bdb799..b5676a8 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -59,6 +59,7 @@ #define

Re: [PATCH v3 0/5] ACPI: DMA ranges management

2017-08-14 Thread Feng Kan
in order to detect DMA ranges for devices and > update their data structures to make them work with their related DMA > addressing restrictions. > > Cc: Will Deacon > Cc: Hanjun Guo > Cc: Feng Kan > Cc: Jon Masters > Cc: Robert Moore > Cc: Robin Murphy > Cc: Zhang

Re: [PATCH V4] pci: quirk: Apply APM ACS quirk to XGene devices

2017-08-02 Thread Feng Kan
+ Adding Bjorn Sorry for top post, we are looking to pull this into the latest REL7.4 release. Would like the maintainer to take a look. Thanks On Tue, Aug 1, 2017 at 4:15 PM, Alex Williamson wrote: > On Tue, 1 Aug 2017 16:08:13 -0700 > Feng Kan wrote: > >> The APM X-Gene PCIe

[PATCH V4] pci: quirk: Apply APM ACS quirk to XGene devices

2017-08-01 Thread Feng Kan
peer features. Signed-off-by: Feng Kan --- V4 Change: Remove TB & TD flags from ACS mask V3 Change: Add comment regarding unique port id in stream ID V2 Change: Move XGene ACS quirk to unique XGene function drivers/pci/quirks.c | 14 ++ 1 file changed

Re: [PATCH V3] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-31 Thread Feng Kan
On Mon, Jul 31, 2017 at 2:55 PM, Alex Williamson wrote: > On Mon, 31 Jul 2017 10:56:53 -0700 > Feng Kan wrote: > >> On Fri, Jul 28, 2017 at 4:00 PM, Alex Williamson >> wrote: >> > On Fri, 28 Jul 2017 11:50:43 -0700 >> > Feng Kan wrote: >> > >

Re: [PATCH v2 0/5] ACPI: DMA ranges management

2017-07-31 Thread Feng Kan
atch series enables _DMA parsing in ACPI core code and > use it in ACPI IORT code in order to detect DMA ranges for devices and > update their data structures to make them work with their related DMA > addressing restrictions. > > Cc: Will Deacon > Cc: Hanjun Guo > Cc: Feng

Re: [PATCH V3] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-31 Thread Feng Kan
On Fri, Jul 28, 2017 at 4:00 PM, Alex Williamson wrote: > On Fri, 28 Jul 2017 11:50:43 -0700 > Feng Kan wrote: > >> The APM X-Gene PCIe root port does not support ACS at this point. >> However, the hw provides isolation and source validation through >> the SMMU. The

[PATCH V3] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-28 Thread Feng Kan
peer features. Signed-off-by: Feng Kan --- V3 Change: Add comment regarding unique port id in stream ID V2 Change: Move XGene ACS quirk to unique XGene function drivers/pci/quirks.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/pci/quirks.c b

Re: [PATCH V2] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-24 Thread Feng Kan
On Sun, Jul 23, 2017 at 7:06 PM, Alex Williamson wrote: > On Fri, 21 Jul 2017 13:20:18 -0700 > Feng Kan wrote: > >> On Thu, Jul 20, 2017 at 3:22 PM, Alex Williamson >> wrote: >> > On Wed, 19 Jul 2017 17:46:51 -0700 >> > Feng Kan wrote: >> > >

Re: [PATCH V2] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-21 Thread Feng Kan
On Thu, Jul 20, 2017 at 3:22 PM, Alex Williamson wrote: > On Wed, 19 Jul 2017 17:46:51 -0700 > Feng Kan wrote: > >> The APM X-Gene PCIe root port does not support ACS at this point. >> However, the hw provides isolation and source validation through >> the SMMU. Turn

[PATCH V2] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-19 Thread Feng Kan
The APM X-Gene PCIe root port does not support ACS at this point. However, the hw provides isolation and source validation through the SMMU. Turn on ACS but disable all the peer to peer features. Signed-off-by: Feng Kan --- drivers/pci/quirks.c | 15 +++ 1 file changed, 15

Re: [PATCH] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-18 Thread Feng Kan
> > I don't know what that means, does the hardware support an equivalent > to source validation or not? Yes, source validation is done through the smmu. What's the response of the root port if > the downstream device issues a transaction spoofing devices not within > the bus number ranges of t

Re: [PATCH] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-18 Thread Feng Kan
On Mon, Jul 17, 2017 at 7:23 PM, Alex Williamson wrote: > On Mon, 17 Jul 2017 17:45:52 -0700 > Feng Kan wrote: > >> The APM X-Gene PCIe root port does not support ACS at this point. >> Since the root does not allow peer to peer transactions, mask out >> ACS capability

[PATCH] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-17 Thread Feng Kan
The APM X-Gene PCIe root port does not support ACS at this point. Since the root does not allow peer to peer transactions, mask out ACS capability flag bits. Signed-off-by: Feng Kan --- drivers/pci/quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci

[PATCH V5 1/2] arm64: Change memcpy in kernel to use the copy template file

2015-09-23 Thread Feng Kan
This converts the memcpy.S to use the copy template file. The copy template file was based originally on the memcpy.S Signed-off-by: Feng Kan Signed-off-by: Balamurugan Shanmugam --- arch/arm64/lib/copy_template.S | 195 + arch/arm64/lib/memcpy.S

[PATCH V5 2/2] arm64: copy_to-from-in_user optimization using copy template

2015-09-23 Thread Feng Kan
This patch optimize copy_to-from-in_user for arm 64bit architecture. The copy template is used as template file for all the copy*.S files. Minor change was made to it to accommodate the copy to/from/in user files. Signed-off-by: Feng Kan Signed-off-by: Balamurugan Shanmugam --- arch/arm64/lib

[PATCH V5 0/2] copy to/in/from user optimization

2015-09-23 Thread Feng Kan
improvement (~30%) on the receive side. V5 Changes: 1. Switch patch ordering. 2. Simplify assembly code and use fixed large tags in marco 3. Fixed indentation issue. Feng Kan (2): arm64: Change memcpy in kernel to use the copy template file arm64: copy_to-from-in_user optimization using

[PATCH V4 1/2] arm64: copy_to-from-in_user optimization using copy template

2015-08-21 Thread Feng Kan
This patch optimize copy_to-from-in_user for arm 64bit architecture. The copy template is using the memcpy.S as a base. This allows the sharing of the copy template with all of the copy*.S files. Signed-off-by: Feng Kan Signed-off-by: Balamurugan Shanmugam --- arch/arm64/lib/copy_from_user.S

[PATCH V4 0/2] arm64: copy to/in/from user optimization

2015-08-21 Thread Feng Kan
improvement (~30%) on the receive side. V4 Change: - base the copy template file on the existing memcpy.S - convert copy*.s to user copy template - conver the memcpy to use the copy template. Feng Kan (2): arm64: copy_to-from-in_user optimization using copy template arm64

[PATCH V4 2/2] arm64: Change memcpy in kernel to use the copy template file

2015-08-21 Thread Feng Kan
This converts the memcpy.S to use the copy template file. The copy template file was based originally on the memcpy.S. Minor changes was made to it to accommodate the copy to/from/in user files. Signed-off-by: Feng Kan --- arch/arm64/lib/memcpy.S | 179

Re: [PATCH v4 2/3] irqchip: GIC: Add support for irq_{get,set}_irqchip_state

2015-05-19 Thread Feng Kan
On Tue, May 19, 2015 at 3:01 AM, Marc Zyngier wrote: > On Tue, 19 May 2015 09:40:21 +0100 > Linus Walleij wrote: > >> On Thu, May 14, 2015 at 10:14 PM, Feng Kan wrote: >> > On Thu, May 14, 2015 at 3:32 AM, Linus Walleij >> > wrote: >> >> &g

[PATCH V4] arm64: dts: add APM Merlin Board device tree

2015-05-18 Thread Feng Kan
This patch adds the support for APM Merlin board. The Merlin board is based on the APM X-Gene Shadowcat SoC. This DTS enables PMU, Ethernet, SATA and Serial. Signed-off-by: Feng Kan --- V4 Change: - Add ethernet V3 Change: - Add PCIe - Add merline to makefile in dts

Re: [PATCH v4 2/3] irqchip: GIC: Add support for irq_{get,set}_irqchip_state

2015-05-14 Thread Feng Kan
On Thu, May 14, 2015 at 3:32 AM, Linus Walleij wrote: > On Wed, May 13, 2015 at 5:44 PM, Feng Kan wrote: > >> We are using the gpio driver with gpio_key for power button. The gpio >> status can only be retrieved from the GIC register when the gpio is >> acting as a interr

Re: [PATCH v4 2/3] irqchip: GIC: Add support for irq_{get,set}_irqchip_state

2015-05-13 Thread Feng Kan
On Wed, May 13, 2015 at 4:58 AM, Linus Walleij wrote: > On Wed, May 13, 2015 at 4:25 AM, Feng Kan wrote: > >> Marc: >> >> Sorry for top posting. It seems with GIC-400, the get_irqstate is not a >> reliable >> way of accessing the GPIO status. In our case, t

Re: [PATCH v4 2/3] irqchip: GIC: Add support for irq_{get,set}_irqchip_state

2015-05-12 Thread Feng Kan
Marc: Sorry for top posting. It seems with GIC-400, the get_irqstate is not a reliable way of accessing the GPIO status. In our case, the gpio interrupt status can only be read correctly with the SPISR register. So it seems we have to go back to the old way of mapping the SPISR portion of the GIC

[PATCH V3] arm64: optimized copy_to_user and copy_from_user assembly code

2015-04-28 Thread Feng Kan
3B 16.2Gb/s Original64B 34-50.7Mb/s 1500B 4.7Gb/s 3B 14.5Gb/s Signed-off-by: Feng Kan --- arch/arm64/lib/copy_from_user.S | 92 +++-- arch/arm64/lib

[PATCH RESEND V4 1/4] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-04-24 Thread Feng Kan
Add SLIMpro I2C device driver on APM X-Gene platform. This I2C device driver use the SLIMpro Mailbox driver to tunnel message to the SLIMpro coprocessor to do the work of accessing I2C components. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- drivers/i2c/busses/Kconfig | 9

[PATCH RESEND V4 3/4] Documentation: i2c: Add APM X-Gene platform SLIMpro I2C driver documentation

2015-04-24 Thread Feng Kan
Add APM X-Gene platform SLIMpro I2C driver documentation. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- .../devicetree/bindings/i2c/i2c-xgene-slimpro.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-xgene

[PATCH RESEND V4 0/4] i2c: busses: xgene: I2C proxy driver for X-Gene

2015-04-24 Thread Feng Kan
This is a proxy I2C driver for APM X-Gene SoC. It uses the mailbox driver to tunnel i2c transactions via the SLIMpro processor. V4 Change: - Remove PRP0001 and use a real ACPI id V3 Change: - Add ACPI support - Fix previous comments. Feng Kan (4): i2c: busses: add

[PATCH RESEND V4 2/4] i2c: busses: xgene: add acpi support for i2c xgene SLIMpro driver

2015-04-24 Thread Feng Kan
This adds support for ACPI for the APM X-Gene I2C SLIMpro proxy driver. Signed-off-by: Feng Kan --- drivers/i2c/busses/i2c-xgene-slimpro.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c index

[PATCH RESEND V4 4/4] arm64: dts: add proxy I2C device driver on APM X-Gene platform

2015-04-24 Thread Feng Kan
Add proxy I2C device driver on APM X-Gene platform. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index 70c14fa

Re: [PATCH V4 1/4] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-04-24 Thread Feng Kan
Sorry, please disregard this series. Made a mistake here, will fix and resend. On Fri, Apr 24, 2015 at 10:11 AM, Feng Kan wrote: > Add SLIMpro I2C device driver on APM X-Gene platform. This I2C > device driver use the SLIMpro Mailbox driver to tunnel message to > the SLIMpro coproces

[PATCH V4 2/4] i2c: busses: xgene: add acpi support for i2c xgene SLIMpro driver

2015-04-24 Thread Feng Kan
This adds support for ACPI for the APM X-Gene I2C SLIMpro proxy driver. Signed-off-by: Feng Kan --- drivers/i2c/busses/i2c-xgene-slimpro.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene

[PATCH V4 3/4] Documentation: i2c: Add APM X-Gene platform SLIMpro I2C driver documentation

2015-04-24 Thread Feng Kan
Add APM X-Gene platform SLIMpro I2C driver documentation. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- .../devicetree/bindings/i2c/i2c-xgene-slimpro.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-xgene

[PATCH V4 4/4] arm64: dts: add proxy I2C device driver on APM X-Gene platform

2015-04-24 Thread Feng Kan
Add proxy I2C device driver on APM X-Gene platform. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index a2b9657

[PATCH V4 1/4] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-04-24 Thread Feng Kan
Add SLIMpro I2C device driver on APM X-Gene platform. This I2C device driver use the SLIMpro Mailbox driver to tunnel message to the SLIMpro coprocessor to do the work of accessing I2C components. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- drivers/i2c/busses/Kconfig | 9

[PATCH V4 0/4] i2c: busses: xgene: I2C proxy driver for X-Gene

2015-04-24 Thread Feng Kan
This is a proxy I2C driver for APM X-Gene SoC. It uses the mailbox driver to tunnel i2c transactions via the SLIMpro processor. V4 Change: - Remove PRP0001 and use a real ACPI id V3 Change: - Add ACPI support - Fix previous comments. Feng Kan (4): i2c: busses: add

[PATCH V3 2/4] i2c: busses: xgene: add acpi support for i2c xgene SLIMpro driver

2015-04-23 Thread Feng Kan
This adds support for ACPI for the APM X-Gene I2C SLIMpro proxy driver. Signed-off-by: Feng Kan --- drivers/i2c/busses/i2c-xgene-slimpro.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene

[PATCH V3 4/4] arm64: dts: add proxy I2C device driver on APM X-Gene platform

2015-04-23 Thread Feng Kan
Add proxy I2C device driver on APM X-Gene platform. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index a2b9657

[PATCH V3 0/4] i2c: busses: xgene: I2C proxy driver for X-Gene

2015-04-23 Thread Feng Kan
This is a proxy I2C driver for APM X-Gene SoC. It uses the mailbox driver to tunnel i2c transactions via the SLIMpro processor. V3 Change: - Add ACPI support - Fix previous comments. Feng Kan (4): i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform i2c: busses

[PATCH V3 3/4] Documentation: i2c: Add APM X-Gene platform SLIMpro I2C driver documentation

2015-04-23 Thread Feng Kan
Add APM X-Gene platform SLIMpro I2C driver documentation. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- .../devicetree/bindings/i2c/i2c-xgene-slimpro.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-xgene

[PATCH V3 1/4] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-04-23 Thread Feng Kan
Add SLIMpro I2C device driver on APM X-Gene platform. This I2C device driver use the SLIMpro Mailbox driver to tunnel message to the SLIMpro coprocessor to do the work of accessing I2C components. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- drivers/i2c/busses/Kconfig | 9

[PATCH V2 1/4] mailbox: add support for APM X-Gene platform mailbox driver

2015-04-22 Thread Feng Kan
Add support for APM X-Gene platform mailbox driver. Signed-off-by: Feng Kan --- drivers/mailbox/Kconfig | 10 ++ drivers/mailbox/Makefile| 2 + drivers/mailbox/mailbox-xgene-slimpro.c | 261 3 files changed, 273 insertions

[PATCH V2 2/4] mailbox: xgene: add ACPI support for X-Gene mailbox driver

2015-04-22 Thread Feng Kan
Add ACPI support for APM X-Gene mailbox driver. Signed-off-by: Feng Kan --- drivers/mailbox/mailbox-xgene-slimpro.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mailbox/mailbox-xgene-slimpro.c b/drivers/mailbox/mailbox-xgene-slimpro.c index 49370e5..890f95b 100644

[PATCH V2 0/4] APM X-Gene Mailbox driver

2015-04-22 Thread Feng Kan
This adds the mailbox driver for the APM X-Gene SoC V2 change - Add ACPI support - use defines for reg offset Feng Kan (4): mailbox: add support for APM X-Gene platform mailbox driver mailbox: xgene: add ACPI support for X-Gene mailbox driver Documentation: mailbox: Add APM

[PATCH V2 3/4] Documentation: mailbox: Add APM X-Gene SLIMpro mailbox dts documentation

2015-04-22 Thread Feng Kan
This adds the APM X-Gene SLIMpro mailbox device tree node documentation. Signed-off-by: Feng Kan --- .../bindings/mailbox/xgene-slimpro-mailbox.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/xgene-slimpro

[PATCH V2 4/4] arm64: dts: mailbox device tree node for APM X-Gene platform.

2015-04-22 Thread Feng Kan
Mailbox device tree node for APM X-Gene platform. Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index c8d3e0e..92e7b6b 100644

Re: [PATCH 1/3] mailbox: add support for APM X-Gene platform mailbox driver

2015-04-21 Thread Feng Kan
On Tue, Apr 21, 2015 at 12:42 AM, Jassi Brar wrote: > On Wed, Feb 18, 2015 at 8:40 AM, Feng Kan wrote: > >> +#define MBOX_CON_NAME "slimpro-mbox" >> +#define MBOX_REG_SET_OFFSET0x1000 >> +#define MBOX_CNT 8

Re: [PATCH V2 RESEND] mailbox: add ACPI support for mailbox framework

2015-04-20 Thread Feng Kan
On Wed, Apr 8, 2015 at 4:58 PM, Feng Kan wrote: > This will add support for ACPI parsing of the mboxes attribute > when booting with ACPI table. The client will have a attribute > mimic the dts call "mboxes". In the ACPI case, the client will > mark "mboxes" with t

Re: [PATCH v3 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-20 Thread Feng Kan
On Fri, Apr 17, 2015 at 5:45 AM, Marc Zyngier wrote: > On 17/04/15 13:37, Duc Dang wrote: >> On Fri, Apr 17, 2015 at 3:17 AM, Marc Zyngier wrote: >>> On 17/04/15 11:00, Duc Dang wrote: On Wed, Apr 15, 2015 at 1:16 AM, Marc Zyngier wrote: > On Tue, 14 Apr 2015 19:20:19 +0100 > Duc Da

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-20 Thread Feng Kan
On Sun, Apr 19, 2015 at 12:55 PM, Arnd Bergmann wrote: > On Sunday 19 April 2015 11:40:09 Duc Dang wrote: >> On Fri, Apr 17, 2015 at 7:10 AM, Arnd Bergmann wrote: >> > On Friday 17 April 2015 02:50:07 Duc Dang wrote: >> >> + >> >> + /* >> >> +* MSIINTn (n is 0..F) indicates if there

Re: [PATCH v3 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-10 Thread Feng Kan
Hi Marc: Is there any plans to support ACPI for GICv2m MSI? Both this driver and the GICv2m seems to support OF model of discovery for msi controller. X-Gene1 uses this driver and X-Gene2 uses GICv2m, there needs to be a way to associate msi controller with the PCIe bus. I haven't found a standard

[PATCH V2 RESEND] mailbox: add ACPI support for mailbox framework

2015-04-08 Thread Feng Kan
Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package (2) {"mboxes", Package(){"^^MBOXREF, index"}} } }) Signed-off-by: Feng Kan --- V2 CHANGE: - cha

Re: [PATCH V2] mailbox: add ACPI support for mailbox framework

2015-04-07 Thread Feng Kan
Please disregard this, I messed up on the indexing. Will resubmit after fixing. On Tue, Apr 7, 2015 at 4:34 PM, Feng Kan wrote: > This will add support for ACPI parsing of the mboxes attribute > when booting with ACPI table. The client will have a attribute > mimic the dts call "m

[PATCH V2] mailbox: add ACPI support for mailbox framework

2015-04-07 Thread Feng Kan
Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package (2) {"mboxes", "^^MBOXREF"}, } }) Signed-off-by: Feng Kan --- V2 CHANGE: - change to us

Re: [PATCH] mailbox: add ACPI support for mailbox framework

2015-04-07 Thread Feng Kan
On Tue, Apr 7, 2015 at 4:37 AM, Rafael J. Wysocki wrote: > On Tuesday, April 07, 2015 11:41:43 AM Mika Westerberg wrote: >> On Thu, Apr 02, 2015 at 11:04:24AM -0700, Feng Kan wrote: >> > On Thu, Apr 2, 2015 at 2:07 AM, Mika Westerberg >> > wrote: >> > > O

Re: [PATCH] mailbox: add ACPI support for mailbox framework

2015-04-02 Thread Feng Kan
On Thu, Apr 2, 2015 at 2:07 AM, Mika Westerberg wrote: > On Wed, Apr 01, 2015 at 10:01:45AM -0700, Feng Kan wrote: >> On Wed, Apr 1, 2015 at 12:45 AM, Mika Westerberg >> wrote: >> > On Tue, Mar 31, 2015 at 02:18:00PM -0700, Feng Kan wrote: >> >> This will

[PATCH V3] arm64: dts: add APM Merlin Board device tree

2015-04-01 Thread Feng Kan
This patch adds the support for APM Merlin board. The Merlin board is based on the APM X-Gene Shadowcat SoC. This DTS enables PMU, SATA and Serial. Signed-off-by: Feng Kan --- V3 Change: - Add PCIe - Add merline to makefile in dts/apm directory V2 Change: - Add dma

Re: [PATCH] mailbox: add ACPI support for mailbox framework

2015-04-01 Thread Feng Kan
On Wed, Apr 1, 2015 at 12:45 AM, Mika Westerberg wrote: > On Tue, Mar 31, 2015 at 02:18:00PM -0700, Feng Kan wrote: >> This will add support for ACPI parsing of the mboxes attribute >> when booting with ACPI table. The client will have a attribute >> mimic the dts call "

[PATCH] mailbox: add ACPI support for mailbox framework

2015-03-31 Thread Feng Kan
Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package (2) {"mboxes", "ACPIHID"}, } }) Signed-off-by: Feng Kan --- drivers/mailbox/mailbox.c | 121 ++

Re: [PATCH V2 1/3] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-03-27 Thread Feng Kan
On Mon, Mar 23, 2015 at 11:31 AM, Wolfram Sang wrote: > On Wed, Feb 18, 2015 at 11:34:01AM -0800, Feng Kan wrote: >> Add SLIMpro I2C device driver on APM X-Gene platform. This I2C >> device driver use the SLIMpro Mailbox driver to tunnel message to >> the SLIMpro coproces

[PATCH RESEND] sata: xgene: add ACPI support for APM X-Gene SATA ports

2015-03-18 Thread Feng Kan
This adds ACPI support for the APM X-Gene SATA ports. When the system boots using ACPI table, the SATA ports are able to configure using the values supplied by the ACPI table rather than the DTS. Signed-off-by: Feng Kan Reviewed-by: Hanjun Guo --- drivers/ata/ahci_xgene.c | 10 ++ 1

Re: [PATCH] sata: xgene: add ACPI support for APM X-Gene SATA ports

2015-03-17 Thread Feng Kan
On Mon, Jan 12, 2015 at 10:29 PM, Hanjun Guo wrote: > On 2015年01月13日 05:07, Suman Tripathi wrote: >> >> Hi, >> >> Tested-by: Suman Tripathi >> >> On Thu, Jan 8, 2015 at 11:35 PM, Hanjun Guo > <mailto:hanjun@linaro.org>> wrote: >> >

[PATCH V2] arm64: dts: add APM Merlin Board device tree

2015-03-10 Thread Feng Kan
This patch adds the support for APM Merlin board. The Merlin board is based on the APM X-Gene Shadowcat SoC. This DTS enables PMU, SATA and Serial. Signed-off-by: Feng Kan --- V2 Change: - Add dma-range definition V1 Change: - add memreserve for spintable. - remove

[PATCH V1] arm64: dts: add APM Merlin Board device tree

2015-03-10 Thread Feng Kan
This patch adds the support for APM Merlin board. The Merlin board is based on the APM X-Gene Shadowcat SoC. This DTS enables PMU, SATA and Serial. Signed-off-by: Feng Kan --- V1 Change: - add memreserve for spintable. - remove clkfreq attribute - update spin location

Re: [PATCH] arm64: dts: add APM Merlin Board device tree

2015-03-10 Thread Feng Kan
On Tue, Mar 10, 2015 at 10:20 AM, Mark Rutland wrote: > Hi, > > On Tue, Mar 10, 2015 at 05:10:54PM +0000, Feng Kan wrote: >> This patch adds the support for APM Merlin board. The Merlin board >> is based on the APM X-Gene Shadowcat SoC. This DTS enables PMU, >> SATA a

[PATCH] arm64: dts: add APM Merlin Board device tree

2015-03-10 Thread Feng Kan
This patch adds the support for APM Merlin board. The Merlin board is based on the APM X-Gene Shadowcat SoC. This DTS enables PMU, SATA and Serial. Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm/apm-merlin.dts | 39 arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 154

[PATCH] rng: xgene-rng: add ACPI support for APM X-Gene RNG unit

2015-03-06 Thread Feng Kan
This adds ACPI support for APM X-Gene RNG unit. Signed-off-by: Feng Kan --- drivers/char/hw_random/xgene-rng.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/char/hw_random/xgene-rng.c b/drivers/char/hw_random/xgene-rng.c index 23caa05..c37cf75 100644 --- a/drivers

Re: [PATCH] PCI: xgene: fix breakage from generic config usage

2015-03-05 Thread Feng Kan
Acked-by: Feng Kan On Wed, Mar 4, 2015 at 2:24 PM, Mark Salter wrote: > Commit 350f8be5bb402 ("PCI: xgene: Convert to use generic config > accessors") breaks PCI on the X-Gene platform. It creates two > problems with the xgene_pcie_map_bus() function. First, it returns

Re: [PATCH] pci: host: xgene: fix incorrectly returned address by map_bus

2015-03-05 Thread Feng Kan
Please take Mark's patch if you think it is better. On Thu, Mar 5, 2015 at 8:38 AM, Bjorn Helgaas wrote: > [+cc Mark] > > On Thu, Feb 26, 2015 at 06:21:51PM -0600, Bjorn Helgaas wrote: >> On Tue, Feb 17, 2015 at 03:14:00PM -0800, Feng Kan wrote: >> > The gener

Re: [PATCH] net: eth: xgene: fix booting with devicetree

2015-03-04 Thread Feng Kan
eset(struct xgene_enet_pdata > *pdata) > if (!xgene_ring_mgr_init(pdata)) > return -ENODEV; > > - if (!efi_enabled(EFI_BOOT)) { > + if (pdata->clk) { > clk_prepare_enable(pdata->clk); > clk_disable_unprep

[PATCH V2 3/3] arm64: dts: add proxy I2C device driver on APM X-Gene platform

2015-02-18 Thread Feng Kan
Add proxy I2C device driver on APM X-Gene platform. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index 27d6c3d

[PATCH V2 2/3] Documentation: i2c: Add APM X-Gene platform SLIMpro I2C driver documentation

2015-02-18 Thread Feng Kan
Add APM X-Gene platform SLIMpro I2C driver documentation. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- .../devicetree/bindings/i2c/i2c-xgene-slimpro.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-xgene

[PATCH V2 1/3] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-02-18 Thread Feng Kan
Add SLIMpro I2C device driver on APM X-Gene platform. This I2C device driver use the SLIMpro Mailbox driver to tunnel message to the SLIMpro coprocessor to do the work of accessing I2C components. Signed-off-by: Feng Kan Signed-off-by: Hieu Le --- drivers/i2c/busses/Kconfig | 9

[PATCH 2/3] Documentation: mailbox: Add APM X-Gene SLIMpro mailbox dts documentation

2015-02-17 Thread Feng Kan
This adds the APM X-Gene SLIMpro mailbox device tree node documentation. Signed-off-by: Feng Kan --- .../bindings/mailbox/xgene-slimpro-mailbox.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/xgene-slimpro

[PATCH 3/3] arm64: dts: mailbox device tree node for APM X-Gene platform.

2015-02-17 Thread Feng Kan
Mailbox device tree node for APM X-Gene platform. Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index f1ad9c2..27d6c3d 100644

[PATCH 1/3] mailbox: add support for APM X-Gene platform mailbox driver

2015-02-17 Thread Feng Kan
Add support for APM X-Gene platform mailbox driver. Signed-off-by: Feng Kan --- drivers/mailbox/Kconfig | 10 ++ drivers/mailbox/Makefile| 2 + drivers/mailbox/mailbox-xgene-slimpro.c | 289 3 files changed, 301 insertions

[PATCH 3/3] arm64: dts: mailbox device tree node for APM X-Gene platform.

2015-02-17 Thread Feng Kan
Mailbox device tree node for APM X-Gene platform. Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index f1ad9c2..27d6c3d 100644

[PATCH 1/3] mailbox: add support for APM X-Gene platform mailbox driver

2015-02-17 Thread Feng Kan
Add support for APM X-Gene platform mailbox driver. Signed-off-by: Feng Kan --- drivers/mailbox/Kconfig | 10 ++ drivers/mailbox/Makefile| 2 + drivers/mailbox/mailbox-xgene-slimpro.c | 289 3 files changed, 301 insertions

[PATCH 2/3] Documentation: mailbox: Add APM X-Gene SLIMpro mailbox dts documentation

2015-02-17 Thread Feng Kan
This adds the APM X-Gene SLIMpro mailbox device tree node documentation. Signed-off-by: Feng Kan --- .../bindings/mailbox/xgene-slimpro-mailbox.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/xgene-slimpro

[PATCH] pci: host: xgene: fix incorrectly returned address by map_bus

2015-02-17 Thread Feng Kan
The generic accessor functions for pci-xgene uses map_bus call that returns the base address but did not add the additional offset. Signed-off-by: Feng Kan --- drivers/pci/host/pci-xgene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pci-xgene.c b

Re: [PATCH 4/6] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-02-02 Thread Feng Kan
On Thu, Jan 29, 2015 at 10:11 PM, Wolfram Sang wrote: > >> > ctx->dev is probably the wrong device here. The i2c controller is not >> > DMA capable itself, you need to have a pointer to the device that actually >> > performs the DMA here. >> >> Arnd, I do agree this may not be the best identificat

Re: [PATCH 4/6] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-01-29 Thread Feng Kan
On Tue, Nov 11, 2014 at 1:51 PM, Arnd Bergmann wrote: > On Tuesday 07 October 2014 17:06:47 Feng Kan wrote: >> diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig >> index 2e45ae3..a03042c 100644 >> --- a/drivers/i2c/busses/Kconfig >> +++ b

Re: [PATCH 4/6] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-01-09 Thread Feng Kan
On Tue, Nov 11, 2014 at 1:51 PM, Arnd Bergmann wrote: > On Tuesday 07 October 2014 17:06:47 Feng Kan wrote: >> diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig >> index 2e45ae3..a03042c 100644 >> --- a/drivers/i2c/busses/Kconfig >> +++ b

Re: [PATCH 4/6] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-01-09 Thread Feng Kan
On Tue, Nov 11, 2014 at 12:32 PM, Wolfram Sang wrote: > On Tue, Oct 07, 2014 at 05:06:47PM -0700, Feng Kan wrote: >> Add SLIMpro I2C device driver on APM X-Gene platform. This I2C >> device driver use the SLIMpro Mailbox driver to tunnel message to >> the SLIMpro coproces

Re: [PATCH] sata: xgene: add ACPI support for APM X-Gene SATA ports

2015-01-08 Thread Feng Kan
On Wed, Jan 7, 2015 at 11:50 PM, Hanjun Guo wrote: > Hi Feng Kan, > > I have some comments below. > > > On 2015年01月08日 01:32, Feng Kan wrote: >> >> Just want to ping this again. >> >> Happy new year >> >> On Thu, Dec 11, 2014 at 2:31 PM, Feng

[PATCH V3 3/7] arm64: dts: Add X-Gene reboot driver dts node

2015-01-07 Thread Feng Kan
Add X-Gene platform reboot driver dts node. Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index 4b2ec83

[PATCH V3 2/7] Documentation: arm64: add SCU dts binding documentation to linux kernel

2015-01-07 Thread Feng Kan
This add documentation for the SCU system clock unit device tree binding to the kernel. Signed-off-by: Feng Kan --- Documentation/devicetree/bindings/arm/apm/scu.txt | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings

[PATCH V3 0/7] APM X-Gene SoC platform device tree cleanup

2015-01-07 Thread Feng Kan
node - change dwgpio node name to gpio V2 Changes: - add dma-coherent attribute for usb node. Feng Kan (7): arm64: dts: Add APM X-Gene USB DTS node Documentation: arm64: add SCU dts binding documentation to linux kernel arm64: dts: Add X-Gene reboot driver dts node arm64

[PATCH V3 4/7] arm64: dts: Add Designware GPIO dts binding to APM X-Gene platform

2015-01-07 Thread Feng Kan
Add Designware GPIO dts binding to APM X-Gene platform Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi

[PATCH V3 6/7] Documentation: arm: pmu: Add Potenza PMU binding

2015-01-07 Thread Feng Kan
This patch documents the compatible string for APM X-Gene Potenza CPU's PMU. Signed-off-by: Vinayak Kale Signed-off-by: Feng Kan --- Documentation/devicetree/bindings/arm/pmu.txt |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/binding

[PATCH V3 1/7] arm64: dts: Add APM X-Gene USB DTS node

2015-01-07 Thread Feng Kan
This parch adds the device tree nodes for APM X-Gnene USB host controller. Since X-Gene SOC supports maximum 2 USB ports, 2 dts node are added. Signed-off-by: Bao Truong Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 19 +++ 1 files changed, 19

[PATCH V3 7/7] arm64: dts: Add PMU node for APM X-Gene Storm SOC

2015-01-07 Thread Feng Kan
This patch adds the PMU device tree node for APM X-Gene Storm SOC. Signed-off-by: Vinayak Kale Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm/apm-storm.dtsi |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64

[PATCH V3 5/7] arm64: dts: Add APM X-Gene SoC GFC GPIO controller DTS entries

2015-01-07 Thread Feng Kan
Add the flash controller muxed gpio dts node for APM X-Gene SoC platform. Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm/apm-storm.dtsi |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm

Re: [PATCH] sata: xgene: add ACPI support for APM X-Gene SATA ports

2015-01-07 Thread Feng Kan
Just want to ping this again. Happy new year On Thu, Dec 11, 2014 at 2:31 PM, Feng Kan wrote: > This adds ACPI support for the APM X-Gene SATA ports. When the system > boots using ACPI table, the SATA ports are able to configure using the > values supplied by the ACPI table rather tha

[PATCH V3] net: eth: xgene: change APM X-Gene SoC platform ethernet to support ACPI

2015-01-06 Thread Feng Kan
This adds support for APM X-Gene ethernet driver to use ACPI table to derive ethernet driver parameter. Signed-off-by: Feng Kan --- V3: - Fix compile error caught by allmodconfig V2: - remove NO_MAC define drivers/net/ethernet/apm/xgene/xgene_enet_hw.c | 94

  1   2   3   >