[PATCH v2] ARM: mmci:Remove unnecessary #include header file in mmci.c

2016-03-13 Thread Wang Hongcheng
The header file asm/sizes.h is unnecessary. And it can also be compiled under X86 arch after the removal. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/mmc/host/mmci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c

[PATCH v2] ARM: mmci:Remove unnecessary #include header file in mmci.c

2016-03-13 Thread Wang Hongcheng
The header file asm/sizes.h is unnecessary. And it can also be compiled under X86 arch after the removal. Signed-off-by: Wang Hongcheng --- drivers/mmc/host/mmci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index fb26674..e5e5441 100644

[PATCH v2] video: AMBA CLCD: Remove unncessary include in amba-clcd.c

2016-03-13 Thread Wang Hongcheng
The header file asm/sizes.h is unnecessary. And it can also be compiled under X86 arch after the removal. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/video/fbdev/amba-clcd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers

[PATCH v2] video: AMBA CLCD: Remove unncessary include in amba-clcd.c

2016-03-13 Thread Wang Hongcheng
The header file asm/sizes.h is unnecessary. And it can also be compiled under X86 arch after the removal. Signed-off-by: Wang Hongcheng --- drivers/video/fbdev/amba-clcd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c

[PATCH V2] ACPI: APD: Add device HID for future AMD UART controller

2016-03-11 Thread Wang Hongcheng
Add device HID AMDI0020 to match the AMD ACPI Vendor ID (AMDI) as registered in http://www.uefi.org/acpi_id_list, and the UART controller on future AMD paltform will use the HID instead of AMD0020. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/acpi/acpi_apd.c | 1 +

[PATCH V2] ACPI: APD: Add device HID for future AMD UART controller

2016-03-11 Thread Wang Hongcheng
Add device HID AMDI0020 to match the AMD ACPI Vendor ID (AMDI) as registered in http://www.uefi.org/acpi_id_list, and the UART controller on future AMD paltform will use the HID instead of AMD0020. Signed-off-by: Wang Hongcheng --- drivers/acpi/acpi_apd.c | 1 + 1 file changed, 1 insertion

[PATCH] pinctrl: amd:Add device HID for future AMD GPIO controller

2016-03-10 Thread Wang Hongcheng
Add device HID AMDI0030 to match the AMD ACPI Vendor ID (AMDI) as registered in http://www.uefi.org/acpi_id_list, and the GPIO controller on future AMD paltform will use the HID instead of AMD0030. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/pinctrl/pinctrl-amd.c | 1 +

[PATCH] pinctrl: amd:Add device HID for future AMD GPIO controller

2016-03-10 Thread Wang Hongcheng
Add device HID AMDI0030 to match the AMD ACPI Vendor ID (AMDI) as registered in http://www.uefi.org/acpi_id_list, and the GPIO controller on future AMD paltform will use the HID instead of AMD0030. Signed-off-by: Wang Hongcheng --- drivers/pinctrl/pinctrl-amd.c | 1 + 1 file changed, 1

[PATCH] ACPI: Add device HID for future AMD UART controller

2016-03-10 Thread Wang Hongcheng
Add device HID AMDI0020 to match the AMD ACPI Vendor ID (AMDI) as registered in http://www.uefi.org/acpi_id_list, and the UART controller on future AMD paltform will use the HID instead of AMD0020. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/acpi/acpi_apd.c

[PATCH] ACPI: Add device HID for future AMD UART controller

2016-03-10 Thread Wang Hongcheng
Add device HID AMDI0020 to match the AMD ACPI Vendor ID (AMDI) as registered in http://www.uefi.org/acpi_id_list, and the UART controller on future AMD paltform will use the HID instead of AMD0020. Signed-off-by: Wang Hongcheng --- drivers/acpi/acpi_apd.c | 1 + drivers/tty/serial

[PATCH] ARM: mmci:Remove duplicate #include header file in mmci.c

2016-03-03 Thread Wang Hongcheng
The header file asm/sizes.h is unnecessary. And it can also be compiled under X86 arch after the removal. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/mmc/host/mmci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c

[PATCH] ARM: mmci:Remove duplicate #include header file in mmci.c

2016-03-03 Thread Wang Hongcheng
The header file asm/sizes.h is unnecessary. And it can also be compiled under X86 arch after the removal. Signed-off-by: Wang Hongcheng --- drivers/mmc/host/mmci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index fb26674..e5e5441 100644

[PATCH] video: AMBA CLCD: Remove duplicated include in amba-clcd.c

2016-03-03 Thread Wang Hongcheng
The header file asm/sizes.h is unnecessary. And it can also be compiled under X86 arch after the removal. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/video/fbdev/amba-clcd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers

[PATCH] video: AMBA CLCD: Remove duplicated include in amba-clcd.c

2016-03-03 Thread Wang Hongcheng
The header file asm/sizes.h is unnecessary. And it can also be compiled under X86 arch after the removal. Signed-off-by: Wang Hongcheng --- drivers/video/fbdev/amba-clcd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c

[PATCH 3/6] ACPI: add 2 parameters to function acpi dma controller register

2016-01-03 Thread Wang Hongcheng
As CSRT table will not always work, 2 arguments, base_request_line and num are added to acpi dma controller register as another way to get device request line. Signed-off-by: Wang Hongcheng --- drivers/dma/acpi-dma.c| 25 - drivers/dma/dw/platform.c | 2 +- include

[PATCH 5/6] dmaengine: pl330: provide ACPI dmaengine interface

2016-01-03 Thread Wang Hongcheng
register acpi_dma controller, so ACPI devices can request pl330 DMA channel. Request line info is get from private data. Signed-off-by: Wang Hongcheng --- drivers/acpi/acpi_apd.c| 34 +- drivers/dma/pl330.c| 27 +++ include

[PATCH 6/6] Serial:8250: New Port Type PORT_AMD_8250

2016-01-03 Thread Wang Hongcheng
Set a new port type for AMD Carrizo. Add has_pl330_dma to 8250_dw's private data and init fcr,ier as well as dma rx size. Signed-off-by: Wang Hongcheng --- drivers/acpi/acpi_apd.c | 11 +++ drivers/tty/serial/8250/8250_dw.c | 15 +++ drivers/tty/serial

[PATCH 0/6] 8250: AMD Carrizo UART PL300 DMA enablement

2016-01-03 Thread Wang Hongcheng
ler register Thanks, Hongcheng (Annie) Wang Hongcheng (6): 8250/Kconfig: add config option CONFIG_SERIAL_8250_AMD ACPI: create setup_quirk in acpi_apd ACPI: add 2 parameters to function acpi dma controller register dmaengine: pl330: add new items for pl330 private data dmaengine: pl

[PATCH 1/6] 8250/Kconfig: add config option CONFIG_SERIAL_8250_AMD

2016-01-03 Thread Wang Hongcheng
Add config option CONFIG_SERIAL_8250_AMD in use of AMD carrizo. Because carrizo's UART DMA device is an amba device, it selects ARM_AMBA option. Anything uses amba devices must select ARM_AMBA. Signed-off-by: Wang Hongcheng --- drivers/tty/serial/8250/Kconfig | 8 1 file changed, 8

[PATCH 2/6] ACPI: create setup_quirk in acpi_apd

2016-01-03 Thread Wang Hongcheng
The post_setup hook of AMD0020 device will create an amba device as the child of a previously created platform device. Signed-off-by: Wang Hongcheng --- drivers/acpi/acpi_apd.c | 131 1 file changed, 121 insertions(+), 10 deletions(-) diff --git

[PATCH 4/6] dmaengine: pl330: add new items for pl330 private data

2016-01-03 Thread Wang Hongcheng
mcbuf_sz means bytes to allocate for MicroCode buffer. flags is for irq sharing, default is non-shared, in AMD Carrizo, pl330 shares IRQ with its corresponding UART device. Signed-off-by: Wang Hongcheng --- drivers/acpi/acpi_apd.c| 17 + drivers/dma/pl330.c| 9

[PATCH 3/6] ACPI: add 2 parameters to function acpi dma controller register

2016-01-03 Thread Wang Hongcheng
As CSRT table will not always work, 2 arguments, base_request_line and num are added to acpi dma controller register as another way to get device request line. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/dma/acpi-dma.c| 25 - drivers/

[PATCH 5/6] dmaengine: pl330: provide ACPI dmaengine interface

2016-01-03 Thread Wang Hongcheng
register acpi_dma controller, so ACPI devices can request pl330 DMA channel. Request line info is get from private data. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/acpi/acpi_apd.c| 34 +- drivers/dma/pl330.c

[PATCH 1/6] 8250/Kconfig: add config option CONFIG_SERIAL_8250_AMD

2016-01-03 Thread Wang Hongcheng
Add config option CONFIG_SERIAL_8250_AMD in use of AMD carrizo. Because carrizo's UART DMA device is an amba device, it selects ARM_AMBA option. Anything uses amba devices must select ARM_AMBA. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/tty/serial/8250/Kconf

[PATCH 2/6] ACPI: create setup_quirk in acpi_apd

2016-01-03 Thread Wang Hongcheng
The post_setup hook of AMD0020 device will create an amba device as the child of a previously created platform device. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/acpi/acpi_apd.c | 131 1 file changed, 121 insertions(

[PATCH 0/6] 8250: AMD Carrizo UART PL300 DMA enablement

2016-01-03 Thread Wang Hongcheng
ler register Thanks, Hongcheng (Annie) Wang Hongcheng (6): 8250/Kconfig: add config option CONFIG_SERIAL_8250_AMD ACPI: create setup_quirk in acpi_apd ACPI: add 2 parameters to function acpi dma controller register dmaengine: pl330: add new items for pl330 private data dmaengine: pl

[PATCH 4/6] dmaengine: pl330: add new items for pl330 private data

2016-01-03 Thread Wang Hongcheng
mcbuf_sz means bytes to allocate for MicroCode buffer. flags is for irq sharing, default is non-shared, in AMD Carrizo, pl330 shares IRQ with its corresponding UART device. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/acpi/acpi_apd.c| 17 + drivers/dma

[PATCH 6/6] Serial:8250: New Port Type PORT_AMD_8250

2016-01-03 Thread Wang Hongcheng
Set a new port type for AMD Carrizo. Add has_pl330_dma to 8250_dw's private data and init fcr,ier as well as dma rx size. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/acpi/acpi_apd.c | 11 +++ drivers/tty/serial/8250/8250_dw.c

[PATCH 2/9] 8250/Kconfig: add config option CONFIG_SERIAL_8250_AMD

2015-12-03 Thread Wang Hongcheng
Add config option CONFIG_SERIAL_8250_AMD in use of AMD carrizo. Because carrizo's UART DMA device is an amba device, it selects ARM_AMBA option. Anything uses amba devices must select ARM_AMBA. Signed-off-by: Wang Hongcheng --- drivers/tty/serial/8250/Kconfig | 8 1 file changed, 8

[PATCH 9/9] iommu/amd: Add ACPI HID named devices IOMMU driver support

2015-12-03 Thread Wang Hongcheng
From: Wan Zongshun AMD UART is a ACPI HID named device, it also is none-pci device, currently, iommu driver only supports pci device, so UART DMA did not work at current AMD IOMMU driver. AMD reused 8250 serial driver and ARM PL330 DMA engine driver, since AMD uart and dma ips are compatible

[PATCH 6/9] dmaengine:pl330: set segment_boundary_mask = 0cffffffff

2015-12-03 Thread Wang Hongcheng
Because amd iommu and software iommu need this mask.For example, if we use software iommu without this mask, we will get 'Out of SW-IOMMU space' error, when calling swiotlb_map_page function. Signed-off-by: Wan Zongshun Signed-off-by: Wang Hongcheng --- drivers/dma/pl330.c | 4 1 file

[PATCH 3/9] ACPI: add struct acpi_amba_quirk for AMD pl330 specific device config

2015-12-03 Thread Wang Hongcheng
goto amba_register_err; diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c index a450e7a..eb3316a 100644 --- a/drivers/acpi/acpi_apd.c +++ b/drivers/acpi/acpi_apd.c @@ -3,7 +3,8 @@ * * Copyright (c) 2014,2015 AMD Corporation. * Authors: Ken Xue - * Wu, Jef

[PATCH 4/9] dmaengine: pl330: add new items for pl330 private data

2015-12-03 Thread Wang Hongcheng
has_no_cap_mask means this device has no preset cap mask. mcbuf_sz means bytes to allocate for MC buffer. flags is for irq sharing, default is non-shared, in AMD Carrizo, pl330 shares IRQ with its corresponding UART device. Signed-off-by: Wang Hongcheng --- drivers/acpi/acpi_apd.c| 13

[PATCH 7/9] Serial:8250: New Port Type PORT_AMD_8250

2015-12-03 Thread Wang Hongcheng
Set a new port type for AMD Carrizo. Add has_pl330_dma to 8250_dw's private data and init fcr,ier as well as dma rx size. Signed-off-by: Wang Hongcheng --- drivers/acpi/acpi_apd.c | 10 ++ drivers/tty/serial/8250/8250_dw.c | 16 drivers/tty/serial/8250

[PATCH 0/9] 8250: AMD Carrizo UART PL300 DMA enablement

2015-12-03 Thread Wang Hongcheng
ACPI HID named devices IOMMU driver support Wang Hongcheng (6): 8250/Kconfig: add config option CONFIG_SERIAL_8250_AMD ACPI: add struct acpi_amba_quirk for AMD pl330 specific device config dmaengine: pl330: add new items for pl330 private data dmaengine: pl330: provide ACPI dmaengine interface

[PATCH 5/9] dmaengine: pl330: provide ACPI dmaengine interface

2015-12-03 Thread Wang Hongcheng
register acpi_dma controller, so ACPI devices can request pl330 DMA channel. A filter is added in private data for Carrizo specific hardware design Signed-off-by: Wang Hongcheng --- drivers/acpi/acpi_apd.c| 12 drivers/dma/pl330.c| 38

[PATCH 1/9] ACPI: Add support for AMBA bus type

2015-12-03 Thread Wang Hongcheng
ion to support pl330 AMBA driver. Signed-off-by: Huang Rui Signed-off-by: Wang Hongcheng --- drivers/acpi/Makefile| 1 + drivers/acpi/acpi_amba.c | 157 +++ include/linux/acpi.h | 21 +++ 3 files changed, 179 insertions(+) create mode

[PATCH 8/9] Documentation: Add ivrs_acpihid kernel parameter description

2015-12-03 Thread Wang Hongcheng
From: Wan Zongshun Add ivrs_acpihid kernel parameter description, like ivrs_acpihid[00:14.5]=AMD0020:0. Signed-off-by: Wan Zongshun --- Documentation/kernel-parameters.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/kernel-parameters.txt

[PATCH 8/9] Documentation: Add ivrs_acpihid kernel parameter description

2015-12-03 Thread Wang Hongcheng
From: Wan Zongshun Add ivrs_acpihid kernel parameter description, like ivrs_acpihid[00:14.5]=AMD0020:0. Signed-off-by: Wan Zongshun --- Documentation/kernel-parameters.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH 0/9] 8250: AMD Carrizo UART PL300 DMA enablement

2015-12-03 Thread Wang Hongcheng
ACPI HID named devices IOMMU driver support Wang Hongcheng (6): 8250/Kconfig: add config option CONFIG_SERIAL_8250_AMD ACPI: add struct acpi_amba_quirk for AMD pl330 specific device config dmaengine: pl330: add new items for pl330 private data dmaengine: pl330: provide ACPI dmaengine interface

[PATCH 7/9] Serial:8250: New Port Type PORT_AMD_8250

2015-12-03 Thread Wang Hongcheng
Set a new port type for AMD Carrizo. Add has_pl330_dma to 8250_dw's private data and init fcr,ier as well as dma rx size. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/acpi/acpi_apd.c | 10 ++ drivers/tty/serial/8250/8250_dw.c

[PATCH 9/9] iommu/amd: Add ACPI HID named devices IOMMU driver support

2015-12-03 Thread Wang Hongcheng
From: Wan Zongshun AMD UART is a ACPI HID named device, it also is none-pci device, currently, iommu driver only supports pci device, so UART DMA did not work at current AMD IOMMU driver. AMD reused 8250 serial driver and ARM PL330 DMA engine driver, since AMD uart and dma

[PATCH 4/9] dmaengine: pl330: add new items for pl330 private data

2015-12-03 Thread Wang Hongcheng
has_no_cap_mask means this device has no preset cap mask. mcbuf_sz means bytes to allocate for MC buffer. flags is for irq sharing, default is non-shared, in AMD Carrizo, pl330 shares IRQ with its corresponding UART device. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- driver

[PATCH 6/9] dmaengine:pl330: set segment_boundary_mask = 0cffffffff

2015-12-03 Thread Wang Hongcheng
Because amd iommu and software iommu need this mask.For example, if we use software iommu without this mask, we will get 'Out of SW-IOMMU space' error, when calling swiotlb_map_page function. Signed-off-by: Wan Zongshun <vincent@amd.com> Signed-off-by: Wang Hongcheng <annie.w..

[PATCH 3/9] ACPI: add struct acpi_amba_quirk for AMD pl330 specific device config

2015-12-03 Thread Wang Hongcheng
hors: Ken Xue <ken@amd.com> - * Wu, Jeff <jeff...@amd.com> + * Jeff Wu <15618388...@163.com> + * Wang Hongcheng <annie.w...@amd.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Pub

[PATCH 1/9] ACPI: Add support for AMBA bus type

2015-12-03 Thread Wang Hongcheng
quent patches, we will use this function to support pl330 AMBA driver. Signed-off-by: Huang Rui <ray.hu...@amd.com> Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/acpi/Makefile| 1 + drivers/acpi/acpi_amba.c | 157 +++ include/l

[PATCH 5/9] dmaengine: pl330: provide ACPI dmaengine interface

2015-12-03 Thread Wang Hongcheng
register acpi_dma controller, so ACPI devices can request pl330 DMA channel. A filter is added in private data for Carrizo specific hardware design Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/acpi/acpi_apd.c| 12 drivers/dma/pl330.c

[PATCH 2/9] 8250/Kconfig: add config option CONFIG_SERIAL_8250_AMD

2015-12-03 Thread Wang Hongcheng
Add config option CONFIG_SERIAL_8250_AMD in use of AMD carrizo. Because carrizo's UART DMA device is an amba device, it selects ARM_AMBA option. Anything uses amba devices must select ARM_AMBA. Signed-off-by: Wang Hongcheng <annie.w...@amd.com> --- drivers/tty/serial/8250/Kconf