Re: [Linaro-acpi] [V2 PATCH 1/5] ACPI / scan: Parse _CCA and setup device coherency

2015-05-07 Thread Rafael J. Wysocki
On Thursday, May 07, 2015 11:07:08 AM Arnd Bergmann wrote: > On Wednesday 06 May 2015 17:16:35 Suravee Suthikulanit wrote: > > On 5/6/2015 5:21 PM, Rafael J. Wysocki wrote: > > > >>+ bool > > > >>+ > > > >>+config ACPI_SUPPORT_CCA_ZERO > > >>> > > > > >>> > >I guess this means "

Re: [Linaro-acpi] [V2 PATCH 1/5] ACPI / scan: Parse _CCA and setup device coherency

2015-05-07 Thread Arnd Bergmann
On Wednesday 06 May 2015 17:16:35 Suravee Suthikulanit wrote: > On 5/6/2015 5:21 PM, Rafael J. Wysocki wrote: > > >>+ bool > > >>+ > > >>+config ACPI_SUPPORT_CCA_ZERO > >>> > > > >>> > >I guess this means "we support devices that can DMA, but are not > >>> > >coherent". > >>> >

Re: [V2 PATCH 1/5] ACPI / scan: Parse _CCA and setup device coherency

2015-05-06 Thread Suravee Suthikulanit
On 5/6/2015 5:21 PM, Rafael J. Wysocki wrote: > >>+ bool > >>+ > >>+config ACPI_SUPPORT_CCA_ZERO > > > >I guess this means "we support devices that can DMA, but are not coherent". > >right? > >Yes, basically when _CCA=0. So what about ARCH_SUPPORT_CACHE_INCOHERENT_DMA Since this is

Re: [V2 PATCH 1/5] ACPI / scan: Parse _CCA and setup device coherency

2015-05-06 Thread Rafael J. Wysocki
On Tuesday, May 05, 2015 11:15:37 PM Suravee Suthikulpanit wrote: > [RESEND] > > On 5/5/15 15:36, Rafael J. Wysocki wrote: > > On Tuesday, May 05, 2015 10:12:05 AM Suravee Suthikulpanit wrote: > >> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig > >> index ab2cbb5..dd386e9 100644 > >> ---

Re: [V2 PATCH 1/5] ACPI / scan: Parse _CCA and setup device coherency

2015-05-05 Thread Suravee Suthikulpanit
On 5/5/15 22:13, Hanjun Guo wrote: On 2015年05月05日 23:12, Suravee Suthikulpanit wrote: 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 i

Re: [V2 PATCH 1/5] ACPI / scan: Parse _CCA and setup device coherency

2015-05-05 Thread Suravee Suthikulpanit
[RESEND] On 5/5/15 15:36, Rafael J. Wysocki wrote: On Tuesday, May 05, 2015 10:12:05 AM Suravee Suthikulpanit wrote: diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index ab2cbb5..dd386e9 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -54,6 +54,12 @@ config ACPI_GENERI

Re: [V2 PATCH 1/5] ACPI / scan: Parse _CCA and setup device coherency

2015-05-05 Thread Hanjun Guo
On 2015年05月05日 23:12, Suravee Suthikulpanit wrote: 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_de

Re: [V2 PATCH 1/5] ACPI / scan: Parse _CCA and setup device coherency

2015-05-05 Thread Rafael J. Wysocki
On Tuesday, May 05, 2015 10:12:05 AM Suravee Suthikulpanit wrote: > 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, a

[V2 PATCH 1/5] ACPI / scan: Parse _CCA and setup device coherency

2015-05-05 Thread Suravee Suthikulpanit
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()