linux-yocto/drivers/gpu/drm/i915/gem
Jani Nikula 394b524620 drm/i915/gem: fix bitwise and logical AND mixup
CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND is an int, defaulting to 250. When
the wakeref is non-zero, it's either -1 or a dynamically allocated
pointer, depending on CONFIG_DRM_I915_DEBUG_RUNTIME_PM. It's likely that
the code works by coincidence with the bitwise AND, but with
CONFIG_DRM_I915_DEBUG_RUNTIME_PM=y, there's the off chance that the
condition evaluates to false, and intel_wakeref_auto() doesn't get
called. Switch to the intended logical AND.

v2: Use != to avoid clang -Wconstant-logical-operand (Nathan)

Fixes: ad74457a6b ("drm/i915/dgfx: Release mmap on rpm suspend")
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Cc: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: stable@vger.kernel.org # v6.1+
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> # v1
Link: https://patchwork.freedesktop.org/patch/msgid/643cc0a4d12f47fd8403d42581e83b1e9c4543c7.1726680898.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
(cherry picked from commit 4c1bfe259e)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
2024-10-01 10:28:29 +03:00
..
selftests drm: use mem_is_zero() instead of !memchr_inv(s, 0, n) 2024-08-16 12:07:46 +03:00
i915_gem_busy.c
i915_gem_clflush.c
i915_gem_clflush.h
i915_gem_context_types.h drm/i915/guc: Use context hints for GT frequency 2024-03-07 10:25:06 -08:00
i915_gem_context.c drm/i915: Support replaying GPU hangs with captured context image 2024-05-16 07:37:05 +00:00
i915_gem_context.h
i915_gem_create.c
i915_gem_create.h
i915_gem_dmabuf.c
i915_gem_dmabuf.h
i915_gem_domain.c
i915_gem_domain.h
i915_gem_execbuffer.c Merge tag 'drm-intel-gt-next-2024-09-06' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-next 2024-09-11 09:11:54 +10:00
i915_gem_internal.c
i915_gem_internal.h
i915_gem_ioctls.h
i915_gem_lmem.c
i915_gem_lmem.h
i915_gem_mman.c drm/i915/gem: Calculate object page offset for partial memory mapping 2024-08-21 15:28:33 +02:00
i915_gem_mman.h
i915_gem_object_frontbuffer.h
i915_gem_object_types.h drm/i915: Replace double blank with single blank after comma in gem/ and gt/ 2024-08-08 11:40:41 +01:00
i915_gem_object.c
i915_gem_object.h drm: Fix kerneldoc for "Returns" section 2024-08-26 16:40:09 +02:00
i915_gem_pages.c fix missing vmalloc.h includes 2024-04-25 20:55:49 -07:00
i915_gem_phys.c
i915_gem_pm.c
i915_gem_pm.h
i915_gem_region.c drm/i915: Use struct resource for memory region IO as well 2024-02-07 01:58:40 +02:00
i915_gem_region.h
i915_gem_shmem.c fs: Convert aops->write_begin to take a folio 2024-08-07 11:33:21 +02:00
i915_gem_shrinker.c
i915_gem_shrinker.h
i915_gem_stolen.c Merge tag 'drm-intel-gt-next-2024-07-04' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-next 2024-07-05 12:14:59 +02:00
i915_gem_stolen.h drm/i915/gem: Replace dev_priv with i915 2024-03-28 20:41:04 +01:00
i915_gem_throttle.c
i915_gem_tiling.c drm/i915/gem: Replace dev_priv with i915 2024-03-28 20:41:04 +01:00
i915_gem_tiling.h
i915_gem_ttm_move.c drm/i915/gem/i915_gem_ttm_move: Fix typo 2024-05-13 11:57:06 -04:00
i915_gem_ttm_move.h
i915_gem_ttm_pm.c
i915_gem_ttm_pm.h
i915_gem_ttm.c drm/i915/gem: fix bitwise and logical AND mixup 2024-10-01 10:28:29 +03:00
i915_gem_ttm.h
i915_gem_userptr.c drm/i915/gem: Replace dev_priv with i915 2024-03-28 20:41:04 +01:00
i915_gem_wait.c treewide: Fix wrong singular form of jiffies in comments 2024-09-08 20:47:40 +02:00
i915_gemfs.c
i915_gemfs.h