From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73E591D5CC6 for ; Sat, 29 Nov 2025 09:50:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764409821; cv=none; b=QO/FNXcJNrOsc+0T/p8e7JgxA2+ihD9to7UjFsQdoSovuWn/hf8MwnwvjBwSY6gNN7Ul9Z2VbIC5Alq9xUb5r7PQBSHrS5swCgZ0orXRSDAlp21hUaTSzY9QuB0cviCHgDc8vmH8Xdgir4s0wG3YcfGwL2BMoJWIejmxJz8VTkY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764409821; c=relaxed/simple; bh=MmXzVJ5MoVP8VbuSvcRf5Cd6FU2Boz+4Je345xBRang=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VqGy+tzv+qVjeyj2IZtRYl1A9gCsiTMnCLx81M4vz7/jMz45+TAz7i1z2R9Wmw9tce1H+HLgDC2OZYt9Y30l9k6sCZ0rminj1U7bVP4JXIdlRtzCIKE0MwPPoN3g2fcuO5H1oAdaayymaX+i/c6jASHEx4qGX/+XTq6BeoEaFdU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=mWum973o; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="mWum973o" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1764409817; bh=MmXzVJ5MoVP8VbuSvcRf5Cd6FU2Boz+4Je345xBRang=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mWum973oC9Cc3v/JpWaj+y+bA86DwJ7gSSSecrKm9oRtJXaZEuAdCYMuM0DWgjD1P 5U1s1i230v+rCAw8qZcP3wkUtUVZEWqXRnV7JjWyPQzTI+pY9UCi9mJK7XV3Rm7D/U tMnPsBic37kmOut/GD5QLOsZ7oRNojsLwLXxr1SMTG5l4Rp+VZ4uA7ywtK0yvs3Uh/ AsHH2uEObJnWsg7bUyjJM00FGHm384j9W8TnxzDmadBAHKqBCSt1bJVapZ6Tg9UX11 noiuxv8yOBLePzsHJHhOAZr59WfU0rcsqzHnR4PIowuyg6dGWcSMqo3LLE+lxzNnXS A4bjyTGgGkItw== Received: from [192.168.1.90] (unknown [82.79.138.145]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id B623A17E0330; Sat, 29 Nov 2025 10:50:16 +0100 (CET) Message-ID: <058027df-1b1b-4c46-b8e1-ec53fc809e82@collabora.com> Date: Sat, 29 Nov 2025 11:50:16 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 4/4] drm/rockchip: vop2: Support setting custom background color To: Chaoyi Chen , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Sandy Huang , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Andy Yan , Louis Chauvet , Haneen Mohammed , Melissa Wen Cc: Robert Mader , kernel@collabora.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org References: <20251118-rk3588-bgcolor-v3-0-a2cc909428ea@collabora.com> <20251118-rk3588-bgcolor-v3-4-a2cc909428ea@collabora.com> <0ed71b8d-5a2e-4213-bd2f-7ba317d1e4cb@rock-chips.com> <4a6443b8-d440-4921-8a43-7c20e4e265e7@collabora.com> Content-Language: en-US From: Cristian Ciocaltea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Chaoyi, On 11/29/25 5:49 AM, Chaoyi Chen wrote: > Hello Cristian, > > On 11/28/2025 5:44 PM, Cristian Ciocaltea wrote: >> The precision was something I initially looked into for CRC verification, in the >> context of the related IGT test. But since I've added the VKMS support, I think >> we should not worry about that anymore. >> >> Moreover, as already pointed out in [1], only RK3576 supports CRC generation at >> display controller level, and that is not particularly useful because it doesn't > > I believe you can get the CRTC CRC on the RK3576, even when only the > background is visible and all plane is disabled. Feel free to let me > know if you run into any issues :) Yes, CRTC CRC works on RK3576 for the planes, but not for the background, i.e. the CRC is not updated when setting a different background color. Unless there's a way to change this default behavior, which I'm not aware of. My current understanding is that the background color is applied at a later stage in the display pipeline, *after* blending the planes and computing CRC. >> take the background color into account. Therefore I had to capture the frame >> CRCs at DisplayPort AUX channel level, by using the USB-C DP AltMode capable > > Oh that sounds interesting! I'm not sure how complex it would be to > implement. That's already implemented, I plan to submit the patches soon. > >> port of my RK3588-based board. However, that solution is not yet available >> upstream, as it requires further work for cleanup and improving the overall >> USB-C reliability. >> >> Hence I'll move on with your suggestion and switch to the simple bit-shifting >> approach for the next revision. >