Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (2h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-10 01:11:58 UTC Now

2021-12-19 12:43:53 UTC MAIN commitmail json YAML

drm: Allow drm_atomic_helper_wait_for_vblanks while cold.

This enables us to do a mode-switch before interrupts are running.

(riastradh)

2021-12-19 12:43:45 UTC MAIN commitmail json YAML

nouveau: Disable MSI on G84 devices.

Fails to switch modes with MSI, works without MSI, on T61p.

(riastradh)

2021-12-19 12:43:37 UTC MAIN commitmail json YAML

rkdrm: Convert to atomic modesetting, as needed for bridges.

Author: Jared McNeill <jmcneill@invisible.ca>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:43:29 UTC MAIN commitmail json YAML

rkdrm: Do drm_mode_config_reset on init.

(riastradh)

2021-12-19 12:43:23 UTC MAIN commitmail json YAML

drm: Use {} instead of [] for drm prints.

Using [] confuses dmesg timestamp parsing.  We should maybe fix that,
but this will serve for now.

(riastradh)

2021-12-19 12:43:14 UTC MAIN commitmail json YAML

i915: For now, pretend gtt size is zero.

Something goes wrong with EXEC_OBJECT_PINNED in Mesa i965 brw bufmgr
if we expose this parameter; this is a sleazy workaround pending
diagnosis of the underlying problem.

(riastradh)

2021-12-19 12:43:06 UTC MAIN commitmail json YAML

drm: Work around busted kthread_join.

(riastradh)

2021-12-19 12:42:58 UTC MAIN commitmail json YAML

drm: Don't try to use sched->thread until it's initialized.

(riastradh)

2021-12-19 12:42:48 UTC MAIN commitmail json YAML

drm: Fix error return for kthread_run: error pointer, not null.

(riastradh)

2021-12-19 12:42:40 UTC MAIN commitmail json YAML

2021-12-19 12:42:33 UTC MAIN commitmail json YAML

2021-12-19 12:42:25 UTC MAIN commitmail json YAML

drm: Rework Linux `kthread' abstraction to avoid race to sleep.

Requires passing in the caller's lock and condvar to kthread_run, but
for the one user that appears not to be an onerous requirement.

(riastradh)

2021-12-19 12:42:15 UTC MAIN commitmail json YAML

drm: Trigger `spurious' wakeup for kthread_stop too.

(riastradh)

2021-12-19 12:42:06 UTC MAIN commitmail json YAML

2021-12-19 12:41:54 UTC MAIN commitmail json YAML

drm: add drm_dp_aux_fini; use it in i915 to fix missing mutex destroy.

Author: chuq <chs@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:41:44 UTC MAIN commitmail json YAML

drm: Omit bogus spin locking around kthread_stop, which blocks.

Blocking is not allowed while holding a spin lock, and there's
nothing here that needs a lock either.

(riastradh)

2021-12-19 12:41:33 UTC MAIN commitmail json YAML

amdgpu: Don't unmap doorbells if we didn't map them.

(riastradh)

2021-12-19 12:41:23 UTC MAIN commitmail json YAML

amdgpu: Fix register offsets in amdgpu_mm_rreg8/wreg8.

We already added rmmio_base when mapping rmmioh; let's not add it
again!

(riastradh)

2021-12-19 12:41:15 UTC MAIN commitmail json YAML

drm: Fix comments about wait return values.

(riastradh)

2021-12-19 12:41:07 UTC MAIN commitmail json YAML

drm: Ensure DRM_*WAIT* never counts down from MAX_SCHEDULE_TIMEOUT.

This faux timeout means `wait forever'.

(riastradh)

2021-12-19 12:41:00 UTC MAIN commitmail json YAML

i915: Use splx, not splraise, to restore IPL after splsoftserial.

(riastradh)

2021-12-19 12:40:44 UTC MAIN commitmail json YAML

2021-12-19 12:40:31 UTC MAIN commitmail json YAML

2021-12-19 12:40:21 UTC MAIN commitmail json YAML

nouveau: fix a "can return -1 to userland" problem.

nvkm_ioctl_del() for some reason converts 0 into 1 return.  this
appears to be a way to avoid having a log printed by nvkm_ioctl()
and to trigger some dead code ("hack" is always NULL afaict.)
after consuming this value convert it back to 0 for ioctl return.

Author: phone <mrg@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:40:11 UTC MAIN commitmail json YAML

linux: Fix rcu_barrier so it actually waits for everything.

(riastradh)

2021-12-19 12:39:56 UTC MAIN commitmail json YAML

drm: Make dma fence array name strings match Linux.

(riastradh)

2021-12-19 12:39:48 UTC MAIN commitmail json YAML

2021-12-19 12:39:41 UTC MAIN commitmail json YAML

drm: Use atomic_load_consume/relaxed to simplify code.

(riastradh)

2021-12-19 12:39:32 UTC MAIN commitmail json YAML

2021-12-19 12:39:25 UTC MAIN commitmail json YAML

2021-12-19 12:39:16 UTC MAIN commitmail json YAML

drm: Release fence in dma_fence_chain_walk.

(riastradh)

2021-12-19 12:39:09 UTC MAIN commitmail json YAML

2021-12-19 12:38:56 UTC MAIN commitmail json YAML

linux: In kthread_park, wake thread to re-check kthread_shouldpark.

Otherwise, the thread to pakr may be sleeping on some condvar not
noticing it has to notify kthread_park --> deadlock.

(riastradh)

2021-12-19 12:38:49 UTC MAIN commitmail json YAML

2021-12-19 12:38:41 UTC MAIN commitmail json YAML

amdgpu: Read amdgpu_ctx_entity::sequence under the lock.

(riastradh)

2021-12-19 12:38:34 UTC MAIN commitmail json YAML

drm: Make sure dma_fence_wait gets traced too.  Deduplicate.

(riastradh)

2021-12-19 12:38:24 UTC MAIN commitmail json YAML

amdgpu: store process and lwp info for netbsd in amdgpu taskinfo.

Author: phone <mrg@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:38:15 UTC MAIN commitmail json YAML

2021-12-19 12:38:06 UTC MAIN commitmail json YAML

drm: Fix signalling return value if no enable_signaling op.

(riastradh)

2021-12-19 12:37:54 UTC MAIN commitmail json YAML

2021-12-19 12:37:43 UTC MAIN commitmail json YAML

Destroy lock before freeing

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:37:36 UTC MAIN commitmail json YAML

2021-12-19 12:37:29 UTC MAIN commitmail json YAML

i915: Omit spurious compile-time assertion.

The assertion failed on i386 with our struct drm_fence_callback.
Could change drm_fence_callback to be a little smaller (use the
nullness of the previous pointer instead of a separate boolean to
detect whether it's on the list, perhaps).  But it's unclear why the
relative sizes of these members matter; they're in a union.  Upstream
commit message doesn't illuminate.

(riastradh)

2021-12-19 12:37:17 UTC MAIN commitmail json YAML

i915: Suppress spurious -Wmaybe-uninitialized warnings.

(riastradh)

2021-12-19 12:37:07 UTC MAIN commitmail json YAML

drm: Make resource_size return resource_size_t like Linux.

Because Linux uses resource_size_t for absolute bus addresses, it is
actually bus_addr_t rather than bus_size_t.  So using bus_size_t here
causes trouble with the i915 range_overflows macro, which verifies
that types match.

(riastradh)

2021-12-19 12:36:59 UTC MAIN commitmail json YAML

amdgpu: Add a cautionary comment about non-LP64 branch.

(riastradh)

2021-12-19 12:36:50 UTC MAIN commitmail json YAML

2021-12-19 12:36:41 UTC MAIN commitmail json YAML

2021-12-19 12:36:32 UTC MAIN commitmail json YAML

drm: Must hold event_lock around wait on event_queue.

We must not have hit this path before if it never crashed!

(riastradh)

2021-12-19 12:36:24 UTC MAIN commitmail json YAML

drm: Spruce up ww_mutex comments.  Audit return values.

(riastradh)

2021-12-19 12:36:15 UTC MAIN commitmail json YAML

i915: Fix destroy/free order for i915 gem stub fence.

(riastradh)

2021-12-19 12:36:09 UTC MAIN commitmail json YAML

linux: Fix wait_bit semantics.

- wait_on_bit is supposed to wait until the bit is cleared, not set.

- wait_on_bit_timeout is supposed to return 0 on success, -EAGAIN on
  faiure.

Omit wake_up_bit; nothing uses it and clear_and_wake_up_bit is a more
semantically coherent operation.

(riastradh)

2021-12-19 12:36:02 UTC MAIN commitmail json YAML

drm: Fix comment about dma_resv_lock_* return values.

(riastradh)

2021-12-19 12:35:54 UTC MAIN commitmail json YAML

drm: Timeout audit -- linux/sched.h.

(riastradh)

2021-12-19 12:35:46 UTC MAIN commitmail json YAML

drm: Timeout audit -- drm_syncobj.c.

(riastradh)

2021-12-19 12:35:37 UTC MAIN commitmail json YAML

linux: Timeout audit -- linux/completion.h.

(riastradh)

2021-12-19 12:35:28 UTC MAIN commitmail json YAML

drm: Make sure to initialize syncobj wait point.

(riastradh)

2021-12-19 12:35:21 UTC MAIN commitmail json YAML

drm: Use atomic_load_relaxed for fence->flags when not locked.

Shouldn't make a semantic difference on any machines we run on, but
will make sanitizers happier and emphasize to readers that the result
may not be reliable at these points.

(riastradh)

2021-12-19 12:35:13 UTC MAIN commitmail json YAML

i915: Terminate inner loop if we hit end of view.

(riastradh)

2021-12-19 12:35:05 UTC MAIN commitmail json YAML

2021-12-19 12:34:58 UTC MAIN commitmail json YAML

drm: Assert dma_fence_wait internal return value.

(riastradh)

2021-12-19 12:34:50 UTC MAIN commitmail json YAML

i915: Tighten assertion about segment index.

(riastradh)

2021-12-19 12:34:42 UTC MAIN commitmail json YAML

drm: Fix drm_symstr with pserialize.

(riastradh)

2021-12-19 12:34:34 UTC MAIN commitmail json YAML

i915: Fix locking-against-self in i915_request_wait.

(riastradh)

2021-12-19 12:34:24 UTC MAIN commitmail json YAML

drm/scheduler: Release job list lock arond kthread_parkme.

(riastradh)

2021-12-19 12:34:16 UTC MAIN commitmail json YAML

drm: Rework timeout return code logic.

(riastradh)

2021-12-19 12:34:05 UTC MAIN commitmail json YAML

drm: Rework dma_fence_wait_any_timeout.

- Yield the first index, not the most recently signalled one.
- Check again after last wakeup.
- Make sure to return positive for nontimeout.
- Handle ip=null.

(riastradh)

2021-12-19 12:33:57 UTC MAIN commitmail json YAML

2021-12-19 12:33:49 UTC MAIN commitmail json YAML

drm: Fix semantics of del_timer, del_timer_sync.

(riastradh)

2021-12-19 12:33:42 UTC MAIN commitmail json YAML

drm: Paranoia: handle fencep=null, fence!=null, and 0 shared.

Not sure this is possible but I don't know the API well enough to
prove it can't happen.

(riastradh)

2021-12-19 12:33:34 UTC MAIN commitmail json YAML

drm: Fix missing restart on race in dma_resv_get_fences_rcu.

(riastradh)

2021-12-19 12:33:26 UTC MAIN commitmail json YAML

drm: Another missing spin_lock_destroy.

(riastradh)

2021-12-19 12:33:19 UTC MAIN commitmail json YAML

amdgpu: call pmap_pv_track/untrack for the graphics aperture.

Author: phone <mrg@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:33:11 UTC MAIN commitmail json YAML

drm: Fix an even number of sign errors in interval_tree_generic.h.

(riastradh)

2021-12-19 12:33:02 UTC MAIN commitmail json YAML

amdgpu: more destroy fixes.

Author: phone <mrg@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:32:53 UTC MAIN commitmail json YAML

drm: Support dma_resv_reserve_shared(..., num_fences>1).

(riastradh)

2021-12-19 12:32:45 UTC MAIN commitmail json YAML

2021-12-19 12:32:15 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/dist/drm/i915/display/intel_display.c@1.11 / diff / nxr@1.11
src/sys/external/bsd/drm2/dist/drm/i915/display/intel_display_power.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/display/intel_dpll_mgr.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/display/intel_dpll_mgr.h@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/i915/display/intel_fbc.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/i915/display/intel_fbc.h@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/i915/display/intel_fbdev.c@1.9 / diff / nxr@1.9
src/sys/external/bsd/drm2/dist/drm/i915/display/intel_hdcp.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/i915/display/intel_pipe_crc.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/i915/display/intel_pipe_crc.h@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_context.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_userptr.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_breadcrumbs.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_engine_cs.c@1.7 / diff / nxr@1.7
src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_gt_pm.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_lrc.c@1.8 / diff / nxr@1.8
src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_reset.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_rps.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_rps.h@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_timeline.c@1.5 / diff / nxr@1.5
      :
(more 12 files)
i915: mutex_init/destroy and spin_lock_init/destroy audit

(riastradh)

2021-12-19 12:32:01 UTC MAIN commitmail json YAML

2021-12-19 12:31:45 UTC MAIN commitmail json YAML

amdgpu: mutex_init/destroy and spin_lock_init/destroy audit

(riastradh)

2021-12-19 12:31:34 UTC MAIN commitmail json YAML

drm: Implement drm_resv_get_fences_rcu with null fencep.

(riastradh)

2021-12-19 12:31:26 UTC MAIN commitmail json YAML

2021-12-19 12:31:19 UTC MAIN commitmail json YAML

2021-12-19 12:31:12 UTC MAIN commitmail json YAML

drm: Set fence->ops for stub fences too.

(riastradh)

2021-12-19 12:31:04 UTC MAIN commitmail json YAML

amdgpu: Call idr_preload(_end) around idr_alloc, outside lock.

(riastradh)

2021-12-19 12:30:48 UTC MAIN commitmail json YAML

drm: add destruction.

Author: phone <mrg@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:30:40 UTC MAIN commitmail json YAML

amdgpu: Run module initialization.

(riastradh)

2021-12-19 12:30:31 UTC MAIN commitmail json YAML

drm: Fill in fake connector->kdev pointing at the drm device.

Hope this will make progress -- hope it won't screw up too badly if
two connectors have the same kdev!

(riastradh)

2021-12-19 12:30:23 UTC MAIN commitmail json YAML

2021-12-19 12:30:14 UTC MAIN commitmail json YAML

amdgpu: Disable atomic modeset like upstream does for now.

(riastradh)

2021-12-19 12:30:05 UTC MAIN commitmail json YAML

2021-12-19 12:29:55 UTC MAIN commitmail json YAML

drm: Avoid locking against self in scheduler.

(riastradh)

2021-12-19 12:29:47 UTC MAIN commitmail json YAML

2021-12-19 12:29:39 UTC MAIN commitmail json YAML

linux: Make kthread_park/stop work at IPL_VM.

Needed in order to hold spin locks around it.

(riastradh)

2021-12-19 12:29:33 UTC MAIN commitmail json YAML

amdgpu: Set a sensible maxsegsz for ih ring DMA map.

We need this to fit in one contiguous segment, so the maxsegsz had
better be at least the size we ask for, not something much smaller!

(riastradh)

2021-12-19 12:29:25 UTC MAIN commitmail json YAML

amdgpu: Fix bogus assertion about number of DMA segments.

(riastradh)

2021-12-19 12:29:17 UTC MAIN commitmail json YAML

2021-12-19 12:29:09 UTC MAIN commitmail json YAML

drm: Downgrade warnings from aprint_error to aprint_normal.

(riastradh)

2021-12-19 12:28:55 UTC MAIN commitmail json YAML

i915: Backport fix for locking-against-self on attach.

commit d1b2828af0cc414356c18d7814b83ba33b472054
Author: Ville Syrjè¾°lè¾° <ville.syrjala@linux.intel.com>
Date:  Wed Jan 22 22:43:29 2020 +0200

    drm/i915: Fix modeset locks in sanitize_watermarks()

    We've added more internal things that use modeset locks and
    thus we need to be prepared for intel_atomic_check() grabbing
    more locks than what our initial drm_modeset_lock_all_ctx()
    took. So we're missing the backoff handling here.

    Also drm_atomic_helper_duplicate_state() works against us
    by clearing state->acquire_ctx in anticipation of
    drm_atomic_helper_commit_duplicated_state() being used to
    commit the state.

    We could probably just reset acquire_ctx back, but instead
    let's just rewrite the whole thing without using either of
    those "helpers". There's also no need to add any connectors
    to the state here since we just want the new watermarks
    which don't depend on connectors.

    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: Ville Syrjè¾°lè¾° <ville.syrjala@linux.intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20200122204329.2477-1-ville.syrjala@linux.intel.com
    Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>

(riastradh)

2021-12-19 12:28:44 UTC MAIN commitmail json YAML

sunxi/drm, rockchip/drm: Avoid messy error output.

(riastradh)

2021-12-19 12:28:35 UTC MAIN commitmail json YAML

rockchip/drm: use drm_helper_mode_fill_fb_struct or say why not.

Author: phone <mrg@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:28:27 UTC MAIN commitmail json YAML

rockchip/drm: use an explicit task queue to avoid config_defer pitfalls.

Author: phone <mrg@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:28:20 UTC MAIN commitmail json YAML

sunxi/drm: Use an explicit task queue to avoid config_defer pitfalls.

Same as the other drm drivers.

(riastradh)

2021-12-19 12:28:13 UTC MAIN commitmail json YAML

drm: Rework attach/detach and deferred task logic.

- Reduce the number of states the softc can be in.
- Fix races between attach and other threads.

(riastradh)

2021-12-19 12:28:04 UTC MAIN commitmail json YAML

2021-12-19 12:27:49 UTC MAIN commitmail json YAML

drm: Allow multiple concurrent io_mapping_map_wc on the same space.

(This should maybe check that there aren't overlapping maps of the
same parts of the space.)

(riastradh)

2021-12-19 12:27:40 UTC MAIN commitmail json YAML

linux: Downgrade warning about flushing from workqueue to debug.

(riastradh)

2021-12-19 12:27:32 UTC MAIN commitmail json YAML

i915: Fix gen6 pd_vma_bind.

We only need space for the ppgtt in this vma, not space for the whole
VM.

(riastradh)

2021-12-19 12:27:25 UTC MAIN commitmail json YAML

i915: Spruce up assertion in gen6_ppgtt.c pd_vma_bind.

(riastradh)

2021-12-19 12:27:18 UTC MAIN commitmail json YAML

i915: Use pmap_pv_protect on the paddrs for unmap_mapping_range.

(riastradh)

2021-12-19 12:27:10 UTC MAIN commitmail json YAML

i915: Fill out i915_gem_phys_pwrite.

(riastradh)

2021-12-19 12:27:02 UTC MAIN commitmail json YAML

i915: Figure out the graphics stolen memory base.

(riastradh)

2021-12-19 12:26:55 UTC MAIN commitmail json YAML

i915: Rearrange how mmap offsets work.

Rather than use the magic offsets in each GEM object's uvm object
itself, just create a separate uvm object for each mapping type and
start at zero within each uvm object.  This should avoid problems
with things like ubc_uiomove which don't know to adjust the starting
offset.

(riastradh)

2021-12-19 12:26:48 UTC MAIN commitmail json YAML

i915: Fix partial object views -- start at the offset.

(riastradh)

2021-12-19 12:26:39 UTC MAIN commitmail json YAML

drm: Factor dma_fence_put out of multiple dma_resv_do_poll branches.

(riastradh)

2021-12-19 12:26:30 UTC MAIN commitmail json YAML

drm: Fix dma_resv_test_signaled_rcu and dma_resv_wait_timeout_rcu.

Make them implemented the semantics as documented like Linux does:
only test the exclusive fence if there's no shared fences.

(riastradh)

2021-12-19 12:26:22 UTC MAIN commitmail json YAML

drm: Make sure to check read ticket after reading shared fences.

Not entirely sure it was a bug not to do that, but let's make it easy
to prove that we got a consistent snapshot of the whole picture.

(riastradh)

2021-12-19 12:26:13 UTC MAIN commitmail json YAML

drm: Write comment for dma_resv_get_fences_rcu semantics.

(riastradh)

2021-12-19 12:26:04 UTC MAIN commitmail json YAML

drm: Factor out logic to read snapshot of fences in dma_resv.

Should make auditing a little easier.

(riastradh)

2021-12-19 12:25:56 UTC MAIN commitmail json YAML

i915: Mark shmem object pages dirty if needed before unwiring them.

Unlikely to fix the graphics corruption we're seeing, though --
should be relevant only if we're swapping.

(riastradh)

2021-12-19 12:25:46 UTC MAIN commitmail json YAML

i915: Suggest gnats.n.o, not fdo gitlab, for bugs.

(riastradh)

2021-12-19 12:25:37 UTC MAIN commitmail json YAML

2021-12-19 12:25:27 UTC MAIN commitmail json YAML

i915: Restore i915_gem.c shmem_pwrite.

This was ifdef'd out back when it was a fast path shmem_pwrite_fast
using __copy_in_user_inatomic, but the ifdef got merged anyway into a
different function that is not a fast path.

(riastradh)

2021-12-19 12:25:20 UTC MAIN commitmail json YAML

linux: For uniprocessor, define smp_*mb as __insn_barrier.

Otherwise ordering might not be guaranteed in the event of
preemption.

XXX pullup

(riastradh)

2021-12-19 12:25:12 UTC MAIN commitmail json YAML

linux: Eliminate read_barrier_depends, smp_read_barrier_depends.

These no longer exist in Linux; instead, Linux now uses READ_ONCE.

(riastradh)

2021-12-19 12:25:05 UTC MAIN commitmail json YAML

linux: Define mb/wmb/rmb for x86.

These are _not_ SMP barriers; on Linux they specifically mean
mfence/sfence/lfence.  Although membar_sync and mb agree, and
membar_consumer and rmb agree, membar_producer and wmb _do not_ agree
on x86 -- Linux's wmb is specifically sfence, which is important only
for unusual memory types, whereas our membar_producer is limited to
ordinary memory.

(riastradh)

2021-12-19 12:24:58 UTC MAIN commitmail json YAML

drm: Use drm_vblank_get_locked/unlocked.

(riastradh)

2021-12-19 12:24:49 UTC MAIN commitmail json YAML

i915: No need for #ifdef __NetBSD__ to sprinkle legitimate const.

(riastradh)

2021-12-19 12:24:36 UTC MAIN commitmail json YAML

2021-12-19 12:24:27 UTC MAIN commitmail json YAML

amdgpu: Factor out float build options.

(riastradh)

2021-12-19 12:24:19 UTC MAIN commitmail json YAML

linux: Paranoia: Don't read kt_shouldstop unlocked.

(riastradh)

2021-12-19 12:24:12 UTC MAIN commitmail json YAML

Avoid kernel assertion mod->mod_required == NULL kern_module.c:910

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:24:05 UTC MAIN commitmail json YAML

2021-12-19 12:23:58 UTC MAIN commitmail json YAML

radeon: Fix dma_addressing_limited call.

(riastradh)

2021-12-19 12:23:50 UTC MAIN commitmail json YAML

2021-12-19 12:23:42 UTC MAIN commitmail json YAML

2021-12-19 12:23:34 UTC MAIN commitmail json YAML

drm: In dma_fence_wait_timeout, allow MAX_SCHEDULE_TIMEOUT.

In the Linux API, this means wait forever.

(riastradh)

2021-12-19 12:23:27 UTC MAIN commitmail json YAML

drm: Print bad timeout in dma_fence_wait_timeout kasserts.

(riastradh)

2021-12-19 12:23:17 UTC MAIN commitmail json YAML

2021-12-19 12:23:08 UTC MAIN commitmail json YAML

2021-12-19 12:22:57 UTC MAIN commitmail json YAML

2021-12-19 12:22:49 UTC MAIN commitmail json YAML

2021-12-19 12:22:37 UTC MAIN commitmail json YAML

2021-12-19 12:22:28 UTC MAIN commitmail json YAML

amdgpu: make most of amdgpu_vm.c build

Not quite done yet -- need to adapt the DMA address logic to use
bus_dmamap_t.

(riastradh)

2021-12-19 12:22:19 UTC MAIN commitmail json YAML

amdgpu: Delete redundant local amdgpu_trace.h.

(riastradh)

2021-12-19 12:22:03 UTC MAIN commitmail json YAML

drm: Knuckle under and define sprintf in nbsd-namespace.h.

(riastradh)

2021-12-19 12:21:56 UTC MAIN commitmail json YAML

2021-12-19 12:21:30 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/amdgpu/amdgpu_pci.c@1.9 / diff / nxr@1.9
src/sys/external/bsd/drm2/amdgpu/amdgpufb.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/amdgpu/files.amdgpu@1.22 / diff / nxr@1.22
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c@1.7 / diff / nxr@1.7
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.h@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gmc.h@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gmc_v10_0.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gmc_v6_0.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gmc_v7_0.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gmc_v8_0.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gmc_v9_0.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_object.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_pm.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_psp.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_psp.h@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_psp_v10_0.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_psp_v11_0.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_psp_v12_0.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_psp_v3_1.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ras.c@1.3 / diff / nxr@1.3
      :
(more 60 files)
amdgpu: Another pass through.

amdgpu_object.c
amdgpu_pci.c
amdgpu_pm.c
amdgpu_polaris10_smumgr.c
amdgpu_pp_psm.c
amdgpu_ppatomctrl.c
amdgpu_ppatomfwctrl.c
amdgpu_process_pptables_v1_0.o
amdgpu_psp.o
amdgpu_psp_v10_0.c
amdgpu_psp_v11_0.c
amdgpu_psp_v12_0.c
amdgpu_psp_v3_1.c
amdgpu_ras.c
amdgpu_ras_eeprom.c
amdgpu_rc_calc.c
amdgpu_rc_calc_dpi.c
amdgpu_ring.c
amdgpu_rlc.c
amdgpu_rn_clk_mgr.c
amdgpu_sdma_v3_0.c
amdgpu_sdma_v4_0.c
amdgpu_sdma_v5_0.c
amdgpu_si.c
amdgpu_si_dma.c
amdgpu_si_dpm.c
amdgpu_smu.c
amdgpu_smu10_hwmgr.c
amdgpu_smu7_hwmgr.c
amdgpu_smu8_hwmgr.c
amdgpu_smu8_smumgr.c
amdgpu_smu_v11_0.c (and a sprinkling of consts)
amdgpu_smu_v11_0_i2c.c
amdgpu_soc15.c
amdgpu_tonga_smumgr.c
amdgpu_ttm.c
amdgpu_ucode.c
amdgpu_uvd.c
amdgpu_uvd_v5_0.c
amdgpu_uvd_v6_0.c
amdgpu_uvd_v7_0.c
amdgpu_vce.c
amdgpu_vce_v2_0.c
amdgpu_vce_v4_0.c
amdgpu_vcn_v1_0.c
amdgpu_vcn_v2_0.c
amdgpu_vcn_v2_5.c
amdgpu_vega10_hwmgr.c
amdgpu_vega10_powertune.c
amdgpu_vega10_processpptables.c
amdgpu_vega10_reg_init.c
amdgpu_vega12_hwmgr.c
amdgpu_vega20_hwmgr.c
amdgpu_vega20_ppt.c
amdgpu_vega20_reg_init.c
amdgpu_vi.c
amdgpu_virt.c
amdgpu_vram_mgr.c
amdgpu_xgmi.c -- disable (for now?)
amdgpufb.c

(riastradh)

2021-12-19 12:21:10 UTC MAIN commitmail json YAML

amdgpu: amdgpu_renoir_ppt.c

This abuses snprintf with SIZE_MAX as a substitute for sprintf, which
would be super-sketchy, except this code is all dead because it's
only reached via sysfs stuff that isn't wired up in NetBSD.

(riastradh)

2021-12-19 12:21:02 UTC MAIN commitmail json YAML

linux/idr: Remove meaningless stray membar.

(riastradh)

2021-12-19 12:20:53 UTC MAIN commitmail json YAML

linux: Allow non-VLA structs in struct_size.

Upstream sometimes uses

struct foo {
int x;
short y[1];
};

instead of  short y[]  with struct_size.

(riastradh)

2021-12-19 12:20:46 UTC MAIN commitmail json YAML

linux: Side-load linux/overflow.h in linux/slab.h.

(riastradh)

2021-12-19 12:20:21 UTC MAIN commitmail json YAML

linux: Move linux/overflow.h from drm2 to common.

Needed so linux/slab.h can side-load it.

(riastradh)

2021-12-19 12:14:02 UTC MAIN commitmail json YAML

drm: Fence leak audit.  No functional change intended.

Sprinkle nulling out variables, add kasserts to reflect them, and
propagate their consequences to eliminate dead code.  Should make it
easier to detect similar leak bugs.

(riastradh)

2021-12-19 12:13:53 UTC MAIN commitmail json YAML

drm: Fix sense of conditional to avoid null pointer dereference.

(riastradh)

2021-12-19 12:13:45 UTC MAIN commitmail json YAML

drm: dma_fence_get allows fence to be null; fix assertion.

While here, update comments about semantics for dma_fence_get and
dma_fence_get_rcu (which does not allow null fence).

(riastradh)

2021-12-19 12:13:37 UTC MAIN commitmail json YAML

i915: Destroy lock in fence before freeing fence itself.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 12:13:31 UTC MAIN commitmail json YAML

i915: Use i915_gem_object_has_pages, not a simple null test.

The pages pointer may be ERR_PTR(-EWHATEVER) instead of null.

(riastradh)

2021-12-19 12:13:23 UTC MAIN commitmail json YAML

linux: Side-load asm/io.h in linux/scatterlist.h.

(riastradh)

2021-12-19 12:13:16 UTC MAIN commitmail json YAML

linux: PCI_BUS_NUM; tweak types for PCI_SLOT/PCI_FUNC.

(riastradh)

2021-12-19 12:13:08 UTC MAIN commitmail json YAML

drm: Need write lock on vmobjlock for pgo_put.

(riastradh)

2021-12-19 12:13:01 UTC MAIN commitmail json YAML

i915: Destroy gen8 ppgtt page directory spin lock.

(riastradh)

2021-12-19 12:12:54 UTC MAIN commitmail json YAML

i915: Destroy page directory lock on free.

(riastradh)

2021-12-19 12:12:47 UTC MAIN commitmail json YAML

2021-12-19 12:12:39 UTC MAIN commitmail json YAML

i915: Allow duplicates in active tree, sorted by kva.

Upstream looks like it uses insertion order, but that's not really
convenient.

(riastradh)

2021-12-19 12:12:32 UTC MAIN commitmail json YAML

i915: Don't need obj->mmo.lock on destruction.

(riastradh)

2021-12-19 12:12:23 UTC MAIN commitmail json YAML

2021-12-19 12:12:15 UTC MAIN commitmail json YAML

2021-12-19 12:12:07 UTC MAIN commitmail json YAML

linux: Make WARN_ONCE actually happen only once.

(riastradh)

2021-12-19 12:12:00 UTC MAIN commitmail json YAML

i915: Destroy only spin locks we created in gen8 ppgtt.

(riastradh)

2021-12-19 12:11:46 UTC MAIN commitmail json YAML

2021-12-19 12:11:36 UTC MAIN commitmail json YAML

linux: Make flush_workqueue a noop if run from the workqueue.

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.

(riastradh)

2021-12-19 12:11:28 UTC MAIN commitmail json YAML

linux: Fix flush_workqueue.

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.

(riastradh)

2021-12-19 12:11:21 UTC MAIN commitmail json YAML

linux: Update workqueue flush to reflect TAILQ_CONCAT change.

(riastradh)

2021-12-19 12:11:14 UTC MAIN commitmail json YAML

i915: Abuse abstractions gruesomely but with less lock screwitude.

(riastradh)

2021-12-19 12:11:05 UTC MAIN commitmail json YAML

drm: Set fence timestamps -- i915 uses them.

(riastradh)

2021-12-19 12:10:58 UTC MAIN commitmail json YAML

drm: Set IPL_DRM to IPL_VM, not IPL_TTY.

We might want some of this stuff to work at higher IPL when dealing
with ddb during crashes, but...everything else in drm uses IPL_VM,
including Linux spin locks, which means we've been failing to block
interrupts during spin locks for the entire time this code has
existed...which is a little embarrassing.

(riastradh)

2021-12-19 12:10:51 UTC MAIN commitmail json YAML

2021-12-19 12:10:43 UTC MAIN commitmail json YAML

2021-12-19 12:10:34 UTC MAIN commitmail json YAML

i915: Initialize userptr wq for now.  Should wire this up for real!

(riastradh)

2021-12-19 12:10:27 UTC MAIN commitmail json YAML

linux: Make pm_runtime_get_if_in_use succeed.

(riastradh)

2021-12-19 12:10:21 UTC MAIN commitmail json YAML

i915: Fix error branches in i915_gem_object_get_pages_phys.

(riastradh)

2021-12-19 12:10:14 UTC MAIN commitmail json YAML

linux: Fix dma mapping to set READ|WRITE if bidi; clarify cases.

(riastradh)

2021-12-19 12:10:07 UTC MAIN commitmail json YAML

2021-12-19 12:09:58 UTC MAIN commitmail json YAML

i915: No view in i915_vma_compare for normal views.

(riastradh)

2021-12-19 12:09:51 UTC MAIN commitmail json YAML

drm: Add a kassert for fence destruction.

(riastradh)

2021-12-19 12:09:43 UTC MAIN commitmail json YAML

i915: Call i915_active_fini after init for frontbuffer.

(riastradh)

2021-12-19 12:09:35 UTC MAIN commitmail json YAML

drm: Paranoia: null out fence if unreferenceable.

(riastradh)

2021-12-19 12:09:27 UTC MAIN commitmail json YAML

drm: Skip enabling signalling for fence if already signalled.

(riastradh)

2021-12-19 12:09:20 UTC MAIN commitmail json YAML

drm: Ensure the fence callback is initialized on failure.

(riastradh)

2021-12-19 12:09:09 UTC MAIN commitmail json YAML

i915: Kludge: wait for RCU grace period in __i915_request_dtor.

Unfortunately, pool_cache_put does not guarantee that an RCU or
pserialize grace period has completed before it invokes the pool
cache's destructor.  This is likely to kill performance...

(riastradh)

2021-12-19 12:09:01 UTC MAIN commitmail json YAML

i915: Disable partial views on objects for now.

Needs some logic in i915_get_gtt_vma_pages to be wired up.

(riastradh)

2021-12-19 12:08:54 UTC MAIN commitmail json YAML

i915: Make GEM_BUG_ON a little more useful here.

(riastradh)

2021-12-19 12:08:46 UTC MAIN commitmail json YAML

i915: Release vmobjlock on fault.

We need to take this later, but it's not helpful for uvm_fault to
have taken it immediately prior to calling pgo_fault -- still not
clear on why uvm_fault does that.

(riastradh)

2021-12-19 12:08:36 UTC MAIN commitmail json YAML

i915: Use global uoffset in i915 address space, not per-object.

This is a little sleazy but it enables us to pass the page range
through to the fault routine, which wants it in order to find the
memory mapping type.

(riastradh)

2021-12-19 12:08:27 UTC MAIN commitmail json YAML

i915: Avoid leaking reference count when mapping objects.

We already did i915_gem_object_get_rcu above, which bumps the
reference count; no need to additionally do drm_gem_object_get.

(riastradh)

2021-12-19 12:08:18 UTC MAIN commitmail json YAML

drm: Avoid null pointer deref for drivers with atomic modeset.

(riastradh)

2021-12-19 12:08:10 UTC MAIN commitmail json YAML

2021-12-19 12:08:02 UTC MAIN commitmail json YAML

2021-12-19 12:07:55 UTC MAIN commitmail json YAML

linux: Use kmem directly for Linux kmalloc.

Take advantage of this to do LOCKDEBUG_MEM_CHECK at the point of
kfree_rcu rather than in the RCU GC thread.

(riastradh)