mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lyude Paul <lyude.paul@maintainer.cc>
To: Ian Rogers <irogers@google.com>,
	Danilo Krummrich <dakr@kernel.org>,
	 Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann	 <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>,
	Simona Vetter	 <simona@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org,
	 linux-kernel@vger.kernel.org, llvm@lists.linux.dev,
	Elkin Cruz <elkin@google.com>
Subject: Re: [PATCH 2/2] drm/nouveau/kms: Initialize primary_crc for RG CRC capture on GB20x
Date: Mon, 30 Nov 2026 19:06:53 -0500	[thread overview]
Message-ID: <dddb8c0cd9922773e19446d32f15953305c72cdd.camel@maintainer.cc> (raw)
In-Reply-To: <8b8db80fa775d701fc94bf9e4aa4b0cc577febf3.1795106937.git.irogers@google.com>

Reviewed-by: Lyude Paul <lyude.paul@maintainer.cc>

On Thu, 2026-11-19 at 09:03 -0800, Ian Rogers wrote:
> In crcca7d_set_src(), selecting the "rg" CRC source passes
> NV50_CRC_SOURCE_TYPE_RG, hitting the default case without
> initializing
> primary_crc before packing it into HEAD_SET_CRC_CONTROL's PRIMARY_CRC
> field.
> 
> Initialize primary_crc to
> NVCA7D_HEAD_SET_CRC_CONTROL_PRIMARY_CRC_NONE
> in the default branch, matching crcc37d_set_src() where RG CRC
> capture
> leaves PRIMARY_CRC set to NONE.
> 
> Found via Clang -Wconditional-uninitialized on an x86_64 allyesconfig
> build. Verified by building
> drivers/gpu/drm/nouveau/dispnv50/crcca7d.o
> with LLVM=1 W=1 (-Werror) and -Wconditional-uninitialized; not
> runtime-tested on NVIDIA Blackwell (GB20x) hardware.
> 
> Fixes: 6cc6e08d4542 ("drm/nouveau/kms: add support for GB20x")
> Signed-off-by: Ian Rogers <irogers@google.com>
> ---
>  drivers/gpu/drm/nouveau/dispnv50/crcca7d.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/nouveau/dispnv50/crcca7d.c
> b/drivers/gpu/drm/nouveau/dispnv50/crcca7d.c
> index 912f59aebe87..02db81e5c8a3 100644
> --- a/drivers/gpu/drm/nouveau/dispnv50/crcca7d.c
> +++ b/drivers/gpu/drm/nouveau/dispnv50/crcca7d.c
> @@ -65,6 +65,7 @@ crcca7d_set_src(struct nv50_head *head, int or,
> enum nv50_crc_source_type source
>  		primary_crc =
> NVCA7D_HEAD_SET_CRC_CONTROL_PRIMARY_CRC_SF;
>  		break;
>  	default:
> +		primary_crc =
> NVCA7D_HEAD_SET_CRC_CONTROL_PRIMARY_CRC_NONE;
>  		break;
>  	}
>  

      reply	other threads:[~2026-12-01  0:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 17:03 [PATCH 0/2] drm/nouveau: Two fixes from Clang warning audit Ian Rogers
2026-11-19 17:03 ` [PATCH 1/2] drm/nouveau: Handle NVIF_CONN_TV and fix error cleanup in nouveau_connector_create() Ian Rogers
2026-12-01  0:04   ` lyude
2026-11-19 17:03 ` [PATCH 2/2] drm/nouveau/kms: Initialize primary_crc for RG CRC capture on GB20x Ian Rogers
2026-12-01  0:06   ` Lyude Paul [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dddb8c0cd9922773e19446d32f15953305c72cdd.camel@maintainer.cc \
    --to=lyude.paul@maintainer.cc \
    --cc=airlied@gmail.com \
    --cc=dakr@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=elkin@google.com \
    --cc=irogers@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=nouveau@lists.freedesktop.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®