From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63F8E16130B for ; Tue, 7 May 2024 15:15:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094911; cv=none; b=BZEJGWiM8UNew9q6S1uU4IUkgrkfcLwyr7VUb23NCUth9TJ/qgy2hFJVQKuDCqyOWRqL5Tp8FgFb6FxczMmVIkMvdTgCo82mORtu799Q2V067uMKwbiuUgLvJSiKKquOb+Jj2LFIh0ImEYiMEBlIP2dlYk0Quja8blNsItHEElU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094911; c=relaxed/simple; bh=IcrNwEYyvx0qglVf0QIVfb8UjmxLQ52vtI1NNKvzKZE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JO4o1DuA/a+Dtpeviq1Eic+CaW7vVxj+cHafH3wM+MDLBsc3Si9ETQ1diUmMc+QWQp/Oca2JaNFcU58IW9S/vzBp9B8T6wDW/fs5zZxQQkDvZ++Fi9YejZ7fGFLpoCpUQZQo+7hqa8ongffjyW7qlvbRP24oPKJOQGxpJFEnNaI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uBeyiRVv; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uBeyiRVv" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-41ba1ba5591so24712995e9.1 for ; Tue, 07 May 2024 08:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715094908; x=1715699708; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CnDKUzJ1K4d32Zvr481HYLHQmHX8rOjTCcbf7ypp6Tk=; b=uBeyiRVvgK/DiKvZGopZ/Un5K6Z2SoV5WdABrpKslm0y1k38HqCjGjnYqOGD1Nfmpp +omdhuod0nP3T2x8AABjqdXb4YwptzwxkmDermFBetKevz6x+ngv/vcVAcmII4tqyqvX gDKmYgCsE7sme4a18tFk6z+iyP1RpDkDssdfRAwb7Nee1QXbFVdIe8VAhBFHuSJ9VpKT d467eqHdisumtQyp/oGFrUdFsS5j7N1RI7XzdeyLAHVcGIKaB4UZb3fewGtF+w4EpP7c +esvzZhqOR2OTWm+Z6IHkOf9pN5EgtMxFC/f4Md8pRt2cQEU44rmm4xgOQ+QeKZB0tR1 CW7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715094908; x=1715699708; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CnDKUzJ1K4d32Zvr481HYLHQmHX8rOjTCcbf7ypp6Tk=; b=vl3YTik/uVSy1mPXzw7V7JR1uOCAGb8iS44eBGmQ/1v1G7oULlis+mbpu5LXFWKcCZ 1HKsK2iwKpRpn8mX3HWO/kCA240gEu8Iio+009IZkVqeXIMvsfrrIel7ACzShNAmPzlx 8RWlJIqQlMd8lRf2H1jiW9Gn7+iHkWva472oQts9dNQqgVbmr1OyUkkw8OGvcD/3wg+q BfPFOwjo09DXSbBUbqyn6tSCCoD7ZY3EPZqQomcmKqkH/u0K8fsXmbmlEsGRRKWi4isG ojNnZovxf3/ACwN/FWN+rZ8zbUaRU/4KfT/RtqYw3rasOVG0WQnYH1+P6JIKL4VX2w/w oexw== X-Forwarded-Encrypted: i=1; AJvYcCUQIeVLd5yybuEMtjLNEofUiiF2KXWZwr3/jCyHi/TrDYd00/fEY/ga3OiAckbeRr82F8vfp62l/6glTH4X1cUVgiO/K/pxjJANUtM= X-Gm-Message-State: AOJu0YzDKgJchFfspRtgCbCjlZ3AxXCbEuICmLMixpUJZ8v9RbXuf2VQ MjUN6OjdXYE0lcckvug1fCdDdgQhVJCX7KffWy4RPlvy1Cf9mSpcvXKXpXHlCcs= X-Google-Smtp-Source: AGHT+IGlcCfFKvdN6aJzvhdwXvMxfsPlGA98qekQycZhIaKPKQlXQ9xf4cXeathWNzjqKmhDo4q4+Q== X-Received: by 2002:a05:600c:511a:b0:41b:b77c:679 with SMTP id 5b1f17b1804b1-41f71accb88mr961465e9.37.1715094907784; Tue, 07 May 2024 08:15:07 -0700 (PDT) Received: from [192.168.0.3] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id g7-20020adffc87000000b0034d1fe44278sm13176378wrr.39.2024.05.07.08.15.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 May 2024 08:15:07 -0700 (PDT) Message-ID: Date: Tue, 7 May 2024 16:15:05 +0100 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Safety of opening up /dev/dma_heap/* to physically present users (udev uaccess tag) ? To: Dmitry Baryshkov , Hans de Goede Cc: Sumit Semwal , Benjamin Gaignard , Brian Starkey , John Stultz , "T.J. Mercier" , =?UTF-8?Q?Christian_K=C3=B6nig?= , 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 , Maxime Ripard , Andrey Konovalov References: <3c0c7e7e-1530-411b-b7a4-9f13e0ff1f9e@redhat.com> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 07/05/2024 16:09, Dmitry Baryshkov wrote: > Ah, I see. Then why do you require the DMA-ble buffer at all? If you are > providing data to VPU or DRM, then you should be able to get the buffer > from the data-consuming device. Because we don't necessarily know what the consuming device is, if any. Could be VPU, could be Zoom/Hangouts via pipewire, could for argument sake be GPU or DSP. Also if we introduce a dependency on another device to allocate the output buffers - say always taking the output buffer from the GPU, then we've added another dependency which is more difficult to guarantee across different arches. --- bod