From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 87552] [NV1A] 3.18.1 BUG on modprobe nouveau in drivers/gpu/drm/nouveau/core/core/event.c:42 Date: Sun, 21 Dec 2014 16:36:27 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1754773599==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============1754773599== Content-Type: multipart/alternative; boundary="1419179787.cdedAe81.4811"; charset="UTF-8" --1419179787.cdedAe81.4811 Date: Sun, 21 Dec 2014 16:36:27 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=87552 --- Comment #2 from Bruno --- Created attachment 111115 --> https://bugs.freedesktop.org/attachment.cgi?id=111115&action=edit BUG_ON(!spin_is_locked(lock)) is taboo on UP void nvkm_event_get(struct nvkm_event *event, u32 types, int index) { BUG_ON(!spin_is_locked(&event->refs_lock)); while (types) { int type = __ffs(types); types &= ~(1 << type); if (++event->refs[index * event->types_nr + type] == 1) { if (event->func->init) event->func->init(event, 1 << type, index); } } } Is it ever valid to do these spin_is_locked() checks on !SMP system? !SMP system do not have spinlocks at all! -- You are receiving this mail because: You are the assignee for the bug. --1419179787.cdedAe81.4811 Date: Sun, 21 Dec 2014 16:36:27 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 2 on bug 87552 from
Created attachment 111115 [details] [review]
BUG_ON(!spin_is_locked(lock)) is taboo on UP

void
nvkm_event_get(struct nvkm_event *event, u32 types, int index)
{
        BUG_ON(!spin_is_locked(&event->refs_lock));
        while (types) {
                int type = __ffs(types); types &= ~(1 << type);
                if (++event->refs[index * event->types_nr + type] == 1) {
                        if (event->func->init)
                                event->func->init(event, 1 << type, index);
                }
        }
}

Is it ever valid to do these spin_is_locked() checks on !SMP system?

!SMP system do not have spinlocks at all!


You are receiving this mail because:
  • You are the assignee for the bug.
--1419179787.cdedAe81.4811-- --===============1754773599== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cDovL2xpc3RzLmZy ZWVkZXNrdG9wLm9yZy9tYWlsbWFuL2xpc3RpbmZvL25vdXZlYXUK --===============1754773599==--