summaryrefslogtreecommitdiff
path: root/sys/external/bsd/common/linux
AgeCommit message (Collapse)Author
2023-02-24drm: Eliminate __HAVE_ATOMIC_AS_MEMBAR conditionals.riastradh
Discussed on tech-kern: https://mail-index.netbsd.org/tech-kern/2023/02/23/msg028729.html
2022-04-09linux: Convert various API shims to use membar_release/acquire.riastradh
2021-12-31drm: Convert noisy flush_workqueue message to dtrace probe.riastradh
2021-12-27linux: Fix copypasto in comment.riastradh
2021-12-19drm: Sprinkle miscellaneous includes.riastradh
2021-12-19linux: Fix rcu_barrier so it actually waits for everything.riastradh
2021-12-19linux: Rate-limit RCU GC thread as a cheap experiment.riastradh
2021-12-19linux: Downgrade warning about flushing from workqueue to debug.riastradh
2021-12-19linux: Make flush_workqueue a noop if run from the workqueue.riastradh
I think this matches Linux semantics but this is very much not clear and not written down anywhere obvious and why is this such a semantically incoherent mess.
2021-12-19linux: Fix flush_workqueue.riastradh
Simplify mechanism: we know there's only a single thread here that processes scheduled work in FIFO order (no multi-CPU workqueues -- would have to adapt if there were), so just schedule a work item that notifies of completion. The previous mechanism of counting 0, 1, or 2 generation numbers was broken by an earlier change to avoid abuse of tailqs arising from clever TAILQ_CONCAT.
2021-12-19linux: Update workqueue flush to reflect TAILQ_CONCAT change.riastradh
2021-12-19linux: Use kmem directly for Linux kmalloc.riastradh
Take advantage of this to do LOCKDEBUG_MEM_CHECK at the point of kfree_rcu rather than in the RCU GC thread.
2021-12-19linux: Use indirection for percpu simpleq.riastradh
Simpleq requires pointers into the head to work, but percpu(9) may move objects around, so we have to allocate the simpleq head separately with kmem(9).
2021-12-19Make intel_psr.c buildriastradh
netbsd-ify Stub out intel_lpe_audio.c (for now?). Hammer intel_opregion.c into shape. Hack up intel_lrc.c Adapt intel_reset.c Stub out intel_region_lmem.c Adapt intel_ring_submission.c Adapt intel_rps.c Adapt intel_sdvo.c Adapt intel_runtime_pm.c Adapt intel_sideband.c Adapt intel_sprite.c Adapt intel_tv.c Adapt intel_tc.c Adapt intel_sseu.c Adapt intel_timeline.c Adapt intel_uc_fw.c and fix typo Fix up intel_uncore.c intel_vga.c intel_wakeref.c intel_vdsc.c intel_wopcm.c intel_workarounds.c i915_globals.c Fix up intelfb.c Stub out intel_guc_log.c Stub out intel_dsi_dcs_backlight.c i915_perf.c intel_hdmi.c intel_hdcp.c Author: Maya Rashish <maya@NetBSD.org> Committer: Taylor R Campbell <riastradh@NetBSD.org>
2021-12-19linux/workqueue: Draft queue_rcu_work.riastradh
2021-12-19linux/workqueue: Use atomic_load/store.riastradh
2021-12-19i915: another whack at itriastradh
2021-12-19linux: Add cond_synchronize_rcu.riastradh
2021-12-19linux/rcupdate: Stub init_rcu_head, destroy_rcu_head.riastradh
2021-12-19'struct srcu' is actually called 'struct srcu_struct'riastradh
Author: Iain Hibbert <plunky@netbsd.org> Committer: Taylor R Campbell <riastradh@NetBSD.org>
2021-12-19Fix membars in tasklet_disable/enable.riastradh
2021-12-19Rework linux_tasklet.c a little.riastradh
Provide some more hacks for i915's grubby paws.
2021-12-19alloc_workqueueriastradh
2021-12-19Omit __insn_barrier where implied or subsumed by volatile.riastradh
2021-12-19Move Linux SRCU to common.riastradh
2021-12-19Move Linux RCU to common.riastradh
2021-12-19Constify work_pending, delayed_work_pending.riastradh
2021-12-19drain_workqueueriastradh
2021-12-19Add some i915drmkms additions to the tasklet API.riastradh
2021-12-19Sprinkle in another assertion for good measure.riastradh
2021-12-19Draft Linux tasklet implementation.riastradh
2021-12-19Add work_pending, delayed_work_pending.riastradh
2021-12-19Implement return value of flush_work, flush_delayed_work.riastradh
2021-12-19New system_unbound_wq.riastradh
2021-12-19Fix copypasta in error branch.riastradh
XXX pullup to HEAD
2020-02-01Fix abuse of TAILQ_CONCAT.riastradh
Other parts of this expect that the entries will be on wq->wq_queue or wq->wq_dqueue, so we can't just move a batch of entries onto a temporary queue. Instead, use a marker node to delimit when the batch ends. XXX pullup
2019-03-19- dwc2 need calling linux_workqueue_init() to avoid panic.ryo
- use INIT_ONCE/FINI_ONCE to linux_workqueue_{init,fini}() for being called from dwc2. TODO: dwc2 should be written as kernel module depenging on a linux module.
2018-08-27Workqueue lock must be at IPL_VM for use in interrupts, duh.riastradh
2018-08-27Don't skimp on the last batch of work when worker is dying.riastradh
This is capitalism. We can't afford to waste time the worker could spend on labour even if we work 'em to death!
2018-08-27Sprinkle dtrace probes all over the Linux workqueue stuff.riastradh
2018-08-27Fix post-cancellation case of queue_delayed_work.riastradh
Request the callout queue immediately, as if it hadn't been cancelled at all, rather than reschedule for the next tick.
2018-08-27Rework Linux workqueue synchronization yet again.riastradh
- Use a low bit in the pointer to the queue, rather than whether the pointer is null or not, to determine whether the work item is queued/scheduled. - _Preserve_ the pointer to the queue after we release the work. - Release the work _before_ executing the function, not after. This simplifies some things: we no longer have to distinguish whether the work is queued or running in the functions where we are trying to modify it. The pointer has to be preserved even after the work is released so that we can flush the workqueue after the work has been released.
2018-08-27Fix flush_delayed_work semantics: run it now if it was scheduled.riastradh
2018-08-27Reorder fields to get better space savings than bit fields.riastradh
2018-08-27Document workqueue semantics as I understand it.riastradh
2018-08-27Avoid the prospect of callout calls piling up.riastradh
Don't ever callout_schedule the callout while an existing call may be in progress. Echo some cases from cancel_delayed_work in flush_delayed_work.
2018-08-27Don't let more than one thread claim credit for cancellation.riastradh
2018-08-27Factor out waiting for current work.riastradh
2018-08-27Merge two similar branches.riastradh
2018-08-27Deduplicate callout destruction.riastradh