Commit Graph

294819 Commits

Author SHA1 Message Date
andvar 5a1f79d897 remove one whitespace to align report, misalignment occured after typo fix. 2022-02-17 14:33:25 +00:00
riastradh f7a114ac4c drm: Fix membars around dma_buf_put reference count release. 2022-02-17 01:38:38 +00:00
riastradh cae04ea7ef drm/vmwgfx: First draft. Passes make depend, doesn't build yet. 2022-02-17 01:21:02 +00:00
riastradh 9d087e317d evbppc: fix typo from cfargs rototill. 2022-02-17 00:54:51 +00:00
riastradh cde8f271ec powerpc: Sprinkle "memory" clobbers on eieio and nearby asm blocks.
Otherwise the compiler may reorder these around loads and stores,
which mostly defeats the purpose.  `asm volatile' just ensures the
instruction isn't _deleted_; it may still move around.
2022-02-16 23:49:26 +00:00
riastradh 2ac496f4dc powerpc: Implement pv-tracking for unmanaged pages.
Needed for drm.
2022-02-16 23:31:13 +00:00
riastradh 1f5b58eb2b powerpc: Implement bus_dmamap_load_raw.
Can probably delete some of the round-trips between bus addresses and
physical addresses -- did these only to copy the logic already in
_bus_dmamap_load_buffer.
2022-02-16 23:30:52 +00:00
riastradh 6c38b20bbd drm: Respect is_console property on main drm device, not fb child.
The MD device enumeration sets the property on, e.g., PCI devices --
not on drm framebuffer children, which are mostly a software
abstraction.  Not sure examining the nouveaufb, intelfb, &c., device
properties is worthwhile at all, but in case it breaks something
let's just leave it in while we're fixing other things.
2022-02-16 23:30:10 +00:00
riastradh 257d2f4ac7 macppc: Support *macppc* GENERIC.local, not evbarm GENERIC64.local.
Managed to fumble with a copypasta error of local commits, and
committed the one that didn't work instead of the one that did.
2022-02-16 23:20:38 +00:00
andvar 7f4592413f fix various typos, mainly in comments. 2022-02-16 22:00:55 +00:00
andvar 010d6b763d s/baord/board/ 2022-02-16 20:31:43 +00:00
riastradh 2fc05b7757 macppc: Support GENERIC.local. 2022-02-16 20:14:40 +00:00
riastradh 3cbfb035d0 sys: Include files.acpica unconditionally.
This way acpica.h always exists unconditionally, so MI code can be
conditional on NACPICA.

It is not great to have such conditionals, but it's better to have

	#include "acpica.h"

	#ifdef NACPICA > 0

than to have

	#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
	#include "acpica.h"
	#endif

	#ifdef NACPICA > 0

and we can still grep for NACPICA to find places that could be
factored better.
2022-02-16 20:14:30 +00:00
riastradh d462db96df pmap_pvt.h: Fix bogus include. 2022-02-16 20:14:06 +00:00
riastradh 7a4436776c uvm: MI declaration of pmap_pv_protect. 2022-02-16 20:13:58 +00:00
msaitoh ece0cd58df Print Printed Board Assembly (PBA) number. 2022-02-16 10:29:13 +00:00
msaitoh 45e0fa0a22 Remove duplicated break. No functional change. 2022-02-16 03:15:27 +00:00
uwe 21a341520d Add missing cat pages to fix MKCATPAGES build. 2022-02-16 01:26:30 +00:00
wiz b5684b14a5 Fix typo, use Nm instead of Xr to itself. 2022-02-15 22:58:25 +00:00
riastradh 89e9c14322 drm: Use KM_SLEEP to allocate reservation fence arrays.
Except as a fast path in an RCU reader.

The array sizes appear to be reasonably small and not trivially
controlled by userland, from what I can tell, so if my impression is
accurate, it is reasonable to sleep for allocation here.
2022-02-15 22:51:03 +00:00
riastradh e1fbe5b794 membar_ops(3): xref bus_dma, bus_space in SEE ALSO section too 2022-02-15 22:46:53 +00:00
riastradh 66d107c557 KERNEL_LOCK(9): New man page for old not-dead-yet hack.
I'm not documenting this to encourage anyone to use it.  I'm only
documenting this to remind myself what the semantics is, because it's
kind of confusing and not at all like mutex(9).
2022-02-15 22:46:29 +00:00
palle f08a540ec9 Document the calculation of CC64FSZ 2022-02-15 20:35:37 +00:00
riastradh ba282d085e Revert "i915: Defer final wakeup on active until after retirement."
This reverts i915_active.c 1.11.  ref->retire might free the object,
so touching it is not allowed -- that would use-after-free.  Linux
uses the object only for its address with wake_up_var.

The reason I made this change was that I guessed i915_active_wait has
to wait until after ref->retire finishes -- after all, Linux seems to
defer the wakeup until then.  However, even the Linux code doesn't
guarantee this, because i915_active_wait could be called _during_
ref->retire, and would witness ref->count == 0, and would not wait
until it has completed in that case.  So maybe my guess was wrong,
and it is OK for i915_active_wait to return while ref->retire is
still in flight -- I don't see any logic that obviously requires it
to wait for ref->retire, in any case.

Or maybe something does rely on i915_active_wait to wait for
ref->retire to finish, in which case we need a different mechanism
for i915_active_release itself to wait until i915_active_retire has
woken up, without dereferencing ref since it might be dead after
ref->retire.
2022-02-15 18:14:18 +00:00
jakllsch bf04c5e74f Define becquerels in base units (like curies and rutherfords already are),
rather than in terms of curies.

Add symbol Bq for becquerel.
2022-02-15 16:21:35 +00:00
jakllsch c0b7f470de fix inconsistent whitespace in units.lib 2022-02-15 13:44:47 +00:00
msaitoh 761c7a2a61 Regen. 2022-02-15 12:01:54 +00:00
msaitoh 90fc957425 Add VMware AHCI and NVMe. 2022-02-15 12:01:28 +00:00
riastradh cfc2c8b7ba i915: Defer final wakeup on active until after retirement.
Not sure what I was thinking when I moved this earlier!
2022-02-14 20:37:51 +00:00
riastradh 156f34a979 linux: Don't skip the last node in rbtree iteration. 2022-02-14 19:13:04 +00:00
riastradh 0fb05473e3 drm/mm: Find nearest geq/leq, not matching, holes in first_hole. 2022-02-14 13:22:30 +00:00
riastradh d682fa9d0a drm/mm: Allow hole address range queries. 2022-02-14 13:22:21 +00:00
riastradh 2258024f5a drm/mm: Assert invariant of another rb lookup.
This one looks a little more questionable.
2022-02-14 13:22:11 +00:00
riastradh 0907ee6e3a drm/mm: Assert invariant of rb lookup.
Just to make sure I didn't get the sense of the lookup reversed,
which is quite likely, because I've done it probably more than once
in this code before...
2022-02-14 13:02:31 +00:00
riastradh 1e89dc6f17 drm/ttm: Avoid uninitialized mem in error branch.
Not sure why this error branch is getting hit, but let's not make the
problem worse by choking on stack garbage.

Candidate fix for symptom of PR kern/56565, PR kern/56711.
Underlying problem -- that ttm_bo_mem_space fails with ENOMEM --
remains.
2022-02-14 09:25:39 +00:00
riastradh c320b820e8 usbdi(9): Add some missing header include guards. 2022-02-14 09:23:32 +00:00
riastradh c8ed89ac9e usbdi(9): Fix missing includes in usbdi.h. 2022-02-14 09:22:30 +00:00
riastradh 71d4875a11 hppa: Membar audit in cpu.c. 2022-02-14 08:12:48 +00:00
riastradh 8567146d16 drm: Delete mmiowb.
This no longer exists in Linux.
2022-02-14 00:28:33 +00:00
andvar 0d09afda98 s/APCI/ACPI/ 2022-02-13 23:28:58 +00:00
andvar c45fbc6e3a fix few typos in comments and log message. 2022-02-13 22:20:08 +00:00
christos 32f083259b 1. restore the previous finish() logic to make:
script -e -c /usr/bin/true
	script -e -c /usr/bin/false
   exit with the proper exit code.
2. handle system return value correctly (nabijaczleweli)
3. factor out the conversion of wait status -> shell return code.
2022-02-13 19:40:14 +00:00
riastradh 40d5b0f6fc x86: Membar audit in idt.c.
- idt_vec_free/alloc are obviously supposed to synchronize with a
  happens-before relation, so use release/acquire.

- There is no store-before-load ordering needed, so omit membar_sync.
2022-02-13 19:21:21 +00:00
riastradh 7d87118865 rump: Omit unused EIEIO #define, vestige of powerpc bus_dma.c. 2022-02-13 19:20:41 +00:00
riastradh ebbfdf2894 thmap(9): Omit needless fences and use membar_exit for release fence.
It is the caller's responsibility to arrange that thmap_create, and,
if THMAP_SETROOT is set, thmap_root, happen before any use of the
thmap.  No need for them to issue fences internally.
2022-02-13 19:20:33 +00:00
riastradh cdafe9a8a9 npf(4): Use atomic_store_release and atomic_load_consume for conn_db.
...or atomic_load_relaxed, when npf->conn_lock is held, for the sake
of C11.

No need for store-before-load implied by membar_sync.
2022-02-13 19:20:23 +00:00
riastradh 579b43d0be npf(4): Use atomic_store_release and atomic_load_consume for config.
...or atomic_load_relaxed, when the config is locked.  (Not necessary
to use atomic_* at all in NetBSD, but in C11 it will be cheaper to
say atomic_load_relaxed explicitly so an _Atomic-qualified object
doesn't cause the load to be surrounded by unnecessary membars.)

No need for store-before-load ordering here, so no need to
membar_sync.
2022-02-13 19:20:11 +00:00
riastradh eb45b2c032 vmx(4): Omit needless membar_sync wrapper.
Nothing uses this, and it is unlikely that any part of this driver
will need store-before-load ordering to synchronize with the host.
2022-02-13 19:07:38 +00:00
riastradh adeed0a04b iscsi(4): Fix config_found usage -- needs kernel lock.
Candidate fix for PR kern/56709.
2022-02-13 19:03:25 +00:00
riastradh d2d95e521e eqos(4): Nix trailing whitespace. No functional change. 2022-02-13 18:29:15 +00:00