From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0CF65CA5FC4 for ; Fri, 2 Oct 2026 07:30:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Cc:To:Subject: From:MIME-Version:Date:Message-ID:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pk49vmsIM+yCxOu67mrioHkagQNao6fvAH0GFEMFZCU=; b=pJAjahyr1N34A2uU0gl8cZYLJ6 lTXwDCazBms6OEz8lyKgB3+FwCdDHjZq3rizpzbX190cHgAX9xshIpX93MPPvVorap4vTFbqNyOlD UQKcuHoX0Hdxrxyec/pvvdwFH1YHtBpcR0EHCGdFQt36vTr17fBQAROnGQfjJLEYQiwS/z2f1bWbb rALSKxoKG0FV8sjhu/ymYh7Cy30hkmiYjwBNYxN+by2UZZ+bDgo5tVrsv7KMaClaKu39mwWQWlztg n1328p9flDtC9h8sT0+fygW2HbaPRG59B7J59ojX0RNM+tCob2Vn+hTdaxiGM3nIDwSY0br4Hzwiu XlKnM/rA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCXii-0000000ApOK-2H30; Fri, 02 Oct 2026 07:30:16 +0000 Received: from mail-wm2-x10.google.com ([2a00:1450:4864:31::10]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCXig-0000000ApNK-1Nic for linux-arm-kernel@lists.infradead.org; Fri, 02 Oct 2026 07:30:15 +0000 Received: by mail-wm2-x10.google.com with SMTP id 5b1f17b1804b1-4a00713639cso40860515e9.1 for ; Fri, 02 Oct 2026 00:30:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1790926212; x=1791531012; darn=lists.infradead.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=M5xFamAExzicV+G011Xh/vLNe9Shdot5IC4k1ysFT3/wNl3ShI2TlDdxrVXdezyN6y M5selK1q+0YHKQoS3JDjMcCd6isAddWINVJq4pzUozzyrkeYY45TCiIrBDJEfyXXbxAB sng7cJLOF8CCelTKiuC1FMpWsJISkxEpaC1sdq6AKXeS39fivej2pThh1WmXYg0ePra+ Js1g5V3lepJgtkV/Jm54pNkxQGNK93XeJ/2hU6Sn1JhnyxfFg7xA/9KHCqklQrJKwbXt CM0mZIn89M6LabAV4U+68gtTK5oQVbqpk1O5OHHllxicfo9I7s1+3+XJ4j6JetMmQdLj JtiA== 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=j5ugtWMHZVpdMwMDbwf9QMc2MiR3+RP4rct/F+O9WjNsb2GT+YAhfNOcre4VaMYqsv zEArM0H/AT/9MvDPDISRQcOr/UfEyjxJDBgBZJRuUZ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bmULeSefXu 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 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: 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.armstrong@linaro.org; keydata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ZY 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261002_003014_417967_B49DBDAA X-CRM114-Status: GOOD ( 21.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Neil Armstrong Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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