Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2024225rwo; Thu, 3 Aug 2023 03:42:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlGL/ffpnGbgAGBJSO9z2w0ozFmK3H4n1Mz5tFLJwjHJchWTyVgWSOyfQnJcfclz/7XZuibC X-Received: by 2002:a05:6a20:2447:b0:134:1c06:19bb with SMTP id t7-20020a056a20244700b001341c0619bbmr23084811pzc.22.1691059328382; Thu, 03 Aug 2023 03:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691059328; cv=none; d=google.com; s=arc-20160816; b=nXbCollgYJMeXZpnibgy8U0Nr4HuB5oqScySpDevxliN3XpNJfj+vbjyubgS4TYSSk +RUk3s6ayNK68RGrFs5acVOd6Q2M3zoFMuMUb+Qeil2T6x9iA+t7UgrNHK1AtkXrwdqc Wn+szV748OKZOQfIHRyTEqnfgYlRROfmwojfpx/i55rBFXtpRpP8PJKnEp2mYBE85V07 UIJZ1D8WcZDQEzhoWjQEglsRQTy0ROslq2voyeRJcMEG6ffceKLrMluanl+dYBEj9UAG 5+MnOwXiyLmOyHuSDmbi8HpfE6gwszISqceWsnlIhutGjkbY/pAcZ/DW2plpYPBUkqDn 9bKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=BGbNwddyJIbTWPXRqz0uovs8m1zlRfKLT7WMyoOKIRE=; fh=l+0a8Q10r+deDw6yrawGQHefCNGG76OHu3SMwDXC0CY=; b=dzsTasCF1AwjVYbv5Hz09y2QYdUcDeP2icg/e3GZpA+/yX7YaiL429KHR2uNwFdZAX Sfr66FQWsu1yEDOseSwWA7cRZ8sYKbUGDxdT5Lea7JmuLEjJzQ2AjUPoiw6uD6RDecgk D2MNtIa165G2MGKOXeJ40IvLawWwOxggKeyuux9c7c3X9drfGiE7D5YFOX4bPNw0OIGA NGkHtCgcDaghkHCbq2uUmVmKOjlMFpU7AgRhT1sqabPZ5MBugY+WHOavW0ob93tVdLNE KZWGZuCMks7xtn9+ay2Wi9WgNNcHSjVJHuBXHR4W8wPcqAmWffo7CxhDb+6F45QWXMNy A0dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=a+wYsHDd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u21-20020a056a00099500b006724753efe8si10952749pfg.192.2023.08.03.03.41.56; Thu, 03 Aug 2023 03:42:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=a+wYsHDd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231143AbjHCIwF (ORCPT + 99 others); Thu, 3 Aug 2023 04:52:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232545AbjHCIwD (ORCPT ); Thu, 3 Aug 2023 04:52:03 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE912DA for ; Thu, 3 Aug 2023 01:52:01 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99bded9d93dso18384266b.1 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=ET2HYUtF7TVkrEb2iFjybbuO9jF9098i4KEuYXFQMW1uxH97HLb7WhGK6xrN3USclY KS22BkqU3uvXlEt/D3FzvSkA0FLQgvP/loj2JnFV+XJc0wqHJeDJIlAyH32FLPhGCs4R LuXGHGSBg8t0tSYrF3xQZUcAyndvyouerzcbs4alyo25jjAsWEI0r8Zrl7eb9WOEQA0o IRe6eXk5lY6xNoU7TAQo1jVckjt1BlDpDnIfogg26/EIBDbVr1rjEkYmuboVEX26gKxx SNnPPIwEYDfeN04okidspOaHbVHE0IO9UMjX9KBG1d/jscCBrngaT9iPJmDDFhzB+4X/ h5Qw== X-Gm-Message-State: AOJu0Yy9DSaHYDq6exVoQwfLemMaJPIGFFsDFY3tRCW4WHo6Z7lL3NRh G61gjdJOUIvgVEuDJpCtZZd2Hw== 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 Cc: Neil Armstrong , Daniel Vetter , 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 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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