Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp733346rdb; Fri, 2 Feb 2024 02:15:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfC6oU6qQTeQIotvjGbRR20xWv8rdKT3vAFMRz3YXKNZFYiq4Xx4NKgg13ll45bNtldZaN X-Received: by 2002:ac8:5887:0:b0:42a:3093:1a23 with SMTP id t7-20020ac85887000000b0042a30931a23mr8167458qta.64.1706868944530; Fri, 02 Feb 2024 02:15:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706868944; cv=pass; d=google.com; s=arc-20160816; b=Fn58/vYDyYwvVX4+Ee1zvRE+q/vm+yjpF1Yhixw0qJaaCSLn9Atq4+hYIbeyHM5puk txi9C6fw9sSR6nnvShwG54kmHFY0KdWf7LL6YC6h2GsqedL613QIYcxNthcGqhdw4+Cq dZOmyVvpUUIzFxDfxywTDJhej54iPX04AH2e/7bn6qHw8TLaA8zZLpIoe/r4eaGhBaoJ AT4AwJZFJIdPBG5rwA49/vYL2kqabsUJQOkfC/eF83INYrONa+fMoAtg/rSloo9FUD4y UrqVCUzrYn2dAG9ZqSWXLsUrWMTOz7UrZ7AtrU0vhBL4AGiItLnyIBfX/HFOHk+Mo3VF hdtw== 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:to :from:date:dkim-signature; bh=h7pf+bNSUITFu2AR32lONlZfWSLcGLsu9hqoSGsNIuw=; fh=DA/trQ8ydyFj0Wg0eod85/0Jf3l7iivXwCEdfJl8qjo=; b=wbqdfU6JLud63rxeArHgrPsQ3hG3Gpk/30+Le6lCRC1FAfs1OiBVx4HzYpsoxdYI8F EuolhBz38EPTMdSfM+69eBN3ayqbOpjmwsHTtWG+1P6OiUKKhn6UQr6srvRdTxkQY2/K Z3fnMK63s+5IGqdCUkqUgCVrlawalQxYHC/rbbExDFOZZ2T+QbH2+H0RZyLzb50bhgVr xRbqAQ9pCpdJhaTl/U0TZ5I/aaBDmIrcGHeNwNo2Bn7J+jHa6CnQXegByMfxU14lJVIa loaWZB/ZL2TrpWjAcxeH+51daXBsvH9FUevHQ6OPGU9O8sba1+vE0zA80fnMe/g6oBI/ 2qUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BwctDpLZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49655-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCV2DqKwq//yQkuDaCpilcel0asAinn2FPwa5TnHDoQXu8m167wsUyJMBb1AyxHZZtjlTUip9VgSdBxQoMaUAHQqB+g/hb1dWPBvaRZb0g== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s3-20020ac85cc3000000b0042a2e1312a0si1654689qta.216.2024.02.02.02.15.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 02:15:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49655-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BwctDpLZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49655-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 405321C2554A for ; Fri, 2 Feb 2024 10:15:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B3257A71E; Fri, 2 Feb 2024 10:15:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BwctDpLZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2FF7E22067; Fri, 2 Feb 2024 10:15:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706868936; cv=none; b=uaUkRNazRZhFxktl7PL9RDwSTFhH2/jDxYBGUmqmxNMYSwZIErbHl148/hwyWnIBYsaHolM6NjZBFUD1hkssPEB7i5SmF/4OLN+ugoywzkW37Z+5rgMOxntzl1GOKq0/oe7yy42rAxf56EOKpQMehTkCjqAsyBcYzxMP8moyhcI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706868936; c=relaxed/simple; bh=h7pf+bNSUITFu2AR32lONlZfWSLcGLsu9hqoSGsNIuw=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IDM8YzlqwvQOiCfO2ADK9w0vb3IY6tsNddFX+aLfVqtTdiEiZmPKb6dbnIRCPaXxt0rGgZisCoudo+tSEL7yOXO8tGe6EW9zQtMUxRF4wpkWkBI1PW/Sfs+ALn43HciRoc3SdOkMoSFjMX0CoOM14Je4Zxk8gZ/ICavb0c28XG4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BwctDpLZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78767C433F1; Fri, 2 Feb 2024 10:15:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706868936; bh=h7pf+bNSUITFu2AR32lONlZfWSLcGLsu9hqoSGsNIuw=; h=Date:From:To:Subject:References:In-Reply-To:From; b=BwctDpLZDWbJsBJE0Xz53F3PiYQyC9raKY8A5S4MwkSs+RfXGTziIWaKODe4jkcTk 2XxNS4Jm+epJfybsgeyMcQvNg6TIP577c6yUsq7F/sFfVU/slRZ/rZ7+kiwSkdZNNa 5UIOpiuA22uAk9YV8gzLu3wWEEbvZ777KqhmFR+JUhDHyLz3YZmbmLAHr8k8ImLbvW kFXgBHxm8KkXsegqI4P9xpt0GqdqUMvMfzMfxbHiApgLiqDMVO8yswGelI1nKI3YmW mT4ydLO/nrtJWQZhWQlym+4vtn5kh+NGAlIRQtwOi4YGqd+1ev9bQz+QAeZgOK1fy/ aJ07bsCNFoa0A== Date: Fri, 2 Feb 2024 11:15:33 +0100 From: Maxime Ripard To: Abhinav Kumar , Jani Nikula , Jessica Zhang , Neil Armstrong , Thomas Zimmermann , Sam Ravnborg , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, David Airlie , Dmitry Baryshkov , Rob Clark , Rob Herring , Krzysztof Kozlowski , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: Re: Re: [PATCH RFC 0/4] Support for Simulated Panels Message-ID: References: <20240116-jz-test-sim-panel-v1-0-f9511f46c9c7@quicinc.com> <87cyu0qn81.fsf@intel.com> <99705d73-abcf-6d41-3d50-757e706cf1fc@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="x2i24xsvgdspxesl" Content-Disposition: inline In-Reply-To: --x2i24xsvgdspxesl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 09:53:13AM +0100, Daniel Vetter wrote: > > > > > > Wouldn't it be simpler if we had a vkms-like panel that we coul= d either > > > > > > configure from DT or from debugfs that would just be registered= the > > > > > > usual way and would be the only panel we register? > > > > >=20 > > > >=20 > > > > No, we need to have validate actual hardware pipeline with the simu= lated > > > > panel. With vkms, actual display pipeline will not be validated. Wi= th > > > > incorrect display pipeline misconfigurations arising from different= panel > > > > combinations, this can easily be caught with any existing IGT CRC t= esting. > > > > In addition, all performance related bugs can also be easily caught= by > > > > simulating high resolution displays. > > >=20 > > > That's not what I meant. What I meant was that something like a > > > user-configurable, generic, panel driver would be a good idea. Just l= ike > > > vkms (with the debugfs patches) is for a full blown KMS device. > > >=20 > >=20 > > Let me respond for both this question and the one below from you/Jani. > >=20 > > Certainly having user-configurable information is a goal here. The end-= goal > > is to make everything there in the existing panels such as below like I > > wrote: > >=20 > > 1) Display resolution with timings (drm_display_mode) > > 2) Compression/non-compression > > 3) Command mode/Video mode > > 4) MIPI mode flags > > 5) DCS commands for panel enable/disable and other panel sequences > > 6) Power-up/Power-down sequence for the panel > >=20 > > But, we also have to see what all is feasible today from the DRM fwk > > standpoint. There are some limitations about what is boot-time configur= able > > using bootparams and what is runtime configurable (across a modeset) us= ing > > debugfs. > >=20 > > 1) Today, everything part of struct mipi_dsi_device needs to be availab= le at > > boot time from what I can see as we need that while calling > > mipi_dsi_attach(). So for that we went with boot-params. > >=20 > > 2) For the list of modes, we can move this to a debugfs like > > "populate_modes" which the client using a sim panel can call before pic= king > > a mode and triggering a commit. > >=20 > > But we need to have some default mode and configuration. >=20 > Uh, at the risk of sounding a bit like I'm just chasing the latest > buzzwords, but this sounds like something that's screaming for ebpf. I make a half-joke to Jani on IRC about it, but I was also being half-serious. If the goal we want to have is to fully emulate any panel variation, ebpf really looks like the best and most flexible way forward. Maxime --x2i24xsvgdspxesl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZbzAxAAKCRDj7w1vZxhR xeDFAPsEkAg9JZXmG4PMCxnBcetbzTCgjtu7yt2xbAS+3Bv5ngD/ViFSXXlR9Y10 yvcfom7OcYMCE0WPcHPfQCNuRiirvwM= =+MTv -----END PGP SIGNATURE----- --x2i24xsvgdspxesl--