[PATCH 150/156] drm/nouveau/nvkm: switch nvkm_object to non-irqsafe spinlock
Ben Skeggs
bskeggs at nvidia.com
Tue Apr 16 23:39:56 UTC 2024
- nvkm_object_search() no longer exists to be called from irq context
Signed-off-by: Ben Skeggs <bskeggs at nvidia.com>
---
drivers/gpu/drm/nouveau/nvkm/core/object.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nvkm/core/object.c b/drivers/gpu/drm/nouveau/nvkm/core/object.c
index 5645dd51abd5..f3cf39fb3567 100644
--- a/drivers/gpu/drm/nouveau/nvkm/core/object.c
+++ b/drivers/gpu/drm/nouveau/nvkm/core/object.c
@@ -160,9 +160,9 @@ nvkm_object_del(struct nvkm_object **pobject)
if (object && !WARN_ON(!object->func)) {
*pobject = nvkm_object_dtor(object);
- spin_lock_irq(&object->client->obj_lock);
+ spin_lock(&object->client->obj_lock);
list_del(&object->head);
- spin_unlock_irq(&object->client->obj_lock);
+ spin_unlock(&object->client->obj_lock);
kfree(*pobject);
*pobject = NULL;
@@ -217,7 +217,7 @@ nvkm_object_link_(struct nvif_client_priv *client, struct nvkm_object *parent,
{
object->client = client;
- spin_lock_irq(&client->obj_lock);
+ spin_lock(&client->obj_lock);
list_add_tail(&object->head, &parent->tree);
- spin_unlock_irq(&client->obj_lock);
+ spin_unlock(&client->obj_lock);
}
--
2.41.0
More information about the Nouveau
mailing list