From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (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 5F2EB42E42B for ; Fri, 2 Oct 2026 07:30:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790926216; cv=none; b=A0kUukegNjHqszTj0X3iw27PdjQnA+aifnO9TbkbIhg7R+h9cwn4f3vjYkM+i7tWUCt+19osrBgsidp6HSIXI0aESXU29wjcQAG+5pP74Ix2zS+bUNEhvmkAnfUbPZjgyEzvq9n2Je6o2v/9U0jSbpzwp/Z+SL/ApLMOM7ANNzQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790926216; c=relaxed/simple; bh=wMMtCDXpiqei1jhiGiPdThCggE5+d/NY6xuXJoVy9Pk=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=hCbldK8TZh0nIHMPbj6vLYuoc3Wdj4yYFEL+1GR3B2uYzO3fVepT07ryMdHDoLwjqghAWKx4wor0sUbxZo0bcvxznYspJV+ELVW6hsI1MM6ZKwLy5GKkiyQkZ58tX7w8jQJpP43V2LBKYwsgT2X0bruM2Dx9D84oXFk0qIjr2tY= 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=umkZaMEJ; arc=none smtp.client-ip=74.125.225.140 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="umkZaMEJ" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49b912df756so55135375e9.3 for ; Fri, 02 Oct 2026 00:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1790926212; x=1791531012; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pk49vmsIM+yCxOu67mrioHkagQNao6fvAH0GFEMFZCU=; b=umkZaMEJ5Al0f7F3ZLgxMWyb9FTZjKUdETJBLDl0Knr//7kXuesSl4h5D9wrMKZP9j FxpAprgOZeTFZ8/93fobUUOTYxey+otES5tpEAC8ARnNQbUpE7casSGWdo8lwi7UdLuf SnF5MC/Nn+4oNHbLEc5UuA6F3zZKp+Yaf3PTjicKoAs+0zMhZOxSPGusDXBI77lAUsRL 16pKqCabdpttYX+RuXAJOnRmVXuPfRFezuEJ0TYVRyeZuIZoqT718XMcYk2iB/+d8WuO YPYgvXo0uEn0kLUZhHNZOVWEffON6lIN1hFoJJxmK24LD244vVE1OZKd+vZqBrFXlrpn buPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790926212; x=1791531012; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to:content-type; bh=pk49vmsIM+yCxOu67mrioHkagQNao6fvAH0GFEMFZCU=; b=vPqSNa+q95rAMkuxGqCYWHRuTizifUTM2AJ0IuvBCNRUSPmAdG11l2LSr37dzu3Hud 9plLPVtB4kiL7/n8VURSK56d1PWVT7jYgUTVPkZoMsQY6mM3tzmD93Z+TciTImK1Gftm YqCCU4jF4h+JmJTbIh6A0BQnGVk8qJo2r08U3FX2x9wcOZ+WgOONKWlLwZnB2GEU4oE/ FULkxWI+BjAvLREVp086Ir/aeacx4xMFQIqOF5JQtoPIjBJh7cWc4gSCxZlj+VLCvw0Q ltvocsTZ+74me33GoUqazAcFhqAYPJWuazBrU70dXewlY1Pofkq3nQColz+QM8M3MD88 PRRA== X-Forwarded-Encrypted: i=1; AKwUvBw3vsvpaqIZIdq+IVggD0CMyFVQQsHvdOZEm+SnrAgsZFiY1En/jcMCtCES0VjGTHRQ7oq57kTCqjsSHac=@vger.kernel.org X-Gm-Message-State: AFuF++mMBQxZV2WecLrbsB7/xWFAQYG609lqRYysaGYRhptB+VkXsgJw k2UYx7KdMMymVJpmXoRqWhhpweMh2BrjVcdPPLGev5RoEjIRD3ZA3l/eacVygIe869I= X-Gm-Gg: AYBFou2Yn7RABPGRbn7VZdMUl7O4Y9qCpcTALfkgZSl0H6zi96r25AxrJAgQxZjNP+e DXRcK5NJx/F23uyus5Tr47VQF3pP5UFYb3yLyzudQRr/PjdKKzTjwFytgSnkIjlVDQ2qG0r4peY s7jKzfE1LXOw1LSLU8l66W2VFoiHieu2/rjxgxG5IQ+G81GlOy9Hg+d9RZGGxKIF0yGcuKmqPWE WeUZIXaW8auI07um927sSvIj4Nc5qvQM38yJxu95+B67mH20HMLq/QCoKE96i1MHJQtl/nXlOIk IlcW97oFBeV91FfbVDwUfc2VbaxhBNPDZaQr00wzkp+Eme2F51gD0OcCEAxx9yVQBvAufYZ5buJ R55te5IzF3ZBkY1dW2/GsIRJWKbQI5xCpLnnouQmhEZvfgbGzfnMqcz2SKpnUnN4r8Bn0GfwZse p7fX59dERkOP14G702z7XXlVjLYywxdT5/iKAEFto+r+xKGfKyR9RWdAvXiM16EVYXmYw/L/KJ9 lg2b1EqH1oxHGNF5WN8wg1Fnwie2yCLvJfXuQKdFeVoA65Dt+1N X-Received: by 2002:a05:600c:1911:b0:49c:ffab:551f with SMTP id 5b1f17b1804b1-4a0275657a1mr32220045e9.22.1790926211263; Fri, 02 Oct 2026 00:30:11 -0700 (PDT) Received: from ?IPV6:2a01:e0a:106d:1080:2f62:6d3:721b:8c9e? ([2a01:e0a:106d:1080:2f62:6d3:721b:8c9e]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48b38104e07sm3611058f8f.31.2026.10.02.00.30.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Oct 2026 00:30:10 -0700 (PDT) Message-ID: <2bd17843-4a65-49b0-9e10-7b73afb206b6@linaro.org> Date: Fri, 2 Oct 2026 09:30:09 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: Neil Armstrong Subject: Re: [PATCH 0/6] drm/bridge: Add a BPF-based MIPI-DSI panel driver To: Maxime Ripard Cc: Javier Martinez Canillas , Benjamin Tissoires , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Florian Fainelli , Broadcom internal kernel review list , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , Albert Esteve , Dave Stevenson , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <20260928-drm-mipi-dsi-panel-ebpf-v1-0-5244926aace4@kernel.org> <6b80cb97-6706-412a-b013-9423f6f75153@linaro.org> <0259fe4b-3118-4ab0-9b62-55101bfd7f33@linaro.org> <674314b4-6b80-4b3a-ac15-eefd31cea607@linaro.org> <828c9108-2db1-45a6-9301-19159a094301@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.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Y3ggrKY+IzbFomIZY 4yG6xI99NIPEVE9lNBXBKIlewIyVlkOaYvJWSV+p5gdJXOvScNN1epm5YHmf9aE2ZjnqZGoM Mtsyw18YoX9BqMFInxqYQQ3j/HpVgTSvmo5ea5qQDDUaCsaTf8UeDcwYOtgI8iL4oHcsGtUX oUk33HEAEQEAAcLAXwQYAQIACQUCTVkGzwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/1/26 08:50, Maxime Ripard wrote: > On Wed, Sep 30, 2026 at 03:37:58PM +0200, Neil Armstrong wrote: >> On 9/29/26 09:55, Javier Martinez Canillas wrote: >>> Maxime Ripard writes: >>> >>>> On Mon, Sep 28, 2026 at 10:36:18PM +0200, Neil Armstrong wrote: >>>>> On 9/28/26 21:48, Benjamin Tissoires wrote: >>>>>> On Sep 28 2026, Neil Armstrong wrote: >>>>>>> On 9/28/26 19:24, Benjamin Tissoires wrote: >>>>>>>> On Sep 28 2026, Neil Armstrong wrote: >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> On 9/28/26 18:22, Maxime Ripard wrote: >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> Panels in general, and MIPI-DSI panels in particular, are pretty >>>>>>>>>> difficult to support and require pretty much a panel driver for each >>>>>>>>>> panel produced. Most of them are pretty simple, and require an opaque >>>>>>>>>> initialization sequence that is usually poorly documented. >>>>>>>>>> >>>>>>>>>> This creates a tension between OEMs and distros because OEMs will >>>>>>>>>> typically get a new panel to react to a sourcing issue during >>>>>>>>>> production, and thus need some swift turnaround between getting their >>>>>>>>>> new panel and it being operational in the OS. Distributions on the other >>>>>>>>>> hand can take years to ship a kernel with that new panel driver. >>>>>>>>>> >>>>>>>>>> To solve this, I followed the example of HID-BPF and wrote a panel >>>>>>>>>> driver that will rely on BPF programs to perform the panel >>>>>>>>>> initialization. That way, we can ship the programs separately from the >>>>>>>>>> kernel, and with a different lifecycle. If this driver is accepted, the >>>>>>>>>> plan is to have a userspace component started by udev to identify and >>>>>>>>>> load the right BPF program for the panels found on the device. >>>>>>>>> >>>>>>>>> This is kind of late for serious applications except if we manage to >>>>>>>>> solve the bootloader to Linux display engine transition. >>>>>>>>> >>> >>> Besides what Maxime already mentioned (that most general purpose Linux distributions >>> built the drivers as modules anyways), it doesn't have to be mutually exclusive. >>> >>> A simple panel could be supported using this BPF-based driver and then a panel driver >>> added to the kernel, if is found that some applications need to have it built-in and >>> earlier in the boot path. >>> >>> I don't see why this would be any different than HDI-BPF or other BPF-based infra, >>> such as sched_ext. >> >> I don't want to add a supplementary maintenance burden for the sake of using a cool >> technology which has serious drawbacks and dependencies on user-space even if looks >> really cool. > > Spoiler alert: v2 won't. I've got the in-kernel loader to work and thus > you can have a built-in panel driver that works without user-space > intervention. So this is not a topic of discussion anymore. It will still have users-space dependency, meaning the BPF files will need to exist in the fs when drivers probes. Neil > > Maxime > > > will work