From nobody Fri Dec 19 07:03:45 2025 Received: from delivery.antispam.mailspamprotection.com (delivery.antispam.mailspamprotection.com [185.56.87.13]) (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 4AC7433F399 for ; Wed, 17 Dec 2025 08:08:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=185.56.87.13 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765958930; cv=pass; b=SGiAViN5mw8QGkRHYydwhXKpY2nWBmWeHqk22Ztou9nScSg9nTYgmKufP0gqOf/Q2Jtln4ZpUc0F9lKDQMctBmZ2tkZq41E8ivgECrq97y8lLoyzuQD9RhQ8FX8i2BjW6KVspI1/c/OmGwIisuXL5gBUg3sffH/DQxhey2cop20= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765958930; c=relaxed/simple; bh=xmTY/xIaeVDRWbqqsfAuF9zewXHVGxAP+LExztEljPw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MZuw84ltwX+MbNw9LpyM7qrTjeEHzMWHFu+ek0t1UEiKXSJKWybt9VcyMyCMAnPwknNNxKdkPFCeH4PxYYFugPLisGlZp4deyFcMHMNlKn3Kq0zUN2ORRs5gfgQ1UDt4BGPD2wShVN2TYiB6nPGcIv0ULA8AUazqSmdd4e4TXYk= 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=pxN+b6x6; dkim=pass (1024-bit key) header.d=valla.it header.i=@valla.it header.b=Xkwq72id; arc=pass smtp.client-ip=185.56.87.13 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="pxN+b6x6"; dkim=pass (1024-bit key) header.d=valla.it header.i=@valla.it header.b="Xkwq72id" ARC-Seal: i=1; cv=none; a=rsa-sha256; d=outgoing.instance-europe-west4-pxq2.prod.antispam.mailspamprotection.com; s=arckey; t=1765958928; b=dcf5tC8U5vveCHWmqDR4zKRUAirVUK0JmE0ftDPiqn/9d0f5mv9AOmq7SG5XxbGPPBgIUn0kLu ipV1BXte/WzsdUS/lOEcbNRY/0oUMIJQWFWmnSO28cpg/MC3zaO31NNUGTrwJPehYLm1tw/6ve OlhT+cRZTSPGxQTRmFjYJ379xvJ6ciYgu9408zex/DMFX79AIYAR1uUYvui0dNoTnwaYX0pYks rC7bCerhoNKNLErWk+E1sJWH+ttTfj0GtMcKVhjzTlfJAfd9RUVuWNoIKhNI6ph48jpHHll8L1 YqufgzGm0jYJFZLEf7LsCt82Ab83aqhnqw9jvPfx084/zg==; ARC-Authentication-Results: i=1; outgoing.instance-europe-west4-pxq2.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-pxq2.prod.antispam.mailspamprotection.com; s=arckey; t=1765958928; bh=xmTY/xIaeVDRWbqqsfAuF9zewXHVGxAP+LExztEljPw=; h=Cc:To:In-Reply-To:References:Message-ID:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:DKIM-Signature:DKIM-Signature; b=P8ruCcSdnDxbpjH2pUD9n8gjF/H+yj3FiECM8do0v6uGwByC+1HR4wHXhLaSmukpgiwPL0/4wt S5aCqoQ1Q6U9IDcdbErtPAy8DZrHDGAnX7VgGIwd4FKkTuEVgWGIc8yGNVTonHQWfKigFQhq/X rvGtsIlyUJq1X7pFKFfHRLlPIDPdLARTbEaYyI6J4awFk5KfbpXUw1BBLK/6RZm/xGlEjB7Ftc XQeIrJf8xPUjU31QIn2yjM3XBFOBTrrx26a5To0x/UiD5xW6hNdyb5Mjix/mPdg8rQkNDHXiJY 5L9kCKQ2J7wv+a9KllovzI+iMhwXsZtsLWnGocOy/Itnlw==; 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=8Npd93JQJmakN0GeSlmk3CntxmjM1Fs8EpKnVHSDXVQ=; b=pxN+b6x6D69AnjSPgyiLwglEuE zozcNWyX8qZSy51YUSjEHjp2txpVuCgGa4FZgNVfgGItZwCtbaptVxITBfmCua/RwPEyK94QdtTDD rx9XDvKMsj1zg1GiuhBY2ypDPA0atYlphjBWFOTuTdv9BN1vtqlLWcc1ymj614cGV7LU=; Received: from 214.173.214.35.bc.googleusercontent.com ([35.214.173.214] helo=esm19.siteground.biz) by instance-europe-west4-pxq2.prod.antispam.mailspamprotection.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1vVmaJ-00000008q5l-0ONg 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=8Npd93JQJmakN0GeSlmk3CntxmjM1Fs8EpKnVHSDXVQ=; b=Xkwq72id1ZYGRxYnb2nIXxj2Xx X9yKX8l6qkAmL5EJ5VymyGc9OiX+kKSnJKi3hXHBXD5t12yU76kwT8r/k8Xj6FO5oMes3Bf95i1+X VHCl7BjJcJhHYAvjxKFQQebEEWI6qgqPEjV/IhhPXrD6hs5TPZQrfmXf4EZ3XLtuL384=; 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-3bB7; Wed, 17 Dec 2025 08:08:15 +0000 From: Francesco Valla Date: Wed, 17 Dec 2025 09:06:56 +0100 Subject: [PATCH v3 3/3] drm/panic: avoid WARN when checking format support 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-3-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=1002; i=francesco@valla.it; h=from:subject:message-id; bh=xmTY/xIaeVDRWbqqsfAuF9zewXHVGxAP+LExztEljPw=; b=owGbwMvMwCX2aH1OUIzHTgbG02pJDJlOKW+NhNbty9Tc3W4rfP+b73L2Jsug+PPyG78bhS89v ufZQv/tHaUsDGJcDLJiiiwh627c2zPX/FvaBsZHMHNYmUCGMHBxCsBEfHIZ/gc1mOie8vy7fHnV qsoSJclvX+buaP3Bu6SpVfmCz82gRntGhg07/3iplrWVuedv+JV7RPXh/41ub5YvCxYsDcmvUJV YzAYA 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: 737bef77cfc15cbe80f51bcd0c3aebad AntiSpam-DLS: false AntiSpam-DLSP: AntiSpam-DLSRS: AntiSpam-TS: 1.0 CFBL-Address: feedback@antispam.mailspamprotection.com; report=arf CFBL-Feedback-ID: 1vVmaJ-00000008q5l-0ONg-feedback@antispam.mailspamprotection.com Authentication-Results: outgoing.instance-europe-west4-pxq2.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 checking if a color format is usable. This avoids a WARN in case the first format is not usable. Reviewed-by: Jocelyn Falempe Signed-off-by: Francesco Valla --- drivers/gpu/drm/drm_panic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_panic.c b/drivers/gpu/drm/drm_panic.c index d4b6ea42db0fe65ea010255ff57554baf723e60c..27989a010ace38b18bc047ad87d= b64128ec25790 100644 --- a/drivers/gpu/drm/drm_panic.c +++ b/drivers/gpu/drm/drm_panic.c @@ -833,7 +833,7 @@ static bool drm_panic_is_format_supported(const struct = drm_format_info *format) { if (format->num_planes !=3D 1) return false; - return drm_draw_color_from_xrgb8888(0xffffff, format->format) !=3D 0; + return drm_draw_can_convert_from_xrgb8888(format->format); } =20 static void draw_panic_dispatch(struct drm_scanout_buffer *sb) --=20 2.52.0