Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2602638lqz; Wed, 3 Apr 2024 03:09:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdZxapp5p1vyICySt9Smy+tY2VFkUObxOcQMvrzzydUoSuLK099/dHNUccHxTn3xFJb7WOhilJQUzAsqP9Y/S8WzOk6tbY8JNsL2fAgA== X-Google-Smtp-Source: AGHT+IFi+e4UvJiLm7D386zEgnEO7bo5Z2EKDmgCpP4ctEU2u6QQNBdblJuK4tTbNL2lKtgz8zCY X-Received: by 2002:a50:d753:0:b0:56d:fc9f:cca0 with SMTP id i19-20020a50d753000000b0056dfc9fcca0mr1178622edj.41.1712138986192; Wed, 03 Apr 2024 03:09:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712138986; cv=pass; d=google.com; s=arc-20160816; b=ONk2U13G56s7DRZ+8+5ePsQg9BSXq1amUseRlDZvGUFQPSM683jUZb9itJ6W/oucEE 0L/dDw5W5B4yZmd490zjASeMYIthLbiC/nYJ0Q7TyjdrX3rfHQzCw/70E0OsIPKgCj8R bILKK1PwU88uQ1GAKIyLHtgs2jNsIAHHXCuCzRk37hgfY/b+gLM2uBIFntR0wLLvCtbw JOayz1hUAPh245Ezacr4fblFyZNfk1WpsiRGB3S1K7E4FDyDdKQKYI7Zb6n/E/jb+Zhn nuebqa1r+/y5FWBnzm/Bd5R3mVHtRvhbYQNo8m+o6hfYN2MglAFSccBoeFaksJqXO7iw 9MLA== 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:cc :to:from:date; bh=3IdNPytqTFogTILXlcrWU3Wj5HLZLOHJB+B5zDDZoU4=; fh=VyAv4MXqqCUVajaTa91XNW3HtMLtv/8y1MWp72AOgns=; b=AGXgg1dk4MBUQZD+w+MvU95no1NlltDmsfowN3F4FB2Y+aWY/Z/cdfwTEb/26/h3Yh TXJlUq+rbRcBGJXMkyG0CUoQ2qAmyydCTjJVd0x1cIlG3uzsI3I72vmyFbH1vzsHR6hb S1t/TrUZ1tvc6yxCw0E1rxWdnGBe2MeIskdozUWl+P1iwrk5CxPhbBZHqMApSoeVnE9h /W6k34V/LOLgWviNJj/IXaz+4ozyadICebld9B3NZqtB74xGSImeNeL6Zj8C+iOt9lLX H2C8SZ460RhgFVvQSreByXaqF5DTP7hCLarKk40uauPCZ+dw+TKAyH5HYkWZeV/oO6uk uvcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-129500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129500-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y9-20020a056402358900b0056e0dc9561csi43825edc.437.2024.04.03.03.09.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 03:09:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-129500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129500-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CA7D11F23478 for ; Wed, 3 Apr 2024 10:08:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24BCF137C47; Wed, 3 Apr 2024 10:06:10 +0000 (UTC) Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [5.144.164.166]) (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 AB5B113AA27; Wed, 3 Apr 2024 10:06:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.166 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712138769; cv=none; b=nZxZz3VcJGg74fhdqYe/LdWaVed2/g0JbHAcsDi2zU7ne9IOEbuKgFexMPOMpllR/MNic5Brg1Own/H95PmqobVrCklawfEOQqSzRFnUl9cFw6iH0+rYxUylwhigRcZTcodAaYTBFNrS2ZQOhmGQkLKYhEuR7Mc9R0bPgfHnRqo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712138769; c=relaxed/simple; bh=PtsQ7BPoEhJdj1DTbguN0BEbC+PRqVWUfaWeLRN8KX0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=V2BaEO3egs+We93TZMvJBLyI7gS5zK93axSr29PBMWKBBoHSk5zwx34m6qnT+lae8QQdot2qHll1P5YMUlR9EXs2Adz/LNMQxE+FsykabBcasBIBjtZwlEjUtFSwOZ59ZFs3EwtP+lS88rfZo47lLuS+ksE/iAfO0Gc3QojIFQo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org; spf=pass smtp.mailfrom=somainline.org; arc=none smtp.client-ip=5.144.164.166 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=somainline.org Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id C482D3EDD1; Wed, 3 Apr 2024 12:05:57 +0200 (CEST) Date: Wed, 3 Apr 2024 12:05:55 +0200 From: Marijn Suijten To: Dmitry Baryshkov Cc: Sumit Semwal , Caleb Connolly , Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vinod Koul , Caleb Connolly Subject: Re: [PATCH v3 4/4] drm: panel: Add LG sw43408 panel driver Message-ID: References: <20240402-lg-sw43408-panel-v3-0-144f17a11a56@linaro.org> <20240402-lg-sw43408-panel-v3-4-144f17a11a56@linaro.org> <3hh7nfqflj73422q47p6do7aiormxwspwkfg557epeqn2krtcc@dsufsohfaz4l> 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: On 2024-04-03 05:37:29, Dmitry Baryshkov wrote: > On Tue, Apr 02, 2024 at 11:17:52PM +0200, Marijn Suijten wrote: > > On 2024-04-02 02:51:15, Dmitry Baryshkov wrote: > > > From: Sumit Semwal > > > > > > LG SW43408 is 1080x2160, 4-lane MIPI-DSI panel, used in some Pixel3 > > > phones. > > > > @60Hz? > > With the current settings and timings I'm only getting 30 Hz. I have to > double the mode->clock to get 60. Still seems useful to mention (here and in Kconfig). The proposed driver emits a mode to userspace of 60Hz, maybe the commit message should say that in the current state "something" prevents it from going that fast? Since I keep forgetting (because it's not mentioned anywhere) that this is a cmdmode panel (or at least configured for that with the current driver), I'd again suggest to play with sync_cfg_height. If setting it to 0xfff0 results in timeouts, your tear GPIO is misconfigured and not making the MDP aware of the actual tick rate. Otherwise, more likely, just bump up the porches a bit, based on the discussions around reduce_pclk_for_compression() /not/ accounting for transfer time in cmdmode. In one of my drivers (pending eternal cleanup hell) I inlined the calculation to reverse what the "right" porch should be based on a downstream clock rate: https://github.com/somainline/linux/commit/85978a69cde088a23963c03758dad5f1a2e79bab#diff-a9ac8689e45c59a4fe9aa150e4bd53675687f5c8b4aecb40b5b5b66b864257e0R353-R366 And separately, though I cannot find it, there have been (more accurate?) calculations based on downstream `qcom,mdss-dsi-panel-jitter` and friends. - Marijn