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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 8ED0CC0015E for ; Thu, 3 Aug 2023 08:52:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9068010E5DB; Thu, 3 Aug 2023 08:52:03 +0000 (UTC) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by gabe.freedesktop.org (Postfix) with ESMTPS id EC1A810E5DB for ; Thu, 3 Aug 2023 08:52:01 +0000 (UTC) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-99b4865ad55so18806866b.0 for ; Thu, 03 Aug 2023 01:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; t=1691052720; x=1691657520; 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=BGbNwddyJIbTWPXRqz0uovs8m1zlRfKLT7WMyoOKIRE=; b=a+wYsHDdsV1GNn/TSThCcwLN/2U8JnEHnckHwtKYcO4Mgf5k2o/fwUdi5F5Ubvvffk vbSnX+R2vrGAkckz8Yz1PkLrRo049vkcKKJSNKl1RhP787Mxvjg5xvo+nc2RolnykHKI Fv1RsK7mcFSYhzD5T/AKf27po9OpENY1aJ2Lg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691052720; x=1691657520; 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=BGbNwddyJIbTWPXRqz0uovs8m1zlRfKLT7WMyoOKIRE=; b=e6FIzOwDxOhhf3CgULha+qjw1laiyyRZwPjvTFuQ3SRdcbWhM6Q8TcZkNLdjX7GGYT OQk8JPYaCB3bxiBI2X1BKP+H7u6xEEWXix7pY1EiqEPFfYmu0JCCdteYw9eWtGTuCmF6 DmJb8QkgdYzZdta0THWTL7wy2j0ZlGidGzXknjy7EWrPgRl8mfknAOyPmRrljRmCz5wU k578I8IIP3mVsen6E+v7dZdaqMxw5+DXewsg28cTedoqAPnLIvQJitHCXSo5tEXhEIdB pHGYt8CH7JMBqym1adrDRfyYeXYnFjb6GeCtJ16gvPp60ckId1IKWh0aB1M5baMXwOTO CFOQ== X-Gm-Message-State: AOJu0YwnUh32dGa3A0EcMsoW24BV6x0Kizl6KRKvbfeyDVLJO+LRBvzd ETXtCQJtrwM8k0b2AXyauFYw964kT7PhbkBmHI4= X-Google-Smtp-Source: APBJJlGhUvRqMl/XqMY8g+Tj3Qf8c9+kEncYsyJiiZ9/+yOA/Kk2tC7F6LOv3NhEZ2o1owcbaWLfZg== X-Received: by 2002:a17:906:74cd:b0:99c:5711:da5 with SMTP id z13-20020a17090674cd00b0099c57110da5mr1942435ejl.5.1691052720294; Thu, 03 Aug 2023 01:52:00 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id u17-20020a1709060b1100b0099bcf563fe6sm10236759ejg.223.2023.08.03.01.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 01:51:59 -0700 (PDT) Date: Thu, 3 Aug 2023 10:51:57 +0200 From: Daniel Vetter To: Maxime Ripard Subject: Re: [PATCH 0/4] drm/panel: sitronix-st7789v: add support for partial mode Message-ID: Mail-Followup-To: Maxime Ripard , Neil Armstrong , Michael Riesch , Sam Ravnborg , Sebastian Reichel , Gerald Loacker , David Airlie , Miquel Raynal , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20230718-feature-lcd-panel-v1-0-e9a85d5374fd@wolfvision.net> <292c3e7d-82ea-2631-bd4b-ef747f56287c@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 6.3.0-2-amd64 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Conor Dooley , Krzysztof Kozlowski , devicetree@vger.kernel.org, Gerald Loacker , Sebastian Reichel , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Rob Herring , Michael Riesch , Miquel Raynal , Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, Aug 03, 2023 at 10:48:57AM +0200, Maxime Ripard wrote: > On Thu, Aug 03, 2023 at 10:11:22AM +0200, Neil Armstrong wrote: > > Hi, > > > > On 18/07/2023 17:31, Michael Riesch wrote: > > > Hi all, > > > > > > This series adds support for the partial display mode to the Sitronix > > > ST7789V panel driver. This is useful for panels that are partially > > > occluded by design, such as the Jasonic JT240MHQS-HWT-EK-E3. Support > > > for this particular panel is added as well. > > > > > > Note: This series is already based on > > > https://lore.kernel.org/lkml/20230714013756.1546769-1-sre@kernel.org/ > > > > I understand Maxime's arguments, but by looking closely at the code, > > this doesn't look like an hack at all and uses capabilities of the > > panel controller to expose a smaller area without depending on any > > changes or hacks on the display controller side which is coherent. > > > > Following's Daniel's summary we cannot compare it to TV overscan > > because overscan is only on *some* displays, we can still get 100% > > of the picture from the signal. > > Still disagree on the fact that it only affects some display. But it's > not really relevant for that series. See my 2nd point, from a quick grep aside from i915 hdmi support, no one else sets all the required hdmi infoframes correctly. Which means on a compliant hdmi tv, you _should_ get overscan. That's how that stuff is speced. Iirc you need to at least set both the VIC and the content type, maybe even more stuff. Unless all that stuff is set I'd say it's a kms driver bug if you get overscan on a hdmi TV. > I think I'll still like to have something clarified before we merge it: > if userspace forces a mode, does it contain the margins or not? I don't > have an opinion there, I just think it should be documented. The mode comes with the margins, so if userspace does something really funny then either it gets garbage (as in, part of it's crtc area isn't visible, or maybe black bars on the screen), or the driver rejects it (which I think is the case for panels, they only take their mode and nothing else). Cheers, Sima -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch