From patchwork Mon Oct 27 15:09:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 39634 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 73BE62118A for ; Mon, 27 Oct 2014 15:13:16 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id e51sf684454eek.10 for ; Mon, 27 Oct 2014 08:13:15 -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:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=F7A7W7CCGO4+4ehY6FL9L5rkj+lnW1Zs4WesO+pjfZ0=; b=VjqDDoIWKoDgaeeEp1emcaPTHv4wP4jlVarjiqPGXF6ivsfb7fd7v2xfnP3loI75pR p1lc+c+psyWrZnJmBTkhQStvdF7O5hqbAE1xntwdroyN6s3n2FITncg3foz7MBgnFVxk DFBq4jFIPb4YuscnBbQpuK/D1FwKNxFgh0E3u3B/+AVftpiDhoQA4CgOvv1EJrA41BfA CMtBN39fI4T4x4Y31+2mKDvGtteDUUAkY9sLt6LXqtnKJueaZclAyH582aYwzXKfDm3D XEMM0hd9nhU6MN5ccWmR2kg9bIZk+zwW1aZUqPawV04ox5y2fraBgKrkJn8C0/N9WPr7 3tFw== X-Gm-Message-State: ALoCoQmrCPtxSQEla0evcftDlY0pfrQWFNNQY+gqAuJhxS92oOMuwLYcf34hrdfdB+6TEg/PpQgA X-Received: by 10.112.26.82 with SMTP id j18mr108269lbg.16.1414422795560; Mon, 27 Oct 2014 08:13:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.99 with SMTP id i3ls222483laa.79.gmail; Mon, 27 Oct 2014 08:13:15 -0700 (PDT) X-Received: by 10.152.22.194 with SMTP id g2mr24399746laf.33.1414422795344; Mon, 27 Oct 2014 08:13:15 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id r2si20382931lbl.90.2014.10.27.08.13.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Oct 2014 08:13:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id gi9so5945036lab.5 for ; Mon, 27 Oct 2014 08:13:15 -0700 (PDT) X-Received: by 10.152.5.38 with SMTP id p6mr24200787lap.44.1414422795266; Mon, 27 Oct 2014 08:13:15 -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 c5csp309845lbz; Mon, 27 Oct 2014 08:13:14 -0700 (PDT) X-Received: by 10.68.68.144 with SMTP id w16mr2428929pbt.162.1414422793571; Mon, 27 Oct 2014 08:13:13 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yt4si10676736pbb.62.2014.10.27.08.13.12 for ; Mon, 27 Oct 2014 08:13:13 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753174AbaJ0PNJ (ORCPT + 26 others); Mon, 27 Oct 2014 11:13:09 -0400 Received: from smtp.citrix.com ([66.165.176.89]:11947 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753097AbaJ0PNH (ORCPT ); Mon, 27 Oct 2014 11:13:07 -0400 X-IronPort-AV: E=Sophos;i="5.04,796,1406592000"; d="scan'208";a="185211232" Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.80) with Microsoft SMTP Server id 14.3.181.6; Mon, 27 Oct 2014 11:12:05 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1Xilxg-0006cI-AD; Mon, 27 Oct 2014 15:12:00 +0000 From: Stefano Stabellini To: CC: , , , , , , Stefano Stabellini Subject: [PATCH v7 2/8] xen/arm: remove outer_*_range call Date: Mon, 27 Oct 2014 15:09:22 +0000 Message-ID: <1414422568-19103-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 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.215.46 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-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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,