From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B6CDC2D0A8 for ; Mon, 28 Sep 2020 11:34:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 61DA42080C for ; Mon, 28 Sep 2020 11:34:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbgI1LeU (ORCPT ); Mon, 28 Sep 2020 07:34:20 -0400 Received: from verein.lst.de ([213.95.11.211]:35259 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726793AbgI1LeT (ORCPT ); Mon, 28 Sep 2020 07:34:19 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 5178268AFE; Mon, 28 Sep 2020 13:34:16 +0200 (CEST) Date: Mon, 28 Sep 2020 13:34:15 +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: <20200928113415.GA555@lst.de> References: <20200928135405.73404219@canb.auug.org.au> <20200928060427.GA15041@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 Mon, Sep 28, 2020 at 12:15:56PM +0200, Paul Cercueil wrote: > Hi Christoph, > > Le lun. 28 sept. 2020 à 8:04, Christoph Hellwig a écrit : >> On Mon, Sep 28, 2020 at 01:54:05PM +1000, Stephen Rothwell wrote: >>> Hi all, >>> >>> After merging the drm tree, today's linux-next build (x86_64 >>> allmodconfig) >>> failed like this: >> >> The driver needs to switch do dma_alloc_noncoherent + dma_sync_single* >> like the other drivers converted in the dma tree. Paul, let me know if >> you have any questions. > > I don't dma_alloc* anything, DRM core does. I use the > DMA_ATTR_NON_CONSISTENT attr with dma_mmap_attrs(). Is there a replacement > for that? 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. Where does the allocation you try to mmap come from? All the allocations in drivers/gpu/drm/drm_gem_cma_helper.c seems to use dma_alloc_wc (aka dma_allloc_attrs with the DMA_ATTR_WRITE_COMBINE flag).