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-10 (18d)  netbsd-9 (18d)  netbsd-8 (23d) 

2024-06-03 21:32:57 UTC Now

2021-12-31 11:05:41 UTC MAIN commitmail json YAML

2021-12-31 00:57:12 UTC MAIN commitmail json YAML

doc: Update TODO.smpnet to reflect invention of ETHER_F_ALLMULTI.

(riastradh)

2021-12-30 14:40:06 UTC MAIN commitmail json YAML

acpiout(4): Work around firmware that doesn't like some brightnesses.

Instead of just asking for cur - 5 or cur + 5, repeatedly ask for
that increment, check whether we actually made progress in that
direction, and if not keep going with another increment, until we hit
the bounds of brightness levels.

I can't find anything in the ACPI spec about this, but my laptop
seems to have trouble with certain levels: 15, 75, 85, 95.  It goes
in all other increments of 5 from 5 to 100, just not those ones --
acts as if the change just never happened, so with the old logic the
brightness up/down would get stuck unable to move in either
direction.

This should have no impact on machines where the first increment
actually takes.

(riastradh)

2021-12-29 23:59:38 UTC MAIN commitmail json YAML

drm: Restore hw.drm2.debug sysctl knob, previously lost in merge.

(riastradh)

2021-12-28 17:51:23 UTC MAIN commitmail json YAML

zfs: Expose hostid to zfs, as in gethostid/sethostid(3).

If set to nonzero, the hostid is recorded in the metadata of a zpool,
and checked by `zpool import' when the pool has not been explicitly
exported.  After reboot, zpool import will not need `-f' to reimport
the pool.

Setting the hostid must be done explicitly through sysctl (or the
sethostid(3) library call) on all ports except acorn32, amiga,
mvme68k, newsmips, sparc, sparc64, sun2, and sun3.  So for most users
this change will have no immediate effect.  But you can obviate the
need for `zpool import -f' by adding `kern.hostid=123456789' to
/etc/sysctl.conf and importing the pool one last time with `-f'.

(riastradh)

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

kern: Show relevant variables for uidinfo counts in kasserts.

(riastradh)

2021-12-28 13:27:32 UTC MAIN commitmail json YAML

wd(4): Fix bugs in softbadsect handling.

- Don't copyout kernel virtual addresses (of SLIST entries) that
  userland won't use anyway.
  => The structure still has space for this pointer; it's just always
    null when userland gets it now.

- Don't copyout under a lock.

- Stop and return error if copyout fails (unless we've already copied
  some out).

- Don't kmem_free under a lock.

XXX Unclear whether anyone actually uses WD_SOFTBADSECT or why --
it's always been disabled by default.  Maybe we should just remove
it?

(riastradh)

2021-12-28 13:22:43 UTC MAIN commitmail json YAML

sys: Use preempt_point and preempt_needed, not open-coded versions.

(riastradh)

2021-12-28 12:00:48 UTC MAIN commitmail json YAML

mii(9): Fix callout race between mii_phy_down and mii_phy_detach.

(riastradh)

2021-12-27 22:57:20 UTC MAIN commitmail json YAML

cgd(4): Fix criterion for detach when wedgies are held.

The somewhat confusingly named DK_BUSY(dksc, pmask) answers the
following question:

        Suppose I hold either the character or the block device (but
        not both) of all of the partitions in pmask.  Is anyone else
        using the disk, rendering it unsafe to detach?

This is useful for ioctls like CGDIOCCLR and VNDIOCCLR, which must be
issued on open file descriptors for the disk, so the question cannot
simply be answered by testing whether dk_openmask != 0.

Instead, DK_BUSY breaks the question into the following criteria:

        1. Are there any _other_ partitions than those in pmask open
          at all?  If so, it must be someone else, since I only hold
          partitions in pmask -- hence the disk is busy.

        2. Are any of the partitions in pmask open _both_ as a block
          device _and_ as a character device?  If so, it must be
          someone else, since I only hold _either_ the character
          _or_ the block device open but not both -- hence the disk
          is busy.

When config_detach_all runs at shutdown time, it tries to detach
cgd(4), which has DVF_DETACH_SHUTDOWN; this is important so we submit
queued writes to the underlying disk and wait for them to complete
with dk_drain.

If cgd(4) has any dk wedges with file systems mounted still
configured on it, it isn't ready to detach yet.  But asking
DK_BUSY(dksc, 1 << RAW_PART) returns false, because the dk wedges
only hold RAW_PART open as a block device -- so if nobody has
RAW_PART open as a character device, or any other partitions open,
cgd_detach blithely goes on its way to forcibly detach the wedges.

Instead, ask DK_BUSY(dksc, 0), because the caller -- cgd_detach
issued by config_detach_all -- does not, in fact, hold any partitions
open, so it doesn't need to work around them like ioctl(CGDIOCCLR)
does.  Fixes hang in zfs on dk on cgd during shutdown (and probably
also zfs on cgd without any intervening dk but I haven't tested).

(This change might have the side effect that `drvctl -d cgdN' doesn't
work, but I don't care.)

XXX pullup-9
XXX pullup-8 (...-7, -6, -5...)

(riastradh)

2021-12-27 14:57:30 UTC MAIN commitmail json YAML

2021-12-27 13:29:15 UTC MAIN commitmail json YAML

i915: Fix timeout return value of i915_request_wait.

For some reason this returns ETIME, not ETIMEDOUT or 0 like most
other wait-with-timeout things in Linux.

(riastradh)

2021-12-27 13:29:04 UTC MAIN commitmail json YAML

i915: Factor a little out of #ifdef NetBSD.

Doesn't really reduce diff but slightly reduces danger of bad merge.

(riastradh)

2021-12-27 13:28:52 UTC MAIN commitmail json YAML

i915: Omit diff now that TASK_INTERRUPTIBLE is defined.

(riastradh)

2021-12-27 13:28:41 UTC MAIN commitmail json YAML

drm: Define TASK_INTERRUPTIBLE so we can reduce diffs a little.

(riastradh)

2021-12-27 11:06:49 UTC MAIN commitmail json YAML

i915: Disable message citing firmware URL.

Not very helpful for users; helpful only for developers maintaining
the gpufw set, who can find it by searching the source of the
message.  (Also it was missing a newline which is very confusing!)

(riastradh)

2021-12-27 10:41:57 UTC MAIN commitmail json YAML

linux: Define mb/wmb/rmb as mfence/sfence/lfence on i386 too.

Not the same as membar_*; drm uses mb to order special instructions
like clflush which require mfence for ordering.

(riastradh)

2021-12-26 21:33:48 UTC MAIN commitmail json YAML

sys: Skip suspendsched on cpu_reboot if we're in ddb.

If we're in ddb, the scheduler and all other CPUs are quiesced
anyway.  But suspendsched will try to take an adaptive lock, which
causes it to crash and re-enter ddb, which isn't very useful for
rebooting.

(riastradh)

2021-12-26 21:00:51 UTC MAIN commitmail json YAML

i915: Unifdef cnp_enable/disable_backlight.

Not sure why this was ifdef'd out in the first place!  Appears to
have been a mistake in merge.

(riastradh)

2021-12-26 21:00:14 UTC MAIN commitmail json YAML

drm: Fix locking around accurate vblank counts.

- Make drm_crtc_accurate_vblank_count require the caller to hold the
  event lock, rather than take it internally.

- Fix locking around drm_crtc_accurate_vblank_count and related
  operations in amdgpu and nouveau interrupt handlers.

- Use drm_crtc_vblank_put_locked, not drm_crtc_vblank_put, when we
  already hold the event lock.

PR kern/56557

(riastradh)

2021-12-26 16:14:34 UTC MAIN commitmail json YAML

drm: Allow ww_mutex_lock after ww_acquire_done if we already hold it.

In other words, if ww_mutex_lock would return -EALREADY, that's OK and
does not warrant an assertion.

PR kern/56557

(riastradh)

2021-12-25 13:41:12 UTC MAIN commitmail json YAML

ukbd(4): Wait for callouts and blinking to complete in detach.

This detach routine (and whole driver) has got a lotta other
problems, but let's fix 'em one at a time...

(riastradh)

2021-12-24 21:57:49 UTC MAIN commitmail json YAML

malo(4): Fix line breaks in attach output.

(riastradh)

2021-12-24 15:26:35 UTC MAIN commitmail json YAML

drm: Fix missing newline in DRM_WARN (redux).

(riastradh)

2021-12-24 15:25:03 UTC MAIN commitmail json YAML

Revert "drm: Fix missing newline in DRM_WARN."

Accidentally included more than I intended here.

(riastradh)

2021-12-24 15:22:20 UTC MAIN commitmail json YAML

2021-12-24 15:08:31 UTC MAIN commitmail json YAML

drm: Sprinkle some assertions into sg dma logic.

(riastradh)

2021-12-24 15:08:09 UTC MAIN commitmail json YAML

i915: Use AcpiOsMapMemory, not bus_space_map, for opregion.

Needed because this appears in firmware-type memory mappings, which
are excluded from bus_space_map.

XXX pullup-9 (via manual patch since the code has changed a bit)

(riastradh)

2021-12-24 15:07:47 UTC MAIN commitmail json YAML

i915: Restore uao_set_pgfl for i915 gem objects, lost in the merge.

Needed to ensure we allocate paddrs that the GPU can cope with.

(riastradh)

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

2021-12-24 00:14:03 UTC MAIN commitmail json YAML

i915: Fix memory leak in active node allocation under #ifdef NetBSD.

Potential fix for PR kern/56573.

(riastradh)

2021-12-24 00:13:53 UTC MAIN commitmail json YAML

pool(9): Fix default PR_NOALIGN for large pool caches.

Was broken in recent change to separate some pool cache flags from
pool flags.

Fixes crash in zfs.

(riastradh)

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

drm: Omit local diff -- vmem is entirely a NetBSDism.

Use struct vmem rather than vmem_t to obviate need for header file
dependency.

(riastradh)

2021-12-21 22:53:21 UTC MAIN commitmail json YAML

scsi(4): Take kernel lock around entry into autoconf.

This code paths is entered by kthreads marked MP-safe, not just from
autoconf.

I'm not sure this is sufficient -- it's not clear to me whether
anything prevents concurrently scanning the same target.  Someone with
a better understanding of scsi(4) locking will have to audit this.

(For example, maybe it is guaranteed only to happen only either (a)
in autoconf, or (b) in a thread that doesn't start until autoconf is
done.  But I don't know -- and if it is this, it should be asserted
so we can verify it.)

(riastradh)

2021-12-20 23:05:55 UTC MAIN commitmail json YAML

tpm(4): Fix disabling of rnd source if tpm is deactivated.

Nothing prevents a second worker from being queued when the first one
is about to do rnd_detach_source.  Instead, just set a flag so future
requests don't bother running a new thread; if there's a concurrent
one that's already been scheduled on another CPU, well, too bad, we
get a couple extra log messages but that's fine.

A better way to do this would probably be to detect whether the tpm
is deactivated at attach time, but that requires reading more of the
tpm spec than I care to do when there are alternative ways to
procrastinate like scrubbing the toilet.

(riastradh)

2021-12-20 19:56:42 UTC MAIN commitmail json YAML

ieee1394: Need kernel lock around config_found.

(riastradh)

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

i915: Obviate need for __diagused on variables in GEM_BUG_ON.

(riastradh)

2021-12-20 14:52:25 UTC MAIN commitmail json YAML

i915: Mark a KASSERT-only variable __diagused.

Minor KNF fix while here.

(riastradh)

2021-12-20 12:56:08 UTC MAIN commitmail json YAML

drm: Apply the Intel pipe_drmhack in more places.

See sys/external/bsd/drm2/dist/drm/i915/intel/intel_display.h for
details.  Should reduce ctf type duplication a fair bit, maybe even
enough to get us under the 2^15 type limit.

(riastradh)

2021-12-20 00:27:53 UTC MAIN commitmail json YAML

drm: Simplify use of drm API for display on/off logic in drmfb.

(riastradh)

2021-12-20 00:27:42 UTC MAIN commitmail json YAML

drm: Fix return code interpretation in timed wait loop.

(riastradh)

2021-12-20 00:27:17 UTC MAIN commitmail json YAML

2021-12-19 16:01:29 UTC MAIN commitmail json YAML

Fix i386 modules build: viadrmums requires CONFIG_DRM_LEGACY.

(riastradh)

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

linux: Define need_resched as alias for preempt_needed.

No need to open-code this (nor to do it slightly wrong).

(riastradh)

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

i915: Use BUS_DMA_COHERENT where Linux uses dma_alloc_coherent.

(riastradh)

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

nouveau: adjust the list of PCI devices to match

linux 5.6 drm supports all the cards previously listed as unsupported.
make those supported, and, add the newer list of unsupported (the
supported list goes to GTX 20 series.)

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

(riastradh)

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

rkdrm: Implement atomic disable for planes.

(riastradh)

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

rkdrm: Turn display off and back on again at config_interrupts.

This grody kludge works around whatever we're doing wrong in the
initial modeset that causes it not to take.

(riastradh)

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

rkdrm: Reset vop for 10us on attach.

This avoids creepy lines slowly appearing, and freezing themselves
semipermanently on the display, until the first successful modeset.

(riastradh)

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

rkdrm: Comment why we config_defer rk_drm_init.

(riastradh)

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

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

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

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

drm: Fix tda19988 drm build.

(riastradh)

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

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

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

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