From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423045AbbD2ObU (ORCPT ); Wed, 29 Apr 2015 10:31:20 -0400 Received: from mail-bl2on0103.outbound.protection.outlook.com ([65.55.169.103]:22848 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1031668AbbD2ObO (ORCPT ); Wed, 29 Apr 2015 10:31:14 -0400 Authentication-Results: spf=none (sender IP is 165.204.84.221) smtp.mailfrom=amd.com; arm.com; dkim=none (message not signed) header.d=none; X-WSS-ID: 0NNKOBS-07-OC9-02 X-M-MSG: Message-ID: <5540EB27.8060507@amd.com> Date: Wed, 29 Apr 2015 09:31:03 -0500 From: Suravee Suthikulpanit User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Catalin Marinas CC: , , , , , , , , , , , , , "Charles Garcia-Tobin" Subject: Re: [PATCH 1/2] arm/arm64: ACPI: Introduce CONFIG_ACPI_MUST_HAVE_CCA References: <1430315049-4663-1-git-send-email-Suravee.Suthikulpanit@amd.com> <1430315049-4663-2-git-send-email-Suravee.Suthikulpanit@amd.com> <20150429140445.GA18867@e104818-lin.cambridge.arm.com> In-Reply-To: <20150429140445.GA18867@e104818-lin.cambridge.arm.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:165.204.84.221;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(428002)(51704005)(24454002)(377454003)(164054003)(199003)(479174004)(189002)(50986999)(101416001)(92566002)(575784001)(59896002)(80316001)(110136001)(50466002)(19580395003)(46102003)(19580405001)(106466001)(36756003)(23746002)(64126003)(105586002)(15975445007)(76176999)(83506001)(33656002)(87936001)(86362001)(4001350100001)(65806001)(2950100001)(77096005)(54356999)(77156002)(87266999)(65956001)(62966003)(47776003);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR02MB1119;H:atltwp01.amd.com;FPR:;SPF:None;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR02MB1119; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR02MB1119;BCL:0;PCL:0;RULEID:;SRVR:CY1PR02MB1119; X-Forefront-PRVS: 05610E64EE X-OriginatorOrg: amd4.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2015 14:31:06.6843 (UTC) X-MS-Exchange-CrossTenant-Id: fde4dada-be84-483f-92cc-e026cbee8e96 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fde4dada-be84-483f-92cc-e026cbee8e96;Ip=[165.204.84.221];Helo=[atltwp01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1119 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/29/2015 09:04 AM, Catalin Marinas wrote: > On Wed, Apr 29, 2015 at 08:44:08AM -0500, Suravee Suthikulpanit wrote: >> From ACPIv6 (http://www.uefi.org/sites/default/files/resources/ACPI_6.0.pdf), >> section 6.2.17 _CCA states that ARM platforms require ACPI _CCA object to be >> specified for DMA-cabpable devices. This patch introduces ACPI_MUST_HAVE_CCA >> in arm and arm64 Kconfig to specify such requirement. >> >> Note that when _CCA is required, if it is missing in the DSDT. ACPI driver >> will default to setting up devices as non-coherent. >> >> Signed-off-by: Mark Salter >> Signed-off-by: Suravee Suthikulpanit >> --- >> arch/arm/Kconfig | 1 + >> arch/arm64/Kconfig | 1 + >> drivers/acpi/Kconfig | 3 +++ >> 3 files changed, 5 insertions(+) >> >> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig >> index 45df48b..2a0d036 100644 >> --- a/arch/arm/Kconfig >> +++ b/arch/arm/Kconfig >> @@ -1,6 +1,7 @@ >> config ARM >> bool >> default y >> + select ACPI_MUST_HAVE_CCA if ACPI >> select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE >> select ARCH_HAS_ELF_RANDOMIZE >> select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST > > Any plans for ACPI on 32-bit ARM? > Not that I am aware, but I could be totally wrong. The reason I am adding this here for 32-bit ARM is because the ACPI spec mentioned this. If you think this is not necessary until we introduce ACPI for ARM32, it can be removed. Thanks, Suravee