Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4795557pxb; Mon, 15 Feb 2021 01:08:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUVU4STF6RncVvVwlI/o6bGNFClL0LgbPtAdMMwql6C825MbPyzXguWmN3g5GJuGj30jxM X-Received: by 2002:a17:906:1447:: with SMTP id q7mr15353547ejc.27.1613380125496; Mon, 15 Feb 2021 01:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613380125; cv=none; d=google.com; s=arc-20160816; b=f718jcO8jK+LZFrj4vScpzgSMOJHk/8pBeD+Qo4B8VRzqqnw4IViILArqciutN6XP8 BT4X+O1tKoioVQe1wWf7RNYE2LeYP/hpFEfk9ZqF43J+WrltMa6T4LukRFqugDDUXhyV 3aw6YIFHO31DuEIjiE8E6sCCAeV5qcS6ZMP13Yp9K7o6Uy53IU9Hu0S9AQZkMcCbQXQ5 +OO2Fd3zfh/rZNU57/c6Qu6U+W5EvU9RwFjo1EAyx11tQhs1eNQD5VpyIuD6Ow/HlHRj QEcfYxMg2XopUBkGjlfqDt9BAzqj/Dul986Mb6PW0HNZqUKbDh11v3qAaIasu7d+o704 jKNQ== 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:subject:reply-to:cc:from:to :dkim-signature:date; bh=2nAm6Q9p3kMTXLrc/9PsknifgDbenAAUOXq3KGVIrtw=; b=neXPASs7ydU+Qkv+EklD8wBYgowP6zN6ohHhJAkRMC9pQcF7IUw0vQSv5MoOhWJRO+ FomfSHMIym4DAMbb/n7fGKN9A1igu3YhltyB8mowGMOiEgnGehmRJ4vr3C11N5uzCbvh 3AFKTJUWUDuU5jiLk6WKkyt5DKV4mqTkIy+qFwT4rbeLN22K3XFM6Zaij/qUpGVw+B3h qmShQEX7sg8jMKP/r8b7d/myww+JuADZbnbt/6NV1Qn9VOW4mstbfzaxSjjBdko9V2mJ rX0yTjEnC5FL7vTs9nfrfuBIqQMKYT5+NmLUiA4qx2bEO7e1OEB32Nq1Py2qzWdcRKdR aIuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail3 header.b=AgihlhiM; 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=emersion.fr Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lm22si5951858ejb.670.2021.02.15.01.08.22; Mon, 15 Feb 2021 01:08:45 -0800 (PST) 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=@emersion.fr header.s=protonmail3 header.b=AgihlhiM; 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=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230101AbhBOJHK (ORCPT + 99 others); Mon, 15 Feb 2021 04:07:10 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:34397 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbhBOJG5 (ORCPT ); Mon, 15 Feb 2021 04:06:57 -0500 Date: Mon, 15 Feb 2021 09:06:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail3; t=1613379973; bh=2nAm6Q9p3kMTXLrc/9PsknifgDbenAAUOXq3KGVIrtw=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=AgihlhiMBiKpn2AUSMU4MbjjTvrJBs+g1bQ2Z7b8VBvkxoiItg9javlL+V3ZfoiJg IeooACpUH4OVaTrX3hHe50R7sm6h7VarQsTDXwyUY0Kv2r0T8K2L7j6BN3BGh6YmFN PUlSgqUWc7yVU6DKZKu3NupB73Q44cDX7zsQhs/W7NO8/2MB231MTcFGSjaHuphS36 Lh6Fo5qoe2kWu5gZL9fnUkA5fFUgzM8+xnMEpFS/pw6coIuKaBSinCXUm/QS79liZU c7G7x2oaubgXNU9wYybPMmwYc+gxXHoVLzrLxg6VUtykma0fnggRK7xzshR7XzIso0 zXx+fQn+jz0+w== To: =?utf-8?Q?Christian_K=C3=B6nig?= From: Simon Ser Cc: linux-media , dri-devel , linaro-mm-sig@lists.linaro.org, lkml , "Sharma, Shashank" Reply-To: Simon Ser Subject: Re: DMA-buf and uncached system memory Message-ID: In-Reply-To: <91ff0bbb-ea3a-2663-3453-dea96ccd6dd8@amd.com> References: <91ff0bbb-ea3a-2663-3453-dea96ccd6dd8@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, February 15th, 2021 at 9:58 AM, Christian K=C3=B6nig wrote: > we are currently working an Freesync and direct scan out from system > memory on AMD APUs in A+A laptops. > > On problem we stumbled over is that our display hardware needs to scan > out from uncached system memory and we currently don't have a way to > communicate that through DMA-buf. > > For our specific use case at hand we are going to implement something > driver specific, but the question is should we have something more > generic for this? > > After all the system memory access pattern is a PCIe extension and as > such something generic. Intel also needs uncached system memory if I'm not mistaken? Where are the buffers allocated? If GBM, then it needs to allocate memory t= hat can be scanned out if the USE_SCANOUT flag is set or if a scanout-capable modifier is picked. If this is about communicating buffer constraints between different compone= nts of the stack, there were a few proposals about it. The most recent one is [= 1]. Simon [1]: https://xdc2020.x.org/event/9/contributions/615/