Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4711273pxk; Wed, 30 Sep 2020 09:41:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRNKo59CFSsdBJdrhrI3mGA6uuBCMCW90fnrgmDpe1yyEIaWF0a0aNYbXjjlTDZZDu+Xur X-Received: by 2002:a17:906:4819:: with SMTP id w25mr3687112ejq.300.1601484108922; Wed, 30 Sep 2020 09:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601484108; cv=none; d=google.com; s=arc-20160816; b=i73jHRMEPxd+RDvZpXX9deWBbQJ0ZTGozEhqAGZuWmOFEw3gVZZGXgukmGwDH8c1BV 7zlAlF1APBsaEwiAPembAwQyj3TK/BZ5vWCZRI+SrEUZjOM4+REdssm+13Q5AQkDOs5C 0LO7yhCzmqkxd+OhECdB3yOlTtfIM/wVLAiWJJS8D/l14EpN3XapRkHxY3fEIbW2AzGv B5QqB02RWk2tXlLuAxrlLwdSAZlN+SfExFxvUzFXRJHFEg3m4HNZjGo38XQ8h2NO9llZ 2dtyEklEBOquHSzG8BonBLeQQK+gspINtOnTsJxO546KoZ8x8DYNQWOcejUXe5m9NoOd N8bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=EhbQyBQuiDwzkiAvif+o2sSmPhQdr+ZQOf8LVGq2gh0=; b=GV/iBtR/JTvQd807rpXNFQ+TE+QNuQygpVpn9DFEmuMKZlgVls3eJDOrbYwVD65DbT qPM2Ui0yPIUu6mCpwr/72eSuBFhHda51eRV/yFlLpVgsiHeVp5QsUnMYznGIFHLHVM2q otJ0kJ0TQNcUFeXEqc2gjjdSYit2cSb9FhzSRHz4JhijzdWktwl+sQ82B1Q+R5BTsc3R gTSQWNOyVsOJpzdDtAcdwevULZ5n0WO6xWCkobGrPbEM0jlLOtVF1SBwrftpMJoyM+CM TikRALTg571PSRkvFgq9KNwaIWHqzvMQS8AJjPbFRcH8dtGF2eTNSWtsuDtx/D9cjCNv CozQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr15si1531813ejb.183.2020.09.30.09.41.26; Wed, 30 Sep 2020 09:41:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728232AbgI3Qk1 (ORCPT + 99 others); Wed, 30 Sep 2020 12:40:27 -0400 Received: from verein.lst.de ([213.95.11.211]:45398 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbgI3Qk1 (ORCPT ); Wed, 30 Sep 2020 12:40:27 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A2F4E6736F; Wed, 30 Sep 2020 18:40:23 +0200 (CEST) Date: Wed, 30 Sep 2020 18:40:23 +0200 From: Christoph Hellwig To: Paul Cercueil Cc: Christoph Hellwig , Stephen Rothwell , Dave Airlie , DRI , Linux Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build failure after merge of the drm tree Message-ID: <20200930164023.GA8645@lst.de> References: <20200928060427.GA15041@lst.de> <20200928113415.GA555@lst.de> <72ADHQ.T6LL1SHQF0RG3@crapouillou.net> <20200928121002.GA3219@lst.de> <20200930090252.GA9357@lst.de> <20200930161124.GA6859@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2020 at 06:39:18PM +0200, Paul Cercueil wrote: >> dma_alloc_pages gives you cached memory, so you can't just use an >> uncached protection for the userspace mmap here. If you want uncached >> memory you need to use dma_alloc_coherent paired with dma_mmap_coherent. >> Or dma_alloc_wc for a slightly different flavor of uncached. (both >> of the map to dma_alloc_attrs / dma_mmap_attrs eventually). > > I don't want uncached memory, I want non-coherent cached memory. We don't have such a thing in the Linux API at all.