From patchwork Wed Sep 17 16:18:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Masters X-Patchwork-Id: 4925341 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B1EA9BEEA5 for ; Wed, 17 Sep 2014 16:19:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 73163201E4 for ; Wed, 17 Sep 2014 16:19:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B4E6020117 for ; Wed, 17 Sep 2014 16:19:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755400AbaIQQTi (ORCPT ); Wed, 17 Sep 2014 12:19:38 -0400 Received: from mx4-phx2.redhat.com ([209.132.183.25]:37972 "EHLO mx4-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754870AbaIQQTh (ORCPT ); Wed, 17 Sep 2014 12:19:37 -0400 Received: from zmail15.collab.prod.int.phx2.redhat.com (zmail15.collab.prod.int.phx2.redhat.com [10.5.83.17]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s8HGIvjW026312; Wed, 17 Sep 2014 12:18:57 -0400 Date: Wed, 17 Sep 2014 12:18:57 -0400 (EDT) Subject: Re: [PATCH v8 1/4] pci:host: APM X-Gene PCIe host controller driver From: Jon Masters To: Catalin Marinas Cc: Bjorn Helgaas , Jason Gunthorpe , patches@apm.com, Arnd Bergmann , Rob Herring , Tanmay Inamdar , linux-doc@vger.kernel.org, grant.likely@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, Rob Landley , Liviu Dudau , devicetree@vger.kernel.org MIME-Version: 1.0 Message-ID: <582775710.16963612.1410970737167.JavaMail.zimbra@zmail15.collab.prod.int.phx2.redhat.com> X-Mailer: Zimbra 8.0.6_GA_5922 (MobileSync - Android/4.4.4-EAS-2.0) In-Reply-To: <20140917160337.GA15261@e104818-lin.cambridge.arm.com> References: <1410476266-29426-1-git-send-email-tinamdar@apm.com> <1410476266-29426-2-git-send-email-tinamdar@apm.com> <20140912091816.GU27864@e106497-lin.cambridge.arm.com> <20140917160337.GA15261@e104818-lin.cambridge.arm.com> Thread-Topic: host: APM X-Gene PCIe host controller driver Thread-Index: Rh8298ku85P4FhPJosUBvRKpPGJtfw== Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sorry for top posting...in a keynote. I have a patch that does this I have sent to APM separately for testing something else. Assuming that works, they can send on or I will today. diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index 4164c5ace9f8..638475378f94 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -316,7 +316,7 @@ static int dma_bus_notifier(struct notifier_block *nb, if (event != BUS_NOTIFY_ADD_DEVICE) return NOTIFY_DONE; - if (of_property_read_bool(dev->of_node, "dma-coherent")) + if (of_dma_is_coherent(dev->of_node)) set_dma_ops(dev, &coherent_swiotlb_dma_ops); return NOTIFY_OK;