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 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

2024-05-10 18:15:35 UTC Now

2018-03-19 16:31:24 UTC MAIN commitmail json YAML

socket: clear error even when peeking

The error has already been reported and it's pointless requiring another
recv(2) call just to clear it.

(roy)

2018-03-19 16:26:26 UTC MAIN commitmail json YAML

socket: report receive buffer overflows

Add soroverflow() which increments the overflow counter, sets so_error
to ENOBUFS and wakes the receive socket up.
Replace all code that manually increments this counter with soroverflow().
Add soroverflow() to raw_input().

This allows userland to detect route(4) overflows so it can re-sync
with the current state.

(roy)

2018-03-19 16:19:17 UTC MAIN commitmail json YAML

Make sunxi_ccu_div_set_rate() work on non-SUNXI_CCU_DIV_TIMES_TWO
clocks.

(bouyer)

2018-03-19 16:18:31 UTC MAIN commitmail json YAML

Add some more A10/A20 clocks definitions; related to display engines.
The video PLLs requires a new clock type, SUNXI_CCU_FRACTIONAL

(bouyer)

2018-03-19 15:43:45 UTC MAIN commitmail json YAML

Use a common routine ubmap() that setup the map registers as needed,
not expecting everything to be below 4M.  This solves the problem
that large kernels cannot be loaded reported on port-vax.

(ragge)

2018-03-19 15:37:56 UTC MAIN commitmail json YAML

Do not use movc3 to copy boot program, it may be larger than 64k.

(ragge)

2018-03-19 13:26:02 UTC MAIN commitmail json YAML

XXX stub it completely for now to make it compile

(martin)

2018-03-19 13:04:01 UTC MAIN commitmail json YAML

XXX: don't reference the global for now so that kernels without ccd build.

(christos)

2018-03-19 10:31:56 UTC MAIN commitmail json YAML

Nowadays we can create new kernel threads late after boot, so if we are
unable to find physically continous pages for their uarea, just allocate
them via uvm_km_alloc(), that is: make cpu_uarea_alloc() fail instead
of panic. cpu_uarea_free() already deals with this.

Should fix PR port-alpha/53077.

Discussed with maxv and mrg.

(martin)

2018-03-19 09:06:21 UTC MAIN commitmail json YAML

2018-03-19 08:57:57 UTC MAIN commitmail json YAML

sunxi: mmc: increase max number of descriptors available for DMA transfers

patch from jmcneill@

(ryo)

2018-03-19 08:41:22 UTC MAIN commitmail json YAML

ddb: rename "show lockstat" to "show lockstats" to avoid conflicting with lockstat(8)

Requested by mrg@

(ozaki-r)

2018-03-19 03:14:08 UTC MAIN commitmail json YAML

Pull out a sleepable function (in6_selectsrc) from a pserialize read section

(ozaki-r)

2018-03-19 03:12:09 UTC MAIN commitmail json YAML

s/been been/been/ in comment.

(msaitoh)

2018-03-19 03:11:39 UTC MAIN commitmail json YAML

s/copy copy/copy/ in comment.

(msaitoh)

2018-03-19 00:21:50 UTC MAIN commitmail json YAML

remove another error decl.

(christos)

2018-03-18 23:34:25 UTC pgoyette-compat commitmail json YAML

Merge changes from HEAD into ccd_60.c

For all of the individual xxx_60_{init,fini} routines, don't force
them to artificially return a status;  just make them void.  This
simplifies the compat_60_{init,fini} handling of errors that remain.

(pgoyette)

2018-03-18 23:26:39 UTC MAIN commitmail json YAML

2018-03-18 23:22:15 UTC MAIN commitmail json YAML

- use the conditional from the header file
- fix compilation

(christos)

2018-03-18 22:49:26 UTC pgoyette-compat commitmail json YAML

2018-03-18 22:48:00 UTC MAIN commitmail json YAML

Declare 'error' if needed

(pgoyette)

2018-03-18 21:41:31 UTC pgoyette-compat commitmail json YAML

2018-03-18 20:33:52 UTC MAIN commitmail json YAML

2018-03-18 15:42:37 UTC MAIN commitmail json YAML

remove extra function.

(christos)

2018-03-18 15:32:48 UTC MAIN commitmail json YAML

- Convert sb_lowat to unsigned for consistency. There are no negative value
  uses
- Check for overflow as mentioned in the comment
- Sprinkle const

(christos)

2018-03-18 13:18:39 UTC MAIN commitmail json YAML

stsrt with an alignment of 1 (which means no alignment). From alnsn

(christos)

2018-03-18 12:07:00 UTC pgoyette-compat commitmail json YAML

2018-03-18 11:40:41 UTC MAIN commitmail json YAML

2018-03-18 11:33:58 UTC MAIN commitmail json YAML

2018-03-18 11:22:59 UTC netbsd-8 commitmail json YAML

2018-03-18 11:21:47 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #643):
usr.sbin/sysinst/arch/sgimips/md.c: revision 1.4
Official builds now append a timestamp to the kernel config name, so we
can no longer rely on matching an exact name like "(INSTALL32_IP3x)".
Strip the trailing ) from the version strings checked so sysinst will
install the correct bootloader and kernel again.

(martin)

2018-03-18 11:08:04 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #642):
sys/arch/sgimips/dev/crmfb.c: revision 1.45
Add support for overriding the video mode by setting an ARCS environment
variable.
If the "crmfb_mode" environment variable is set, treat it as a mode
string in the form WIDTHxHEIGHT[@REFRESH] and generate monitor timings
using the VESA GTF formula. If set, this overrides the EDID preferred
mode.

(martin)

2018-03-18 11:05:27 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jdolecek in ticket #641):
sys/dev/ic/nvme.c: revision 1.34
sys/dev/ic/nvme.c: revision 1.35
sys/dev/ic/nvme.c: revision 1.36
sys/dev/ic/nvme.c: revision 1.37
sys/dev/ic/ld_nvme.c: revision 1.19
sys/dev/ic/nvmevar.h: revision 1.15

refactor the locking code around DIOCGCACHE handling to be reusable
for other infrequent commands,it uses single condvar for simplicity,
and uses it both when waiting for ccb or command completion - this
is fine, since usually there will be just one such command qeueued anyway
use this to finally properly implement DIOCCACHESYNC - return only after
the command is confirmed as completed by the controller.

switch handling of passthrough commands to use queue, instead of polling
should fix PR kern/53059 by Frank Kardel

fix passthrough command usage also in nvme_get_number_of_queues(), fixes
memory corruption and possible panic on boot

also remove now duplicate nvme_ccb_put() call from
nvme_get_number_of_queues()

(martin)

2018-03-18 11:01:00 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #640):
external/bsd/mdocml/include/config.h: revision 1.4
Disable wchar_t support since our C library does not treat wchar_t
as UCS-4 in the case of non-UTF-8 locales.
This feature was controlled by USE_WCHAR and disabled on NetBSD 7.

(martin)

2018-03-18 10:57:02 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by tih in ticket #639):
sys/kern/uipc_socket.c: revision 1.258
sys/kern/uipc_socket.c: revision 1.259
sys/netinet/ip_input.c: revision 1.364 (via patch)
sys/netinet/ip_output.c: revision 1.289
sys/netinet/in.h: revision 1.102
sys/netinet/in_pcb.c: revision 1.181
share/man/man9/sockopt.9: revision 1.11
sys/netinet/in_pcb.h: revision 1.65
sys/sys/socketvar.h: revision 1.146
sys/kern/uipc_syscalls.c: revision 1.189
sys/netinet/ip_output.c: revision 1.290
share/man/man4/ip.4: revision 1.41
share/man/man4/ip.4: revision 1.42
sys/kern/uipc_syscalls.c: revision 1.190

pass valsize for getsockopt like we do for setsockopt
make sure that we have enough space, don't require the exact size
(Tom Ivar Helbekkmo)

1) "#define ipi_spec_dst ipi_addr" in <netinet/in.h>
2) Change the IP_RECVPKTINFO option to control the generation of
  IP_PKTINFO control messages, the way it's done in Solaris.
3) Remove the superfluous IP_RECVPKTINFO control message.
4) Change the IP_PKTINFO option to do different things depending on
  the parameter it's supplied with:
  - If it's sizeof(int), assume it's being used as in Linux:
    - If it's non-zero, turn on the IP_RECVPKTINFO option.
    - If it's zero, turn off the IP_RECVPKTINFO option.
  - If it's sizeof(struct in_pktinfo), assume it's being used as in
    Solaris, to set a default for the source interface and/or
    source address for outgoing packets on the socket.
5) Return what Linux or Solaris compatible code expects, depending
  on data size, and just added a fallback to a Linux (and current NetBSD)
  compatible value if the size is unknown (as it is now), or,
  in the future, if the calling application specifies a receiving
  buffer that doesn't match either data item.

From: Tom Ivar Helbekkmo

new sentence-new line

Remove comment now that the getsockopt code passes the size.

Add a new sockopt member to keep track of the actual size of the option
that should be returned to the caller in getsockopt(2).
(Tom Ivar Helbekkmo)

(martin)

2018-03-18 10:54:54 UTC MAIN commitmail json YAML

Fix spelling error and boot block naming.
This man page needs a major update.

(ragge)

2018-03-18 10:20:38 UTC netbsd-8 commitmail json YAML

Ammend ticket #608 for additional changes

(martin)

2018-03-18 10:19:33 UTC netbsd-8 commitmail json YAML

Additionally pull up r1.5 for ticket #608:

VAX doesn't have the test cases, so stub the body as well.

(martin)

2018-03-18 09:00:56 UTC pgoyette-compat commitmail json YAML

Clean-up for kern_cpu_60 code.

Also, although not strictly necessary, include the kern_sa_60 stuff in
the compat_60 module, for completeness.

Still need to deal with some tty code and the ccd driver to finish off
the compat_60 module.

(pgoyette)

2018-03-18 04:10:39 UTC MAIN commitmail json YAML

include compat/sys/cpuio.h and multiple include protection.

(christos)

2018-03-18 02:16:21 UTC MAIN commitmail json YAML

Turn KASSERTS that check alignment which are user triggerable into errors.
From alnsn

(christos)

2018-03-18 02:05:21 UTC pgoyette-compat commitmail json YAML

2018-03-18 01:17:29 UTC pgoyette-compat commitmail json YAML

2018-03-18 00:51:46 UTC MAIN commitmail json YAML

2018-03-18 00:35:26 UTC pgoyette-compat commitmail json YAML

2018-03-18 00:17:18 UTC MAIN commitmail json YAML

2018-03-17 23:54:33 UTC pgoyette-compat commitmail json YAML

Add copyright, protect against double-inclusion

(pgoyette)

2018-03-17 22:27:04 UTC MAIN commitmail json YAML

Official builds now append a timestamp to the kernel config name, so we
can no longer rely on matching an exact name like "(INSTALL32_IP3x)".

Strip the trailing ) from the version strings checked so sysinst will
install the correct bootloader and kernel again.

(jmcneill)

2018-03-17 21:37:53 UTC pgoyette-compat commitmail json YAML

2018-03-17 20:03:01 UTC MAIN commitmail json YAML

2018-03-17 20:02:32 UTC MAIN commitmail json YAML

dedup and handle XEN here.

(christos)

2018-03-17 19:37:49 UTC MAIN commitmail json YAML

2018-03-17 19:37:11 UTC MAIN commitmail json YAML

add LAN78xx family (Raspberry Pi 3B+) entries - PR kern/53105

(jdolecek)

2018-03-17 19:03:25 UTC MAIN commitmail json YAML

move the compat code in compat.

(christos)

2018-03-17 19:00:23 UTC MAIN commitmail json YAML

2018-03-17 18:34:09 UTC MAIN commitmail json YAML

2018-03-17 18:22:23 UTC MAIN commitmail json YAML

sync with x86; the version code could be merged.

(christos)

2018-03-17 17:12:39 UTC MAIN commitmail json YAML

2018-03-17 15:56:32 UTC MAIN commitmail json YAML

2018-03-17 13:14:27 UTC MAIN commitmail json YAML

Add support for overriding the video mode by setting an ARCS environment
variable.

If the "crmfb_mode" environment variable is set, treat it as a mode
string in the form WIDTHxHEIGHT[@REFRESH] and generate monitor timings
using the VESA GTF formula. If set, this overrides the EDID preferred
mode.

(jmcneill)

2018-03-17 11:32:15 UTC netbsd-8 commitmail json YAML

2018-03-17 11:26:44 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by tih in ticket #638):
sys/net/if_tun.c: revision 1.143

Add packet filtering to tun(4) interfaces.

Calls to pfil_run_hooks() were missing in if_tun.c.  This meant that
filtering configuration could be added to e.g. /etc/npf.conf, but
would be ignored, because the filter never saw the packets.  This
change adds the required calls.

While here, correct the return value from tun_output(): it's been
returning 0 regardless of any error condition present, but will now
correctly propagate such information upward.

Thanks to maxv for guidance!
OK: christos, martin

(martin)

2018-03-17 11:23:18 UTC netbsd-8 commitmail json YAML

Pull up the following revisions, requested by maxv in ticket #637:

sys/arch/amd64/amd64/process_machdep.c 1.33,1.34,1.35 (patch)
sys/arch/amd64/include/types.h 1.55 (patch)
sys/arch/x86/x86/vm_machdep.c 1.33 (patch)

- Reduce the number of places where segment register faults can
  occur.
- Remove __HAVE_CPU_UAREA_ROUTINES.

(martin)

2018-03-17 11:19:27 UTC netbsd-8 commitmail json YAML

Pull up the following revision, requested by maxv as part of ticket #637:

sys/kern/kern_exec.c 1.456

Fix off-by-one, we don't want the entry point to equal the maximum
address.

(martin)

2018-03-17 11:07:26 UTC MAIN commitmail json YAML

2018-03-17 11:06:48 UTC MAIN commitmail json YAML

Disable wchar_t support since our C library does not treat wchar_t
as UCS-4 in the case of non-UTF-8 locales.

This feature was controlled by USE_WCHAR and disabled on NetBSD 7.

(nakayama)

2018-03-17 10:42:24 UTC MAIN commitmail json YAML

Set the scopes before calling icmp6_error(). This fixes a bug similar to
the one I fixed in rev1.17: since the scopes were not set the packet was
never actually sent.

Tested with wireshark, now the ICMPv6 reply is correctly sent, as
expected.

(maxv)

2018-03-17 10:21:09 UTC MAIN commitmail json YAML

Fix the IPv6 payload computation in npf_tcpsaw. It was incorrect, and this
caused the "return-rst" rules to send back an RST with the wrong ACK when
the received SYN had an IPv6 option.

(maxv)

2018-03-17 09:45:44 UTC MAIN commitmail json YAML

also remove now duplicate nvme_ccb_put() call from nvme_get_number_of_queues()

(jdolecek)

2018-03-17 09:36:32 UTC MAIN commitmail json YAML

fix passthrough command usage also in nvme_get_number_of_queues(), fixes
memory corruption and possible panic on boot

PR kern/53059

(jdolecek)

2018-03-17 08:11:18 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jdolecek in ticket #636):
sys/dev/ic/nvme.c: revision 1.33
sys/dev/ic/nvmevar.h: revision 1.14
stop using q_nccbs_avail for deciding whether there are available ccbs;
no need to maintain a counter _and_ q_ccb_list
this fixes deadlock when all ccbs happen to be taken before completion
interrupt - nvme_q_complete() increased q_nccbs_avail only after
processing all the completed commands, by then there was nothing
left to actually kick the disk queue again into action
this also fixes ccb leak on command errors e.g. with bus_dmamem_alloc()
or bus_dmamel_load() - q_nccbs_avail was never decreased on the error path
fixes PR kern/52769 by Martin Husemann, thanks to Paul Goyette
for testing

(martin)

2018-03-17 07:31:36 UTC MAIN commitmail json YAML

binutils-2.30 out

(wiz)

2018-03-17 06:50:56 UTC pgoyette-compat commitmail json YAML

2018-03-17 06:49:57 UTC pgoyette-compat commitmail json YAML

2018-03-17 04:16:09 UTC MAIN commitmail json YAML

2018-03-17 02:56:36 UTC pgoyette-compat commitmail json YAML

Use two different compat stubs since they have different prototypes.

(pgoyette)

2018-03-17 01:53:06 UTC MAIN commitmail json YAML

Drop "show or set the limit on" legalese from the description of each
and every option to ulimit built-in.  The show-or-set text is already
supplied *both* before and after the list.  Pedantically repeating it
for each option just adds a lot of visual clutter that gets in the way
of actually using this fragment of the manual page as a quick
reference.

(uwe)

2018-03-17 01:40:28 UTC MAIN commitmail json YAML

Tweak "ulimit" synopsis.

(uwe)

2018-03-17 01:32:42 UTC MAIN commitmail json YAML

Cleanup markup in the "Command Line Editing" section.

(uwe)

2018-03-17 01:03:08 UTC MAIN commitmail json YAML

Cleanup markup in the "Job Control" section.

(uwe)

2018-03-17 00:58:01 UTC pgoyette-compat commitmail json YAML

2018-03-17 00:48:20 UTC pgoyette-compat commitmail json YAML

2018-03-17 00:44:38 UTC pgoyette-compat commitmail json YAML

Make all the compat_xx_{init,fini} routines return an int, whether or
not they currently need it.

(pgoyette)

2018-03-17 00:42:31 UTC pgoyette-compat commitmail json YAML

2018-03-17 00:41:33 UTC pgoyette-compat commitmail json YAML

Don't try to include opt_*.h files if we're not being built as part
of a kernel (these files only exist for kernel builds).

Don't compile non-compat code if we're not building a module.  (This
file is built for both built-in kernel ucode support and for compat
support.)

(pgoyette)

2018-03-17 00:30:50 UTC MAIN commitmail json YAML

CID/1427732: Don't dereference NULL execname if there is no emul_arg.
(there always is one in our emulations) from alnsn@

(christos)

2018-03-17 00:28:03 UTC MAIN commitmail json YAML

switch handling of passthrough commands to use queue, instead of polling

should fix PR kern/53059 by Frank Kardel

(jdolecek)

2018-03-17 00:11:13 UTC pgoyette-compat commitmail json YAML

Declare the function pointers as external

(pgoyette)

2018-03-17 00:03:26 UTC MAIN commitmail json YAML

Use .Dv, not .Ev, to refer to LINENO, it's not an environment variable.

(uwe)

2018-03-16 23:56:13 UTC MAIN commitmail json YAML

Default values of PS1 and friends have only single space.  Use .Li to
typeset them to make that space more visible in PostScript output.

(uwe)

2018-03-16 23:36:13 UTC MAIN commitmail json YAML

Use .Bd -literal for code example.

(uwe)

2018-03-16 23:31:19 UTC MAIN commitmail json YAML

refactor the locking code around DIOCGCACHE handling to be reusable
for other infrequent commands

it uses single condvar for simplicity, and uses it both when waiting
for ccb or command completion - this is fine, since usually there
will be just one such command qeueued anyway

use this to finally properly implement DIOCCACHESYNC - return only after
the command is confirmed as completed by the controller

(jdolecek)

2018-03-16 22:15:07 UTC MAIN commitmail json YAML

special-case bus 0, now we find AGP devices on G5

(macallan)

2018-03-16 22:11:53 UTC MAIN commitmail json YAML

implement fan control, get calibration data from EEPROM via uni_n

(macallan)

2018-03-16 22:10:31 UTC MAIN commitmail json YAML

get EEPROM data from uni_n instead of poking around in OF

(macallan)

2018-03-16 22:08:53 UTC MAIN commitmail json YAML

gather per-CPU EEPROM contents if we have them

(macallan)

2018-03-16 18:49:18 UTC MAIN commitmail json YAML

stop using q_nccbs_avail for deciding whether there are available ccbs;
no need to maintain a counter _and_ q_ccb_list

this fixes deadlock when all ccbs happen to be taken before completion
interrupt - nvme_q_complete() increased q_nccbs_avail only after
processing all the completed commands, by then there was nothing
left to actually kick the disk queue again into action

this also fixes ccb leak on command errors e.g. with bus_dmamem_alloc()
or bus_dmamel_load() - q_nccbs_avail was never decreased on the error path

fixes PR kern/52769 by Martin Husemann, thanks to Paul Goyette
for testing

(jdolecek)

2018-03-16 17:56:33 UTC MAIN commitmail json YAML

2018-03-16 17:35:13 UTC MAIN commitmail json YAML

remove timestamping diff that should have not been committed.

(christos)

2018-03-16 17:25:04 UTC MAIN commitmail json YAML

PR/53103: Timo Buhrmester: linux emulation of sendto(2) broken

The sockargs refactoring broke it, because sockargs only works with a user
address. Added an argument to sockargs to indicate where the address is
coming from. Welcome to 8.99.14.

(christos)

2018-03-16 17:12:05 UTC MAIN commitmail json YAML

Add packet filtering to tun(4) interfaces.

Calls to pfil_run_hooks() were missing in if_tun.c.  This meant that
filtering configuration could be added to e.g. /etc/npf.conf, but
would be ignored, because the filter never saw the packets.  This
change adds the required calls.

While here, correct the return value from tun_output(): it's been
returning 0 regardless of any error condition present, but will now
correctly propagate such information upward.

Thanks to maxv for guidance!

OK: christos, martin

(tih)

2018-03-16 17:00:35 UTC MAIN commitmail json YAML

Fix the handling of the state returned from pfil_run_hooks().

pfil_run_hooks() invokes any registered packet filters on the packet
being handled.  It may return a (non-zero) errno, indicating that a
filter has decided that the packet should be discarded, and has freed
the mbuf.  While a non-error (0) return usually means that the packet
should be processed normally, a filter may still free the mbuf if the
packet is a fragment, and the filter is holding it for reassembly and
future evaluation.  Therefore, there must be separate tests for the
return value and for a possible discarded packet.  (See pfil(9).)

OK: christos, martin

(tih)

2018-03-16 13:19:38 UTC netbsd-8 commitmail json YAML

2018-03-16 13:17:56 UTC netbsd-8 commitmail json YAML

Pull up the following revisions (via patch), requested by maxv in #635:

sys/arch/amd64/amd64/gdt.c 1.39-1.45 (patch)
sys/arch/amd64/amd64/amd64/machdep.c 1.284,1.287,1.288 (patch)
sys/arch/amd64/amd64/include/param.h 1.23 (patch)
sys/arch/amd64/include/types.h 1.53 (patch)
sys/arch/x86/include/cpu.h 1.87 (patch)
sys/arch/x86/include/pmap.h 1.73,1.74 (patch)
sys/arch/x86/x86/cpu.c 1.142 (patch)
sys/arch/x86/x86/intr.c 1.117 (partial),1.120 (patch)
sys/arch/x86/x86/pmap.c 1.276 (patch)

Initialize ist0 in cpu_init_tss.
Backport __HAVE_PCPU_AREA.

(martin)

2018-03-16 13:08:14 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #634):
sys/arch/x86/x86/procfs_machdep.c: revision 1.22
- Add AMD CPUID leaf 0x80000008 ebx's xsaveerptr, ibpb, ibrs, stibp.
- Add Intel CPUID leaf 7 ebx's umip, avx512_vbmi2, gfni, vaes, vpclmulqdq,
  avx512_vnni and avx512_bitalg.
- Add Intel CPUID leaf 7 edx's avx512_4vnniw, avx512_4fmaps and
  arch_capabilities.

(martin)

2018-03-16 13:05:32 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #633):
sys/arch/x86/include/specialreg.h: revision 1.107
sys/arch/x86/include/specialreg.h: revision 1.108
sys/arch/x86/include/specialreg.h: revision 1.109
sys/arch/x86/include/cacheinfo.h: revision 1.23
sys/arch/x86/include/specialreg.h: revision 1.110
sys/arch/x86/include/specialreg.h: revision 1.111
sys/arch/x86/include/specialreg.h: revision 1.112
sys/arch/x86/include/specialreg.h: revision 1.113
sys/arch/x86/include/specialreg.h: revision 1.114
usr.sbin/cpuctl/arch/i386.c: revision 1.79
sys/arch/x86/x86/identcpu.c: revision 1.70
sys/arch/x86/include/specialreg.h: revision 1.106

  Add comment.

  Add Intel cpuid 7 %edx IBRS(IBPB Speculation Control) and
STIBP(STIBP Speculation Control) from OpenBSD.

  Print Intel cpuid 7 %edx.

Example output of cpuctl -v identify 0:
+cpu0: 00000007: 00000000 000027ab 00000000 0c000000
(snip)
+cpu0: SEF edx 0xc000000<IBRS,STIBP>

fix swapped comments for EFER LME and LMA

- Add Intel cpuid 7 %edx bit 29 IA32_ARCH_CAPABILITIES supported bit.
- Add comment.
  Add MSR_IA32_ARCH_CAPABILITIES definition.

  Add IA32_SPEC_CTRL MSR and IA32_PRED_CMD MSR.

Add Intel Deterministic Address Translation Parameter Leaf(0x18) definitions.

  Sort entries. No functional change.

s/CLFUSH/CLFLUSH/
No functional change.

(martin)

2018-03-16 12:48:54 UTC MAIN commitmail json YAML

Remove ipkdb from i386. Also remove unused references in amd64.

I already talked about doing that six months ago on port-i386@. Back then
it was as general cleanup, but now, with SVS etc, we do actually have
good reasons for simplifying the entry points.

Ok kamil@. (christos@ was in the conversation too)

(maxv)

2018-03-16 12:21:50 UTC MAIN commitmail json YAML

Remove the prototypes for cpu_uarea_*, I removed these functions two
minutes ago.

(maxv)

2018-03-16 12:19:35 UTC MAIN commitmail json YAML

Remove the __HAVE_CPU_UAREA_ROUTINES code from x86.

It was available only in amd64, and I disabled it a few months ago in
order to support SVS. Regardless of SVS this option was questionable,
since it made stack overflows more difficult to detect.

(maxv)

2018-03-16 12:10:16 UTC MAIN commitmail json YAML

fix compile error with options BOOT_DUMP

(ryo)

2018-03-16 12:06:18 UTC MAIN commitmail json YAML

Markup fixes (partly from uwe@) and change some tabs to spaces, they
seem to work better...

(kre)

2018-03-16 11:53:57 UTC MAIN commitmail json YAML

Restore some (*roff) comments deleted in previous (partially unshave
the yak) for which the purpose was misunderstood.  But trim one more hair.

(kre)

2018-03-16 11:52:54 UTC pgoyette-compat commitmail json YAML

2018-03-16 11:19:24 UTC MAIN commitmail json YAML

Give the yak a quick trim and shave, and make one or two minor
wording changes (which are, hopefully, improvements).

(kre)

2018-03-16 10:42:20 UTC MAIN commitmail json YAML

Improve wording. Fix a Cm argument.

(wiz)

2018-03-16 09:29:24 UTC MAIN commitmail json YAML

remove obsolete ovbcopy().  it may be the very slightly bit
faster for larger copies, but slower for smaller ones.
i don't see any major benefit in keeping this code.

this is the final ovbcopy() reference in src.  you're welcome :-)

(mrg)

2018-03-16 08:48:34 UTC MAIN commitmail json YAML

Rename "handle_" -> "Xhandle_", and add the function names (introduced by
SVS) in db_machdep.c.

Should fix the DDB part of PR/53060.

(maxv)

2018-03-16 08:40:26 UTC MAIN commitmail json YAML

2018-03-16 08:40:06 UTC MAIN commitmail json YAML

Intel 0x15c4 is SFI based and 0x15ce is KR based.

(msaitoh)

2018-03-16 08:21:56 UTC MAIN commitmail json YAML

Add one more page for the stack, to compensate for the fact that SVS's
stack switching mechanism consumes approximately one page.

(maxv)

2018-03-16 08:21:45 UTC MAIN commitmail json YAML

Get rid of a redundant output

(ozaki-r)

2018-03-16 08:10:27 UTC pgoyette-compat commitmail json YAML

2018-03-16 07:56:50 UTC MAIN commitmail json YAML

2018-03-16 07:54:08 UTC MAIN commitmail json YAML

- Check offset correctly in ixgbe_get_oem_prod_version(). Note that this
  function is not used.
- Set PHY correctly in ixgbe_setup_mac_link_sfp_x550a() if a device is a
  C3000 KR SFP+.

(msaitoh)

2018-03-16 04:48:19 UTC MAIN commitmail json YAML

x86: avoid accessing invalid addresses in ddb like arm32

This avoids that a command stops in the middle of an execution if
a fault occurs due to an access to an invalid address.

(ozaki-r)

2018-03-16 04:45:20 UTC MAIN commitmail json YAML

Don't pass a unset address to lockdebug_lock_print

(ozaki-r)

2018-03-16 04:44:51 UTC MAIN commitmail json YAML

Add a new command, show all locks, which shows information of active locks

The command shows information of all active (i.e., being held) locks that are
tracked through either of LWPs or CPUs by the LOCKDEBUG facility.  The /t
modifier additionally shows a backtrace for each LWP additionally.  This
feature is useful for debugging especially to analyze deadlocks.

The command is useful only if LOCKDEBUG is enabled.

(ozaki-r)

2018-03-16 04:43:38 UTC MAIN commitmail json YAML

Add a new command, show lockstat, which shows statistics of locks

Currently the command shows the number of allocated locks.

The command is useful only if LOCKDEBUG is enabled.

(ozaki-r)

2018-03-16 04:37:55 UTC MAIN commitmail json YAML

Add a new command, show lockstat, which shows statistics of locks

Currently the command shows the number of allocated locks.

The command is useful only if LOCKDEBUG is enabled.

(ozaki-r)

2018-03-16 03:19:38 UTC MAIN commitmail json YAML

Forgot the pseudo devices in the previous commit.

(sevan)

2018-03-16 02:55:20 UTC pgoyette-compat commitmail json YAML

Formatting only - no functional change

(pgoyette)

2018-03-16 02:38:40 UTC pgoyette-compat commitmail json YAML

Ooops - don't use SUBDIR= after the SUBDIR+= lines!

(pgoyette)

2018-03-16 02:35:56 UTC MAIN commitmail json YAML

Add the default locations firmload is set to search for firmaware files.

(sevan)

2018-03-16 01:58:42 UTC MAIN commitmail json YAML

2018-03-16 01:49:15 UTC MAIN commitmail json YAML

Add 3Com Wireless Bluetooth PC Card (version 3.0) 3CRWB6096B

(sevan)

2018-03-16 01:33:24 UTC pgoyette-compat commitmail json YAML

Add note/reminder to deal with setting of CPU_UCODE option based on
machine architecture.  It's needed for i386, amd64, and XEN3_DOM0
(but _not_ needed for XEN3_DOMU).

(pgoyette)

2018-03-16 01:20:20 UTC pgoyette-compat commitmail json YAML

For now, disable the compat_60 module

(pgoyette)

2018-03-16 01:16:29 UTC pgoyette-compat commitmail json YAML

2018-03-16 01:16:28 UTC MAIN commitmail json YAML

macppc Bluetooth

(sevan)

2018-03-16 01:12:46 UTC MAIN commitmail json YAML

Add bluetooth support by default. most hardware G4 onwards (e.g aluminium
PowerBooks) have Bluetooth installed as standard.

(sevan)

2018-03-16 00:56:28 UTC MAIN commitmail json YAML

2018-03-16 00:38:17 UTC pgoyette-compat commitmail json YAML

2018-03-16 00:35:40 UTC pgoyette-compat commitmail json YAML

Revert changes for the scheduler-activation syscalls.  It's not
needed, as the syscalls are already marked ENOSYS if these sys-calls
are not built-in (ie, option COMPAT_60 is not specified;  if they
are built-in, the stubs in kern_sa_60.c still return ENOSYS, so no
change.

(pgoyette)

2018-03-15 23:57:18 UTC MAIN commitmail json YAML

Provide a default case also when building imc as builtin.

Fixes ALL kernel build. ok pgoyette.

(maya)

2018-03-15 23:34:53 UTC pgoyette-compat commitmail json YAML

Update alias list for included modules for compat_60

(pgoyette)

2018-03-15 23:32:35 UTC pgoyette-compat commitmail json YAML

The big all-inclusive compat module still needs to initialize the
compat_70 stuff.

(pgoyette)

2018-03-15 23:23:36 UTC pgoyette-compat commitmail json YAML

2018-03-15 23:14:21 UTC pgoyette-compat commitmail json YAML

Remove some unnecessary #includes

(pgoyette)

2018-03-15 23:07:57 UTC pgoyette-compat commitmail json YAML

2018-03-15 23:04:48 UTC pgoyette-compat commitmail json YAML

Update the compat_60 entries to reference the compat_60 module.

While here, allow the scheduler-activation syscalls to autoload the
compat_60 module.

(pgoyette)

2018-03-15 22:46:22 UTC pgoyette-compat commitmail json YAML

Add alias module name 'compat_70' since the full compat module includes
the entire compat_70 module.

(pgoyette)

2018-03-15 18:40:16 UTC MAIN commitmail json YAML

use the OpenSSL version of des_modes.7 since it is newer.

(christos)

2018-03-15 13:44:45 UTC MAIN commitmail json YAML

Don't barf if the ctf tools are not installed.
[perhaps warn?]

(christos)

2018-03-15 11:57:14 UTC pgoyette-compat commitmail json YAML

Typo in comment - no functional change, no version bump

(pgoyette)

2018-03-15 11:28:24 UTC netbsd-8 commitmail json YAML

2018-03-15 11:27:25 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #632):
sys/netinet6/in6_gif.c: revision 1.91
Fix error checking in in6_gif_ctlinput().
if_gif.c:r1.133 introduces gif_update_variant() which ensure ifp->if_flags
is set IFF_RUNNING when gif_softc->gif_var->gv_{psrc,pdst} are not null.
So, in6_gif_ctlinput() is not required IFF_RUNNING checking. In contrast,
it is required gv_{psrc,pdst} NULL checking.

(bouyer)

2018-03-15 11:24:46 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #631):
tests/lib/libc/locale/t_sprintf.c: revision 1.4
tests/lib/libc/locale/t_sprintf.c: revision 1.5
tests/lib/libc/locale/t_sprintf.c: revision 1.6
tests/lib/libc/locale/t_sprintf.c: revision 1.7
Add some diagnostics to the strto test, so I can see why this
fails on i386 (on qemu) - will probably keep them when done.
When comparing doubles (any floating point values) which have been
computed using different methods, don't expect to achieve identical
results (here, one constant is perhaps converted to binary from a string by
a cross compiler, the other is converted at run time).  Allow them to
have a small difference (for now, small is < 1e-7 - the constant is ~ 1e5,
so this is 12 orders of magnitude less) before failing (and include the
actual difference in the error message if it does fail.)
Revert 1.4 (perhaps temporarily) and add even more diagnostics to those
added in 1.3 to see if it is possible to determine why the strict equality
test fails on i386, yet succeeds elsewhere.
Since the C standard allows for intermediate floating results to contain
more precision bits than the data type expects, but (kind of obviously)
does not allow such values to be stored in memory, expecting the value
returned from strtod() (an intermediate result) to be identical (that is,
equal) to a stored value is incorrect.
So instead go back to checking that the two numbers are very very close.
See comments added to the test for more explanation.

(bouyer)

2018-03-15 11:17:55 UTC pgoyette-compat commitmail json YAML

2018-03-15 10:03:04 UTC pgoyette-compat commitmail json YAML

Typo - for aliases, the REQUIRES column contains the real _module_ name,
not the real alias name.

(pgoyette)

2018-03-15 10:00:47 UTC pgoyette-compat commitmail json YAML

Spell the macro name correctly:  MODULE_WITH_ALIASES vs MODULE_WITH_ALIAS

(pgoyette)

2018-03-15 09:56:35 UTC netbsd-8 commitmail json YAML

2018-03-15 09:55:23 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #608):
tests/lib/libc/locale/t_sprintf.c: revision 1.3
tests/lib/libc/locale/t_wctomb.c: revision 1.5
tests/lib/libc/locale/t_io.c: revision 1.5
tests/lib/libc/locale/t_wcstod.c: revision 1.4
tests/lib/libc/locale/t_mbstowcs.c: revision 1.2
tests/lib/libc/locale/t_wctype.c: revision 1.2
tests/lib/libc/locale/t_mbrtowc.c: revision 1.2
tests/lib/libc/locale/t_btowc.c: revision 1.2
tests/lib/libc/locale/t_btowc.c: revision 1.3
Add ISO10646 versions of these tests, conditional on __STDC_ISO_10646__ .
Also make the tests a bit more verbose, to aid debugging when they fail.

Separate the C/POSIX locale test from the rest; make it more thorough
and more correct.  This fixes a problem reported by martin@ when the
test is compiled with -funsigned-char.

(martin)

2018-03-15 09:17:31 UTC MAIN commitmail json YAML

Remove #ifdef XEN (Xen has its own cpu.c), and add a comment.

(maxv)

2018-03-15 09:12:09 UTC pgoyette-compat commitmail json YAML

src/Makefile@1.321.2.1 / diff / nxr@1.321.2.1
src/UPDATING@1.291.2.1 / diff / nxr@1.291.2.1
src/bin/sh/sh.1@1.175.2.1 / diff / nxr@1.175.2.1
src/crypto/external/bsd/heimdal/Makefile.rules.inc@1.8.10.1 / diff / nxr@1.8.10.1
src/crypto/external/bsd/openssl/dist/crypto/bn/asm/mips.pl@1.1.1.6.2.1 / diff / nxr@1.1.1.6.2.1
src/crypto/external/bsd/openssl/dist/crypto/evp/e_aes.c@1.12.2.1 / diff / nxr@1.12.2.1
src/crypto/external/bsd/openssl/dist/crypto/modes/gcm128.c@1.4.2.1 / diff / nxr@1.4.2.1
src/crypto/external/bsd/openssl/dist/e_os.h@1.7.2.1 / diff / nxr@1.7.2.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/Makefile@1.1.14.1 / diff / nxr@1.1.14.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/aes.inc@1.1.14.1 / diff / nxr@1.1.14.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/aesv8-armx.S@1.1.14.1 / diff / nxr@1.1.14.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S@1.1.2.2 / diff / nxr@1.1.2.2
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S@1.1.2.2 / diff / nxr@1.1.2.2
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/bf.inc@1.1.14.1 / diff / nxr@1.1.14.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/bn.inc@1.1.14.1 / diff / nxr@1.1.14.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S@1.1.2.2 / diff / nxr@1.1.2.2
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/chacha.inc@1.1.2.2 / diff / nxr@1.1.2.2
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/crypto.inc@1.1.14.1 / diff / nxr@1.1.14.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/des.inc@1.1.14.1 / diff / nxr@1.1.14.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/ec.inc@1.1.2.2 / diff / nxr@1.1.2.2
      :
(more 300 files)
Synch with HEAD

(pgoyette)

2018-03-15 08:15:21 UTC MAIN commitmail json YAML

Add the PR_LASTHDR flag on the PFsync and CARP entries. Otherwise a
"require" IPsec policy is not enforced on them, and unauthenticated
packets will be accepted.

Tested with a require-AH configuration. Sent on tech-net@, no comment.

(maxv)

2018-03-15 07:29:02 UTC pgoyette-compat commitmail json YAML

2018-03-15 06:48:51 UTC MAIN commitmail json YAML

Add some changes from ix-3.2.17.tar.gz and r328265. Not fully synchronized.
Some others (e.g. sfp cage interrupt and bypass adapter  stuff) will be merged
later:
- Initialize firmware command buffer correctly in ixgbe_read_ee_hostif_X550()
  and ixgbe_read_ee_hostif_buffer_X550(). These functions are used when reading
  NVM.
- Fix a bug that ixgbe_mng_present() misunderstand management capability on
  X550 and newer on some environment. X550 changed FWSM bit definition.
  See X540 document and X550's document and compare them.
- Fix checksum calculation in ixgbe_set_fw_drv_ver_generic(). This function is
  not used in NetBSD.
- Add some unused funtions.
- Whitespace fix.

(msaitoh)

2018-03-15 05:14:39 UTC netbsd-7-1 commitmail json YAML

2018-03-15 05:10:06 UTC pgoyette-compat commitmail json YAML

2018-03-15 03:45:05 UTC MAIN commitmail json YAML

Use db_printf instead of printf in ddb

(ozaki-r)

2018-03-15 03:22:23 UTC MAIN commitmail json YAML

2018-03-15 03:21:58 UTC MAIN commitmail json YAML

finish moving the compat code out.

(christos)

2018-03-15 03:13:51 UTC MAIN commitmail json YAML

2018-03-15 02:25:31 UTC MAIN commitmail json YAML

Initialize ypbind_resp before first possible error return condition.

(ginsbach)

2018-03-15 01:20:43 UTC MAIN commitmail json YAML

Start adding more gaudy markup.  Use .Li or .Dv when referring to
parameters.  Use more .Ic and .Ar when defining syntax.

The manual is still rather inconsistent e.g. when referring to
parameters where it randomly uses both $0 and 0 or $@ and @ - but I'm
not shaving that yak at least for now.

(uwe)

2018-03-15 00:48:13 UTC MAIN commitmail json YAML

2018-03-14 23:42:10 UTC MAIN commitmail json YAML

2018-03-14 23:41:08 UTC MAIN commitmail json YAML

2018-03-14 22:26:16 UTC pgoyette-compat commitmail json YAML

Revert previous.

From mrg@:

this isn't traditionally how we did COMPAT_43.  it's more
"enable obsolete interfaces", which is not quite the same
as "make old binaries work".

eg, they enable the old sgtty interfaces that _are_ still
visible and potentially callable from modern binaries.
we still install the headers for this interfaces.

COMPAT_09 enables old binaries with changed interfaces.

(pgoyette)

2018-03-14 22:04:27 UTC pgoyette-compat commitmail json YAML

Tag files with their specific compat version required.  This way
the files only get included if needed, allowing for subsequent
loading of COMPAT_xx modules for older-than-built-in code.

(pgoyette)

2018-03-14 21:46:51 UTC pgoyette-compat commitmail json YAML

COMPAT_43 is even older than COMPAT_09, so if _43 is enabled, we'll
need everything newer as well.

(pgoyette)

2018-03-14 18:58:32 UTC MAIN commitmail json YAML

Don't left shift a negative, use unsigned for bit masks.
Appeases GCC 6 in some build configuration (ALL kernel)

ok uwe

(maya)

2018-03-14 18:37:49 UTC netbsd-8 commitmail json YAML

2018-03-14 18:37:00 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #630):
lib/libc/stdio/vfwprintf.c: revision 1.35
lib/libc/stdio/vfwprintf.c: revision 1.36
tests/lib/libc/locale/t_sprintf.c: revision 1.2
Change t_sprintf to an expected failure, since we don't respect the empty
thousands separator of the C/POSIX locale (PR standards/52282).
Do not use thousands grouping when none is specified by the locale.
Fixes PR standards/52282.
A more correct fix for PR standards/52282.

(bouyer)

2018-03-14 17:40:41 UTC MAIN commitmail json YAML

Spectre V2 mitigation for certain families of AMD CPUs.

A new sysctl is added, machdep.spectreV2.mitigated, that controls whether
Spectre V2 is mitigated. For now it defaults to "false".

The code is written in such a way that there can be several methods. For
now only one method is supported, on AMD Families 10h, 12h and 16h, where
an MSR is available to disable branch prediction entirely.

Compile-tested on Intel, AMD will be tested soon.

(maxv)

2018-03-14 15:03:16 UTC MAIN commitmail json YAML

... and also add IBPB ...

(maxv)

2018-03-14 14:44:25 UTC MAIN commitmail json YAML

Add the IBRS and STIBP MSRs.

(maxv)

2018-03-14 14:15:02 UTC MAIN commitmail json YAML

Add IC_CFG.DIS_IND: "Disable Indirect Branch Predictor". Available (at
least) on AMD Families 10h, 12h and 16h.

(maxv)

2018-03-14 13:23:31 UTC MAIN commitmail json YAML

Restore shlib version accidentally bumped in the previous commit.
Fix debug build for i386.

(rin)

2018-03-14 10:38:53 UTC MAIN commitmail json YAML

Compute tag width for the list of options in Argument List Processing,
mandoc *is* up to that.  Remove the part of the comment before the
list that was wondering about that.

(uwe)

2018-03-14 10:30:40 UTC MAIN commitmail json YAML

Small markup tweaks in Argument List Processing

(uwe)

2018-03-14 09:46:45 UTC MAIN commitmail json YAML

Instead of .Oo/.Oc use .Op directly where possible.

(uwe)

2018-03-14 09:42:37 UTC MAIN commitmail json YAML

Revert previous.  Fix the real problem properly.

(uwe)

2018-03-14 09:38:33 UTC MAIN commitmail json YAML

Xfuncproto.h is a normal file now.

(mrg)

2018-03-14 09:32:04 UTC MAIN commitmail json YAML

Fix the "return-rst" rule on IPv6 packets.

The scopes needed to be set on the addresses before invoking ip6_output,
because ip6_output needs them. The reason they are not here already is
because pfil_run_hooks (in ip6_input) is called _before_ the kernel
initializes the scopes.

Until now ip6_output was always failing, and the IPv6-TCP-RST packet was
never actually sent.

Perhaps it would be better to have the kernel initialize the scopes
before invoking pfil_run_hooks, but several things will need to be fixed
in several places.

Tested with a simple TCPv6 server. Until now the client would block
waiting for an answer that never came; now it receives an RST right away
and closes the connection, as expected.

I believe that the same problem exists in the "return-icmp" rules, but I
can't investigate this right now (some problems with wireshark).

(maxv)

2018-03-14 09:09:46 UTC MAIN commitmail json YAML

obsolete fontcacheproto.
prepare for xorgproto - split the non replaced list out.

(mrg)

2018-03-14 08:55:36 UTC MAIN commitmail json YAML

2018-03-14 07:57:44 UTC MAIN commitmail json YAML

merge our local fixes for Xpoll.h.in -- moves FD_SETSIZE.

(mrg)

2018-03-14 07:56:32 UTC MAIN commitmail json YAML

Fix error checking in in6_gif_ctlinput().

if_gif.c:r1.133 introduces gif_update_variant() which ensure ifp->if_flags
is set IFF_RUNNING when gif_softc->gif_var->gv_{psrc,pdst} are not null.
So, in6_gif_ctlinput() is not required IFF_RUNNING checking. In contrast,
it is required gv_{psrc,pdst} NULL checking.

(knakahara)

2018-03-14 07:53:14 UTC MAIN commitmail json YAML

Remove Ic macro without effect.

(wiz)