Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946210AbbEVWZF (ORCPT ); Fri, 22 May 2015 18:25:05 -0400 Received: from mail-bn1bbn0109.outbound.protection.outlook.com ([157.56.111.109]:58191 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1946171AbbEVWY6 (ORCPT ); Fri, 22 May 2015 18:24:58 -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: 0NORVLF-07-GZ2-02 X-M-MSG: Message-ID: <555FAC8F.4010306@amd.com> Date: Fri, 22 May 2015 17:24:15 -0500 From: Suravee Suthikulanit User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "Rafael J. Wysocki" CC: , , , , , , , , , , , , , , , , , Subject: Re: [V5 PATCH 1/5] ACPI / scan: Parse _CCA and setup device coherency References: <1432159758-4486-1-git-send-email-Suravee.Suthikulpanit@amd.com> <1432159758-4486-2-git-send-email-Suravee.Suthikulpanit@amd.com> <1815824.lIg0NQ97lU@vostro.rjw.lan> In-Reply-To: <1815824.lIg0NQ97lU@vostro.rjw.lan> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD037;1:UdrabwOlx3/Wv7LL6VfGaFxzp+0MukVjsdPmtvDk/w0+F41KkW1a7DzfwT3moMXxuk6PAuJqkK0qAb5qwq9XKiTJl1UZY5rmDRERmZezqeFYXtWg1sVxGt+/zGnD5AEu382ZF8ZFdg8SHJ7Bg5J9E1KyyLLGWrPPOTWFU0P6+ialLt6aGFZmoZwjRHJlwDlCylaPWXg+zZIqkkh2ClWOyBEBPjlSl/RhNa/DQYy260AaqQ5FqISQtILe2XbJX4mUu+jDzE7Bi6iDta53BzHLf8si0Nb3fwvIctNIQZkdYfET8IgI/Ak131hlZR8GLYl0 X-Forefront-Antispam-Report: CIP:165.204.84.221;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(428002)(24454002)(189002)(199003)(164054003)(51704005)(479174004)(87936001)(50466002)(36756003)(92566002)(86362001)(106466001)(120886001)(2950100001)(23676002)(77096005)(68736005)(189998001)(47776003)(64706001)(33656002)(46102003)(65806001)(101416001)(62966003)(77156002)(65956001)(105586002)(54356999)(59896002)(4001540100001)(87266999)(110136002)(4001350100001)(65816999)(5001860100001)(5001830100001)(83506001)(50986999)(97736004)(80316001)(76176999)(64126003);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR02MB073;H:atltwp01.amd.com;FPR:;SPF:None;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB073; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(520002)(3002001);SRVR:BY2PR02MB073;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB073; X-Forefront-PRVS: 058441C12A X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2015 22:24:53.4735 (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: BY2PR02MB073 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1522 Lines: 46 Not sure if this went out earlier. So I am resending. On 5/22/15 16:56, Rafael J. Wysocki wrote: >> diff --git a/drivers/acpi/glue.c b/drivers/acpi/glue.c >> >index 39c485b..b9657af 100644 >> >--- a/drivers/acpi/glue.c >> >+++ b/drivers/acpi/glue.c >> >@@ -13,6 +13,7 @@ >> > #include >> > #include >> > #include >> >+#include >> > >> > #include "internal.h" >> > >> >@@ -167,6 +168,7 @@ int acpi_bind_one(struct device *dev, struct acpi_device *acpi_dev) >> > struct list_head *physnode_list; >> > unsigned int node_id; >> > int retval = -EINVAL; >> >+ bool coherent; >> > >> > if (has_acpi_companion(dev)) { >> > if (acpi_dev) { >> >@@ -223,6 +225,9 @@ int acpi_bind_one(struct device *dev, struct acpi_device *acpi_dev) >> > if (!has_acpi_companion(dev)) >> > ACPI_COMPANION_SET(dev, acpi_dev); >> > >> >+ if (acpi_check_dma(acpi_dev, &coherent)) >> >+ arch_setup_dma_ops(dev, 0, 0, NULL, coherent); >> >+ > Well, so is this going to work for PCI too after all? > No, as Bjorn suggested, PCI changes for setting DMA coherent from _CCA (patch 3/6 in V4) will be submitted separately. We are working on cleaning up and up-streaming the PCI ACPI support for ARM64. Thanks, Suravee -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/