mirror of
https://github.com/torvalds/linux.git
synced 2026-10-31 20:24:02 +01:00
drm/nouveau/kms: Only allow enabling atomic modesetting on nv50+
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 <lyude@redhat.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Link: https://patch.msgid.link/20260813204803.2097176-5-lyude@redhat.com
This commit is contained in:
parent
830b2e55df
commit
69facd615b
|
|
@ -739,10 +739,17 @@ nouveau_drm_device_new(struct device *parent, struct nvkm_device *device)
|
|||
struct nouveau_drm *drm;
|
||||
int ret;
|
||||
|
||||
if (nouveau_atomic)
|
||||
driver = &driver_atomic_kms;
|
||||
else
|
||||
if (device->card_type >= NV_50) {
|
||||
if (nouveau_atomic)
|
||||
driver = &driver_atomic_kms;
|
||||
else
|
||||
driver = &driver_legacy_kms;
|
||||
} else {
|
||||
if (nouveau_atomic)
|
||||
dev_warn(parent, "Atomic modesetting not supported (needs nv50+)\n");
|
||||
|
||||
driver = &driver_legacy_kms;
|
||||
}
|
||||
|
||||
drm = kzalloc_obj(*drm);
|
||||
if (!drm)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user