Re: [Nouveau] [PATCH] drm: nouveau: lsfw: cleanup coccinelle warning

2021-12-14 Thread kernel test robot
in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Qing-Wang/drm-nouveau-lsfw-cleanup-coccinelle-warning/20211214-202245 base: git://anongit.freedesktop.org/drm/drm drm-next config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20211215

[Nouveau] [PATCH] drm: nouveau: lsfw: cleanup coccinelle warning

2021-12-14 Thread Qing Wang
From: Wang Qing odd_ptr_err.cocci has complained about this warning for a long time: lsfw.c:194:5-11: inconsistent IS_ERR and PTR_ERR on line 195. Although there is no actual impact, it can improve scanning efficiency. Signed-off-by: Wang Qing ---

[Nouveau] [PATCH] drm: nouveau: use vmemdup_user instead of kvmalloc and copy_from_user

2021-12-14 Thread Qing Wang
From: Wang Qing fix memdup_user.cocci warning: nouveau_gem.c:630:7-15: WARNING opportunity for vmemdup_user Signed-off-by: Wang Qing --- drivers/gpu/drm/nouveau/nouveau_gem.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c

Re: [Nouveau] [PATCH] drm/nouveau: wait for the exclusive fence after the shared ones v2

2021-12-14 Thread Christian König
Am 11.12.21 um 10:59 schrieb Stefan Fritsch: On 09.12.21 11:23, Christian König wrote: Always waiting for the exclusive fence resulted on some performance regressions. So try to wait for the shared fences first, then the exclusive fence should always be signaled already. v2: fix incorrectly