From nobody Fri Dec 19 07:03:45 2025 Received: from delivery.antispam.mailspamprotection.com (delivery.antispam.mailspamprotection.com [185.56.87.12]) (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 2A43433EB0C for ; Wed, 17 Dec 2025 08:08:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=185.56.87.12 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765958928; cv=pass; b=urc4JUN/4fyAfdDqD+42txOlAQkWaKS7XsUGuwtn6NUxsZXX7UN6ukC2zKB4s8C5PriKEedAxjbL4KeBxP2awGPOlbtTwiapAL4q33xl2tagPw/C7B4q5TGe5G3XPuwxFYEtLa0OqROAoQ3Vahx/csGeRh0lpI2Ht0aO4RTm8uk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765958928; c=relaxed/simple; bh=ve2YlrOrfqp26weodtzAkKHhv6zFIo4Ht7/fa7CIS94=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Y/yMXjnWr7FU7AbUT2MoU02f4FK532J34eDaZabechdRXC28CvXLLx8fhNYuo5fOng34YaOkq8Fx9cx/6h1V8LIf2VgmENJ1vfLBvg9p5o8PzA2qNQejsLGCqYtZUgftREgYQ/mF+mCozU2Pfmc0ol9XW1g5fEVc5eB0EbDxEs4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=valla.it; spf=pass smtp.mailfrom=valla.it; dkim=pass (1024-bit key) header.d=antispam.mailspamprotection.com header.i=@antispam.mailspamprotection.com header.b=RMpfojgO; dkim=pass (1024-bit key) header.d=valla.it header.i=@valla.it header.b=ja38b2lA; arc=pass smtp.client-ip=185.56.87.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=valla.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=valla.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antispam.mailspamprotection.com header.i=@antispam.mailspamprotection.com header.b="RMpfojgO"; dkim=pass (1024-bit key) header.d=valla.it header.i=@valla.it header.b="ja38b2lA" ARC-Seal: i=1; cv=none; a=rsa-sha256; d=outgoing.instance-europe-west4-v76v.prod.antispam.mailspamprotection.com; s=arckey; t=1765958926; b=YHJtyebTJT2iB6FSDKvs45ZqD4cKOT+dHcWtUb5qutPg/yGjPKpTAXYz92zMz3COiuDNMYsPOr uW89mXD94P5ffSwkDoQx5J6ubIi2ofWT/FMw0fJsxiT/OMIuLHe5RETzAGSS4h5Z9/8Bb4Bh/q fcaNR8huFdnsHy2pzWM8Njg7DabvWQwQxQ2pI0vx07rxEYzlUImgA5JgcMnPpyaXD7KBV4Jbca RYogOmc1G2x4ITAVJmlnn26jTPLgeoEMDMdM6CQj1uN8DhsoAIeRHwaRltByyczB9/zPJaKeFm 8vs/MPnj9qF4Mf4D3Qdvkj3HrhWN8T57OIsqaI8ha/0Uuw==; ARC-Authentication-Results: i=1; outgoing.instance-europe-west4-v76v.prod.antispam.mailspamprotection.com; smtp.remote-ip=35.214.173.214; iprev=pass (214.173.214.35.bc.googleusercontent.com) smtp.remote-ip=35.214.173.214; auth=pass (LOGIN) smtp.auth=esm19.siteground.biz; dkim=pass header.d=valla.it header.s=default header.a=rsa-sha256; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=outgoing.instance-europe-west4-v76v.prod.antispam.mailspamprotection.com; s=arckey; t=1765958926; bh=ve2YlrOrfqp26weodtzAkKHhv6zFIo4Ht7/fa7CIS94=; h=Cc:To:In-Reply-To:References:Message-ID:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:DKIM-Signature:DKIM-Signature; b=PL2RySKs/4TdlQDAaDnuLO9YpV0h2P3QscUKRmCziGxw1y6HhddZYoFHjpjj2BdvpmN5vPI1ux /uNzuwRXljvu45TybhYMPyZ1tc3Yyf/DyDeow2bYTA/jKZgsUtT07+UXzBppovtf8b2PG5DjNJ tyHfB5g6FSxjJUqNU7QBsg5wgpyfD3tIMdhgyV6Xrq1Vvx5wrAdh4+pA0n4tBwDxzM7RBssnmT 4UbtTFAb6NtgjEss+lUwIVyaARxInWlE7aC5Y1LPpYZOnXDdPyTNIHbfpyMZehzsIkAKmv+Mu9 NMOQtP0vFudko+kTkSqLhPJTK4mfxpEkraIT63p4ZivmgA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=antispam.mailspamprotection.com; s=default; h=CFBL-Feedback-ID:CFBL-Address :Cc:To:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject :Date:From:Reply-To:List-Unsubscribe; bh=8IimDFstunH4qRXNsjg10pPSw+FgX1OVnx8RsMzVbt0=; b=RMpfojgOaFjN666SCE/acTc2z0 e2L5zM+2hfcHFGItHJieiEBcyzKxIuonM6C5BuEDP/cm3+dFCC9vw3uFUqySYp/BaM5pIq6YCK+Sy ezqmv1Wl8iSnCuFBCbUDfsw0zXwDkkHFdbLeA+qwq4EX9zvuYS/l5jlm/43LRiG3hX3A=; Received: from 214.173.214.35.bc.googleusercontent.com ([35.214.173.214] helo=esm19.siteground.biz) by instance-europe-west4-v76v.prod.antispam.mailspamprotection.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1vVmaJ-00000001rm6-3IYO for linux-kernel@vger.kernel.org; Wed, 17 Dec 2025 08:08:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=valla.it; s=default; h=Cc:To:Subject:Date:From:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; bh=8IimDFstunH4qRXNsjg10pPSw+FgX1OVnx8RsMzVbt0=; b=ja38b2lAimBZz6QfeBI2tfpipX q5zdlibe50cc9NgOrQ/uNb4fIuNHfT+dysLiwRuyoUfghhYFEUbASVCKswhA9UmcNBWPMpM/E1MzJ nF8TnJv25PkMAiu3LPurGXfE4EKT3Ej+zM0Aqg7J/zgaSU3Ep8glTBbIJCpgU/YzhV0Y=; Received: from [79.34.194.176] (port=63558 helo=[192.168.178.175]) by esm19.siteground.biz with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1vVmZz-00000000ENx-1g6t; Wed, 17 Dec 2025 08:08:15 +0000 From: Francesco Valla Date: Wed, 17 Dec 2025 09:06:55 +0100 Subject: [PATCH v3 2/3] drm/log: avoid WARN when searching for usable format Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-drm_draw_conv_check-v3-2-15b6f8bc1cbc@valla.it> References: <20251217-drm_draw_conv_check-v3-0-15b6f8bc1cbc@valla.it> In-Reply-To: <20251217-drm_draw_conv_check-v3-0-15b6f8bc1cbc@valla.it> To: Jocelyn Falempe , Javier Martinez Canillas , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Francesco Valla X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1028; i=francesco@valla.it; h=from:subject:message-id; bh=ve2YlrOrfqp26weodtzAkKHhv6zFIo4Ht7/fa7CIS94=; b=owGbwMvMwCX2aH1OUIzHTgbG02pJDJlOKW8nG06c0PUgl7f42dKF2uYaf7S8wj+enTzZebX5q uDpzGX5HaUsDGJcDLJiiiwh627c2zPX/FvaBsZHMHNYmUCGMHBxCsBENs9mZPh+rOj1u5Ncu5et /qqu63M9Uap9bYqEsseO47tqKxes2bCB4a9k1fNaWce62aujYvUKDqx02DW1rqTXLPxqyIunWk8 yj7ICAA== X-Developer-Key: i=francesco@valla.it; a=openpgp; fpr=CC70CBC9AA13257C6CCED8669601767CA07CA0EA X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - esm19.siteground.biz X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - valla.it X-Source: X-Source-Args: X-Source-Dir: X-SGantispam-id: 81133bf7412944cec2f9c21548df9083 AntiSpam-DLS: false AntiSpam-DLSP: AntiSpam-DLSRS: AntiSpam-TS: 1.0 CFBL-Address: feedback@antispam.mailspamprotection.com; report=arf CFBL-Feedback-ID: 1vVmaJ-00000001rm6-3IYO-feedback@antispam.mailspamprotection.com Authentication-Results: outgoing.instance-europe-west4-v76v.prod.antispam.mailspamprotection.com; iprev=pass (214.173.214.35.bc.googleusercontent.com) smtp.remote-ip=35.214.173.214; auth=pass (LOGIN) smtp.auth=esm19.siteground.biz; dkim=pass header.d=valla.it header.s=default header.a=rsa-sha256; arc=none Use drm_draw_can_convert_from_xrgb8888() instead of drm_draw_color_from_xrgb8888() while searching for a usable color format. This avoids a WARN in case the first format is not usable. Reviewed-by: Jocelyn Falempe Signed-off-by: Francesco Valla --- drivers/gpu/drm/clients/drm_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/clients/drm_log.c b/drivers/gpu/drm/clients/dr= m_log.c index 4d3005273b278e8c4c0ff7a411165efb7684316e..2bd5189c967e1952f9e6ad17120= b2cd920c79a96 100644 --- a/drivers/gpu/drm/clients/drm_log.c +++ b/drivers/gpu/drm/clients/drm_log.c @@ -182,7 +182,7 @@ static u32 drm_log_find_usable_format(struct drm_plane = *plane) int i; =20 for (i =3D 0; i < plane->format_count; i++) - if (drm_draw_color_from_xrgb8888(0xffffff, plane->format_types[i]) !=3D = 0) + if (drm_draw_can_convert_from_xrgb8888(plane->format_types[i])) return plane->format_types[i]; return DRM_FORMAT_INVALID; } --=20 2.52.0