Quoting Michał Winiarski (2017-09-14 09:32:14) > + /* we're not expecting the doorbell cookie to change behind our back */ > + cookie = READ_ONCE(db->cookie); > + if (cmpxchg(&db->cookie, cookie, cookie + 1) != cookie) > + BUG(); Or just WARN_ON_ONCE(xchg(&db->cookie, cookie + 1) != cookie); -Chris _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx