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

2024-05-09 22:54:10 UTC Now

2017-06-02 23:39:08 UTC MAIN commitmail json YAML

Trigger a software interrupt if any packets were transmitted in
lan9118_start to workaround a possible issue where completion interrupts
are missed and the watchdog timer fires.

(jmcneill)

2017-06-02 22:20:21 UTC MAIN commitmail json YAML

Create /dev/openfirm device for ofctl(8).

(jmcneill)

2017-06-02 22:08:00 UTC MAIN commitmail json YAML

enable font loading / screen resizing

(macallan)

2017-06-02 21:26:20 UTC MAIN commitmail json YAML

Sleep before reboot/shutdown to let uart fifo flush

(jmcneill)

2017-06-02 21:20:47 UTC MAIN commitmail json YAML

Fix the fix by removing redundant lines.  Thanks chuq.

(skrll)

2017-06-02 21:16:42 UTC MAIN commitmail json YAML

Add driver for ARM Motherboard Express uATX system control registers. Use
this to make "poweroff" DTRT in qemu (and hopefully on real hardware too).

(jmcneill)

2017-06-02 20:16:06 UTC MAIN commitmail json YAML

2017-06-02 19:58:31 UTC MAIN commitmail json YAML

Fix up some instructions.  Prompted by chuq.

(skrll)

2017-06-02 19:44:06 UTC MAIN commitmail json YAML

Convert EV_SET(2) back into macro again

This retains compatibility with other moder BSDs if someone uses:
"#ifdef EV_SET".

This code also casts the last parameter to intptr_t, as other BSDs keep
this argument with a different type void*.

This change renames function EV_SET to EV_SET_, and calls it from EV_SET().

Credit to <christos> and <kre> for feedback.

Sponsored by <The NetBSD Foundation>

(kamil)

2017-06-02 19:35:54 UTC MAIN commitmail json YAML

enable font loading and screen resizing, now that the glyph cache can be
reconfigured whenever needed

(macallan)

2017-06-02 19:33:51 UTC MAIN commitmail json YAML

- add a cookie to show_screen_cb()
- call show_screen_cb() when loading a font into a visible screen, so this can
  be used to track parameters by drivers that use the glyph cache

(macallan)

2017-06-02 19:30:10 UTC MAIN commitmail json YAML

2017-06-02 19:10:19 UTC MAIN commitmail json YAML

pool_init does not copy its name argument
therefore don't pass in a stack allocated buffer

vmstat -mv shows pool(s) with broken name(s)

use the name argument passed into wqinput_create directly
which is a static string in all 4 callee cases

(workqueue_create/workqueue_init copies the name argument)

(para)

2017-06-02 18:19:33 UTC MAIN commitmail json YAML

Update to rawrite32 1.0.5 (new signatures to avoid scary windows
warnings)

(martin)

2017-06-02 17:42:51 UTC MAIN commitmail json YAML

2017-06-02 15:22:47 UTC MAIN commitmail json YAML

2017-06-02 15:09:16 UTC MAIN commitmail json YAML

gpiokeys depends on sysmon_envsys and sysmon_power

(jmcneill)

2017-06-02 14:30:58 UTC MAIN commitmail json YAML

Add fdt glue for ARM PrimeCell UART (PL011).

(jmcneill)

2017-06-02 13:53:29 UTC MAIN commitmail json YAML

2017-06-02 13:12:33 UTC MAIN commitmail json YAML

Fix interrupt-map support on vexpress-a15 and try to avoid unnecessary
calls to kmem_alloc.

(jmcneill)

2017-06-02 11:04:01 UTC MAIN commitmail json YAML

Add fdt glue for ARM PrimeCell Multimedia Card Interface (MMCI).

(jmcneill)

2017-06-02 11:01:15 UTC MAIN commitmail json YAML

Separate clock frequency from maximum supported bus frequency.

(jmcneill)

2017-06-02 10:46:07 UTC MAIN commitmail json YAML

2017-06-02 09:46:57 UTC MAIN commitmail json YAML

rename crypto_mtx to cryptodev_mtx

It is used by cryptodev.c and ocryptodev.c only.

(knakahara)

2017-06-02 08:16:52 UTC MAIN commitmail json YAML

- Print NVM Image Version, PHY FW Revision, NVM Map version and OEM NVM
  Image version
- s/TrackID/ETrackID/

(msaitoh)

2017-06-02 03:41:21 UTC MAIN commitmail json YAML

Assert inph_locked on ipsec_pcb_skip_ipsec (was IPSEC_PCB_SKIP_IPSEC)

The assertion confirms SP caches are accessed under inph lock (solock).

(ozaki-r)

2017-06-02 03:39:29 UTC MAIN commitmail json YAML

Rename IPSEC_PCBHINT_MAYBE to IPSEC_PCBHINT_UNKNOWN

MAYBE is maybe unclear.

(ozaki-r)

2017-06-02 03:34:10 UTC MAIN commitmail json YAML

Get rid of redundant NULL check (NFC)

(ozaki-r)

2017-06-02 03:32:51 UTC MAIN commitmail json YAML

2017-06-02 01:50:48 UTC MAIN commitmail json YAML

Add a new test case "nested_arith" (that is, things like $(( 1 + $(( 2 )) ))
which will currently fail (some of the sub-tests, but this one stops on
first failure, so the test simply fails.)  This will be corrected later today.

(kre)

2017-06-02 01:48:13 UTC MAIN commitmail json YAML

Add 3 new subtests to the shell_params test case.  These test currently
broken behaviour (so for now, 3 of 15 subtests will fail).  This will
be corrected later today.

(kre)

2017-06-02 01:45:06 UTC MAIN commitmail json YAML

One more weird test of parsing (and correctly understanding) words
whose meaning is defined entirely by context.

For those who read commit messages, and want a (small) challenge,
work out where (and what) to insert as punctuation/operator chars
in the following to produce 3 ines of output, and what those will be:

for in in in do in do case in in in echo do do echo in esac done

(There are no comments, quotes of any kind, or any kind of sub-shell,
including cmd substitutions)  With correct non alpha-numeric chars added,
it works.

(kre)

2017-06-02 01:38:45 UTC MAIN commitmail json YAML

Guard against EVN being set, and possibly referencing an unset
variable, when we are running tests with sh -u

(kre)

2017-06-02 01:22:50 UTC MAIN commitmail json YAML

Change the prefix of function names of SADB API handlers to key_api_

By doing so we can easily distinguish them from other utility functions.
And so we can easily know that they are all called from key_parse and
applied assumptions that the arguments are always non-NULL and they
are always called from userland, i.e., never called from interrupt
context (softint). As a result, we can omit some tedious assertions
in the functions.

(ozaki-r)

2017-06-02 01:18:51 UTC MAIN commitmail json YAML

Add IPSEC_KEY_DEBUG

Enable the debugging feature of IPsec key (sysctl net.key.debug)
on rump kernels if the ATF test is run with IPSEC_KEY_DEBUG=true.

(ozaki-r)

2017-06-02 01:07:53 UTC MAIN commitmail json YAML

The "ranges" property provides a means of translating between the
address space of a bus and the address space of the bus node's parent.
Translate addresses using these rules in fdtbus_get_reg{,64}.

(jmcneill)

2017-06-02 00:55:26 UTC MAIN commitmail json YAML

Rewrite interrupt-map support based on ePAPR spec.

(jmcneill)

2017-06-02 00:32:12 UTC MAIN commitmail json YAML

localcount_init() can't fail because percpu_alloc() can't fail.
remove the check and change the return type to void.

(chs)

2017-06-02 00:16:28 UTC MAIN commitmail json YAML

2017-06-02 00:09:56 UTC MAIN commitmail json YAML

Attach Tegra124 DVFS to /cpus/cpu0 now that another driver is claiming the
/cpus node.

(jmcneill)

2017-06-02 00:01:00 UTC MAIN commitmail json YAML

Allow devices to attach to cpu devices

(jmcneill)

2017-06-01 17:01:18 UTC MAIN commitmail json YAML

Configure IRQ for active high polarity, push-pull driver.

(jmcneill)

2017-06-01 16:59:20 UTC MAIN commitmail json YAML

Add flags to control IRQ polarity and buffer type. These can be set by
the bus glue to switch to active high and/or push-pull configurations.

(jmcneill)

2017-06-01 16:57:13 UTC MAIN commitmail json YAML

The sdmmc layer will send single requests up to MAXPHYS (65536) in size.
The length field on PL180/PL181 is 16-bit, and can only support up to
65535 byte transfers.

Workaround this for now by setting the SMC_CAPS_SINGLE_ONLY flag to only
do single block (512-byte) transfers. While here set SMC_CAPS_4BIT_MODE
as well.

(jmcneill)

2017-06-01 15:45:02 UTC MAIN commitmail json YAML

Add tests for btowc(3)/wctob(3) and enable compilation of the test for
digittoint(3).

The digittoint(3) test is skipped since we don't provide that function yet.

One of the test cases for btowc(3) is also skipped, since it tests conversion
to Unicode---whereas our wchar_t representation is locale-dependent.

(perseant)

2017-06-01 09:59:13 UTC MAIN commitmail json YAML

Update sets lists for new modules

(pgoyette)

2017-06-01 09:58:27 UTC MAIN commitmail json YAML

2017-06-01 09:50:35 UTC MAIN commitmail json YAML

Simplify; we can assume the arguments are always non-NULL

(ozaki-r)

2017-06-01 09:44:30 UTC MAIN commitmail json YAML

2017-06-01 08:49:35 UTC MAIN commitmail json YAML

swcrypto0 was initialized twice. Fix like pseudo network interfaces.

ok by pgoyette@n.o.

(knakahara)

2017-06-01 03:56:47 UTC MAIN commitmail json YAML

Test TCP communications over IPsec transport mode with ESP or AH

This tests SP caches of PCB.

(ozaki-r)

2017-06-01 03:51:47 UTC MAIN commitmail json YAML

Remove a unused local variable

(ozaki-r)

2017-06-01 03:51:09 UTC MAIN commitmail json YAML

Return a return value of key_senderror as usual

(ozaki-r)

2017-06-01 02:45:15 UTC MAIN commitmail json YAML

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

(chs)

2017-06-01 02:03:07 UTC MAIN commitmail json YAML

Omit mention of a script that doesn't actually exist anywhere
pointed out by xmj, thanks

(maya)

2017-05-31 23:54:17 UTC MAIN commitmail json YAML

vmem_alloc() with VM_SLEEP cannot fail, so percpu_alloc() cannot fail either.

(chs)

2017-05-31 23:53:30 UTC MAIN commitmail json YAML

assert that vmem_alloc() with VM_SLEEP does not fail.

(chs)

2017-05-31 22:02:06 UTC MAIN commitmail json YAML

Don't prefix include guards by _, suggested by riastradh

(maya)

2017-05-31 21:15:47 UTC MAIN commitmail json YAML

The previous change might actually be less generic.
prepend by _MAKE, to be sure.

(maya)

2017-05-31 21:07:03 UTC MAIN commitmail json YAML

2017-05-31 17:56:01 UTC MAIN commitmail json YAML

2017-05-31 14:41:07 UTC MAIN commitmail json YAML

And now do what 1.128 should have done, and put back the (now re-)used
variable that had earlier been deleted, when it's use was removed in
1.126, but wasn't restored in 1.127.

(kre)

2017-05-31 14:37:19 UTC MAIN commitmail json YAML

Revert previous.  Removing unused variable declarations is only a good
idea when the variable is, in fact, unused.

(kre)

2017-05-31 14:18:36 UTC MAIN commitmail json YAML

tmux-2.5 out.

(wiz)

2017-05-31 11:44:44 UTC MAIN commitmail json YAML

add todo comment. pointed out by s-yamaguchi@IIJ

(knakahara)

2017-05-31 11:09:22 UTC MAIN commitmail json YAML

Fix __PIC__ profiled binaries

(martin)

2017-05-31 11:08:35 UTC MAIN commitmail json YAML

In the -m32 test, additionally test profiled binaries.

(martin)

2017-05-31 10:15:18 UTC MAIN commitmail json YAML

Remove unused variabe (I reverted too much in previous commit!)

(pgoyette)

2017-05-31 10:08:24 UTC MAIN commitmail json YAML

Partially revert previous.  Rather than completely removing the loop
around calls to x86_pause(), just drastically reduce the repeat count.
It's still good to have some real delay here (among other things, for
letting the TSCs drift).

As discussed on IRC

(pgoyette)

2017-05-31 09:53:35 UTC MAIN commitmail json YAML

Split the timer handler into small functions (NFC)

(ozaki-r)

2017-05-31 09:52:43 UTC MAIN commitmail json YAML

Introduce key_fill_replymsg to dedup some routines

(ozaki-r)

2017-05-31 09:51:31 UTC MAIN commitmail json YAML

Convert some sanity checks to CTASSERT

(ozaki-r)

2017-05-31 09:50:04 UTC MAIN commitmail json YAML

Move key_init_spidx_bymsghdr to just before spidx is used (NFC)

(ozaki-r)

2017-05-31 08:19:44 UTC MAIN commitmail json YAML

remove obsoleted comment. pointed out by s-yamaguchi@IIJ.

(knakahara)

2017-05-31 05:05:38 UTC MAIN commitmail json YAML

Use key_getsah more (NFCI)

(ozaki-r)

2017-05-31 04:02:44 UTC MAIN commitmail json YAML

Avoid using variable newsp for an existing SP (NFC)

(ozaki-r)

2017-05-31 04:02:05 UTC MAIN commitmail json YAML

Simplify; assignment just works for spidx (NFC)

(ozaki-r)

2017-05-31 04:01:22 UTC MAIN commitmail json YAML

Sanity-check and return on error early

And delay initializing local variables until they're actually used.

(ozaki-r)

2017-05-31 02:17:49 UTC MAIN commitmail json YAML

fix: crypto_unregister didn't work.

(knakahara)

2017-05-31 01:50:19 UTC MAIN commitmail json YAML

prevent coredumps by skipping everything early if we are not counting.

(christos)

2017-05-31 01:31:08 UTC MAIN commitmail json YAML

Hide details of the sadb message format (NFCI)

Especially src0 + 1 and dst0 + 1 shouldn't be exposed.

(ozaki-r)

2017-05-31 01:03:01 UTC MAIN commitmail json YAML

Document transition of EV_SET() from a macro to a static inline function

Sponsored by <The NetBSD Foundation>

(kamil)

2017-05-31 00:45:59 UTC MAIN commitmail json YAML

Convert EV_SET from macro to static __inline function

LLDB introduced support for kevent(2) and it contains the following function:

Status MainLoop::RunImpl::Poll() {
  in_events.resize(loop.m_read_fds.size());
  unsigned i = 0;
  for (auto &fd : loop.m_read_fds)
    EV_SET(&in_events[i++], fd.first, EVFILT_READ, EV_ADD, 0, 0, 0);
  num_events = kevent(loop.m_kqueue, in_events.data(), in_events.size(),
                      out_events, llvm::array_lengthof(out_events), nullptr);
  if (num_events < 0)
    return Status("kevent() failed with error %d\n", num_events);
  return Status();
}

It works on FreeBSD and MacOSX, however it broke on NetBSD.

Culrpit line:
  EV_SET(&in_events[i++], fd.first, EVFILT_READ, EV_ADD, 0, 0, 0);

FreeBSD defined EV_SET() as a macro this way:
#define EV_SET(kevp_, a, b, c, d, e, f) do {    \
        struct kevent *kevp = (kevp_);          \
        (kevp)->ident = (a);                    \
        (kevp)->filter = (b);                  \
        (kevp)->flags = (c);                    \
        (kevp)->fflags = (d);                  \
        (kevp)->data = (e);                    \
        (kevp)->udata = (f);                    \
} while(0)

NetBSD version was different:
#define EV_SET(kevp, a, b, c, d, e, f)                                  \
do {                                                                    \
        (kevp)->ident = (a);                                            \
        (kevp)->filter = (b);                                          \
        (kevp)->flags = (c);                                            \
        (kevp)->fflags = (d);                                          \
        (kevp)->data = (e);                                            \
        (kevp)->udata = (f);                                            \
} while (/* CONSTCOND */ 0)

This resulted in heap damage, as keyp was incremented every time value was
assigned to (keyp)->.

As suggested by Joerg, convert this macro on NetBSD to static __inline
function.

Credit to <coypu> for asan+ubsan research wiki entry that helped to narrow
down the bug.
Credit to <joerg> for peer-review

Sponsored by <The NetBSD Foundation>

(kamil)

2017-05-31 00:22:06 UTC MAIN commitmail json YAML

Also add the debug entries for the new test programs.

Thanks, perseant, for increasing/improving our test coverage.

(pgoyette)

2017-05-31 00:19:17 UTC MAIN commitmail json YAML

Do not pause many times between testing if the CPU can go.

This only impacts QEMU as QEMU's implementation of pause is
significantly slower than its implementation of nop.

PR kern/51623: running qemu-x86_64 with -smp 4 - the additional
CPUs don't start.

(maya)

2017-05-31 00:18:21 UTC MAIN commitmail json YAML

Add new locale tests to distrib sets, thanks pgoyette@ for the reminder

(perseant)

2017-05-30 23:44:02 UTC MAIN commitmail json YAML

Add test cases for sprintf/sscanf/strto{d,l} and the is* and isw* ctype functions, for single-byte encodings

(perseant)

2017-05-30 22:55:27 UTC MAIN commitmail json YAML

2017-05-30 22:00:25 UTC MAIN commitmail json YAML

2017-05-30 21:12:41 UTC MAIN commitmail json YAML

Allow ARM FDT drivers to register per-cpu init callbacks. Run through this
callback list when a CPU hatches instead of calling gtmr_init_cpu_clock
directly.

(jmcneill)

2017-05-30 20:32:08 UTC MAIN commitmail json YAML

mention RTSYS CT57A radio cable

(jnemeth)

2017-05-30 20:26:26 UTC MAIN commitmail json YAML

add RTSYS CT57A to list of FTDI based USB serial devices

(jnemeth)

2017-05-30 20:16:08 UTC MAIN commitmail json YAML

2017-05-30 20:13:35 UTC MAIN commitmail json YAML

add RT Systems Inc. CT57A Radio Cable for programming Yaesu FT-60 radios
(and possibly others)

(jnemeth)

2017-05-30 17:09:17 UTC MAIN commitmail json YAML

add assertions that would have caught the recent audio mmap bugs.

(chs)

2017-05-30 15:55:26 UTC MAIN commitmail json YAML

2017-05-30 15:54:38 UTC MAIN commitmail json YAML

xsrc/external/mit/xf86-video-geode/dist/src/geode_common.c@1.2 / diff / nxr@1.2
xsrc/external/mit/xf86-video-geode/dist/src/geode_dcon.c@1.3 / diff / nxr@1.3
xsrc/external/mit/xf86-video-geode/dist/src/geode_ddc.c@1.2 / diff / nxr@1.2
xsrc/external/mit/xf86-video-geode/dist/src/geode_driver.c@1.2 / diff / nxr@1.2
xsrc/external/mit/xf86-video-geode/dist/src/geode_msr.c@1.7 / diff / nxr@1.7
xsrc/external/mit/xf86-video-geode/dist/src/gx_accel.c@1.5 / diff / nxr@1.5
xsrc/external/mit/xf86-video-geode/dist/src/gx_cursor.c@1.2 / diff / nxr@1.2
xsrc/external/mit/xf86-video-geode/dist/src/gx_driver.c@1.4 / diff / nxr@1.4
xsrc/external/mit/xf86-video-geode/dist/src/gx_randr.c@1.4 / diff / nxr@1.4
xsrc/external/mit/xf86-video-geode/dist/src/gx_rotate.c@1.2 / diff / nxr@1.2
xsrc/external/mit/xf86-video-geode/dist/src/gx_video.c@1.2 / diff / nxr@1.2
xsrc/external/mit/xf86-video-geode/dist/src/lx_cursor.c@1.4 / diff / nxr@1.4
xsrc/external/mit/xf86-video-geode/dist/src/lx_display.c@1.2 / diff / nxr@1.2
xsrc/external/mit/xf86-video-geode/dist/src/lx_driver.c@1.5 / diff / nxr@1.5
xsrc/external/mit/xf86-video-geode/dist/src/lx_exa.c@1.4 / diff / nxr@1.4
xsrc/external/mit/xf86-video-geode/dist/src/lx_memory.c@1.2 / diff / nxr@1.2
xsrc/external/mit/xf86-video-geode/dist/src/lx_output.c@1.2 / diff / nxr@1.2
xsrc/external/mit/xf86-video-geode/dist/src/lx_panel.c@1.2 / diff / nxr@1.2
xsrc/external/mit/xf86-video-geode/dist/src/lx_video.c@1.2 / diff / nxr@1.2
xsrc/external/mit/xf86-video-geode/dist/src/panel.c@1.2 / diff / nxr@1.2

need to include xorg-server.h

(christos)

2017-05-30 13:49:01 UTC MAIN commitmail json YAML

Remove references to cpu_swapout(9) and cpu_exit(9)

Those functions were removed several years back, discussed on tech-kern:
<http://mail-index.netbsd.org/tech-kern/2017/05/20/msg021913.html>

(abhinav)

2017-05-30 13:33:16 UTC MAIN commitmail json YAML

Forced commit for previous (1.2) rev commit message:
don't dereference a NULL pointer in can_setsockaddr() if we didn't bind
to an interface.

(bouyer)

2017-05-30 13:30:51 UTC MAIN commitmail json YAML

Needs <sys/types.h> not <machine/int_types.h>

(bouyer)

2017-05-30 10:27:54 UTC MAIN commitmail json YAML

2017-05-30 09:39:53 UTC MAIN commitmail json YAML

Use key_senderror

(ozaki-r)

2017-05-30 09:39:08 UTC MAIN commitmail json YAML

Send up an error message on error as well as others

(ozaki-r)

2017-05-30 08:29:24 UTC MAIN commitmail json YAML

2017-05-30 05:35:03 UTC MAIN commitmail json YAML

Add the new t_toupper to unbreak the build

(pgoyette)

2017-05-30 02:21:11 UTC MAIN commitmail json YAML

Include auvolconv.o in the audio driver, even if there are currently no
children needing it.  Children which need this can be created later (via
loading of a module, such as pad).

(pgoyette)

2017-05-30 02:11:03 UTC MAIN commitmail json YAML

2017-05-30 01:31:07 UTC MAIN commitmail json YAML

Make refcnt operations of SA and SP atomic

Using atomic opeartions isn't optimal and should be optimized somehow
in the future though, the change allows a kernel with NET_MPSAFE to
run out a benchmark, which is useful to know performance improvement
and degradation by code changes.

(ozaki-r)

2017-05-29 23:22:00 UTC MAIN commitmail json YAML

Remove reference to CONSPEED, this value comes from fdt data

(jmcneill)

2017-05-29 23:21:12 UTC MAIN commitmail json YAML

2017-05-29 23:13:03 UTC MAIN commitmail json YAML

2017-05-29 22:54:07 UTC MAIN commitmail json YAML

Add DEBUG tracing to arithmetic $(( )) parsing & evaluation.
NFC for non-DEBUG shells.

(kre)

2017-05-29 22:27:47 UTC MAIN commitmail json YAML

Add a new test case wrap_strip based upon strip (ie: cut&paste.. to start)
but with \ newline line continuations inserted at strange places.

For the shell as it is today, since strip passes, wrap_strip should
automaticallty pass as well (and does), as the \ newline combination
is simply removed, producing identical input to that of strip.

However, for accurate line counting ($LINENO: coming soon) newlines (no
matter the context) cannot simply "go away" - we have to know where they
occur(ed) (perhaps long after the text was read)  so we know what line
number we are actually processing.  This new test case is (perhaps just
part) of future-proofing that the modified code does not break anything.

(kre)

2017-05-29 22:21:00 UTC MAIN commitmail json YAML

Now that the shell is protecting its internal fds properly, moving
them whenever the user tries to step on one, we can change our behaviour
back to what the kernel considers to be that of a well behaved shell
(wrt file descriptor usage).  If our user causes problems, we will soon
move into recalcitrant process territory, but that should normally be
rare.  This should reduce kernel overheads a little.

(kre)

2017-05-29 14:03:23 UTC MAIN commitmail json YAML

More DEBUG mode changes.  As usual, read the source if you care.

(kre)

2017-05-29 10:43:28 UTC MAIN commitmail json YAML

NFC (normal builds): DEBUG only change - convert parser to newer trace method.

parser tracing is useful when debugging the parser (which admittedly is
fairly often...) but there is a lot of it, and it gets in the way when
looking at something else.  Now we can turn it off when not wanted.

(kre)

2017-05-29 10:11:10 UTC MAIN commitmail json YAML

Don't make isr->sav NULL

We assume it's always non-NULL.

(ozaki-r)

2017-05-29 09:02:46 UTC MAIN commitmail json YAML

strictly use crypto_checkdriver(i) instead of using crypto_drivers[i] directly.

(knakahara)

2017-05-29 08:46:23 UTC MAIN commitmail json YAML

New sentence, new line. Fix typos. More consistent grammar.
Comment out empty EXAMPLES section. Remove unnecessary macros.

(wiz)

2017-05-29 08:42:33 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2017-05-29 08:41:57 UTC MAIN commitmail json YAML

New sentence, new line. Remove trailing whitespace.
Fix typos. Use more markup. Sort sections. Sort SEE ALSO.

(wiz)

2017-05-29 08:03:13 UTC MAIN commitmail json YAML

Bump date for previous.

(wiz)

2017-05-29 07:09:20 UTC MAIN commitmail json YAML

Print MSI Message data in 32bits when the Extended Message Data Capable bit
is set.

(msaitoh)

2017-05-29 06:54:01 UTC MAIN commitmail json YAML

Add TU/Tango-Uniform --> "tits up"

(pgoyette)

2017-05-29 03:52:43 UTC MAIN commitmail json YAML

remove ugly profiling hack now that the compiler is fixed.

(christos)

2017-05-29 03:51:24 UTC MAIN commitmail json YAML

remove bogus indirect call for profiling (mcount)

(christos)

2017-05-29 03:41:54 UTC MAIN commitmail json YAML

Remove unmaintained (and probably unmaintainable) driver list

ok msaitoh@

(ozaki-r)

2017-05-29 02:55:49 UTC MAIN commitmail json YAML

Call in6_ifdetach only if in6_present (for rump)

Otherwise ifconfig -vlanif causes a panic on a rump_server without
the netinet6 library.

Reported by s-yamaguchi@IIJ

(ozaki-r)

2017-05-29 02:25:37 UTC MAIN commitmail json YAML

nvme(4): Don't set prp1 for DEL_IOCQ

> NVM_ADMIN_DEL_IOCQ does not need prp1 (just as NVM_ADMIN_DEL_IOSQ).
> Remove what is likely a cut'n'paste error from the *_ADD_* code.

from OpenBSD nvme.c r1.56.

(nonaka)

2017-05-29 02:24:00 UTC MAIN commitmail json YAML

nvme(4): Do not use bus_space_{read,write}_8() even on LP64 archs.

> some (broken) controllers require ordered split transfers.
> From linux a310acd7a7ea53533886c11bb7edd11ffd61a036

from OpenBSD nvme.c r1.53.

(nonaka)

2017-05-29 02:20:34 UTC MAIN commitmail json YAML

nvme(4): Mask non relevant bits when pritting version number.

from OpenBSD nvme.c r1.52.

(nonaka)

2017-05-29 01:51:55 UTC MAIN commitmail json YAML

Omit description of fstrans_mount/unmount too.

(riastradh)

2017-05-29 01:49:42 UTC MAIN commitmail json YAML

No more need to call fstrans_mount: vfs does for us now.

(riastradh)

2017-05-28 23:39:30 UTC MAIN commitmail json YAML

Add a facility for platform-specific callbacks and use it to remove most
of the Tegra-specific code from tegra_machdep.c.

Platform code matches on the compatible property of the root ("/") DT node
and allows for chip-specific implementations of the following:

- devmap: Return a 0-terminated list of static device map entries.
- bootstrap: Early initialization of platform-specific facilities.
- early_putchar: Provides an implementation of putchar for use in early
    debug messages.
- device_register: Platform-specific device register callback.
- reset: Platform-specific CPU reset implementation.
- consinit: Platform-specific console init implementation.

(jmcneill)

2017-05-28 23:32:14 UTC MAIN commitmail json YAML

Remove unused tegra_dma_tag

(jmcneill)

2017-05-28 23:31:41 UTC MAIN commitmail json YAML

Add a few bootconfig helpers:
- get_bootconf_string: returns a copy of the "value" part of a k=v pair
    as a string.
- match_bootconf_option: returns true if the "value" part of a k=v pair
    exists and the supplied val param is present in the beginning of the
    k=v pair's value.

(jmcneill)

2017-05-28 22:37:36 UTC MAIN commitmail json YAML

Cosmetic changes to Lua binding in bozohttpd.

- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
  doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
  manual. Those functions may throw (longjump) and leak data allocated
  by C function. In one case, I use luaL_Buffer, in the other case,
  I rearranged calls a bit.

(alnsn)

2017-05-28 21:36:18 UTC MAIN commitmail json YAML

Now that the scope of setting the gain is limited, the hack for /dev/sound
no longer applies.

(nat)

2017-05-28 21:15:58 UTC MAIN commitmail json YAML

Set the gain of play back, rather than altering the generated wave by a
factor of volume.

(nat)

2017-05-28 21:12:59 UTC MAIN commitmail json YAML

The scope of setting the gain for playback or recording is now limited to
operating on the volume of its virtual channel.

(nat)

2017-05-28 18:39:58 UTC MAIN commitmail json YAML

Revert previous, the needed signals are not easily accessible on
CUBIETRUCK

(martin)

2017-05-28 18:23:22 UTC MAIN commitmail json YAML

New sentence, new line. Punctuation fixes.
Get rid of unnecessary \*[Lt], \*[Gt].

(wiz)

2017-05-28 16:39:42 UTC MAIN commitmail json YAML

Restrict vgone() to suspended file systems only.

Welcome to 7.99.75, old file system modules would cause a diagnostic
assertion with new kernel.

(hannken)

2017-05-28 16:38:55 UTC MAIN commitmail json YAML

Change ext2fs to use vcache_new like we did for ffs:
- Change ext2fs_valloc to return an inode number.
- Make ext2fs_makeinode private to ext2fs_vnops.c and
  pass vattr instead of mode.

(hannken)

2017-05-28 16:37:55 UTC MAIN commitmail json YAML

No need to call vgone() on the just created in file system log vnode,
vput() is sufficient.

(hannken)

2017-05-28 16:37:16 UTC MAIN commitmail json YAML

Suspend file system for vgone().

(hannken)

2017-05-28 16:36:37 UTC MAIN commitmail json YAML

When a vnode has an invalid type because the type changed on the
server replace vgone() with new operation smbfs_uncache() that
removes the vnode from the name cache and changes the vcache key
to an unique and illegal key to prevent further lookups.

(hannken)

2017-05-28 16:35:47 UTC MAIN commitmail json YAML

Add a helper to propagate file system suspension for vrevoke().

Take care to retry suspension on interrupt as vrevoke must succeed.

(hannken)

2017-05-28 15:55:11 UTC MAIN commitmail json YAML

Add facility for fdt devices to register reset and poweroff handlers.
Use this to remove as3722-specific code in tegra_machdep.c

(jmcneill)

2017-05-28 14:53:13 UTC MAIN commitmail json YAML

undo previous; we don't have any archs where socklen_t != uint32_t.

(christos)

2017-05-28 14:49:00 UTC MAIN commitmail json YAML

2017-05-28 14:16:05 UTC MAIN commitmail json YAML

release key_mtx on return path.

(mlelstv)

2017-05-28 14:14:22 UTC MAIN commitmail json YAML

Redo mkoptions.sh .. much better this way, now fully automated
option sorting (no longer required option.list to be manually
sorted by long option name) and properly handles conditional
options.  Cleaner output format as well.

This allows option.list to be reordered to group related options
together ... also added more comments to it.

(kre)

2017-05-28 13:55:07 UTC MAIN commitmail json YAML

Needs %zu fix for sizeof as well.

(kre)

2017-05-28 11:15:59 UTC MAIN commitmail json YAML

Add (commented out) can bus options, CUBIETRUCK is also A20 based.

(martin)

2017-05-28 09:35:02 UTC MAIN commitmail json YAML

Fix size_t format strings

(martin)

2017-05-28 05:27:14 UTC MAIN commitmail json YAML

g/c some unused / #if 0-ed goop, support firmware-provided EDID, get rid of
private list of video modes
tested on macppc, should Just Work(tm) on sparc64

(macallan)

2017-05-28 04:12:13 UTC MAIN commitmail json YAML

bt_lock is now used as the audio interrupt lock.  This is more appropriate
as the interrupt lock deals with the hardware.

btsco audio works again with the new audio changes.

(nat)

2017-05-28 00:40:21 UTC MAIN commitmail json YAML

2017-05-28 00:38:40 UTC MAIN commitmail json YAML

Add CPUs ("/cpus" node) driver. CPUs is a container of cpu nodes.

(jmcneill)

2017-05-28 00:38:01 UTC MAIN commitmail json YAML

Arrange for set -o and $- output to be sorted, rather than more
or less random (and becoming worse as more options are added.)
Since the data is known at compile time, sort at compile time,
rather than at run time.

(kre)

2017-05-28 00:34:51 UTC MAIN commitmail json YAML

Add a generic armv7 bus dma tag.

(jmcneill)

2017-05-28 00:32:46 UTC MAIN commitmail json YAML

Move children of armperiph to the "mpcorebus" interface attribute and have
armperiph declare support for it.

(jmcneill)

2017-05-28 00:30:49 UTC MAIN commitmail json YAML

Don't assume that the root autoconfiguration device is named "mainbus".

(jmcneill)

2017-05-28 00:29:55 UTC MAIN commitmail json YAML

If the "frequency" property is not specified, try to use the value in
CNTFRQ. Firmware should have already set this for us.

(jmcneill)

2017-05-28 00:28:17 UTC MAIN commitmail json YAML

Change first pass from 1 to 0.

(jmcneill)

2017-05-27 22:53:29 UTC MAIN commitmail json YAML

Add options CAN and pseudo-device canloop to ALL kernel configs.
Add the same commented out to i386/amd64 GENERIC and OLIMEXLIME2 (A20-based).
Also add commented out awincan0 in OLIMEXLIME2.

(bouyer)

2017-05-27 21:06:26 UTC MAIN commitmail json YAML

Update status of bouyer-socketcan

(bouyer)

2017-05-27 21:05:02 UTC MAIN commitmail json YAML

2017-05-27 21:02:56 UTC MAIN commitmail json YAML

merge the bouyer-socketcan branch to HEAD.

CAN stands for Controller Area Network, a broadcast network used
in automation and automotive fields. For example, the NMEA2000 standard
developped for marine devices uses a CAN network as the link layer.

This is an implementation of the linux socketcan API:
https://www.kernel.org/doc/Documentation/networking/can.txt
you can also see can(4).

This adds a new socket family (AF_CAN) and protocol (PF_CAN),
as well as the canconfig(8) utility, used to set timing parameter of
CAN hardware. Also inclued is a driver for the CAN controller
found in the allwinner A20 SoC (I tested it with an Olimex lime2 board,
connected with PIC18-based CAN devices).

There is also the canloop(4) pseudo-device, which allows to use
the socketcan API without CAN hardware.

At this time the CANFD part of the linux socketcan API is not implemented.
Error frames are not implemented either. But I could get the cansend and
canreceive utilities from the canutils package to build and run with minimal
changes. tcpudmp(8) can also be used to record frames, which can be
decoded with etherreal.

(bouyer)

2017-05-27 20:26:44 UTC MAIN commitmail json YAML

tegra_dma_bootstrap is no more

(jmcneill)

2017-05-27 20:26:27 UTC MAIN commitmail json YAML

2017-05-27 13:55:58 UTC MAIN commitmail json YAML

Be even more carefull with devices that support only play back OR capture.

Addresses PR kern/52256.

(nat)

2017-05-27 13:11:50 UTC MAIN commitmail json YAML

Skip the test of non-posix behaviour if we are deliberately trying
to be posix compatible (POSIXLY_CORRECT is set).

(kre)

2017-05-27 12:15:34 UTC MAIN commitmail json YAML

Revert to previous as what was the HIRES_BELL option is now the only
choice.

Suggested by jmcneill@.

(nat)

2017-05-27 12:04:44 UTC MAIN commitmail json YAML

The high resolution bell is the only option.  The 8 kHz version has been
removed.

Suggested by jmcneill@.

(nat)

2017-05-27 11:19:57 UTC MAIN commitmail json YAML

More standard (and saner) implementation of the ! reserved word.
Unless the shell is compiled with the (compilation time) option
BOGUS_NOT_COMMAND (as in CFLAGS+=-DBOGUS_NOT_COMMAND) which it
will not normally be, the ! command (reserved word) will only
be permitted at the start of a pipeline (which includes the
degenerate pipeline with no '|'s in it of course - ie: a simple cmd)
and not in the middle of a pipeline sequence (no "cmd | ! cmd" nonsense.)
If the latter is really required, then "cmd | { ! cmd; }" works as
a standard equivalent.

In POSIX mode, permit only one !  ("! pipeline" is ok. "! ! pipeline" is not).
Again, if needed (and POSIX conformance is wanted) "! { ! pipeline; }"
works as an alternative - and is safer, some shells treat "! ! cmd" as
being identical to "cmd" (this one did until recently.)

(kre)

2017-05-27 11:10:24 UTC MAIN commitmail json YAML

Document the HIRES_BELL option.

(nat)

2017-05-27 10:54:47 UTC MAIN commitmail json YAML

The audio bell is now in 16 bit slinear format.

It is possible to use a frequency of 44.1 kHz as apposed to 8 kHz if
you specifiy:

options HIRES_BELL

in your kernel config file.

Changes to the way in which the wave is generated help reducing pops and
ticks in the bell.

The output of the high resolution bell has been tested extensively using
frequency spectographs generated by pkgsrc package audio/audacity.

This addresses PR kern/51784.

(nat)

2017-05-27 10:43:30 UTC MAIN commitmail json YAML

Add missing sc_bytes_count.

(nat)

2017-05-27 10:04:57 UTC MAIN commitmail json YAML

Streaming channel is now opened in blocking mode again.
Removal of a hack in sbc_encode now that pad(4) is fixed.

(nat)

2017-05-27 10:02:26 UTC MAIN commitmail json YAML

Rework of previous.
Math for BYTESTOSLEEP and TIMENEXTREAD is now correct.

(nat)

2017-05-27 06:32:12 UTC MAIN commitmail json YAML

It turns out that most shells do not do variable value/attribute
inheritance when a variable is declared local, but instead leave
the local var unset (if not given a value) in the function.
Only ash derived shells do inheritance it seems.

So, to compensate for that, and get one step closer to making
"local" part of POSIX, so we can really rely upon it, a compromise
has been suggested, where "local x" is implementation defined
when it comes to this issue, and we add "local -I x" to specify
inheritance, and "local -N x" to specify "not" (something...)
(not inherited, or not set, or whatever you prefer to imagine!)
The option names took a lot of hunting to find something reasonable
that no shell (we know of) had already used for some other purpose...
The I was easy, but 'u' 'U' 'X' ... all in use somewhere.

This implements that (well, semi-) agreement.

While here, add "local -x" (which many other shells already have)
which causes the local variable to be made exported.  Not a lot
of gain in that (since "export x" can always be done immediately
after "local x") but it is very cheap to add and allows more other
scripts to work with out shell.

Note that while 'local x="${x}"' always works to specify inheritance
(while making the shell work harder), "local x; unset x" does not
always work to specify the alternative, as some shells have
"re-interpreted" unset of a local variable to mean something that
would best be described as "unlocal" instead - ie: after the unset
you might be back with the variable from the outer scope, rather
than with an unset local variable.

Also add "unset -x" to allow unsetting a variable without removing
any exported status it has.

There are gazillions of other options that are not supported here!

(kre)

2017-05-26 22:56:50 UTC MAIN commitmail json YAML

Use MACHINE_ARCH for the sparc check.

(joerg)

2017-05-26 22:50:35 UTC MAIN commitmail json YAML

2017-05-26 21:17:46 UTC MAIN commitmail json YAML

2017-05-26 20:14:17 UTC MAIN commitmail json YAML

Match nvidia,tegra210-pcie compat string.

(jmcneill)

2017-05-26 20:08:02 UTC MAIN commitmail json YAML

Match nvidia,tegra210-ictlr compat string.

(jmcneill)

2017-05-26 20:04:56 UTC MAIN commitmail json YAML

Adjust a comment that refers to Tegra124; this code can be used on more
than one Tegra SoC.

(jmcneill)

2017-05-26 18:58:55 UTC MAIN commitmail json YAML

Don't try to use memory above 4GB PA.

(jmcneill)

2017-05-26 18:56:27 UTC MAIN commitmail json YAML

Handle reg values beyond 4GB for platforms with 32-bit bus_addr_t.

fdtbus_get_reg will do a range check and return ERANGE if addr+size
exceeds 4GB.

Add fdtbus_get_reg64 to allow for fetching raw values w/o range check.

(jmcneill)

2017-05-26 15:40:27 UTC MAIN commitmail json YAML

Enable carp packets early during boot, to avoid gratuitous failovers.

Okayed by christos@

(hauke)

2017-05-26 14:40:09 UTC MAIN commitmail json YAML

Check VOP_INACTIVE contract with a judicious assert.

(riastradh)

2017-05-26 14:39:20 UTC MAIN commitmail json YAML

2017-05-26 14:34:20 UTC MAIN commitmail json YAML

2017-05-26 14:22:53 UTC MAIN commitmail json YAML

Welcome to 7.99.74, courtesy assertable VOP_RECLAIM.

(riastradh)

2017-05-26 14:21:55 UTC MAIN commitmail json YAML

2017-05-26 14:21:02 UTC MAIN commitmail json YAML

Make VOP_RECLAIM do the last unlock of the vnode.

VOP_RECLAIM naturally has exclusive access to the vnode, so having it
locked on entry is not strictly necessary -- but it means if there
are any final operations that must be done on the vnode, such as
ffs_update, requiring exclusive access to it, we can now kassert that
the vnode is locked in those operations.

We can't just have the caller release the last lock because some file
systems don't use genfs_lock, and require the vnode to remain valid
for VOP_UNLOCK to work, notably unionfs.

(riastradh)

2017-05-26 11:16:18 UTC MAIN commitmail json YAML

2017-05-26 09:17:33 UTC MAIN commitmail json YAML

Add missing {ixgbe,ixv}_stop() in the detach function. Without this change,
shutdown won't finish or panic on heay traffic.

(msaitoh)