Skip to content
Snippets Groups Projects
  1. Jan 03, 2025
  2. Jan 02, 2025
  3. Dec 24, 2024
    • unerlige's avatar
      xe/oa: Drop the unused logic to parse context image · fba0f039
      unerlige authored and Ashutosh Dixit's avatar Ashutosh Dixit committed
      
      Now that all register configurations are using MI_LOAD_REGISTER_IMM,
      drop the logic to parse context image for offset.
      
      v2: Remove unused lrc headers (Ashutosh)
      
      Signed-off-by: default avatarUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
      Reviewed-by: default avatarAshutosh Dixit <ashutosh.dixit@intel.com>
      Reviewed-by: default avatarJonathan Cavitt <jonathan.cavitt@intel.com>
      Signed-off-by: default avatarAshutosh Dixit <ashutosh.dixit@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20241220171919.571528-3-umesh.nerlige.ramappa@intel.com
      fba0f039
    • unerlige's avatar
      xe/oa: Fix query mode of operation for OAR/OAC · 55039832
      unerlige authored and Ashutosh Dixit's avatar Ashutosh Dixit committed
      
      This is a set of squashed commits to facilitate smooth applying to
      stable. Each commit message is retained for reference.
      
      1) Allow a GGTT mapped batch to be submitted to user exec queue
      
      For a OA use case, one of the HW registers needs to be modified by
      submitting an MI_LOAD_REGISTER_IMM command to the users exec queue, so
      that the register is modified in the user's hardware context. In order
      to do this a batch that is mapped in GGTT, needs to be submitted to the
      user exec queue. Since all user submissions use q->vm and hence PPGTT,
      add some plumbing to enable submission of batches mapped in GGTT.
      
      v2: ggtt is zero-initialized, so no need to set it false (Matt Brost)
      
      2) xe/oa: Use MI_LOAD_REGISTER_IMMEDIATE to enable OAR/OAC
      
      To enable OAR/OAC, a bit in RING_CONTEXT_CONTROL needs to be set.
      Setting this bit cause the context image size to change and if not done
      correct, can cause undesired hangs.
      
      Current code uses a separate exec_queue to modify this bit and is
      error-prone. As per HW recommendation, submit MI_LOAD_REGISTER_IMM to
      the target hardware context to modify the relevant bit.
      
      In v2 version, an attempt to submit everything to the user-queue was
      made, but it failed the unprivileged-single-ctx-counters test. It
      appears that the OACTXCONTROL must be modified from a remote context.
      
      In v3 version, all context specific register configurations were moved
      to use LOAD_REGISTER_IMMEDIATE and that seems to work well. This is a
      cleaner way, since we can now submit all configuration to user
      exec_queue and the fence handling is simplified.
      
      v2:
      (Matt)
      - set job->ggtt to true if create job is successful
      - unlock vm on job error
      
      (Ashutosh)
      - don't wait on job submission
      - use kernel exec queue where possible
      
      v3:
      (Ashutosh)
      - Fix checkpatch issues
      - Remove extra spaces/new-lines
      - Add Fixes: and Cc: tags
      - Reset context control bit when OA stream is closed
      - Submit all config via MI_LOAD_REGISTER_IMMEDIATE
      
      (Umesh)
      - Update commit message for v3 experiment
      - Squash patches for easier port to stable
      
      v4:
      (Ashutosh)
      - No need to pass q to xe_oa_submit_bb
      - Do not support exec queues with width > 1
      - Fix disabling of CTX_CTRL_OAC_CONTEXT_ENABLE
      
      v5:
      (Ashutosh)
      - Drop reg_lri related comments
      - Use XE_OA_SUBMIT_NO_DEPS in xe_oa_load_with_lri
      
      Fixes: 8135f1c0 ("drm/xe/oa: Don't reset OAC_CONTEXT_ENABLE on OA stream close")
      Signed-off-by: default avatarUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
      Reviewed-by: Matthew Brost <matthew.brost@intel.com> # commit 1
      Reviewed-by: default avatarAshutosh Dixit <ashutosh.dixit@intel.com>
      Cc: stable@vger.kernel.org
      Reviewed-by: default avatarJonathan Cavitt <jonathan.cavitt@intel.com>
      Signed-off-by: default avatarAshutosh Dixit <ashutosh.dixit@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20241220171919.571528-2-umesh.nerlige.ramappa@intel.com
      55039832
  4. Dec 23, 2024
  5. Dec 21, 2024
  6. Dec 20, 2024
  7. Dec 19, 2024
  8. Dec 18, 2024
  9. Dec 17, 2024
  10. Dec 16, 2024
  11. Dec 13, 2024
  12. Dec 11, 2024
  13. Dec 10, 2024
  14. Dec 09, 2024
  15. Dec 08, 2024
    • Linus Torvalds's avatar
      Linux 6.13-rc2 · fac04efc
      Linus Torvalds authored
      fac04efc
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.13' of... · 0b6809a7
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Fix a section mismatch warning in modpost
      
       - Fix Debian package build error with the O= option
      
      * tag 'kbuild-fixes-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: deb-pkg: fix build error with O=
        modpost: Add .irqentry.text to OTHER_SECTIONS
      0b6809a7
    • Linus Torvalds's avatar
      Merge tag 'irq_urgent_for_v6.13_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · eadaac4d
      Linus Torvalds authored
      Pull irq fixes from Borislav Petkov:
      
       - Fix a /proc/interrupts formatting regression
      
       - Have the BCM2836 interrupt controller enter power management states
         properly
      
       - Other fixlets
      
      * tag 'irq_urgent_for_v6.13_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/stm32mp-exti: CONFIG_STM32MP_EXTI should not default to y when compile-testing
        genirq/proc: Add missing space separator back
        irqchip/bcm2836: Enable SKIP_SET_WAKE and MASK_ON_SUSPEND
        irqchip/gic-v3: Fix irq_complete_ack() comment
      eadaac4d
    • Linus Torvalds's avatar
      Merge tag 'timers_urgent_for_v6.13_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · c25ca0c2
      Linus Torvalds authored
      Pull timer fix from Borislav Petkov:
      
       - Handle the case where clocksources with small counter width can,
         in conjunction with overly long idle sleeps, falsely trigger the
         negative motion detection of clocksources
      
      * tag 'timers_urgent_for_v6.13_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        clocksource: Make negative motion detection more robust
      c25ca0c2
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.13_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 84262262
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Have the Automatic IBRS setting check on AMD does not falsely fire in
         the guest when it has been set already on the host
      
       - Make sure cacheinfo structures memory is allocated to address a boot
         NULL ptr dereference on Intel Meteor Lake which has different numbers
         of subleafs in its CPUID(4) leaf
      
       - Take care of the GDT restoring on the kexec path too, as expected by
         the kernel
      
       - Make sure SMP is not disabled when IO-APIC is disabled on the kernel
         cmdline
      
       - Add a PGD flag _PAGE_NOPTISHADOW to instruct machinery not to
         propagate changes to the kernelmode page tables, to the user portion,
         in PTI
      
       - Mark Intel Lunar Lake as affected by an issue where MONITOR wakeups
         can get lost and thus user-visible delays happen
      
       - Make sure PKRU is properly restored with XRSTOR on AMD after a PRKU
         write of 0 (WRPKRU) which will mark PKRU in its init state and thus
         lose the actual buffer
      
      * tag 'x86_urgent_for_v6.13_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/CPU/AMD: WARN when setting EFER.AUTOIBRS if and only if the WRMSR fails
        x86/cacheinfo: Delete global num_cache_leaves
        cacheinfo: Allocate memory during CPU hotplug if not done from the primary CPU
        x86/kexec: Restore GDT on return from ::preserve_context kexec
        x86/cpu/topology: Remove limit of CPUs due to disabled IO/APIC
        x86/mm: Add _PAGE_NOPTISHADOW bit to avoid updating userspace page tables
        x86/cpu: Add Lunar Lake to list of CPUs with a broken MONITOR implementation
        x86/pkeys: Ensure updated PKRU value is XRSTOR'd
        x86/pkeys: Change caller of update_pkru_in_sigframe()
      84262262
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2024-12-07-22-39' of... · 553c89ec
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2024-12-07-22-39' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc fixes from Andrew Morton:
       "24 hotfixes.  17 are cc:stable.  15 are MM and 9 are non-MM.
      
        The usual bunch of singletons - please see the relevant changelogs for
        details"
      
      * tag 'mm-hotfixes-stable-2024-12-07-22-39' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: (24 commits)
        iio: magnetometer: yas530: use signed integer type for clamp limits
        sched/numa: fix memory leak due to the overwritten vma->numab_state
        mm/damon: fix order of arguments in damos_before_apply tracepoint
        lib: stackinit: hide never-taken branch from compiler
        mm/filemap: don't call folio_test_locked() without a reference in next_uptodate_folio()
        scatterlist: fix incorrect func name in kernel-doc
        mm: correct typo in MMAP_STATE() macro
        mm: respect mmap hint address when aligning for THP
        mm: memcg: declare do_memsw_account inline
        mm/codetag: swap tags when migrate pages
        ocfs2: update seq_file index in ocfs2_dlm_seq_next
        stackdepot: fix stack_depot_save_flags() in NMI context
        mm: open-code page_folio() in dump_page()
        mm: open-code PageTail in folio_flags() and const_folio_flags()
        mm: fix vrealloc()'s KASAN poisoning logic
        Revert "readahead: properly shorten readahead when falling back to do_page_cache_ra()"
        selftests/damon: add _damon_sysfs.py to TEST_FILES
        selftest: hugetlb_dio: fix test naming
        ocfs2: free inode when ocfs2_get_init_inode() fails
        nilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()
        ...
      553c89ec
Loading