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

2024-05-10 11:30:39 UTC Now

2019-05-21 16:45:19 UTC MAIN commitmail json YAML

Sort Keywords section

(sevan)

2019-05-21 16:22:36 UTC MAIN commitmail json YAML

2019-05-21 16:18:07 UTC MAIN commitmail json YAML

2019-05-21 12:52:57 UTC MAIN commitmail json YAML

Adjust debug message.  Inspired from PR kern/54177.

(isaki)

2019-05-21 09:58:15 UTC MAIN commitmail json YAML

- I think it's not required to test "#if defined(IFM_ETHER)" now.
- Fix compile error. It seems no one use this file. Is it OK to remove this
  file?

(msaitoh)

2019-05-21 09:24:21 UTC MAIN commitmail json YAML

Fix some typos and remove cargo-cult quoting.

(wiz)

2019-05-21 09:18:37 UTC MAIN commitmail json YAML

2019-05-21 05:29:21 UTC MAIN commitmail json YAML

All MSRs can only be read at privilege level 0. The exact APIC ID cannot
be determined on some AMD CPUs.

(mlelstv)

2019-05-21 04:57:02 UTC MAIN commitmail json YAML

put back line accidentally removed.

(christos)

2019-05-21 04:55:07 UTC MAIN commitmail json YAML

undo the unintended part of the previous commit.

(christos)

2019-05-21 04:53:52 UTC MAIN commitmail json YAML

va_copy list needs va_end; pointed out by kre@

(christos)

2019-05-21 04:10:20 UTC MAIN commitmail json YAML

2019-05-21 04:09:46 UTC MAIN commitmail json YAML

2019-05-21 03:46:45 UTC MAIN commitmail json YAML

Make the t_subr_prf test build after changes to sys/kern/subr_prf.c
and while here add a simple test for the new kernel vasprintf().

(kre)

2019-05-21 03:42:52 UTC MAIN commitmail json YAML

it's called "snps,dis_u2_susphy_quirk" in both upstream and what
our drivers expect, not "snps,dis-u2-susphy-quirk".

unfortunately, my rock64 usb still seems to be non functional.

from jmcneill@.

(mrg)

2019-05-21 00:57:54 UTC MAIN commitmail json YAML

Need <sys/kmem.h> for kmem_alloc()

(kre)

2019-05-20 22:17:41 UTC MAIN commitmail json YAML

2019-05-20 20:35:45 UTC MAIN commitmail json YAML

Add a simple vasprintf() implementation that uses 2 passes, one to compute
the length and a second to place the data. Requested by rmind@

(christos)

2019-05-20 20:25:09 UTC MAIN commitmail json YAML

2019-05-20 20:17:25 UTC MAIN commitmail json YAML

make CPU 1 bootstrapping work even if the kernel is not loaded close to PA 0.

More precisely, we used "B cpu_mpstart", which worked for small addresses and
thus does not work in the EFI case.
It is now replaced by a "LDR PC, =cpu_mpstart", which works for arbitrary
addresses.

(aymeric)

2019-05-20 20:14:08 UTC MAIN commitmail json YAML

use NULL instead of cycv_dwcmmc_card_detect() for sc_card_detect.

(aymeric)

2019-05-20 18:24:58 UTC MAIN commitmail json YAML

2019-05-20 17:00:58 UTC MAIN commitmail json YAML

2019-05-20 16:58:49 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2019-05-20 11:12:11 UTC MAIN commitmail json YAML

Reduce the number of times we need to call driver match functions. Makes
a noticeable difference in boot time on an ODROID-XU4.

(jmcneill)

2019-05-20 08:55:31 UTC MAIN commitmail json YAML

mount_9p: add missing -u option to the help message

(ozaki-r)

2019-05-19 22:34:23 UTC MAIN commitmail json YAML

Add option to specify an alternate library location to allow testing
a development library version without installing it.

(blymn)

2019-05-19 19:06:53 UTC MAIN commitmail json YAML

Add simple position recovery when positioning to EOM by reading
the position with READ_POSITION.
this allows for
mt eom
mt st
to return the correct file position.

(kardel)

2019-05-19 09:14:14 UTC MAIN commitmail json YAML

Sort options in usage.

(wiz)

2019-05-19 08:49:08 UTC MAIN commitmail json YAML

Remove useless call to fpu_sigreset(), buildcontext() already calls it.

(maxv)

2019-05-19 08:46:15 UTC MAIN commitmail json YAML

2019-05-19 08:17:02 UTC MAIN commitmail json YAML

2019-05-19 07:43:17 UTC MAIN commitmail json YAML

correct order of parameters, has no effect as anything set here is
overwritten by the following reconfig.

(mlelstv)

2019-05-19 04:09:23 UTC MAIN commitmail json YAML

2019-05-18 21:16:12 UTC MAIN commitmail json YAML

- add flag to produce OMAGIC
- factor out complicated inline code into simpler functions
- add options parsing

(christos)

2019-05-18 17:41:34 UTC MAIN commitmail json YAML

lint gets the wrong size.

(christos)

2019-05-18 13:44:57 UTC MAIN commitmail json YAML

Enable EagerFPU by default. Sent on port-amd64@.

(maxv)

2019-05-18 13:32:12 UTC MAIN commitmail json YAML

Two changes in the CPU mitigations:

* Micro-optimize: put every mitigation in the same branch. This removes
  two branches in each exc/int return path, and removes all branches in
  the syscall return path.

* Modify the SpectreV2 mitigation to be compatible with SpectreV4. I
  recently realized that both couldn't be enabled at the same time on
  Intel. This is because initially, when there was just SpectreV2, we
  could reset the whole IA32_SPEC_CTRL MSR. But then Intel added another
  bit in it for SpectreV4, so it isn't right to reset it entirely
  anymore. SSBD needs to stay.

(maxv)

2019-05-18 10:38:04 UTC MAIN commitmail json YAML

Document name_desc attribute of mandb_links.

Discussed with <abhinav> via PR misc/54213, thanks!

(leot)

2019-05-18 10:28:57 UTC MAIN commitmail json YAML

Reintroduce case insensitive comparison of name accidentally lost in last
revision.

Discussed with <abhinav> via PR misc/54213, thanks!

(leot)

2019-05-18 10:21:03 UTC MAIN commitmail json YAML

Don't mention SVS because it can't be changed anymore.

(alnsn)

2019-05-18 08:55:59 UTC MAIN commitmail json YAML

Now that SVS cannot be disabled at run time, MSR_LSTAR is static, so no
need to save it on each VM enter.

(maxv)

2019-05-18 08:54:38 UTC MAIN commitmail json YAML

Use XC_HIGHPRI for SpectreV2 to reduce the CPU downtime. We already do this
for MDS.

(maxv)

2019-05-18 08:49:24 UTC MAIN commitmail json YAML

2019-05-18 08:38:00 UTC MAIN commitmail json YAML

Add experimental userland interface to IPMI driver. Currently, transactions
(like sensor readout) are locked, so that a userland program may interfere with
envsys operation.

To use this you need a program like ipmitool built with OpenIPMI support.

(mlelstv)

2019-05-18 08:17:39 UTC MAIN commitmail json YAML

Clean up a little, add new XCR0 bits, remove a few unused MSRs, and fix
typos.

(maxv)

2019-05-18 07:58:58 UTC MAIN commitmail json YAML

Set the symbol type for intrfastexit, so that tools like tprof can find
the symbol name.

(maxv)

2019-05-18 07:56:43 UTC MAIN commitmail json YAML

PR misc/54213: Fix performance of whatis(1) when no matches are found

In revision 1.6 of whatis.c the query was modified to return matches for names found
in MLINKS of the man pages as well. However it was slow. The reason probably being that it
required a join. But more importantly the where condition on an FTS virtual table column
is very slow. To avoid the join and the expensive where condition on the virtual table,
add the name_desc column to the mandb_links table as well. This improves the performance
of whatis(1) to the original level at the expense of slight data duplication.

Bump the schema to force database rebuild to take account for the new column addition

(abhinav)

2019-05-18 07:49:31 UTC MAIN commitmail json YAML

Disable errata #1091. We are the only OS to apply it, and it seems to be
causing trouble to VirtualBox (PR/54143).

(maxv)

2019-05-18 07:33:11 UTC MAIN commitmail json YAML

Switch the kernel7.img RaspberryPi kernel in the armv7 image to GENERIC
and thus reducing the number of kernels built in an evbarmv7 release.

(skrll)

2019-05-17 23:51:35 UTC MAIN commitmail json YAML

2019-05-17 20:27:48 UTC MAIN commitmail json YAML

2019-05-17 18:50:40 UTC MAIN commitmail json YAML

Factor out the magic checking code for the label, and make it not depend
on alignment.

(christos)

2019-05-17 18:34:33 UTC MAIN commitmail json YAML

Factor out the fbinfo setting code, to make it more readable, and use
memcpy to properly align the structure (although it does not matter on x86).

(christos)

2019-05-17 13:51:36 UTC MAIN commitmail json YAML

2019-05-17 13:44:55 UTC MAIN commitmail json YAML

Revert previous.
The binaries created are different, but according to joerg@ there
is no difference in functionality.

(nakayama)

2019-05-17 08:56:12 UTC MAIN commitmail json YAML

Merge single-letter options in SYNOPSIS.
Add an article.

(wiz)

2019-05-17 08:48:04 UTC MAIN commitmail json YAML

mount_9p: add initial support for 9P2000.u

The implementation enables to work with a server talking 9P2000.u.  However, it
doesn't use the extended fields yet; it just ignores those of received messages
and sets "please ignore" values to those of sending messages such as zero-length
strings and maximum unsigned values.

The feature is enabled by the -u option.

(ozaki-r)

2019-05-17 08:26:20 UTC MAIN commitmail json YAML

2019-05-17 07:50:49 UTC MAIN commitmail json YAML

Refer the current official page

(ozaki-r)

2019-05-17 07:50:09 UTC MAIN commitmail json YAML

2019-05-17 07:42:30 UTC MAIN commitmail json YAML

ifmedia(4): Extend Ethernet's ifmedia word's subword up to 255.

(msaitoh)

2019-05-17 07:39:33 UTC MAIN commitmail json YAML

2019-05-17 07:38:48 UTC MAIN commitmail json YAML

New SIOC[GS]IFMEDIA.

Welcome to 8.99.41.

(msaitoh)

2019-05-17 07:37:12 UTC MAIN commitmail json YAML

The max subtype of the ifmedia word is 31. It's too small for Ethernet now.
We currently use use it up to 30. We should extend the limit to be able to use
more than 10Gbps speeds. Our ifmedia(4) is inconvenience and have some problem
so we should redesign the interface, but it's too late for netbsd-9 to do it.
So, we keep the data structure size and modify the structure a bit. The
strategy is almost the same as FreeBSD. Many bits of IFM_OMASK for Ethernet
have not used, so use some of them for Ethernet's subtype.

The differences against FreeBSD are:
- We use NetBSD style compat code (i.e. no SIOCGIFXMEDIA).
- FreeBSD's IFM_ETH_XTYPE's bit location is from 11 to "14" even though
  IFM_OMASK is from 8 to "15". We use _IFM_ETH_XTMASK from bit 13 to "15".
- FreeBSD changed the meaning of IFM_TYPE_MATCH(). I think we should
  not do it. We keep it not changing and added new IFM_TYPE_SUBTYPE_MATCH()
  macro for matching both TYPE and SUBTYPE.
- Added up to 400GBASE-SR16.

New layout of the media word is as follows (from ifmedia_h):

* if_media Options word:
* Bits Use
* ---- -------
* 0-4 Media subtype MAX SUBTYPE == 255 for ETH and 31 for others
* 5-7 Media type
* 8-15 Type specific options
* 16-18 Mode (for multi-mode devices)
* 19 (Reserved for Future Use)
* 20-27 Shared (global) options
* 28-31 Instance
*
*  3                    2                  1
*  1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
*  +-------+---------------+-+-----+---------------+-----+---------+
*  |      |              |R|    |              |    |        |
*  | IMASK |    GMASK    |F|MMASK+-----+ OMASK  |NMASK|  TMASK  |
*  |      |              |U|    |XTMSK|        |    |        |
*  +-------+---------------+-+-----+-----+---------+-----+---------+
*  <----->                  <--->                <--->
*  IFM_INST()              IFM_MODE()            IFM_TYPE()
*
*                              IFM_SUBTYPE(other than ETH)<------->
*
*                                  <---> IFM_SUBTYPE(ETH)<------->
*
*
*          <------------->        <------------->
*                        IFM_OPTIONS()

(msaitoh)

2019-05-17 06:05:07 UTC MAIN commitmail json YAML

apply some __diagused.

(mrg)

2019-05-17 05:27:24 UTC MAIN commitmail json YAML

Don't clear calculated Tx tos value for IPv[46] over IPv6.

(knakahara)

2019-05-17 04:08:54 UTC MAIN commitmail json YAML

Remove extra OSIOCSIFMEDIA. This old ioctl is converted to new one in
doifioctl().

(msaitoh)

2019-05-17 03:34:27 UTC MAIN commitmail json YAML

Implement an aggressive psref leak detector

It is yet another psref leak detector that enables to tell where a leak occurs
while a simpler version that is already committed just tells an occurrence of a
leak.

Investigating of psref leaks is hard because once a leak occurs a percpu list of
psref that tracks references can be corrupted.  A reference to a tracking object
is memorized in the list via an intermediate object (struct psref) that is
normally allocated on a stack of a thread.  Thus, the intermediate object can be
overwritten on a leak resulting in corruption of the list.

The tracker makes a shadow entry to an intermediate object and stores some hints
into it (currently it's a caller address of psref_acquire).  We can detect a
leak by checking the entries on certain points where any references should be
released such as the return point of syscalls and the end of each softint
handler.

The feature is expensive and enabled only if the kernel is built with
PSREF_DEBUG.

Proposed on tech-kern

(ozaki-r)

2019-05-16 23:42:23 UTC MAIN commitmail json YAML

2019-05-16 23:39:37 UTC MAIN commitmail json YAML

switch the default input to line in, to avoid feedback noise on laptops
should probably just mute the input, I need to read the datasheet again...

(macallan)

2019-05-16 20:12:35 UTC MAIN commitmail json YAML

Specify PID file to properly rotate npf log file.

(nakayama)

2019-05-16 20:00:49 UTC MAIN commitmail json YAML

Rename nb{clang,llvm}-tblgen to ${MACHINE_GNU_PLATFORM}-{clang,llvm}-tblgen
since they contain the default target (e.g. x86_64--netbsd).

(nakayama)

2019-05-16 12:42:35 UTC MAIN commitmail json YAML

Prevent Lua from crashing if clear_bindings() is called on a statement
that failed to prepare().

ok mbalmer@

(tpaul)

2019-05-16 10:28:19 UTC MAIN commitmail json YAML

CE, DLCI, LMI, MGCP, PE, PVC, SVC, VPWS

(sevan)

2019-05-16 09:59:37 UTC MAIN commitmail json YAML

Do not remove UUID file when a scanned directory is empty.

pulled from the following upstream change:
https://gitlab.freedesktop.org/fontconfig/fontconfig/commit/5f12f564f8748deaa603adb7a4b8f616b6390ad4

It fixes that a cache file for an empty font directory is created
every time fc-cache is executed.

(nakayama)

2019-05-16 04:26:13 UTC MAIN commitmail json YAML

Revert rev. 1.29. Use current cpuid 7 edx value to print.

(msaitoh)

2019-05-16 02:42:19 UTC MAIN commitmail json YAML

2019-05-16 02:36:30 UTC MAIN commitmail json YAML

Use ci_feat_val[7] instead of directly getting cpuid 7 edx.

(msaitoh)

2019-05-16 01:22:36 UTC MAIN commitmail json YAML

2019-05-15 18:29:21 UTC MAIN commitmail json YAML

fix variable stack allocation for ssp

(christos)

2019-05-15 18:27:51 UTC MAIN commitmail json YAML

2019-05-15 17:35:03 UTC MAIN commitmail json YAML

RB_MD3 now disables SVS.

(maxv)

2019-05-15 17:31:41 UTC MAIN commitmail json YAML

Change the way SVS is disabled. Now you have to pass "boot -3" from the
bootloader. The machdep.svs.enabled sysctl becomes read-only, and just
indicates whether SVS is enabled.

Sent on port-amd64@.

(maxv)

2019-05-15 16:59:10 UTC MAIN commitmail json YAML

From: Tobias Ulmer. Unbreak zfs module build on sparc{,64} by hiding DELAY.
ZFS has a conflicting definition of delay() and tries to hide it by
defining __HIDE_DELAY.

(christos)

2019-05-15 13:49:10 UTC MAIN commitmail json YAML

2019-05-15 13:47:41 UTC MAIN commitmail json YAML

2019-05-15 13:43:45 UTC MAIN commitmail json YAML

2019-05-15 04:42:01 UTC netbsd-8 commitmail json YAML

Fix description for ticktes #1267 and #1268

(martin)

2019-05-15 04:39:52 UTC MAIN commitmail json YAML

NVMM: Expose MD_CLEAR to the guests.

(maxv)

2019-05-15 03:33:41 UTC MAIN commitmail json YAML

Fix build failure when INET6 is disabled. Pointed out by ozaki-r@n.o, thanks.

(knakahara)

2019-05-15 02:59:19 UTC MAIN commitmail json YAML

Get rid of IFNET_LOCK for if_mcast_op to avoid a deadlock

The IFNET_LOCK was added to avoid data races on if_flags for IFF_ALLMULTI.
Unfortunatetly it caused a deadlock instead.  A known scenario causing a
deadlock is to occur the following two operations concurrently: (a) a removal of
an IP adddres assigned to an interface and (b) a manipulation of multicast
groups to the interface.  The resource dependency graph is like this:
  softnet_lock => IFNET_LOCK => psref_target_destroy => softint => softnet_lock

Thanks to the previous commit that avoids data races on if_flags for
IFF_ALLMULTI by another approach, we can remove IFNET_LOCK and defuse the
deadlock.

PR kern/54189

(ozaki-r)

2019-05-15 02:56:48 UTC MAIN commitmail json YAML

Store IFF_ALLMULTI in ec_flags instead of if_flags to avoid data races

IFF_ALLMULTI is set/unset to if_flags via if_mcast_op.  To avoid data races on
if_flags, IFNET_LOCK was added for if_mcast_op.  Unfortunately it produces
a deadlock so we want to remove added IFNET_LOCK by avoiding the data races by
another approach.

This fix introduces ec_flags to struct ethercom and stores IFF_ALLMULTI to it.
ec_flags is protected by ETHER_LOCK and thus IFNET_LOCK is no longer necessary
for if_mcast_op.  Note that the fix is applied only to MP-safe drivers that
the data races matter.

In the kernel, IFF_ALLMULTI is set by a driver and used by the driver itself.
So changing the storing place doesn't break anything.  One exception is
ioctl(SIOCGIFFLAGS); we have to include IFF_ALLMULTI in a result if needed to
export the flag as well as before.

A upcoming commit will remove IFNET_LOCK.

PR kern/54189

(ozaki-r)

2019-05-15 01:24:43 UTC MAIN commitmail json YAML

support RK3328 tsadc:

- add clk_24m, clk_tsadc and pclk_tsadc rk3328 clocks
- rk3328 data<->temp conversion table is is wrong.  the actual values
  seen are 4096 - <expected>, and the linux driver has these values
  in the inverted value directly
- the above means the rk3328 is increasing data for increasing temp,
  and the min/max values are also inverted and swapped
- move auto-period into the rk_data
- rk3328 only has one sensor, deal with this
- rename rk_data_table as rk_data, and also s/rdt/rd/

thanks to jmcneill who helped clean up clocks confusion, and pointed
out the linux driver values matched my own inverted data experience.

(mrg)

2019-05-14 19:24:09 UTC MAIN commitmail json YAML

more powerpc issues

(christos)

2019-05-14 19:07:07 UTC MAIN commitmail json YAML

2019-05-14 18:11:34 UTC MAIN commitmail json YAML

Add snprintb's string for cpuid7 edx bit 10 "MD_CLEAR".

(msaitoh)

2019-05-14 17:21:59 UTC netbsd-8 commitmail json YAML

2019-05-14 17:18:20 UTC netbsd-8 commitmail json YAML

2019-05-14 17:13:49 UTC netbsd-8 commitmail json YAML

2019-05-14 17:12:20 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1269):

sys/arch/amd64/amd64/locore.S: revision 1.181 (adapted)
sys/arch/amd64/amd64/amd64_trap.S: revision 1.47 (adapted)
sys/arch/x86/include/specialreg.h: revision 1.144 (adapted)
sys/arch/amd64/include/frameasm.h: revision 1.43 (adapted)
sys/arch/x86/x86/spectre.c: revision 1.27 (adapted)

Mitigation for INTEL-SA-00233: Microarchitectural Data Sampling (MDS).
It requires a microcode update, now available on the Intel website. The
microcode modifies the behavior of the VERW instruction, and makes it flush
internal CPU buffers. We hotpatch the return-to-userland path to add VERW.

Two sysctls are added:

machdep.mds.mitigated = {0/1} user-settable
machdep.mds.method = {string} constructed by the kernel

The kernel will automatically enable the mitigation if the updated
microcode is present. If the new microcode is not present, the user can
load it via cpuctl, and set machdep.mds.mitigated=1.

(martin)

2019-05-14 16:59:26 UTC MAIN commitmail json YAML

Mitigation for INTEL-SA-00233: Microarchitectural Data Sampling (MDS).

It requires a microcode update, now available on the Intel website. The
microcode modifies the behavior of the VERW instruction, and makes it flush
internal CPU buffers. We hotpatch the return-to-userland path to add VERW.

Two sysctls are added:

machdep.mds.mitigated = {0/1} user-settable
machdep.mds.method = {string} constructed by the kernel

The kernel will automatically enable the mitigation if the updated
microcode is present. If the new microcode is not present, the user can
load it via cpuctl, and set machdep.mds.mitigated=1.

(maxv)

2019-05-14 16:22:09 UTC MAIN commitmail json YAML

Hack around clang powerpc tls_model("initial-exec") pic issue; this is gross.

(christos)

2019-05-14 15:41:23 UTC MAIN commitmail json YAML

clang binaries are so much bigger.

(christos)

2019-05-14 11:44:33 UTC netbsd-8 commitmail json YAML

2019-05-14 11:43:23 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1268):

sys/dev/pci/if_alc.c: revision 1.33
sys/dev/pci/if_alc.c: revision 1.34

Fix a wrong and extra ether_ioctl() call in alc_ioctl(). _IOWR types call
broke ifreq by the first ether_ioct() and the second ether_ioctl() caused
unexpected behavior. One of bug example is that SIOCGIFMEDIA always failed.

This bug was added in if_alc.c rev. 1.16.
XXX pullup-8

-

Add ether_ioctl() call for SIOCSIFADDR and SIOCSIFFLAGS to make behavior
the same as before.

XXX need cleanup.

(martin)

2019-05-14 11:40:42 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1267):

sys/arch/arm/imx/if_enet.c: revision 1.19
sys/dev/pci/if_wm.c: revision 1.634

SIOCS is 'S'et function and the ioctl argument is ifreq.
SIOCG is 'G'et function and the ioctl armument is ifmediareq.

Before this change, SIOCG modify sc->sc_flowflags unexpectedly.

Don't hook SIOCGIFMEDIA becauise this driver uses MII(4) and ether_ioctl has
the hook(if_ethersubr.c rev. 1.160).
real bug because the modification is overriden in ifmedia_ioctl().

This driver might require some additional fixes for SIOCSIFMTU and other
ioctl()s.
XXX pullup-[78].

(martin)

2019-05-14 11:37:13 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1266):

sys/net/if_media.c: revision 1.42 (via patch)

Add missing error check.

(martin)

2019-05-14 11:33:43 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1265):
etc/rc.d/smtoff: revision 1.1
etc/rc.d/smtoff: revision 1.2
distrib/sets/lists/etc/mi: revision 1.258
etc/rc.d/smtoff: revision 1.3
etc/rc.d/smtoff: revision 1.4
etc/defaults/rc.conf: revision 1.148
etc/rc.d/Makefile: revision 1.103
usr.sbin/postinstall/postinstall: revision 1.226
etc/rc.d/Makefile: revision 1.104
etc/mtree/special: revision 1.167
share/man/man5/rc.conf.5: revision 1.180

Add smtoff, an rc.d script that disables Simultaneous Multi-Threading. It
parses the output of cpuctl, and executes "cpuctl offline" for each CPU
that has SmtID!=0.

The default is "smtoff=NO", which means that SMT remains enabled.
Restructure code a little.

Use quoting everywhere possibly useful (always the right way, except
in the few cases where it is wrong...)

Avoid using cut & grep (from /usr/bin) so script could run before /usr
is mounted (pity cpuctl is in /usr/sbin ...).

Use sysctl -n rather than attempting to parse its output.
install rc.d

No change...  Previous log message should have said:
  Install rc.d/smtoff

I should know better!  Don't rely upon the way the shell implements
pipes.  Skip the "error" printf from GetSmtId() as there is no easy
portable way to avoid it occurring (there are complicated ways) - but
we don't need it, there is no logical difference between "error" and ""
so just use the latter (if we get an ID, good, if there is nothing, then
there is none - saying 'error' does not mean anything.)

Remove comment, since there is no parsing anymore.

(martin)

2019-05-14 11:24:33 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #1264):

sys/arch/arm/sunxi/sunxi_sata.c: revision 1.2
(applied to sys/arm/allwinner/awin_ahcisata.c)

Use new magic values from linux for DMACR. While I couldn't measure any
significant difference with my old, slow laptop drive, linux commiter claims
a 3x write performance boost (from 40 to 120MB/s) and 200MB/s read with
a ssd.

(martin)

2019-05-14 09:43:55 UTC MAIN commitmail json YAML

Remove unnecessary checks of IFF_ALLMULTI

IFF_ALLMULTI is changed by only driver itself, so we don't need to check its
change on ec_ifflags_cb.

This is part of PR kern/54189. NFCI.

(ozaki-r)

2019-05-14 07:45:03 UTC MAIN commitmail json YAML

mostly port to rk3328.

- add rk3328 data<->temp table, and adjust code to use this vs rk3399
  table for rk3328.  add support for decrementing data.
- adjust auto period times for rk3328 vs rk3399
- add min/max data values, if data is outside these values mark the
  sensor invalid.
- move init code into cpu specific sections, add rk3328 support

with a rk3328_cru.c update to add clocks, this attaches and reports
garbage values, so for now it's disabled.

(mrg)

2019-05-14 02:53:16 UTC MAIN commitmail json YAML

Add a hack entry for libpthread one section

(maya)

2019-05-13 18:53:10 UTC MAIN commitmail json YAML

Remove comment, since there is no parsing anymore.

(maxv)

2019-05-13 17:55:09 UTC MAIN commitmail json YAML

2019-05-13 17:50:30 UTC MAIN commitmail json YAML

2019-05-13 17:49:05 UTC MAIN commitmail json YAML

On the one thousand and ninth day rump's mainbus was moved from
rumpdev to rumpkern, liberating all rumpnet users from the need to
-lrumpdev -lrumpvfs just because a loopback interface is mandatory.

Rename rumpdev/autoconf.c to rumpkern/rump_autoconf.c to avoid
accidentally picking up e.g. sys/arch/amd64/amd64/autoconf.c through
make's .PATH.
Move rumpdev/MAINBUS.ioconf to rumpkern.

(bad)

2019-05-13 16:55:17 UTC MAIN commitmail json YAML

Use new magic values from linux for DMACR. While I couldn't measure any
significant difference with my old, slow laptop drive, linux commiter claims
a 3x write performance boost (from 40 to 120MB/s) and 200MB/s read with
a ssd.

(bouyer)

2019-05-13 14:29:41 UTC MAIN commitmail json YAML

Don't pass an uinitialized pm_prot to rpcinfo. It expects 0 for local,
so give it 0.

(christos)

2019-05-13 12:42:24 UTC netbsd-8 commitmail json YAML

2019-05-13 12:40:13 UTC netbsd-8 commitmail json YAML

Pull up the following, via patch, requested by msaitoh in ticket #1263:

sys/dev/mii/brgphy.c 1.84
sys/dev/mii/ciphy.c 1.33 via patch
sys/dev/mii/rgephy.c 1.53
sys/arch/arm/imx/if_enet.c 1.18
sys/arch/mips/adm5120/dev/if_admsw.c 1.19-1.20
sys/dev/pci/if_bge.c 1.329
sys/dev/pci/if_bnx.c 1.81
sys/dev/pci/if_et.c 1.21
sys/dev/pci/if_lii.c 1.22
sys/dev/pci/if_msk.c 1.87
sys/dev/pci/if_nfe.c 1.68
sys/dev/pci/if_sk.c 1.95
sys/dev/pci/if_ti.c 1.107
sys/dev/pci/if_txp.c 1.52
sys/dev/pci/if_vge.c 1.69
sys/dev/usb/if_axen.c 1.38
sys/dev/usb/if_aue.c 1.149

Fix a bug that the duplex of manual media setting may be wrong
when the IFM_GMASK bit other than IFM_[FH]DX is set.

(martin)

2019-05-13 09:21:06 UTC MAIN commitmail json YAML

gdb-8.3 out.

Remove BSD bind version.

(wiz)

2019-05-13 09:05:33 UTC netbsd-8 commitmail json YAML

2019-05-13 09:04:38 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by roy in ticket #1262):

sys/netinet6/nd6_nbr.c: revision 1.163

inet6: discard any received NA with a LL address we own

This matches ARP behaviour.

(martin)

2019-05-13 08:50:25 UTC MAIN commitmail json YAML

audio_open:
On full duplex hardware, the flags passed to hw_if->open() is always
(FREAD | FWRITE).  But some devices (e.g. uaudio) check its
capabilities at open(), so unidirection devices like USB speakers
always return EACCES.

Avoid open() failure on such devices by checking the capabilities of
the device and changing the flags passed to hw_if->open().

(nakayama)

2019-05-13 08:38:45 UTC MAIN commitmail json YAML

2019-05-13 08:17:30 UTC MAIN commitmail json YAML

do_sys_mkdir(): pass the requested segment down to do_sys_mkdirat().

(hannken)

2019-05-13 08:16:56 UTC MAIN commitmail json YAML

Walk down to the lowest mount for "fli_alias".

Address PR kern/54195 (null mounts: panic: ...).

(hannken)

2019-05-13 07:54:52 UTC MAIN commitmail json YAML

Bump the version for entry additions to IP_STAT and IP6_STAT

Welcome to 8.99.40

(ozaki-r)

2019-05-13 07:53:56 UTC MAIN commitmail json YAML

sysctl "multiuser" type is CTLTYPE_BOOL, so use bool instead of int.

(nakayama)

2019-05-13 07:48:42 UTC MAIN commitmail json YAML

Show the number of packets dropped by pfil

(ozaki-r)

2019-05-13 07:48:00 UTC MAIN commitmail json YAML

2019-05-13 05:04:17 UTC MAIN commitmail json YAML

Fix a bug that manual setting of 10GBASE-SR or 10GBASE-CX4 didn't work
if IFM_ETH_XTYPE was set. We don't use IFM_ETH_XTYPE macro, so this was not a
real bug.

(msaitoh)

2019-05-13 04:11:04 UTC MAIN commitmail json YAML

audio_hw_probe:
Return error if both play and record probes failed.

Avoid audio is disabled on devices with only play like USB speakers.

(nakayama)

2019-05-13 04:09:35 UTC MAIN commitmail json YAML

audioattach:
Output the cause of the audio device disabled along with the error code.

(nakayama)

2019-05-13 02:03:07 UTC MAIN commitmail json YAML

print the name of the interface that was disabled.

(christos)

2019-05-12 22:42:34 UTC MAIN commitmail json YAML

Modernize the error printing for text relocations by syncing it to the
"more maintained" platforms.

(christos)

2019-05-12 13:47:09 UTC MAIN commitmail json YAML

Use attribute printf.

Helps clang builds. From a.rin.

(maya)

2019-05-12 13:40:20 UTC MAIN commitmail json YAML

Remove unused function following isaki-audio2 merge.

Shows up when doing clang builds. From a.rin.

(maya)

2019-05-12 11:55:47 UTC MAIN commitmail json YAML

I should know better!  Don't rely upon the way the shell implements
pipes.  Skip the "error" printf from GetSmtId() as there is no easy
portable way to avoid it occurring (there are complicated ways) - but
we don't need it, there is no logical difference between "error" and ""
so just use the latter (if we get an ID, good, if there is nothing, then
there is none - saying 'error' does not mean anything.)

(kre)

2019-05-12 09:23:50 UTC netbsd-8 commitmail json YAML

2019-05-12 09:22:52 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1261):

sys/arch/x86/x86/cpu_ucode_intel.c: revision 1.16
sys/arch/x86/x86/cpu_ucode_intel.c: revision 1.17

Invalidate the cache before updating the microcode. Some platforms require
this. Seen in Illumos and FreeBSD.

Clean up, and add sanity checks on the microcode lengths.

(martin)

2019-05-12 09:21:12 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1260):

common/lib/libc/sys/cpuset.c: revision 1.21
usr.sbin/cpuctl/cpuctl.c: revision 1.30

Fix bug, the computation of cpuset_nentries was incorrect, we must do +1
to be able to address the last 32 bits.

On a machine with 80 CPUs, this caused "cpuctl identify >64" to return
garbage.

Check the return value of cpuset_set(), to prevent future surprises.

(martin)

2019-05-12 09:19:07 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #1259):

sys/arch/arm/sunxi/sunxi_emac.c: revision 1.26

Protect ether_multi list

The list can be racy if NET_MPSAFE is enabled and the driver is executed without
KERNEL_LOCK.

Fix PR 54153

(martin)

2019-05-12 02:37:24 UTC MAIN commitmail json YAML

Provide correct validation after curses change.

(blymn)

2019-05-12 02:29:00 UTC MAIN commitmail json YAML

Fix _cursesi_addwchar so that it performs line wrap. SUSv2 says
add_wch line wraps and updates position.  Since wrap is done we are
not past EOL.

(blymn)

2019-05-12 02:19:23 UTC MAIN commitmail json YAML

Add more debug to _wnoutrefresh

(blymn)

2019-05-12 01:50:14 UTC MAIN commitmail json YAML

No change...  Previous log message should have said:

Install rc.d/smtoff

(kre)

2019-05-12 01:45:25 UTC MAIN commitmail json YAML

revert previous.  somehowI failedto see that was already done.

(kre)

2019-05-12 01:33:47 UTC MAIN commitmail json YAML

2019-05-12 00:24:03 UTC MAIN commitmail json YAML

Restructure code a little.

Use quoting everywhere possibly useful (always the right way, except
in the few cases where it is wrong...)

Avoid using cut & grep (from /usr/bin) so script could run before /usr
is mounted (pity cpuctl is in /usr/sbin ...).

Use sysctl -n rather than attempting to parse its output.

(kre)

2019-05-11 19:31:04 UTC MAIN commitmail json YAML

Add smtoff, an rc.d script that disables Simultaneous Multi-Threading. It
parses the output of cpuctl, and executes "cpuctl offline" for each CPU
that has SmtID!=0.

The default is "smtoff=NO", which means that SMT remains enabled.

(maxv)

2019-05-11 18:50:15 UTC MAIN commitmail json YAML

try again to get it working for clang

(christos)

2019-05-11 17:44:16 UTC MAIN commitmail json YAML

2019-05-11 17:21:07 UTC MAIN commitmail json YAML

Undo previous.  Not needed (and file included isn't installed anyway.

(kre)

2019-05-11 13:41:53 UTC MAIN commitmail json YAML

2019-05-11 13:40:26 UTC MAIN commitmail json YAML

2019-05-11 13:04:40 UTC MAIN commitmail json YAML

2019-05-11 12:59:50 UTC MAIN commitmail json YAML

need cpufunc.h for rdmsr

(christos)

2019-05-11 12:58:17 UTC MAIN commitmail json YAML

expose the {rd,wr}msr functions to userland and install the header for
the benefit of cpuctl (fix the build).

(christos)

2019-05-11 12:24:42 UTC MAIN commitmail json YAML

Fix copy&paste error, the function is named rdmsr().

Found by kre@

(mlelstv)

2019-05-11 11:59:22 UTC MAIN commitmail json YAML

Check the return value of cpuset_set(), to prevent future surprises.

(maxv)

2019-05-11 11:53:55 UTC MAIN commitmail json YAML

Fix bug, the computation of cpuset_nentries was incorrect, we must do +1
to be able to address the last 32 bits.

On a machine with 80 CPUs, this caused "cpuctl identify >64" to return
garbage.

(maxv)

2019-05-11 07:44:00 UTC MAIN commitmail json YAML

Replace "VMM" by "emulator", clearer.

(maxv)

2019-05-11 07:40:38 UTC MAIN commitmail json YAML

Sync with reality.

(maxv)

2019-05-11 07:31:57 UTC MAIN commitmail json YAML

Rework the machine configuration interface.

Provide three ranges in the conf space: <libnvmm:0-100>, <MI:100-200> and
<MD:200-...>. Remove nvmm_callbacks_register(), and replace it by the conf
op NVMM_MACH_CONF_CALLBACKS, handled by libnvmm. The callbacks are now
per-machine, and the emulators should now do:

- nvmm_callbacks_register(&cbs);
+ nvmm_machine_configure(&mach, NVMM_MACH_CONF_CALLBACKS, &cbs);

This provides more granularity, for example if the process runs two VMs
and wants different callbacks for each.

(maxv)

2019-05-11 06:50:42 UTC MAIN commitmail json YAML

#define<tab> for consistency

(skrll)

2019-05-11 03:26:43 UTC MAIN commitmail json YAML

Don't use a confusing GCC extension. NFC

(maya)

2019-05-11 02:40:31 UTC MAIN commitmail json YAML

Everyone is using gcc-7 now.

(christos)

2019-05-11 02:39:48 UTC MAIN commitmail json YAML

2019-05-11 02:39:32 UTC MAIN commitmail json YAML

remove the ppc64 long-double-128; the default is 64 now.

(christos)

2019-05-11 02:37:58 UTC MAIN commitmail json YAML

Switch PPC64 long double to 64 bits until the compiler is fixed.
XXX: This changes the ABI of the libraries.

(christos)

2019-05-11 02:34:19 UTC MAIN commitmail json YAML

Don't return the raw audio formats; return the ones after we disabled some
of them because the device does not support them. Fixes panic in virtualbox.

(christos)

2019-05-10 23:21:42 UTC MAIN commitmail json YAML

general overhaul, in no particular order:
- use MIPS_PHYS_TO_KSEG1()
- get rid of duplicated rasops_allocattr() and _mapchar() methods
- use rasops_init()
- support fonts that aren't 8x16
- use fastclear mode for rectangle fills
- don't mess with XMAP9's config register
- initialize all 32 XMAP9 mode registers, just in case
- make newport_fill_rectangle() use x, y, wi, he like everyone else
- use R3G3B2 palette in preparation for alpha font support

(macallan)

2019-05-10 22:54:51 UTC MAIN commitmail json YAML

move the CIDMATCH bits where they belong, now FASTCLEAR mode can actually work

(macallan)

2019-05-10 21:08:26 UTC MAIN commitmail json YAML

Fix typo: PT_GETFOREGS -> PT_GETFPREGS (NFC)

(mgorny)

2019-05-10 18:21:01 UTC MAIN commitmail json YAML

Clean up, and add sanity checks on the microcode lengths.

(maxv)

2019-05-10 18:07:10 UTC MAIN commitmail json YAML

Add PT_SET*REGS tests for mm/xmm registers.

(mgorny)

2019-05-10 17:34:27 UTC MAIN commitmail json YAML

Remove obsolete size asserts.

(mgorny)

2019-05-10 16:43:10 UTC MAIN commitmail json YAML

2019-05-10 16:42:57 UTC MAIN commitmail json YAML

2019-05-10 16:28:00 UTC MAIN commitmail json YAML

Use newly-filled i386 reg structs in PT_GETFPREGS & PT_GETXMMREGS tests.

(mgorny)

2019-05-10 16:27:03 UTC MAIN commitmail json YAML

Fill 'struct fpreg' & 'struct xmmregs' in

The 'struct fpreg' data type used by PT_GETFPREGS, and 'struct xmmregs'
used by PT_GETXMMREGS are currently opaque.  Define them to contain
correct data structs instead, the same way they are defined for amd64.
For 'struct fpreg' this means 'struct save87', and for 'struct xmmregs'
this means 'struct fxsave'.  This makes it more transparent for
consumers how the data is formatted, and allows using it without need
for explicit casts.

Reviewed by <kamil>.

(mgorny)

2019-05-10 16:24:35 UTC MAIN commitmail json YAML

2019-05-10 09:42:46 UTC MAIN commitmail json YAML

Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".

(nakayama)

2019-05-10 09:15:07 UTC MAIN commitmail json YAML

2019-05-10 08:28:50 UTC MAIN commitmail json YAML

Take a lead from sys/dev/gpio/gpio.c:gpio_intr_str and report edge vs
level. etc interrupt type.

From yarl-baudig

(skrll)

2019-05-10 08:24:54 UTC MAIN commitmail json YAML

Use %08x to print ifmedia word (IFMEDIA_DEBUG).

(msaitoh)

2019-05-10 06:53:42 UTC MAIN commitmail json YAML

Remove extra parentheses. No functional change.

(msaitoh)

2019-05-10 06:45:19 UTC MAIN commitmail json YAML

Add missing parentheses for IFQ_CLASSIFY macro's argument.

(msaitoh)

2019-05-10 06:33:14 UTC MAIN commitmail json YAML

Remove extra parenthesis.

(msaitoh)

2019-05-10 06:25:58 UTC MAIN commitmail json YAML

add new INTEL_DRIVER_DATE variable that defaults to 2019, but can
be set to 2014 and the older KMS based driver will be used (which
is the last actual release.)

this fixes some display issues on older systems.  for me, sandy
bridge has minor issues with the new drivrer, but kaby lake really
likes to have the newer driver.

perhaps change default later, but this enables simple testing.

(mrg)

2019-05-10 06:19:54 UTC MAIN commitmail json YAML

add an entry to find upcoming intel-2014 driver.

(mrg)

2019-05-10 05:59:47 UTC MAIN commitmail json YAML

envsys(4): mention ioctl(2) commands left over from Nx 1.5/4.0 experimental API

(cnst)

2019-05-10 05:16:34 UTC MAIN commitmail json YAML

Modify comment to make the data structure clear. No functional change.

(msaitoh)

2019-05-10 02:56:08 UTC MAIN commitmail json YAML

Fix typo. This code is not used yet.

(msaitoh)

2019-05-09 23:34:51 UTC MAIN commitmail json YAML

G/C unused code.
gcc -combine is no longer a thing, so this entire block isn't usable.

(maya)

2019-05-09 20:50:14 UTC MAIN commitmail json YAML

Report TRAP_EXEC (for exec()) to a debugger in the PT_SYSCALL mode

Orignally exec() reporting was disabled in the NetBSD version as there
was no support for fine-grained reporting. Meanwhile PT_SYSCALL was broken
for years and there is no software that depends on this behavior.

There is need to catch exec() events in syscall tracers using ptrace(2).
Instead of adding workarounds of guessing that exec() happened, report the
event directly from the kernel.

All ATF ptrace(2) tests pass.

(kamil)

2019-05-09 18:53:14 UTC MAIN commitmail json YAML

Invalidate the cache before updating the microcode. Some platforms require
this. Seen in Illumos and FreeBSD.

(maxv)

2019-05-09 17:09:51 UTC MAIN commitmail json YAML

sti/cli are not allowed on Xen, we have to clear/set a bit in the
shared page. Revert x86_disable_intr/x86_enable_intr to plain function
calls on XENPV.
While there, clean up unused functions and macros, and change cli()/sti()
macros to x86_disable_intr/x86_enable_intr.
Makes Xen domU boot again
(http://www-soc.lip6.fr/~bouyer/NetBSD-tests/xen/HEAD/)

(bouyer)