Skip to content
  1. Nov 20, 2023
  2. Nov 18, 2023
  3. Nov 17, 2023
    • Daniele Ceraolo Spurio's avatar
      drm/i915/huc: Stop printing about unsupported HuC on MTL · d3715a64
      Daniele Ceraolo Spurio authored
      
      
      On MTL, the HuC is only supported on the media GT, so our validation
      check on the module parameter detects an inconsistency on the root GT
      (the modparams asks to enable HuC, but the support is not there) and
      prints the following info message:
      
      [drm] GT0: Incompatible option enable_guc=3 - HuC is not supported!
      
      This can be confusing to the user and make them think that something is
      wrong when it isn't, so we need to silence it.
      Given that any platform that supports HuC also supports GuC, if a user
      tries to enable HuC on a platform that really doesn't support it they'll
      already see a message about GuC not being supported, so instead of just
      silencing the HuC message on newer platforms we can just get rid of it
      entirely.
      
      Signed-off-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Cc: John Harrison <john.c.harrison@intel.com>
      Reviewed-by: default avatarJohn Harrison <John.C.Harrison@Intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231109235436.2349963-1-daniele.ceraolospurio@intel.com
      d3715a64
  4. Nov 16, 2023
  5. Nov 10, 2023
  6. Nov 09, 2023
    • Sam James's avatar
      drm: i915: Adapt to -Walloc-size · bae9fca9
      Sam James authored
      
      
      GCC 14 introduces a new -Walloc-size included in -Wextra which errors out
      like:
      ```
      drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c: In function ‘eb_copy_relocations’:
      drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1681:24: error: allocation of insufficient size ‘1’ for type ‘struct drm_i915_gem_relocation_entry’ with size ‘32’ [-Werror=alloc-size]
       1681 |                 relocs = kvmalloc_array(size, 1, GFP_KERNEL);
            |                        ^
      
      ```
      
      So, just swap the number of members and size arguments to match the prototype, as
      we're initialising 1 element of size `size`. GCC then sees we're not
      doing anything wrong.
      
      Signed-off-by: default avatarSam James <sam@gentoo.org>
      Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231107215538.1891359-1-sam@gentoo.org
      bae9fca9
  7. Nov 08, 2023
  8. Nov 07, 2023
  9. Nov 06, 2023
  10. Nov 03, 2023
  11. Nov 02, 2023
  12. Oct 31, 2023
  13. Oct 30, 2023
  14. Oct 29, 2023
  15. Oct 27, 2023
  16. Oct 26, 2023
    • Nirmoy Das's avatar
      drm/i915/gt: Use proper priority enum instead of 0 · ffc02c67
      Nirmoy Das authored
      
      
      I915_PRIORITY_NORMAL is 0 so use that instead for better
      readability.
      
      Cc: John Harrison <John.C.Harrison@Intel.com>
      Signed-off-by: default avatarNirmoy Das <nirmoy.das@intel.com>
      Reviewed-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231023121305.12560-1-nirmoy.das@intel.com
      ffc02c67
    • Arnd Bergmann's avatar
      drm/i915/mtl: avoid stringop-overflow warning · 0520b30b
      Arnd Bergmann authored
      The newly added memset() causes a warning for some reason I could not
      figure out:
      
      In file included from arch/x86/include/asm/string.h:3,
                       from drivers/gpu/drm/i915/gt/intel_rc6.c:6:
      In function 'rc6_res_reg_init',
          inlined from 'intel_rc6_init' at drivers/gpu/drm/i915/gt/intel_rc6.c:610:2:
      arch/x86/include/asm/string_32.h:195:29: error: '__builtin_memset' writing 16 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
        195 | #define memset(s, c, count) __builtin_memset(s, c, count)
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/i915/gt/intel_rc6.c:584:9: note: in expansion of macro 'memset'
        584 |         memset(rc6->res_reg, INVALID_MMIO_REG.reg, sizeof(rc6->res_reg));
            |         ^~~~~~
      In function 'intel_rc6_init':
      
      Change it to an normal initializer and an added memcpy() that does not have
      this problem.
      
      Fixes: 4bb9ca7e
      
       ("drm/i915/mtl: C6 residency and C state type for MTL SAMedia")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231016201012.1022812-1-arnd@kernel.org
      0520b30b