]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / scan: Parse _CCA and setup device coherency
authorSuthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>
Wed, 10 Jun 2015 16:08:52 +0000 (11:08 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Jun 2015 12:40:48 +0000 (14:40 +0200)
commiteb2f07b3ffdc1d65a06f845cdf4cda0576cfe435
tree969dc352b9de229af3248a5ea11830c1db9eedaf
parent4f6cda4257519752db9cb21a502739ccb7bc72f9
ACPI / scan: Parse _CCA and setup device coherency

This patch implements support for ACPI _CCA object, which is introduced in
ACPIv5.1, can be used for specifying device DMA coherency attribute.

The parsing logic traverses device namespace to parse coherency
information, and stores it in acpi_device_flags. Then uses it to call
arch_setup_dma_ops() when creating each device enumerated in DSDT
during ACPI scan.

This patch also introduces acpi_dma_is_coherent(), which provides
an interface for device drivers to check the coherency information
similarly to the of_dma_is_coherent().

Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Kconfig
drivers/acpi/acpi_platform.c
drivers/acpi/glue.c
drivers/acpi/scan.c
include/acpi/acpi_bus.h
include/linux/acpi.h