Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp215468imm; Thu, 26 Jul 2018 02:09:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpetVvcAGg9dFW/oOXA/zrkTF9AaP5I1yQ7NB66BJtrRD7HzvxuXFEWwc3B84/TbCuT/eJ2S X-Received: by 2002:a63:1811:: with SMTP id y17-v6mr1145655pgl.356.1532596157346; Thu, 26 Jul 2018 02:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532596157; cv=none; d=google.com; s=arc-20160816; b=xdBDrcho5RIFTyS67c7E4eHW5xQo/Sfswj5LlphmZrHje3dOETbY6eqjfe1MIPQJSw vNT+UIUsYOuGW8WKvHe0h45WtZJEizaVEMUu/yiVCFtx1xTw2PKbQfX1CvmV06GJg6MP tK76JeJpRCXhC8LAjk6Spm97fL8xSk/JLSEHBb9EdLpCV9z52JLCu1Sf0MuJodLAHlxm SRuJKfvMyp0QphtcpTdRFvAPozaZTWJum2BDN26VMYnnCpt0QxfDKuQS9dbeI39dyjZa LEciwMFD0yGztBFT4iUsphGcNepcRNUXccLMVdduYnBIj4t07+ghMcjY/rpns/TgLcfD IOkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=9qFBDgckDXhauMfRQ05cO6OFePyCt8FfK3knF6T7AvU=; b=siblIkfgS2QxxcpXFPrPubBEy82kEOtpxyz8KlLAyMmEoVsO8Cb5kjyWd4psQCsqHe 0xTo0wPM7w60kLRiVxrfT1Lsx9MJExJlLOaZv1rIlfAhAuG2WjiT9KslwTDIUcXs9D5U q3Y8RUp+CKxRkzkYiyMRJXOj13L92t18NoeKTduZ0FkPI8yUZgD+3/Leexg+vTzX9yLS 6/CjXVjTC7jk+GSwuoFD4oaamT59bnXmTADP6uSMtYrDVNDRGuAu6fT9gnk+WTn2LV40 97fY2JAgHb2q2gmtijAlZXbEY72lxoncmu/NfuTvQDZ2oQuMVVA+gjSRYWM/Cl1dIV+k e7oA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j185-v6si859305pgc.419.2018.07.26.02.09.02; Thu, 26 Jul 2018 02:09:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729106AbeGZKYG (ORCPT + 99 others); Thu, 26 Jul 2018 06:24:06 -0400 Received: from verein.lst.de ([213.95.11.211]:35499 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728547AbeGZKYG (ORCPT ); Thu, 26 Jul 2018 06:24:06 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id E221B68D64; Thu, 26 Jul 2018 11:11:55 +0200 (CEST) Date: Thu, 26 Jul 2018 11:11:55 +0200 From: Christoph Hellwig To: Eugeniy Paltsev Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Vineet Gupta , Alexey Brodkin , hch@lst.de Subject: Re: [PATCH] ARC: fix broken noncoherent cache ops Message-ID: <20180726091155.GA24209@lst.de> References: <20180724141302.4305-1-Eugeniy.Paltsev@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180724141302.4305-1-Eugeniy.Paltsev@synopsys.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 24, 2018 at 05:13:02PM +0300, Eugeniy Paltsev wrote: > All DMA devices on ARC haven't worked with SW cache control > since commit a8eb92d02dd7 ("arc: fix arc_dma_{map,unmap}_page") > This happens because we don't check direction argument at all in > new implementation. Fix that. > > Fixies: commit a8eb92d02dd7 ("arc: fix arc_dma_{map,unmap}_page") > Signed-off-by: Eugeniy Paltsev Looks sensible. Might be worth explaining that ARC can speculate into the areas under DMA, which is why this is required.