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 (3h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 06:43:48 UTC Now

2020-01-17 12:39:00 UTC MAIN commitmail json YAML

Update PMAP_STEAL_MEMORY code to uvm_hotplug

(skrll)

2020-01-17 12:34:55 UTC MAIN commitmail json YAML

Add '_p' to uvm_physseg_valid to match the function.  Bump date.

(skrll)

2020-01-17 09:42:05 UTC MAIN commitmail json YAML

Print nvm version of ixl(4) when attaching

reviewed by msaitoh

(yamaguchi)

2020-01-17 09:37:42 UTC MAIN commitmail json YAML

Use flags instead of bool that changes behavior related to
adminq command of ixl(4)

(yamaguchi)

2020-01-17 09:04:04 UTC MAIN commitmail json YAML

Fix the wrong expression in ixl(4)

Closes PR/54860.

(yamaguchi)

2020-01-17 05:22:42 UTC MAIN commitmail json YAML

support internal PHY temperature sensor

(ryo)

2020-01-17 05:20:21 UTC MAIN commitmail json YAML

Remove npf in POGO because it's now in SHEEVAPLUG.

(jklos)

2020-01-17 05:16:33 UTC MAIN commitmail json YAML

make counters per queue

(ryo)

2020-01-17 05:11:04 UTC MAIN commitmail json YAML

set/clear IFF_OACTIVE flag only on txring 0

(ryo)

2020-01-17 04:48:21 UTC MAIN commitmail json YAML

Add Fast Short Rep Mov(fsrm).

(msaitoh)

2020-01-17 02:08:26 UTC MAIN commitmail json YAML

Fix a bug that the virtual channel extended configuraton's arbitration phase
register can't be decoded correcty. Found by jmcneill.

(msaitoh)

2020-01-17 00:39:27 UTC MAIN commitmail json YAML

Don't remove the test harness utilities (the tests were not removed already
which is the majority of the files), we can use them for atf now.

(christos)

2020-01-17 00:38:19 UTC MAIN commitmail json YAML

2020-01-17 00:37:26 UTC MAIN commitmail json YAML

2020-01-17 00:37:03 UTC MAIN commitmail json YAML

2020-01-17 00:36:20 UTC MAIN commitmail json YAML

pull fix from head (O_EXEC means O_SEARCH only on FreeBSD)

(christos)

2020-01-16 16:47:19 UTC MAIN commitmail json YAML

Fix /tmp tmpfs handling and on machines with enough RAM default to
creating a /tmp tmpfs with 25% of ram size limit. Suggested by ad@.

(martin)

2020-01-16 16:45:31 UTC ad-namecache commitmail json YAML

Push the vnode locking in namei() about as far back as it will go.

(ad)

2020-01-16 15:29:24 UTC MAIN commitmail json YAML

Initialize the session variable to an impossible session to prevent compiler
warnings.

(christos)

2020-01-16 13:56:24 UTC MAIN commitmail json YAML

Remove useless calls to get_ramsize() - return value is ignored and
the function has no side effects.

(martin)

2020-01-16 13:37:27 UTC MAIN commitmail json YAML

Use .org directive to fix disklabel location instead of hand calculation.
If the code size before disklabel is less, zero is filled automatically.
If the code size before disklabel is exceeded, assembler stops with error.
Note that this changes a padding word in the current output binary from
a NOP instruction to zero but there are no functional changes.

(isaki)

2020-01-16 13:16:59 UTC MAIN commitmail json YAML

use the CARP interface for arp/nd instead of the carp parent interface.
this provides the correct source mac address for the packets.

there are routers out there that cache the source mac during
nd and then subsequently bypass/miss packet filters on carp
interfaces as they send to the parent interface mac instead of the
correct carp interface mac.

(kardel)

2020-01-16 13:15:47 UTC MAIN commitmail json YAML

Rewrite limit check using cross-build tools.
This eliminates use of hosts tr(1) and bc(1).
(But I'm going to remove this again soon due to other reason)

(isaki)

2020-01-16 12:56:40 UTC MAIN commitmail json YAML

Provide SIOCGIFMEDIA ioctl to deliver link status.
Add link0 (IFF_LINK0) flag to map INIT state to LINK_STATE_DOWN
instead of LINK_STATE_UNKNOWN. This allows routing software to
suppress routes to the interface of the carp interface when in
init state (e. g. link down in the parent interface).

(kardel)

2020-01-16 12:54:16 UTC MAIN commitmail json YAML

Remove .else part of .if OBJECT_FMT == ELF.
All similar parts in other Makefiles are removed in 2010.

(isaki)

2020-01-16 09:23:43 UTC MAIN commitmail json YAML

Back out previous, it's broken.

(ad)

2020-01-16 07:19:47 UTC MAIN commitmail json YAML

Fix wrong usage of PCI_PRODUCT(), ixl(4)

(yamaguchi)

2020-01-16 07:18:08 UTC MAIN commitmail json YAML

dm(8) doesn't cause problems on suspend, don't block it.

Tested by Matthias Petermann, thanks!

(maya)

2020-01-16 07:16:04 UTC MAIN commitmail json YAML

Fix ixl(4) not to assign interrupts to cpu #0
if ncpu > queue pairs

(yamaguchi)

2020-01-16 07:11:50 UTC MAIN commitmail json YAML

Use def{flag,param} for parameters in ixl(4)

(yamaguchi)

2020-01-16 06:34:24 UTC MAIN commitmail json YAML

make the topology support empty on non-SMP enabled kernels.
reduces kernel sizes and also fixes the builds.

(mrg)

2020-01-15 19:37:42 UTC MAIN commitmail json YAML

Avoid using the global "pm" variable in utility functions - during
extended partitioning they may point to a different device.

(martin)

2020-01-15 19:36:31 UTC MAIN commitmail json YAML

Add a method to query the partitioning schemes "internal idea" of a
cylinder size - whatever that means in the real world.

(martin)

2020-01-15 19:08:24 UTC MAIN commitmail json YAML

Fix handling of inner/outer partitions (e.g. MBR and disklabel) in
extended partitioning:
- when editing a disk with such a schme, offer both partitions in two
  steps
- when commiting changes save the inner partitions after the outer ones

(martin)

2020-01-15 18:47:23 UTC MAIN commitmail json YAML

Back out the cpu_switchto() workaround now that it's no longer needed.

(ad)

2020-01-15 18:45:57 UTC MAIN commitmail json YAML

NetBSD 9.99.38 - VM system changes

(ad)

2020-01-15 17:56:46 UTC MAIN commitmail json YAML

vmstat -s: report new stats:

        0 per-cpu stats one synced
    7246 per-cpu stats all synced
    4092 anon pages possibly dirty
    8881 anon pages dirty
        0 anon pages clean
      68 file pages possibly dirty
        0 file pages dirty
  2367889 file pages clean

(ad)

2020-01-15 17:55:45 UTC MAIN commitmail json YAML

2020-01-15 15:32:05 UTC MAIN commitmail json YAML

fstyp: Remove redundant best_i check in HAMMER2

https://reviews.freebsd.org/D23159
taken-from: DragonFlyBSD originally from FreeBSD

(tkusumi)

2020-01-15 15:30:46 UTC MAIN commitmail json YAML

fstyp: Use strlcpy(3) for HAMMER1

https://reviews.freebsd.org/D23159
taken-from: DragonFlyBSD originally from FreeBSD

(tkusumi)

2020-01-15 13:22:04 UTC MAIN commitmail json YAML

Push the INVLPG limit for shootdowns up to 16 (for UBC).

(ad)

2020-01-15 11:36:48 UTC MAIN commitmail json YAML

2020-01-15 11:36:34 UTC MAIN commitmail json YAML

2020-01-15 11:35:58 UTC MAIN commitmail json YAML

Match the more generic fsl,imx21-i2c compat string

(jmcneill)

2020-01-15 10:56:49 UTC MAIN commitmail json YAML

Rewrite bcmp() & memcmp() to not use REP CMPS.  Seems about 5-10x faster for
small strings on modern hardware.

(ad)

2020-01-15 10:25:47 UTC MAIN commitmail json YAML

2020-01-15 09:21:21 UTC MAIN commitmail json YAML

add a note about arm* cpu topology support.

(mrg)

2020-01-15 08:34:04 UTC MAIN commitmail json YAML

port the arm64 cpu topology setup for big.little to arm.

rename arm64 cpu_do_topology() to arm_cpu_do_topology() and
call it from both arm cpu_attach().

replace both aarch64_set_topology() inline code in arm
cpu_attach() with new arm_cpu_do_topology(), which is called
by the arm64 locore as well (possibly not needed, which would
allow it to become static.)

not yet tested on a real big.little armv7 system.  tested
on rockpro64 and pinebook pro.

(mrg)

2020-01-15 08:25:02 UTC MAIN commitmail json YAML

Fix typo (s/txr_opackets/txr_obytes/)

pointed out by ryo@n.o, thanks.

(yamaguchi)

2020-01-15 08:21:00 UTC MAIN commitmail json YAML

If malloc fails in zyd_node_alloc then return NULL.  From nick-nhusb

(skrll)

2020-01-15 08:20:13 UTC MAIN commitmail json YAML

2020-01-15 08:13:20 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2020-01-15 08:02:53 UTC MAIN commitmail json YAML

Use a define instead of a magic constant.  NFCI.

(skrll)

2020-01-15 06:09:37 UTC MAIN commitmail json YAML

2020-01-15 05:56:57 UTC MAIN commitmail json YAML

tsleep -> kpause

(thorpej)

2020-01-15 01:11:06 UTC MAIN commitmail json YAML

evbarm: Add support for NXP i.MX 8M family SoCs.

(jmcneill)

2020-01-15 01:09:57 UTC MAIN commitmail json YAML

2020-01-14 23:13:36 UTC MAIN commitmail json YAML

.include bsd.own.mk for ${NETBSDSRCDIR}

(christos)

2020-01-14 22:55:27 UTC MAIN commitmail json YAML

Add AMDFCH41_SMBUS_PORTMASK.

(msaitoh)

2020-01-14 21:08:06 UTC MAIN commitmail json YAML

enable the BAD_NCQ quirk for all 860 EVO drives

XXX work-in-progress, it's not clear whether this is driver or controller
XXX problem

(jdolecek)

2020-01-14 19:29:45 UTC MAIN commitmail json YAML

In the extract atomic case, remove the destination hard link first
since it did not get removed before for us. If we wanted to do this
right, we would do the mk*temp() file generation and trying to link
instead of open, and finally when we got the link to succeed, we
would rename the temp link to the final destination name, making
hard link creation atomic. For now we just remove first.

(christos)

2020-01-14 19:28:32 UTC MAIN commitmail json YAML

PR install/54787: when trying to derive proper alignement and first offset
from exisiting partitions, use the first partition offset if it is already
closer to the start of the disk than the prefered alignment - we can not
move existing partitions around.

(martin)

2020-01-14 18:18:59 UTC MAIN commitmail json YAML

Adjust the error return value of pthread_sigmask for !libpthread usage

Instead of returning -1, return errno on error.

Catch up after the fix in libpthread by Andrew Doran in 2008
in lib/libpthread/pthread_misc.c r.1.9.

It's an open question whether this function shall be used without linked
in the POSIX thread library.

Detected by Bruno Haible (GNU) and documented in gnulib in commit
"pthread_sigmask: Avoid test failure on NetBSD 8.0. " r. 4d16a83b0c1fcb6c.

(kamil)

2020-01-14 16:48:18 UTC MAIN commitmail json YAML

Back to pax as tar until I figure out how I broke libarchive (hard link
extraction creates 0 length files for existing hard-links).

(christos)

2020-01-14 16:23:08 UTC MAIN commitmail json YAML

2020-01-14 15:43:19 UTC MAIN commitmail json YAML

Update for AMD FCHs (HUDSON, BOLTON and KERNCZ).

(msaitoh)

2020-01-14 15:42:03 UTC MAIN commitmail json YAML

Save/restore port number before selecting port. Linux driver says it must
be required on some systems.

(msaitoh)

2020-01-14 15:36:54 UTC MAIN commitmail json YAML

Simplify. No functional change.

(msaitoh)

2020-01-14 11:28:35 UTC MAIN commitmail json YAML

Catch up in ktruss(1) with ptrace descriptive operation names

Switch to dynamic string lists PT_STRINGS and PT_MACHDEP_STRINGS.

Reuse the code and approach from kdump(1).

(kamil)

2020-01-14 11:08:01 UTC ad-namecache commitmail json YAML

2020-01-14 11:07:40 UTC ad-namecache commitmail json YAML

namecache:

This is working better than expected.  It seems to cut system time for
build.sh by ~10% on my test machine and joerg@ is seeing better results with
pbulk.  Improve it a bit more without changing the basic idea:

- Split cache_list_lock into a per-vnode rwlock for reverse lookup, and a
  lightly contended global lock on LRU state (cache_lru_lock),

- For LRU replacement, imitate the VM system's page replacement algorithm.
  This eliminates the writebacks to struct namecache (to track time of last
  hit).

- Dynamically allocate the per-directory lock, preparing the way for having
  a "struct nchdir" or similar which could contain stuff like different
  structures for lookup, cached info to do the equivalent of VOP_ACCESS() in
  cache, and so on.

(ad)

2020-01-14 09:49:26 UTC MAIN commitmail json YAML

No functional change:

- Move some definitions from if_stgereg.h to if_stge.c again because those are
  not chip (registers or descriptors) definitions.
- Use proplib to pass information that loading DSP code is required when
  PHY reset.

(msaitoh)

2020-01-14 09:30:34 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2020-01-14 04:00:41 UTC MAIN commitmail json YAML

Clean up.
- B_KEYINP is no longer called from C.
- B_COLOR is no longer used.

(isaki)

2020-01-14 03:48:10 UTC MAIN commitmail json YAML

consio_init() should be done before printf().

(isaki)

2020-01-14 01:41:37 UTC MAIN commitmail json YAML

If "application processors" were skipped/disabled at boot time (due to
RB_MD1 being set), don't try to examine the featurebus info, since it
was never retrieved.  Addresses kern/54815

XXX pullup-9

(pgoyette)

2020-01-13 21:43:38 UTC MAIN commitmail json YAML

bump date for previous change

(jdolecek)

2020-01-13 21:43:06 UTC MAIN commitmail json YAML

document the wd(4) sysctl nodes, and add the note about the Sumsung EVO drives

part of fix for PR kern/54790 and PR kern/54855

(jdolecek)

2020-01-13 21:20:17 UTC MAIN commitmail json YAML

disable NCQ by default for "Samsung SSD 860 EVO 1TB" and
"Samsung SSD 860 EVO 500GB" - these drives have known broken NCQ support
particularly when used with AMD SB710/750 chipsets, problem occur also
under Linux and Windows

https://eu.community.samsung.com/t5/Cameras-IT-Everything-Else/860-EVO-250GB-causing-freezes-on-AMD-system/td-p/575813
https://bugzilla.kernel.org/show_bug.cgi?id=201693

It seems there is no Samsung firmware update to fix this even.

Disable NCQ regardless of the controller, it's likely same problem
exists with other controllers too.

This should fix PR kern/54790 and PR kern/54855

(jdolecek)

2020-01-13 20:36:44 UTC MAIN commitmail json YAML

Revert previous; we don't want arm to have variable page size. Instead
nick@ is fixing the cache pages issue to use a separate pool.

(christos)

2020-01-13 20:30:08 UTC MAIN commitmail json YAML

Fix some more bugs in the topo stuff, that prevented it from working
properly with fake topo info + MP.

(ad)

2020-01-13 20:15:01 UTC MAIN commitmail json YAML

Don't call cpu_switchto() before idle_loop(), it should not be needed any more.
While there, assume (and KASSERT) that curlwp == ci->ci_data.cpu_idlelwp,
this saves a lwp_getpcb() call.

(bouyer)

2020-01-13 19:14:38 UTC MAIN commitmail json YAML

Fix atfork malloc handling to include all the locks in old jemalloc.

(joerg)

2020-01-13 19:14:02 UTC MAIN commitmail json YAML

Fix aarch64 definition in old jemalloc

There is no platform-specific reason for avoiding TLS. The tiny
allocations should be aligned the same as small allocations for ABI
reasons.

(joerg)

2020-01-13 19:03:03 UTC MAIN commitmail json YAML

2020-01-13 18:22:56 UTC MAIN commitmail json YAML

Rip out some very ambitious optimisations around pthread_mutex that are
don't buy much.  This stuff is hard enough to get right in the kernel let
alone userspace, and I don't trust that it's right.

(ad)

2020-01-13 17:23:07 UTC MAIN commitmail json YAML

Fix mis-incrementing pointer size in bus_space_read_region_{4,8}

pointed out by jmcneill@. thanks.

(ryo)

2020-01-13 16:11:54 UTC MAIN commitmail json YAML

Sort the list.  Minor markup and wording tweaks.

(uwe)

2020-01-13 16:01:37 UTC MAIN commitmail json YAML

Oops.  Restore the dot lost in -width ".Dv ..."

(uwe)

2020-01-13 15:59:12 UTC MAIN commitmail json YAML

Fix -width in the tagged list of special "handle" values.

(uwe)

2020-01-13 15:54:48 UTC MAIN commitmail json YAML

Minor tweaks.

Use same -indent for lists of values that are OR'ed as one argument.
Use consistent markup for dli_* member names.
Untabify Dl_info definition so that it lines up in PS output.

(uwe)

2020-01-13 14:25:06 UTC MAIN commitmail json YAML

2020-01-13 14:24:16 UTC MAIN commitmail json YAML

Correct the authorship note of dlinfo(3)

(kamil)

2020-01-13 14:10:52 UTC MAIN commitmail json YAML

Miscellaneous fixes.

No space after asterisk in "type *arg".
There's no "-width indent", use something relevant instead.
Do not document the structure tag of the Link_map typedef.
Give the Link_map members a paragraph of their own for readability.
Give them a bit more breathing space in the tagged list.
Spell pooka's name correctly.

TODO: The text is pleonastic in several places ("Do foo.  On success
does foo." etc) and could use some copy editing.

(uwe)

2020-01-13 12:53:46 UTC MAIN commitmail json YAML

Fix silly mistake in rev 1.12.

(thorpej)

2020-01-13 12:03:42 UTC MAIN commitmail json YAML

It looks like Xen cpu_hatch() calls cpu_switchto() with prevlwp=NULL,
instead of calling idle_loop() directly.  I can't test a change to
cpu_hatch() right now so allow for prevlwp=NULL.

(ad)

2020-01-13 11:53:25 UTC MAIN commitmail json YAML

- Fix an inverted test that could have prevented LWPs running on helper
  CPUs to teleport somewhere better during preempt().

- Fix a comment.

(ad)

2020-01-13 11:47:06 UTC MAIN commitmail json YAML

Add missing El. Fix grammar.

(wiz)

2020-01-13 11:44:02 UTC MAIN commitmail json YAML

Clean up dash use. Remove superfluous Pp.

(wiz)

2020-01-13 11:40:15 UTC MAIN commitmail json YAML

It looks like Xen cpu_hatch() calls cpu_switchto() with prevlwp=NULL,
instead of calling idle_loop() directly.  I can't test a change to
cpu_hatch() right now so allow for prevlwp=NULL.

(ad)

2020-01-13 09:53:54 UTC MAIN commitmail json YAML

Fix debug printf formats.

(martin)

2020-01-13 09:00:59 UTC MAIN commitmail json YAML

Bump date in dlfcn(3)

(kamil)

2020-01-13 09:00:20 UTC MAIN commitmail json YAML

Bump date in dlinfo(3)

(kamil)

2020-01-13 08:51:07 UTC ad-namecache commitmail json YAML

2020-01-13 08:29:05 UTC MAIN commitmail json YAML

Cross-Link from dlfcn(3) to dlinfo(3)

(kamil)

2020-01-13 08:25:02 UTC MAIN commitmail json YAML

2020-01-13 03:34:05 UTC MAIN commitmail json YAML

2020-01-13 02:18:13 UTC MAIN commitmail json YAML

more diag for cpu topology debug kernels:

- print the slow/fast status of each cpu
- if cpu topology is bogus, print info about the two CPUs that
  appear to have the same info.

(mrg)

2020-01-13 00:26:52 UTC MAIN commitmail json YAML

Remove now unused mdlwp fields md_gc_pmap and md_gc_ptp.

(ad)

2020-01-13 00:20:27 UTC MAIN commitmail json YAML

Fix a loltastic typo.

(ad)

2020-01-13 00:19:43 UTC MAIN commitmail json YAML

apply FreeBSD revs r214848 and r214849:

    r214849 | jkim | 2010-11-05 13:24:26 -0700 (Fri, 05 Nov 2010) | 2 lines

    Add a forgotten change from the previous commit.

    r214848 | jkim | 2010-11-05 12:50:09 -0700 (Fri, 05 Nov 2010) | 13 lines

    Fix a use-after-free bug for extended IRQ resource[1].  When _PRS buffer is
    copied as a template for _SRS, a string pointer for descriptor name is also
    copied and it becomes stale as soon as it gets de-allocated[2].  Now _CRS is
    used as a template for _SRS as ACPI specification suggests if it is usable.
    The template from _PRS is still utilized but only when _CRS is not available
    or broken.  To avoid use-after-free the problem in this case, however, only
    mandatory fields are copied, optional data is removed, and structure length
    is adjusted accordingly.

    Reported by:    hps[1]
    Analyzed by:    avg[2]
    Tested by:      hps

This also fixes reading past the end of a structure as detected by KASAN.

(chs)

2020-01-13 00:09:28 UTC MAIN commitmail json YAML

Improve diagnostic messages:
- Pass an additional argument to gttwsi_wait() to indicate what's
  going on, and report that, along with the error code from
  cv_timedwait(), if a timeout occurs.
- In gttwsi_send_stop(), if we don't get the expected NRS status,
  report which status we *did* get when a timeout occurs.

(thorpej)

2020-01-12 23:22:12 UTC MAIN commitmail json YAML

Start to switch from OpenBSD timeout(9) API to callout(9) and workqueue(9)
Replace functions with NetBSD counterparts.

(sevan)

2020-01-12 22:03:23 UTC MAIN commitmail json YAML

A final set of scheduler tweaks:

- Try hard to keep vfork() parent and child on the same CPU until execve(),
  failing that on the same core, but in all other cases scatter new LWPs
  among the different CPU packages, round robin, to try and get the best out
  of the available cache and bus bandwidth.

- Remove attempts at balancing.  Replace with a rate-limited skim of other
  CPU's run queues in sched_idle(), starting in the current package and
  moving outwards.  Add a sysctl tunable to change the interval.

- Make the cacheht_time tuneable take a milliseconds value.

- It's possible to configure things such that there's no CPU allowed to run
  an LWP.  Defeat this by always having a default:

Reported-by: syzbot+46968944dd9359ab93bc@syzkaller.appspotmail.com
Reported-by: syzbot+7f750a4cc230d1e831f9@syzkaller.appspotmail.com
Reported-by: syzbot+88d7675158f5cb4684db@syzkaller.appspotmail.com
Reported-by: syzbot+d409c2338150e9a8ae1e@syzkaller.appspotmail.com
Reported-by: syzbot+e152dc5bff188f67358a@syzkaller.appspotmail.com

(ad)

2020-01-12 21:52:36 UTC MAIN commitmail json YAML

Enable sun8icrypto in GENERIC64.

But set its entropy estimate to zero until we have a better idea of
how it works.  Can't really hurt this way unless sun8icrypto is
maliciously dependent on all other inputs to the entropy pool, which
seems unlikely.

(riastradh)

2020-01-12 21:49:39 UTC MAIN commitmail json YAML

2020-01-12 21:40:45 UTC MAIN commitmail json YAML

Make pri_t a short and get back some more space in struct lwp.

(ad)

2020-01-12 21:37:15 UTC MAIN commitmail json YAML

NetBSD 9.99.37 - struct cpu_info & struct lwp changed.

(ad)

2020-01-12 21:31:04 UTC MAIN commitmail json YAML

2020-01-12 21:27:45 UTC MAIN commitmail json YAML

2020-01-12 20:49:21 UTC MAIN commitmail json YAML

Update callout_halt() to match src/sys/sys/callout.h

(sevan)

2020-01-12 20:06:52 UTC MAIN commitmail json YAML

fix -Wsign-compare because module tests trigger it.

(christos)

2020-01-12 20:00:41 UTC MAIN commitmail json YAML

initialize radix_tree_node_cache with PR_LARGECACHE

this increases the cache groups from 15 to 63 items in order
to reduce traffic between pool cache layers
this is the same as for other highly frequented pool caches as the pvpool and anonpool

(para)

2020-01-12 19:13:55 UTC MAIN commitmail json YAML

Fix some more places in this file it's assumed cpu_info is smaller than 1kB.

(ad)

2020-01-12 18:42:41 UTC MAIN commitmail json YAML

Add file completion.

(christos)

2020-01-12 18:37:10 UTC MAIN commitmail json YAML

- Shuffle some items around in struct lwp to save space.  Remove an unused
  item or two.

- For lockstat, get a useful callsite for vnode locks (caller to vn_lock()).

(ad)

2020-01-12 18:36:55 UTC MAIN commitmail json YAML

remove unused

(christos)

2020-01-12 18:30:58 UTC MAIN commitmail json YAML

Tidy up the vnode locking around execve() on ELF images to acquire and
release the locks fewer times.  Proposed on tech-kern a very long time go.

(ad)

2020-01-12 17:49:17 UTC MAIN commitmail json YAML

vput(): don't drop the vnode lock, carry the hold over into vrelel() which
might need it anyway.

(ad)

2020-01-12 17:48:42 UTC MAIN commitmail json YAML

Clean up gttwsi's register access stuff:
- Garbage-collect the obsolete GTTWSI_ALLWINNER option; it hasn't been
  needed since FDT'ization of the Allwinner support code.
- Redefine thw "TWSI_*" register definitions to clearly call out:
  -> The Marvell flavor of the offsets
  -> The Allwinner flavor of the offsets
  ...and make the regular definitions indices into a register map.
- Pass the appropriate register map from the front-end to the core.
- Remove the customer register read/write callbacks -- they are no longer
  needed now that each front-end passes an appropriate register map to
  the core.

(thorpej)

2020-01-12 17:46:56 UTC MAIN commitmail json YAML

- uvm_unmap_remove(): need to call pmap_update() with the object still
  locked, otherwise the page could gain a new identity and still be visible
  via a stale mapping.

- Adjust reference counts with atomics.

(ad)

2020-01-12 16:11:51 UTC MAIN commitmail json YAML

re-enable BSDTAR now that the two issues (symlinks/atomicity) have been fixed.

(christos)

2020-01-12 16:10:49 UTC MAIN commitmail json YAML

Leave pre-existing symlinks alone on extraction

When libarchive encounters an existing symbolic link during extraction
it removes that symbolic link first before overwriting it, unless
it is told that it can trust symlinks from the archive.

Placing symbolic links on known paths in the extracting subdirectory
is a simple way that a system administrator can place data at a
different location without having the overhead of a mountpoint.

Trusting symlinks from an archive is never safe because they can
maliciously overwrite files outside of the extraction directory.

This patch adds a linked-list to track of the symbolic links that
were created during extraction so that it does not trust them. This
way during extraction, libarchive can remove the symlinks it created,
but leave the pre-existing ones alone.

Unit-tests were adjusted for this new behavior.

(this is pull request 1300)

(christos)

2020-01-12 16:08:31 UTC MAIN commitmail json YAML

Introduce ARCHIVE_EXTRACT_ATOMIC and set it by default on bsdtar.

This flag changes the way that regular files are extracted:

Instead of removing existing files first and re-creating them in
order to replace their contents, a temporary file is created and
when writing to the temporary file is completed, the file is
rename(2)d to the final destination name.

This has the effect of presenting a consistent view of the file to
the system (either the file with the new contents or the file with
the old contents). Removing and overwriting the file has the
undesired side effect that the the system can either not see the
file at all (from the time it is being removed till the time it is
being re-created), or worse it can see partial file contents. This
is problematic when extracting system files (for example shared
libraries).

Perhaps there should be a flag to disable it, when for example it
is not desirable because of space constraints, but then again
one can specify to unlink the file before.

(this is pull request 1289)

(christos)

2020-01-12 13:51:12 UTC MAIN commitmail json YAML

2020-01-12 13:37:26 UTC MAIN commitmail json YAML

Redo previous using COHERENCY_UNIT.

(ad)

2020-01-12 13:29:24 UTC MAIN commitmail json YAML

cpu topology:

- Fix a stupid bug where it complained about non-existent SMT on assymetric
  systems.

- Give each CPU a pointer back to the first CPU in same package.

(ad)

2020-01-12 13:19:32 UTC MAIN commitmail json YAML

Bump MIN_LWP_ALIGNMENT to 64.

(ad)

2020-01-12 13:15:10 UTC MAIN commitmail json YAML

2020-01-12 13:15:08 UTC MAIN commitmail json YAML

Remove some unneeded kernel_lock handling.

(ad)

2020-01-12 13:08:32 UTC MAIN commitmail json YAML

Nothing uses l->l_sleeperr any more.

(ad)

2020-01-12 13:01:12 UTC MAIN commitmail json YAML

x86 pmap:

- It turns out that every page the pmap frees is necessarily zeroed.  Tell
  the VM system about this and use the pmap as a source of pre-zeroed pages.

- Redo deferred freeing of PTPs more elegantly, including the integration with
  pmap_remove_all().  This fixes problems with nvmm, and possibly also a crash
  discovered during fuzzing.

Reported-by: syzbot+a97186518c84f1d85c0c@syzkaller.appspotmail.com

(ad)

2020-01-12 12:55:03 UTC MAIN commitmail json YAML

l->l_emap_gen isn't used any more.

(ad)

2020-01-12 09:29:18 UTC MAIN commitmail json YAML

provide some semblance of valid cpu topology for big.little systems.

while attaching cpus, if the FDT provides "capacity-dmips-mhz" track
the fastest set, and call cpu_topology_set() with slow=true for any
cpus that are not the fastest.

bug fix for cpu_topology_set(): actually set ci_is_slow for slow cpus.

with this change, and -current's recent scheduler changes, this means
that long running processes run on the faster cores.  on RK3399 based
systems, i am seeing 20-50% speed ups for many tasks.

XXX: all this can be made common with armv7 big.little.

(mrg)

2020-01-12 06:41:02 UTC MAIN commitmail json YAML

Revert "Compile with -O2 by default" change in previous rev 1.11.

COPTS is defined properly after sys/arch/arm/conf/Makefile.arm rev 1.53.
See discussion in source-changes-d@ for details:
https://mail-index.netbsd.org/source-changes-d/2020/01/thread1.html#011984

(tsutsui)

2020-01-12 03:56:14 UTC MAIN commitmail json YAML

Fix "[: SMALL test, no fallback usage" error on miniroot installation.

Avoid and replace use of '-a', '(' and ')' operatos marked obsolescent
by modern POSIX.1-2017:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_128_16
as suggested by kre@ in PR/54835.

Should be pulled up to netbsd-9.

(tsutsui)

2020-01-12 03:50:30 UTC MAIN commitmail json YAML

PR/54853: Greg Oster: unable to 'unset filec' or 'unset edit' in csh
While here allow set edit=vi

(christos)

2020-01-12 03:37:10 UTC MAIN commitmail json YAML

Fix miniroot installation failure on network configuration.  PR/54833

No particular comment in the PR.
Should be pulled up to netbsd-9.

(tsutsui)

2020-01-12 00:35:11 UTC MAIN commitmail json YAML

Support imxuart_freq=0 (use existing settings)

(jmcneill)

2020-01-11 22:21:26 UTC MAIN commitmail json YAML

In gttwsi_wait(), don't use cv_timedwait_sig() -- there's no reason to
catch signals here, and the code would need to handle them properly, which
this code does not.

(thorpej)

2020-01-11 21:45:08 UTC MAIN commitmail json YAML

Note some more layouts that work with KB_SWAPCTRLCAPS.

(nia)

2020-01-11 21:43:11 UTC MAIN commitmail json YAML

Support the combination of KB_SWAPCTRLCAPS and UK layout.

(nia)

2020-01-11 21:05:46 UTC MAIN commitmail json YAML

Start porting to NetBSD. (WIP, incomplete)

(sevan)

2020-01-11 20:56:51 UTC MAIN commitmail json YAML

Import rge(4) from OpenBSD for Realtek's RTL8125 based 2.5GbE network cards.

(sevan)

2020-01-11 19:51:01 UTC MAIN commitmail json YAML

- uvm_pagezerocheck(): put a global lock around it to protect the single
  page mapping (DEBUG only).

- uvm_pagefree(): increment zeropages as needed.

(ad)

2020-01-11 19:06:35 UTC MAIN commitmail json YAML

Define the min and max page size supported for the benefit of jemalloc

(christos)

2020-01-11 16:29:07 UTC MAIN commitmail json YAML

Don't add the 2 reserved clusters before we determine if we using fat16/fat32.
From FreeBSD: https://reviews.freebsd.org/D23082:

Correct off-by-two issue when determining FAT type.

In the code we used NumClusters as the upper (non-inclusive) boundary
of valid cluster number, so the actual value was 2 (CLUST_FIRST) more
than the real number of clusters. This causes a FAT16 media with
65524 clusters be treated as FAT32 and might affect FAT12 media with
4084 clusters as well.

To fix this, we increment NumClusters by CLUST_FIRST after the type
determination.

(christos)

2020-01-11 04:53:10 UTC MAIN commitmail json YAML

Simplify async_mixer handling.
- It makes FIOASYNC code in mixer_ioctl() symmetric.
- For readability, mixer_async_{add,remove}() should take pid argument
  though pid is always curproc.

(isaki)

2020-01-11 04:06:13 UTC MAIN commitmail json YAML

2020-01-10 21:32:18 UTC MAIN commitmail json YAML

UVM_PAGE_TREE_PENALTY isn't used any more.

(ad)

2020-01-10 18:35:30 UTC MAIN commitmail json YAML

2020-01-10 16:18:22 UTC MAIN commitmail json YAML

Add WP

From Rocky Hotas, thanks!

(leot)

2020-01-10 14:56:00 UTC MAIN commitmail json YAML

2020-01-10 12:58:41 UTC MAIN commitmail json YAML

Add some more licenses appearing in external.
Remove mentions of src/gnu that no longer exists.
Mention /usr/pkg/etc.
Bump date

(maya)

2020-01-10 12:55:14 UTC MAIN commitmail json YAML

When asked to create a whole-disk partition for unknown usage, do not only
assert(false), but actually return an error (in case "assert" is a nop).

(martin)

2020-01-10 12:33:29 UTC MAIN commitmail json YAML

Use first-level heading for "NetBSD" title in README.md

(nia)

2020-01-10 10:47:35 UTC MAIN commitmail json YAML

Move the LABELSECTOR check and make it FS type specific - some partition
types (FFS, RAID) are allowed to overlap with the LABELSECTOR.

(martin)

2020-01-10 09:47:19 UTC MAIN commitmail json YAML

NetBSD 9.99.36 - scheduler changes

(ad)

2020-01-10 06:26:34 UTC MAIN commitmail json YAML

2020-01-10 06:24:17 UTC MAIN commitmail json YAML

add driver for the ambient light sensor / keyboard light controller found in
PowerBook5,6 and probably others

(macallan)

2020-01-09 20:07:46 UTC MAIN commitmail json YAML

2020-01-09 19:51:49 UTC MAIN commitmail json YAML

When reading the secondary disklabel partitions from an existing disklabel
set the mbr partitions as parent.

(martin)

2020-01-09 19:17:46 UTC MAIN commitmail json YAML

2020-01-09 18:49:06 UTC MAIN commitmail json YAML

2020-01-09 18:47:46 UTC MAIN commitmail json YAML

if we have more than one i2c-bus node, look for children on both
now we find the light sensor in my shiny new toy

(macallan)

2020-01-09 17:18:43 UTC netbsd-9 commitmail json YAML

2020-01-09 17:16:47 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #614):

sys/arch/aarch64/aarch64/cpu.c: 1.32
sys/arch/arm/arm32/cpu.c: 1.138
sys/dev/fdt/fdtbus.c: 1.31

When attaching the first fdtbus, use the root "comptabile" (or failing that:
"model") property to set the cpu model (in userland aka sysctl hw.model).
When attaching the first cpu, do not overwrite a cpu model if it already
had been set.

(snj)

2020-01-09 17:06:46 UTC MAIN commitmail json YAML

Instead of a (bogus) attempt to query the model via ofctl, use the (now
fixed) sysctl hw.model instead.

(martin)

2020-01-09 16:35:04 UTC MAIN commitmail json YAML

- Many small tweaks to the SMT awareness in the scheduler.  It does a much
  better job now at keeping all physical CPUs busy, while using the extra
  threads to help out.  In particular, during preempt() if we're using SMT,
  try to find a better CPU to run on and teleport curlwp there.

- Change the CPU topology stuff so it can work on asymmetric systems.  This
  mainly entails rearranging one of the CPU lists so it makes sense in all
  configurations.

- Add a parameter to cpu_topology_set() to note that a CPU is "slow", for
  where there are fast CPUs and slow CPUs, like with the Rockwell RK3399.
  Extend the SMT awareness to try and handle that situation too (keep fast
  CPUs busy, use slow CPUs as helpers).

(ad)

2020-01-09 16:27:57 UTC MAIN commitmail json YAML

Registering the host's CR0 is done outside of the VCPU loop, so it must be
cleared because it is also cleared inside the loop.

Not clearing it could trigger DNAs on VMEXITs, because STTS/CLTS are still
here as part of debugging since my FPU overhaul.

(maxv)

2020-01-09 16:23:42 UTC MAIN commitmail json YAML

When attaching the first fdtbus, use the root "comptabile" (or failing that:
"model") property to set the cpu model (in userland aka sysctl hw.model).
When attaching the first cpu, do not overwrite a cpu model if it already
had been set.

(martin)

2020-01-09 16:20:12 UTC MAIN commitmail json YAML

Mmh, as noted in PR/54847, this should be uint64_t, not uint16_t. Harmless
because we use only the two lowest bits anyway.

I believe this could be caught by KUBSAN; time to do another round of
NVMM+K_SAN testing.

(maxv)

2020-01-09 15:50:16 UTC MAIN commitmail json YAML

Add a recommendation for SMT to not split threads.  XXX This should report
topo info to help the decision.

(ad)

2020-01-09 13:22:32 UTC MAIN commitmail json YAML

2020-01-09 12:49:12 UTC MAIN commitmail json YAML

Acquire/release host semaphore to share SMBus between the host and
the embedded controller (IMC).

Without this change, "shutdown -r" does power off and not boot on ECS HDC-I2.
This change fixes the problem.

(msaitoh)

2020-01-09 11:17:46 UTC netbsd-9 commitmail json YAML

2020-01-09 11:16:53 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #613):

sys/arch/arm/rockchip/rk_vop.c: revision 1.6

in rk_vop_dpms() set or unset the VOP_STANDBY_EN bit in VOP_SYS_CTRL
depending on the dpms mode requested.

this makes pinebook pro display actually turn off when dpms asks.

(martin)

2020-01-09 10:54:16 UTC MAIN commitmail json YAML

Reduce diff against OpenBSD. No functional change.

- USE CSR_{READ,WRITE}_*() macro.
- Move some macros from if_stge.c to if_stgereg.h

(msaitoh)

2020-01-09 10:46:31 UTC MAIN commitmail json YAML

Add missing compat define of PT32_GETXSTATE

Fixes i386 build.

Reviewed by <mgorny>

(kamil)

2020-01-09 10:43:45 UTC MAIN commitmail json YAML

Use __SHIFTIN()/__SHIFTOUT().  Suggested by riastradh@.

(ad)

2020-01-09 08:54:05 UTC MAIN commitmail json YAML

Make some parametes in ixl(4) be able to change when loading
for debugging

- nomsix(boolean)
  - disable msix support
- stats_interval(signed integer)
  - change interval for collecting statistic counters
- nqps_limit(signed integer)
  - limitation for the number of queue pairs
- {tx,rx}_ndescs(unsigned integer)
  - the number of discriptors in txqueue or rxqueue

(yamaguchi)

2020-01-09 04:04:01 UTC MAIN commitmail json YAML

Re-enable the intr / mask / softint / unmask dance now that the x86
interrupt issue is fixed.  Verified working by ryoon@ (thanks!).

(thorpej)

2020-01-09 02:55:42 UTC MAIN commitmail json YAML

ixl(4) supports in-chip statistic counters per VSI

(yamaguchi)

2020-01-09 02:43:45 UTC MAIN commitmail json YAML

ixl(4) supports in-chip statistic counters per port

(yamaguchi)

2020-01-09 01:38:34 UTC MAIN commitmail json YAML

fix behaviour mmap()/mprotect() when passed only PROT_EXEC.

when mmap()/mprotect() with only PROT_EXEC, syscall will be successful,
but the page actually hadn't been mapped.
it should be mapped with PROT_READ|PROT_EXEC implicitly. (r-x)

(ryo)

2020-01-09 00:42:24 UTC MAIN commitmail json YAML

2020-01-08 23:28:56 UTC MAIN commitmail json YAML

send PMF events for volume and brightness control keys on Apple keyboards

(macallan)

2020-01-08 22:04:24 UTC MAIN commitmail json YAML

Back out previous. This has no chance to work unless the make variable parsing
is not changed do that instead of scanning for a single character delim ':',
it scans for "?:". This is because !empty(COMPILE.c:M*-pg*) contains a ':'.

(christos)

2020-01-08 21:55:10 UTC ad-namecache commitmail json YAML

2020-01-08 20:59:20 UTC MAIN commitmail json YAML