Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (3h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 02:29:39 UTC Now

2014-07-06 01:19:45 UTC MAIN commitmail json YAML

2014-07-06 00:21:24 UTC MAIN commitmail json YAML

When building GCC with Clang, disable optimizations for tree.c until I
can figure out what is responsible for the miscompilation.

(joerg)

2014-07-05 23:13:41 UTC MAIN commitmail json YAML

remove .if make(install)

(dholland)

2014-07-05 23:12:33 UTC MAIN commitmail json YAML

remove .if make(install)
these are seriously bad juju

(dholland)

2014-07-05 22:31:33 UTC MAIN commitmail json YAML

Remove stray .if make(insatll).

I would really like to know why this didn't fail the clean build I ran
last night.

(dholland)

2014-07-05 22:08:14 UTC MAIN commitmail json YAML

Put /usr/share/doc/reference/ref1/make in the right list. The dirs are
always created.

(dholland)

2014-07-05 22:06:11 UTC MAIN commitmail json YAML

Implement error checking in m_xbyte() and check for errors after m_xbyte() call.
Reuse (len - k) expression in m_xword() and m_xhalf() to give an optimization
hint to a compiler.

When m_xbyte() didn't exist, bpf_filter() handled out-of-bounds BPF_B loads
correctly because "return 0" inside MINDEX() was aborting filter programs.
After the change that added m_xbyte() zero values were passed to A or X
registers instead of aborting a filter program.

(alnsn)

2014-07-05 20:45:49 UTC MAIN commitmail json YAML

2014-07-05 20:44:46 UTC MAIN commitmail json YAML

Provide a basic implementation of __atomic_load_* and __atomic_store_*,
used by GCC and LLVM as backing for C11/C++11 atomics, if the hardware
is not known to have corresponding features. Include it on ARM as LLVM
and libc++ hit it when compiled for ARMv4.

(joerg)

2014-07-05 20:17:51 UTC MAIN commitmail json YAML

2014-07-05 19:36:16 UTC MAIN commitmail json YAML

Add a file to help keep track of what's where and what we never
actually had.

(dholland)

2014-07-05 19:25:58 UTC MAIN commitmail json YAML

2014-07-05 19:23:56 UTC MAIN commitmail json YAML

Update the distrib-dirs mtree specification for the new /usr/share/doc
layout.

(dholland)

2014-07-05 19:23:39 UTC MAIN commitmail json YAML

Remove HTMLDOCDIR; it is no longer used (and doesn't fit the docs
scheme) and it was never honored anyway except in a couple places.

(dholland)

2014-07-05 19:23:16 UTC MAIN commitmail json YAML

Reorg docs, part 3:
Move the documents that are papers to /usr/share/doc/papers.
Give them suitable names (including the author and year).

The key property of papers that distinguishes them from documentation
is that they're historical: they're published at a particular time and
aren't updated or maintained. (Except cosmetically.)

We should only ship papers that are of interest to users, either for
historical perspective or because they're the original research
writeup of stuff that went into the system and is still pertinent.

The ffs papers clearly meet this standard; the other one here (about
passwords, in 1978) is probably past its sell-by date.

(dholland)

2014-07-05 19:23:00 UTC MAIN commitmail json YAML

Reorg docs, part 2:
Rename the following reference documents to match their programs:
  shell -> sh
  viref -> vi

and rename the following to match their topic better:
  ipctut -> sockets
  ipc -> sockets-advanced

Also, the old "timed" and "timedop" docs are now ref5/timed and
ref8/timed respectively, as the first of these documented the
protocol.

(dholland)

2014-07-05 19:22:43 UTC MAIN commitmail json YAML

Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.

Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.

Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.

Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.

(dholland)

2014-07-05 19:22:05 UTC MAIN commitmail json YAML

Rework /usr/share/doc.

Update the <bsd.doc.mk> infrastructure, and update the docs to match
the new infrastructure.

- Build and install text, ps, pdf, and/or html, not roff sources.

- Don't wire the chapter numbers into the build system, or use them in
the installed pathnames. This didn't matter much when the docs were a
museum, but now that we're theoretically going to start maintaining
them again, we're going to add and remove documents periodically and
having the chapter numbers baked in creates a lot of thrashing for no
purpose.

- Specify the document name explicitly, rather than implicitly in a
path. Use this name (instead of other random strings) as the name
of the installed files.

- Specify the document section, which is the subdirectory of
/usr/share/doc to install into.

- Allow multiple subdocuments. (That is, multiple documents in one
output directory.)

- Enumerate the .png files groff emits along with html so they can be
installed.

- Remove assorted hand-rolled rules for running roff and roff widgetry
and add enough variable settings to make these unnecessary. This
includes support for
  - explicit use of soelim
  - refer
  - tbl
  - pic
  - eqn

- Forcibly apply at least minimal amounts of sanity to certain
autogenerated roff files.

- Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the
build, as they now actually do stuff.

Note: currently we can't generate pdf. This turns out to be a
nontrivial problem with no immediate solution forthcoming. So for now,
as a workaround, install compressed .ps as the printable form.

(dholland)

2014-07-05 17:39:21 UTC MAIN commitmail json YAML

Use M_ZERO.  From OpenBSD if_wpi.c 1.53.

(jakllsch)

2014-07-05 17:18:11 UTC MAIN commitmail json YAML

Reduce wpi(4) diff to OpenBSD circa September 2007; mostly by following KNF.
The only functional changes in this commit are some %d to %u debugging printf
format specifier adjustments so as to match the OpenBSD code.

(jakllsch)

2014-07-05 11:13:13 UTC MAIN commitmail json YAML

PR/48964: In urndis(4), initialization of ifnet structure is not enough,
cause panic.

Update urndis_init to return and error and use as if_init based on the
patch in the PR with stylistic changes from me.

XXX IFF_RUNNING should be ignored here?

(skrll)

2014-07-05 11:13:13 UTC MAIN commitmail json YAML

Review some SLJIT_MOV instructions with respect to width.

(alnsn)

2014-07-05 10:00:42 UTC MAIN commitmail json YAML

Regen from GENERIC.in rev 1.125:

> Use COPTS="-O2 -fno-reorder-blocks" for kernels except INSTALL_CONFIGURATION.

(tsutsui)

2014-07-05 09:59:06 UTC MAIN commitmail json YAML

Use COPTS="-O2 -fno-reorder-blocks" for kernels except INSTALL_CONFIGURATION.

(tsutsui)

2014-07-05 09:55:42 UTC MAIN commitmail json YAML

Regen to reflect GENERIC.in rev 1.121-1.124:

rev 1.121:
> dd preliminary support for the Individual Computers ACA500 in the form of acahf
> driver. If ACA500 is equipped with supported accelerator with MMU, it allows
> running NetBSD on an Amiga 500.
>
> Since ACA is not autoconf-aware, and the probe procedure does not exist yet, the
> driver is activated with the ACA500_SUPPORT kernel option. The acahf driver
> is commented out in the GENERIC kernel for now (at least until it stops being
> very experimental and hackish).
>
> When it comes to ACA-specific hardware, for now the boot CF slot works. Support for everything else is incoming...

rev 1.122:
> Changes to ACA500 support:
> - Add support for second (aux) CF slot.
> - Rework wdc attachment to be more sane.
> - Add support for clockport on ACA500.
> - Fix style where appropriate.

rev 1.123:
> Implement the probe procedure for ACA500. Now the user just needs acafh0
> compiled in his kernel and it all should(tm) work.
>
> Due to lack of obio in amiga port, the probe is called directly from mbattach().
> This is going to change with the introduction of obio for all non-autoconfig
> expansions.

rev 1.124:
> Disable X-Surf devices for DRACO's configuration.
>
> - ne at xsh requires ax88190 and ax88190 requires mii(4),
>  but all mii devices are declared only inside AMIGA_CONFIGURATION
> - X-Surf also add wdc(4) but all children devices like atabus and
>  atapibus are declared only for AMIGA_CONFIGURATION
>
> XXX: DRACO kernel is not built during build.sh release.

(tsutsui)

2014-07-05 09:47:30 UTC MAIN commitmail json YAML

Disable X-Surf devices for DRACO's configuration.

- ne at xsh requires ax88190 and ax88190 requires mii(4),
  but all mii devices are declared only inside AMIGA_CONFIGURATION
- X-Surf also add wdc(4) but all children devices like atabus and
  atapibus are declared only for AMIGA_CONFIGURATION

XXX: DRACO kernel is not built during build.sh release.

(tsutsui)

2014-07-05 09:39:35 UTC MAIN commitmail json YAML

ne at xshbus seems to require ax88190, per if_ne_xsh.c.

On the other hand, dp8390nic is pulled by ne in sys/conf/files
so it isn't required here.

(tsutsui)

2014-07-05 09:36:49 UTC MAIN commitmail json YAML

Appease gcc48 -Wunused-but-set-variable warning.

(tsutsui)

2014-07-05 09:33:41 UTC MAIN commitmail json YAML

Use vcache_rekey_* for nfs_lookitup() in the "*npp != NULL" case.

(hannken)

2014-07-05 09:33:15 UTC MAIN commitmail json YAML

Add vcache operations to support key changes:

vcache_rekey_enter locks the old cache node and creates and locks the
  new cache node.  It is an error if the new cache node exists.

vcache_rekey_exit removes the old cache node and finalizes and
  unlocks the new cache node.

No objections on tech-kern@

Welcome to 6.99.46

(hannken)

2014-07-05 09:32:48 UTC MAIN commitmail json YAML

Regen from MILAN.in rev 1.27 and GENERIC.in rev 1.106:

> Enable options WSDISPLAY_COMPAT_USL in template, not in generated files.

> Use COPTS="-O2 -fno-reorder-blocks" for kernels except SMALL030_KERNEL.
>
> Also remove COPTS="-Os" from std.* files and specify it in
> GENERIC.in template for SMALL030_KERNEL.

(tsutsui)

2014-07-05 09:31:21 UTC MAIN commitmail json YAML

Regen from GENERIC.in rev 1.106:

> Use COPTS="-O2 -fno-reorder-blocks" for kernels except SMALL030_KERNEL.
>
> Also remove COPTS="-Os" from std.* files and specify it in
> GENERIC.in template for SMALL030_KERNEL.

(tsutsui)

2014-07-05 09:30:08 UTC MAIN commitmail json YAML

PR/48963: kmem_free size mismatch causes panic when attaching urndis(4).

Fix the size passed in kmem_free in the urndis_ctrl_{query,set} functions

(skrll)

2014-07-05 09:28:48 UTC MAIN commitmail json YAML

Use COPTS="-O2 -fno-reorder-blocks" for kernels except SMALL030_KERNEL.

Also remove COPTS="-Os" from std.* files and specify it in
GENERIC.in template for SMALL030_KERNEL.

(tsutsui)

2014-07-05 09:24:23 UTC MAIN commitmail json YAML

Enable options WSDISPLAY_COMPAT_USL in template, not in generated files.

(tsutsui)

2014-07-05 09:21:14 UTC MAIN commitmail json YAML

2014-07-05 09:18:47 UTC MAIN commitmail json YAML

Use COPTS="-O2 -fno-reorder-blocks" as defined in sys.mk for userland.

with "-O2":
  text    data    bss    dec    hex filename
2898020  54292  122728 3075040  2eebe0 netbsd

with "-O2 -fno-reorder-blocks":
  text    data    bss    dec    hex filename
2589888  54292  122728 2766908  2a383c netbsd

(tsutsui)

2014-07-05 09:16:45 UTC MAIN commitmail json YAML

Use COPTS="-O2 -fno-reorder-blocks" as defined in sys.mk for userland.

with "-O2":
  text    data    bss    dec    hex filename
2064824  48784  85920 2199528  218fe8 netbsd

with "-O2 -fno-reorder-blocks":
  text    data    bss    dec    hex filename
1842944  48784  85920 1977648  1e2d30 netbsd

(tsutsui)

2014-07-05 09:15:38 UTC MAIN commitmail json YAML

Use COPTS="-O2 -fno-reorder-blocks" as defined in sys.mk for userland.

with "-O2":
  text    data    bss    dec    hex filename
3717740  86092  152864 3956696  3c5fd8 netbsd

with "-O2 -fno-reorder-blocks":
  text    data    bss    dec    hex filename
3304404  86092  152864 3543360  361140 netbsd

(tsutsui)

2014-07-05 09:14:02 UTC MAIN commitmail json YAML

Use COPTS="-O2 -fno-reorder-blocks" as defined in sys.mk for userland.

with "-O2":
  text    data    bss    dec    hex filename
3297898  65044  122584 3485526  352f56 netbsd

with "-O2 -fno-reorder-blocks":
  text    data    bss    dec    hex filename
2930782  65044  122584 3118410  2f954a netbsd

(tsutsui)

2014-07-04 21:32:08 UTC MAIN commitmail json YAML

Add optimization hints. They replace nscratches and ncopfuncs and improve
readability.

(alnsn)

2014-07-04 16:44:26 UTC MAIN commitmail json YAML

${.PARSEDIR} not .${PARSEDIR} for Makefile.compiler-rt include

(jmcneill)

2014-07-04 08:51:15 UTC MAIN commitmail json YAML

2014-07-04 08:33:08 UTC MAIN commitmail json YAML

Adapt to new attach world order

(martin)

2014-07-04 08:09:47 UTC MAIN commitmail json YAML

Add missing includes, fix C99 struct initialization

(martin)

2014-07-04 07:59:17 UTC MAIN commitmail json YAML

Use .set arch=r5900 to enable r5900 specific instructions

(martin)

2014-07-04 07:51:14 UTC MAIN commitmail json YAML

2014-07-04 07:27:57 UTC MAIN commitmail json YAML

Add missing <sys/device.h> include

(martin)

2014-07-04 07:27:29 UTC MAIN commitmail json YAML

md_imask_update is not an inline function, fix declaration.

(martin)

2014-07-04 07:03:35 UTC MAIN commitmail json YAML

2014-07-04 01:50:22 UTC MAIN commitmail json YAML

Fix pktq_enqueue for rump

Add _RUMP_NATIVE_ABI to the macro condition for i386 and x86_64 because
_RUMPKERNEL is not defined for them. See sys/rump/Makefile.rump.

Found by ATF

(ozaki-r)

2014-07-03 20:48:19 UTC MAIN commitmail json YAML

2014-07-03 19:09:16 UTC MAIN commitmail json YAML

2014-07-03 19:08:31 UTC MAIN commitmail json YAML

Add some Intel X38 devices.

(msaitoh)

2014-07-03 17:24:33 UTC MAIN commitmail json YAML

Fix some entries:
- Desc 0x55 and 0xb1 are Instruction TLB but not fixed to 4K.
- Desc 0x5a and 0xc0 are Data TLB but not fixed to 4K.
- Desc 0x57 and 0x59 are 4K fixed DTLB.
- Fix string of desc 0xc2 and it's not fixed to 4K.
- Desc 0xca is 4K fixed L2 shared TLB.
- Add desc 0xa0.

BUG: A lot of CPUs have multiple CAI_DTLB and/or CAI_DTLB2 entries. Currently
TLB info is indexed in ci_cinfo[CAI_COUNT], so some info is overwritten.

Nowadays CPUs have very complexed TLBs. It's hard to manage with CAI_* index.
We should think to separate TLB info structure from ci_cinfo[CAI_COUNT]
in struct cpu_info.

(msaitoh)

2014-07-03 08:43:49 UTC MAIN commitmail json YAML

Change the pattern of KMEM_REDZONE so that the first byte is never '\0'.

From me and lars@.

(maxv)

2014-07-03 07:18:43 UTC MAIN commitmail json YAML

2014-07-03 04:11:37 UTC MAIN commitmail json YAML

Exclude descriptor 0xff of CPUID leaf 2. 0xff means the cacheinfo is in leaf 4.

(msaitoh)

2014-07-02 22:35:10 UTC MAIN commitmail json YAML

2014-07-02 22:33:39 UTC MAIN commitmail json YAML

2014-07-02 22:33:18 UTC MAIN commitmail json YAML

Add BCM5706 1000BASE-T/SX.

(msaitoh)

2014-07-02 22:25:14 UTC MAIN commitmail json YAML

Don't use the PHY Auto Poll Mode on many chips. This fixes a bug that MII
Fiber NIC drop packet about 50%. Same as {Free,Open}BSD.
Tested on HP Moonshot. Thanks zafer@ for testing.

(msaitoh)

2014-07-02 22:21:50 UTC MAIN commitmail json YAML

- 5720S and 5709S share the same PHY id. Assume 5720S PHY if parent device
  is bge(4). Same as FreeBSD. Tested on HP Moonshot.
- Fix media detect on some Fiber chips. Tested on my own BCM5709 card.
  Same as {Free,Open}BSD.

(msaitoh)

2014-07-02 22:01:44 UTC MAIN commitmail json YAML

Don't check BNX_CHIP_NUM. Check MII PHY ID beacause this check is used
for both bge(4) and bnx(4).

(msaitoh)

2014-07-02 21:51:36 UTC MAIN commitmail json YAML

- Remove extra delay in brgphy_mii_phy_auto. Same as {Free,Open}BSD.
- s/u_int/uint/
- KNF.

(msaitoh)

2014-07-02 21:22:05 UTC MAIN commitmail json YAML

2014-07-02 21:21:38 UTC MAIN commitmail json YAML

Add Intel DH89xx devices.

(msaitoh)

2014-07-02 21:10:32 UTC MAIN commitmail json YAML

Update mDNSResponder in-tree version

(pettai)

2014-07-02 21:07:34 UTC MAIN commitmail json YAML

Update heimdal current and in-tree version

(pettai)

2014-07-02 20:17:30 UTC MAIN commitmail json YAML

2014-07-02 19:49:38 UTC MAIN commitmail json YAML

Register a null pmf handler even if we failed to attach.

Keeps ichsmb(4) from preventing suspend even if it's broken because
of ichlpcib(4) grodiness.

(riastradh)

2014-07-02 18:58:42 UTC MAIN commitmail json YAML

If we register with pmf on attach, deregister on detach.

(riastradh)

2014-07-02 15:00:29 UTC MAIN commitmail json YAML

Fix the KMEM_POISON check: it should check the whole buffer, otherwise some
write-after-free's wouldn't be detected (those occurring in the 8 last bytes
of the allocated buffer).

Was here before my changes, spotted by lars@.

(maxv)

2014-07-02 13:58:09 UTC MAIN commitmail json YAML

Handle ENAMETOOLONG to return 404 error instead of 500.

OK mrg@

(shm)

2014-07-02 13:38:05 UTC MAIN commitmail json YAML

2014-07-02 13:33:22 UTC MAIN commitmail json YAML

Restore file for playstation2 accidently overlooked in the big revitilazation

(martin)

2014-07-02 13:27:14 UTC MAIN commitmail json YAML

2014-07-02 12:44:15 UTC MAIN commitmail json YAML

2014-07-02 11:54:48 UTC MAIN commitmail json YAML

2014-07-02 09:51:08 UTC MAIN commitmail json YAML

Protect bridge_list with a mutex

(ozaki-r)

2014-07-02 09:43:16 UTC MAIN commitmail json YAML

Remove obsolete codes for if_snd

(ozaki-r)

2014-07-02 07:30:37 UTC MAIN commitmail json YAML

Restore RPS of pktq_enqueue unless _RUMPKERNEL

It's a workaround and would be fixed in rump soon.

ok pooka@

(ozaki-r)

2014-07-02 07:18:33 UTC MAIN commitmail json YAML

2014-07-02 05:23:20 UTC MAIN commitmail json YAML

2014-07-02 00:32:05 UTC MAIN commitmail json YAML

new acpica is out

(christos)

2014-07-02 00:15:41 UTC MAIN commitmail json YAML

fix boot code maximum size.

From OpenBSD if_wpireg.h 1.19.

(jakllsch)

2014-07-02 00:04:18 UTC MAIN commitmail json YAML

No need to duplicate the members of the wpi_cmd_data structure within
the wpi_scan_hdr structure when we can just put the wpi_cmd_data
structure within the wpi_scan_hdr structure.

This also brings our if_wpireg.h mostly in line with OpenBSD's 1.18.

(jakllsch)

2014-07-01 23:01:54 UTC MAIN commitmail json YAML

On ARM the variable name 'delay' shadows a function here, rename to avoid
-Wshadow objecting.

(justin)

2014-07-01 20:03:21 UTC MAIN commitmail json YAML

Implement i915drmkms wsdisplay blank/backlight/brightness controls.

(riastradh)

2014-07-01 17:11:35 UTC MAIN commitmail json YAML

Print some information (ASCI revision, PCI status, etc). Ffrom FreeBSD.

(msaitoh)

2014-07-01 16:29:57 UTC MAIN commitmail json YAML

Honour write-combining flag in drm_ioremap.

(riastradh)

2014-07-01 16:27:25 UTC MAIN commitmail json YAML

Tweak debug printf directives.

(riastradh)

2014-07-01 16:18:55 UTC MAIN commitmail json YAML

Move the main loop in bpfjit_generate_code() to a new function and make few
small changes.

(alnsn)

2014-07-01 15:23:35 UTC MAIN commitmail json YAML

No functional change.
- s/u_int/uint/
- Modify comment a bit (sync with OpenBSD)

(msaitoh)

2014-07-01 15:16:07 UTC MAIN commitmail json YAML

Disable DRI for Ivy Bridge (and later) until we update Mesa.

This is a stop-gap for PR 48916.

(riastradh)

2014-07-01 15:03:58 UTC MAIN commitmail json YAML

KNF. No functional change.

(msaitoh)

2014-07-01 14:04:40 UTC MAIN commitmail json YAML

Unbreak lib/libc/net/getifaddrs.c

  --- getifaddrs.o ---
  In file included from /tmp/bracket/build/2014.07.01.10.35.18-i386/src/lib/libc/net/getifaddrs.c:39:0:
  /tmp/bracket/build/2014.07.01.10.35.18-i386/src/sys/net/if.h:208:2: error: unknown type name 'kmutex_t'
    kmutex_t *ifq_lock;
      ^

(ozaki-r)

2014-07-01 13:41:21 UTC MAIN commitmail json YAML

* bozo_clean_request free(3) clean up (removed needless checks)
* HEAD method no longer returns response body on error
* fixed bug with multiple bozo_http_error calls caused by fix_url_percent

OK @mrg

(shm)

2014-07-01 13:25:21 UTC MAIN commitmail json YAML

Bump to version 6.99.45 for removal of struct lwp * parameter from pr_ioctl

(rtr)

2014-07-01 12:08:33 UTC MAIN commitmail json YAML

1) Define a malloc(9)-like kmem_header structure for KMEM_SIZE. It is in
  fact more consistent, and more flexible (eg if we want to add new fields).
2) When I say "page" I actually mean "kmem page". It may not be clear, so
  replace it by "memory chunk" (suggested by lars@).
3) Minor changes for KMEM_REDZONE.

(maxv)

2014-07-01 10:35:18 UTC MAIN commitmail json YAML

Make if_wm MPSAFE

- Make it MPSAFE only when NET_MPSAFE
  - otherwise, its instructions are almost same as before
  - the only change is IFQ_POLL/IFQ_DEQUEUE which
    is now single IFQ_DEQUEUE
- Protect driver operations with a lock
  - further work would make it separate
- Apply MPSAFE flag to
  - callout_init
  - pci_intr_establish
- Stop proceeding packets when the driver is likely
  to stop for graceful ifconfig down

Tested on Rangeley (I354) and KVM (e1000)
Reviewed by msaitoh@

(ozaki-r)

2014-07-01 10:16:02 UTC MAIN commitmail json YAML

Lock IFQ operations when NET_MPSAFE

- Introduce NET_MPSAFE
  - not defined by default
- Add ifq_lock to protect ifnet#if_snd
- Initialize ifq_lock and lock IFQ operations
  when NET_MPSAFE

When NET_MPSAFE isn't defined, this modification
doesn't change its behavior and adds trivial
performance overheads.

Discussed with matt@ on tech-net

(ozaki-r)

2014-07-01 07:51:29 UTC MAIN commitmail json YAML

Stop using callout randomly

nd6_dad_start uses callout when xtick > 0 while doesn't when
xtick == 0. So if we pass a random value ranging from 0 to N,
nd6_dad_start uses callout randomly. This behavior makes
debugging difficult.

Discussed in http://mail-index.netbsd.org/tech-kern/2014/06/25/msg017278.html

(ozaki-r)

2014-07-01 05:49:19 UTC MAIN commitmail json YAML

fix parameter types in pr_ioctl, called xx_control() functions and remove
abuse of pointer to struct mbuf type.

param2 changed to u_long type and uses parameter name 'cmd' (ioctl command)
param3 changed to void * type and uses parameter name 'data'
param4 changed to struct ifnet * and uses parameter name 'ifp'
param5 has been removed (formerly struct lwp *) and uses of 'l' have been
      replaced with curlwp from curproc(9).

callers have had (now unnecessary) casts to struct mbuf * removed, called
code has had (now unnecessary) casts to u_long, void * and struct ifnet *
respectively removed.

reviewed by rmind@

(rtr)

2014-07-01 03:43:09 UTC MAIN commitmail json YAML

Fix build for ipf tests.

(htodd)

2014-07-01 03:42:41 UTC MAIN commitmail json YAML

Fix build for debug with bpfjit.

(htodd)

2014-07-01 03:34:05 UTC MAIN commitmail json YAML

Update root.cache entry.

(taca)

2014-07-01 03:33:28 UTC MAIN commitmail json YAML

Update root.cache to 2014060201.

Now B.ROOT-SERVERS.NET and C.ROOT-SERVERS.NET has an AAAA record.

(taca)

2014-07-01 03:31:38 UTC netbsd-6 commitmail json YAML

Revert previous commit since wrong branch.

(taca)

2014-07-01 03:29:53 UTC netbsd-6 commitmail json YAML

Update root.cache to 2014060201.

Now B.ROOT-SERVERS.NET and C.ROOT-SERVERS.NET has an AAAA record.

(taca)

2014-06-30 21:46:33 UTC MAIN commitmail json YAML

Use MAP_ANONYNOUS (POSIX).  Define MAP_ANON as MAP_ANONYMOUS.

(matt)

2014-06-30 21:34:22 UTC MAIN commitmail json YAML

Fix test directory.

(alnsn)

2014-06-30 21:33:40 UTC MAIN commitmail json YAML

Apply OpenBSD src/sys/dev/pci/if_wpireg.h 1.17.

(jakllsch)

2014-06-30 21:32:59 UTC MAIN commitmail json YAML

2014-06-30 21:30:51 UTC MAIN commitmail json YAML

2014-06-30 21:17:18 UTC MAIN commitmail json YAML

Sync with OpenBSD src/sys/dev/pci/if_wpireg.h 1.16.

(jakllsch)

2014-06-30 20:42:31 UTC MAIN commitmail json YAML

IAS is clang specific.

(joerg)

2014-06-30 17:51:32 UTC MAIN commitmail json YAML

This is weird; 'abort' already does all this, so simply use goto abort.

(maxv)

2014-06-30 17:31:15 UTC MAIN commitmail json YAML

Reorder two variables and fix some comments.

(maxv)

2014-06-30 17:22:32 UTC MAIN commitmail json YAML

If the interpreter is "", do not keep loading the script (which will later
fail), but return ENOEXEC directly.

ok christos@

(maxv)

2014-06-30 17:02:55 UTC MAIN commitmail json YAML

New IPv6 tests for ipnat parsing need to be built by make so that they can
be executed.

(darrenr)

2014-06-30 16:14:35 UTC MAIN commitmail json YAML

NetBSD has an entry for protocol #255 in /etc/protocols labeled "reserved"
so expect that in the parsing output instead of 255.

(darrenr)

2014-06-30 15:34:57 UTC MAIN commitmail json YAML

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).

(martin)

2014-06-30 14:58:59 UTC MAIN commitmail json YAML

Use NZERO instead of hard-coded "20" value.

(njoly)

2014-06-30 12:59:48 UTC MAIN commitmail json YAML

sun4v: The maximum number of register windows is a constant and thus not available via the %ver register (sun4u only). Introduce a macro GET_MAXCWP that handles this, so cpu_switchto() works properly on sun4v. Other relevant reference to %ver can be adapted to use GET_MAXCWP as the sun4v port progresses. OK martin@

(palle)

2014-06-30 12:56:51 UTC MAIN commitmail json YAML

Cleanup ppp_inproc

- Remove unnecessary variable isr
- Use pktq instead of rv to switch between inet/inet6 and other protocols

ok msaitoh@ and rmind@

(ozaki-r)

2014-06-30 12:19:01 UTC netbsd-6-0 commitmail json YAML

2014-06-30 12:18:40 UTC netbsd-6-1 commitmail json YAML

2014-06-30 12:18:15 UTC netbsd-6 commitmail json YAML

2014-06-30 12:10:25 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1090):
sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.24
sys/compat/netbsd32/netbsd32_event.c: revision 1.11
Allocate directly KQ_NEVENTS bytes. Otherwise a user can panic the system.
ok christos@

(msaitoh)

2014-06-30 12:10:05 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1090):
sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.24
sys/compat/netbsd32/netbsd32_event.c: revision 1.11
Allocate directly KQ_NEVENTS bytes. Otherwise a user can panic the system.
ok christos@

(msaitoh)

2014-06-30 12:09:40 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1090):
sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.24
sys/compat/netbsd32/netbsd32_event.c: revision 1.11
Allocate directly KQ_NEVENTS bytes. Otherwise a user can panic the system.
ok christos@

(msaitoh)

2014-06-30 11:00:06 UTC netbsd-5-1 commitmail json YAML

2014-06-30 10:59:09 UTC netbsd-5-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1909):
        sys/compat/freebsd/freebsd_sched.c 1.20-1.21

Avoid NULL dereference and fix sched param conversion (at least make it
do something). Pointed out by Maxime Villard.

(msaitoh)

2014-06-30 10:58:42 UTC netbsd-5-2 commitmail json YAML

2014-06-30 10:55:20 UTC netbsd-5-2 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1909):
        sys/compat/freebsd/freebsd_sched.c 1.20-1.21

Avoid NULL dereference and fix sched param conversion (at least make it
do something). Pointed out by Maxime Villard.

(msaitoh)

2014-06-30 10:54:37 UTC netbsd-5 commitmail json YAML

2014-06-30 10:53:59 UTC netbsd-5 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1909):
        sys/compat/freebsd/freebsd_sched.c 1.20-1.21

Avoid NULL dereference and fix sched param conversion (at least make it
do something). Pointed out by Maxime Villard.

(msaitoh)

2014-06-30 10:03:41 UTC MAIN commitmail json YAML

Schedule pppoe_softintr only when a packet is enqueued

(ozaki-r)

2014-06-30 06:09:44 UTC MAIN commitmail json YAML

Acquire SW semaphore in wm_get_swsm_semaphore

It is required to serialize device drivers running on different CPUs.
The basic instructions are same as the official Intel driver.

ok msaitoh@

(ozaki-r)

2014-06-30 05:52:24 UTC MAIN commitmail json YAML

Note micphy(4)

(ozaki-r)

2014-06-30 04:38:18 UTC netbsd-6-0 commitmail json YAML

2014-06-30 04:37:47 UTC netbsd-6-1 commitmail json YAML

2014-06-30 00:01:24 UTC MAIN commitmail json YAML

NPF: use BPF JIT by default.

(rmind)

2014-06-29 23:21:28 UTC MAIN commitmail json YAML

2014-06-29 23:10:48 UTC MAIN commitmail json YAML

Pass the scan result RSSI to the WPA code in a way that it understands.

(jakllsch)

2014-06-29 17:49:04 UTC MAIN commitmail json YAML

Make sure the iso target directory is created in-time for the mkisofs
invocation

(martin)

2014-06-29 15:10:17 UTC MAIN commitmail json YAML

set TOOLCHAIN_MISSING for playstation2.
default EXTERNAL_TOOLCHAIN to choosing to be GCC.

ps2 pkgsrc almost works now..

(mrg)

2014-06-29 12:18:42 UTC MAIN commitmail json YAML

Remove an unused variable

(martin)

2014-06-29 11:36:52 UTC MAIN commitmail json YAML

Change assertion as rump_component_load may be called before curlwp available

(justin)

2014-06-29 11:18:40 UTC MAIN commitmail json YAML

2014-06-29 09:52:43 UTC MAIN commitmail json YAML

allow i2c address 0x01-0x7F
igore responses if the sensor is in command mode

(kardel)

2014-06-29 09:32:24 UTC MAIN commitmail json YAML

make implementation match gpio(4) man entry. do no change configuration
if no flags are be set (allows non-destructive inquiry via GPIOSET again).

(kardel)

2014-06-29 09:27:58 UTC MAIN commitmail json YAML

2014-06-29 09:26:32 UTC MAIN commitmail json YAML

Add in test cases for testing ipnat's parsing of IPv6 NAT rules

(darrenr)

2014-06-29 09:25:31 UTC MAIN commitmail json YAML

2014-06-29 09:06:05 UTC MAIN commitmail json YAML

remove artifacts inspired by misleading documentation
fix address caculation macros
fix typoes

(kardel)

2014-06-29 08:58:01 UTC MAIN commitmail json YAML

#552 destination port not zero after parsing nat rule
3561691 gethost never returns an ipv6 address

(darrenr)

2014-06-29 08:53:08 UTC MAIN commitmail json YAML

#551 ipf.conf address structure not properly zero filled

(darrenr)

2014-06-29 08:51:01 UTC MAIN commitmail json YAML

#536 ipnat can try to print rule as dstlist incorrectly

(darrenr)

2014-06-29 05:20:15 UTC MAIN commitmail json YAML

Use "-O2 -fno-reorder-blocks" instead of "-Os" for m68k default optimization.

"-Os" was specfied when gcc 4.5.x was imported and the commit log says
"-O2 produces much bigger code with gcc 4.5 than it did with gcc 4.1"
but "-Os" disables most inline declarations and makes some applications
much slower.  "-O2 -fno-reorder-blocks" seems enough to reduce sizes
and disabling -freorder-blocks wouldn't cause particular performance
impact on ancient m68k machines with small cache memories.
See my post on port-m68k@ for more details:
http://mail-index.NetBSD.org/port-m68k/2014/06/22/msg000488.html

No objection in the thread and "seems fine to me" from mrg@.

(tsutsui)

2014-06-29 05:06:46 UTC MAIN commitmail json YAML

3561690 ipv6 address for test.hosts.dots in wrong byte order

(darrenr)

2014-06-29 05:02:15 UTC MAIN commitmail json YAML

Pull the simliar workaround from gcc 4.5.4:

http://mail-index.NetBSD.org/source-changes/2014/06/29/msg055885.html
---
Tweak LIB1ASMFUNCS order to avoid linker warnings on libgcc_s build with -O2.

Without this change, ld complains as the following:
>> libgcc_s_pic.a(_float.pico):(.text+0x8): relocation truncated to fit:
>> R_68K_PC16 against symbol `$_exception_handler' defined in .text section in
>> libgcc_s_pic.a(_floatex.pico)

_float.S and _double.S refer `$_exception_handler' declared in _floatex.S
and linking the _floatex.S first seems to work around these warnings
(probably caused by pic relative jump addresses).
See port-m68k@ posts for more details:
http://mail-index.NetBSD.org/port-m68k/2014/06/22/msg000488.html
---

Note m68k/defs.mk is manually edited to avoid extra diffs.

(tsutsui)

2014-06-29 04:55:44 UTC MAIN commitmail json YAML

Tweak LIB1ASMFUNCS order to avoid linker warnings on libgcc_s build with -O2.

Without this change, ld complains as the following:
>> libgcc_s_pic.a(_float.pico):(.text+0x8): relocation truncated to fit:
>> R_68K_PC16 against symbol `$_exception_handler' defined in .text section in
>> libgcc_s_pic.a(_floatex.pico)

_float.S and _double.S refer `$_exception_handler' declared in _floatex.S
and linking the _floatex.S first seems to work around these warnings
(probably caused by pic relative jump addresses).
See port-m68k@ posts for more details:
http://mail-index.NetBSD.org/port-m68k/2014/06/22/msg000488.html

Note m68k.mk is manually edited to avoid extra diffs.

(tsutsui)

2014-06-29 04:08:43 UTC MAIN commitmail json YAML

Export accessops functions to allow overriding them in MD attachment.

(tsutsui)

2014-06-29 04:04:02 UTC MAIN commitmail json YAML

Use todr_[gs]ettime_ymdhms functions that handle ymdhms format properly.

Compile test only.

(tsutsui)

2014-06-29 04:00:59 UTC MAIN commitmail json YAML

in2 is no longer a broken test case

(darrenr)

2014-06-29 03:57:10 UTC MAIN commitmail json YAML

Add a newline at end of file.

(tsutsui)

2014-06-29 03:44:34 UTC MAIN commitmail json YAML

2014-06-29 03:43:06 UTC MAIN commitmail json YAML

Appease a printf format warning on LP64 machines.

(tsutsui)

2014-06-29 00:05:24 UTC MAIN commitmail json YAML

NPF:
- Populate the BPF external memory store with L3 information.
- Eliminate NPF_COP_L3 call and just use the data in the memstore.
- Bump NPF_VERSION.

(rmind)

2014-06-28 22:27:51 UTC MAIN commitmail json YAML

Revert the following changes:

  src/sys/sys/quotactl.h 1.37
  src/sys/compat/netbsd32/netbsd32.h 1.101
  src/sys/compat/netbsd32/netbsd32_netbsd.c 1.188, 1.189
  src/sys/kern/vfs_quotactl.c 1.39
  src/sys/kern/vfs_syscalls.c 1.483
  src/sys/ufs/lfs/ulfs_quota.c 1.11
  src/sys/ufs/ufs/ufs_quota.c 1.116
  src/lib/libquota/quota_kernel.c 1.5

and do them correctly.

If you're going to change the name of something, you need to change
the name of *all* the things with the same name, not just a handful,
and you should change it to something similar so it still matches the
rest of the system rather than just picking an arbitrarily different
name.

Hi, Joerg.

To wit, rename the quotactl "delete" operation to "del", because
"delete" is a reserved word in C++ and for some reason Joerg wants to
run internal interfaces used only by C code through his C++ compiler.
Do not rename it to "remove" instead, because this doesn't match
libquota or the rest of the usage throughout the system; and rename
all the related identifiers, not just the ones that blew the mind of
Joerg's C++ compiler.

Because this is not a user-facing API (the only userland consumer
sys/quotactl.h is libquota) it is sort of ok to make arbitrary
source-incompatible changes; however, by the same token it's completely
unnecessary. If it *were* a user-facing API that someone might have a
semi-rational reason to want to run a C++ compiler on, it would be
incorrect to change it at this point.

(dholland)

2014-06-28 21:13:12 UTC MAIN commitmail json YAML

If we're going to use just the name of the dying function as a panic
string, it should at least be the name of the *right* function. ish.

(dholland)

2014-06-28 20:18:55 UTC MAIN commitmail json YAML

2014-06-28 20:18:15 UTC MAIN commitmail json YAML

.fpu is not handled correctly by LLVM's assembler parser, so use GAS for
now.

(joerg)

2014-06-28 17:32:27 UTC MAIN commitmail json YAML

Don't print junk errnos. Avoids:
  % ps -tfoo
  ps: /dev/ttyfoo: Undefined error: 0
  Exit 1

(dholland)

2014-06-28 15:52:45 UTC MAIN commitmail json YAML

This KASSERT can trigger a panic too easily, if SCARG(uap, cmd)=SWAP_OFF and
SCARG(uap, arg)=NULL. The same KASSERT is already in the SWAP_ON switch case,
so just delete it here.

(maxv)

2014-06-28 11:39:15 UTC MAIN commitmail json YAML

Sync getfh() with the native implementation. It also fixes:
a) a return value
b) a vnode lock
c) a user-controlled memory allocation

ok christos@, on tech-kern

(maxv)

2014-06-28 11:06:31 UTC MAIN commitmail json YAML

2014-06-28 10:25:32 UTC MAIN commitmail json YAML

2014-06-28 10:25:16 UTC MAIN commitmail json YAML

#ifdef a variable like its usage.

(skrll)

2014-06-28 09:16:18 UTC MAIN commitmail json YAML

patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.

(rtr)

2014-06-28 08:02:09 UTC MAIN commitmail json YAML

#537 NAT rules with sticky have incorrect hostmap IP address

(darrenr)

2014-06-28 07:59:26 UTC MAIN commitmail json YAML

2014-06-28 07:01:51 UTC MAIN commitmail json YAML

2014-06-27 22:27:16 UTC MAIN commitmail json YAML

Collect `#ifdef AGP_DEBUG printf(...)' into local DPRINTF macro.

(riastradh)

2014-06-27 19:55:20 UTC MAIN commitmail json YAML

Work around bug on one-pipe 845 devices until we update drm again.

(riastradh)

2014-06-27 07:28:26 UTC MAIN commitmail json YAML

Use the right macro in dwc2_root_intr_start

(skrll)

2014-06-26 22:55:23 UTC MAIN commitmail json YAML

Change ARM ELF_MAXPAGESIZE to 0x10000 and also change TEXT_START_ADDR for
nbsd to 0x10000.

(matt)

2014-06-26 20:14:32 UTC MAIN commitmail json YAML

don't depend on expandtc to open the database or not.

(christos)

2014-06-26 07:50:29 UTC MAIN commitmail json YAML

Pass MIIF_DOPAUSE mask to mii_attach() in if_emac.c. emac(4) change a
register from IFM_FLOW flag, so this change is required to control the
setting via ifconfig. PR#48950. OK'd by matt@.

(msaitoh)

2014-06-26 04:02:10 UTC netbsd-6 commitmail json YAML

2014-06-26 04:01:32 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1086):
        sys/compat/freebsd/freebsd_sched.c 1.20-1.21

Avoid NULL dereference and fix sched param conversion (at least make it
do something). Pointed out by Maxime Villard.

Simplify and clarify.

(msaitoh)

2014-06-26 04:01:07 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1086):
        sys/compat/freebsd/freebsd_sched.c 1.20-1.21

Avoid NULL dereference and fix sched param conversion (at least make it
do something). Pointed out by Maxime Villard.

Simplify and clarify.

(msaitoh)

2014-06-26 04:00:30 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1086):
        sys/compat/freebsd/freebsd_sched.c 1.20-1.21

Avoid NULL dereference and fix sched param conversion (at least make it
do something). Pointed out by Maxime Villard.

Simplify and clarify.

(msaitoh)

2014-06-26 03:28:47 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1084):
sys/compat/netbsd32/netbsd32_netbsd.c rev. 1.187

Fix cases where count <= 0 (thanks to Maxime Villard for raising this).

(msaitoh)

2014-06-26 03:24:51 UTC MAIN commitmail json YAML

put the sccsids back here too

(dholland)

2014-06-26 02:14:32 UTC MAIN commitmail json YAML

2014-06-26 01:46:03 UTC MAIN commitmail json YAML

Don't initialize the fh pointer to NULL when the allocation functions fail
and allow NULL in the free functions. It just leads to writing sloppy code
for no good reason.

(christos)

2014-06-25 23:22:18 UTC MAIN commitmail json YAML