Commit Graph

274978 Commits

Author SHA1 Message Date
nia
e1ecc07c09 synaptics: Check for single-finger event jitter in all cases.
I now have smooth two-finger scrolling.
2020-03-15 22:44:32 +00:00
thorpej
fa0b22a163 Don't bother with IFF_OACTIVE. 2020-03-15 22:19:00 +00:00
roy
a6837a9b93 tests: ndp_rtm: Check correct source address in RTA_AUTHOR
Fixes PR kern/55074.
2020-03-15 21:15:25 +00:00
ad
9887ecbe68 uvm_physseg: cluster fields used during RB tree lookup for PHYS_TO_VM_PAGE(). 2020-03-15 21:06:30 +00:00
martin
e3d221ef2a Skip tests when we know there is not enough space available 2020-03-15 20:10:26 +00:00
ad
a33dfea19c Fix a comment. 2020-03-15 19:41:04 +00:00
ad
a9352a15b6 - pmap_enter(): Remove cosmetic differences between the EPT & native cases.
Remove old code to free PVEs that should not be there that caused panics
  (merge error moving between source trees on my part).

- pmap_destroy(): pmap_remove_all() doesn't work for EPT yet, so need to catch
  up on deferred PTP frees manually in the EPT case.

- pp_embedded: Remove it.  It's one more variable to go wrong and another
  store to be made.  Just check for non-zero PTP pointer & non-zero VA
  instead.
2020-03-15 15:58:24 +00:00
ad
05d58a760b pmap_enter(): look directly in the tree for old PVE when installing an
unmanaged mapping, because there is no existing pmap_page to check in
the shortcut path (it traps).

pv_pte_next(): don't assert pp_embedded because it could have been removed
(during pmap_pp_remove()).
2020-03-15 15:14:22 +00:00
skrll
c6c249e390 Fix a comment 2020-03-15 15:00:14 +00:00
skrll
4ffa961b14 Move some comments 2020-03-15 14:58:54 +00:00
skrll
6a1a5871fe KNF the KNF 2020-03-15 14:19:04 +00:00
skrll
0cdd25d498 KNF 2020-03-15 14:17:33 +00:00
pgoyette
b7f6986c09 Use SYSCTL_SETUP mechanism to establish our sysctl tree, rather than
using explicit calls to netbsd32_sysctl_{init,fini}()
2020-03-15 14:15:12 +00:00
skrll
159692a8d4 Remove useless #include 2020-03-15 14:14:50 +00:00
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