Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp345322lqb; Thu, 29 Feb 2024 02:45:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVh/Mt7bKA5rQNmcD1lz/gRnZyjEVx+RkDjBjUBaC63AFmSnpI2qsL2nEhGdr1uACHmAkI2Pl/hK07Pg8asvYZ7v+VoF1RYE3/uBw09bA== X-Google-Smtp-Source: AGHT+IG3ZlKkVRhrNLXUGPnvtocFlIEYIWUgzcmIJiD0lpZF1181n9m/l4l4IQbFDpYXbnCVHNmz X-Received: by 2002:a05:6830:114e:b0:6e4:a1fb:d544 with SMTP id x14-20020a056830114e00b006e4a1fbd544mr1568794otq.10.1709203521682; Thu, 29 Feb 2024 02:45:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709203521; cv=pass; d=google.com; s=arc-20160816; b=EqMILQO1fJMWV/EyWKji77R9AuT8qk/59ePiiMUeBSvJSxiFZ9BhsOytaXwE1R24Rz GmgOsl4MQoEYN9jJybDt+piNPiHBRb+7uSncRx58tKcGXk9KgjWkOxNGBvAxakTSwUY3 InIMRRt7pwOK62RkNrxS1utuBK9h1Cb5syA0WPeR3dY6YzZId7NA5A9IgLOYR6OR0L1Z mAppS7jHhh+fyEeI4ecLBh9Unl4hY0ZJNt+K1IpLkyROa8MDBIO6gFksBPaB7qhiTIbE zWgXLndfRiQO9NMpNqk4zrsgfTf+Ls55Hy/LY8ujTGn22cQObvxZJFPP7ondJz4KaeHT aQhQ== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=FIG7k4yYwKeN7C5fU4t/ffavSfw5nunyOq/We0rginA=; fh=X48YZBaWuj+ZP9vmJ+hMtokxTSwS15CVIOBeEWEA2+M=; b=zjQh53G1LDvJqi08T6tVvFF/3FjSToLfNtTMuN+yNvzfVdxVvZcmDkvZyIYINvufjc xa1MzocL55fUf1XqM27l9SXA2f4avNnSlpftT/Pz2fcuonPgowvarj3klP8q/PZgLIKE j/pcqNNZVsv/4y2ZevRB9ZK0iXjXkHVfOSG7Y9149xPiVMP9SBspaiFokk8PfzdddDrS qCtc2tObqXsMfJut0ePaonfBkDerIwS6BJUm7tqKCWl5pC02wHpEZQQZfhX1G26R3K2P J7GmSfbjwSfC0b+elzNTJMafU1+OaS55q9UV4QPrzfoKuVnNBtC/uF+iyK1sXoq6i0s0 GEVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=j4y3ToAa; arc=pass (i=1 dkim=pass dkdomain=ffwll.ch); spf=pass (google.com: domain of linux-kernel+bounces-86570-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86570-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 136-20020a63028e000000b005df59056fd8si1095969pgc.517.2024.02.29.02.45.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 02:45:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86570-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=j4y3ToAa; arc=pass (i=1 dkim=pass dkdomain=ffwll.ch); spf=pass (google.com: domain of linux-kernel+bounces-86570-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86570-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 53706287A52 for ; Thu, 29 Feb 2024 10:45:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8ED9679DD9; Thu, 29 Feb 2024 10:45:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="j4y3ToAa" Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 0BD84111E for ; Thu, 29 Feb 2024 10:45:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709203513; cv=none; b=hTdxTo7s9+9DAxHFJLRj1InLCia5m3WzJZ7K4KxH32wF8vXqoi1BrEk+DSmbKFWwnLLkem0rkYdafZhmF08POvj2yZwGcY6cF6WNeFMkN9F2G098/wYZv0K84PbIj1WsGkJ7Mgg4Bv98k68YUS3CJ4pb7KMmHV0cwUEeo+SreXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709203513; c=relaxed/simple; bh=U8TUeUeS8Mpm6yPKLA1adAb3ghUX2OrwMfDDLfDi1LY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=riwAsWOX92xiEVP2Ihfeqw6/iCX4RJhhQ5tDou3PnK290auwH9RqvC2lEsC/+bxC1nkLBalHgb08Pl95rWnjy1/o9Si9hteMEKMFlqKsjDkqUk4/lf0kuldZ77a3CO2PCEnNMgGbtjiAd3bcFu55fXgvq5stx+/GN8uFGcKP4wQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch; spf=none smtp.mailfrom=ffwll.ch; dkim=pass (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b=j4y3ToAa; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ffwll.ch Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-33dcc82ecc1so171120f8f.1 for ; Thu, 29 Feb 2024 02:45:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; t=1709203510; x=1709808310; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=FIG7k4yYwKeN7C5fU4t/ffavSfw5nunyOq/We0rginA=; b=j4y3ToAanNVA2PLj59dKSos2L73j8vnp3qiC6Pz3fQL5UmmQXxEIRHfVn63TUL3W03 boID2IOKmFJQENeT5OlyRp/YU8g3mELIVJHYD6ytgxWBT96KbFl+HAZZvDJoZVyZnsv0 ncQN+2r12jAyYytlz89hbhOLfNaJ30yrUE2NA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709203510; x=1709808310; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FIG7k4yYwKeN7C5fU4t/ffavSfw5nunyOq/We0rginA=; b=ZK9WxYFsHD/9W5zf16G1EKmt4n4SBvUASQm6eKszXjZ/w7fcu92wq6utPlUT/zgXQ3 kic76Db3ZZ4SixYtk3c2DKrMij+sHKFKLUiuiUPSowmcqcME70GMS1z1EFCpHpi9Kal6 t9eb9nRxL2X9Uc2nxaBeHaLj2IL/Ii2ba0/67k7fSZquuy91DDEmqYrnZGONC4ftEO1x Xrm9otquP+/QCPfCEeXzf/2C1G0vbsdKlV1mcrB5WcnPEykkO4HyAxkqPdNticdSx0i/ 9jj5/enhot8TG5BPxJyggrMvkQu+EXhMeW2cSNkTwLi+krpcNsxP4qqtj/TFEkyR1l3x KMIw== X-Forwarded-Encrypted: i=1; AJvYcCXp5zgELc90m+DQlCMKc8hhENlveObNlG5qH4udxmgbiEVU2Fj1Tu1urae9vHfIi63CpQvNfMAQ+LjnU33md3LRO0pbedZm7xj6S4/V X-Gm-Message-State: AOJu0YyR6eqHH7CFnrBPIRZ33qB/EJ+BNARv9sv2S1ae2JW+p8u4vbgA dqY7wQqexachlsdm6aw2GiIfPZgUrQRmt2C+PuE8jTzZMB9Oroz83VJ6qbIVJLU= X-Received: by 2002:a05:600c:3b1e:b0:412:9a51:d5a6 with SMTP id m30-20020a05600c3b1e00b004129a51d5a6mr1367841wms.4.1709203510274; Thu, 29 Feb 2024 02:45:10 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id jp21-20020a05600c559500b004126101915esm4807415wmb.4.2024.02.29.02.45.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 02:45:09 -0800 (PST) Date: Thu, 29 Feb 2024 11:45:07 +0100 From: Daniel Vetter To: Jessica Zhang Cc: Maxime Ripard , Abhinav Kumar , Jani Nikula , 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: [PATCH RFC 0/4] Support for Simulated Panels Message-ID: Mail-Followup-To: Jessica Zhang , Maxime Ripard , Abhinav Kumar , Jani Nikula , 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" References: <20240116-jz-test-sim-panel-v1-0-f9511f46c9c7@quicinc.com> <87cyu0qn81.fsf@intel.com> <99705d73-abcf-6d41-3d50-757e706cf1fc@quicinc.com> <6470960a-dbe8-43ca-889a-b5a7cc934569@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6470960a-dbe8-43ca-889a-b5a7cc934569@quicinc.com> X-Operating-System: Linux phenom 6.6.11-amd64 On Wed, Feb 28, 2024 at 01:49:34PM -0800, Jessica Zhang wrote: > > > On 2/2/2024 2:15 AM, Maxime Ripard wrote: > > 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 could either > > > > > > > > configure from DT or from debugfs that would just be registered the > > > > > > > > usual way and would be the only panel we register? > > > > > > > > > > > > > > > > > > > No, we need to have validate actual hardware pipeline with the simulated > > > > > > panel. With vkms, actual display pipeline will not be validated. With > > > > > > incorrect display pipeline misconfigurations arising from different panel > > > > > > combinations, this can easily be caught with any existing IGT CRC testing. > > > > > > In addition, all performance related bugs can also be easily caught by > > > > > > simulating high resolution displays. > > > > > > > > > > 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 like > > > > > vkms (with the debugfs patches) is for a full blown KMS device. > > > > > > > > > > > > > Let me respond for both this question and the one below from you/Jani. > > > > > > > > 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: > > > > > > > > 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 > > > > > > > > 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 configurable > > > > using bootparams and what is runtime configurable (across a modeset) using > > > > debugfs. > > > > > > > > 1) Today, everything part of struct mipi_dsi_device needs to be available 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. > > > > > > > > 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 picking > > > > a mode and triggering a commit. > > > > > > > > But we need to have some default mode and configuration. > > > > > > 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. > > Hi Maxime and Daniel, > > For our current sim panel requirements, we can go with implementing the > configfs first then add ebpf if requirements get more complex. Agreed, this is definitely the pragmatic approach to get this going. -Sima -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch