Commit Graph

275064 Commits

Author SHA1 Message Date
skrll
1c1e6f59bf Use howmany. NFCI. 2020-03-15 13:59:20 +00:00
skrll
78585e568a Remove duplicate ehci @ fdt 2020-03-15 13:54:28 +00:00
pgoyette
729c6e77de Now that we have split the quota code out of the compat_netbsd32_50
module, it no longer depends on compat_50_quota.

Should address PR kern/55073
2020-03-15 12:46:02 +00:00
martin
9fc99040ba Hardcode a check for ZFS and too little free space in workdir to skip
ZFS tests if the atf working directory is size restricted (ZFS has a
hardcoded minimal size of 64MB for a storage pool and 128 MB disk size).
2020-03-15 12:12:42 +00:00
nisimura
2555aa968c driver description file for Socionext products 2020-03-15 12:01:41 +00:00
rin
e2a385b1ae Fix build for ports using uvm/pmap; pmap_remove_all() returns a boolean. 2020-03-15 11:36:24 +00:00
martin
b46551040d Skip tests where the old or the new image size seem to not fit into
the working directory.
2020-03-15 11:17:59 +00:00
rin
999e4e2245 Fix build with UVMHIST. 2020-03-15 11:17:22 +00:00
martin
581b9627a8 Skip this test if the atf working directory has not enough space
for the created image.
2020-03-15 10:15:16 +00:00
skrll
69398d62e1 Use roundup. NFCI. 2020-03-15 07:56:19 +00:00
uwe
eea4ed980c werase, wclrtobot, wclrtoeol - make code even more similar.
Rename attr to battr to match bch and WINDOW::battr.
No functional change intended.
2020-03-15 01:18:43 +00:00
uwe
878e2e095f __NEED_ERASE - don't shadow __LDATA::attr with macro parameter name. 2020-03-15 01:12:47 +00:00
roy
ae92cb1896 route: Enable receive error reporting on the routing socket 2020-03-14 22:26:39 +00:00
nia
45b25aba3e synaptics: Detect multiple fingers outside the gesture period
I suspect this code doesn't make any sense if we want two-finger scrolling
2020-03-14 22:23:17 +00:00
nia
c2eda7b18a synaptics: Automatically scroll when multiple fingers are detected
This will mean we automatically get two-finger scrolling on multitouch
pads.

This works, but the scrolling is janky. Why does it eventually move the
mouse cursor (only one finger detected, but two are still there), and why
does it jump up slightly?
2020-03-14 21:56:08 +00:00
ad
94e054a199 Update a comment. 2020-03-14 21:47:41 +00:00
nia
f192d2dd5d synaptics: fix syntax 2020-03-14 21:23:32 +00:00
nia
ea7b97b6b2 synaptics: Allow the max_speed sysctls to be set 2020-03-14 21:18:50 +00:00
ad
bd8206f32d Don't require a write lock for page enqueue/activate/deactivate. 2020-03-14 21:06:35 +00:00
ad
a2e058bac7 Re: kern/55071 (Panic shortly after running X11 due to kernel diagnostic assertion "mutex_owned(&pp->pp_lock)")
pmap_pp_remove(): get rid of a "goto" to make it clearer what's going on.
2020-03-14 20:48:40 +00:00
ad
da3ef92bf6 Make uvm_pagemarkdirty() responsible for putting vnodes onto the syncer
work list.  Proposed on tech-kern@.
2020-03-14 20:45:23 +00:00
ad
37049e7a04 Catch up with reality. 2020-03-14 20:25:46 +00:00
ad
5972ba1600 Make page waits (WANTED vs BUSY) interlocked by pg->interlock. Gets RW
locks out of the equation for sleep/wakeup, and allows observing+waiting
for busy pages when holding only a read lock.  Proposed on tech-kern.
2020-03-14 20:23:51 +00:00
ad
4f50476a10 rump - page/object dirtyness tracking corrections. 2020-03-14 19:54:06 +00:00
nia
dd302e79dd synaptics: Set up_down_emulation=3 by default.
It's a less surprising default for modern hardware.
2020-03-14 19:29:39 +00:00
ad
6ba8fa570a Unused variable. 2020-03-14 19:07:22 +00:00
ad
0faf5aacb0 PR kern/55071 (Panic shortly after running X11 due to kernel diagnostic assertion "mutex_owned(&pp->pp_lock)")
- Fix a locking bug in pmap_pp_clear_attrs() and in pmap_pp_remove() do the
  TLB shootdown while still holding the target pmap's lock.

Also:

- Finish PV list locking for x86 & update comments around same.

- Keep track of the min/max index of PTEs inserted into each PTP, and use
  that to clip ranges of VAs passed to pmap_remove_ptes().

- Based on the above, implement a pmap_remove_all() for x86 that clears out
  the pmap in a single pass.  Makes exit() / fork() much cheaper.
2020-03-14 18:24:10 +00:00
ad
16d4fad635 - Hide the details of SPCF_SHOULDYIELD and related behind a couple of small
functions: preempt_point() and preempt_needed().

- preempt(): if the LWP has exceeded its timeslice in kernel, strip it of
  any priority boost gained earlier from blocking.
2020-03-14 18:08:38 +00:00
ad
bc9936a48c uvm_map_lookup_entry(): save the hint even on failure, since code elsewhere
relies on it pointing to the previous entry.
2020-03-14 17:29:53 +00:00
ad
7683ad7912 Remove unused RW lock defs. 2020-03-14 16:55:17 +00:00
is
19c1568616 provide both miniroot.fs (for people wanting to install NetBSD without
more 3rdparty software than what's provided on our ISO) and .fs.tz (for
people downloading over slow links).
2020-03-14 16:27:19 +00:00
skrll
35563434c4 Trailing whitespace 2020-03-14 16:12:15 +00:00
ad
01f564d8c8 OR into bp->b_cflags; don't overwrite. 2020-03-14 15:31:29 +00:00
ad
3b6112efc8 - uvmspace_exec(), uvmspace_free(): if pmap_remove_all() returns true the
pmap is emptied.  Pass UVM_FLAG_VAONLY when clearing out the map and avoid
  needless extra work to tear down each mapping individually.

- uvm_map_lookup_entry(): remove the code to do a linear scan of map entries
  for small maps, in preference to using the RB tree.  It's questionable,
  and I think the code is almost never triggered because the average number
  of map entries has probably exceeded the hard-coded threshold for quite
  some time.

- vm_map_entry: get it aligned on a cacheline boundary, and cluster fields
  used during rbtree lookup at the beginning.
2020-03-14 14:15:43 +00:00
ad
be9c6147a4 pmap_remove_all(): Return a boolean value to indicate the behaviour. If
true, all mappings have been removed, the pmap is totally cleared out, and
UVM can then avoid doing the work to call pmap_remove() for each map entry.
If false, either nothing has been done, or some helpful arch-specific voodoo
has taken place.
2020-03-14 14:05:42 +00:00
ad
231cabb56a uvm_pdpolicy: Require a write lock on the object only for dequeue.
No sense in requiring that for enqueue/activate/deactivate.
2020-03-14 13:53:26 +00:00
ad
d6f0325227 Put ACPI idle under ACPICPU_ENABLE_C3 until the wrinkles are ironed out.
This seems well written and basically all good, but currently doesn't enter
a low power state, and imposes a big performance penalty.  Proposed on
port-i386 & port-amd64.
2020-03-14 13:50:46 +00:00
ad
d39cb654b8 tmpfs_inactive(): do like other file systems and truncate the file if it
has been deleted.  Otherwise VFS will try to write cached data "back to
disc", which in the case of a UAO means needless page deactivations and
the resulting TLB shootdowns.
2020-03-14 13:39:36 +00:00
ad
f1944288ff tmpfs_reg_resize(): do nothing if newsize == oldsize. 2020-03-14 13:37:49 +00:00
ad
0b594cfd32 sparc cpu_intr_p(): try to work around l_cpu not being set early on by
using curcpu().
2020-03-14 13:34:43 +00:00
nia
6fe7b60978 synaptics: Make up_down_emulation useful for single-button clickpads
On devices such as the Thinkpad X250, the clickpad can be pressed
to generate mouse button events 1 and 2. There are also additional
physical buttons which the pms(4) driver recognizes as "up/down" buttons
(mouse buttons 3 and 4). Allow these to be remapped to buttons 1 and 2
and used like normal touchpad buttons with the following sysctl:

# sysctl -w hw.synaptics.up_down_emulation=3

While here, adjust the existing "middle button emulation"
(hw.synaptics.up_down_emulation=1) so it works with single-button
clickpads.

XXX: 3 may be a more useful default than the current default,
depending on hardware availability of touchpads with "up/down buttons".

Update the documentation accordingly.
2020-03-14 13:08:18 +00:00
jdolecek
8c5f0b78a9 make the packet length check less strict, allow the physical packet longer
than IP payload

this fixes problem where checksum was not recomputed for short
packets coming from Windows DOMU on same physical host, seems Windows
does some padding; reported by sborrill@

XXX pullup-9
2020-03-14 11:52:12 +00:00
wiz
1ae1945310 Sort sections. Fix date. 2020-03-14 09:01:11 +00:00
mrg
b933b1f158 add an example of using midirecord(1) to learn about how device
specific MIDI messages are formed, allowing their use from MIDI
input files, not just the device controls.

using this method, i can now control the voice mode type on my
new synth.
2020-03-14 08:09:55 +00:00
skrll
73cad4db9c hopefully fix builds 2020-03-14 06:39:20 +00:00
maxv
4e27c3180c On amd64, mark the whole tree as NX. No real functional change, just to
prevent possible future surprises, and to make it a little harder to map
executable pages in ROP chains.
2020-03-14 05:19:50 +00:00
maxv
12fcc7d589 style 2020-03-14 04:55:14 +00:00
maxv
02e2c6443c fix memory leaks 2020-03-14 04:49:33 +00:00
maxv
1d76b5b8cf wrong size passed to copyout 2020-03-14 04:39:15 +00:00
christos
13fbb093a4 fix more broken kernhist formats (now I got them all). 2020-03-14 03:01:36 +00:00