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 059D23C3448 for ; Thu, 30 Jul 2026 20:46:25 +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=1785444387; cv=none; b=VSczyydjZGRRvlAkIdoHCKeptvFVIMdCnh4Zs1OJUSUwnXUnOis3ft7HQytXoS0RbpvAkT43hd92FGw9i6165O0VC3plG29C24yIOMY1zuZ/aG3by00MIKqHrW6BhBWX+1gQ0I/+JS4KvX/2Pexh+x5Eot2bn6q7e3u5FqTD93M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785444387; c=relaxed/simple; bh=9W99dPvgnXr05Wyyl8nocORq/9E5OshM2m36zs0hqlk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tWu4/zEN/mh1iv6ONA6SSTlimkgGv1Oghej4moTBGUZvORR8r9vBPOW+pJJTnsT8eJgSflYR8Mo2cMQJDF3kQeSoRGzWCqA0IbMfnkutNVLKwsUy8hUgwBk3ETNFEeCKFhBle7l0IqU00xm4+Hm1mb5XX5yyzHPF3MScTdAVzho= 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=AlJ3eU7c; 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="AlJ3eU7c" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1785444385; 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: in-reply-to:in-reply-to:references:references; bh=iHo1fNYCfA2pUUad8d3A7yhR0sK0qRAEvCx1qYV41lo=; b=AlJ3eU7c0JJGGXI7YR7UfAGgzxDEtat8vPgrwkMTCJn+fQfbEmxkaZHWamjS6+Ez4ms7gG NQt6QNiN2YXSBuzzk3M9FTxulplzSef5sbtMFdjoNMiwIl0frwzAzV6oVOpOP+HfYxTJzS fsZAqiAYi3YBMr5AkP8DSk+SJCXTvms= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-453-w2pNU1gBMUaRYzW82OLINA-1; Thu, 30 Jul 2026 16:46:21 -0400 X-MC-Unique: w2pNU1gBMUaRYzW82OLINA-1 X-Mimecast-MFC-AGG-ID: w2pNU1gBMUaRYzW82OLINA_1785444380 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 40B33180044D; Thu, 30 Jul 2026 20:46:20 +0000 (UTC) Received: from GoldenWind.lan (unknown [10.22.88.35]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0671D1956089; Thu, 30 Jul 2026 20:46:17 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: "Maarten Lankhorst" , "Simona Vetter" , "David Airlie" , "Thomas Zimmermann" , "Maxime Ripard" , "Danilo Krummrich" , "Lyude Paul" Subject: [PATCH v5 4/5] drm/nouveau/kms: Only allow enabling atomic modesetting on nv50+ Date: Thu, 30 Jul 2026 16:45:09 -0400 Message-ID: <20260730204604.1729505-5-lyude@redhat.com> In-Reply-To: <20260730204604.1729505-1-lyude@redhat.com> References: <20260730204604.1729505-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.0 on 10.30.177.12 Atomic modesetting support was never added for pre-nv50 chipsets, so make sure we don't allow it to be forced on. Additionally, print a small warning when it's not supported. Signed-off-by: Lyude Paul --- V2: * Check against info.family, not info.chipset drivers/gpu/drm/nouveau/nouveau_drm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 9cd12ebc7e449..bfe9d6fe450a5 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -769,8 +769,12 @@ nouveau_drm_device_new(struct device *parent, struct nvkm_device *device) goto done; } - if (nouveau_atomic) - drm->drm_driver.driver_features |= DRIVER_ATOMIC; + if (nouveau_atomic) { + if (drm->device.info.family >= NV_DEVICE_INFO_V0_TESLA) + drm->drm_driver.driver_features |= DRIVER_ATOMIC; + else + NV_WARN(drm, "Atomic modesetting not supported (needs nv50+)\n"); + } ret = nvif_device_map(&drm->device); if (ret) { -- 2.55.0