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

2024-05-10 12:16:15 UTC Now

2017-11-04 08:53:24 UTC MAIN commitmail json YAML

Be more consistent with how we refer to fopen() - pointed out by wiz@

(kre)

2017-11-04 08:50:48 UTC MAIN commitmail json YAML

In XEN PV, the idt vector table is not required to be altered at
runtime, since only entries for exceptions/traps are registered with
the hypervisor and interrupts are managed via a completely different
mechanism.

This change uses the idt_vec_reserve() mechanism nevertheless,
modifying it slightly to only do namespace management in XEN, while on
native it will continue to do idt entry init as before.

Rationale: Consistent API usage and potential future merging of
XEN/non-XEN code.

There are no functional changes in this commit.

(cherry)

2017-11-04 08:33:28 UTC MAIN commitmail json YAML

Don't test for failure of malloc(...,M_WAITOK), it cannot fail

(maya)

2017-11-04 08:04:40 UTC MAIN commitmail json YAML

Some (mostly minor) wording improvements (IMO)

(kre)

2017-11-04 07:59:17 UTC MAIN commitmail json YAML

Fix xref. Remove Tn.

(wiz)

2017-11-04 07:38:42 UTC MAIN commitmail json YAML

Always set XCR0_X87, to force a reload of CW. That's needed for compat
options where fx_cw is not the standard fpu value.

(maxv)

2017-11-04 07:35:00 UTC MAIN commitmail json YAML

Fix xen. Not tested, but seems fine enough.

(maxv)

2017-11-04 07:26:35 UTC MAIN commitmail json YAML

Avoid losing a fd (ie: close it) in the (ever so likely) case that the
fd exceeds the limits of what can be stored in a FILE (65535).

(kre)

2017-11-04 07:04:01 UTC MAIN commitmail json YAML

Put back the tests for "no files matched" (in a different way than they
were written previously - but that's just style.)  This is not csh...

Use the correct test operator to test for an empty file (rather than
testing for an empty file name...)

Write test ('[') commands in a way that is defined to work, rather than
just happens to - we can afford the (negligible) performance hit here.

(kre)

2017-11-04 07:01:45 UTC MAIN commitmail json YAML

opt_intrdebug.h - this unbreaks the i386 DOMU build under some conditions

(cherry)

2017-11-04 06:15:56 UTC MAIN commitmail json YAML

oops, accidendally committed an earlier non-working version; fixed.

(christos)

2017-11-04 06:12:26 UTC MAIN commitmail json YAML

Deal safely with recovery mail files.

(christos)

2017-11-04 05:43:18 UTC MAIN commitmail json YAML

- don't use command substitution to glob a pattern into a list of filenames;
  it is less efficient than doing it directly and does not handle whitespace
  in filenames properly.
- change test to [
- quote variables

(christos)

2017-11-04 03:26:41 UTC MAIN commitmail json YAML

be more careful about opening recovery files... in particular deal with
people trying to get 'vi -r' stuck using named pipes, symlink attacks,
and coercing others opening recovery files they did not create.

(christos)

2017-11-04 02:49:55 UTC MAIN commitmail json YAML

2017-11-04 01:52:09 UTC MAIN commitmail json YAML

2017-11-04 01:50:48 UTC MAIN commitmail json YAML

AU_RING_SIZE -> s.bufsize in audio_initbufs.

(nat)

2017-11-04 01:46:56 UTC MAIN commitmail json YAML

Add AUDIO_ENCODING_SLINEAR to supported encodings.  This allows sb, sbpro
& sb16 to configure with 8-bit precision.

Tested in games/mame with a 486DX emulation.

(nat)

2017-11-03 22:45:14 UTC MAIN commitmail json YAML

Remove the ABI version-and-length check that was recently introduced;
sysctl(9) ABIs should be stable across versions.

XXX Pull-up to -8

(pgoyette)

2017-11-03 21:15:18 UTC MAIN commitmail json YAML

Blocksizes sould be rounded to a power of 2 as OSS applications need this.

Tested by martin@.

(nat)

2017-11-03 21:12:44 UTC MAIN commitmail json YAML

Revert to previous.  It is necessary to use the calculated blocksize if
none supplied.

Tested by martin@.

(nat)

2017-11-03 19:49:23 UTC MAIN commitmail json YAML

Remove redundant includes of malloc.h

(maya)

2017-11-03 19:20:27 UTC MAIN commitmail json YAML

2017-11-03 18:49:37 UTC MAIN commitmail json YAML

Use M_WAITOK if we aren't going to check for NULL before dereferencing
Same function already uses M_WAITOK unconditionally, so this is a safe change

While here, drop null check of M_WAITOK. it shouldn't fail.

(maya)

2017-11-03 18:42:36 UTC MAIN commitmail json YAML

2017-11-03 17:57:58 UTC MAIN commitmail json YAML

Don't #ifdef DIAGNOSTIC around KASSERTs.

the definition of KASSERT does the same thing

(maya)

2017-11-03 16:21:01 UTC MAIN commitmail json YAML

Revert last and instead #include <x86/fpu.h> to get the needed prototype.

(kre)

2017-11-03 15:31:48 UTC MAIN commitmail json YAML

2017-11-03 13:34:56 UTC MAIN commitmail json YAML

use kmem, don't check for allocation failure with KM_SLEEP

(maya)

2017-11-03 13:11:39 UTC MAIN commitmail json YAML

XEN apparently has no fpuinit_mxcsr_mask() and hasn't needed it until
now, so just omit this (as it was before) for XEN.  If this is not
correct, someone who knows x86's & the XEN interface can fix it, but
at least it should build, and be essentially the same as before now.

(kre)

2017-11-03 13:01:26 UTC MAIN commitmail json YAML

Add WDF_OPEN flag to really disallow opening of a disk that has been invalidated.

Restore wdbiorestart function to actually retry the failed I/O request instead
of just restarting the queue.

Fix compilation without ATADEBUG.

(mlelstv)

2017-11-03 09:59:08 UTC MAIN commitmail json YAML

2017-11-03 07:14:24 UTC MAIN commitmail json YAML

Fix MXCSR_MASK, it needs to be detected dynamically, otherwise when masking
MXCSR we are losing some features (eg DAZ).

(maxv)

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

No need to ratify block size twice as this is done in audio_initbufs.

This is a rework of rev 1.421.

(nat)

2017-11-03 05:09:49 UTC MAIN commitmail json YAML

Calc latency when altering precision, frequency and channels sysctls.

(nat)

2017-11-03 05:07:37 UTC MAIN commitmail json YAML

Allow for block sizes less than hw block size.  This allows for the lowest
possible latency for all precision, sample rate and frequencies.

This is a rework of rev 1.419.

(nat)

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

Use mix ring block size in audio write, startp, and audio drain.

(nat)

2017-11-02 21:41:35 UTC netbsd-8 commitmail json YAML

2017-11-02 21:39:18 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #336):
sys/uvm/uvm_mmap.c: revision 1.167
[syzkaller] Fix for PR #52658 as suggested by riastradh@
The bug was found by Dmitry Vyukov (dvyukov%google.com@localhost)
using syzkaller and was tested by me on a VM running
8.99.5

(snj)

2017-11-02 21:29:53 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by pgoyette in ticket #335):
share/man/man9/kernhist.9: 1.5-1.8
sys/arch/acorn26/acorn26/pmap.c: 1.39
sys/arch/arm/arm32/fault.c: 1.105 via patch
sys/arch/arm/arm32/pmap.c: 1.350, 1.359
sys/arch/arm/broadcom/bcm2835_bsc.c: 1.7
sys/arch/arm/omap/if_cpsw.c: 1.20
sys/arch/arm/omap/tiotg.c: 1.7
sys/arch/evbarm/conf/RPI2_INSTALL: 1.3
sys/dev/ic/sl811hs.c: 1.98
sys/dev/usb/ehci.c: 1.256
sys/dev/usb/if_axe.c: 1.83
sys/dev/usb/motg.c: 1.18
sys/dev/usb/ohci.c: 1.274
sys/dev/usb/ucom.c: 1.119
sys/dev/usb/uhci.c: 1.277
sys/dev/usb/uhub.c: 1.137
sys/dev/usb/umass.c: 1.160-1.162
sys/dev/usb/umass_quirks.c: 1.100
sys/dev/usb/umass_scsipi.c: 1.55
sys/dev/usb/usb.c: 1.168
sys/dev/usb/usb_mem.c: 1.70
sys/dev/usb/usb_subr.c: 1.221
sys/dev/usb/usbdi.c: 1.175
sys/dev/usb/usbdi_util.c: 1.67-1.70
sys/dev/usb/usbroothub.c: 1.3
sys/dev/usb/xhci.c: 1.75
sys/external/bsd/drm2/dist/drm/i915/i915_gem.c: 1.34
sys/kern/kern_history.c: 1.15
sys/kern/kern_xxx.c: 1.74
sys/kern/vfs_bio.c: 1.275-1.276
sys/miscfs/genfs/genfs_io.c: 1.71
sys/sys/kernhist.h: 1.21
sys/ufs/ffs/ffs_balloc.c: 1.63
sys/ufs/lfs/lfs_vfsops.c: 1.361
sys/ufs/lfs/ulfs_inode.c: 1.21
sys/ufs/lfs/ulfs_vnops.c: 1.52
sys/ufs/ufs/ufs_inode.c: 1.102
sys/ufs/ufs/ufs_vnops.c: 1.239
sys/uvm/pmap/pmap.c: 1.37-1.39
sys/uvm/pmap/pmap_tlb.c: 1.22
sys/uvm/uvm_amap.c: 1.108
sys/uvm/uvm_anon.c: 1.64
sys/uvm/uvm_aobj.c: 1.126
sys/uvm/uvm_bio.c: 1.91
sys/uvm/uvm_device.c: 1.66
sys/uvm/uvm_fault.c: 1.201
sys/uvm/uvm_km.c: 1.144
sys/uvm/uvm_loan.c: 1.85
sys/uvm/uvm_map.c: 1.353
sys/uvm/uvm_page.c: 1.194
sys/uvm/uvm_pager.c: 1.111
sys/uvm/uvm_pdaemon.c: 1.109
sys/uvm/uvm_swap.c: 1.175
sys/uvm/uvm_vnode.c: 1.103
usr.bin/vmstat/vmstat.c: 1.219
Reorder to test for null before null deref in debug code
--
Reorder to test for null before null deref in debug code
--
KNF
--
No need for '\n' in UVMHIST_LOG
--
normalise a BIOHIST log message
--
Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...
(As proposed on tech-kern@ with additional changes and enhancements.)
Details of changes:
* All history arguments are now stored as uintmax_t values[1], both in
  the kernel and in the structures used for exporting the history data
  to userland via sysctl(9).  This avoids problems on some architectures
  where passing a 64-bit (or larger) value to printf(3) can cause it to
  process the value as multiple arguments.  (This can be particularly
  problematic when printf()'s format string is not a literal, since in
  that case the compiler cannot know how large each argument should be.)
* Update the data structures used for exporting kernel history data to
  include a version number as well as the length of history arguments.
* All [2] existing users of kernhist(9) have had their format strings
  updated.  Each format specifier now includes an explicit length
  modifier 'j' to refer to numeric values of the size of uintmax_t.
* All [2] existing users of kernhist(9) have had their format strings
  updated to replace uses of "%p" with "%#jx", and the pointer
  arguments are now cast to (uintptr_t) before being subsequently cast
  to (uintmax_t).  This is needed to avoid compiler warnings about
  casting "pointer to integer of a different size."
* All [2] existing users of kernhist(9) have had instances of "%s" or
  "%c" format strings replaced with numeric formats; several instances
  of mis-match between format string and argument list have been fixed.
* vmstat(1) has been modified to handle the new size of arguments in the
  history data as exported by sysctl(9).
* vmstat(1) now provides a warning message if the history requested with
  the -u option does not exist (previously, this condition was silently
  ignored, with only a single blank line being printed).
* vmstat(1) now checks the version and argument length included in the
  data exported via sysctl(9) and exits if they do not match the values
  with which vmstat was built.
* The kernhist(9) man-page has been updated to note the additional
  requirements imposed on the format strings, along with several other
  minor changes and enhancements.
[1] It would have been possible to use an explicit length (for example,
    uint64_t) for the history arguments.  But that would require another
    "rototill" of all the users in the future when we add support for an
    architecture that supports a larger size.  Also, the printf(3)
format
    specifiers for explicitly-sized values, such as "%"PRIu64, are much
    more verbose (and less aesthetically appealing, IMHO) than simply
    using "%ju".
[2] I've tried very hard to find "all [the] existing users of
kernhist(9)"
    but it is possible that I've missed some of them.  I would be glad
to
    update any stragglers that anyone identifies.
--
For some reason this single kernel seems to have outgrown its declared
size as a result of the kernhist(9) changes.  Bump the size.
XXX The amount of increase may be excessive - anyone with more detailed
XXX knowledge please feel free to further adjust the value
appropriately.
--
Misssed one cast of pointer --> uintptr_t in previous kernhist(9) commit
--
And yet another one.  :(
--
Use correct mark-up for NetBSD version.
--
More improvements in grammar and readability.
--
Remove a stray '"' (obvious typo) and add a couple of casts that are
probably needed.
--
And replace an instance of "%p" conversion with "%#jx"
--
Whitespace fix. Give Bl tag table a width. Fix Xr.

(snj)

2017-11-02 21:03:34 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by taca in ticket #334):
etc/namedb/root.cache: revision 1.23
Update root.cache to 2017102400 (October 24, 2017).
B.ROOT-SERVERS.NET's IPv4 and IPv6 address has changed.

(snj)

2017-11-02 21:02:06 UTC netbsd-8 commitmail json YAML

src/distrib/sets/lists/base/mi@1.1158.2.2 / diff / nxr@1.1158.2.2
src/doc/3RDPARTY@1.1444.2.5 / diff / nxr@1.1444.2.5
src/external/public-domain/tz/dist/CONTRIBUTING@1.1.1.3.6.1 / diff / nxr@1.1.1.3.6.1
src/external/public-domain/tz/dist/LICENSE@1.1.1.2.6.1 / diff / nxr@1.1.1.2.6.1
src/external/public-domain/tz/dist/Makefile@1.1.1.17.4.1 / diff / nxr@1.1.1.17.4.1
src/external/public-domain/tz/dist/NEWS@1.1.1.18.4.1 / diff / nxr@1.1.1.18.4.1
src/external/public-domain/tz/dist/TZDATA_VERSION@1.8.4.1 / diff / nxr@1.8.4.1
src/external/public-domain/tz/dist/Theory deleted
src/external/public-domain/tz/dist/africa@1.1.1.11.4.1 / diff / nxr@1.1.1.11.4.1
src/external/public-domain/tz/dist/antarctica@1.1.1.8.4.1 / diff / nxr@1.1.1.8.4.1
src/external/public-domain/tz/dist/asia@1.1.1.16.4.1 / diff / nxr@1.1.1.16.4.1
src/external/public-domain/tz/dist/australasia@1.1.1.11.4.1 / diff / nxr@1.1.1.11.4.1
src/external/public-domain/tz/dist/backward@1.1.1.7.4.1 / diff / nxr@1.1.1.7.4.1
src/external/public-domain/tz/dist/backzone@1.1.1.11.4.1 / diff / nxr@1.1.1.11.4.1
src/external/public-domain/tz/dist/calendars@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/public-domain/tz/dist/checklinks.awk@1.1.1.2.8.1 / diff / nxr@1.1.1.2.8.1
src/external/public-domain/tz/dist/europe@1.1.1.17.4.1 / diff / nxr@1.1.1.17.4.1
src/external/public-domain/tz/dist/leap-seconds.list@1.1.1.7.4.1 / diff / nxr@1.1.1.7.4.1
src/external/public-domain/tz/dist/leapseconds@1.1.1.8.4.1 / diff / nxr@1.1.1.8.4.1
src/external/public-domain/tz/dist/leapseconds.awk@1.1.1.5.8.1 / diff / nxr@1.1.1.5.8.1
      :
(more 7 files)
Pull up following revision(s) (requested by kre in ticket #333):
doc/3RDPARTY: 1.1479
distrib/sets/lists/base/mi: 1.1164
external/public-domain/tz/dist/CONTRIBUTING: up to 1.1.1.4
external/public-domain/tz/dist/LICENSE: up to 1.1.1.3
external/public-domain/tz/dist/Makefile: up to 1.1.1.18
external/public-domain/tz/dist/NEWS: up to 1.1.1.19
external/public-domain/tz/dist/TZDATA_VERSION: up to 1.9
external/public-domain/tz/dist/Theory: delete
external/public-domain/tz/dist/africa: up to 1.1.1.12
external/public-domain/tz/dist/antarctica: up to 1.1.1.9
external/public-domain/tz/dist/asia: up to 1.1.1.17
external/public-domain/tz/dist/australasia: up to 1.1.1.12
external/public-domain/tz/dist/backward: up to 1.1.1.8
external/public-domain/tz/dist/backzone: up to 1.1.1.12
external/public-domain/tz/dist/calendars: up to 1.1.1.1
external/public-domain/tz/dist/checklinks.awk: up to 1.1.1.3
external/public-domain/tz/dist/europe: up to 1.1.1.18
external/public-domain/tz/dist/leap-seconds.list: up to 1.1.1.8
external/public-domain/tz/dist/leapseconds: up to 1.1.1.9
external/public-domain/tz/dist/leapseconds.awk: up to 1.1.1.6
external/public-domain/tz/dist/northamerica: up to 1.1.1.17
external/public-domain/tz/dist/southamerica: up to 1.1.1.12
external/public-domain/tz/dist/theory.html: up to 1.1.1.1
external/public-domain/tz/dist/version: up to 1.1.1.6
external/public-domain/tz/dist/zishrink.awk: up to 1.1.1.1
external/public-domain/tz/dist/zone.tab: up to 1.1.1.12
external/public-domain/tz/dist/zone1970.tab: up to 1.1.1.14
Update tzdata to 2017c.

(snj)

2017-11-02 20:28:24 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #332):
sys/net/if_pppoe.c: 1.127-1.128
sys/net/if_pppoe.h: 1.15
sys/net/if_spppsubr.c: 1.170-1.171
sys/net/if_spppvar.h: 1.21-1.22
Integrate two locks used to protect PPPoE softc. Contributed by s-yamaguchi@IIJ.
PPPOE_SESSION_LOCK protects variables used in PPP packet
processing, on the other hand PPPOE_PARAM_LOCK protects
the other variables used to establish a PPPoE session id.
Those locks isn't acquired in the same time because the
PPP packet processing doesn't work without PPPoE session id.
By the reason, the locks can be integrated into PPPOE_LOCK.
Add locking notes later.
--
sppp_lock is changed from mutex to rwlock now. Contributed by s-yamaguchi@IIJ.
Add locking notes later.
--
Add a locking notes for if_pppoe
--
Add a locking notes for if_spppsubr
--
fix no INET6 build.

(snj)

2017-11-02 19:39:33 UTC MAIN commitmail json YAML

Revert previous on demand.

Rationale:

The DSO handle is a required part of the (external) __cxa_atexit interface.
The atexit mapping is an implementation detail and not part of the public
interface. Doing it directly creates UB as it involves casting function
pointers between incompatible types.

  -- Joerg

(kamil)

2017-11-02 18:37:15 UTC MAIN commitmail json YAML

Correct handling of __cxa_atexit(a,b,NULL) in libc

In the NetBSD implementation and suggested by Itanium C++ ABI, we wrap
the atexit(x) call as __cxa_atexit(x,NULL,NULL).

__cxa_atexit() is an internal function for the usage of C++.

Correct a bug that __cxa_atexit(x,y,NULL) is handled in the same way as
atexit(x) (which is simplified to __cxa_atexit(x,NULL,NULL).

This misbehavior has been detected in the Thread Sanitizer port to NetBSD.

Patch reviewed by <christos>

Sponsored by <The NetBSD Foundation>

(kamil)

2017-11-02 16:09:33 UTC MAIN commitmail json YAML

2017-11-02 15:28:23 UTC MAIN commitmail json YAML

C99ify initialization of dummy_timecounter.

(riastradh)

2017-11-02 09:42:45 UTC MAIN commitmail json YAML

2017-11-02 08:41:15 UTC MAIN commitmail json YAML

- Handle hw.ixgN.advertise_speed correctly.
- Fix hw.ixgN.advertise_speed sysctl's description.

(msaitoh)

2017-11-02 02:08:02 UTC MAIN commitmail json YAML

Revert commit rev 1.419 to audio.c.  This should address PR kern/52685.

This also means that drivers that have a static block size will have more
latency at lower sample rates/precision/channels.  Also audio drivers that
do more than supply rounded blocksizes in their round_blocksize functions
will have to be changed.

(nat)

2017-11-01 23:00:05 UTC MAIN commitmail json YAML

2017-11-01 21:27:22 UTC MAIN commitmail json YAML

one down - mlelstv converted wd(4) to dksubr

(jdolecek)

2017-11-01 21:13:26 UTC MAIN commitmail json YAML

Unwrap two lines.  NFC.

(skrll)

2017-11-01 21:11:44 UTC MAIN commitmail json YAML

2017-11-01 19:34:46 UTC MAIN commitmail json YAML

2017-11-01 19:15:31 UTC MAIN commitmail json YAML

Protect against multiple inclusion.

(mlelstv)

2017-11-01 17:00:18 UTC MAIN commitmail json YAML

Handle absolute symbols. Since my linux_sigcode.S::rev1.4 there are two
Elf_Rela that point to the NULL symbol - which the prekern thought was an
external reference.

In the ELF spec, STN_UNDEF means the value of the symbol is zero.

(maxv)

2017-11-01 15:34:28 UTC MAIN commitmail json YAML

BPM: beam propagation method (light)
BPM: beats per minute (music)

(khorben)

2017-11-01 15:24:42 UTC MAIN commitmail json YAML

2017-11-01 15:11:31 UTC MAIN commitmail json YAML

PPS: pulse per second (signal)

(riastradh)

2017-11-01 09:47:53 UTC MAIN commitmail json YAML

2017-11-01 09:38:43 UTC MAIN commitmail json YAML

More END(). In linux_sigcode.S we only provide symbols, not defined as
functions.

(maxv)

2017-11-01 09:31:24 UTC MAIN commitmail json YAML

Add linux_sigcode.o, otherwise it doesn't get rebuilt.

(maxv)

2017-11-01 09:17:28 UTC MAIN commitmail json YAML

Don't fall through functions, explicitly jump instead. While here don't
call smap_enable twice (harmless), and add END() markers.

(maxv)

2017-11-01 08:44:34 UTC MAIN commitmail json YAML

Add ./usr/libdata/debug/usr/tests/net/ipsec

(martin)

2017-11-01 08:32:08 UTC MAIN commitmail json YAML

Add net/ipsec debug lib directory

(martin)

2017-11-01 07:14:29 UTC MAIN commitmail json YAML

Remove unused macros and LDT entries.

(maxv)

2017-11-01 05:42:32 UTC MAIN commitmail json YAML

Complete last change...

(kre)

2017-11-01 01:47:00 UTC MAIN commitmail json YAML

Simplify, and avoid compiler warning for variable format string.

As discussed on IRC.

(pgoyette)

2017-10-31 21:53:48 UTC MAIN commitmail json YAML

Add padding to gus.c so fields match up when it ts cast to a ad1848_isa
softc for the allocation of hw ring buffers.

Locking fixes as gus KASSERTS / uses the codec locks.

Ok christos@.

(nat)

2017-10-31 21:18:02 UTC MAIN commitmail json YAML

Only allow blocksizes greater or equal to the calculated one.

This should help applications as the blocksize obtained (AUDIO_SET/GETINFO)
will work without stutter.

Ok christos@.

(nat)

2017-10-31 21:13:24 UTC MAIN commitmail json YAML

Move calculation of sc_latency into a function.

The latency of the audio device is updated on attach in the audio auto
config and shown on screen.

Ok christos@.

(nat)

2017-10-31 21:09:27 UTC MAIN commitmail json YAML

round_blocksize is only used for the hardware ring buffer.  All other
buffers (mix ring, streams) are set to be a power of 2.

This allows for consistent latency where a static blocksize is enforced by
the underlying audio device driver.

Ok christos@.

(nat)

2017-10-31 19:03:32 UTC MAIN commitmail json YAML

bring the WAPBL entry more up-to-date and sound less desperate,
there is not really much preventing it to be enabled by default for
new installs again actually

(jdolecek)

2017-10-31 18:30:36 UTC MAIN commitmail json YAML

2017-10-31 18:23:29 UTC MAIN commitmail json YAML

Zero out the buffer entirely.

(maxv)

2017-10-31 18:13:37 UTC MAIN commitmail json YAML

Mask mxcsr, otherwise userland could set reserved bits to 1 and make
xrstor fault.

(maxv)

2017-10-31 16:10:25 UTC MAIN commitmail json YAML

unconst machine_arch32 for sysctl data .. pointed out by Riccardo Mottola

(kre)

2017-10-31 15:16:10 UTC MAIN commitmail json YAML

Initialize xstate_bv with the structures that were just filled in,
otherwise xrstor does not restore them. This can happen only if userland
calls setcontext without having used the FPU before.

Until rev1.15 xstate_bv was implicitly initialized because the xsave area
was not zeroed out properly.

(maxv)

2017-10-31 15:10:28 UTC MAIN commitmail json YAML

undo - pointed out this is a register assignment.

(christos)

2017-10-31 15:00:03 UTC MAIN commitmail json YAML

PR/52682: David Binderman: Fix wrong assignment (in the !__NetBSD__ code)

(christos)

2017-10-31 14:55:45 UTC MAIN commitmail json YAML

PR/52680: David Binderman: Remove dedundant assignment.

(christos)

2017-10-31 12:43:57 UTC MAIN commitmail json YAML

2017-10-31 12:37:23 UTC MAIN commitmail json YAML

Allow architectures to define a macro PROC_MACHINE_ARCH(P) and
PROC_MACHINE_ARCH32(P) to override the value for sysctl hw.machine_arch
(native and netbsd32 commpat resp.).

Use these for arm and mips instead of the (not working, noisy, in case
of arm) sysctl override and #ifdef __mips__ in architecture neutral
code.

(martin)

2017-10-31 12:02:20 UTC MAIN commitmail json YAML

Don't embed our own values in the reserved fields of the XSAVE area, it
really is a bad idea. Move them into the PCB.

(maxv)

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

Also mark ppi.html as obsolete

(martin)

2017-10-31 11:37:05 UTC MAIN commitmail json YAML

2017-10-31 10:46:47 UTC MAIN commitmail json YAML

PR port-sparc64/52622: mark the parent device as TS_KERN_ONLY,
so userland will not touch it (and change serial params w/o our
controll).

(martin)

2017-10-31 10:45:19 UTC MAIN commitmail json YAML

As discussed on tech-kern: define a new tty internal state flag: TS_KERN_ONLY

Implement it in a few tty drivers. If this flag is set, the underlying
hardware is used by another driver and userland has no right to open
it. A few uses will appear soon in sys/dev/sun/sun{kbd,ms}.c.

(martin)

2017-10-31 10:39:13 UTC MAIN commitmail json YAML

Add xsh_xcomp_bv and fx_zero, and use uint8_t instead.

(maxv)

2017-10-31 10:35:58 UTC MAIN commitmail json YAML

Remove comments that are more misleading than anything else. While here
make sure we zero out the FPU area entirely, and not just its legacy
region.

(maxv)

2017-10-31 10:14:27 UTC MAIN commitmail json YAML

Casting variable of type int *  to size_t *, may cause
alignment issues on some platforms (e.g. Sparc64)
So, Use a temporary variable to avoid the cast.

Thanks to Martin@ for noticing the issue and also suggesting the issue.
Fixes PR bin/52678

(abhinav)

2017-10-31 08:10:12 UTC MAIN commitmail json YAML

remove ppi(9) manpage, the actual subsystem got never implemented

PR kern/52665 by Kamil Rytarowski

(jdolecek)

2017-10-31 00:57:14 UTC MAIN commitmail json YAML

Also attach the RTL8192EU from TP-LINK

(khorben)

2017-10-31 00:30:07 UTC MAIN commitmail json YAML

2017-10-31 00:20:51 UTC MAIN commitmail json YAML

Add the TP-LINK TL-WN823N (version 2)

(khorben)

2017-10-30 22:09:54 UTC MAIN commitmail json YAML

2017-10-30 21:41:39 UTC MAIN commitmail json YAML

add load & store instructions for channel data type
mostly for Xorg

(macallan)

2017-10-30 17:13:39 UTC MAIN commitmail json YAML

2017-10-30 17:06:42 UTC MAIN commitmail json YAML

Always use END() markers when declaring functions in assembly, so that ld
can compute the size of the functions. A few remain.

While here, fix a bug in the INTRSTUB macro: we are falling through
resume_, but it is aligned, so it looks like we're executing the inter-
function padding - which probably happens to contain NOPs, but that's
still bad.

(maxv)

2017-10-30 16:01:19 UTC MAIN commitmail json YAML

Set IFEF_NO_LINK_STATE_CHANGE flag to pseudo devices that don't use if_link_state_change

(ozaki-r)

2017-10-30 15:59:24 UTC MAIN commitmail json YAML

Add test cases of NAT-T (transport mode)

A small C program is added to make a special socket (UDP_ENCAP_ESPINUDP)
and keep it to handle UDP-encapsulated ESP packets.

(ozaki-r)

2017-10-30 15:55:53 UTC MAIN commitmail json YAML

Whitespace fix. Give Bl tag table a width. Fix Xr.

(wiz)

2017-10-30 15:53:51 UTC MAIN commitmail json YAML

Bump date for previous. Remove superfluous Pp.

(wiz)

2017-10-30 15:50:48 UTC MAIN commitmail json YAML

Remove references to non-existing ifconfig(4). Use Mt.

(wiz)

2017-10-30 15:49:24 UTC MAIN commitmail json YAML

2017-10-30 15:48:38 UTC MAIN commitmail json YAML

2017-10-30 15:46:38 UTC MAIN commitmail json YAML

2017-10-30 15:44:29 UTC MAIN commitmail json YAML

Remove Tn. Do not split on An lines.

(wiz)

2017-10-30 15:43:21 UTC MAIN commitmail json YAML

Remove empty Fd. Use minus for return value. End list. Sort SEE ALSO.

(wiz)

2017-10-30 15:38:52 UTC MAIN commitmail json YAML

2017-10-30 15:37:41 UTC MAIN commitmail json YAML

Minor spellchecking changes.

(wiz)

2017-10-30 11:24:04 UTC MAIN commitmail json YAML

If if_attach() failed in the attach function, return. Add comments about if_initialize().

suggested by ozaki-r@n.o.

(knakahara)

2017-10-30 09:35:51 UTC netbsd-8 commitmail json YAML

2017-10-30 09:29:04 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #330):
sbin/fsck_lfs/inode.c: 1.69
sbin/fsck_lfs/lfs.c: 1.73
sbin/fsck_lfs/pass6.c: 1.50
sbin/fsck_lfs/segwrite.c: 1.46
sys/ufs/lfs/lfs.h: 1.202-1.203
sys/ufs/lfs/lfs_accessors.h: 1.48
sys/ufs/lfs/lfs_alloc.c: 1.136-1.137
sys/ufs/lfs/lfs_balloc.c: 1.94
sys/ufs/lfs/lfs_bio.c: 1.141
sys/ufs/lfs/lfs_extern.h: 1.113
sys/ufs/lfs/lfs_inode.c: 1.156-1.157
sys/ufs/lfs/lfs_inode.h: 1.20, 1.21, 1.23
sys/ufs/lfs/lfs_itimes.c: 1.20
sys/ufs/lfs/lfs_pages.c: 1.13-1.15
sys/ufs/lfs/lfs_rename.c: 1.22
sys/ufs/lfs/lfs_segment.c: 1.270-1.275
sys/ufs/lfs/lfs_subr.c: 1.94-1.97
sys/ufs/lfs/lfs_syscalls.c: 1.175
sys/ufs/lfs/lfs_vfsops.c: 1.360
sys/ufs/lfs/lfs_vnops.c: 1.316-1.321
sys/ufs/lfs/ulfs_inode.c: 1.20
sys/ufs/lfs/ulfs_inode.h: 1.24
sys/ufs/lfs/ulfs_lookup.c: 1.41
sys/ufs/lfs/ulfs_quota2.c: 1.31
sys/ufs/lfs/ulfs_readwrite.c: 1.24
sys/ufs/lfs/ulfs_vnops.c: 1.49-1.50
Update inode member i_flag --> i_state to keep up with kernel changes
Move definition of IN_ALLMOD near the flag it's a mask for.
Now we can see that it doesn't match all the flags, but changing that will
require more careful thought.
Correct confusion between i_flag and i_flags
These will have to be renamed.
Spotted by Riastradh, thanks!
Add an XXX about the missing flags so it's not buried in a commit
message.
now the XXX count for LFS is 260
Rename i_flag to i_state.
The similarity to i_flags has previously caused errors.
Use continue to denote the no-op loop to match netbsd style
newline for extra clarity.
It isn't safe to drain dirops with seglock held, it'll deadlock if there
are any dirops. drain before grabbing seglock.
lfs_dirops == 0 is always true (as we already drained dirops), so omit
that part of the comparison.
Fixes a lot of LFS deadlocks. PR kern/52301
Many thanks to dholland for help analyzing coredumps
Ifdef out KDASSERT which fires on my machine.
Deduplicate sanity check that seglock is held on segunlock
Revert r1.272 fix to PR kern/52301, the performance hit is making things
unusable.
change lfs_nextsegsleep and lfs_allclean_wakeup to use condvar
XXX had to use lfs_lock in lfs_segwait, removed kernel_lock, is this
appropriate?
fix buffer overflow/KASSERT when cookies are supplied
lfs no longer uses the ffs-style struct direct, use the correct minimum
size
from dholland
XXX more wrong
Consistently use {,UN}MARK_VNODE macros rather than function calls.
Not much point doing anything after a panic call
Ask some question about the code in a XXX comment
XXX question our double-flushing of dirops
Fix typo in comment

(snj)

2017-10-30 04:53:43 UTC MAIN commitmail json YAML

Fix showing translated port (ntohs-ed twice wrongly)

(ozaki-r)

2017-10-30 03:25:14 UTC MAIN commitmail json YAML

Remove unneeded casts to (uintptr_t).  This is already taken care of in
the xxxHIST_LOG() macros.

No need to pull-up to -8 - the extra cast really won't hurt anything.

(pgoyette)

2017-10-30 03:02:35 UTC MAIN commitmail json YAML

Fix npfclt reload on rump kernels

It fails because npfctl cannot get an errno when it calls ioctl to the (rump)
kernel; npfctl (libnpf) expects that an errno is returned via proplib,
however, the rump library of npf doesn't so. It happens because of mishandlings
of complicate npf kernel options.

PR kern/52643

(ozaki-r)

2017-10-30 01:25:27 UTC MAIN commitmail json YAML

2017-10-30 01:24:47 UTC MAIN commitmail json YAML

Add Areca ARC1214 & ARC1880.
From OpenBSD.

(sevan)

2017-10-30 01:19:46 UTC MAIN commitmail json YAML

And replace an instance of "%p" conversion with "%#jx"

(pgoyette)

2017-10-30 00:55:42 UTC MAIN commitmail json YAML

Remove a stray '"' (obvious typo) and add a couple of casts that are
probably needed.

(kre)

2017-10-29 17:57:21 UTC MAIN commitmail json YAML

Provisionally return to declaring midi_cd unconditionally.

Apparently this breaks compiling some kernels, although how they ever
managed to link if midi_cd is not declared in ioconf.h, and therefore
presumably not defined in ioconf.c, is beyond me.

Maybe someone who knows how sequencer is supposed to work, and/or
someone who knows how arm kernels are linked, can figure this out...

(riastradh)

2017-10-29 17:19:14 UTC MAIN commitmail json YAML

Mmh, we don't map the CTF section on kaslr kernels, so disable
KDTRACE_HOOKS for now.

(maxv)

2017-10-29 16:02:46 UTC MAIN commitmail json YAML

Create a custom bus space tag and use it to remap registers instead of
relying on options MOTG_ALLWINNER.

(jmcneill)

2017-10-29 15:29:34 UTC MAIN commitmail json YAML

PR/52671: Ralph Geier: The ignorecase option is not handeled correctly in vi
for unicode characters

(christos)

2017-10-29 15:00:00 UTC MAIN commitmail json YAML

sunxi_twi: provide custom read/write reg callbacks and remove the
GTTWSI_ALLWINNER option from the kernel config

(jmcneill)

2017-10-29 14:59:05 UTC MAIN commitmail json YAML

Allow drivers to provide their own read/write register functions. While
here, sprinkle KASSERTs to verify that the i2c lock is held where it
should be.

(jmcneill)

2017-10-29 14:07:11 UTC MAIN commitmail json YAML

remove options COM_AWIN and set COM_TYPE_SUNXI in the bus driver instead

(jmcneill)

2017-10-29 14:06:08 UTC MAIN commitmail json YAML

Make all of the COM_xxx type options runtime selectable. Kernel configs
with the existing options (COM_16650, COM_16750, COM_AWIN, COM_HAYESP, and
COM_PXA2X0) will select the correct type in com_attach_subr. New code
should specify the com type by passing COM_TYPE_xxx to comcnattach and/or
setting sc_type.

(jmcneill)

2017-10-29 11:38:43 UTC MAIN commitmail json YAML

Fix a few error messages, and be a little more verbose.

(maxv)

2017-10-29 11:28:30 UTC MAIN commitmail json YAML

Randomize the kernel segments independently. That is to say, put text,
rodata and data at different addresses (and in a random order).

To achieve that, the mapping order in the prekern is changed. Until now,
we were creating the kernel map the following way:
-> choose a random VA
-> map [kernpa_start; kernpa_end[ at this VA
-> parse the ELF structures from there
-> determine where exactly the kernel segments are located
-> relocate etc
Now, we are doing:
-> create a read-only view of [kernpa_start; kernpa_end[
-> from this view, compute the size of the "head" region
-> choose a random VA in the HEAD window, and map the head there
-> for each region in (text, rodata, data, boot)
-> compute the size of the region from the RO view
-> choose a random VA in the KASLR window
-> map the region there
-> relocate etc

Each time we map a region, we initialize its bootspace fields right away.

The "head" region must be put before the other regions in memory, because
the kernel uses (headva + sh_offset) to get the addresses of the symbols,
and the offset is unsigned.

Given that the head does not have an mcmodel constraint, its location is
randomized in a window located below the KASLR window.

The rest of the regions being in the same window, we need to detect
collisions.

Note that the module map is embedded in the "boot" region, and that
therefore its location is randomized too.

(maxv)

2017-10-29 10:25:28 UTC MAIN commitmail json YAML

Use bootspace.head.va instead of the direct map. Otherwise there's the
assumption that the offsets contained in sh_offset in physical memory are
equal to the offsets in virtual memory, which won't be true in the future.

(maxv)

2017-10-29 10:07:08 UTC MAIN commitmail json YAML

Add three functions and start using them; will be more useful soon.

(maxv)

2017-10-29 10:01:22 UTC MAIN commitmail json YAML

Add a fifth region, called "head". On kaslr kernels it contains the ELF
Header and the ELF Section Headers. On normal kernels it is empty (the
headers are in the "boot" region).

Note: if you're using GENERIC_KASLR, you also need to rebuild the prekern.

(maxv)

2017-10-29 09:51:42 UTC MAIN commitmail json YAML

More improvements in grammar and readability.

(pgoyette)

2017-10-29 09:44:17 UTC MAIN commitmail json YAML

Use driver specific label code as fallback. This fixes the UDF label for CDs.

(mlelstv)

2017-10-29 09:17:42 UTC MAIN commitmail json YAML

Use correct mark-up for NetBSD version.

(pgoyette)

2017-10-29 06:07:48 UTC MAIN commitmail json YAML

Fix the escape used for em dash

ok wiz@

(abhinav)

2017-10-29 03:48:17 UTC MAIN commitmail json YAML

Fix typo.

Wishful thinking for some of our resource-constrained platforms!

(riastradh)

2017-10-29 01:28:46 UTC MAIN commitmail json YAML

The sign is optional in an exponent

Treat numbers after [Ee] as a positive number rather than an invalid
numeric sequence.  (Taken from FreeBSD but done differently.)

(ginsbach)

2017-10-29 00:20:42 UTC MAIN commitmail json YAML

Correct a markup typo (Sv -> Dv)

(kre)

2017-10-29 00:02:23 UTC MAIN commitmail json YAML

Fix typos (from FreeBSD)

(ginsbach)

2017-10-28 22:59:27 UTC MAIN commitmail json YAML

2017-10-28 21:54:54 UTC MAIN commitmail json YAML

Ignore empty MAKEOBJDIR

Otherwise we end up with .OBJDIR = ${.CURDIR}/
which is quivalent, but fails the typial
.if ${.OBJDIR} == ${.CURDIR}

(sjg)

2017-10-28 20:57:52 UTC MAIN commitmail json YAML

And yet another one.  :(

(pgoyette)

2017-10-28 20:57:17 UTC MAIN commitmail json YAML

Use FLAT_RING3_CS64 (defined in Xen public headers) instead of numeric
value.

(bouyer)

2017-10-28 20:56:51 UTC MAIN commitmail json YAML

Misssed one cast of pointer --> uintptr_t in previous kernhist(9) commit

(pgoyette)

2017-10-28 20:06:31 UTC MAIN commitmail json YAML

It appears that Xen remaps the userland %cs to 0xE033. So add it to the
checklist. Otherwise we're going through Luexit32: %fs gets reloaded,
which sets the FS.base to NULL, which will cause the thread to page-fault
next time it accesses its TLS (as seen in PR/52662).

This fix is not very clean, and it would be nice to understand why Xen
remaps %cs. But I'm committing it now anyway, so that people can test.

(maxv)

2017-10-28 19:28:11 UTC MAIN commitmail json YAML

Fix a mistake I made in the very first revision. The calculation of the
number of slots was incorrect in some cases, and it could cause the
prekern to fault right away at boot time, or the kernel to fault when
loading kernel modules near the end of the module map.

The variables are divided by PAGE_SIZE to prevent integer overflows.

(maxv)

2017-10-28 19:25:31 UTC MAIN commitmail json YAML

2017-10-28 19:24:55 UTC MAIN commitmail json YAML

make tests print the values.

(christos)

2017-10-28 19:19:10 UTC MAIN commitmail json YAML

Define the new flag too for previous commit.

XXX pullup-8
XXX pullup-7
XXX pullup-6
XXX pullup-5...

(riastradh)

2017-10-28 17:40:45 UTC MAIN commitmail json YAML

Rework memory allocators summary.

Recommend kmem(9) for everything that doesn't have special needs.

Note vmem(9) and extent(9) too.

(riastradh)

2017-10-28 17:06:43 UTC MAIN commitmail json YAML

Allow only one pending call to a pool's backing allocator at a time.

Candidate fix for problems with hanging after kva fragmentation related
to PR kern/45718.

Proposed on tech-kern:

https://mail-index.NetBSD.org/tech-kern/2017/10/23/msg022472.html

Tested by bouyer@ on i386.

This makes one small change to the semantics of pool_prime and
pool_setlowat: they may fail with EWOULDBLOCK instead of ENOMEM, if
there is a pending call to the backing allocator in another thread but
we are not actually out of memory.  That is unlikely because nearly
always these are used during initialization, when the pool is not in
use.

XXX pullup-8
XXX pullup-7
XXX pullup-6 (requires tweaking the patch)
XXX pullup-5...

(riastradh)

2017-10-28 16:09:14 UTC MAIN commitmail json YAML

2017-10-28 13:13:45 UTC MAIN commitmail json YAML

2017-10-28 12:56:27 UTC MAIN commitmail json YAML

2017-10-28 12:56:10 UTC MAIN commitmail json YAML

2017-10-28 12:07:40 UTC MAIN commitmail json YAML

2017-10-28 10:54:18 UTC MAIN commitmail json YAML

Add new DTS files:
sun8i-a83t-allwinner-h8homlet-v2.dts
sun8i-a83t-bananapi-m3.dts
sun8i-a83t-cubietruck-plus.dts
sun50i-a64-nanopi-a64.dts
sun50i-a64-olinuxino.dts
sun50i-a64-orangepi-win.dts
sun50i-a64-sopine-baseboard.dts

(jmcneill)

2017-10-28 10:35:48 UTC MAIN commitmail json YAML

dts updated to 4.14-rc6

(jmcneill)

2017-10-28 10:35:04 UTC MAIN commitmail json YAML

src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/imx6ul-geam-kit.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/imx6ul-geam.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/imx6ul-isiot-common.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/mt7623-evb.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/rk1108-evb.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/rk1108.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/tegra20-whistler.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/uniphier-sld3-ref.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/uniphier-sld3.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/broadcom/bcm2835-rpi.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/broadcom/bcm2837.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/broadcom/bcm283x-rpi-smsc9514.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/broadcom/bcm283x-rpi-usb-host.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/broadcom/bcm283x.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/broadcom/ns2-clock.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/broadcom/ns2-svk.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/broadcom/ns2-xmc.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/broadcom/ns2.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/socionext/uniphier-pinctrl.dtsi@1.4 / diff / nxr@1.4
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/socionext/uniphier-ref-daughter.dtsi@1.4 / diff / nxr@1.4
      :
(more 3 files)
merge conflicts

(jmcneill)

2017-10-28 07:36:02 UTC MAIN commitmail json YAML

Update format to report sC

(skrll)

2017-10-28 06:36:18 UTC MAIN commitmail json YAML

Add '-n' and '-p var' args to the wait command (-n: wait for any,
-p var: set var to identifier, from arg list, or PID if no job args)
of the job for which status is returned (becomes $? after wait.)

Note: var is unset if the status returned from wait came from wait
itself rather than from some job exiting (so it is now possible to
tell whether 127 means "no such job" or "job did exit(127)", and
whether $? > 128 means "wait was interrupted" or "job was killed
by a signal or did exit(>128)".  ($? is too limited to to allow
indicating whether the job died with a signal, or exited with a
status such that it looks like it did...)

(kre)

2017-10-28 06:27:32 UTC MAIN commitmail json YAML

2017-10-28 06:24:24 UTC MAIN commitmail json YAML

Add #includes to make this compile.

<sys/cdefs.h> for __packed
<sys/types.h> for uint32_t

(riastradh)

2017-10-28 04:53:56 UTC MAIN commitmail json YAML

2017-10-28 04:50:38 UTC MAIN commitmail json YAML

Another %zu for size_t (this one in a DEBUG mode trace call, so it
doesn't actually ever bother anyone in practice.)

(kre)

2017-10-28 04:16:04 UTC MAIN commitmail json YAML

Back out extern struct cfdriver -> ioconf.h change to sequencer.c.

This broke the module build, because it needs midi_cd which is defined
in another module and not declared by the ioconf.h generated from
sequencer.ioconf.

But...  It also needs sequencer_cd, which is _also_ not declared by
the ioconf.h generated from sequencer.ioconf, nor defined in the
ioconf.c generated from sequencer.ioconf.  Did this ever work???

(riastradh)

2017-10-28 03:59:11 UTC MAIN commitmail json YAML

Extract the variable name validity test from setname() into a
function of its own.  It will soon be needed from another source.

(kre)

2017-10-28 03:47:24 UTC MAIN commitmail json YAML

2017-10-28 03:34:27 UTC MAIN commitmail json YAML

No externs in .c files!  Include ioconf.h for struct cfdriver xyz_cd.

(riastradh)

2017-10-28 01:12:04 UTC MAIN commitmail json YAML

Note update of kernhist(9) and mention that you also need to update
vmstat(1).

(pgoyette)

2017-10-28 00:40:46 UTC MAIN commitmail json YAML

For some reason this single kernel seems to have outgrown its declared
size as a result of the kernhist(9) changes.  Bump the size.

XXX The amount of increase may be excessive - anyone with more detailed
XXX knowledge please feel free to further adjust the value appropriately.

(pgoyette)

2017-10-28 00:37:14 UTC MAIN commitmail json YAML

Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...

(As proposed on tech-kern@ with additional changes and enhancements.)

Details of changes:

* All history arguments are now stored as uintmax_t values[1], both in
  the kernel and in the structures used for exporting the history data
  to userland via sysctl(9).  This avoids problems on some architectures
  where passing a 64-bit (or larger) value to printf(3) can cause it to
  process the value as multiple arguments.  (This can be particularly
  problematic when printf()'s format string is not a literal, since in
  that case the compiler cannot know how large each argument should be.)

* Update the data structures used for exporting kernel history data to
  include a version number as well as the length of history arguments.

* All [2] existing users of kernhist(9) have had their format strings
  updated.  Each format specifier now includes an explicit length
  modifier 'j' to refer to numeric values of the size of uintmax_t.

* All [2] existing users of kernhist(9) have had their format strings
  updated to replace uses of "%p" with "%#jx", and the pointer
  arguments are now cast to (uintptr_t) before being subsequently cast
  to (uintmax_t).  This is needed to avoid compiler warnings about
  casting "pointer to integer of a different size."

* All [2] existing users of kernhist(9) have had instances of "%s" or
  "%c" format strings replaced with numeric formats; several instances
  of mis-match between format string and argument list have been fixed.

* vmstat(1) has been modified to handle the new size of arguments in the
  history data as exported by sysctl(9).

* vmstat(1) now provides a warning message if the history requested with
  the -u option does not exist (previously, this condition was silently
  ignored, with only a single blank line being printed).

* vmstat(1) now checks the version and argument length included in the
  data exported via sysctl(9) and exits if they do not match the values
  with which vmstat was built.

* The kernhist(9) man-page has been updated to note the additional
  requirements imposed on the format strings, along with several other
  minor changes and enhancements.

[1] It would have been possible to use an explicit length (for example,
    uint64_t) for the history arguments.  But that would require another
    "rototill" of all the users in the future when we add support for an
    architecture that supports a larger size.  Also, the printf(3) format
    specifiers for explicitly-sized values, such as "%"PRIu64, are much
    more verbose (and less aesthetically appealing, IMHO) than simply
    using "%ju".

[2] I've tried very hard to find "all [the] existing users of kernhist(9)"
    but it is possible that I've missed some of them.  I would be glad to
    update any stragglers that anyone identifies.

(pgoyette)

2017-10-27 23:22:01 UTC MAIN commitmail json YAML

Add comment explaining why membar_producer is not sfence.

On x86, ordinary non-temporal stores are always issued in program
order to main memory and to other CPUs.

(riastradh)

2017-10-27 19:00:07 UTC MAIN commitmail json YAML

Document the hw.driverN.latency sysctl variable.

(nat)

2017-10-27 18:16:10 UTC MAIN commitmail json YAML

Add NULL check after doing memory allocation at a couple of places

ok christos@

(abhinav)

2017-10-27 12:25:15 UTC MAIN commitmail json YAML

2017-10-27 12:01:08 UTC MAIN commitmail json YAML

[syzkaller] Fix for PR #52658 as suggested by riastradh@

The bug was found by Dmitry Vyukov (dvyukov@google.com)
using syzkaller and was tested by me on a VM running
8.99.5

(utkarsh009)

2017-10-27 11:15:03 UTC MAIN commitmail json YAML

Update the return type of printf(9)

from 'void' to 'int' as a result of
redeclaration in sys/sys/systm.h

(utkarsh009)

2017-10-27 09:59:17 UTC MAIN commitmail json YAML

2017-10-27 08:43:11 UTC MAIN commitmail json YAML

Replace a line that somehow got lost in the import from tzcode2017c

(kre)

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

The Zone test was obviously intended to test %Z rather than %z, otherwise
it would be (and has been) identical to the zone test, which would be a
pointless waste of time.

(kre)

2017-10-27 04:31:50 UTC MAIN commitmail json YAML

Handle esp-udp for NAT-T

(ozaki-r)

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

Minor typo: Coordinated Universal time  should be  Coordinated Universal Time

(kre)

2017-10-27 01:34:32 UTC MAIN commitmail json YAML

Independent blocksizes for virtual channels where a static blocksize is
not stipulated by the underlying hw driver.

This improves latency in games esp. when the stream format differs from
the harware format.

OK christos@.

(nat)

2017-10-27 00:55:27 UTC MAIN commitmail json YAML

Remove bogus errno checks, mktime() (and timegm()) does not guarantee
to leave errno unaltered if there is no error.  And does not.

While here, write -1 the same way everyone else does (not ~0, which
would not even be negative on a 1's complement host, if you can find one).

And while not needed for the test, but so that if checked, the result is
more likely to be what is anticipated, set tm_mday to an in-range value
in the mtime_negyear test (otherwise the correction results in the result
movng backwards to the last day of the previous month, which is the
end of Decemper, 1898, rather than the 1899 one would expect from year -1.)

(kre)

2017-10-26 23:28:15 UTC MAIN commitmail json YAML

Add support for enabling modules specified in ti,hwmods property. Very
primitive am3xxx prcm driver added to validate it, needs work.

(jmcneill)

2017-10-26 22:45:00 UTC MAIN commitmail json YAML

Ensure that the low/high water marks are at least PREFILL_BLOCKS.

(nat)

2017-10-26 22:38:27 UTC MAIN commitmail json YAML

Add latency sysctl to adjust hw blocksize and hence latency of the mixer.

usage: sysctl -w hw.hdafg0.lantency="value in milliseconds"

It is possible to set the latency of the mixer unless a static blocksize
is configured by the underlying hardware driver (pad, vcaudio on RPI).

Documentation updates to audio.4 will occur in a follow up commit.

OK christos@.  XXX pullup-8.

(nat)

2017-10-26 10:56:57 UTC MAIN commitmail json YAML

UART frequency comes from 'clock-frequency' property here

(jmcneill)

2017-10-26 09:41:15 UTC MAIN commitmail json YAML

Use macro(ETHER_LOCK() and ETHER_UNLOCK()). No functional change.

(msaitoh)

2017-10-26 07:29:53 UTC MAIN commitmail json YAML

Add man page for bwfm(4)

Wireless driver for Broadcom and some now sold by Cypress.

(maya)

2017-10-26 05:08:30 UTC MAIN commitmail json YAML

2017-10-26 01:40:33 UTC MAIN commitmail json YAML

- Remove all half duplex setting.
- Remove special handling of IXGBE_DEV_ID_82598AT's 1000BaseT. The PHY is
  compliant with clause 45, so the media is added in the beginning of
  ixgbe_add_media_types().

(msaitoh)

2017-10-26 01:16:32 UTC MAIN commitmail json YAML

2017-10-25 19:27:06 UTC MAIN commitmail json YAML

Note addition of bwfm(4)

(jmcneill)

2017-10-25 19:04:07 UTC MAIN commitmail json YAML

Remove comma after last Nm entry
Remove whitespace at the end of a line

(abhinav)