Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4715383pxk; Wed, 30 Sep 2020 09:48:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxo5w8BSb/JVQTiTBlG1HYF238FgZ840btGDdGGZE4sFIqfoVxKTPv3HMwlj8Yc7UlHp4HY X-Received: by 2002:aa7:d88a:: with SMTP id u10mr3758929edq.217.1601484493314; Wed, 30 Sep 2020 09:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601484493; cv=none; d=google.com; s=arc-20160816; b=vbYVN2Ksu/C6Ax6JZjHd/vnaPzsetXrwhwZJLSAydugbQdHC8nMFgIlx89ljQZgH1f w/X7Oe2BGmDkMZ3jnRLRsSfZt4xK3de4qdz1yqMquCab13DYTMUDc+vIm0mMGddTMF2K W8s3eIyGyiYN0mp3+/0tPmYLoFP6rmZIcRUDPhLL3w4Jxw8G+0veiZcxxu6sWiFAkTvl /vO+5Bnr6jeI1GOSloEHuv3l8ogU/oqJwaWCNt89MYGXYOpGFYl1tGCBSv/OP0CCNQhA sg5j3hn59TCwl0RAIivTU4djPEMd1CkRO8F8fXNwBRRLo8qf2gf1sIF51/r7iRQTINge GD1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=kcU9yGQD6B2scIkP8pZMunYb7NCYboP62O9RzuBiMUg=; b=l9qzIN3W64aAl4UCo+AGd1Mz5dBH9JrQuso12b5vzxIV6GokyfYoAzVW44vwQadp1J 6ovDtnTjfpb8ewMdOo6x1lhvwL8xi4aezlchWufhg3yfuXoLIRYzi1VoEi1/qUm0hMzV zL64v8lA0Y027CChR+CrT4O1M+dIgD5a99QCNw+8QeKWaA/FLn3KkO+1+EJAVerpe8M2 qUjBC0xei8Sz0P0pbGKc1bsv/5dqYQYNESNvCzJ1u+E+ibyF3tYz+GTg989SdyarFrrj RUC/d0jWNrBDE3ZH2ezynINyGTgsgfdJgqAChterdRMZEjvRFiX0WxdH8Jr1+En2k96b Hn4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=e5yEacMl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net 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.47.50; Wed, 30 Sep 2020 09:48:13 -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; dkim=pass header.i=@crapouillou.net header.s=mail header.b=e5yEacMl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730969AbgI3QqY (ORCPT + 99 others); Wed, 30 Sep 2020 12:46:24 -0400 Received: from crapouillou.net ([89.234.176.41]:37354 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbgI3QqX (ORCPT ); Wed, 30 Sep 2020 12:46:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1601484381; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kcU9yGQD6B2scIkP8pZMunYb7NCYboP62O9RzuBiMUg=; b=e5yEacMlg4Kfj0LdZISIy62btPD+Kf07vKS+EHO4xQptlsFf8HdJuhMyyohm8+crHHHjSy jsX5npmo3IfEfkAqRz17BIf7NIMxcagguh/dm9LMoVZghVcOhmCUXXBeLmYGpPKaSqVWg/ aT8C+t/LQY7FXAkOcXDLdPQTGnjLBmM= Date: Wed, 30 Sep 2020 18:45:02 +0200 From: Paul Cercueil Subject: Re: linux-next: build failure after merge of the drm tree To: Christoph Hellwig Cc: Stephen Rothwell , Dave Airlie , DRI , Linux Next Mailing List , Linux Kernel Mailing List Message-Id: <27DHHQ.SLESFBOY1GXP1@crapouillou.net> In-Reply-To: <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> <20200930164023.GA8645@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mer. 30 sept. 2020 =E0 18:40, Christoph Hellwig a =E9crit=20 : > 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=20 >>> uncached >>> memory you need to use dma_alloc_coherent paired with=20 >>> 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). >>=20 >> I don't want uncached memory, I want non-coherent cached memory. >=20 > We don't have such a thing in the Linux API at all. dma_pgprot(dev, vma->vm_page_prot, DMA_ATTR_NON_CONSISTENT); That was giving me non-coherent cached memory, and now I don't have an=20 alternative. -Paul