From patchwork Fri Oct 10 11:51:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 38559 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D5285202DB for ; Fri, 10 Oct 2014 11:54:21 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id 10sf2022136lbg.9 for ; Fri, 10 Oct 2014 04:54:20 -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=LowdL05ZXimNsoRcJMix2a8CXH62R9jr3bIYG5WqMSI=; b=kTcJY+n4kJEMmyp0M3LzoTJ2pnGJkVv3igFT48dVQPoSOqICnYsE0ykqtHNh/wVskw J0IkMvH/nIVtOCxo/tSQaUzQ+e9uv+G071y4umz3WW9NNjOKXLk8cCoYpkgjQih+1mdk JyqlPi+N6ULDl1aYT/hDtVCaMJEn4sAZ9odCI6iocF47jcogq7jjh4uAYCGdjA7Lh8Dl svAOJH3l9xMz4OEoMypU935RD6D1kMedLnRqywOD8GyB+UwvX7pOx9dGnnr0qSlTVWVr zqGwetKJSmtwsFreCjyQ8Jz7CuqciQ4pX1ySzrTdl/MNblg043zUnAUPmOAV1QGglY1N yjvw== X-Gm-Message-State: ALoCoQkRSNPGIdrdv1x+cmd2ClwBr8JN/9GZyqmsZuTL5E//vwfODJHhcA/38ukPFKA6VGgCDJp5 X-Received: by 10.112.158.73 with SMTP id ws9mr239lbb.22.1412942060637; Fri, 10 Oct 2014 04:54:20 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.37 with SMTP id a5ls276366laf.42.gmail; Fri, 10 Oct 2014 04:54:20 -0700 (PDT) X-Received: by 10.112.183.233 with SMTP id ep9mr4136682lbc.56.1412942060427; Fri, 10 Oct 2014 04:54:20 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by mx.google.com with ESMTPS id rt5si8977863lbb.2.2014.10.10.04.54.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Oct 2014 04:54:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id pv20so3115492lab.34 for ; Fri, 10 Oct 2014 04:54:20 -0700 (PDT) X-Received: by 10.112.190.69 with SMTP id go5mr4200215lbc.32.1412942059894; Fri, 10 Oct 2014 04:54:19 -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 c5csp412715lbz; Fri, 10 Oct 2014 04:54:18 -0700 (PDT) X-Received: by 10.66.235.8 with SMTP id ui8mr4583883pac.63.1412942058155; Fri, 10 Oct 2014 04:54:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id on7si3446722pdb.155.2014.10.10.04.54.17 for ; Fri, 10 Oct 2014 04:54:18 -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 S1753318AbaJJLyO (ORCPT + 27 others); Fri, 10 Oct 2014 07:54:14 -0400 Received: from smtp.citrix.com ([66.165.176.89]:22994 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752607AbaJJLyM (ORCPT ); Fri, 10 Oct 2014 07:54:12 -0400 X-IronPort-AV: E=Sophos;i="5.04,691,1406592000"; d="scan'208";a="180114184" Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.3.181.6; Fri, 10 Oct 2014 07:54:09 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1XcYln-0008ML-Rw; Fri, 10 Oct 2014 12:54:03 +0100 From: Stefano Stabellini To: CC: , , , , , , Stefano Stabellini Subject: [PATCH v4 2/7] xen/arm: remove outer_*_range call Date: Fri, 10 Oct 2014 12:51:43 +0100 Message-ID: <1412941908-5850-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.47 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 --- 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,