Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1078260rdg; Fri, 13 Oct 2023 09:31:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyiR39rp8yOHpm9EKu2VO9skChMoSoQ7iSEn7AyVSBnXL4xgwt5sFJy49N/gr8NqtTUNPE X-Received: by 2002:a05:6e02:1354:b0:351:1311:c282 with SMTP id k20-20020a056e02135400b003511311c282mr24885753ilr.9.1697214715773; Fri, 13 Oct 2023 09:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697214715; cv=none; d=google.com; s=arc-20160816; b=JSanTpdH0pY3w9nONRuOk+eJTLzvoWr2fCHS4WKj3NrA74F+t4XGELsagQRGeSlo8h I/cZFlDL4QeBCSV9OqFTuPlUjm1i0z7MlvKroLwX2zrYTJViFpC2wIv4kAetln1PUGm4 Qx5/vTwSrpYrqS2P6jDpT9fkbAgTaA9Pf9F1+hK/2zegCnXWsH6YsBqytk3x9+FczBRv 4UqvWQFcazm+HM9nc+WxBbLpgK+8JWL5GS8aKFK+UzOjp8bXMcUWPsH25ZTFhjgGxbsA grW66kvjpEu9yATYnXLCvAtnhFVg7lotRWnSAzqjd+NwKQlj9RfH6MjzP7GODIDvcmyb z/sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dDChyjARcHDkjDQPX6XB8cVwDI75Vj0OVvNyqfGNTb8=; fh=9dgzNTOLqRZnvqRO1+bJpA0xessCCkhnkr8nF1aB3vk=; b=Nowf6PMg/xIGaUJtzsHiL+k6VqQHROxq46aBIMME7dVAFnqT1yJGSHXeb2BombWYkt Kzr5ZyLgEOcDIj+oCNFhyy+zM8tf+mVmeXpH+i1d1fjJINyBqJ9PAZ1qaZeNjK9r1r+A /6M8b8u5FAgUd/FDssSM7i4bjgxpTSK6SU1dfok1FhpCyctl7o7yYhiC3H4YAW+IzoMf IkDJjm4yti3skGNyClOAmxvjIDgLCQEdapVOikfjpdtHaBGGzKnFsTDXh1Rs+p7yP7jT iARactXnhgtVM6UAo9NhxKx0UjGbYr6EtlTv0ffILF6LvhwE8I7NjDIZ2c/QuBtwXwiB KUxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fooishbar-org.20230601.gappssmtp.com header.s=20230601 header.b=s3cNDlsl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id g8-20020a635648000000b0058974d3c292si4619935pgm.191.2023.10.13.09.31.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 09:31:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@fooishbar-org.20230601.gappssmtp.com header.s=20230601 header.b=s3cNDlsl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5FDEC80413B3; Fri, 13 Oct 2023 09:30:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232308AbjJMQ3S (ORCPT + 99 others); Fri, 13 Oct 2023 12:29:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233150AbjJMQ3E (ORCPT ); Fri, 13 Oct 2023 12:29:04 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C5BC210A for ; Fri, 13 Oct 2023 09:27:03 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9be3b66f254so15657366b.3 for ; Fri, 13 Oct 2023 09:27:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fooishbar-org.20230601.gappssmtp.com; s=20230601; t=1697214421; x=1697819221; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dDChyjARcHDkjDQPX6XB8cVwDI75Vj0OVvNyqfGNTb8=; b=s3cNDlsldiqyjzOLg547DBYOsLYWWbgb6vsLhuV0Y8zYJFWObDbWfQayX07PPazwy3 kj4r4qXeU8T8YUbExJ+PwPRssFn5eIsLRE2yzpK32dBYrWEBECdplmy1+tA0wlSCsQRz stE9FPJqLNUju96XVYsoe7bD8iAE87W7WgUASDq7P4qegELjSRlxJXadZ7eq0Vyro9Ri hiV79oeRFHXlAwlE86Whb2IKKAtxqaf3hEOITkM4Ok5AnhKZ759/SMyS2SeMWB5mFy6b 5O/541Ubm1QvqN7VcqHH6BzDk0s8zTOU+x6Fmf3hVHF9BqbBFyHrjCmmK/K5gmgu+BM5 awsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697214421; x=1697819221; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dDChyjARcHDkjDQPX6XB8cVwDI75Vj0OVvNyqfGNTb8=; b=pgIWESVWPkBJvtFWsCba5PU2uxoph9hlbNoBPQdjaKm+mt+rtkB0SDeRxkfRWzy39t W6B9jI++HOA2qHTdpP/J/cOfKXphXinOHiDzIU3YkYHhkOJ/Lj7tTX9By9oYaJSW3/sB XvRQWxnnK7IqfqsWDHTGwcFx92QADQBuBuXWqoGVIdiu2KmrV0fCEVPqk/gi0Z3DYcnz 8nwGip8/bHqwJAaYbZw3kYfKn//I8nCZZXGavAOQcKFet0S3Jfws1+tl8xxpAfDjCnKg vahUN478dDYMMxU6wm7iHXcxg4HwnkAsJ7bOFq+okEz009cG2mSercWaTdiRxb+Z3MWB Ck/A== X-Gm-Message-State: AOJu0YzvsNM5R6lv52a9iaehjZZy5JGDDW3JJDJNgD2Pn9gjQJ06ocuV 3dO5ZkW59x+Cn8pcoobCjJrlk7m8cf/zzUf4KSXV8Q== X-Received: by 2002:a17:907:74b:b0:9bd:bbc1:1c5f with SMTP id xc11-20020a170907074b00b009bdbbc11c5fmr1802252ejb.35.1697214421164; Fri, 13 Oct 2023 09:27:01 -0700 (PDT) MIME-Version: 1.0 References: <20231006073831.10402-1-shawn.sung@mediatek.com> <20231006073831.10402-5-shawn.sung@mediatek.com> In-Reply-To: <20231006073831.10402-5-shawn.sung@mediatek.com> From: Daniel Stone Date: Fri, 13 Oct 2023 17:26:47 +0100 Message-ID: Subject: Re: [PATCH v7 04/23] dt-bindings: display: mediatek: padding: Add MT8188 To: Hsiao Chien Sung Cc: AngeloGioacchino Del Regno , CK Hu , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , Chun-Kuang Hu , Conor Dooley , devicetree@vger.kernel.org, "Jason-JH . Lin" , Singo Chang , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, "Nancy . Lin" , linux-mediatek@lists.infradead.org, Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 13 Oct 2023 09:30:44 -0700 (PDT) Hi Shawn, On Fri, 6 Oct 2023 at 08:38, Hsiao Chien Sung wrote: > + Padding provides ability to add pixels to width and height of a layer with > + specified colors. Due to hardware design, Mixer in VDOSYS1 requires > + width of a layer to be 2-pixel-align, or 4-pixel-align when ETHDR is enabled, > + we need Padding to deal with odd width. > + Please notice that even if the Padding is in bypass mode, settings in > + register must be cleared to 0, or undefined behaviors could happen. If I understand the driver correctly, padding is automatically applied to compensate for unaligned dimensions. The first/last rows/columns of the overlay area will be filled with a specified colour (black?) to preserve the area. This is unfortunately not OK to do transparently. Userspace must be aware of this policy decision and specifically request it. If not, the atomic request check should fail and tell userspace that the requested configuration is not possible to achieve. Cheers, Daniel