Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5967877iog; Thu, 23 Jun 2022 08:42:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vcpPBTW5MlU/ZpoAUcu+VWdE9agf8/Qk2KEnlVm4HXVObClNk1twfUM57+HU9XODin+plk X-Received: by 2002:a05:6402:5387:b0:435:7060:a759 with SMTP id ew7-20020a056402538700b004357060a759mr11743877edb.150.1655998979057; Thu, 23 Jun 2022 08:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655998979; cv=none; d=google.com; s=arc-20160816; b=vPu0nWGlrcrOAqMtrjiL7Z/pS30YZB1I03i/GO5SwvmylMgxR3zI8jPYuCa9bYsBOQ W+W6nwjTU9KPESys4ZtQsKhEoZdxa/nzEx8S+vwhRzZq/dytiRhxUljAu/IPa48qC0iP chD5BUxrnomkcKinZBO/vTkwW1pOfQX0W0Ow86Xgp8yI5oEmRLNSkyP4pQ7IUCJIW7ob bYPk21f1iuh3/wTbAc7w60ZUYk1fzKnEZ3pCGNehYwApOxLD4Mt5Kw9XqLx9rEiGAE5Z zJrAW8Pn0kaS+0RqiwXZVEqCyw4SyD9jJ1lEF3d8Icf7c/qyqjMfqiSm1JhLUt1shi1R kxlQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=3shfMghcUfNmQ2mk/127emoUmSyF4uZg3BAFx3eN7h0=; b=mWK/xCiEocXv4JaACYMWZJAS4f3pulki4h7bWEI4tutY895mgLiToabV9Z33hVl3Uk ZrrzD+0VXpQlKcBkTaKW9fKsHcMuLR4CqNcDVIEoVWeyzim/Ao184tqW0Z/7nly0qauJ gjYniPLfkIY0ov/ie0GG8tiyb4RUW/DvBRMeFmSR+tmFgdkc2gsjH9ZnTuXFSzUk8NYx TCKKqdvinpC77R5w9ck69gcKn2t7xVxD2B5Ih0MsZQ7bGHx93Ic7LvqFkNpVcDlZn0YV 3DDCoUUcfnkhXOAOwjA05AZzS0m1C9xcQOOtVqJ92XLt/pFktIdYgXI24cqUSmgea6A8 AhvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=0eqmMUyw; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DclJwHVn; 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=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p34-20020a056402502200b0043565c5a2fbsi1003772eda.89.2022.06.23.08.42.31; Thu, 23 Jun 2022 08:42:59 -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=@cerno.tech header.s=fm1 header.b=0eqmMUyw; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DclJwHVn; 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=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231283AbiFWP0E (ORCPT + 99 others); Thu, 23 Jun 2022 11:26:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230119AbiFWP0D (ORCPT ); Thu, 23 Jun 2022 11:26:03 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E3533B56E for ; Thu, 23 Jun 2022 08:26:00 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 30CB65C009C; Thu, 23 Jun 2022 11:25:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 23 Jun 2022 11:25:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1655997956; x= 1656084356; bh=3shfMghcUfNmQ2mk/127emoUmSyF4uZg3BAFx3eN7h0=; b=0 eqmMUywNEamz+0czdUhrksObSacjOZvNpF1PATNe1ip2cdeuL/EwlP6T28LB3kAK mdfx78AeqBgCeF3J5aJmdwbS0UwcbZBssR1GSb0c1hhR8QgLkZUU+zLa9/WGGM+E 2EuTwQys9pOX4mP8TpyTey14kbgWl9F0TG0DXVBj6fFijGVAxCLMV8BZ2swbGbfb G8bQxjEn6nMpjvf4BvcOKb3Zz5CUnawdEeDgwNfheR4Qk57es4b64T7bTnfv6Yhd tmMtiuM8zEIqLcd3ahpRMySWIJc7suMnSFfYttD07s87g2vJLB4/bEWZET92sgtZ 3xnCRNBeREOhF6RFHqS/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1655997956; x= 1656084356; bh=3shfMghcUfNmQ2mk/127emoUmSyF4uZg3BAFx3eN7h0=; b=D clJwHVncd2cYbIrVHvV+hDbczsTc5V3hvT88w4I/ni580U//zc76HBvCMAbsWwJe 9s1lzvbv815WXSqgRmJ27IaLhP+YtgHoehad9GV1BANHJ4BKspHoL36o6z3SOGmh BNriC0zHs/yCwC4ovMX6vP74IZFT/2eXraYG/mQotZbJr+KF6vEnMLA+aUipnDEf vSDpevGWEuUDm5fC1MBltOH94gqDlVjYiZt3lm1lxfkCVR1xRSi1FQ26zU7jztGM J/8o1Uer5+LIcLGrcG0iYnGvqtwRtwzAXH3r1/TW6aroobgXPURW5IMy0pZpuC15 rezB5otHFcApvhHcat+Qw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefjedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggugfgjsehtqhertddttdejnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepkedvtdfhudduteekffeuveevieeuudeihfegieetgeejhfehieevlefg tdetjeffnecuffhomhgrihhnpegtihgvtghhrghnohifrdhskhhinecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhho rdhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Jun 2022 11:25:54 -0400 (EDT) Date: Thu, 23 Jun 2022 17:25:51 +0200 From: Maxime Ripard To: Roman Stratiienko Cc: Jernej =?utf-8?Q?=C5=A0krabec?= , wens@csie.org, airlied@linux.ie, Daniel Vetter , Samuel Holland , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, megi@xff.cz Subject: Re: [PATCH v2] drm/sun4i: Enable output signal premultiplication for DE2/DE3 Message-ID: <20220623152551.f74mwbvqlmqkwshk@houat> References: <20220605094018.9782-1-r.stratiienko@gmail.com> <5826286.lOV4Wx5bFT@jernej-laptop> <20220608081715.cblotjle6benihal@houat> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,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 Wed, Jun 08, 2022 at 07:44:03PM +0300, Roman Stratiienko wrote: > =D1=81=D1=80, 8 =D0=B8=D1=8E=D0=BD. 2022 =D0=B3. =D0=B2 11:17, Maxime Rip= ard : > > > > On Mon, Jun 06, 2022 at 01:16:06PM +0300, Roman Stratiienko wrote: > > > =D0=B2=D1=81, 5 =D0=B8=D1=8E=D0=BD. 2022 =D0=B3. =D0=B2 23:23, Jernej= =C5=A0krabec : > > > > > > > > Dne nedelja, 05. junij 2022 ob 11:40:18 CEST je Roman Stratiienko n= apisal(a): > > > > > Otherwise alpha value is discarded, resulting incorrect pixel > > > > > apperance on the display. > > > > > > > > > > This also fixes missing transparency for the most bottom layer. > > > > > > > > Can you explain that a bit more? > > > > > > Well... I would recommend reading Bartosz Ciechanowski's blog > > > https://ciechanow.ski/alpha-compositing/ or the Porter-Duff's 1984 > > > whitepaper itself. > > > > > > HINT: That magic numbers from sun8i_mixer.h ( 0x03010301 ) corresponds > > > to SOURCE OVER mode. > > > > > > As you can see from the blending equation it outputs both pixel value > > > and alpha value (non-premultiplied data mode). > > > > > > Also single-layer non-premultiplied buffers may have for example > > > (R255,G255,B255,A2) pixel value, which should be sent as {R2, G2, B2} > > > through the physical display interface. > > > > > > When OUTCTL.PREMULTI disabled pixel, the RGB values passes as is, and > > > even 100% transparent data {R255, G255, B255, A0} will appear as 100% > > > opaque white. > > > > Without going into the full explanation about what alpha is, your commit > > log must describe what the bug is exactly, and most importantly how do > > you trigger it. >=20 > I do not understand what you want me to add. Context. Again, what the bug is exactly and how it fails, so things like what setup triggers it, what exactly is wrong with it (is the layer not displayed at all, corrupted, something else?), etc. > I checked alpha appearance manually by preparing framebuffers with > data and presenting it on the display in various combinations. >=20 > I attached the videos and tests as a proof. If you don't believe me > you can always check. It's not about believing you. Let's say that in a couple of years it turns out that this patch introduced a regression, or something just isn't clear about it. We go have a look at the commit message, and it just points to a video that isn't hosted anywhere anymore, because you closed your hosting account, removed it, whatever. Then what? That's why we ask to have the whole context in your message, because otherwise you introduce a dependency on something Linux as a whole has no control over. And if it's not there anymore, your current commit message is useless. > If you find something missing in the commit message or don't like to > see external links feel free to amend it. From my point of view the > patch is complete. I'm sorry you feel that way, but I don't really get your attitude there. What did you expect from reviews in general if you're just going to ignore anything we might say? Maxime