From patchwork Thu Oct 23 17:27: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: 39389 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 956BA20341 for ; Thu, 23 Oct 2014 17:35:42 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf859881lam.0 for ; Thu, 23 Oct 2014 10:35:41 -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=Fs4YQBvY8eAZ1e8tH1dAis0J/IibtLlz22zO6OgT7Rp8VYCsDHlUJ6ns/V+Ea2yyQl yJJiH6YuFwSf9x5YVFTKE34DdOwCWYNpq+K1yDcereElg4I4Uu8kgzOAJbpIyFzwGu43 sO7bC4ZRQE77EvIwDH/y1iZWR8QTxtcASVwOkzKo2motVlIHcR7iWd2sIHVQuPyjU04q r9gMAfUAaeY+EGTBCulS3vqA9SGWq/e9biqYS2xs6QG/zCmfJvFwb0jfcS4GILcc+YUA imf/kF4f7BpmdOt0PxH6VDxgmBpnSq0VIA1qftdZbBqJGdyK3T29/NKvgIEJ1jvlTtPj WABw== X-Gm-Message-State: ALoCoQklJj0hfUISQZpuuWB9wNBfAQt2DU0FnwYwXlUWp8iIkIjSFwQNvgGL4Ry1fAFWUbnTenOM X-Received: by 10.112.137.202 with SMTP id qk10mr908601lbb.11.1414085741103; Thu, 23 Oct 2014 10:35:41 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.166 with SMTP id t6ls384984lat.20.gmail; Thu, 23 Oct 2014 10:35:40 -0700 (PDT) X-Received: by 10.112.36.197 with SMTP id s5mr5895035lbj.30.1414085740901; Thu, 23 Oct 2014 10:35:40 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id xe3si3601609lbb.114.2014.10.23.10.35.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Oct 2014 10:35:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id b6so1259531lbj.17 for ; Thu, 23 Oct 2014 10:35:40 -0700 (PDT) X-Received: by 10.112.14.69 with SMTP id n5mr6755220lbc.34.1414085740688; Thu, 23 Oct 2014 10:35:40 -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 c5csp296030lbz; Thu, 23 Oct 2014 10:35:39 -0700 (PDT) X-Received: by 10.70.88.44 with SMTP id bd12mr6303652pdb.133.1414085739058; Thu, 23 Oct 2014 10:35:39 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si2162271pdn.89.2014.10.23.10.35.38 for ; Thu, 23 Oct 2014 10:35:39 -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 S1755208AbaJWRfG (ORCPT + 28 others); Thu, 23 Oct 2014 13:35:06 -0400 Received: from smtp.citrix.com ([66.165.176.89]:59237 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752619AbaJWRfB (ORCPT ); Thu, 23 Oct 2014 13:35:01 -0400 X-IronPort-AV: E=Sophos;i="5.04,776,1406592000"; d="scan'208";a="184362039" 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; Thu, 23 Oct 2014 13:30: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 1XhMD2-00085f-J7; Thu, 23 Oct 2014 18:30:00 +0100 From: Stefano Stabellini To: CC: , , , , , , , Stefano Stabellini Subject: [PATCH v5 2/6] xen/arm: remove outer_*_range call Date: Thu, 23 Oct 2014 18:27:22 +0100 Message-ID: <1414085246-16160-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.217.172 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,