llama.cpp
hexagon: L2 cache handling rework (dirty bit tracking with lazy flushing) and more MUL_MAT updates
#25762
Merged

hexagon: L2 cache handling rework (dirty bit tracking with lazy flushing) and more MUL_MAT updates #25762

max-krasnyansky
max-krasnyansky hex-mm: fix artificial limit in the solver that restricted number of …
77909d64
max-krasnyansky hex-mm: fix warning
836ebc76
max-krasnyansky hex-prof: do not apply --top to the timeline report
8f3c7ace
max-krasnyansky hmx-mm: add suport for tiled act-processing to better distribute hvx …
c482febb
max-krasnyansky hex-l2: add tracing for l2flush events
89c5e1f9
max-krasnyansky workqueue: redo the legacy workpool api to match hmx-queue and dma-queue
a613817a
max-krasnyansky hmx-mm: fix f32 activation buffer alignmnet for nhvx=5,6,7
0b35b80b
max-krasnyansky hex-work: minor cleanup for work-queue apis
dcb682f8
max-krasnyansky hex-work: further cleanup of the work-queue api
38fd0678
max-krasnyansky hex-l2: optimize l2flushes at the opbatch level
c618805f
max-krasnyansky hex-work: remove unused mask
a85f7e07
max-krasnyansky hex-work: no need to drop hvx ctx in the work-queue
54a4b194
max-krasnyansky hex-work: add explicit wakeup/suspend and make threads spin
37d5de93
max-krasnyansky hex-bufs: mark any non-weight tensor as compute
398cf7ed
max-krasnyansky hex-dma: dma-queue support for alias queues and cached dma
97c3ff04
max-krasnyansky hex-l2: track tensor aliases and delay or skip flushes as much as pos…
61f05556
max-krasnyansky hex-l2: simplify tensor alias handling
ac7d4698
max-krasnyansky hex-l2: handle overlapping views as a circular list of aliases
04312e2d
max-krasnyansky hex-tens: add flags helper
6dc25fbc
max-krasnyansky hex-l2: add helper for marking tensors clearn/dirty
a86267a3
max-krasnyansky hex-l2: mark binary and rope outputs as l2-clean and keep the rest as…
97dfab91
max-krasnyansky hex-l2: proper support for handling all tensor overlap scenarios
fa9580a0
max-krasnyansky hex-trace: instrument matmul init code and cleanup trace checks
fb7340e8
max-krasnyansky hex-thread: introduce dedicated main thread with explicit stack and p…
ab5c493e
max-krasnyansky hex-l2: track dirty state as bitmap and introduce threaded flush
5eb80a18
max-krasnyansky hex-trace: remove redundant checks for ctx != null
cddf03ae
max-krasnyansky hex-l2: allocate entire context as one buffer and l2fetch it after bi…
56d78f9f
max-krasnyansky hex-l2: disable tensor clearing in binary and rope for now seems to c…
4f8319da
max-krasnyansky hmx-mm: update act proc to use fastdivs and fix DMA overflow
80ae6fb0
max-krasnyansky hmx-mm: make MUL_MAT_ID kernels robust to multi-chunk cases (start_ro…
f912d9c9
max-krasnyansky hex-queue: remove obsolete queue interfaces and flush hmx-queue at th…
e5132fd4
max-krasnyansky hex-queue: dont use early wakeup for small op-batches
0c123634
max-krasnyansky hex-tensors: properly cap max_tensors in op-batches and dirty_map
e9764525
max-krasnyansky hex-l2: make sure threaded l2flush does proper rounding
3e29fb8d
max-krasnyansky hex-l2: factor out htp_tensor_flush for reuse (if needed)
c27ad669
max-krasnyansky hex-l2: optimize tensor flushes by coalescing flush-all
d90084e6
max-krasnyansky hex-l2: optimize multi-threaded flush
3d47e9de
max-krasnyansky hex-drv: futureproof version checks
44c8ebe0
max-krasnyansky hexagon: fix errors and warnings on windows
7b0c70cc
max-krasnyansky hex-main: update main thread to only use dspqueue_read, dspqueue_peek…
4d3a7895
max-krasnyansky hex-main: add fallback mode for dspqueue with callbacks
34d46cc5
max-krasnyansky hex-main: introduce fallback mode for using dspqueue callbacks for fu…
1a95b1a0
max-krasnyansky hex-main: remove early wakeup, not helping and seems to cause some er…
d677d50e
max-krasnyansky hex-l2: make sure to use invalidate version of flushall
0497a410
max-krasnyansky hex-l2: dont try to trace early l2flush at the start of op-batch
7d60dd04
max-krasnyansky hex-main: remove offset_ctx that must be zero anyway
29b1c62c
max-krasnyansky hex-hmx: fix hmx_queue_depth to use idx_write - idx_read
335d9d9a
max-krasnyansky hex-hmx: use atomic_load for idx_read/write
3541ca46
max-krasnyansky hex-main: add static assert to make sure n_threads are aligned
cacbf97f
max-krasnyansky max-krasnyansky requested a review 139 days ago
github-actions github-actions added ggml
github-actions github-actions added Hexagon
lhez
lhez approved these changes on 2026-07-16
max-krasnyansky
taronaeo
taronaeo approved these changes on 2026-07-16
max-krasnyansky max-krasnyansky merged b2dd28a3 into master 139 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone