Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp940186rwo; Wed, 2 Aug 2023 06:34:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlHRCv+3Mihi5iaWVYoM+IovoLADKUfl1X/pP8OkG2zUsWcYzjopKaLZmKAuGs2bqqQUYZH/ X-Received: by 2002:a17:903:244f:b0:1bb:ffcc:8eba with SMTP id l15-20020a170903244f00b001bbffcc8ebamr11326606pls.58.1690983274726; Wed, 02 Aug 2023 06:34:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690983274; cv=pass; d=google.com; s=arc-20160816; b=PWS5TrzPME5ZYNelchcmk5wEmfSdcbn+kgGKeZYZfR7Rr7XVHl4gfDauAvLSd2dfvZ Z/REPWkV+fkFUwKfolnrjzMgTYrahfmDHaMmLLGrEMhGFaR4q05DAke2yyeuMmwHGuwa axQHR18I3YkDQo9czu1LImvWYmhY26JrMCixIRv0K+Qs15xW8Ck4TYLDgBavodrBV7kN wTVHfMLsJuxUI7w3/P/LfKYBdPN9R2tvx7Q4aN0FHmgLUjxGwQuz1tbWwp316xYTYT5S tlTd682hbiy/cmP/dJOABJjK3GVgTVGOdiD3ZF7sOhJ3bO8dy7lEbJP3F/eIkKIlsCq3 GAxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:content-language:references:cc:to:subject:from :user-agent:date:message-id:dkim-signature; bh=+4LKmNJ/1Jq055Wn1u3vibA8cJx1wcAzHONwKC8UVqo=; fh=iLEIdM8R77lEpwMzq507K7zOskm3Wh7HaZY10PB1wi4=; b=TbKVaEc9qzhCrA3tb20w2svl18vu+4CR60Iv/3RVU2pNl1zAQbxJjB3kxDtHKrbEtE qZMpUof1nR3I0IWi6ZMcQuU1zRCCXRvVd9qvoLJ6wKR7N5ndjYK4Bv0ddLS/wNJdnFzu kkIXL03zPrxC0hVbo/cbrfD3mkWFWbwtJY9ECc4GE0nIUciMbWqbL4L7bJXw+vKWqwTQ UJ7ErmGRWPZsVpuWUGzZrxkGfHMwrOdVzXrNu25K+itM+v82Sg7pW2aT4KPVv7kRdbJY sGz5Bs38KsJ0xSEfqBMmrqKxphDhxCwk9rJaUnOQJ5oc625Wh8DljsZuyBhPSYup8Whs okYg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=dqCm2Xjh; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a170902650700b001bc3948d598si405103plk.448.2023.08.02.06.34.21; Wed, 02 Aug 2023 06:34:34 -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=@wolfvision.net header.s=selector2 header.b=dqCm2Xjh; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234404AbjHBMej (ORCPT + 99 others); Wed, 2 Aug 2023 08:34:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234326AbjHBMeh (ORCPT ); Wed, 2 Aug 2023 08:34:37 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2087.outbound.protection.outlook.com [40.107.22.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CA86271F; Wed, 2 Aug 2023 05:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j7EV/4z4Q225YG+/YBqsmThvdmr8DD7jbJd87kIsrODlTvRakbBf1PVnnHMQM6tbIGIUoBa31H2j3J7pXjP7l5xAfZr3w1k8MLL57Hoazwi6+ZIALrQ142Z4Mkd+KNyylotANF5AtOHcjZMAEhL9rQjBtd0e0/j0eV9Co02KANyI5D740At+zmFjYocRVJC1KABUESDptO6TGXTrCRWlQVmPxUrSZgi6D+kcUTzYUL7YtQ1p2zXL7ICz/+xwJfjBpcRNTHtzjPeNrRsb7RQwTSHaZhu5LmRmz6TqnyobZQkqeCyVEc4X9z+M61Qt15p9hKrK5W0hsZtrt66zf4LCLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+4LKmNJ/1Jq055Wn1u3vibA8cJx1wcAzHONwKC8UVqo=; b=elFspI+RTnDvoxnZNCZRQjAOU4MSF6VQUapOOzsT1ArhldHEArdXq3BHQ+T/iTVYGkNviYQ9lglbvGhzG/r3tR9L5dvjDgu3997HcBqZ9CX3PD6N4hTJ2SczU82qVcf1cBxY2bJSaTxq/uMUWdvi86960f25RV6PcTEXpumZQCqoygUjIGMqPPTyzR9B4OnR2aop/bc6jNP40asf4PFwNtTVhKqVATVydEnlfYzOSLKboMVX3UDZc7xU5SepeJg/s2raNnj7E0PhtckQREiq03xtSVPQi+cpgFfdkH4qSmwBycKwtVWKhhtLgbPcgUSxdk2KCukqnYjvs1ozMWxpgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+4LKmNJ/1Jq055Wn1u3vibA8cJx1wcAzHONwKC8UVqo=; b=dqCm2XjhRjZ5RFEaYF9gyrZ0ZKT2Z3YqKSq5PLMjSosTo5JiAqG5gJNWGTTo78aMOqll6fK+OqVy98dJGW1CfDaFab4HA6QmX19uZPyw9pG6gf1I+x29xlURvcSc9LDCHOF14zAAKzh8AovhHjvy4sHzZRO5dKTgoL8IuaIKoK0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from GV2PR08MB9158.eurprd08.prod.outlook.com (2603:10a6:150:d2::10) by AM9PR08MB6147.eurprd08.prod.outlook.com (2603:10a6:20b:2da::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.19; Wed, 2 Aug 2023 12:34:34 +0000 Received: from GV2PR08MB9158.eurprd08.prod.outlook.com ([fe80::f9cc:2e21:d017:7f66]) by GV2PR08MB9158.eurprd08.prod.outlook.com ([fe80::f9cc:2e21:d017:7f66%5]) with mapi id 15.20.6631.045; Wed, 2 Aug 2023 12:34:33 +0000 Message-ID: <097de164-6d62-6a1d-f7b5-cbd7d4408ab7@wolfvision.net> Date: Wed, 2 Aug 2023 14:34:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 From: Michael Riesch Subject: Re: [PATCH 3/4] drm/panel: sitronix-st7789v: add support for partial mode To: Maxime Ripard Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Miquel Raynal , Sebastian Reichel , Gerald Loacker , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20230718-feature-lcd-panel-v1-0-e9a85d5374fd@wolfvision.net> <20230718-feature-lcd-panel-v1-3-e9a85d5374fd@wolfvision.net> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: ZR0P278CA0188.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::20) To GV2PR08MB9158.eurprd08.prod.outlook.com (2603:10a6:150:d2::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV2PR08MB9158:EE_|AM9PR08MB6147:EE_ X-MS-Office365-Filtering-Correlation-Id: beb24c9a-1a04-4912-1205-08db9354d378 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AtqYJiBnxn+8VSYMOVsSQvZO+8K8ACpVkvEwLHapEVRWxXrDxJn25YQE0KaTaXN8zhKCf0ksrlv8dzbC3minSmn2DdwafgfYf6/+P9iWKmPhbzw0b5gTzV3Ras7JNRoxFd0wVo7IWtMKv+ijAI4ba5Vu6pogO0NSUcMEmXUybkNY8FP5SVmH8q5qlxaMs+MHQ2opElkh3epFPVStezBWkGDXbPdtcnbWqpzoeN2ksb4uR37LFEna8AMRxbZQa67+0G+GP8MHB5Uq7mw186z69MbY25AtFWeRaqRqZqQlLXFmfaoRLl6PIXKbITgfIygXrs3tg7SiTulM4Qtv5nIC+TqojMz7iQgPeCKrXJ+95UGfAK4NW1/qya1/3Rt0EwAOstNwj8y3ycw8KjkMCzh73LxEn3lJjyF8hDZeFlmAsXBXAGC1pouq9WbbIVx+CLFP8PQiL9/8SH/1M/bq46R0baJZXVBoFT34ORQaVcM7u4UZ2xoL061ei53tNWuYvxObucFZhAB5vMBxBYXWrvhlrVzhGVHVX7D5994h+kjtTMoH36iA3uOc4aIEIw42ELmr4ht2eLmUbyOXmVEOae77Y8r+DkGP1Lx+QfiZmLVxm4276TXHlbDezmgiwC9WtYoup5uKs1hWQSpc2onNUYOVqw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV2PR08MB9158.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(39850400004)(366004)(136003)(396003)(451199021)(478600001)(86362001)(31696002)(6512007)(966005)(36756003)(6666004)(6486002)(316002)(8676002)(8936002)(41300700001)(5660300002)(31686004)(6916009)(4326008)(44832011)(66556008)(66476007)(7416002)(54906003)(2906002)(38100700002)(66946007)(2616005)(186003)(6506007)(53546011)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NTRMNzArN1kxdUMwTnBMWElPVHFnM0FiVy81V3RqUUlBZXRLZVNSeWJlY2xO?= =?utf-8?B?M2p1djZwR1hFeFI0WnhYL2FQamFkcUZVWXM5THd3NUlFWmpSMGcvZG1hMjdj?= =?utf-8?B?WjVBRWRDSy95VVVJVmNBL1IyNFowZ2tQRVpzMmNSY0pCb0FTSHhHN0tXNXZr?= =?utf-8?B?YWFGeFJYNHA5TGJyOUNEV09IK3VQMlIzbXd1RlhtQ1RXLzRWYWlieGVBeGJ4?= =?utf-8?B?WnJUR3MrZkJrdDV0d2tOaUg0VitpSlMxU1UrcDRzVlp2anJsNFdCWnpGVGxq?= =?utf-8?B?Mmg5aWpScDdUUkZLVytFQjgwUVJBTkEzeUgzMFFJM2R2TmlLZld0WC94bnkw?= =?utf-8?B?THFyMlA2aEszS1E2QnJwL2RjMzUwYjA4NGZKYzVrL0s4bTYv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Q0I1ajhHSDNnWlFOd3BmU0trb2JEZ1RwRnpDbHphSmxpRyt3TU5W?= =?utf-8?B?b2lYOXpyMlBmTFI0d1FLbXQveDlnPT0=?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: beb24c9a-1a04-4912-1205-08db9354d378 X-MS-Exchange-CrossTenant-AuthSource: GV2PR08MB9158.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2023 12:34:33.8959 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gfuDyOr0+gMs9Wba3iyCZsMJeYuRn7zfMA8tXu0pvSg/5keybr8pvOZwu2jR+Tg+6B6ZWyV7NUn9nB3HXbmxyV2oTVQUB7K983r4n4MXMbU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6147 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Maxime, On 7/19/23 08:39, Maxime Ripard wrote: > Hi, > > On Tue, Jul 18, 2023 at 05:31:52PM +0200, Michael Riesch wrote: >> The ST7789V controller features support for the partial mode. Here, >> the area to be displayed can be restricted in one direction (by default, >> in vertical direction). This is useful for panels that are partially >> occluded by design. Add support for the partial mode. >> >> Signed-off-by: Michael Riesch > > We already had that discussion, but I think we shouldn't treat this any > differently than overscan for other output. Indeed we had that discussion. For reference, it can be found here: https://lore.kernel.org/dri-devel/20230329091636.mu6ml3gvw5mvkhm4@penduick/#t The thing is that I am still clueless how the overscan approach could work. I found some DRM properties related to overscan/margins and I guess userspace needs to set those. On my system weston is running. Is weston in charge of configuring the corresponding output so that the correct margins are applied? If so, how can this be achieved? Will DRM handle the properties generically or does the driver need to do some work as well? In any case it could make sense to write the partial mode registers and enter the effective dimensions. At least I have seen this in other panel drivers. Thanks and best regards, Michael > > Maxime