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

2015-12-04 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 1/9] ACPI: Add support for AMBA bus type

2015-12-04 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 0/9] 8250: AMD Carrizo UART PL300 DMA enablement

2015-12-04 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 9/9] iommu/amd: Add ACPI HID named devices IOMMU driver support

2015-12-04 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 8/9] Documentation: Add ivrs_acpihid kernel parameter description

2015-12-04 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 3/9] ACPI: add struct acpi_amba_quirk for AMD pl330 specific device config

2015-12-04 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 5/9] dmaengine: pl330: provide ACPI dmaengine interface

2015-12-04 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 4/9] dmaengine: pl330: add new items for pl330 private data

2015-12-04 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-04 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..