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

2024-05-10 01:36:10 UTC Now

2018-09-27 04:25:16 UTC pgoyette-compat commitmail json YAML

Properly tag for mips64 so we don't look for (and not find it) on 32-bit

(pgoyette)

2018-09-27 03:54:25 UTC pgoyette-compat commitmail json YAML

Remove the entry for MD compat_13 and _16 code.  It's done for amd64
and arm, and mips will be done while verifying the mips builds.

(pgoyette)

2018-09-27 03:53:30 UTC pgoyette-compat commitmail json YAML

2018-09-27 03:07:21 UTC pgoyette-compat commitmail json YAML

Fix some NTP-related function pointers

(pgoyette)

2018-09-27 02:44:24 UTC pgoyette-compat commitmail json YAML

2018-09-27 02:41:20 UTC pgoyette-compat commitmail json YAML

2018-09-27 02:27:05 UTC pgoyette-compat commitmail json YAML

We've already done the compat_80 module stuff, so remove it.

The coredump issue was a red-herring, replace it with an entry for
completing and "hooking up" the compat_netbsd32_machdep_13 and _16
stuff

(pgoyette)

2018-09-27 01:35:41 UTC pgoyette-compat commitmail json YAML

2018-09-27 01:34:38 UTC pgoyette-compat commitmail json YAML

Make sure we pick up the definition of COMPAT_NETBSD32

(pgoyette)

2018-09-27 01:33:31 UTC pgoyette-compat commitmail json YAML

2018-09-27 01:18:11 UTC MAIN commitmail json YAML

Fix hdaudio device configuration

When disabling unassociated devices, we have a special handling
for pins of type COP_AWCAP_TYPE_PIN_COMPLEX, but it came after code
that may disable any pins, including the ones that should be handled
as COP_AWCAP_TYPE_PIN_COMPLEX.

The result was that hdaudio could fail to detect some devices.  We
fix the situation by making sure that COP_AWCAP_TYPE_PIN_COMPLEX
pins always get their specific handling.

The change makes the built-in speaker work on Dell OptiPlex 5060

(manu)

2018-09-27 01:03:40 UTC MAIN commitmail json YAML

Work around deadlock between fstchg and fstcnt

When suspending a filesystem in fstrans_setstate(), we wait on
fstcnt for threads to finish transactions. While we do this, any
thread trying to start a filesystem transaction will wait on fstchg
in fstrans_start(), a situation which can deadlock.

The wait for fstcnt in fstrans_setstate() can be interrupted by
a signal, but the wait for fstchg in fstrans_start() cannot. Once
most processes are stuck in fstchg, it is impossible to send a
signal to the thread that waits on fstcnt, because no process
respond anymore to user input.

We fix that by adding a timeout to the wait on fstcnt in
fstrans_setstate(). This means suspending a filesystem may fail,
but it was already the case when the sleep was interupted by
a signal, hence calling function must already handle a possible
failure.

Fixes kern/53624

(manu)

2018-09-27 00:45:34 UTC MAIN commitmail json YAML

HACK:  if calling dirname() with the results of a previous dirname()
there is no need to copy the path into the output buffer, it is already
there....

All this has to change to become compat with a forthcoming POSIX update.

(kre)

2018-09-26 22:33:35 UTC MAIN commitmail json YAML

2018-09-26 22:32:46 UTC MAIN commitmail json YAML

2018-09-26 20:25:51 UTC MAIN commitmail json YAML

Add dwiic(4) and spdmem(4).

(jakllsch)

2018-09-26 20:15:08 UTC MAIN commitmail json YAML

match spdmem_i2c on "atmel,spd" compatible string

(jakllsch)

2018-09-26 20:03:36 UTC MAIN commitmail json YAML

Set "i2c-indirect-config" to false in the right place so that iic(4)
better behaves itself.

(jakllsch)

2018-09-26 19:06:33 UTC MAIN commitmail json YAML

2018-09-26 18:51:45 UTC MAIN commitmail json YAML

According to POSIX moving the cursor in curses(3) touches the window

Mark the old and new lines as dirty, so they will be refreshed upon next
call to getch(3)-like routine.

This also matches the ncurses behavior.

Reviewed by <roy>

(kamil)

2018-09-26 18:32:51 UTC MAIN commitmail json YAML

Sync with OpenBSD src/sys/dev/ic/dwiic.c r1.4.

Makes split command+data write operations in the exec() function work.
cvs: ----------------------------------------------------------------------

(jakllsch)

2018-09-26 18:20:59 UTC MAIN commitmail json YAML

Revert previous - will pass the additional args via the environment.

(martin)

2018-09-26 18:06:59 UTC MAIN commitmail json YAML

Correctly use device_printf() rather than aprint_error_dev() for errors
that can occur at runtime.

(jakllsch)

2018-09-26 16:55:34 UTC MAIN commitmail json YAML

avoid hardcode. don't depend that AARCH64_KSEG_START is 0xffff000000000000.

(ryo)

2018-09-26 15:07:24 UTC MAIN commitmail json YAML

Allow for ${COMPRESS_PROGRAM} to hold the name of a compressor program
plus additional arguments (like -9).

(martin)

2018-09-26 14:42:22 UTC MAIN commitmail json YAML

Correct detecting of terminal resize in curses(3) with keypad(,TRUE)

A previous change fixed only keypad(,FALSE) scenarios.

Handle catching terminal resize in INKEY_NORM and INKEY_ASSEMBLING (in the
middle of assembling a key code from passed codes) as both accept keys with
fgetc(3) and both can be in theory interrupted with a resize.

PR lib/53615

(kamil)

2018-09-26 12:59:38 UTC MAIN commitmail json YAML

Revive netipsec/keysock.h, accidentally marked obsolete in r1.2230.

Reported by Robert Swindells on current-users.

(rin)

2018-09-26 09:06:48 UTC MAIN commitmail json YAML

Don't call ukbd_cnattach() unconditionally, this causes a non-functionnal
keyboard if there is a framebuffer but the console is serial only.
Instead add a fdt_device_register_post_config() callback, which checks
if the just-attached wsdisplay is the console, and calls ukbd_cnattach()
in this case.
OK jmcneill@

(bouyer)

2018-09-26 09:04:12 UTC MAIN commitmail json YAML

Introduce wsdisplay_isconsole(struct wsdisplay_softc *), which
returns sc->sc_isconsole

(bouyer)

2018-09-25 22:23:22 UTC MAIN commitmail json YAML

Disallow 0-byte transfers and suppress timeout messages

(jmcneill)

2018-09-25 21:44:30 UTC pgoyette-compat commitmail json YAML

Replace the NTP issue with one for COREDUMP.  This is a major problem
for machine-dependant part of compat_netbsd32

(pgoyette)

2018-09-25 21:41:30 UTC pgoyette-compat commitmail json YAML

2018-09-25 20:55:34 UTC MAIN commitmail json YAML

Cortex A5 also uses PPI 27 for timer.

ODROID-C1 boots again.

(skrll)

2018-09-25 20:50:10 UTC MAIN commitmail json YAML

Add PCB used in a networking context.
Wondered by alnsn at EuroBSDcon 2018.

(sevan)

2018-09-25 17:57:33 UTC MAIN commitmail json YAML

Add CPPFLAGS+= -std=c99 so tools can build on systems where the
system compiler doesn't default to C99 (eg, NetBSD 6.1).

(riz)

2018-09-25 16:29:41 UTC MAIN commitmail json YAML

return 0 on success of dwiic_i2c_acquire_bus(), not 1 (failure)

(jakllsch)

2018-09-25 14:17:49 UTC MAIN commitmail json YAML

2018-09-25 14:16:33 UTC MAIN commitmail json YAML

2018-09-25 12:34:42 UTC MAIN commitmail json YAML

Fix spelling of HOSTPROG to not enable NLS for tools build.

(joerg)

2018-09-25 11:41:35 UTC MAIN commitmail json YAML

Don't include NLS for the tools build of xz.

(joerg)

2018-09-25 09:55:41 UTC MAIN commitmail json YAML

Fix wrong macro, use An.

(wiz)

2018-09-25 09:53:40 UTC MAIN commitmail json YAML

New sentence, new line. Use An/Mt.

(wiz)

2018-09-25 08:54:58 UTC MAIN commitmail json YAML

Add missing Makefile.inc for xz tools.

(joerg)

2018-09-25 06:55:23 UTC MAIN commitmail json YAML

pad(4) mixer has only 1 channel, so return EINVAL in the case other than 1.

This fixes the following strange output of mixerctl(1):

        outputs.master=255,0
        inputs.dac=255,0

(nakayama)

2018-09-25 06:53:49 UTC MAIN commitmail json YAML

Revert to rev.1.53.
I accidentally committed the netbsd-8 branch file in rev.1.54.

(nakayama)

2018-09-25 05:57:46 UTC MAIN commitmail json YAML

2018-09-25 05:43:43 UTC MAIN commitmail json YAML

Update xz entry for 5.2.4.

(joerg)

2018-09-25 05:42:08 UTC MAIN commitmail json YAML

2018-09-25 05:41:20 UTC MAIN commitmail json YAML

Revert last change, side effect of old config.h.

(joerg)

2018-09-25 05:39:45 UTC MAIN commitmail json YAML

Don't try to generate files we are not interested in.

(joerg)

2018-09-25 05:39:19 UTC MAIN commitmail json YAML

2018-09-25 05:38:10 UTC MAIN commitmail json YAML

Update xz import script to reflect inclusion of configure.

(joerg)

2018-09-25 03:50:58 UTC MAIN commitmail json YAML

Include list.h so prototypes for funcs exist (appease gcc)

(kre)

2018-09-25 01:26:58 UTC pgoyette-compat commitmail json YAML

In the xxx_fini() routine we need to _un_set the hook!

(pgoyette)

2018-09-25 01:15:27 UTC pgoyette-compat commitmail json YAML

Make the replacement/hook function return an int, to match the
expectations of the MP-safe HOOK mechanism.

(pgoyette)

2018-09-25 00:53:59 UTC pgoyette-compat commitmail json YAML

2018-09-25 00:00:05 UTC pgoyette-compat commitmail json YAML

If we're going to use the MP-safe HOOK macros, it helps to define them
by including the proper header!

(pgoyette)

2018-09-24 23:47:07 UTC pgoyette-compat commitmail json YAML

Adjust declaration of netbsd32_sendsig_siginfo() too.

Remove the attempted initialization of the former function pointer; this
is now handled by the "default" argument in MODULE_HOOK_CALL() macro.

(pgoyette)

2018-09-24 23:38:00 UTC pgoyette-compat commitmail json YAML

Make the netbsd32_sendsig_siginfo() routine return an int, to conform
to the MP-safe HOOKs mechanism.

(pgoyette)

2018-09-24 23:28:55 UTC pgoyette-compat commitmail json YAML

Put the NTP issue in the "required before merge" section.

Note that the compat library is completely gone now, both .o and .a
variants.

(pgoyette)

2018-09-24 23:25:24 UTC pgoyette-compat commitmail json YAML

Provide required args when calling the default (un-hooked) routine.

(pgoyette)

2018-09-24 23:23:26 UTC pgoyette-compat commitmail json YAML

2018-09-24 23:18:15 UTC pgoyette-compat commitmail json YAML

Revert previous.  We need a MP-safe way to determine _at_runtime_ if
the NTP option was included or not.

(pgoyette)

2018-09-24 23:06:02 UTC pgoyette-compat commitmail json YAML

2018-09-24 22:56:45 UTC pgoyette-compat commitmail json YAML

2018-09-24 22:22:16 UTC MAIN commitmail json YAML

Remove two unused bs handles

(jmcneill)

2018-09-24 21:58:11 UTC MAIN commitmail json YAML

Resolvconf is (can be) used as part of network config during
system installation, so also must confine itself to POSIX specified
test ('[') usage.    Pointed out by roy@ - thanks.

(kre)

2018-09-24 21:19:50 UTC jdolecek-ncqfixes commitmail json YAML

2018-09-24 21:15:39 UTC MAIN commitmail json YAML

fix DIOCLWEDGES to at least not fail with ENOTTY due to struct size difference,
but probably more needs to be done to work if any actual wedges are configured

(jdolecek)

2018-09-24 21:08:08 UTC MAIN commitmail json YAML

2018-09-24 20:36:51 UTC MAIN commitmail json YAML

2018-09-24 20:15:38 UTC MAIN commitmail json YAML

2018-09-24 19:50:51 UTC MAIN commitmail json YAML

2018-09-24 19:48:02 UTC jdolecek-ncqfixes commitmail json YAML

replace KASSERT() for READ LOG EXT returning without error indication
with just log to avoid triggering panic under QEMU - it doesn't implement
the command for AHCI emulation

(jdolecek)

2018-09-24 16:25:24 UTC MAIN commitmail json YAML

Remove tests that don't exist anymore in OpenSSL-1.1.1 (We should add the
one ones it adds though :-)

(christos)

2018-09-24 13:18:35 UTC MAIN commitmail json YAML

Note that we need to clean objdir for the OpenSSL update.

(martin)

2018-09-24 11:03:40 UTC MAIN commitmail json YAML

2018-09-24 11:02:12 UTC MAIN commitmail json YAML

don't override the sha man page provided by libc.

(christos)

2018-09-24 10:21:00 UTC pgoyette-compat commitmail json YAML

2018-09-24 09:25:14 UTC MAIN commitmail json YAML

Call drm_fb_helper_prepare in tegra_drm_fb_init as required.

I can boot a kernel with this

jetsontk1# dmesg | grep fb
[  1.0000580] tegrafb0 at tegradrm0
[  1.0000580] tegrafb0: framebuffer at 0x9bc00000, size 1024x768, depth 32, stride 4096
[  1.0000580] wsdisplay0 at tegrafb0 kbdmux 1
jetsontk1#

(skrll)

2018-09-24 05:47:33 UTC MAIN commitmail json YAML

Don't go beyond start().

(maxv)

2018-09-24 00:45:12 UTC MAIN commitmail json YAML

2018-09-24 00:42:34 UTC MAIN commitmail json YAML

2018-09-24 00:03:53 UTC pgoyette-compat commitmail json YAML

Make a note about clockctl vs NTP

(pgoyette)

2018-09-24 00:02:50 UTC pgoyette-compat commitmail json YAML

For clockctl module purposes, assume that NTP is available.

XXX Will revisit this later

(pgoyette)

2018-09-24 00:01:13 UTC pgoyette-compat commitmail json YAML

Don't compile NTP-related case if NTP is not available.

No HOOK required here since NTP is not modularized.

(pgoyette)

2018-09-23 23:48:33 UTC MAIN commitmail json YAML

Convert uses of test (aka '[') to use only posix specified forms,
mostly just on general principle...  this resulted in one or two minor
code reformattings to keep 80 char limits - a few needless uses of
quotes ("no" ??) were also removed (sh is not C. strings are strings
without quotes around them...)

(kre)

2018-09-23 23:34:45 UTC MAIN commitmail json YAML

Since we need an int paramater, and uio_resid is size_t cast it to int
to avoid warnings from the ever friendly compiler... (check that size if
in range was already made).

(kre)

2018-09-23 23:30:51 UTC MAIN commitmail json YAML

Open code min() so we don't need to find its prototype ...

(kre)

2018-09-23 23:16:34 UTC MAIN commitmail json YAML

Convert uses of test (ie: '[') to use only POSIX specified forms,
just on general principle (all but 3 of the changes are in code that
is commented out...)

(kre)

2018-09-23 23:12:21 UTC MAIN commitmail json YAML

Convert to POSIX specified usage of test (even though it would probably
have never been an issue here, it is trivial..., and one of the two
uses that needed changing was (and still is) commented out anyway).

(kre)

2018-09-23 23:02:39 UTC MAIN commitmail json YAML

rc.subr can be used in install images (from sysinst) so must use only
POSIX specified test uses (no -a or -o).  Also, use printf always,
rather than echo (replace echo as a function using echo with one which
uses printf).

(kre)

2018-09-23 22:00:58 UTC pgoyette-compat commitmail json YAML

Actually allocate/define the kern_proc_32 hook

(pgoyette)

2018-09-23 21:47:07 UTC pgoyette-compat commitmail json YAML

Restore compat_netbsd32 for amd64, too.

(pgoyette)

2018-09-23 21:44:01 UTC MAIN commitmail json YAML

2018-09-23 21:43:46 UTC pgoyette-compat commitmail json YAML

Use a .h file to define the xxx_{init,fini} routines, and include
the compat_stub.h header to get the definition of the kern_proc_32
hook.

(pgoyette)

2018-09-23 21:43:00 UTC MAIN commitmail json YAML

Kill stack protector warnings.
XXX: need to understand why gcc complains; it is not obvious to me.

(christos)

2018-09-23 21:38:08 UTC pgoyette-compat commitmail json YAML

2018-09-23 21:35:26 UTC MAIN commitmail json YAML

nvlist_copyin: fix the flag handling.

(rmind)

2018-09-23 21:18:30 UTC MAIN commitmail json YAML

pad(4) mixer has only 1 channel, so return EINVAL in the case other than 1.

This fixes the following strange output of mixerctl(1):

outputs.master=255,0
inputs.dac=255,0

(nakayama)

2018-09-23 19:32:03 UTC MAIN commitmail json YAML

Support rescan and child detachment

(jmcneill)

2018-09-23 19:07:10 UTC MAIN commitmail json YAML

libnv: add a wrapper around free(9) since in FreeBSD it can take NULL.

(rmind)

2018-09-23 18:04:52 UTC netbsd-8 commitmail json YAML

2018-09-23 18:00:53 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #1035):

sys/dev/pci/files.pci: revision 1.403

ixg and ixv depend on mii and mii_phy.

(martin)

2018-09-23 17:58:51 UTC netbsd-8 commitmail json YAML

Apply patch, requested by manu in ticket #1034:

Avoid sleeping with a spin lock held (solved differently on HEAD).

(martin)

2018-09-23 17:51:09 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1033):

sys/arch/pmax/pmax/dec_3min.c: revision 1.74

Fix hangup after framebuffers are attached on 3MIN.  PR port-pmax/53611

Ok'ed by mrg@.  Should be pulled up to netbsd-7 and netbsd-8.

(martin)

2018-09-23 17:49:12 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1032):

usr.sbin/sysinst/arch/sgimips/md.c: revision 1.5
usr.sbin/sysinst/arch/sgimips/md.c: revision 1.6

PR port-sgimips/53583: fetch kernel name always before using it.

Make the struct utsname local to avoid future similar issues.
Make sure to install a bootloader even on upgrade installation.

-

Fixes another part of port-sgimips/53583.
Should be pulled up (with rev 1.5) to netbsd-7 and netbsd-8.

(martin)

2018-09-23 17:46:16 UTC netbsd-8 commitmail json YAML

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

sys/kern/kern_synch.c: revision 1.317

In mi_switch(), also call pserialize_switchpoint() if we're not switching
to another lwp, as proposed on
http://mail-index.netbsd.org/tech-kern/2018/07/20/msg023709.html

Without it, on a SMP machine with few processes running (e.g while
running sysinst), pserialize could hang for a long time until all
CPUs got a LWP to run (or, eventually, forever).

Tested on Xen domUs with 4 CPUs, and on a 64-threads AMD machine.

(martin)

2018-09-23 17:43:37 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe.c: revision 1.166

- Fix a bug that Denverton accessed wrong register in
  ixgbe_setup_low_power_mode(). The location of some registers in Denverton
  were changed. The GRC register is one of them, so use IXGBE_GRC_BY_MAC(hw)
  instead of IXGBE_GRC.

- ixgbe_check_wol_support() tests the capability of WOL, but the sysctl
  knobs for WOL were added only for IXGBE_DEV_ID_X550EM_X_10G_T. Add the
  knobs when adapter->wol_support is not 0.

XXX pullup-8

(martin)

2018-09-23 17:40:38 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/pci_subr.c: revision 1.203
sys/dev/pci/pcireg.h: revision 1.140

  Add ATS Relaxed Ordering supported bit described in Address Translation
Relaxed Ordering ECN.

(martin)

2018-09-23 17:39:02 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1027):
sys/dev/pci/if_wm.c: revision 1.586
sys/dev/pci/if_wm.c: revision 1.587
sys/dev/pci/if_wm.c: revision 1.588

- Split txdrop evcnt into pcqdrop and descdrop.
- Simplify evcnt name by removing duplicated "tx" or "rx".
- s/tu/underrun/

- 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.

  Fix comment.

(martin)

2018-09-23 17:35:33 UTC netbsd-8 commitmail json YAML

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

sys/arch/x86/x86/procfs_machdep.c: revision 1.24
sys/arch/x86/include/specialreg.h: revision 1.130

OK'd by maxv:
- Add cpuid 7 edx L1D_FLUSH bit.
- Add IA32_ARCH_SKIP_L1DFL_VMENTRY bit.
- Add IA32_FLUSH_CMD MSR.

(martin)

2018-09-23 17:33:15 UTC netbsd-8 commitmail json YAML

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

sys/kern/subr_autoconf.c: revision 1.263
sys/kern/kern_drvctl.c: revision 1.44
sys/sys/device.h: revision 1.156
sys/sys/systm.h: revision 1.278

- move export for devmon_insert_vec into sys/device.h.
- export root_is_mounted for future USB RB_ASKNAME hack.
- make some things in subr_autoconf.c static
- move device_printf() prototype out from the middle of two sets of
  aprint_*() prototypes.

(martin)

2018-09-23 17:28:25 UTC netbsd-8 commitmail json YAML

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

sys/ddb/db_command.c: revision 1.157
sys/ddb/db_command.c: revision 1.158
sys/kern/subr_lockdebug.c: revision 1.67

always call lockdebug_dismiss() from DDB -- there are always some
minimal lockdebug checks in place, even without LOCKDEBUG.

adjust lockdebug_abort() to ignore problems after ld_panic is set

so that there's a chance of this working.
this fixes ddb 'reboot' on softiron od1000.

call spl0() before cpu_reboot(), so that there's a chance that:
- interrupts can work afterwards
- this also means if IO stalls, serial break might work again.

this mimics how reboot(2) ends up calling cpu_reboot().

(martin)

2018-09-23 17:24:59 UTC netbsd-8 commitmail json YAML

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

sys/dev/scsipi/scsipi_verbose.c: revision 1.34

don't print a blank line that ends up in logs and console output.

(martin)

2018-09-23 17:22:52 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/hdaudio_pci.c: revision 1.9
sys/dev/pci/hdaudio_pci.c: revision 1.10

use pci_mapreg_type() instead of assuming PCI_MAPREG_TYPE_MEM.
suggested by riastradh@.

fixes hdaudio on thinkpad P51 where the registers are mapped
over 4GB range.  probably fixes intel X10-based systems that
map hdaudio high as well, but i was able to work around that
in the BIOS.  not so for the P51.

XXX: pullup-7, pullup-8.

use pa_dmat64 if pci_dma64_available().

(martin)

2018-09-23 17:20:08 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #1021):

sys/dev/hpc/hpckbd.c: revision 1.33
sys/dev/hpc/hpckbd.c: revision 1.34
sys/dev/hpc/hpckbd.c: revision 1.35

Apply workaround introduced in r1.31 to hpcmips.

Fix kernel crash when console is attached. Now, my MC/R550 boots multiuser.
Thanks Masahiko Ito for encouraging me to do bisection to find this out.
XXX pullup-8, pullup-7

Fix comment formatting in previous.

Clarify the comment in the "unconst" version of hpckbd_keymap_setup.
Both sh3 (P1) and mips (kseg0) have the kernel directly mapped.

(martin)

2018-09-23 17:16:33 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1020):
usr.bin/printf/printf.c: revision 1.46

A truly ancient bug found by Edgar Fuss

When printf is running builtin in a sh, global vars aren't reset to
0 between invocations.  This affects "rval" which remembers state
from a previous %b \c and thereafter always exits after the first
format conversion, until we get a conversion that generates an
error (which resets the flag almost by accident)

printf %b abc\\c
abc (no \n)
printf %s%s hello world
hello (no \n, of course, no world ...)
printf %s%s hello world
hello
printf %s%s hello world
hello
printf %d hello
printf: hello: expected numeric value
0 (no \n)
printf %s%s hello world
helloworld (no \n, and we are back!)

This affects both /bin/sh and /bin/csh (and has for a very long time).

XXX pullup -8

(martin)

2018-09-23 15:28:49 UTC MAIN commitmail json YAML

Fix for i386, functionality intended in:
http://mail-index.netbsd.org/source-changes/2018/09/23/msg099357.html

This should fix the build for both GENERIC and XEN3PAE_DOM0

This has not been boot tested on native or xen3pae

Notes: pmap_changeprot_local() seems to be x86_64 only.
I was a bit surprised by this initially, but I suspect that the table
protections are enforced via ring0/ring1 fencing rather than page protections

the gdt registration code in i386 is still messy. I will leave it as is
for now - to avoid a rabbit hole.

(cherry)

2018-09-23 15:08:41 UTC MAIN commitmail json YAML

oops forgot to commit (add libcryptotest)

(christos)

2018-09-23 13:48:16 UTC MAIN commitmail json YAML

remove references to isdn

(maxv)

2018-09-23 13:46:53 UTC MAIN commitmail json YAML

note removal of isdn

(maxv)

2018-09-23 13:36:04 UTC MAIN commitmail json YAML

2018-09-23 13:34:58 UTC MAIN commitmail json YAML

2018-09-23 13:33:09 UTC MAIN commitmail json YAML

2018-09-23 11:57:10 UTC pgoyette-compat commitmail json YAML

The kern_proc_32 hook is defined in non-compat code.  Don't redefine.

(pgoyette)

2018-09-23 11:50:03 UTC pgoyette-compat commitmail json YAML

2018-09-23 11:35:39 UTC pgoyette-compat commitmail json YAML

2018-09-23 11:29:53 UTC pgoyette-compat commitmail json YAML

The kern_proc_32 hook is in the main kernel, so don't make another
one here.

(pgoyette)

2018-09-23 11:23:47 UTC pgoyette-compat commitmail json YAML

2018-09-23 10:41:01 UTC pgoyette-compat commitmail json YAML

Use restricted namespace identifiers for variables within the code
generated by macro expansion.

(pgoyette)

2018-09-23 09:21:04 UTC MAIN commitmail json YAML

2018-09-23 09:16:49 UTC pgoyette-compat commitmail json YAML

2018-09-23 09:16:25 UTC pgoyette-compat commitmail json YAML

Be selective about including the NTP syscall ntp_gettime

(pgoyette)

2018-09-23 08:26:01 UTC MAIN commitmail json YAML

2018-09-23 08:02:50 UTC pgoyette-compat commitmail json YAML

Revert previous.  Instead, don't put an entry for ntp_gettime in the
syscall package if we don't have NTP.

(pgoyette)

2018-09-23 08:01:13 UTC pgoyette-compat commitmail json YAML

Provide a dummy version of netbsd32_ntp_gettime for systems where NTP
isn't defined.

(pgoyette)

2018-09-23 07:54:42 UTC MAIN commitmail json YAML

Summary: Remove older and now conflicting type declaration for global
variable 'idt'.

This should fix the i386 build failure now.

(cherry)

2018-09-23 07:44:13 UTC pgoyette-compat commitmail json YAML

Don't bother to include COMPAT_50 related headers, since all the COMPAT_50
code has been relocated.

(pgoyette)

2018-09-23 07:39:43 UTC pgoyette-compat commitmail json YAML

Don't try to include usb_verbose.h - it might not exist on platforms
that don't have USB!

It turns out that nothing uses it any.

(pgoyette)

2018-09-23 07:37:14 UTC pgoyette-compat commitmail json YAML

Revert previous - not appropriate

(pgoyette)

2018-09-23 07:27:34 UTC pgoyette-compat commitmail json YAML

Put the USBVERBOSE option into a header file so it can be found by
modules.

(pgoyette)

2018-09-23 07:24:21 UTC MAIN commitmail json YAML

2018-09-23 07:16:41 UTC pgoyette-compat commitmail json YAML

Use a space to separate fields, not _

(pgoyette)

2018-09-23 07:16:01 UTC pgoyette-compat commitmail json YAML

Include header to get prototypes for the empty xxx_init() and xxx_fini()

(pgoyette)

2018-09-23 06:39:23 UTC MAIN commitmail json YAML

2018-09-23 04:31:17 UTC pgoyette-compat commitmail json YAML

No need to declare the crypto_50 init/fini routines.  The compat_50
module no longer needs them, and they're declared static in  the
ocryptodev.c code

(pgoyette)

2018-09-23 04:27:49 UTC pgoyette-compat commitmail json YAML

Now that cryptodev_50 is a separate module we can't initialize it
from the generic compat_50 module.

(pgoyette)

2018-09-23 03:54:08 UTC pgoyette-compat commitmail json YAML

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

Mark the correct module obsolete!

(pgoyette)

2018-09-23 03:44:04 UTC pgoyette-compat commitmail json YAML

2018-09-23 02:51:06 UTC MAIN commitmail json YAML

Revert:
http://mail-index.netbsd.org/source-changes/2018/09/10/msg098995.html

It is incorrect to infer semantics from usage.

the problem for which the original commit was intended should be fixed
within the callee intr_establish_xname() and not the caller:
pci_intr_find_intx_irq()

This was accomplished via:
http://mail-index.netbsd.org/source-changes/2018/09/20/msg099286.html

(cherry)

2018-09-23 02:27:25 UTC MAIN commitmail json YAML

Encapsulate pre-processing of registered (pirq,evtchn) pair in
preparation for API reorg.

(cherry)

2018-09-23 02:15:25 UTC MAIN commitmail json YAML

Switch from getopt to getopts - and as part of that, update the usage,
and the man page, to reflect modern usage rather than some ancient style
that getopt[s] does not support (options, and their args when they exist)
always come before non-option agrs.

While here, update uses of test(1) to avoid obsolescent forms (and
even when still defined, prefer sh structures over test when possible).

(kre)

2018-09-23 01:33:26 UTC pgoyette-compat commitmail json YAML

2018-09-23 01:00:00 UTC MAIN commitmail json YAML

Make XEN use the same api as native, for idt vector allocation
and registration.

lidt() placed in xenfunc() on maxv@ suggestion.

There should be no functional change due to this commit.

Tested on amd64 native and XEN.

(cherry)

2018-09-22 22:36:37 UTC pgoyette-compat commitmail json YAML

Add dummy file since the compat_16 code assumes that there might be
some MD code here.

(pgoyette)

2018-09-22 22:21:47 UTC pgoyette-compat commitmail json YAML

2018-09-22 17:52:24 UTC jdolecek-ncqfixes commitmail json YAML

2018-09-22 17:50:09 UTC jdolecek-ncqfixes commitmail json YAML

remove explicit ata_channel_start() calls, it's no longer necessary
now that ata_xfer's are allocated via pool and not really limited;
replace by just a callout to restart the processing for rare cases
where system runs out of memory

(jdolecek)

2018-09-22 17:13:30 UTC MAIN commitmail json YAML

2018-09-22 16:22:24 UTC MAIN commitmail json YAML

2018-09-22 16:14:25 UTC jdolecek-ncqfixes commitmail json YAML

fix use-after-free in wd(4) dump, detected by switch to the pool

change code in wd_dumpblocks() to use it's own non-pool ata_xfer,
which skips the deallocation step and thus keeps the contents when the I/O
is finished

(jdolecek)

2018-09-22 13:48:22 UTC MAIN commitmail json YAML

Avoid use of test -o for when this is used as part of an INSTALL system
and the SMALL test does not support -o

(kre)

2018-09-22 13:17:46 UTC MAIN commitmail json YAML

2018-09-22 12:56:16 UTC MAIN commitmail json YAML

Unreference iwic (now removed), forgot that.

(maxv)

2018-09-22 12:54:34 UTC MAIN commitmail json YAML

2018-09-22 12:41:01 UTC MAIN commitmail json YAML

2018-09-22 12:26:27 UTC MAIN commitmail json YAML

2018-09-22 12:24:04 UTC MAIN commitmail json YAML

- Determine KERN_AS automatically depending on whether OPT_MODULAR is
  set or not, in the same way as libcompat.

- Specify OPT_MODULAR in the port Makefile instead of KERN_AS.

Now, KERN_AS=library is used for kernels without module(7) for all ports.

OK christos

(rin)

2018-09-22 12:20:32 UTC jdolecek-ncqfixes commitmail json YAML

revert atabus_alloc_drives() to use KM_NOSLEEP again - it's called with
ch_lock held hence cannot actually sleep, fixing is out of scope of the branch

(jdolecek)

2018-09-22 12:19:11 UTC MAIN commitmail json YAML

2018-09-22 12:05:52 UTC MAIN commitmail json YAML

No need to specify COMPAT_AS anymore.
Now, it is automatically determined from OPT_MODULAR.

(rin)

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

Use fdt_open_into instead of fdt_move to load the DTB since we may make
changes to the tree after loading it. When we are done making changes,
call fdt_pack.

(jmcneill)

2018-09-22 11:43:24 UTC pgoyette-compat commitmail json YAML

Don't build the "monolithic" compat_netbsd32 module, it is replaced by
the new version-specific modules.

(pgoyette)

2018-09-22 11:41:35 UTC pgoyette-compat commitmail json YAML

Mark the old compat_netbsd32 module as obsolete - it is replaced by the
new version-specific modules

(pgoyette)

2018-09-22 10:49:09 UTC pgoyette-compat commitmail json YAML

Since the caller passes the address of our mutex, use it rather than
trying to reference it via global symbol (which might not exist).

(pgoyette)

2018-09-22 10:42:00 UTC pgoyette-compat commitmail json YAML

Forward-declare some structs so we can use pointers to them in
function declarations.

(pgoyette)

2018-09-22 10:33:51 UTC pgoyette-compat commitmail json YAML

When the compat code needs to callback to the original code, we cannot
call directly via the routines' global symbols, since the original code
might not be built-in.  So, the original code that calls compat code
needs to pass in the addresses of the callbacks.  This allows for the
compat code to be built whether or not the original (calling) code is
included.

XXX Done for cryptodev, will need to do the same thing for ccd(4) and
XXX vnd(4)

(pgoyette)

2018-09-22 10:30:53 UTC pgoyette-compat commitmail json YAML

Missed this in previous files.* changes

(pgoyette)

2018-09-22 10:30:00 UTC pgoyette-compat commitmail json YAML

Include the compat code whether or not the calling device or filesystem
exists.

(pgoyette)

2018-09-22 09:26:49 UTC jdolecek-ncqfixes commitmail json YAML

use KM_SLEEP in atabus_alloc_drives() to avoid spurious failures; this is
not called from interrupt context

(jdolecek)

2018-09-22 09:23:00 UTC jdolecek-ncqfixes commitmail json YAML

separate ata_xfer slot allocation and the memory allocation, so that
there can be more queued xfers than number of supported slots by controller,
and use a pool instead of custom pre-allocation

primarily to help PR kern/52614

remove no longer needed custom wd(4) logic for flush cache

switch also wd(4) trim/suspend/setcache/wdioctlstrategy to sleep waiting
for the memory, they are all called from process context and this
avoids spurious failures

(jdolecek)

2018-09-22 05:24:22 UTC MAIN commitmail json YAML

ixg and ixv depend on mii and mii_phy.

(nakayama)

2018-09-22 04:56:28 UTC pgoyette-compat commitmail json YAML

2018-09-22 04:53:41 UTC MAIN commitmail json YAML

Convert from getopt to getopts and fix an obvious bug with the
wayy TESTSPEC was used.

(kre)

2018-09-22 04:23:22 UTC pgoyette-compat commitmail json YAML

Alpha GENERIC requires compat_09 for osf1 compat

(pgoyette)

2018-09-22 03:31:40 UTC pgoyette-compat commitmail json YAML

Use attribute compat_sunos32 rather than duplicating compat_sunos
(config(1) doesn't like duplication)

(pgoyette)

2018-09-22 03:29:51 UTC MAIN commitmail json YAML

Convert from getopt to getopts    (script is slightly smaller as a
result, but not enough to save a block ... but if /usr/bin/getopt is
not used elsewhere, and it should not be, it will no longer be required.)

(kre)

2018-09-21 23:05:35 UTC pgoyette-compat commitmail json YAML

Make a note that the code does not exist in loadable modules, only in
built-in compat modules.

(pgoyette)

2018-09-21 18:38:26 UTC MAIN commitmail json YAML

2018-09-21 18:33:08 UTC MAIN commitmail json YAML

- don't return random values to the caller
- don't leak fd's.

(christos)

2018-09-21 16:53:20 UTC MAIN commitmail json YAML

catch up to files.arm's recent "opt_console.h" changes

(jakllsch)

2018-09-21 12:04:10 UTC MAIN commitmail json YAML

2018-09-21 11:49:16 UTC MAIN commitmail json YAML

Avoid stack protector violation

'const int' is not a real constant in C and it cannot be used to define an
array with a number of elements, as it's turned into a variable length
array.

Triggered by GCC when building with more debug options.

(kamil)

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

Appease GCC with a kernel sanitizer

Add -Wno-maybe-uninitialized for radeon, a compiler warning is triggered
by a false positive.

(kamil)

2018-09-21 11:27:13 UTC MAIN commitmail json YAML

Appease GCC with a kernel sanitizer

Add -Wno-maybe-uninitialized for intel_sprite.c that is a false positive.

(kamil)

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

According to the grammar and examples the static table is defined with
"file" keyword, not "static".

(uwe)

2018-09-21 09:42:18 UTC MAIN commitmail json YAML

2018-09-21 08:43:18 UTC MAIN commitmail json YAML

no, put umbctl into netutil

(maxv)