[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 <f...@apm.com> --- 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/qu

[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| 9

[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 <f...@apm.com> --- 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

[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 <f...@apm.com> wrote: > On Thu, Aug 3, 2017 at 5:32 AM, Lorenzo Pieralisi > <lorenzo.pieral...@arm.com> wrote: >> This patch series is v3 of a previous posting: >> >> v2->v3: >> - Fixed DMA masks co

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
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 <will.dea...@arm.com> > Cc: Hanjun Guo <hanjun@linaro.org> > Cc: Fen

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

2017-11-29 Thread Feng Kan
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 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 <f...@apm.com> --- 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 @@ #

[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
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 <will.dea...@arm.com> > Cc: Hanjun Guo <hanjun@linaro.org> > Cc: Fen

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

2017-08-14 Thread Feng Kan
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 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 <alex.william...@redhat.com> wrote: > On Tue, 1 Aug 2017 16:08:13 -0700 > Feng Kan <f...

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
to peer features. Signed-off-by: Feng Kan <f...@apm.com> --- 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

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

2017-08-01 Thread Feng Kan
to 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 <alex.william...@redhat.com> wrote: > On Mon, 31 Jul 2017 10:56:53 -0700 > Feng Kan <f...@apm.com> wrote: > >> On Fri, Jul 28, 2017 at 4:00 PM, Alex Williamson >> <alex.william...@redhat.com> wrote: >> &

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
to it. > > This small patch 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 <will

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

2017-07-31 Thread Feng Kan
l patch 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 <alex.william...@redhat.com> wrote: > On Fri, 28 Jul 2017 11:50:43 -0700 > Feng Kan <f...@apm.com> wrote: > >> The APM X-Gene PCIe root port does not support ACS at this point. >> However, the hw provides isolat

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 SM

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

2017-07-28 Thread Feng Kan
to peer features. Signed-off-by: Feng Kan <f...@apm.com> --- 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/drive

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

2017-07-28 Thread Feng Kan
to 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 <alex.william...@redhat.com> wrote: > On Fri, 21 Jul 2017 13:20:18 -0700 > Feng Kan <f...@apm.com> wrote: > >> On Thu, Jul 20, 2017 at 3:22 PM, Alex Williamson >> <alex.william...@redhat.com> wrote: >> &

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 <alex.william...@redhat.com> wrote: > On Wed, 19 Jul 2017 17:46:51 -0700 > Feng Kan <f...@apm.com> wrote: > >> The APM X-Gene PCIe root port does not support ACS at this point. >> However, the hw provides isolat

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.

[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 <f...@apm.com> --- drivers/pci/quirks.c | 15 +++ 1 file c

[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

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

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 <alex.william...@redhat.com> wrote: > On Mon, 17 Jul 2017 17:45:52 -0700 > Feng Kan <f...@apm.com> wrote: > >> The APM X-Gene PCIe root port does not support ACS at this point. >> Since the root does not allow pe

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 <f...@apm.com> --- drivers/pci/quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/qu

[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 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 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 <f...@apm.com> Signed-off-by: Balamurugan Sha

[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 <f...@apm.com> Signed-off-by: Balamurugan Shanmugam <bshanmu...@apm.com> --- arch/arm64/lib/copy_temp

[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

[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 f...@apm.com --- arch/arm64/lib/memcpy.S | 179

[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 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 f...@apm.com Signed-off-by: Balamurugan Shanmugam bshanmu...@apm.com

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

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 marc.zyng...@arm.com wrote: On Tue, 19 May 2015 09:40:21 +0100 Linus Walleij linus.wall...@linaro.org wrote: On Thu, May 14, 2015 at 10:14 PM, Feng Kan f...@apm.com wrote: On Thu, May 14, 2015 at 3:32 AM, Linus Walleij linus.wall...@linaro.org

[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

[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 f...@apm.com --- V4 Change: - Add ethernet V3 Change: - Add PCIe - Add merline

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-14 Thread Feng Kan
On Thu, May 14, 2015 at 3:32 AM, Linus Walleij linus.wall...@linaro.org wrote: On Wed, May 13, 2015 at 5:44 PM, Feng Kan f...@apm.com 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

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-13 Thread Feng Kan
On Wed, May 13, 2015 at 4:58 AM, Linus Walleij linus.wall...@linaro.org wrote: On Wed, May 13, 2015 at 4:25 AM, Feng Kan f...@apm.com 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, the gpio

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

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 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 f...@apm.com --- arch/arm64/lib/copy_from_user.S | 92 +++-- arch

[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

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 f...@apm.com 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 coprocessor

[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 f...@apm.com Signed-off-by: Hieu Le h...@apm.com --- drivers/i2c/busses

[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 f...@apm.com Signed-off-by: Hieu Le h...@apm.com --- .../devicetree/bindings/i2c/i2c-xgene-slimpro.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree

[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 f...@apm.com --- 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

[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 f...@apm.com Signed-off-by: Hieu Le h...@apm.com --- 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

[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 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 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 f...@apm.com Signed-off-by: Hieu Le h...@apm.com --- 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

[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 f...@apm.com Signed-off-by: Hieu Le h...@apm.com --- drivers/i2c/busses

[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 f...@apm.com Signed-off-by: Hieu Le h...@apm.com --- .../devicetree/bindings/i2c/i2c-xgene-slimpro.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree

[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 f...@apm.com --- 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

[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 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 f...@apm.com Signed-off-by: Hieu Le h...@apm.com --- 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

[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 f...@apm.com --- 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

[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 f...@apm.com Signed-off-by: Hieu Le h...@apm.com --- drivers/i2c/busses

[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 f...@apm.com Signed-off-by: Hieu Le h...@apm.com --- .../devicetree/bindings/i2c/i2c-xgene-slimpro.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree

[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

[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 f...@apm.com --- .../bindings/mailbox/xgene-slimpro-mailbox.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/xgene

[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 f...@apm.com --- 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

  1   2   3   4   5   6   >