Received: by 10.192.165.148 with SMTP id m20csp656499imm; Fri, 20 Apr 2018 13:04:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx48otHlh7CH5CJGP+dCx7rj7pmFJIqXGCRkPmiUrLzwM86tRHKhqPiggPA8DDWDiScr65LX8 X-Received: by 2002:a17:902:6590:: with SMTP id c16-v6mr11460030plk.292.1524254658322; Fri, 20 Apr 2018 13:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524254658; cv=none; d=google.com; s=arc-20160816; b=x4Mj5vEEk56tBDBp8zMGPtA4/1wQQAqHzvFldeYvKDlgvbUb2BAVCLaWbly1GVgbGP 9wv4q1rcDfmQVgo0ILc23gvDnesz+wRqbYtkxgf5MTvs3m3WLk0KiUT7RqJ8+PnfgyeQ be1LWbChnHcElRuxNA9SLzKVN3Bij2MmvSv2zWbjuPg6MgZ9L7w5FEnfAn3mtXXJaAkd jQA/rimJxTBqAUVHHmQl+Stmlrv3DePUCecH0BpSnbum0nSRqrovYXn1qk0Rj2kO0b9R IICNWVLh6YYpdfKTv4pYxUZ7VwLQPbwhK/SlSbLOJXkVcDU95jmu78p/eI41u9CBSdV5 W4IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=V7N2ikdyooJuvCPBZxbwyllKtAlcga0CVDcvvyK+Iv4=; b=Zj1i9xG3yB8I17TGtNtZmW0v7kB6brzsgnM6E0Rc7cLlA4/7ZmP/x5SOUFQhsFkYEy pwXhiD2flcHnGP+Ar2Vc3P/iJ69K3M6mnb6sJ05YvgGvpwlljkRjwCLnPb+za6bHX1EY vtJ2/18q26mZiBog0Gqpi2+krIBdY7PC+UbgliQGrSVFMaY9DjzFc8Lwk7pcbJoDih10 bIQesf940rpz5N8JG0Z5HcS/qJZm6t9aAmO/2pZq73RGmzw2sMMdYsOoSd104yE9MSId w8JyHl0Q/Myuc92vREmF/QUhTI9q1G+m3TABzPaE17mF7AposQlch+huUgd4ff0Eudph 7ewA== 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 j7si5126315pgq.426.2018.04.20.13.04.03; Fri, 20 Apr 2018 13:04:18 -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 S1752392AbeDTUBm (ORCPT + 99 others); Fri, 20 Apr 2018 16:01:42 -0400 Received: from mail.bootlin.com ([62.4.15.54]:50430 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751930AbeDTUBh (ORCPT ); Fri, 20 Apr 2018 16:01:37 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C4A8520720; Fri, 20 Apr 2018 22:01:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 7CD8C20719; Fri, 20 Apr 2018 22:01:34 +0200 (CEST) Date: Fri, 20 Apr 2018 22:01:34 +0200 From: Boris Brezillon To: Ladislav Michl Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Boris Brezillon , Peter Ujfalusi , Roger Quadros , Aaro Koskinen , Tony Lindgren , "H. Nikolaus Schaller" , Andreas Kemnade Subject: Re: [PATCH v2] mtd: onenand: omap2: Disable DMA for HIGHMEM buffers Message-ID: <20180420220134.3021860f@bbrezillon> In-Reply-To: <20180416065256.GA24455@lenoch> References: <20180416065256.GA24455@lenoch> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ladislav, On Mon, 16 Apr 2018 08:52:59 +0200 Ladislav Michl wrote: > dma_map_single doesn't get the proper DMA address for vmalloced area, That's not true, it returns the right DMA (physical) address, it's just that: 1/ the memory location is not necessarily physically contiguous 2/ in case your arch is VIVT ot VIPT, there may be several entries in the cache pointing to the same physical location, and the cache maintenance operations done by dma_map_single() will only operate on one of these entries. > so disable DMA in this case. > The fix looks good though. Can you rephrase your commit message to make it clearer. Thanks, Boris