Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2951068pxk; Mon, 28 Sep 2020 04:48:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi7QTAO4IY2Qe1lNv1AOkyGFl4/wP6iO2xuXIe03UsejC4yjtRxyHZwxOow7K6ARDyVo4n X-Received: by 2002:a17:906:8543:: with SMTP id h3mr1213838ejy.258.1601293705953; Mon, 28 Sep 2020 04:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601293705; cv=none; d=google.com; s=arc-20160816; b=Ie3uRZ8/FVNaC5e8fTgp0ZwVXz96KW+7iTXVmnnvokFtWvJE34JwYuyBk5iswgryRo 2bDzN7Nld/ZZTfeeb+mtCCQKB30+e4+yqhskENdX8hzSV7hxFB489k+wJo22hxuOtUxz 6i8Xp9bfuAkW1h4DsN1s6lKl9JicE6IRI3qDF68voFxHsuo0wyBg/bWYFci5J+Z6QFTL xG2wRND0qDZbVA8Aku06OTDBbTr0DY8qWK6Dd7CYzRSn5vcNEdMbgdL150qm2aD5g0ew U72uKOxSbob2K8XuzHb7M2fln63Bwqsu4T/MxJOGdiSZ1to7xbH2x6UOHu1OccOSVQEE efVQ== 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=DoVe+g+DYO+oFmZDLue8I5P2ojf9qtlA9KR9knBjw4s=; b=Ikji4g78apfH0q1Vyu5rv7sWRBcfQdIEKcE29kLDkr/FER2B2uX6OpflDkOJ8MCP31 kckklyHw4wGvm9gmBMFK0PuP1N+11mOWOBO/0A6d0NYDYb2ozTmCOCozC/jv9kfK2TF5 SRKRT4I0N7PL+3vGH5XnLfVIIbhCPuE4T8JcaMAbNDrSM9fVuuFFV9cSDISjd1NjxUnn hDHZVZhJRztlrOeml2YNRHB9R08Cw0966Sdsp1DwwmojsrWknYYrtf0cwO0OIH4RIgml QWagQ5Sgjm8fPLlhcB2UK6S5iy439qm48k3elH2Jq3bL969Sk0qWtxbRajmyTaJGwIi3 ej/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=SkNN19W1; 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 s11si415695eju.295.2020.09.28.04.48.02; Mon, 28 Sep 2020 04:48:25 -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=SkNN19W1; 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 S1726610AbgI1LrK (ORCPT + 99 others); Mon, 28 Sep 2020 07:47:10 -0400 Received: from crapouillou.net ([89.234.176.41]:58616 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbgI1LrJ (ORCPT ); Mon, 28 Sep 2020 07:47:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1601293625; 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=DoVe+g+DYO+oFmZDLue8I5P2ojf9qtlA9KR9knBjw4s=; b=SkNN19W1v82/0aW5KrpnosZ0sPQb6t2LIROzYH12T4/aJLZAR9kEgeKI8tLMBwZe5/NLaK TfIngauhK7bDL8CLV4K+v2V05hBwXDEtEg6r9AOlmC2oTvViJLQFyHDvWNVfwsVRejVmmj 5z+qPulvDx1M9ipk3LpNvm6RRqawscU= Date: Mon, 28 Sep 2020 13:46:55 +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: <72ADHQ.T6LL1SHQF0RG3@crapouillou.net> In-Reply-To: <20200928113415.GA555@lst.de> References: <20200928135405.73404219@canb.auug.org.au> <20200928060427.GA15041@lst.de> <20200928113415.GA555@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 lun. 28 sept. 2020 =E0 13:34, Christoph Hellwig a =E9crit=20 : > On Mon, Sep 28, 2020 at 12:15:56PM +0200, Paul Cercueil wrote: >> Hi Christoph, >>=20 >> Le lun. 28 sept. 2020 =E0 8:04, Christoph Hellwig a=20 >> =E9crit : >>> On Mon, Sep 28, 2020 at 01:54:05PM +1000, Stephen Rothwell wrote: >>>> Hi all, >>>>=20 >>>> After merging the drm tree, today's linux-next build (x86_64 >>>> allmodconfig) >>>> failed like this: >>>=20 >>> The driver needs to switch do dma_alloc_noncoherent +=20 >>> dma_sync_single* >>> like the other drivers converted in the dma tree. Paul, let me=20 >>> know if >>> you have any questions. >>=20 >> I don't dma_alloc* anything, DRM core does. I use the >> DMA_ATTR_NON_CONSISTENT attr with dma_mmap_attrs(). Is there a=20 >> replacement >> for that? >=20 > dma_mmap_attrs can only be used on allocations from dma_mmap_attrs=20 > with > the same attrs. As there is no allocation using=20 > 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=20 after allocation. In practice it works just fine. > Where does the allocation you try to mmap come from? All the=20 > 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). It's the dma_alloc_wc. -Paul