Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2966002pxk; Mon, 28 Sep 2020 05:11:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5mzuJqbnJyjjqrj6946wdsC7qu77FHoDkoXz/5R+DpwYnGyGZu//60MyPRvSnr3vA94hw X-Received: by 2002:a50:cfc5:: with SMTP id i5mr1341247edk.151.1601295101465; Mon, 28 Sep 2020 05:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601295101; cv=none; d=google.com; s=arc-20160816; b=dgrjsz0CM2dn8/eL9srDOHzn2U7gS/Opt0W8LWXyDudKsP7YBNtVz0xDbqNpyksyxM CbjyqdCiqEXPVIqOrXKMKlngzFnSP1L2bSlwsLsoQSlMCwA+1u8WG09pDg6ZDLS93AVO m0yiaI7nQ6xGHgO6QhyJOnVWbX/S7OvbA5iI/YKDtuJRVRxopP26H/Vl+ky52xv2Q47o eKjSRp+SzCEaGNBoW+1z7BWZw+C1StH4xBL5nB+whdnPNBRt7qIkcRrZw8XpjWnF8bMs SEzNRJQyB3t4CL7e0ffBLrrYnRG7m0qVbJsZWVG5Uq1rBlY+CjcRdJZC+8sqp15DDo3M xkuw== 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=DMN1Sypi9+ch/Abu01UDC2ymVCpZ+cHP0OqGRzi5hVk=; b=rEK+BJDBvJsk33AfD4lFZQdaQF8LKogDOk9kkSLdDNJjSYyZUlmlIUlcRmuGe7q70u iZlppLjVtYPSGU/8tXzt1MMdNlpZORLxJcwNqwFu9vw6AI2sXrxZZfgZE3tVGmSPxhBo SxRPyKtrRemC6BF4OR/w3WsieNlWSZu5Fnl/LkuA6SCkxL2xnHiTCki7DKt1XCjkx9OC 1iG+T8c19ji5knJ51CPE7Bv33CNw46b3I2XGwTT98muBP7i+nNrGYwtrzBI36V7PK44J pS0ZaFPFhYGrD2biGk1srI2k0+YssoObQnE2MhVG84jeMmDOgxhW2Z7AUlycW+rfvD7e hViA== 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 o10si429586edt.499.2020.09.28.05.11.17; Mon, 28 Sep 2020 05:11:41 -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 S1726497AbgI1MKH (ORCPT + 99 others); Mon, 28 Sep 2020 08:10:07 -0400 Received: from verein.lst.de ([213.95.11.211]:35339 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726409AbgI1MKH (ORCPT ); Mon, 28 Sep 2020 08:10:07 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 5840C68AFE; Mon, 28 Sep 2020 14:10:03 +0200 (CEST) Date: Mon, 28 Sep 2020 14:10:02 +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: <20200928121002.GA3219@lst.de> References: <20200928135405.73404219@canb.auug.org.au> <20200928060427.GA15041@lst.de> <20200928113415.GA555@lst.de> <72ADHQ.T6LL1SHQF0RG3@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <72ADHQ.T6LL1SHQF0RG3@crapouillou.net> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 28, 2020 at 01:46:55PM +0200, Paul Cercueil wrote: >> dma_mmap_attrs can only be used on allocations from dma_mmap_attrs with >> the same attrs. As there is no allocation using DMA_ATTR_NON_CONSISTENT >> in the drm core, something looks very fishy here. > > Is that a fact? I don't see why you couldn't change the cache settings > after allocation. In practice it works just fine. Accessing the same physical address using different caching attributes is undefined behavior and fairly dangerous on most architectures, and thus not supported by the DMA API.