From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 8FD884FD263 for ; Wed, 30 Sep 2026 13:38:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790775500; cv=none; b=LC8pTnO0AWia6nfDmuDhbYXY0yz4AvngKMM5uzqx2mk+/lzu5olV0YwHdkft9MH7eUqkZo3DATZfsysJx/dZqHwukCPrpd8SWwaJQpE5L1OMJ4nvUi0lelOP0rOBjW9q3XdxS9VGTPzbVKc+2bhxiuL29IsFroFSPjKtOdmM5cU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790775500; c=relaxed/simple; bh=X7la+HH1GjnjdSVfPyWqCoHRCQIBLR7gK6AUVRnTe4s=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=OWFZGWkPppYcmZqJEFh7HkVTCxFH6b0632tSa60zgfwUVCqNBOQQWDoEEsn+VPGQ8zrkA4NfESf+cDwJYPXl43mz3EqrX6Iq5y4ne8Ml09FiK1pa/pK3Zv2P/khTP6KuQX2jEPVVTPS6dnlLwJVNyi2ztT/BaWzn/ER6chIQ2kg= 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=BWFvwu+m; arc=none smtp.client-ip=209.85.167.45 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="BWFvwu+m" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5b8f69a0af6so1815746e87.1 for ; Wed, 30 Sep 2026 06:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1790775488; x=1791380288; 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=JZB4UkUo4DToHt4/+zjrF9qsPrLf22VKvL6EK3fyUl0=; b=BWFvwu+mA48XlR4q6NoXFkwjjaRaW5oOO+p8JNB2H0TmOxdaRGb4UmeTJxJZ/XnXgs WywuK4ORCOEeiIxEln9i930lksOUR9FAMM4iCudCWSOia74zQHiVLyjAo04w4b8PEEc/ BE6uHjom5gX4m7Mi6Bplb1Tu8wGmeICjUTLD4xu3RIR+FN6gc9oHy73X9E50vNyNPDf7 smSWwZ27CsZ/uwTCMv5sRE3NpgO5X+2M/OfmZzlqmMZdXiihd/PPJE+8PKu39A670iem qoK+tmkDM4zAUmNrYtYwakJiMdrn7dl+WngINleWdLArvoAFUsVDCc9dHYrTtZp5wzkA SIrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790775488; x=1791380288; 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=JZB4UkUo4DToHt4/+zjrF9qsPrLf22VKvL6EK3fyUl0=; b=EwcCtcd+50dcXF/wExhWPHNkEzW+nP01ZclXyMWw2Q1NOabPvagvuSl7hRbd0Jm/FP MIHvhPJdZb/hvPD8K6gwGV9hm/vBUNsa0QvYFWePZwy96K+ThSh7Xi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mbHH X-Received: by 2002:a05:6512:39ce:b0:5b8:f9ae:1816 with SMTP id 2adb3069b0e04-5ba405f319dmr575166e87.17.1790775487315; Wed, 30 Sep 2026 06:38:07 -0700 (PDT) Received: from [10.21.51.184] (ipagstaticip-88fc351e-cb28-db3e-3f52-ad13c70f08da.sdsl.bell.ca. [142.127.77.63]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5ba3fc02f2esm360270e87.77.2026.09.30.06.38.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Sep 2026 06:38:06 -0700 (PDT) Message-ID: <828c9108-2db1-45a6-9301-19159a094301@linaro.org> Date: Wed, 30 Sep 2026 15:37:58 +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: Javier Martinez Canillas , Maxime Ripard Cc: 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> Content-Language: en-US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k11qO6cyJE13zeNFoeY3ggrKY+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 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. Neil