From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91731606A31A for ; Tue, 1 Dec 2026 05:46:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZT0DQ2Tc Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F286510E945; Tue, 1 Dec 2026 05:46:12 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 15B0810E945 for ; Tue, 1 Dec 2026 05:46:07 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id B9E3740A53; Tue, 1 Dec 2026 05:46:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87B421F00924; Tue, 1 Dec 2026 05:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796103966; bh=IO4/8tUpPkMwcEOxWjTLmBbmObI6Gxl7uPOqbAayEIA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=ZT0DQ2Tcj39DhA4SG1stvxBeCkUQnIvqLy172Y/X2StNoN7G2ORkhmD7c14lhdNlp UrZN8XmK+NOdWAjcTiZTokc6SPhpa4GCvqNyxTcHpJL1TsF+skgsISXL6LKz4arBNM u0Ie6dyE5TxQis1BG5cd/fjjEWH+t38SGkzt2GXfwER0pxDev3DYCChYzjNzthP7PY 6xtW9Oi2QjJzohiPtYSbF2PHiln7cBttYU62QX5n2AELhlePNTjjBeAa/+7inSxcPf miII18+nl9Cy6XY7GWGMF1RPGiU/MmdCPG6bASlvHVp670BBmAqrgop/smQ5q8pB5y yLiSvAWnMZnWg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] drm/client: limit cloned connectors per CRTC in drm_client_pick_crtcs() To: "Lin Tzu Yang" Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261201053831.878886-1-rongh7426@gmail.com> References: <20261201053831.878886-1-rongh7426@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 05:46:06 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] drm/client: missing Fixes: trailer for cloned connector limit bug fix -- commit 70845ef107919ca0aab749bd89d6bf859cd8b3c8 Author: Lin Tzu Yang > drm/client: limit cloned connectors per CRTC in drm_client_pick_crtcs() > > When a device has a single CRTC, drm_client_pick_crtcs() lets any > number of connectors with the same mode share it. A modeset can only > hold DRM_CLIENT_MAX_CLONED_CONNECTORS (8) connectors, so with nine or > more such connectors drm_client_modeset_probe() hits > > drm_WARN_ON_ONCE(dev, modeset->num_connectors =3D=3D > DRM_CLIENT_MAX_CLONED_CONNECTORS || ...) > > and gives up on the configuration. > > This is easy to reach with vkms, which allows up to 31 connectors per > device through configfs: one plane, one CRTC, one encoder and nine > connectors linked to that encoder trigger the warning when the device > is enabled and fbdev is set up. > > Stop offering a CRTC as a clone target once it already has > DRM_CLIENT_MAX_CLONED_CONNECTORS connectors, so the remaining > connectors are left without a CRTC instead of producing a > configuration that the probe code then rejects. > > Tested in an arm64 QEMU/KVM guest with vkms configured through > configfs (1 CRTC, 1, 8, 9, 12, 16 and 18 connectors): before this > change, enabling the device with 9 connectors printed the warning; > with it, there is no warning for any of the counts and fbdev is still > created for each device. > > Signed-off-by: Lin Tzu Yang [Severity: Low] This fixes the fixed-size cloned connector array limit introduced by d81294afeecd ("drm/fb-helper: Remove drm_fb_helper_crtc") and moved to drm_client_modeset.c in cf13909aee05 ("drm/fb-helper: Move out modeset config code"). Should this include a Fixes tag? Fixes: d81294afeecd ("drm/fb-helper: Remove drm_fb_helper_crtc") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201053831.8788= 86-1-rongh7426@gmail.com?part=3D1