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 04:38:50 UTC Now

2018-11-11 23:05:25 UTC MAIN commitmail json YAML

our GCC 6.5 is "nb4 20181109".

(mrg)

2018-11-11 23:04:27 UTC MAIN commitmail json YAML

note GCC 6.5 was released (and imported.)

(mrg)

2018-11-11 22:50:13 UTC MAIN commitmail json YAML

2018-11-11 22:39:25 UTC MAIN commitmail json YAML

Add clock information for RK3399 PCIe

(jakllsch)

2018-11-11 21:24:38 UTC MAIN commitmail json YAML

2018-11-11 21:24:28 UTC MAIN commitmail json YAML

2018-11-11 18:02:23 UTC MAIN commitmail json YAML

2018-11-11 12:03:08 UTC MAIN commitmail json YAML

2018-11-11 11:44:53 UTC MAIN commitmail json YAML

pull across this patch:

  https://github.com/anarsoul/linux-2.6/commit/26b3d6f8ffa77cb05066c11967a498d6dacbdc42#diff-61a0580c3eaa34a373cc7ee7ee46dd2a

---
arm64: allwinner: a64: enable Bluetooth On Pinebook

Pinebook has an RTL8723CS WiFi + BT chip, BT is connected to UART1
and uses PL4 as BT reset, PL5 as device wake GPIO, PL6 as host wake GPIO
the I2C controlling signals are connected to R_I2C bus.

Enable it in the device tree.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
---

this enables:

[    1.000019] com1 at simplebus1: ns16550a, working fifo
[    1.000019] com1: interrupting on GIC irq 33

to attach.  more work with firmware and btattach will be required,
for the BT to be actually functional.

(mrg)

2018-11-11 11:17:49 UTC MAIN commitmail json YAML

Fix stack info leak. There are 4 bytes of padding in struct timeval. Looks
like there are other leaks related to timeval in this file.

[  133.414352] kleak: Possible leak in copyout: [len=16, leaked=4]
[  133.414352] #0 0xffffffff80224d0a in kleak_note <netbsd>
[  133.424360] #1 0xffffffff80224d8a in kleak_copyout <netbsd>
[  133.434361] #2 0xffffffff80b5fd79 in sys___gettimeofday50 <netbsd>
[  133.434361] #3 0xffffffff8025a89c in sy_call <netbsd>
[  133.444351] #4 0xffffffff8025aace in sy_invoke <netbsd>
[  133.454365] #5 0xffffffff8025ab54 in syscall <netbsd>

(maxv)

2018-11-11 10:58:40 UTC MAIN commitmail json YAML

Fix stack info leak. There is a big padding in struct sigframe_siginfo.

[  224.006287] kleak: Possible leak in copyout: [len=920, leaked=92]
[  224.016977] #0 0xffffffff80224d0a in kleak_note <netbsd>
[  224.026268] #1 0xffffffff80224d8a in kleak_copyout <netbsd>
[  224.026268] #2 0xffffffff802224b5 in sendsig_siginfo <netbsd>
[  224.036261] #3 0xffffffff80b51564 in sendsig <netbsd>
[  224.046475] #4 0xffffffff80b51282 in postsig <netbsd>
[  224.046475] #5 0xffffffff80b2fc5d in lwp_userret <netbsd>
[  224.056273] #6 0xffffffff8025a951 in mi_userret <netbsd>
[  224.066277] #7 0xffffffff8025ab89 in syscall <netbsd>

(maxv)

2018-11-11 10:55:58 UTC MAIN commitmail json YAML

Fix stack info leak. There are 2x4 bytes of padding in struct ps_strings.

[  223.896199] kleak: Possible leak in copyout: [len=32, leaked=8]
[  223.906430] #0 0xffffffff80224d0a in kleak_note <netbsd>
[  223.906430] #1 0xffffffff80224d8a in kleak_copyout <netbsd>
[  223.918363] #2 0xffffffff80b1e26c in copyoutpsstrs <netbsd>
[  223.926560] #3 0xffffffff80b1e331 in copyoutargs <netbsd>
[  223.936216] #4 0xffffffff80b21768 in execve_runproc <netbsd>
[  223.946225] #5 0xffffffff80b21cc9 in execve1 <netbsd>
[  223.946225] #6 0xffffffff8025a89c in sy_call <netbsd>
[  223.956225] #7 0xffffffff8025aace in sy_invoke <netbsd>
[  223.966232] #8 0xffffffff8025ab54 in syscall <netbsd>

(maxv)

2018-11-11 10:21:11 UTC MAIN commitmail json YAML

Only _if_ an inactive table has been loaded, make it active when resuming.
Fixes lvrename operation.

(mlelstv)

2018-11-11 10:14:15 UTC MAIN commitmail json YAML

Add support for intrctl(8).

(jmcneill)

2018-11-11 10:06:10 UTC MAIN commitmail json YAML

Skip floopies when selecting an install target, but do not add them to
the CD list when selecting an installation source device.

(martin)

2018-11-11 09:17:11 UTC MAIN commitmail json YAML

Do not allow installation onto floppy disk - can be overriden by
architectures where it would make sense (none currently), and also
works around a bug in QEMU for sparc that kills our -current anita tests.

(martin)

2018-11-11 08:28:35 UTC MAIN commitmail json YAML

Provide a fallback dtc if USE_TOOLS isn't in use.

From Daniel Loffgren in PR kern/53720.

(maya)

2018-11-11 07:43:35 UTC MAIN commitmail json YAML

.WAIT for tools to complete.
There's a lot of waits inside tools, but nothing that promises that we haven't
started doing the next subdir in the top level.

Shows up as warnings in the cleandir stage on releng builds:

cleandir ===> external/mit/xorg/server/drivers/xf86-video-suncg6
cleandir ===> lib/libpam/modules/pam_deny
sh: /home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk: not found
nbmake[9]: "../../Makefile.xf86-driver" line 23: warning: "/home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk '/^PACKAGE_VERSION=/ {                match($1, "[0-9]+\\.[0-9]+\\.[0-9]+");  version = substr($1, RSTART, RLENGTH);  } END { print version }'                        /home/source/ab/HEAD-llvm/xsrc/external/mit/xf86-video-ati/dist/configure" returned non-zero status
sh: /home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk: not found

(maya)

2018-11-11 01:42:36 UTC MAIN commitmail json YAML

use the data size in case stdout was a pipe (M. Levinson)

(christos)

2018-11-11 01:26:08 UTC MAIN commitmail json YAML

Use feenableexcept to trap fp exceptions, and trigger one, for SIGFPE.

Not every CPU traps integer division by zero -- aarch64, powerpc,
&c., just return zero.

(riastradh)

2018-11-11 01:26:00 UTC MAIN commitmail json YAML

2018-11-11 00:24:01 UTC MAIN commitmail json YAML

& promotes to int already, so clang warns about the hh modifier.
(and we use -Werror)

ok xtos

(maya)

2018-11-11 00:06:48 UTC MAIN commitmail json YAML

Add missing include for struct nvmm_x64_state
(Pointed out by the clang build)

(maya)

2018-11-10 23:04:16 UTC MAIN commitmail json YAML

Print the input to cosf on failure too.

(riastradh)

2018-11-10 22:19:33 UTC MAIN commitmail json YAML

Revert part of 1.1079. MKSOFTFLOAT?=yes for mips64*.

That is most likely an accidental commit.

PR port-mips/53719

(maya)

2018-11-10 19:35:19 UTC MAIN commitmail json YAML

Revert previous - not needed here, I got lost in the include maze

(martin)

2018-11-10 18:30:58 UTC MAIN commitmail json YAML

add LX_BLKPAG_SH_IS pte attribute for MP

(ryo)

2018-11-10 18:29:08 UTC MAIN commitmail json YAML

need to invalidate TLBs after pmapboot_enter(). pmapboot_protect() requires KSEG mappings.

(ryo)

2018-11-10 16:19:58 UTC MAIN commitmail json YAML

2018-11-10 11:46:31 UTC MAIN commitmail json YAML

2018-11-10 11:08:54 UTC MAIN commitmail json YAML

Merge the VIA detection code into cpu_probe_c3.

(maxv)

2018-11-10 10:57:06 UTC MAIN commitmail json YAML

Add copyright and RCSID, from wiz@.

(maxv)

2018-11-10 10:52:52 UTC MAIN commitmail json YAML

Declare the MSR_VIA_ACE values as macros, and use a consistent naming,
similar to the rest of the file.

I'm wondering if I'm not fixing a huge bug here. The ECX8 value we were
using was wrong: ECX8 is bit 1, not bit 0. Bit 0 is ALTINST, an alternate
ISA, which is now known to be backdoored.

So it looks like we were explicitly enabling the backdoor.

Not tested, because I don't have a VIA cpu.

(maxv)

2018-11-10 09:42:42 UTC MAIN commitmail json YAML

2018-11-10 09:28:56 UTC MAIN commitmail json YAML

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.

(maxv)

2018-11-10 01:56:28 UTC MAIN commitmail json YAML

Implement pic_get_affinity/pic_set_affinity for SPIs

(jmcneill)

2018-11-10 01:44:26 UTC MAIN commitmail json YAML

set list for Xorg on iyonix

(macallan)

2018-11-10 01:40:47 UTC MAIN commitmail json YAML

more Xorg on iyonix building goop

(macallan)

2018-11-10 01:38:02 UTC MAIN commitmail json YAML

2018-11-10 01:24:06 UTC MAIN commitmail json YAML

Initialize gic softc dma tag

(jmcneill)

2018-11-09 23:36:59 UTC MAIN commitmail json YAML

2018-11-09 23:36:24 UTC MAIN commitmail json YAML

2018-11-09 23:35:06 UTC MAIN commitmail json YAML

Increase max PIC sources

(jmcneill)

2018-11-09 23:34:20 UTC MAIN commitmail json YAML

Increase size of is_irq and pic_irqbase

(jmcneill)

2018-11-09 21:57:09 UTC MAIN commitmail json YAML

Set and check NDIS version.

Throw away length 1 packets without a warning: we already throw away messages
with (len < sizeof(*msg)) a short while after, but print a warning.

Hardware is allowed to pad USB packets which % wMaxPacketSize length with
such packets for hardware implementation simplicity reasons.

This is described in
https://docs.microsoft.com/en-us/windows-hardware/drivers/network/usb-short-packets

From Artturi Alm in tech-net, with amendment from pgoyette.

(maya)

2018-11-09 21:33:50 UTC MAIN commitmail json YAML

2018-11-09 15:20:36 UTC MAIN commitmail json YAML

Fix test for active root partition when booting from a wedge

(martin)

2018-11-09 14:39:51 UTC MAIN commitmail json YAML

Enable new timings and HS200 mode on A64 eMMC

(jmcneill)

2018-11-09 14:39:20 UTC MAIN commitmail json YAML

Defer DIOCCACHESYNC to the sdmmc task queue so they are serialized with other requests.

(jmcneill)

2018-11-09 14:38:37 UTC MAIN commitmail json YAML

Wait for data ready after eMMC flush cache commands

(jmcneill)

2018-11-09 11:46:28 UTC MAIN commitmail json YAML

Use the same type redefinition guards as stdint.h since rev1.8

PR pkg/53713

(maya)

2018-11-09 11:29:12 UTC netbsd-7 commitmail json YAML

2018-11-09 11:28:39 UTC netbsd-7 commitmail json YAML

Pull up the following revisions(s) (requested by msaitoh in ticket #1648):
sys/dev/mii/inbmphyreg.h 1.11
sys/dev/pci/if_wm.c 1.586-1.588, 1.590-1.596 via patch
sys/dev/pci/if_wmreg.h 1.108

- rename tu event counter to txunderrun.
- Try m_defrag() to reduce the number of DMA segment if bus_dmamap_load_mbuf()
  returned EFBIG. When m_defrag() is called, txqNNdefrag event counter is
  incremented. If the 2nd try of bus_dmamap_load_mbuf() failed, txqNNtoomanyseg
  event counter is incremented.
- Reduce the max number of DMA segments from 256 to 64 (it's the same value
  as other BSD's (EM_MAX_SCATTER) and more than before if_wm.c rev. 1.75's
  value (40)) because we do m_defrag() now.
- 82574 and newer document says the status field has neither EC
  (Excessive Collision) bit nor LC (Late Collision) bit (reserved), so
  don't check the bit.
- Add workaround for DMA hang problem which result in TX device timeout
  on PCH_LPT with I218. Same as FreeBSD and Linux. This workaround is
  only for device ID 0x155a, 0x15a2, 0x1559 and 0x15a3.
- Fix a PCH2 specific bug that wrong PHY register value can be read
  when boot. Same as FreeBSD and Linux.
- After writing MDIC register, don't read quickly the same register but
  do delay(50). Same as other OSes.
- Add missing wm_gate_hw_phy_config_ich8lan(false) in
  wm_phy_post_reset() on PCH2. wm_gate_hw_phy_config_ich8lan(true) is
  called in wm_reset(), so wm_gate_hw_phy_config_ich8lan(false) should
  be called after reset in wm_phy_post_reset().
- On PCH2, set the phy config counter to 50msec after (PHY) reset.
- KNF & Use macro.

(sborrill)

2018-11-09 10:19:47 UTC MAIN commitmail json YAML

2018-11-09 07:54:25 UTC MAIN commitmail json YAML

I am responsible for luactl.

(mbalmer)

2018-11-09 06:45:03 UTC MAIN commitmail json YAML

Add a test to show a large number of MAC addresses cached in a bridge

(ozaki-r)

2018-11-09 06:44:31 UTC MAIN commitmail json YAML

Fix that brconfig <bridge> (addr) can't show a large number of MAC addresses

The command shows only 256 addresses at maximum even if a bridge caches more
addresses.  It occurs because the kernel doesn't return an error if the command
passes a short buffer that can't store all cached addresses; the kernel fills
cached addresses as much as possible and returns it without telling that the
result is truncated.

Fix the issue by telling a required size of a buffer if a buffer passed from the
command is not enough, which lets the command retry with an enough buffer.

Reported by k-goda@IIJ

(ozaki-r)

2018-11-09 04:06:40 UTC MAIN commitmail json YAML

tg1 is a 64 bit value, store it in a 64 bit variable.

(mrg)

2018-11-09 04:05:27 UTC MAIN commitmail json YAML

implement dumpsys() and friends for arm64.

this is almost a direct copy of the arm code, which is simply
as the basic structures about physical memory are the same
between arm and arm64.  the main change i made was to use
the direct map instead of a virtual dump page that is remapped
to whatever physical page is being dumped.

i also changed the existing cpu_kcore_hdr_t to include the
missing number of ram segments.

note that this is not a complete solution for crash dumps yet,
as the libkvm code needs some work.  i'm fairly positive that
this side is correct, as i can see the data i expect to see,
but libkvm's _kvm_kvtop() function returns garbage so far.

there is no "minidump" support here yet, ala amd64, but we
probably want it eventually.

ok skrll@.

(mrg)

2018-11-09 02:11:05 UTC MAIN commitmail json YAML

PR bin/53712

Avoid crash from redirect on null compound command.

(kre)

2018-11-08 23:20:52 UTC MAIN commitmail json YAML

revert previous; does not fix the issue

(christos)

2018-11-08 21:47:04 UTC MAIN commitmail json YAML

Don't build this as a PIE binary, PIE binaries need PHDR and this barfs
under the new binutils: error: PHDR segment not covered by LOAD segment
[including bsd.init.mk includes ../Makefile.inc which disables PIE like
all the other bootloaders do]

(christos)

2018-11-08 20:29:38 UTC MAIN commitmail json YAML

Adapt other cd-device query functions to new world order, fix
default cd device (assume 'a' partition).

(martin)

2018-11-08 18:37:43 UTC MAIN commitmail json YAML

Allow shells forked to run command substitutions while expanding
prompts to exit when they're done, rather than forcing them to
turn into interactive shells and start reading input ...

Completes a part of the previous changes (just 10+ weeks late...)

Should fix the prompt expansion issue reported by Ca�c on
current-users.

(kre)

2018-11-08 18:19:37 UTC MAIN commitmail json YAML

Attempt to implement fabsf by copying fabs and s/d/f/g.

Vax wizards, please vaxinate if I flubbed this!

(riastradh)

2018-11-08 16:36:16 UTC MAIN commitmail json YAML

Use the generic C fabs/fabsl on ia64 for now to unbreak the build.

(riastradh)

2018-11-08 16:31:46 UTC MAIN commitmail json YAML

powerpc64 needs fabsl too.  (Apparently no __HAVE_LONG_DOUBLE?)

(riastradh)

2018-11-08 16:29:50 UTC MAIN commitmail json YAML

Try speling it rite, riasthradhdadhaa or whatever your name is.

(riastradh)

2018-11-08 12:11:28 UTC netbsd-8 commitmail json YAML

2018-11-08 12:09:18 UTC netbsd-8 commitmail json YAML

Pull up the following, requested by msaitoh in tickt #1085:

sys/dev/mii/inbmphyreg.h 1.11
sys/dev/pci/if_wmreg.h 1.108
sys/dev/pci/if_wm.c 1.590-1.596 via patch

- 82574 and newer document says the status field has neither EC
  (Excessive Collision) bit nor LC (Late Collision) bit (reserved), so
  don't check the bit.
- Add workaround for DMA hang problem which result in TX device timeout
  on PCH_LPT with I218. Same as FreeBSD and Linux. This workaround is
  only for device ID 0x155a, 0x15a2, 0x1559 and 0x15a3.
- Fix a PCH2 specific bug that wrong PHY register value can be read
  when boot. Same as FreeBSD and Linux.
- After writing MDIC register, don't read quickly the same register but
  do delay(50). Same as other OSes.
- Add missing wm_gate_hw_phy_config_ich8lan(false) in
  wm_phy_post_reset() on PCH2. wm_gate_hw_phy_config_ich8lan(true) is
  called in wm_reset(), so wm_gate_hw_phy_config_ich8lan(false) should
  be called after reset in wm_phy_post_reset().
- On PCH2, set the phy config counter to 50msec after (PHY) reset.
- KNF & Use macro.

(martin)

2018-11-08 12:04:49 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixv.c: revision 1.107
sys/dev/pci/ixgbe/ixgbe.c: revision 1.167

  Don't set LRO capability flag because we don't support it yet.

This doesn't change any behavior other than if_capabilities' visibility
(e.g. ifconfig).

(martin)

2018-11-08 11:56:56 UTC MAIN commitmail json YAML

Untangle disk enumeration a bit more.

(martin)

2018-11-08 11:15:58 UTC MAIN commitmail json YAML

Simplify CD device name matching by using fnmatch(3), suggested
by Christoph Badura.

(martin)

2018-11-08 10:55:41 UTC MAIN commitmail json YAML

Simplify the ifdefs, and error out if XEN and USER_LDT are both defined.

(maxv)

2018-11-08 09:00:24 UTC MAIN commitmail json YAML

2018-11-08 08:32:58 UTC MAIN commitmail json YAML

Note NVMM and aarch64+kasan.

(maxv)

2018-11-08 08:28:25 UTC MAIN commitmail json YAML

2018-11-08 08:28:08 UTC MAIN commitmail json YAML

Track the stack with kASan on aarch64. Same principle as on amd64. Illegal
accesses occurring there are now detected.

Originally written by me, but reworked by ryo@, thanks.

(maxv)

2018-11-08 08:27:54 UTC MAIN commitmail json YAML

2018-11-08 06:49:09 UTC MAIN commitmail json YAML

2018-11-08 06:44:50 UTC MAIN commitmail json YAML

"s/ are are / are /" in comment. No functional change.

(msaitoh)

2018-11-08 06:43:52 UTC MAIN commitmail json YAML

2018-11-08 06:34:40 UTC MAIN commitmail json YAML

2018-11-08 06:23:48 UTC MAIN commitmail json YAML

"s/ is is / is /" in comment. No functional change.

(msaitoh)

2018-11-08 04:30:38 UTC MAIN commitmail json YAML

Don't call soroverflow when we return the error to the sender.

Thanks to thorpej@ for a sanity check.

(roy)

2018-11-08 04:05:11 UTC MAIN commitmail json YAML

2018-11-08 04:04:42 UTC MAIN commitmail json YAML

Add two otehr I2C devices of Intel.

(msaitoh)

2018-11-08 02:30:15 UTC MAIN commitmail json YAML

2018-11-08 02:30:06 UTC MAIN commitmail json YAML

delete i386 aout vec which has been removed

(christos)

2018-11-08 02:11:54 UTC MAIN commitmail json YAML

Workaround PN533 USB descriptor corruption

During normal operation, the PN533 chip may corrupt its USB configuration,
interface and endpoint descriptors. The device descriptor remains unaffected.

Since the descriptors are documented to be immutable, we can work around
the problem by providing hard-coded descriptors instead of pulling them
from the device.

Userland implementation such as NFC tools' libnfc use the same approach,
but this kernel quirk is still necessary so that the device can be
attached on reboot, after its USB descriptors got corrupted.

(manu)

2018-11-08 02:08:35 UTC MAIN commitmail json YAML

2018-11-08 02:03:37 UTC MAIN commitmail json YAML

2018-11-08 02:01:28 UTC MAIN commitmail json YAML

Add PN533 based NFC devices

(manu)

2018-11-08 01:59:53 UTC MAIN commitmail json YAML

Enfore USB timeout on ugen(4) write operations

(manu)

2018-11-07 22:51:47 UTC MAIN commitmail json YAML

Don't provide these definitions on netbsd as before, but without relying
on int8_t being a macro.

(maya)

2018-11-07 22:21:42 UTC MAIN commitmail json YAML

On ports without __HAVE_LONG_DOUBLE, make fabsl alias fabs.

For some reason, fabs lives in libc, not in libm, and our tests now
detect when fabs or fabsl is missing from libm.  For those ports that
sometimes have long double and sometimes don't, make it conditional.

Still missing: fabs _and_ fabsl on ia64.  Need help from an itanium
wizard!  Other portmasters: Please take a look and see if I missed
any ports that might have long double where this alias will not work.

(riastradh)

2018-11-07 21:59:30 UTC MAIN commitmail json YAML

Fix CD_NAMES against concrete instances comparision - if CD_NAMES
entries have a wildcard, strip device instance number off from both
comparands.

(martin)

2018-11-07 21:20:23 UTC MAIN commitmail json YAML

Unify handling of CDROM device names.
Skip CDs when looking for install targets (we do not support installing
onto a blueray with UDF).

Fix search for the default CDROM device and the CD we booted from
for ports with nonstandard CDROM device names.

(martin)

2018-11-07 17:05:54 UTC MAIN commitmail json YAML

don't touch the queue structure in ata_queue_active() if atabus is already
detached from the channel

fixes panic on null pointer derefence during shutdown reported privately
by Launey Thomas

(jdolecek)

2018-11-07 09:59:12 UTC MAIN commitmail json YAML

Don't defer errors from sendmmsg().  This matches the linux manpage.

Defer errors from recvmmsg() through so_rerror and
tests and return a deferred error on entry.

Ok: christos@

(hannken)

2018-11-07 09:58:19 UTC MAIN commitmail json YAML

Update getsockopt(SO_ERROR) to behave like soreceive() and
return and clear so->so_rerror if so->so_error is zero.

Ok: christos@

(hannken)

2018-11-07 09:13:44 UTC netbsd-8 commitmail json YAML

2018-11-07 09:12:28 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #1083):

external/gpl2/groff/dist/configure: revision 1.2

Test for other exit cases.

It might be worth regenerating configure with modern autoconf.
Reviewed by <riastradh>

Closes PR toolchain/53314

(martin)

2018-11-07 07:49:10 UTC MAIN commitmail json YAML

2018-11-07 07:43:08 UTC MAIN commitmail json YAML

Add NVMM - for NetBSD Virtual Machine Monitor -, a kernel driver that
provides support for hardware-accelerated virtualization on NetBSD.

It is made of an MI frontend, to which MD backends can be plugged. One
MD backend is implemented, x86-SVM, for x86 AMD CPUs.

We install

/usr/include/dev/nvmm/nvmm.h
/usr/include/dev/nvmm/nvmm_ioctl.h
/usr/include/dev/nvmm/{arch}/nvmm_{arch}.h

And the kernel module. For now, the only architecture where we do that
is amd64 (arch=x86).

NVMM is not enabled by default in amd64-GENERIC, but is instead easily
modloadable.

Sent to tech-kern@ a month ago. Validated with kASan, and optimized
with tprof.

(maxv)

2018-11-07 07:14:51 UTC MAIN commitmail json YAML

2018-11-07 06:47:38 UTC MAIN commitmail json YAML

When hardware subnormal support is available, disable flush-to-zero.

Similarly, when hardware NaN propagation is available, disable
default-NaN substitution.

This enables IEEE 754 semantics on any hardware that supports it by
default.  Programs that want flush-to-zero or default-NaN substitution
can enable them explicitly.

ok ryo@

(riastradh)

2018-11-07 04:00:13 UTC MAIN commitmail json YAML

Disable x87 implementations of sin, cos, tan.

The x87 hardware uses a bad approximation to pi for argument
reduction, and consequently yields bad answers for inputs near pi or
pi/2.

Tweak one tanf test whose doubly rounded output is a little too far
from the correct answer on the doubly rounded input.

(riastradh)

2018-11-07 03:59:37 UTC MAIN commitmail json YAML

Fix up libm tests.

- Fix up last few digits of a lot of known-answer tests.

  Confirmed with GNU mpfr to 200 bits of precision and cross-checked
  with whatever libm Ubuntu ships with.

- Test relative error, not absolute error.

- Set bounds in terms of *_EPSILON, not magic numbers.

  *_EPSILON is twice the largest relative error of a correctly
  rounded operation, and equal to the largest relative error of an
  operation with up to 1ulp error.

  Most of the operations we're testing are not correctly rounded, but
  they ought to be no more than 1ulp away.  For the few cases where
  that's not a priori clear (like comparing cbrt and pow(x, 1/3)),
  use twice *_EPSILON to allow some leeway.

- Write the success condition positively as error <= eps.

  This comes out false if the result is a NaN, meaning failure.  In
  contrast, if we write error > eps for the _failure_ condition, then
  if the result is a NaN, it will also come out false, but meaning
  success, which is not what we want.

- Fix the trigonometric test cases near bad spots.

  sin(pi - d) for nonzero d is not zero; it is d + O(d^3).  pi is not
  a floating-point number, so these results should be approximately
  the nonzero error of our approximation to pi.  Likewise with
  cos(pi/2 - d) and tan(pi + d).

  (Yes, I know the sin _function_ is ill-conditioned near pi so you
  shouldn't pass approximate inputs near there, but that's separate
  from whether a sin _implementation_ gives an answer that is wrong
  by quintillions of ulps.)

  Since on x86 (i386 and amd64 alike) we currently use x87 hardware
  trigonometric instructions, which are bad, these are marked xfail
  on x86 for now until we switch to software implementations (coming
  soon to a repository near you).

- Use %.8g, %.17g, %.35g to print float, double, long double in failures.

  This should be enough to identify the problematic outputs and/or
  reproduce the computation, even if long double is binary128 with
  115 bits of precision.

If there are any new libm test failures after this, tell me what
architecture you're on and send me the atf output and I'll try to
figure it out.

(riastradh)

2018-11-07 03:56:18 UTC MAIN commitmail json YAML

Build libm tests with -fno-builtin.

This way they test libm, not whatever the compiler does.

We should _also_ have automatic integration tests for what the
compiler does, as a separate thing.

(riastradh)

2018-11-07 01:14:19 UTC MAIN commitmail json YAML

2018-11-07 01:13:57 UTC MAIN commitmail json YAML

2018-11-06 22:01:16 UTC MAIN commitmail json YAML

Test for other exit cases.
It might be worth regenerating configure with modern autoconf.

Reviewed by <riastradh>
Closes PR toolchain/53314

(sevan)

2018-11-06 17:55:04 UTC MAIN commitmail json YAML

Add a test to enable rerror handling.

(christos)

2018-11-06 16:26:44 UTC MAIN commitmail json YAML

2018-11-06 16:01:39 UTC MAIN commitmail json YAML

Increase kthread priority to PRI_SOFTBIO.

(jmcneill)

2018-11-06 14:48:37 UTC netbsd-8 commitmail json YAML

2018-11-06 14:47:38 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1082):

sys/fs/puffs/puffs_vnops.c: revision 1.213

Fix use after RECLAIM in PUFFS filesystems

From hannken@

When puffs_cookie2vnode() misses an entry and vrele() it operations
puffs_vnop_reclaim() and puffs_vnop_fsync() get called with a VNON
vnode.

Do not notify the server in this case as the cookie is stale.

(martin)

2018-11-06 14:44:23 UTC netbsd-8 commitmail json YAML

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

sys/netinet6/udp6_usrreq.c: revision 1.143
(applied to udp6_output.c, due to refactoring in -current)

Restore the length check of a sockaddr passed from userland at udp6_output

A sockaddr with invalid length could be passed to the network stack resulting in
a kernel panic like this:

        panic: sockaddr_copy: source too long, 28 < 128 bytes
        fatal breakpoint trap in supervisor mode
        trap type 1 code 0 rip 0xffffffff80216c35 cs 0x8 rflags 0x246
cr2 0x7f7ff7ef3000 ilevel 0x4 rsp 0xffff80003308b690
        curlwp 0xfffffe803e11ca40 pid 48.1 lowest kstack 0xffff8000330852c0
        Stopped in pid 48.1 (a.out) at  netbsd:breakpoint+0x5:  leave
        db{1}> bt
        breakpoint() at netbsd:breakpoint+0x5
        vpanic() at netbsd:vpanic+0x140
        panic() at netbsd:panic+0x3c
        sockaddr_copy() at netbsd:sockaddr_copy+0x95
        rtcache_setdst() at netbsd:rtcache_setdst+0x73
        rtcache_lookup2() at netbsd:rtcache_lookup2+0x56
        in6_selectroute() at netbsd:in6_selectroute+0x184
        in6_selectsrc() at netbsd:in6_selectsrc+0x119
        udp6_output() at netbsd:udp6_output+0x25e
        udp6_send_wrapper() at netbsd:udp6_send_wrapper+0x8a
        sosend() at netbsd:sosend+0x7bf
        do_sys_sendmsg_so() at netbsd:do_sys_sendmsg_so+0x28e
        do_sys_sendmsg() at netbsd:do_sys_sendmsg+0x89
        sys_sendto() at netbsd:sys_sendto+0x5c
        syscall() at netbsd:syscall+0x1ed
        --- syscall (number 133) ---
        7f7ff790173a:

Reported by Paul Ripke

(martin)

2018-11-06 14:38:58 UTC netbsd-8 commitmail json YAML

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

sys/netinet6/nd6.c: revision 1.251
sys/netinet/if_arp.c: revision 1.276
sys/net/if.c: revision 1.438
sys/net/if.c: revision 1.439
sys/net/route.c: revision 1.214
sys/net/route.c: revision 1.215
sys/net/route.c: revision 1.216
sys/netinet6/in6.c: revision 1.270
sys/net/route.h: revision 1.120
sys/net/if.c: revision 1.440

Remove a wrong assertion in ifaref

-

Doing ifref on an ifa with IFA_DESTROYING is not a problem; the reference should
be dropped during the destruction of the ifa.

-

Use atomic operations for ifa_refcnt

-

Avoid a dangling pointer during rt_replace_ifa

-

Avoid double rt_replace_ifa on rtrequest1(RTM_ADD)

Some callers of rtrequest1(RTM_ADD) adjust rt_ifa of an rtentry created by
rtrequest1 that may change rt_ifa (in ifa_rtrequest) with another ifa that is
different from requested one.  It's wasteful and even worse introduces a race
condition.  rtrequest1 should just use a passed ifa as is if a caller hopes so.

-

Use rt_update framework on updating a rtentry

(martin)

2018-11-06 09:43:25 UTC MAIN commitmail json YAML

Correct background check file for fixed curses behaviour.
This fixes lib/53676.

(blymn)

2018-11-06 09:14:08 UTC MAIN commitmail json YAML

Update man page to document z-axis emulation.

(blymn)

2018-11-06 09:13:17 UTC MAIN commitmail json YAML

Add double finger scroll feature.  If the detected width is between a
defined range then report y movement as z-axis.  Effectively emulating
a mouse scroll wheel.

(blymn)

2018-11-06 08:55:02 UTC MAIN commitmail json YAML

Fix clamping of deltas so it works for both positive and negative deltas.

(blymn)

2018-11-06 06:17:29 UTC MAIN commitmail json YAML

- make the build depend upon the BASE-VER file.
- workaround a problem only see with -O2 in ipa-inline.c: it can't
  convince itself that an integer underflow can't happen.

(mrg)

2018-11-06 06:16:00 UTC MAIN commitmail json YAML

2018-11-06 04:27:41 UTC MAIN commitmail json YAML

Restore the length check of a sockaddr passed from userland at udp6_output

A sockaddr with invalid length could be passed to the network stack resulting in
a kernel panic like this:

panic: sockaddr_copy: source too long, 28 < 128 bytes
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip 0xffffffff80216c35 cs 0x8 rflags 0x246 cr2 0x7f7ff7ef3000 ilevel 0x4 rsp 0xffff80003308b690
curlwp 0xfffffe803e11ca40 pid 48.1 lowest kstack 0xffff8000330852c0
Stopped in pid 48.1 (a.out) at  netbsd:breakpoint+0x5:  leave
db{1}> bt
breakpoint() at netbsd:breakpoint+0x5
vpanic() at netbsd:vpanic+0x140
panic() at netbsd:panic+0x3c
sockaddr_copy() at netbsd:sockaddr_copy+0x95
rtcache_setdst() at netbsd:rtcache_setdst+0x73
rtcache_lookup2() at netbsd:rtcache_lookup2+0x56
in6_selectroute() at netbsd:in6_selectroute+0x184
in6_selectsrc() at netbsd:in6_selectsrc+0x119
udp6_output() at netbsd:udp6_output+0x25e
udp6_send_wrapper() at netbsd:udp6_send_wrapper+0x8a
sosend() at netbsd:sosend+0x7bf
do_sys_sendmsg_so() at netbsd:do_sys_sendmsg_so+0x28e
do_sys_sendmsg() at netbsd:do_sys_sendmsg+0x89
sys_sendto() at netbsd:sys_sendto+0x5c
syscall() at netbsd:syscall+0x1ed
--- syscall (number 133) ---
7f7ff790173a:

Reported by Paul Ripke

(ozaki-r)

2018-11-06 04:07:22 UTC MAIN commitmail json YAML

put a bunch of the kvm_read + warn on failure code into a macro that
describes more about what failed.  now errors tell you which actual
variable was being requested instead of simply saying "not yours".

tested on amd64 as working.  written for arm64 testing.

(mrg)

2018-11-06 04:04:34 UTC MAIN commitmail json YAML

add support to detect the 3 vmware GPT partition types:

- VMKcore (dump partition)
- VMFS
- VMware reserved

this enables vmkcore partitions for netbsd swap or dump, as well
as naming all of them.

(mrg)

2018-11-06 02:39:49 UTC MAIN commitmail json YAML

Fix use after RECLAIM in PUFFS filesystems

From hannken@

When puffs_cookie2vnode() misses an entry and vrele() it operations
puffs_vnop_reclaim() and puffs_vnop_fsync() get called with a VNON
vnode.

Do not notify the server in this case as the cookie is stale.

(manu)

2018-11-05 21:34:33 UTC MAIN commitmail json YAML

Match the right MACHINE_ARCHes for GENERIC.

(skrll)

2018-11-05 19:45:57 UTC MAIN commitmail json YAML

2018-11-05 18:37:18 UTC MAIN commitmail json YAML

When refactoring interface drivers after netbsd-4, the SIOCINITIFADDR
ioctl was passed through ifioctl_common, because the case falls through
to the SIOCSIFFLAGS case. The common handler however doesn't implement
SIOCINITIFADDR, so an attempt to configure plip always failed with ENOTTY.

(mlelstv)

2018-11-05 17:44:09 UTC MAIN commitmail json YAML

Fix typo s/fron/from/

From dfive on freenode, thanks!

(maya)

2018-11-05 17:04:03 UTC MAIN commitmail json YAML

For "unknown" sets (should only happen for pkgsrc.tgz), always use
.tgz suffix.

(martin)

2018-11-05 11:50:15 UTC MAIN commitmail json YAML

ICC_PMR_EL1 has different encoding than IPRIORITYR. Not 100% sure that this is correct yet, but it works with both RK3399 and QEMU.

(jmcneill)

2018-11-05 10:27:06 UTC MAIN commitmail json YAML

Revert previous - local merge mishap

(martin)

2018-11-05 09:22:30 UTC MAIN commitmail json YAML

2018-11-05 09:18:55 UTC MAIN commitmail json YAML

2018-11-05 08:46:46 UTC MAIN commitmail json YAML

src/external/gpl3/gcc/lib/libgcc/libgcov/arch/aarch64/gcov-iov.h@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/alpha/gcov-iov.h@1.12 / diff / nxr@1.12
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/arm/gcov-iov.h@1.12 / diff / nxr@1.12
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/armeb/gcov-iov.h@1.12 / diff / nxr@1.12
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earm/gcov-iov.h@1.12 / diff / nxr@1.12
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmeb/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhf/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhfeb/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4eb/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6eb/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6hf/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6hfeb/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7eb/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7hf/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7hfeb/gcov-iov.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/hppa/gcov-iov.h@1.12 / diff / nxr@1.12
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/i386/gcov-iov.h@1.12 / diff / nxr@1.12
      :
(more 331 files)
regenerate everything for GCC 6.5.

sh3eb and sh3el had a problem wtih libstdc++ i had to work around for now.

(mrg)

2018-11-05 08:45:32 UTC MAIN commitmail json YAML

GCC 6.5 ios_failure.cc needs to be compiled with cxx mode.

(mrg)

2018-11-05 08:34:20 UTC MAIN commitmail json YAML

Make it compilable with gcc

(martin)

2018-11-05 07:42:56 UTC MAIN commitmail json YAML

Merge in VIRT now that qemu in pkgsrc can support it (missed in previous
commit)

(skrll)

2018-11-05 07:41:46 UTC MAIN commitmail json YAML

Merge in VIRT now that qemu in pkgsrc can support it

(skrll)

2018-11-05 07:39:57 UTC MAIN commitmail json YAML

2018-11-05 04:08:40 UTC MAIN commitmail json YAML

Suggest to remove lfs_ stubs on a major bump.
they're deprecated, ioctl is used instead.

(maya)

2018-11-05 03:51:31 UTC MAIN commitmail json YAML

2018-11-05 02:28:32 UTC MAIN commitmail json YAML

Add missing mutex pn->pn_sizemtx lock in puffs_vnop_open()

puffs_vnop_open() calls flushvncache(), which calls dosetattr()
if pn->pn_stat has PNODE_METACACHE_MASK. In that case, the lock
on pn->pn_sizemtx is mandatory and asserted.

(manu)

2018-11-05 00:43:30 UTC MAIN commitmail json YAML

initialise the kvm errbuf so that if an error occurs, but the
internal _kvm_*err() functions aren't called, stack garbage is
not reported as an error string.

call _kvm_err() if _kvm_kvatop() fails.  now the above is not
triggered anymore :-)

(mrg)

2018-11-04 21:41:12 UTC MAIN commitmail json YAML

Only add GENERIC to earmv6 and earmv7 builds

(skrll)

2018-11-04 20:45:21 UTC MAIN commitmail json YAML

syslogd: allow the reporting of buffer overflows to be disabled.

This generally isn't a good thing, nothing should be discard silently.
However, for systems that don't want big syslogd buffers or are too slow
to log effectively this reporting can now be disabled.

(roy)

2018-11-04 20:23:08 UTC MAIN commitmail json YAML

syslogd: allow the receiving buffer size to be set.

This allows the admin to try and avoid buffer overflow when a log of
logging appears in bursts.

(roy)

2018-11-04 20:02:07 UTC MAIN commitmail json YAML

Ensure that the 64-bit condition codes are used instead of the 32-bit condition codes. ok martin@

(palle)

2018-11-04 16:30:29 UTC MAIN commitmail json YAML

- Introduce a new SO_RERROR socket option to explicitly turn on
  receive overflow errors re-instating the default behavior to
  silently ignore them as before 2018-03-19.
- Introduce a new kern.sooptions sysctl to control the default
  behavior of socket options. Setting this to 0x4000 (SO_RERROR),
  turns on receive overflow error reporting for all sockets.
- Change dhcpcd to turn on SO_RERROR on all its sockets.

As discussed in tech-net.

(christos)

2018-11-04 13:48:27 UTC MAIN commitmail json YAML

PMAP_MAP_POOLPAGE must not fail. Trigger assertion here instead of
panic later from failing PR_WAITOK memory allocations.

(mlelstv)

2018-11-04 12:48:01 UTC MAIN commitmail json YAML

Add tprof in MAKEDEV.tmpl, and regen MAKEDEV.8.

(maxv)

2018-11-04 11:15:10 UTC netbsd-8 commitmail json YAML

2018-11-04 11:14:09 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #1079):

sys/netinet6/udp6_usrreq.c: revision 1.142
applied to udp6_output.c (refactured in HEAD)

Fix error path in ip6 source address selection.

in6_selectsrc previously returned a pointer to an ipv6 address,
the pointer was NULL in case of an error and is checked later
instead of the also returned error code. When in6_selectsrc was
changed to store the address into a buffer, the error code
was still ignored, but the buffer pointer was never set to NULL.

As a result send() to an ipv6 address on a system that isn't
configured for ipv6 no longer returns the expected EADDRAVAIL
but fails later in ip6_output with EOPNOTSUPP when trying to
send from an unspecified address. The wrong error code caused
BIND to log the unexpected errors.

(martin)

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

Pull up following revision(s) (requested by manu in ticket #1078):

sys/dev/usb/uhub.c: revision 1.140
sys/dev/usb/uhub.c: revision 1.141
sys/dev/usb/usb_subr.c: revision 1.228

Make USB port numbers display consistent

Make sure USB ports numbers are displayed with the first one as number one
and not number zero when rescanning bus. The change makes the display
consistent with the display at boot time USB discovery.

While we are there, make port iteration consistent everywhere in the code,
always starting at one instead of zero.

-

Make USB port iteration code consistent, always startint at port #1
This complements change in revision 1.140

(martin)

2018-11-04 08:48:01 UTC MAIN commitmail json YAML

Fix error path in ip6 source address selection.

in6_selectsrc previously returned a pointer to an ipv6 address,
the pointer was NULL in case of an error and is checked later
instead of the also returned error code. When in6_selectsrc was
changed to store the address into a buffer, the error code
was still ignored, but the buffer pointer was never set to NULL.

As a result send() to an ipv6 address on a system that isn't
configured for ipv6 no longer returns the expected EADDRAVAIL
but fails later in ip6_output with EOPNOTSUPP when trying to
send from an unspecified address. The wrong error code caused
BIND to log the unexpected errors.

(mlelstv)

2018-11-04 00:38:17 UTC MAIN commitmail json YAML

2018-11-03 22:04:30 UTC MAIN commitmail json YAML

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

make this compile again (rv was uninitialized)

(christos)

2018-11-03 21:34:35 UTC MAIN commitmail json YAML

Let's house this up a bit.
Add The Mix Collection, mixed by Sasha & John Digweed.
https://en.wikipedia.org/wiki/Renaissance:_The_Mix_Collection

(sevan)

2018-11-03 18:30:00 UTC MAIN commitmail json YAML

Remove "usage" translations - they never could be displayed as we only select
the language later.
Extend usage display a bit and sync with reality.

(martin)

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

2018-11-03 17:20:35 UTC netbsd-8 commitmail json YAML

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

Pull up following revision(s) (requested by christos in ticket #1077):

external/bsd/nsd/include/config.h: revision 1.4

Disable {send,recv}mmsg until we make our syscalls not have "sticky" errors.

(martin)

2018-11-03 15:20:03 UTC MAIN commitmail json YAML

Deduplicate debug printing code.

(christos)

2018-11-03 15:02:32 UTC MAIN commitmail json YAML

2018-11-03 14:56:36 UTC MAIN commitmail json YAML

Use PRIx64 printf format to make the 32bit version compile.

(martin)

2018-11-03 12:03:05 UTC MAIN commitmail json YAML

Match _PRT by segment and bus

(jmcneill)

2018-11-03 10:51:14 UTC MAIN commitmail json YAML

Use more appropriate macros. Make a sentence easier to read.

(wiz)

2018-11-03 08:27:16 UTC MAIN commitmail json YAML

Remove VA_SIGN_POS from the computation of the indexes, it is not needed.

(maxv)

2018-11-02 21:27:30 UTC MAIN commitmail json YAML

fix ahci_detach() to count the ports propertly (same as attach), to avoid
triggerring panic when disks are plugged to non-adjacent ports - this should
fix panic reported by Masanobu SAITOH on current-users

also fix different miscounting of ports in ahci_setup_ports() and
ahci_reprobe_drives()

(jdolecek)

2018-11-02 19:57:32 UTC MAIN commitmail json YAML

2018-11-02 19:51:08 UTC MAIN commitmail json YAML

Do not ignore non-zero segment numbers in MCFG if __HAVE_PCI_GET_SEGMENT
is defined.

(jmcneill)

2018-11-02 18:13:11 UTC MAIN commitmail json YAML

Adapt secondary CPU bootstrapping to the new generic startup code.

(aymeric)

2018-11-02 18:11:24 UTC MAIN commitmail json YAML

2018-11-02 18:09:17 UTC MAIN commitmail json YAML

. fix important typo which prevented enabling the SCU
. invalidate all cache tags of the SCU

(aymeric)

2018-11-02 18:07:33 UTC MAIN commitmail json YAML

Make the debug version compilable with modern gcc.
Do debugging for system(3) calls only when DEBUG_SYSTEM is defined.

(martin)

2018-11-02 15:36:22 UTC netbsd-8 commitmail json YAML

Annotate build fixes

(martin)

2018-11-02 15:31:26 UTC netbsd-8 commitmail json YAML

2018-11-02 15:01:18 UTC MAIN commitmail json YAML

2018-11-02 13:46:24 UTC MAIN commitmail json YAML

Keep up with pci_intr_handle_t type change in printf.

(maya)

2018-11-02 12:27:47 UTC MAIN commitmail json YAML

Add LIST_INIT for filehead.

(maxv)

2018-11-02 11:59:59 UTC MAIN commitmail json YAML

no, should be dst

(maxv)

2018-11-02 08:59:59 UTC MAIN commitmail json YAML

Don't overflow on the strings we read. Introduce db_read_string(), which
stops on '\0'. Probably this doesn't matter a lot because the read is
supposed to be safe, but let's not have bugs in the debugger.

Detected by kASan, via skrll@ on aarch64, by typing "ps/l" on DDB.

(maxv)

2018-11-02 08:26:32 UTC MAIN commitmail json YAML

KNF a bit. No functional change.

(msaitoh)

2018-11-02 08:18:19 UTC MAIN commitmail json YAML

Provide a kasan_md_unwind

OK maxv

(skrll)

2018-11-02 08:16:49 UTC MAIN commitmail json YAML

- Add missing wm_gate_hw_phy_config_ich8lan(false) in wm_phy_post_reset()
  on PCH2. wm_gate_hw_phy_config_ich8lan(true) is called in wm_reset(), so
  wm_phy_post_reset(false) should be called after reset.
- On PCH2, set the phy config counter to 50msec after (PHY) reset.

(msaitoh)

2018-11-02 08:09:21 UTC MAIN commitmail json YAML

After writing MDIC register, don't read quickly the same register but
do delay(50). Same as otehr OSes.

(msaitoh)

2018-11-02 08:04:42 UTC MAIN commitmail json YAML

Fix a PCH2 specific bug that wrong register value can be read when boot.
When a wrong value is read when boot, the read device ID was incorrect and
ukphy(3) is attached instead of ihphy(4). The bug might also result in
MDIC read/write error.

How to reproduce:

  0) Boot Windows.
  1) Leave some minutes.
  2) Reboot to NetBSD.

To fix this problem, adding extra 100us delay at the end of
wm_gmii_mdic_{read,write}reg() on PCH2. Same as FreeBSD and linux.

Reported by David Brownlee a few days ago and also reported by jmcneill
a half year ago. Tested with my own Thinkpad X220.

XXX pullup-[78]

(msaitoh)

2018-11-02 07:55:56 UTC netbsd-8 commitmail json YAML

Ammend #1072 for additional pullups.

(martin)

2018-11-02 07:55:06 UTC netbsd-8 commitmail json YAML

Additional pullup for ticket #1072:

sys/dev/pci/if_bwfm_pci.c 1.5

Make this compilable with 32bit paddr_t.

(martin)

2018-11-02 04:17:39 UTC MAIN commitmail json YAML

Remove obsolete clauses from copyright block.  Original copyright was
mine so should be ok to do.

(blymn)

2018-11-02 03:22:19 UTC MAIN commitmail json YAML

Add workaround for DMA hang problem which result in TX device timeout on
PCH_LPT with I218. Same as FreeBSD and Linux. This woraround is only for
device ID 0x155a, 0x15a2, 0x1559 and 0x15a3. I observed this problem on my
Shuttle DS57U's I218 port six times in two months.

(msaitoh)

2018-11-02 01:22:39 UTC MAIN commitmail json YAML

Add a "mem" command to print the EFI memory map.

(jmcneill)

2018-11-01 20:34:50 UTC MAIN commitmail json YAML

2018-11-01 19:11:31 UTC MAIN commitmail json YAML

Disable {send,recv}mmsg until we make our syscalls not have "sticky" errors.

(christos)