Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp213745lqo; Thu, 16 May 2024 04:21:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdPfKdwCF/UPhMCXpGdKgmZlEIXxjgdyHPeQbGVtdAT2GUsZPJFaaXL15vVdobZ8SBIwBDYwxr+eYZ42tUDnM0ns9txkSDgOqEqJ8MXw== X-Google-Smtp-Source: AGHT+IG2xj3q1DvoPeGgY2Mrp4lS5YNTBAVnzuOT0CF2oZDzHpKzBKj5ss6DBog0TX2eEqkkIfV0 X-Received: by 2002:a50:bb05:0:b0:572:5f28:1f25 with SMTP id 4fb4d7f45d1cf-5734d5c1692mr13240182a12.7.1715858479826; Thu, 16 May 2024 04:21:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715858479; cv=pass; d=google.com; s=arc-20160816; b=qQ22rlKgygcNVy8UZOekblxRuvlKLQYJkZgGbBF9jtnnUZHl9HPCYjXNEeV9uWNzEy sbbn//rKUFDzkqEWGIVtBGvNdfcuES2+C9QGWBnYMk5LIrtQpCpTuzo6y9P1SSdt0+S9 xn6NxogFxpuucvNizRC1NzJFM0NGoWUiMxNA4kZQGxRSa+vNpRSoqGX/+7W0WIndJNRZ vPXYGer0YmrYF1QCqAKEweUqCJDW0/xMiNt0W7s4ols9+ejOSc+XHLCQg1gJkIfci3Kb bnCaJwJg2vNcuZRMxbmM9FAK+MMyqX/kENTtYN3Zsav33k84HToVdIhUe8JZtN3qtN4y EH7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bulvhl0IBoYQbT7Kw1q/6YwiI0DJ4dQNIsjYSJ7wf0I=; fh=25EJV7PYBw/o6Dt9I9SnDLB/J8PFlGlJoQpAvZ9WmMc=; b=UGVVerNFT9aQF8SY4YqjaGvbUMedYq6ge7qAsW4iaoT8nf8QAwttlZhGYqS6WKIBil BA+yBDLry+WlrkHkdSHY7Jw4L0jwMxqdTrJYf3pLyc4y7LWLczEjql8IcOdCFWz9Je1W KRAU5lEnKWXq8dZh5cocBZ/70E+U0fRrW70h2Jg+V+8qfaZAjPiTPGDb6puRj6neP/gS 0Ixanq/T3/Y1XuJVV+IY5McjQKIxhhhd2zhZtvPgQEBMYzyYvZFHomRCZH8ozdtVJmcr hhhxFwESuhc8vbg1MytGgKDfzTNH3A4EaLgE953dVQdIpSUkqO+/9vhaX7jLWZM9k4Ds F0Jg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Gue0RRZr; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-180934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180934-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574b70094bbsi5558093a12.130.2024.05.16.04.21.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 04:21:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Gue0RRZr; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-180934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180934-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 819A61F234CA for ; Thu, 16 May 2024 11:21:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 716DB1459F1; Thu, 16 May 2024 11:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Gue0RRZr" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E472A143896; Thu, 16 May 2024 11:21:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715858470; cv=none; b=LmaeBB4g2nPr3SOmotoEKZs2rMYb5iheB3sdvSjIfkbCMJiZrgeFkq8nz66dEFLXiuMFrnsCOoIOwR5wplh8mZR2RXNbGoSdWdBs0cDSBhLd19knZqVaSIM+3oQc340g+od353X32JP5eZCt1MmFwrqo0x1s1d/1pj7HUYqCAk8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715858470; c=relaxed/simple; bh=zOS8dze4DHU+JcfmWuNExW36s1PrTMzSDeM83PQTAEo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HNrgAhmVy5LpFHJm3jBCiZS3hwFJxtxiZXGglSonkkJjyEOhurO8/tpdpl1X1j90g5l0W3uYs34qPafqiCPD+rbLv/Dcr/50OPLg+E1Hp/6m9xygp+iVXvauXGtExvYm4OGb6JxvXXRC87b0QYfgD8BMiPFdx+4b/lR152qls8k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=Gue0RRZr; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1BD7527C; Thu, 16 May 2024 13:20:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1715858455; bh=zOS8dze4DHU+JcfmWuNExW36s1PrTMzSDeM83PQTAEo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Gue0RRZrMUUTfv1S3jH6uD0PSmsbRLpG4yyPFWD3DIXNYU2EguRKev+56NuegTm6N 7ZTaGR+m0g0q+G5H+3/QBGhDxR7exhKyoV/ZrIrTylqf4XM1NMkHON/NdkeJRgfJiW 0ZOaHcJADgAdNCuAb8yDlbYShhfeAjl4z9UNm9Gg= Date: Thu, 16 May 2024 14:20:55 +0300 From: Laurent Pinchart To: Simon Ser Cc: Nicolas Dufresne , Maxime Ripard , Bryan O'Donoghue , Dmitry Baryshkov , Hans de Goede , Sumit Semwal , Benjamin Gaignard , Brian Starkey , John Stultz , "T.J. Mercier" , Christian =?utf-8?B?S8O2bmln?= , Lennart Poettering , Robert Mader , Sebastien Bacher , Linux Media Mailing List , "dri-devel@lists.freedesktop.org" , linaro-mm-sig@lists.linaro.org, Linux Kernel Mailing List , Milan Zamazal , Andrey Konovalov Subject: Re: Safety of opening up /dev/dma_heap/* to physically present users (udev uaccess tag) ? Message-ID: <20240516112055.GB5253@pendragon.ideasonboard.com> References: <3c0c7e7e-1530-411b-b7a4-9f13e0ff1f9e@redhat.com> <20240507183613.GB20390@pendragon.ideasonboard.com> <4f59a9d78662831123cc7e560218fa422e1c5eca.camel@collabora.com> <20240513-heretic-didactic-newt-1d6daf@penduick> <20240513083417.GA18630@pendragon.ideasonboard.com> <20240514204223.GN32013@pendragon.ideasonboard.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Thu, May 16, 2024 at 07:00:31AM +0000, Simon Ser wrote: > On Tuesday, May 14th, 2024 at 22:42, Laurent Pinchart wrote: > > > My experience on Arm platforms is that the KMS drivers offer allocation > > for scanout buffers, not render buffers, and mostly using the dumb > > allocator API. If the KMS device can scan out YUV natively, YUV buffer > > allocation should be supported. Am I missing something here ? > > Note that dumb buffers are only intended for simple software-rendering > use-cases. Anything more complicated (e.g. involving GPU rendering) > should use another mechanism. Sure. Even if dumb buffers may work for GPU rendering in some cases, there's no guarantee they will, so they shouldn't be used. My comment was related to scanout buffers, as I was puzzled by Nicolas mentioning how "KMS drivers only offer allocation for render buffers". On Arm platforms the render buffers are allocated on the GPU's DRM device as far as I understand, while the KMS drivers allocate scanout buffers using the dumb buffers API. -- Regards, Laurent Pinchart