From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D78462FE066 for ; Thu, 19 Feb 2026 20:06:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771531578; cv=none; b=mN1uvPGdMAUxdMTPXnx2/GltJCJm0zWLlU8JRcY0TI620/Xz8eJtSu0xt+dwzpnajrRSVCIrLV7zGeQOHxLQ24BQb2ZkwTbYoM5o46LIKPjgpnSfuuixmLzb6JqiRTb7zWrhPc96CrUPM1nZkzWhgb+a7wIcNxFa2X1UE+lcRvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771531578; c=relaxed/simple; bh=7cmYjjmLT7GcBp+YHQNUyqarYxBg2qKLLJcS2Y+nPt8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=BgsYLgR/jJdKZezwf9T4VGPYxeLGOMRfPl6BmVKGBnK92r4kQt0wEOrRV/HEhSAYzqK6Bci1Sevtls3BS9CAdwRDBj1jQfIXRZWDb4bqZKpFzCT7iA2+cVNTXEHsmP3bT8b2PTNCmWENq5yjQ+zJVWR4rwVhShL4GX+GYb5FhMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=darkrefraction.com; spf=none smtp.mailfrom=darkrefraction.com; dkim=pass (2048-bit key) header.d=darkrefraction-com.20230601.gappssmtp.com header.i=@darkrefraction-com.20230601.gappssmtp.com header.b=AUni6+Rb; arc=none smtp.client-ip=209.85.222.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=darkrefraction.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=darkrefraction.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkrefraction-com.20230601.gappssmtp.com header.i=@darkrefraction-com.20230601.gappssmtp.com header.b="AUni6+Rb" Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-8cb3bae8d3eso129840185a.1 for ; Thu, 19 Feb 2026 12:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkrefraction-com.20230601.gappssmtp.com; s=20230601; t=1771531575; x=1772136375; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=IIXy2pMG7ODDdjrHID85DEgKFqwPY/I8njEG3vmpfBE=; b=AUni6+RbXouUzeFI7lziAWRSLquiprYTN4dun3osV6RdykXbntRL8Lv6ZeqHIif0vK AQ788rpcpoH55QqwBtTA7AMCc8q3bWxof50VE/6mvW3XTIDDOfVOxllVD3csdz0sgEz2 JHzYVX/DJ6a/26L0qVkhmeKW0cj+rtR/kQMzZi4jylEdTrtYkn5KSCR6joXiDDQ5O9EQ swZdwfKxwmRsMFgiu362CXWRaOiOEYYPxuSo7ihAyWUdBfGoI5kq7LNXzGv0OYsAssYF LbUXZab8sv97wN+PkqiSZuJSCqSEGm0qeQyPF0vWrnXtEQMiPbdkwZjO35xqAY9p4xdK AzVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771531575; x=1772136375; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IIXy2pMG7ODDdjrHID85DEgKFqwPY/I8njEG3vmpfBE=; b=i85cIgrbE5snxK/G2yHePxCHw4RMRRnjZh4Oj0rKYXD2obefTZaQdE/NgkDDH7gbEq PqHnQWT+0RaohCmuRxMXcgxy1w3uQHnkF3z79tUAVVK7lg7+3G8WDJNOklCjZpNmyYgj xgZd3stW1eTZ+CptcWA7X2D4ka3VjwNHLBlzTnrHE3pRJ6gqvpTplbuNq6nwIBrZge8d BlPEXlIYUP0o+l9NhMOS74fnydKmqMyMLL9Xo/YFW0npvxN91pegNktmAKYy4n03kWwF dpKzbWpveRqlwHRZ0qGl4IxyUpV6euwrx07aLJTHzTLK8l0fLRygXIbi90KLz+n+DF0V FJvA== X-Forwarded-Encrypted: i=1; AJvYcCVTTCRMYzq4u5z4IZU2qNcR6l5B4wUi24wDFgW+y3GHOpTpaL8rro2gFx3VxhPHko7Map8QeHmd8wECOWI=@vger.kernel.org X-Gm-Message-State: AOJu0Yy+jQKocVNoHHMyd3u20OUrnjClZABedW7KXnN2RiPi/RcSvkgZ q+RwfGRfxrbn+KucRIql23Gp7oMdm4uiHRDHRZojqstXno5RqpViWIHybH7M+oZzxhp2pOWqj1j /nb6Z X-Gm-Gg: AZuq6aLYVCNzbvOX3SzyYr+FmHHKHoBdgm1TXCmltHRDjuYKtcVGzPqnYZ7s0RkBCMk QfmRwIR6k6X/5wlXqJGvwkUCgwXWbD98iCLBiEoAeGyo46W1sTQbJngKQ/yg4q3ph+i46P9xQYW Wz1rK+0kzf5Qu3ohFHOcNbJ9jvR5FwYYwK0f0C7/GumKFkmRzAvHJvaP8Z74YJNCTS+TYMbBjfP DTwIaElUPc6HimywAfDxtfrp7Q1vuQuz6R4BnuSqFFwZigBein9GSP/GmE4GRyxILPvY7FiEDwB YTAsGoU369KjitzydsFO/y6T/51djdkZfyGc+NmnvyWrT7pw5fHR/4tdaT1HBssmjM5gUsEU1tU QQA1CL3xcuUiFUIetDW5bkLaVRJP6vJkoW7Gt1zn6L1UELGh0bzsKhB916vJCRfmy4Xs20SNK3r w21I6FUuPIq9v5XYgBpm7WO7f7e/NQQlE+Zm+ZzGFOdsA77rBl7IrfV/ySx/LbSp6YoD5I1KzH2 qCb1YbqPg== X-Received: by 2002:a05:620a:720d:b0:8cb:40ca:2f8c with SMTP id af79cd13be357-8cb40ca31e4mr2170465885a.31.1771531575440; Thu, 19 Feb 2026 12:06:15 -0800 (PST) Received: from [96.232.40.90] (pool-96-232-40-90.nycmny.fios.verizon.net. [96.232.40.90]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8971c8e60a0sm216675066d6.0.2026.02.19.12.06.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Feb 2026 12:06:15 -0800 (PST) From: Mel Henning Subject: [PATCH v3 0/2] drm/nouveau: zcull support Date: Thu, 19 Feb 2026 15:05:52 -0500 Message-Id: <20260219-zcull3-v3-0-dbe6a716f104@darkrefraction.com> 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: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/2XOQQ6CMBCF4auQWVtTpimgK+9hWNRpkYlITYuNS np3K1uX/8vky6wQXWAX4VitEFziyH4uoXYV0GjmqxNsSwNKbCRKLT70nCYlDrLRda3JouqgHD+ CG/i1Qee+9Mhx8eG9uQl/6x+RUEhhSLc4qI6ovZysCbfiBENLeWNP/g59zvkLFn6cXKUAAAA= X-Change-ID: 20260205-zcull3-9065115cd238 To: Lyude Paul , Danilo Krummrich , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Mary Guillemard Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Mel Henning X-Mailer: b4 0.14.3 These patches add kernel-side support for using the zcull hardware in nvidia gpus. zcull aims to improve memory bandwidth by using an early approximate depth test, similar to hierarchical Z on an AMD card. These patches add a new ioctl on nouveau devices, which is currently only supported when using gsp firmware. Corresponding userspace changes for NVK are available here: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33861 This series is also available in git: https://gitlab.freedesktop.org/mhenning/linux/-/commits/zcull3 (v2): Split the first patch into two - one for fetching information from the hardware and the other for adding the UAPI. Also, drop the change adding DRM_NOUVEAU_SET_ZCULL_CTXSW_BUFFER - it isn't necessary to get zcull working and will be pursued as a separate performance improvement in the future. (v3): Make commit messages more verbose. Remove WARN_ON() call. Signed-off-by: Mel Henning --- Mel Henning (2): drm/nouveau: Fetch zcull info from device drm/nouveau: Add DRM_IOCTL_NOUVEAU_GET_ZCULL_INFO drivers/gpu/drm/nouveau/include/nvkm/engine/gr.h | 19 +++++++ drivers/gpu/drm/nouveau/nouveau_abi16.c | 29 ++++++++++ drivers/gpu/drm/nouveau/nouveau_abi16.h | 1 + drivers/gpu/drm/nouveau/nouveau_drm.c | 1 + .../gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gr.c | 9 ++- .../gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/gr.c | 34 ++++++++++- .../drm/nouveau/nvkm/subdev/gsp/rm/r570/nvrm/gr.h | 19 +++++++ drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/rm.h | 2 +- include/uapi/drm/nouveau_drm.h | 66 ++++++++++++++++++++++ 9 files changed, 174 insertions(+), 6 deletions(-) --- base-commit: 18f7fcd5e69a04df57b563360b88be72471d6b62 change-id: 20260205-zcull3-9065115cd238 Best regards, -- Mel Henning