From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D596F30DD02; Tue, 2 Sep 2025 13:39:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756820350; cv=none; b=iKjxwLySRkr0Y7emwUiq4g9hAeAULywyDt2naBUrRRx8pmoVYW4HS0GsFAurByzIqF+hvgpEFMHoeI39BYiqAVX+FiqsIpYwzjrnnyWRjrSLy/T/WE1dO8p+3Hc8NUcJUqHeDb47WNtCaNR95zvWu9Vqkb2Xa8Kje/xhxYZ/yW8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756820350; c=relaxed/simple; bh=l5Vp0qMfyqYazeUgbZXJVOh9WAxRaWTQfOstGHmV4lI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bhTKdCpWEChGj/3yAE6xryfSC87UAvIsN5slKSa+qSGtqTrpofgCP6td2gdmc0N92xkNwmRbb8sXg/PljeX/1xFB7gKEwrbRb8Jlahx716Y1dpISPPYJwnh6C632iU8/fgNiSDOOG0TLjkUTFimLYGzKpDA29YQD/eTftH9F5IY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AOwtlcgL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AOwtlcgL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58592C4CEED; Tue, 2 Sep 2025 13:39:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756820350; bh=l5Vp0qMfyqYazeUgbZXJVOh9WAxRaWTQfOstGHmV4lI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AOwtlcgLPl7+CaO3KcJcGbe+eUQWRswc7BPRqTXXCNCTr4zck+9C3V9DNaKi9CJM+ AUVHQtHCaawdLVDgipCzqSfXdpBk+fM1k75nN89Za1xpG/ZqlThxFSDncNNodwRqrP jjxlNayzT3l5NR6eZMD1xNGQJCChObqcMJ4R8amE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, James Jones , Danilo Krummrich Subject: [PATCH 6.6 69/75] drm/nouveau/disp: Always accept linear modifier Date: Tue, 2 Sep 2025 15:21:21 +0200 Message-ID: <20250902131937.819650691@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250902131935.107897242@linuxfoundation.org> References: <20250902131935.107897242@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: James Jones commit e2fe0c54fb7401e6ecd3c10348519ab9e23bd639 upstream. On some chipsets, which block-linear modifiers are supported is format-specific. However, linear modifiers are always be supported. The prior modifier filtering logic was not accounting for the linear case. Cc: stable@vger.kernel.org Fixes: c586f30bf74c ("drm/nouveau/kms: Add format mod prop to base/ovly/nvdisp") Signed-off-by: James Jones Link: https://lore.kernel.org/r/20250811220017.1337-3-jajones@nvidia.com Signed-off-by: Danilo Krummrich Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/dispnv50/wndw.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/gpu/drm/nouveau/dispnv50/wndw.c +++ b/drivers/gpu/drm/nouveau/dispnv50/wndw.c @@ -663,6 +663,10 @@ static bool nv50_plane_format_mod_suppor struct nouveau_drm *drm = nouveau_drm(plane->dev); uint8_t i; + /* All chipsets can display all formats in linear layout */ + if (modifier == DRM_FORMAT_MOD_LINEAR) + return true; + if (drm->client.device.info.chipset < 0xc0) { const struct drm_format_info *info = drm_format_info(format); const uint8_t kind = (modifier >> 12) & 0xff;