From patchwork Sat Oct 25 13:57:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 39528 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2A9F824026 for ; Sat, 25 Oct 2014 14:01:57 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gq15sf2668686lab.7 for ; Sat, 25 Oct 2014 07:01:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=t0Dv8fzApGznpQCqOwn/NoVD709P/uLO2luAnGn+pUk=; b=Pqu0vlv3FHSEB1kyV8Qzcpf4qLJVJ894CGgSi3kSw9MgxRXWsKbs9RYq/oLse7coK5 q4MtbHiAQBwXNXzVmnwb0b7MeEMzc08jsjkGp6TYTCIKaIiYIiMDbUuBytEvhk0OZAN9 wfQ65fkwSMBKlPEmTZbHWh2dzgk5f1Swy8RfezQAmXlxRuBNdE+xCXsebTAtQeCLn2mb VDiYDnDwBhhJiu39mCY29CLOheQG6gNl8fJYLX9EhEizWuql3NZ6vZaq+Xz6AydXbJxS uwQSqyVDQpcfcFWKK46V74a7yNr5NX926KgcZ5pRIVTb2hF5t5O+Gt384rTld/w088vL 4bBA== X-Gm-Message-State: ALoCoQnfwYphwbCC0eadXZjyRDR0Mzr4RiQsvIBkEiJXgNz+XWzn7gnHdUiZzUxvpdpdIW76ChFV X-Received: by 10.194.58.47 with SMTP id n15mr208345wjq.0.1414245715759; Sat, 25 Oct 2014 07:01:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.167 with SMTP id kr7ls521735lac.94.gmail; Sat, 25 Oct 2014 07:01:55 -0700 (PDT) X-Received: by 10.152.23.3 with SMTP id i3mr11176803laf.53.1414245715302; Sat, 25 Oct 2014 07:01:55 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id pw1si11512917lbb.13.2014.10.25.07.01.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 25 Oct 2014 07:01:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id l4so3732721lbv.40 for ; Sat, 25 Oct 2014 07:01:55 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr11252601lbb.46.1414245715198; Sat, 25 Oct 2014 07:01:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp42500lbz; Sat, 25 Oct 2014 07:01:54 -0700 (PDT) X-Received: by 10.140.30.165 with SMTP id d34mr15258310qgd.55.1414245713882; Sat, 25 Oct 2014 07:01:53 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id d5si12629978qaq.57.2014.10.25.07.01.53 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 25 Oct 2014 07:01:53 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xi1t0-0000CH-8y; Sat, 25 Oct 2014 14:00:06 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xi1sy-0000Bs-Mv for xen-devel@lists.xensource.com; Sat, 25 Oct 2014 14:00:04 +0000 Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id E1/6E-02683-4ECAB445; Sat, 25 Oct 2014 14:00:04 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-4.tower-31.messagelabs.com!1414245602!11481389!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.12.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 12586 invoked from network); 25 Oct 2014 14:00:03 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-4.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 25 Oct 2014 14:00:03 -0000 X-IronPort-AV: E=Sophos;i="5.04,786,1406592000"; d="scan'208";a="184886127" Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.3.181.6; Sat, 25 Oct 2014 10:00:00 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1Xi1sp-0000C6-PI; Sat, 25 Oct 2014 14:59:55 +0100 From: Stefano Stabellini To: Date: Sat, 25 Oct 2014 14:57:17 +0100 Message-ID: <1414245442-4306-2-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian.Campbell@citrix.com, Stefano Stabellini , linux-kernel@vger.kernel.org, david.vrabel@citrix.com, linux-arm-kernel@lists.infradead.org Subject: [Xen-devel] [PATCH v6 2/7] xen/arm: remove outer_*_range call X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stefano.stabellini@eu.citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Dom0 is not actually capable of issuing outer_inv_range or outer_clean_range calls. Signed-off-by: Stefano Stabellini Acked-by: Ian Campbell --- arch/arm/xen/mm32.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/arch/arm/xen/mm32.c b/arch/arm/xen/mm32.c index a5a93fc..6153d61 100644 --- a/arch/arm/xen/mm32.c +++ b/arch/arm/xen/mm32.c @@ -61,9 +61,6 @@ static void __xen_dma_page_dev_to_cpu(struct device *hwdev, dma_addr_t handle, /* Cannot use __dma_page_dev_to_cpu because we don't have a * struct page for handle */ - if (dir != DMA_TO_DEVICE) - outer_inv_range(handle, handle + size); - dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, dmac_unmap_area); } @@ -72,12 +69,6 @@ static void __xen_dma_page_cpu_to_dev(struct device *hwdev, dma_addr_t handle, { dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, dmac_map_area); - - if (dir == DMA_FROM_DEVICE) { - outer_inv_range(handle, handle + size); - } else { - outer_clean_range(handle, handle + size); - } } void xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle,