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 A2EF31BC46 for ; Fri, 13 Feb 2026 17:14:00 +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=1771002840; cv=none; b=D4wXKrnb2Hu2weqvNFo03dLtVH82RgiwFEwLsvui3aLwRqahW2uioa0/XCPDFdt19VGDDGadmiU5Er+XCyb7qdUhP7aXPKoNlLzKzWzh8+X3BbYgFLtA5UrmbT9UwohEeYrqg9seRVIGONLm+yJtHujviQd+/MamKTa9I8Aq3nU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771002840; c=relaxed/simple; bh=TQL4yAmfHTFRfL0Xxlqlv5cDS//+iCUzmjzvprvGhzA=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=AlqlBdq60Mx52A3mkjjuKceq5lQCe/zv/K5LSL96SuncE9vQv2eGZWxQmr3+TpvGCcZSR2a0nqPjFpgR4Tc1Rl2uLHgJbDg1+Yq1p0exzWnT04ue2YR3BchfjkNU6SIV+y1RBrUkuKJXr0hhaEP9Hr0oeq8L9Ajfdg+Sf3AGTCA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IF5PWLRw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IF5PWLRw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BFBCC116C6; Fri, 13 Feb 2026 17:13:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771002840; bh=TQL4yAmfHTFRfL0Xxlqlv5cDS//+iCUzmjzvprvGhzA=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=IF5PWLRwZ3W8kZnVR/YrM2BhpdTTWg2n95CZgpkjQeDbyZ7hFIz9Ag8w8glsCTe8e wYJsg9V9KpwJXzJKlWDdpiotnJ4nfLbailIpA3EUGoDspzGm67IeEkhPbgLxdVWEGE mUtxl/6sih/k9ZTvYOQ3kLl8Aj37o8Mx+jWIlBk3gvk/2U7ayrh8d1TRHxOHyHXZJ4 lnADxY203WtyVlW8hL/OGI9wp1RaGuvPfez2tXhGLw62RF6Oby0M+Y67onCWv5SgkW x+r2sY+iYeEdofBnOHXwbWpUMzThTaexKLtL+wexg12k6Y38yVku70oEQ3X1uecVtc JtkatWQH2uOVQ== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 13 Feb 2026 18:13:56 +0100 Message-Id: Subject: Re: [PATCH v2 2/2] drm/nouveau: Add DRM_IOCTL_NOUVEAU_GET_ZCULL_INFO Cc: "Lyude Paul" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Simona Vetter" , "Mary Guillemard" , , , To: "Mel Henning" From: "Danilo Krummrich" References: <20260205-zcull3-v2-0-ac572f38cc7b@darkrefraction.com> <20260205-zcull3-v2-2-ac572f38cc7b@darkrefraction.com> In-Reply-To: <20260205-zcull3-v2-2-ac572f38cc7b@darkrefraction.com> On Thu Feb 5, 2026 at 7:56 PM CET, Mel Henning wrote: > +int > +nouveau_abi16_ioctl_get_zcull_info(ABI16_IOCTL_ARGS) > +{ > + struct nouveau_drm *drm =3D nouveau_drm(dev); > + struct nvkm_gr *gr =3D nvxx_gr(drm); > + struct drm_nouveau_get_zcull_info *out =3D data; > + > + if (gr->has_zcull_info) { > + const struct nvkm_gr_zcull_info *i =3D &gr->zcull_info; > + > + out->width_align_pixels =3D i->width_align_pixels; > + out->height_align_pixels =3D i->height_align_pixels; > + out->pixel_squares_by_aliquots =3D i->pixel_squares_by_aliquots; > + out->aliquot_total =3D i->aliquot_total; > + out->zcull_region_byte_multiplier =3D i->zcull_region_byte_multiplier; > + out->zcull_region_header_size =3D i->zcull_region_header_size; > + out->zcull_subregion_header_size =3D i->zcull_subregion_header_size; > + out->subregion_count =3D i->subregion_count; > + out->subregion_width_align_pixels =3D i->subregion_width_align_pixels; > + out->subregion_height_align_pixels =3D i->subregion_height_align_pixel= s; > + out->ctxsw_size =3D i->ctxsw_size; > + out->ctxsw_align =3D i->ctxsw_align; > + > + return 0; > + } else { > + return -ENODEV; ENODEV usually means that that device fell off the bus, I think ENOTTY woul= d be a better fit. > + } > +}