riastradh
0d57c6f297
genfb: Handle uninitialized softc in genfb_enable/disable_polling.
...
This can happen due to janky MD kludgerosity like x86
x86_genfb_ddb_trap_callback, which should really be cleaned up, but
at least this might help with the recursive traps we've been seeing
in syzbot.
2022-08-01 23:30:10 +00:00
kre
52acc68675
Provide _GNU_SOURCE for t_clone now that is required to make clone()
...
visible.
2022-08-01 15:48:39 +00:00
wiz
b3d52618d0
sched.h: keep __clone() visible under _NETBSD_SOURCE
2022-08-01 15:16:05 +00:00
mlelstv
29d3175577
Prevent multiple unregistrations.
2022-08-01 14:44:15 +00:00
mlelstv
8db4c895b6
revert accidental commit.
2022-08-01 14:43:15 +00:00
wiz
d7c5f8bdef
sched.h: format comment to follow KNF
...
requested by thorpej@
2022-08-01 14:34:01 +00:00
wiz
2d37c7f39b
clone(2): document that _GNU_SOURCE must be defined for the prototypes
2022-08-01 14:22:32 +00:00
wiz
da31975915
sched.h: Linux documents clone and __clone as only available
...
when_GNU_SOURCE is defined - follow suit.
Ok martin@
2022-08-01 14:19:40 +00:00
kre
284455246e
Revert this to 1.205, undoing changes apparently mistakenly
...
committed in 1.206, and the total disaster that the attempt to
revert those in 1.207 created.
2022-08-01 10:30:28 +00:00
mlelstv
0139e7faab
Now really restore 1.24.
2022-08-01 08:09:30 +00:00
mlelstv
4982525b02
Revert last accidental commits.
2022-08-01 07:37:18 +00:00
mlelstv
1d93c6307f
Also fix shift values for SCT constants.
2022-08-01 07:34:28 +00:00
rin
ca8cc6f69f
ms_wscons_ioctl(): Return EPASSTHROUGH instead of -1, for unsupported
...
ioctl, as done for other backends of wsmouse(4).
2022-08-01 01:32:15 +00:00
chs
78cda414a5
in pmap_enter_ptpage(), if we are allowed to fail then fail rather than
...
waiting for memory to be available. when we are mapping an anon or uobj page
then we will be holding the lock for that page owner, and sleeping to wait
for memory with a page owner lock held is illegal because the pagedaemon
can wait for that lock, which will lead to deadlock. fixes PR 56932.
2022-07-31 17:11:41 +00:00
mlelstv
876fd04d2a
Fix build on 32bit.
2022-07-31 13:49:23 +00:00
mlelstv
a566ce54a7
Count dropped packets caused by ENOBUFS as interface error.
2022-07-31 13:14:54 +00:00
mlelstv
6eb0866937
Don't panic for a negative offset, just fail the operation with EINVAL.
2022-07-31 13:08:18 +00:00
mlelstv
3418b37ee3
Compute a unique port number from interface index.
2022-07-31 13:01:16 +00:00
mlelstv
6441916c01
Don't report errors as timeout.
2022-07-31 12:59:26 +00:00
mlelstv
d2698c432d
Move libisns to /lib to allow /sbin/iscsid to work without /usr being
...
mounted.
2022-07-31 12:40:35 +00:00
mlelstv
fa449f06f2
Report error code (SCT/SC).
2022-07-31 12:11:44 +00:00
mlelstv
2437fdbad9
The namespace id is a 32bit value, in particular the "all namespaces" value
...
for global commands is 0xffffffff. While the driver only supports 16bit
numbers (device minor & 0xffff), we need to use the full value for pass
through commands.
This fixes e.g. logpage requests on the controller level.
2022-07-31 12:02:28 +00:00
mlelstv
2ef514d792
The status is an 8 bit field. Fix masks and move the status type field
...
to the correct bit position.
2022-07-31 11:58:37 +00:00
martin
d289480dab
Move attributes to the front of the __do_atomic_store declarations
...
(to make it compatible with c++ and other more nitpicky compiker invocations).
Should fix the build for sparc.
2022-07-31 11:28:46 +00:00
dholland
2301d6e2c4
__quotactl(2): typo.
2022-07-31 06:21:41 +00:00
riastradh
83944a1de9
amdgpu: Make sure to bus_dmamap_sync before using zero'd dummy page.
2022-07-30 17:12:39 +00:00
riastradh
b8004411f0
amdgpu: Make sure dummy page is zero-filled.
2022-07-30 16:55:00 +00:00
riastradh
c68c78be86
sys/atomic.h: Fix atomic_store_* on sparcv7, sparcv8.
...
These did not cooperate with the hash-locked scheme of the other
atomic operations, with the effect that, for instance, a typical
naive spin lock based on atomic_*,
volatile unsigned locked = 0;
lock()
{
while (atomic_swap_uint(&locked, 1))
continue;
membar_acquire();
}
unlock()
{
membar_release();
atomic_store_relaxed(&locked, 0);
}
would fail to achieve mutual exclusion.
For this case, we need to use atomic_swap_* (or, for 8- or 16-bit
objects, atomic_cas_32 loops, since there is no atomic_swap_8 or
atomic_swap_16).
The new machine/types.h macro __HAVE_HASHLOCKED_ATOMICS says whether
these contortions are necessary.
Note that this _requires_ the use of atomic_store_*(p, v), not
regular stores *p = v, to work with the r/m/w atomic operations.
2022-07-30 14:13:27 +00:00
riastradh
376bcb54d1
x86: Eliminate mfence hotpatch for membar_sync.
...
The more-compatible LOCK ADD $0,-N(%rsp) turns out to be cheaper
than MFENCE anyway. Let's save some space and maintenance and rip
out the hotpatching for it.
2022-07-30 14:11:00 +00:00
riastradh
e3c82a0cc6
solaris: Give threads less bad names.
2022-07-30 13:09:19 +00:00
riastradh
d3d72cee9c
osnet: Stop disabling dtrace probes.
2022-07-30 13:03:05 +00:00
riastradh
c24f208cc5
zfs: Give condvars more meaningful names.
...
These will be truncated to 16 characters, but hey, better'n `zfscv'.
2022-07-30 12:59:31 +00:00
mlelstv
3ea7aa7b24
aprint_error_dev is for autoconfig messages, use device_printf instead.
2022-07-30 12:48:17 +00:00
rin
d2b6fb2b60
Fix WSMOUSEIO_GTYPE so that X does not fail to initialize wsmouse(4).
2022-07-30 07:27:55 +00:00
tnn
3810c27940
COPTS -> CWARNFLAGS
2022-07-30 03:29:52 +00:00
tnn
f899d637c6
amdgpu: add some more CWARNFLAGS to appease clang
...
XXX backport this change to files.amdgpu
2022-07-30 03:26:45 +00:00
tnn
0d2f884dc0
amdgpu: don't set -mhard-float for clang
...
clang complains that the option has no effect and it generates hard
float instructions without the option. soft-float not really supported
on x86_64 with clang from what I can tell.
2022-07-30 03:12:00 +00:00
pgoyette
d4dfd05175
The new drm modules made the image file grow again! Bump the size
...
limit a bit.
XXX Other $ARCH might also need this.
2022-07-30 00:55:38 +00:00
riastradh
11c76e89e6
drm: Reduce verbosity of drm kernel messages.
2022-07-29 23:50:44 +00:00
andvar
946187beed
s/collissions/collisions/
2022-07-29 20:55:41 +00:00
skrll
4839cd51b5
Improve a couple of comments
2022-07-29 15:30:42 +00:00
skrll
0d51fd5b13
Trailing whitespace
2022-07-29 15:29:07 +00:00
skrll
ab637ef4fd
No need to wrap the call to if_detach with splnet / splx as if_detach
...
raises spl as required.
2022-07-29 15:25:51 +00:00
skrll
ad69b5ee5a
Fix a typo in a comment.
2022-07-29 15:24:28 +00:00
skrll
ac3fb3d9db
KNF a comment
2022-07-29 15:19:30 +00:00
rin
12a3e61aab
PR kern/56946
...
Baud rate must be in little endian for SLSA_R_SET_BAUDRATE request.
2022-07-29 13:07:14 +00:00
wiz
0ecbd9366b
update for new openssl releases, mention openssl 3.0.5
2022-07-29 12:49:16 +00:00
riastradh
2614b97090
amdgpu: Make amdgpu_ttm_io_mem_pfn return pfn, not paddr.
2022-07-29 12:43:15 +00:00
riastradh
9294384b3f
x86: Disable new DRM_LEGACY option in INSTALL kernel.
...
The INSTALL kernel appears to be intended to have no drm in it at
all, but DRM_LEGACY brings it in just for modules.
2022-07-29 10:08:01 +00:00
skrll
c5e9ae9056
Sprinkle const
2022-07-29 07:58:18 +00:00