From nobody Fri Dec 19 07:03:52 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 E91A7189F20 for ; Sun, 5 Oct 2025 20:53:02 +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=1759697586; cv=pass; b=bC8C3CtAuaeMWweQQybW+/3iSbUJZdVtSzSTtMPsuTaedoU3r8UfbRPPZ+Wn0ryGwIX7D4z0qcpiYAsr5ODmvX52a+7ls21fNTYNxiRLaduHwcDzum+/ymQLdVbOgi750dAOP8QSxI19u2lxj4vjLmRCdd7CJwEItG7tXn+Vivs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759697586; c=relaxed/simple; bh=47IvIiXfgXszMY+cAV0lSu8Ko5qTBff2hny8UxJ0ZUw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QLfk2lc2uwBjA06WGfhx7RD7mP1rboDiJGAK3vnzf47y8b0/2t/iSvaJIaWP8XgeDXQQMDnPX1JoD4JVNM5bCKhPXXWpZvGUTdB/yiBXVD/HlDxhnWVTA6hyuotXj+quCL2XS8TV3rFHUokrdTIPlBpdRIKa4ni2N1onNIY0GiI= 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=ySCY/pNn; dkim=pass (1024-bit key) header.d=valla.it header.i=@valla.it header.b=eIo8APPw; 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="ySCY/pNn"; dkim=pass (1024-bit key) header.d=valla.it header.i=@valla.it header.b="eIo8APPw" ARC-Seal: i=1; cv=none; a=rsa-sha256; d=outgoing.instance-europe-west4-nf36.prod.antispam.mailspamprotection.com; s=arckey; t=1759697584; b=q2ITUt+4JkKWLVDjgqoK6wmnp93aYm4hKy0GhthU3s8elb6UDI7750Ta2HqKt9F9928qPvD6Ep v134o6p6mkNC6hkh12oDi6Hlj4eZ7+rMiGq9Dt/JD94Jo0xOW/lHlXqtHeyr9rwSSVgQRI21bK LjJ/fv2rv6YqRXLYdptnEcoKZMWuDLpH5uFlXnt948n6qzL3VCCudarjx1Y7SpM1zAvi4xhQsQ phKHEfZeaYtoTeQiH2cogYto5qdPPI6SAoHAJ4zGAzl3unXZj9DM3Nadub2bN3vBWeCNFpf6Gv 9rjLlJQyiHokU2coW+zo3eJrRRiZc1eHZNUN1TpmW2qKGA==; ARC-Authentication-Results: i=1; outgoing.instance-europe-west4-nf36.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-nf36.prod.antispam.mailspamprotection.com; s=arckey; t=1759697584; bh=47IvIiXfgXszMY+cAV0lSu8Ko5qTBff2hny8UxJ0ZUw=; h=Cc:To:In-Reply-To:References:Message-ID:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:DKIM-Signature:DKIM-Signature; b=mdcNHgU1wjFVKhbO6yTWryiOo8LK9EA5+Q3To7HX7gJsjt4R/njMT4UzBPiT9VN74DT4Y1rQNW 1KI2osHHIGO33pw/4YnlRL1ow9PRZIR4Vr8Y3UmTepSK+qAl2XrUKTSs2pFwOm6b9BPzDYMe1S dZPV9SpmA/g2i3yJTfiqJbPys/AuLZc8S81EZUIfXCYX2VEwDyEwmRD0IviV5NNB9Cz+iEUdcc mUgHPoKK6Bu21Hq/45TP5BzcgX3MgBC0yiCTgqkqFIKezEIvAHOa22ySTYIQzvGZu9D7JfX1N5 Sgb7wJBGRyfpwfLKBQgtnwCVkZuN6S2YuHdKe2pWU0BEDA==; 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=bXAG6V6q0Gu2P/Y5b57UaRwcg3Y2X9SQRXNhHXSl2EQ=; b=ySCY/pNntYuD3l1Ja41jOY3x/I tbzx+Rh6FmKgduSYPieTl2sjSmnQ6kNJSPDZ1XaH9sU2m2M7DgaJuZQUwDOeOJlheYyW1CTr/0mmq MhWZyk5+X19Ni1zxMyU5cbfn1Pe5WbDoZhW8gqBxl83nuYtLJOtuICunySZ6XrGZ8k10=; Received: from 214.173.214.35.bc.googleusercontent.com ([35.214.173.214] helo=esm19.siteground.biz) by instance-europe-west4-nf36.prod.antispam.mailspamprotection.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1v5VF3-00000008Ijs-084U for linux-kernel@vger.kernel.org; Sun, 05 Oct 2025 20:22:03 +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=bXAG6V6q0Gu2P/Y5b57UaRwcg3Y2X9SQRXNhHXSl2EQ=; b=eIo8APPwUd+a7hb0bvMXEmvfQn iQOBNyA6XEjTKlNNZS68j1e8HF9DZtPNjYe41LAnF3CTzli4Nu4XX9oYfy+d2CINvDWeou26PxawU eTMnX6ev6uGoZ6KyJUIG8AOJQ48qQPs+nuAG8eGOuMB8lp5c1s0y0JxGO6wcJOsEvatA=; Received: from [87.16.13.60] (port=64461 helo=fedora.fritz.box) by esm19.siteground.biz with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1v5VEv-000000001im-3olJ; Sun, 05 Oct 2025 20:21:53 +0000 From: Francesco Valla Date: Sun, 05 Oct 2025 22:21:35 +0200 Subject: [PATCH 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: <20251005-drm_draw_conv_check-v1-2-9c814d9362f6@valla.it> References: <20251005-drm_draw_conv_check-v1-0-9c814d9362f6@valla.it> In-Reply-To: <20251005-drm_draw_conv_check-v1-0-9c814d9362f6@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-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: c60f707575d8b7054020355cf62fab3d AntiSpam-DLS: false AntiSpam-DLSP: AntiSpam-DLSRS: AntiSpam-TS: 1.0 CFBL-Address: feedback@antispam.mailspamprotection.com; report=arf CFBL-Feedback-ID: 1v5VF3-00000008Ijs-084U-feedback@antispam.mailspamprotection.com Authentication-Results: outgoing.instance-europe-west4-nf36.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. 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 d239f1e3c456397ad64007b20dde716f5d3d0881..c0150f0c3b4b395e6e2126cf0d9= 660c967c182ec 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.51.0