From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 075C148123E for ; Wed, 19 Aug 2026 16:00:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787155203; cv=none; b=SVHFH88/KIj8w2LPWqpmPzqJExZ462Vv51QgxBXPFQgoywah7JyWqtNyAakHttb40ez0FrbBqlOx1/Nyk5ffbCQyai33VJZDPkIQt5qSvSiPGYv0t5VtlIwT5sYrZ7U4bKYIBptq6vLbpU1fyrSGxZ+DisNbTl4WWKJ1EPnkEpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787155203; c=relaxed/simple; bh=YTV6fb1lQDzXeRIcr9q3KeOeZ418I98D24tYq7f/8XQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AlPvW3g2YStQeZlQy/BrJ4g+h1FGMYJwLp6vR5Dvqww3QBS5gA3VbtW7DXWmNMgZfd0E01oQm2Dw0xtljYphaXTW6q92aYf9RWuRLxR7rWxqKc5liCSOgmaUDkYmgdgCa4rRPVXBdKy+/jO0mWwD+6lRvVGl/DZUNVmxHSlDXR8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=P7OHcxfj; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="P7OHcxfj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1787155200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3Iz/4jWyINOcI8ZACwTPuDHgHiq9U8jasCe3dns6TY8=; b=P7OHcxfji3XZfgtoYwjnNORA4Cnk/h3p6kTwJ4g0ikuThMo6eet/JkEzYF6zWLY2fr3Jm6 zdORpb8RiOmAmDZO5cYUcE0YZ4Rh4Ln/AVupLULXzCiXAumCd++L0mmNGeFgWMVrkjhcBj MkuhLjWJzRUF1ISZVl6D93+d6MmGsRk= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-641-axtJ9z8wNKiQactqz3rnBQ-1; Wed, 19 Aug 2026 11:59:46 -0400 X-MC-Unique: axtJ9z8wNKiQactqz3rnBQ-1 X-Mimecast-MFC-AGG-ID: axtJ9z8wNKiQactqz3rnBQ_1787155182 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 189DD1955F1D; Wed, 19 Aug 2026 15:59:41 +0000 (UTC) Received: from GoldenWind.lan (unknown [10.22.89.72]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DD8EE1800346; Wed, 19 Aug 2026 15:59:36 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Marek Czernohous Cc: "Dave Airlie" , "Marek Czernohous" , "Maarten Lankhorst" , "Luca Ceresoli" , "Marco Crivellari" , "Kees Cook" , "Simona Vetter" , "Ben Skeggs" , "David Airlie" , "Thomas Zimmermann" , "Maxime Ripard" , "Danilo Krummrich" , "Jani Nikula" , "James Jones" , "Lyude Paul" Subject: [PATCH v2 0/6] Obliterate nouveau_encoder->crtc Date: Wed, 19 Aug 2026 11:43:47 -0400 Message-ID: <20260819155934.154125-1-lyude@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 This is mostly a leftover artifact from the pre-atomic days, and while we've been using it for a while now - it isn't great. Mostly because having redundant state tracking for things atomic already keeps track of is pretty much always error prone, as anyone working on nouveau who isn't already very well versed in atomic modesetting isn't going to realize this isn't the right way to see what CRTC is assigned to an encoder. Also - this patch series does fix an actual bug (patches 1-3). Previous version of this patch series: https://patchwork.freedesktop.org/series/172417/ Lyude Paul (6): drm/nouveau/kms/nv50-: Move DPCD backlight disable into its own function drm/nouveau/kms/nv50-: Add nv50_outp_get_old_crtc() drm/nouveau/kms/nv50-: Stop using nv_encoder->crtc in nv50_sor_atomic_disable() drm/nouveau/kms/nv50-: Stop using nv_encoder->crtc in nv50_disp_atomic_commit_core() drm/nouveau/kms/nv50-: Add nouveau_encoder->audio.crtc drm/nouveau/kms/nv50-: Obliterate nouveau_encoder->crtc drivers/gpu/drm/nouveau/dispnv50/disp.c | 78 ++++++++++++++++------- drivers/gpu/drm/nouveau/nouveau_encoder.h | 4 +- 2 files changed, 56 insertions(+), 26 deletions(-) base-commit: 0e118b936dc5904cf0d9859882a40c96057b083d -- 2.55.0