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

2024-05-10 09:41:11 UTC Now

2020-02-06 10:47:33 UTC MAIN commitmail json YAML

PR install/54934: always use -f on the installboot invocation. We come
here post-newfs (and maybe should have dd'd zeros to the start of the
disk before newfs instead).

(martin)

2020-02-06 10:42:06 UTC MAIN commitmail json YAML

bootxx_name() - fix oversight in previous change (do not assume first
partition is the root partition)

(martin)

2020-02-06 08:45:44 UTC MAIN commitmail json YAML

Add support for specifying an alternate locate.updatedb config file.

(simonb)

2020-02-06 06:28:49 UTC MAIN commitmail json YAML

Ensure we don't call workqueue_enqueue() if the pluggable optics
handler is already pending.

(thorpej)

2020-02-06 02:17:24 UTC MAIN commitmail json YAML

listen to PMF events in order to turn off keyboard lights when the lid is
closed or the screen is blanked

(macallan)

2020-02-06 01:37:46 UTC MAIN commitmail json YAML

add MIDI sequencer device.  now midiplay works on usb midi devices.

(mrg)

2020-02-06 01:13:19 UTC MAIN commitmail json YAML

Fix meta_compat mode.

We need to call meta_job_output() from meta_compat_parent()
Also, the need for extra fds for meta mode only applies when
using filemon_ktrace.c.
Since we hope to see more interfaces like that, test for
USE_FILEMON_DEV being not defined.

Reviewed by: riastradh

(sjg)

2020-02-06 00:32:07 UTC MAIN commitmail json YAML

2020-02-05 23:43:18 UTC MAIN commitmail json YAML

Refactor signal9 and signal10 tests in t_ptrace_wait*

Remove signal9 and signal10. Reimplement the idea of these test in new
trace_thread_lwpexit_masked_sigtrap, trace_thread_lwpcreate_masked_sigtrap
and trace_thread_lwpcreate_and_exit_masked_sigtrap.

This removes 2 tests directly using low-level lwp APIs.

(kamil)

2020-02-05 20:11:54 UTC MAIN commitmail json YAML

games/battlestar: Fix the -Werror=restrict warning.

Replace strcpy(1) with the safer snprintf(3) which guarantees NULL
termination of strings.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@

(fox)

2020-02-05 20:06:17 UTC MAIN commitmail json YAML

bin/csh: Fix the -Wclobber warning.

Mark the variable as volatile as it can be clobbered when a vfork occurs.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@

(fox)

2020-02-05 17:13:24 UTC MAIN commitmail json YAML

PR misc/54940: do not combine O_SEARCH with O_RDWR, from Kyle Evans.

(martin)

2020-02-05 14:56:26 UTC MAIN commitmail json YAML

Oops, the previous didn't do what was promised.  Rather that ignoring
just "--" for exec & "." it ignored any first arg starting '-'.
Do it properly.

(kre)

2020-02-05 14:56:04 UTC MAIN commitmail json YAML

Remove trailing whiteapaces and tab

(ryoon)

2020-02-05 14:10:47 UTC MAIN commitmail json YAML

Use ENOTTY as error for an unrecognized ioctl() code, rather than
"magic number" 1.

ok kamil@

(pgoyette)

2020-02-05 13:23:42 UTC MAIN commitmail json YAML

2020-02-05 13:08:19 UTC MAIN commitmail json YAML

2020-02-05 11:05:10 UTC MAIN commitmail json YAML

Retire ifdef ERRORCHECK in pthread(3)

It is enabled unconditionally since 2003 and used only for rwlocks and
spinlocks.

LLVM sanitizers make assumptions that these checks are enabled always.

(kamil)

2020-02-05 10:07:47 UTC MAIN commitmail json YAML

Modify note in ixv_update_stats(). VF doesn't count errors by hardware.

(msaitoh)

2020-02-05 09:59:51 UTC MAIN commitmail json YAML

No functional change:

- s/vaule/value/ in comment.
- whitespace fixes.
- KNF.

(msaitoh)

2020-02-05 09:47:16 UTC MAIN commitmail json YAML

No functional change:

- Fix typos.
- Remove extra newline.

(msaitoh)

2020-02-05 08:52:46 UTC MAIN commitmail json YAML

PR misc/54939: fix file descriptor leak, patch from Kyle Evans.

(martin)

2020-02-05 08:36:56 UTC MAIN commitmail json YAML

2020-02-05 08:36:34 UTC MAIN commitmail json YAML

2020-02-05 08:35:10 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>

(skrll)

2020-02-05 08:34:48 UTC MAIN commitmail json YAML

2020-02-05 08:33:19 UTC MAIN commitmail json YAML

2020-02-05 08:22:23 UTC MAIN commitmail json YAML

2020-02-05 08:14:36 UTC MAIN commitmail json YAML

Remove trailing whitespace.

(wiz)

2020-02-05 07:45:46 UTC MAIN commitmail json YAML

No functional change:

- Add debug printf()s.
- Remove unused macros.
- Remove extra newline.

(msaitoh)

2020-02-05 07:37:36 UTC MAIN commitmail json YAML

Fix the armv[67] memory attributes for uncached memory.  Previously it was
mapped as strongly-ordered which meant that unaligned accesses would fault.

armv7_generic_bs_map now maps pages with PMAP_DEV which is treated as SO

bus_dma continues to use PMAP_NOCACHE as appropriate, but this now get
mapped to the correct memory attribute bits for armv[67]

DEVMAP_ENTRY usees a new flag PTE_DEV.

The workaround for the unaligned access faults is now removed.

XXX Other armv[67] boards bus_space implementations should be checked.
XXX There is scope to reduce the difference to aarch64

(skrll)

2020-02-05 07:24:07 UTC MAIN commitmail json YAML

Cast to uint32_t to avoid undefined behavior in smsc_setmacaddress.
Found by kUBSan.

(msaitoh)

2020-02-05 07:18:16 UTC MAIN commitmail json YAML

2020-02-05 06:39:13 UTC MAIN commitmail json YAML

RDC -> xxRDC. No functional change.

(msaitoh)

2020-02-05 06:38:36 UTC MAIN commitmail json YAML

2020-02-05 06:38:20 UTC MAIN commitmail json YAML

Change the OUI macro name of RDC to xxRDC. 0x00d02d is non-bitreverse value
of official 0x000bb4. From Andrius V.

(msaitoh)

2020-02-05 01:44:53 UTC MAIN commitmail json YAML

Update comment in ixgbe_update_stats_counters() to clarify why we update
if_iqdrops and if_ierrors only. No functional change.
OK'd by knakahara and thorpej.

(msaitoh)

2020-02-04 21:34:47 UTC MAIN commitmail json YAML

2020-02-04 21:34:12 UTC MAIN commitmail json YAML

Add new ATF ptrace(2) test in t_ptrace_wait*

threads_and_exec - verify that the expected LWP events are reported for a
multithreaded process that calls execve(2).

Test passes.

(kamil)

2020-02-04 21:09:03 UTC MAIN commitmail json YAML

add a config fragment to include all ppbus devices to make it simpler
to compile test; right now assumes attachment of atppc(4) via acpi

(jdolecek)

2020-02-04 20:46:51 UTC MAIN commitmail json YAML

finish adoption of <net/if_stats.h>

(jdolecek)

2020-02-04 19:42:56 UTC MAIN commitmail json YAML

- Fix locking problem with optics module interrupts: ifmedia_add()
  may block on memory allocation, and so it cannot be safely done from
  a softint nor can it be done while holding a spin lock.  Fix this by
  using a workqueue rather than a softint, and hold the IFNET_LOCK
  across the entire handler, and the CORE_LOCK only across the code that
  needs to serialize access to the hardware state.
- Use ifmedia_fini().

Tested in a variety of devices by msaitoh@.  (Thanks!)

(thorpej)

2020-02-04 18:36:16 UTC MAIN commitmail json YAML

Mention that we don't honor the other mode bits.

(christos)

2020-02-04 16:28:29 UTC MAIN commitmail json YAML

Remove trailing whitespace.

(wiz)

2020-02-04 16:06:59 UTC MAIN commitmail json YAML

After bug report 262 (from 2010)
https://austingroupbugs.net/view.php?id=252
the Austin Group decided to require processing of "--" by the "."
and "exec" commands to solve a problem where some shells did
option processing for those commands (permitted) and others did
not (also permitted) which left no safe way to process a file
with a name beginning with "-".

This has finally made its way into what will be the next version of
the POSIX standard.

Since this shell did no option processing at all for those commands,
we need to update.  This is that update.

The sole effect is that a "--" 'option' (to "." or "exec") is ignored.
This means that if you want to use "--" as the arg to one of those
commands, it needs to be given twice ". -- --".  Apart from that there
should be no difference at all (though the "--" can now be used in other
situations, where we did not require it before, and still do not).

(kre)

2020-02-04 15:06:27 UTC MAIN commitmail json YAML

Add new ATF tests for unrelated tracer in t_ptrace_wait*

New tests:
- unrelated_tracer_posix_spawn_detach_spawner
- unrelated_tracer_fork_detach_forker
- unrelated_tracer_vfork_detach_vforker
- unrelated_tracer_vfork_detach_vforkerdone
- unrelated_tracer_posix_spawn_kill_spawner
- unrelated_tracer_fork_kill_forker
- unrelated_tracer_vfork_kill_vforker
- unrelated_tracer_vfork_kill_vforkerdone

All tests pass.

(kamil)

2020-02-04 13:53:07 UTC MAIN commitmail json YAML

2020-02-04 13:47:34 UTC MAIN commitmail json YAML

Convert a few more drivers to the if_stats interface

(martin)

2020-02-04 10:59:21 UTC MAIN commitmail json YAML

2020-02-04 10:57:33 UTC MAIN commitmail json YAML

2020-02-04 07:41:21 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2020-02-04 07:41:01 UTC MAIN commitmail json YAML

2020-02-04 07:40:53 UTC MAIN commitmail json YAML

2020-02-04 07:40:45 UTC MAIN commitmail json YAML

2020-02-04 07:40:34 UTC MAIN commitmail json YAML

2020-02-04 07:37:16 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>

(skrll)

2020-02-04 07:37:11 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>

(skrll)

2020-02-04 07:37:06 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>

(skrll)

2020-02-04 07:37:00 UTC MAIN commitmail json YAML

2020-02-04 07:36:55 UTC MAIN commitmail json YAML

2020-02-04 07:36:50 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>

(skrll)

2020-02-04 07:36:42 UTC MAIN commitmail json YAML

2020-02-04 07:36:36 UTC MAIN commitmail json YAML

2020-02-04 07:36:28 UTC MAIN commitmail json YAML

2020-02-04 07:36:04 UTC MAIN commitmail json YAML

2020-02-04 07:35:45 UTC MAIN commitmail json YAML

2020-02-04 07:35:34 UTC MAIN commitmail json YAML

2020-02-04 07:35:21 UTC MAIN commitmail json YAML

2020-02-04 06:30:46 UTC MAIN commitmail json YAML

don't call usb_syncmem() for zero-length packets.

(mrg)

2020-02-04 05:46:32 UTC MAIN commitmail json YAML

2020-02-04 05:44:15 UTC MAIN commitmail json YAML

2020-02-04 05:25:39 UTC MAIN commitmail json YAML

2020-02-04 05:18:36 UTC MAIN commitmail json YAML

2020-02-04 05:16:18 UTC MAIN commitmail json YAML

Add a comment that ifmedia_fini() should be used here someday.

(thorpej)

2020-02-04 05:15:45 UTC MAIN commitmail json YAML

2020-02-04 04:19:24 UTC MAIN commitmail json YAML

Use specfs vnops for specnodes in kernfs.

While here, don't filter out rootdev and rrootdev merely because
they're not cached.

Fixes the elusive /kern/rootdev and /kern/rrootdev nodes, which only
appeared sometimes when they felt like it, and fixes operations on
/kern/rootdev and /kern/rrootdev always returning EOPNOTSUPP.

We didn't seem to have a single PR for these issues but the following
PRs are all relevant:

PR bin/13564
PR kern/38265
PR kern/38778
PR kern/45974

XXX pullup-9, pullup-8, pullup-7, pullup-6, pullup-5, pullup-4, pullup-3, pullup-2, pullup-1.4T...

(riastradh)

2020-02-03 23:09:04 UTC MAIN commitmail json YAML

Add a missing semicolon missed in rev 1.27.

Noticed by recent pmap_update() macro change.
I wonder how I've missed this for 18 years..

(tsutsui)

2020-02-03 22:25:17 UTC MAIN commitmail json YAML

Make delimiters in <file> and "file" literal.

(uwe)

2020-02-03 20:34:13 UTC MAIN commitmail json YAML

rtsock: favour ifatoia and ifatoia6 over direct struct casts

(roy)

2020-02-03 19:37:42 UTC MAIN commitmail json YAML

2020-02-03 16:52:13 UTC MAIN commitmail json YAML

Disable simplefb if nouveau attaches

(jmcneill)

2020-02-03 16:22:52 UTC MAIN commitmail json YAML

Re-enable PCI MSI for DRM devices

(jmcneill)

2020-02-03 16:22:25 UTC MAIN commitmail json YAML

Use the correct PCI interrupt type based on what the driver has configured

(jmcneill)

2020-02-03 15:47:04 UTC MAIN commitmail json YAML

Fix usage of angle-brackets and quotes in make(1) manpage

make(1) has commands .include <file> and .include "file",
but the manpage was (inconsistently) rendering <file> with
angle-brackets (e.g. in UTF8  ) and "file" with curly-quotes
in HTML output (but not text).

This is an attempt to fix that and output only literal <file>
and "file" as is actually required in the makefile.fileoutput,

https://reviews.freebsd.org/D21470

Submitted by Mateusz Piotrowski (FreeBSD)

(kamil)

2020-02-03 13:58:05 UTC MAIN commitmail json YAML

2020-02-03 13:53:57 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>

(skrll)

2020-02-03 13:37:01 UTC MAIN commitmail json YAML

2020-02-03 13:35:44 UTC MAIN commitmail json YAML

separate struct vm_page_md into vm_page_md and pmap_page
for preparation pmap_pv(9)

(ryo)

2020-02-03 13:28:11 UTC MAIN commitmail json YAML

urio has gone.  Comment it out (remaining visible to hold the number)

(kre)

2020-02-03 13:09:29 UTC MAIN commitmail json YAML

2020-02-03 12:56:27 UTC MAIN commitmail json YAML

urio(4) has gone - remove it from here as well, so any kernel config
files that reference it will fail to configure, rather than later
failing to build.

(kre)

2020-02-03 10:37:46 UTC MAIN commitmail json YAML

2020-02-03 10:29:34 UTC MAIN commitmail json YAML

2020-02-03 09:12:53 UTC MAIN commitmail json YAML

Enable hostapd syslog support by default.

(roy)

2020-02-03 09:10:47 UTC MAIN commitmail json YAML

Enable syslog support for hostapd

(roy)

2020-02-03 08:00:35 UTC MAIN commitmail json YAML

2020-02-03 07:47:54 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>

(skrll)

2020-02-03 02:56:25 UTC MAIN commitmail json YAML

Update architectures ski is known to run on

(scole)

2020-02-02 21:50:22 UTC MAIN commitmail json YAML

realpath(1): Ported from FreeBSD.

(kamil)

2020-02-02 21:49:44 UTC MAIN commitmail json YAML

Port realpath(1) from FreeBSD

realpath(1) wraps realpath(3) and returns resolved physical path.

This utility shipped with GNU and FreeBSD is sometimes
used in scripts in the wild.

(kamil)

2020-02-02 16:44:25 UTC MAIN commitmail json YAML

Map and read MCFG space directly instead of going through acpimcfg to
simplify access through our tiny config space window.

(jmcneill)

2020-02-02 16:31:25 UTC MAIN commitmail json YAML

Add acpimcfg_conf_valid helper for pcie controllers with nonstandard
config space layouts.

(jmcneill)

2020-02-02 16:30:31 UTC MAIN commitmail json YAML

pci_probe_device: make sure PCI_ID_REG returns valid data before touching
any other registers

(jmcneill)

2020-02-02 14:45:14 UTC MAIN commitmail json YAML

Fix null deref for busses with no IO port resources.

(jmcneill)

2020-02-02 09:19:48 UTC MAIN commitmail json YAML

2020-02-02 08:56:30 UTC MAIN commitmail json YAML

2020-02-02 08:19:15 UTC MAIN commitmail json YAML

Always call pmap_grow_map with a page aligned new VA.  KASSERT that this
happenes.

(skrll)

2020-02-02 08:16:40 UTC MAIN commitmail json YAML

Always pmap_kenter_pa the page in pmap_grow_map regardless of how we got
it.

(skrll)

2020-02-02 07:59:42 UTC MAIN commitmail json YAML

KNF. One #include <sys/atomic.h> is enough

(skrll)

2020-02-02 07:55:11 UTC MAIN commitmail json YAML

2020-02-02 07:47:51 UTC MAIN commitmail json YAML

2020-02-02 06:43:14 UTC MAIN commitmail json YAML

2020-02-02 06:41:27 UTC MAIN commitmail json YAML

attach LEDs according to info passed as device properties

(macallan)

2020-02-02 06:38:24 UTC MAIN commitmail json YAML

pass pin info to pcagpio instances, so far for front panel LEDs on
Sun Fire v210 only

(macallan)

2020-02-02 05:56:42 UTC MAIN commitmail json YAML

- Adopt <net/if_stats.h>.
- Use ifmedia_fini().

(thorpej)

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

- Adopt <net/if_stats.h>.
- Use ifmedia_fini().

(thorpej)

2020-02-02 03:41:12 UTC MAIN commitmail json YAML

Update for per-cpu interface statistics.

(thorpej)

2020-02-01 22:45:02 UTC MAIN commitmail json YAML

2020-02-01 22:38:31 UTC MAIN commitmail json YAML

2020-02-01 22:38:05 UTC MAIN commitmail json YAML

Fix abuse of TAILQ_CONCAT.

Other parts of this expect that the entries will be on wq->wq_queue
or wq->wq_dqueue, so we can't just move a batch of entries onto a
temporary queue.  Instead, use a marker node to delimit when the
batch ends.

XXX pullup

(riastradh)

2020-02-01 21:59:40 UTC MAIN commitmail json YAML

Make if_stats competely opaque to user-space.

(thorpej)

2020-02-01 21:46:49 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>.

(thorpej)

2020-02-01 21:45:11 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>.

(thorpej)

2020-02-01 21:14:45 UTC MAIN commitmail json YAML

Note per-cpu network interface statistics.

(thorpej)

2020-02-01 21:12:13 UTC MAIN commitmail json YAML

NetBSD 9.99.45 -- struct ifnet changed, per-cpu ifnet stats.

(thorpej)

2020-02-01 21:11:10 UTC MAIN commitmail json YAML

Flip the switch to the per-cpu implementation in <net/if_stats.h>.  Leave
the conditional in place for a time in case serious problems are discovered,
so that the Old Way can be re-enabled quickly.  After some time, the Old
Way will be removed completely.

(thorpej)

2020-02-01 20:56:17 UTC MAIN commitmail json YAML

- Add an ifmedia_fini() routine, to free resources assocated with
  an ifmedia.  Currently calls ifmedia_removeall().  All drivers
  that call ifmedia_init() and support detach should call this
  routine.
- In ifmedia_delete_instance(), set ifm->ifm_cur to NULL and
  ifm->ifm_media to IFM_NONE when removing / freeing that entry,
  not simply when we've been asked to delete every media instance.

(thorpej)

2020-02-01 20:11:24 UTC MAIN commitmail json YAML

2020-02-01 19:41:50 UTC MAIN commitmail json YAML

Add MAX/MIN PAGE_SIZE and PAGE_SHIFT definitions of m68k for jemalloc(3).

Background:
- All m68k ports have fixed PAGE_SIZE value in their kernels,
  but each port uses different PAGE_SIZE value (4096 or 8192)
  due to historical reasons.
- Currently module(7) binaries are built per each port so
  all m68k kernel sources don't support run-time variable PAGE_SIZE.
- MI <uvm/uvm_param.h> assumes that the port supports a variable
  PAGE_SIZE on module(7) builds if both MAX_PAGE_SIZE and MIN_PAGE_SIZE
  are defined and they have different values.
- On the other hand, jemalloc(3) checks MAX_PAGE_SHIFT in
  src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h
  for internal optimization.
- m68k ports share userland binaries (especially pkgsrc binaries)
  among all ports, so we need to define MAX_PAGE_SHIFT as 13 to
  support m68k ports where PAGE_SIZE==8192.
  (though this would affect only if static binaries built on
  4k page hosts are executed on 8k page hosts)

To solve these inconsistency on PAGE_SIZE definitions,
we should have an independent PAGE_SIZE related definitions
for userland, but it requires major reorganization.
For now (especially for netbsd-9) we define MAX/MIN PAGE_SIZE and
PAGE_SHIFT values in <m68k/vmparam.h> only in !defined(_KERNEL) case.

Discussed on source-changes-d@ and tech-kern@ with christos@ and thorpej@:
https://mail-index.netbsd.org/source-changes-d/2020/01/thread1.html#012035
https://mail-index.netbsd.org/tech-kern/2020/01/thread1.html#025954

Should be pulled up to netbsd-9.

(tsutsui)

2020-02-01 19:29:27 UTC MAIN commitmail json YAML

2020-02-01 19:11:59 UTC MAIN commitmail json YAML

use designated initializers

(christos)

2020-02-01 18:24:24 UTC MAIN commitmail json YAML

appease -Werror=missing-field-initializers

(jmcneill)

2020-02-01 18:14:16 UTC MAIN commitmail json YAML

2020-02-01 15:39:56 UTC MAIN commitmail json YAML

Remove 'ifdef 0' hacks

It is no longer needed as the proper fix avoiding premature malloc()
landed the sources.

(kamil)

2020-02-01 15:38:46 UTC MAIN commitmail json YAML

Switch atform allocations from malloc()+free() to mmap()+munmap()

This avoid bootstrapping malloc too early when libc+libpthread are not
ready. It is called through pthread__init() -> _pthread_atfork().

This also helps LLVM Leak Sanitizer to pacify false positive reports.

(kamil)

2020-02-01 15:33:48 UTC MAIN commitmail json YAML

Use kmem_zalloc for its state, fixes possible crash if a driver tries to
set affinity before a CPU is online.

(jmcneill)

2020-02-01 15:24:04 UTC MAIN commitmail json YAML

Use designated initializers

(skrll)

2020-02-01 13:48:18 UTC MAIN commitmail json YAML

opencrypto orders new_session -> process for us.

No need for membar_producer.

Discussed with hikaru@.

(riastradh)

2020-02-01 13:48:09 UTC MAIN commitmail json YAML

softint_disestablish does xc_barrier(0) for us already.

(riastradh)

2020-02-01 13:40:55 UTC MAIN commitmail json YAML

Add NXP/Freescale ESDHC specific support

(jmcneill)

2020-02-01 13:35:12 UTC MAIN commitmail json YAML

Redocument xc_barrier.

Be more clearer, and more correcter, about what it does.

(riastradh)

2020-02-01 13:26:43 UTC MAIN commitmail json YAML

2020-02-01 13:09:09 UTC MAIN commitmail json YAML

Use acpi_match_hid to match both _HID and _CID

(jmcneill)

2020-02-01 12:55:35 UTC MAIN commitmail json YAML

2020-02-01 12:55:26 UTC MAIN commitmail json YAML

2020-02-01 12:55:23 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>.

XXX This driver needs some work in this regard (practually no
stats are reported).

(thorpej)

2020-02-01 12:55:13 UTC MAIN commitmail json YAML

pic_pending_zero is unnecessary; percpu_alloc already zeroes.

(riastradh)

2020-02-01 12:55:03 UTC MAIN commitmail json YAML

Switch arm pic allocation and initialization to percpu_create.

(riastradh)

2020-02-01 12:54:51 UTC MAIN commitmail json YAML

2020-02-01 12:54:30 UTC MAIN commitmail json YAML

Switch opencrypto to percpu_create.

Can't sleep for allocation in percpu_foreach.

(riastradh)

2020-02-01 12:53:41 UTC MAIN commitmail json YAML

2020-02-01 12:51:19 UTC MAIN commitmail json YAML

Use __read_mostly and gather related __cacheline_aligned together.

Should save a few bytes of kernel.

(riastradh)

2020-02-01 12:49:02 UTC MAIN commitmail json YAML

New function percpu_create.

Associates a constructor and destructor with the percpu.  Currently
the constructor runs immediately, but in principle we could use the
same API for future CPU hotplug support.

This lets you sleep for allocation or draining users before
deallocation when setting up or tearing down a percpu -- currently we
have many abuses of percpu_foreach in tree for that purpose.

Proposed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2020/01/30/msg026036.html

(riastradh)

2020-02-01 12:45:05 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>.

(thorpej)

2020-02-01 09:21:49 UTC MAIN commitmail json YAML

2020-02-01 08:08:15 UTC MAIN commitmail json YAML

Make it output 68000 binary.
CFLAGS already has -m68000 but AFLAGS didn't.

This change makes it proceed to next stage1 even if MPU is 68000.
All stage1 bootloader displays an error message if MPU is 68000.

(isaki)

2020-02-01 07:12:41 UTC MAIN commitmail json YAML

2020-02-01 06:38:58 UTC MAIN commitmail json YAML

2020-02-01 06:17:23 UTC MAIN commitmail json YAML

2020-02-01 06:17:12 UTC MAIN commitmail json YAML

Use "__nothing" macro defined in <sys/cdefs.h> for empty pmap_update().

Suggested by pgoyette@ in PR/54869.

(tsutsui)

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

Add and enable dhcpcd for news68k installation.

news68k has already required two floppies since 9.0
so there is no popular demand to shrink ramdisk.

(tsutsui)

2020-02-01 05:14:28 UTC MAIN commitmail json YAML

2020-02-01 02:58:15 UTC MAIN commitmail json YAML

Switch if_vlan to atomic_load/store_*.

Fix missing membar_datadep_consumer -- now atomic_load_consume -- in
vlan_lookup_tag_psref.

(riastradh)

2020-02-01 02:58:06 UTC MAIN commitmail json YAML

Switch if_l2tp to atomic_load/store_*.

Fix missing membar_datadep_consumer -- now atomic_load_consume -- in
l2tp_lookup_session_ref.

(riastradh)

2020-02-01 02:57:56 UTC MAIN commitmail json YAML

Fix order in rollback case; switch if_ipsec to atomic_load/store_*.

(riastradh)

2020-02-01 02:57:45 UTC MAIN commitmail json YAML

Switch if_gif to atomic_load/store_*.

(riastradh)

2020-02-01 02:54:31 UTC MAIN commitmail json YAML

Fix wrong memory order and switch pfil to atomic_load/store_*.

(riastradh)

2020-02-01 02:54:02 UTC MAIN commitmail json YAML

Fix wrong memory order and switch bpf to atomic_load/store_*.

(riastradh)

2020-02-01 02:33:09 UTC MAIN commitmail json YAML

Use atomic_load_acquire for FreeBSDish atomic_load_acq_uint shim.

(riastradh)

2020-02-01 02:32:40 UTC MAIN commitmail json YAML

Use atomic_load/store_* in ena(4), not questionable membar_sync.

(riastradh)

2020-02-01 02:23:23 UTC MAIN commitmail json YAML

Load struct fdfile::ff_file with atomic_load_consume.

Exceptions: when we're only testing whether it's there, not about to
dereference it.

Note: We do not use atomic_store_release to set it because the
preceding mutex_exit should be enough.

(That said, it's not clear the mutex_enter/exit is needed unless
refcnt > 0 already, in which case maybe it would be a win to switch
from the membar implied by mutex_enter to the membar implied by
atomic_store_release -- which I would generally expect to be much
cheaper.  And a little clearer without a long comment.)

(riastradh)

2020-02-01 02:23:04 UTC MAIN commitmail json YAML

Load struct filedesc::fd_dt with atomic_load_consume.

Exceptions: when fd_refcnt <= 1, or when holding fd_lock.

While here:

- Restore KASSERT(mutex_owned(&fdp->fd_lock)) in fd_unused.
  => This is used only in fd_close and fd_abort, where it holds.
- Move bounds check assertion in fd_putfile to where it matters.
- Store fd_dt with atomic_store_release.
- Move load of fd_dt under lock in knote_fdclose.
- Omit membar_consumer in fdesc_readdir.
  => atomic_load_consume serves the same purpose now.
  => Was needed only on alpha anyway.

(riastradh)

2020-01-31 23:12:13 UTC MAIN commitmail json YAML

Match HID 808622B7 (DesignWare USB3)

(jmcneill)

2020-01-31 22:41:07 UTC MAIN commitmail json YAML

Adopt <net/if_stats.h>.

(thorpej)

2020-01-31 21:13:40 UTC MAIN commitmail json YAML

2020-01-31 20:58:18 UTC MAIN commitmail json YAML

2020-01-31 20:56:03 UTC MAIN commitmail json YAML

2020-01-31 17:52:15 UTC MAIN commitmail json YAML

Refactor libpthread checks for invalid arguments

Switch from manual functions to pthread__error().

(kamil)

2020-01-31 14:01:36 UTC MAIN commitmail json YAML

Fix the build of LLVM sanitizers after the urio(4) removal

Cherry-pick a part of the upstream commit:

    [compiler-rt] Fix build on NetBSD 9.99.44

    Fix build on >= 9.99.44 after the removal of urio(4).
    Add compat code for the device as NetBSD-9.0 is supported.

https://github.com/llvm/llvm-project/commit/3a200f3f2e52e671b8d9911e3724d6b11dbbbe08

(kamil)

2020-01-31 12:19:17 UTC netbsd-9 commitmail json YAML

2020-01-31 12:09:13 UTC MAIN commitmail json YAML

wm(4) unset RSS UDP flags like ixg(4) and other OS's one.

To handle IP fragmented UDP first packet and second packet by the same
Rx queue.

I tested on I354.

(knakahara)

2020-01-31 12:04:57 UTC MAIN commitmail json YAML

Fix missing workqueue_destroy().  ok by msaitoh@n.o

(knakahara)

2020-01-31 12:03:23 UTC MAIN commitmail json YAML

Fix wm(4) create too many workqueue.  Pointed out by msaitoh@n.o

(knakahara)

2020-01-31 11:33:59 UTC netbsd-9 commitmail json YAML

2020-01-31 11:30:24 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #679):

sys/netipsec/ipsecif.c: revision 1.19

Fix IPv6 over IPv4 ipsecif(4) uses IPv4 SP wrongly.  Pointed out by ohishi@IIJ.
XXX pullup-8, pullup-9

(martin)

2020-01-31 11:28:38 UTC netbsd-9 commitmail json YAML

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

sys/external/bsd/drm2/dist/drm/i915/i915_gem_stolen.c: revision 1.12
sys/external/bsd/drm2/dist/drm/radeon/radeon_atombios_dp.c: revision 1.2
sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.9
sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.12

Use unsigned to avoid undefined behavior in gen7_get_stolen_reserved().
Found by kUBSan.

Use unsigned to avoid undefined behavior in g4x_update_wm().

Avoid undefined behavior in g4x_get_stolen_reserved().

The change is the same as newer i915_gem_stolen.c.

Don't call memcpy() when the length is 0 (and the source pointer is NULL)
in radeon_dp_aux_transfer_atom() to avoid undefined behavior. Found by kUBSan.

(martin)

2020-01-31 11:25:09 UTC netbsd-9 commitmail json YAML

src/sys/external/bsd/drm2/dist/drm/i915/i915_reg.h@1.7.2.2 / diff / nxr@1.7.2.2
src/sys/external/bsd/drm2/dist/drm/i915/intel_pm.c@1.17.2.2 / diff / nxr@1.17.2.2
src/sys/external/bsd/drm2/dist/drm/radeon/cikd.h@1.2.4.1 / diff / nxr@1.2.4.1
src/sys/external/bsd/drm2/dist/drm/radeon/evergreend.h@1.2.4.1 / diff / nxr@1.2.4.1
src/sys/external/bsd/drm2/dist/drm/radeon/nid.h@1.2.4.1 / diff / nxr@1.2.4.1
src/sys/external/bsd/drm2/dist/drm/radeon/r600d.h@1.2.4.1 / diff / nxr@1.2.4.1
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_mode.h@1.4.4.1 / diff / nxr@1.4.4.1
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_r600.c@1.1.8.1 / diff / nxr@1.1.8.1
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_reg.h@1.2.4.1 / diff / nxr@1.2.4.1
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_rv770_smc.c@1.1.8.1 / diff / nxr@1.1.8.1
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_si_smc.c@1.1.8.1 / diff / nxr@1.1.8.1
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c@1.1.8.1 / diff / nxr@1.1.8.1
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v2_2.c@1.1.8.1 / diff / nxr@1.1.8.1
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v4_2.c@1.1.8.1 / diff / nxr@1.1.8.1
src/sys/external/bsd/drm2/dist/drm/radeon/rv730d.h@1.2.4.1 / diff / nxr@1.2.4.1
src/sys/external/bsd/drm2/dist/drm/radeon/rv770d.h@1.2.4.1 / diff / nxr@1.2.4.1
src/sys/external/bsd/drm2/dist/drm/radeon/sid.h@1.2.4.1 / diff / nxr@1.2.4.1
src/sys/external/bsd/drm2/dist/drm/radeon/sumod.h@1.2.4.1 / diff / nxr@1.2.4.1
src/sys/external/bsd/drm2/dist/include/drm/drm_fixed.h@1.2.4.1 / diff / nxr@1.2.4.1

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

sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v2_2.c: revision 1.2
sys/external/bsd/drm2/dist/drm/i915/intel_pm.c: revision 1.18
sys/external/bsd/drm2/dist/drm/radeon/nid.h: revision 1.3
sys/external/bsd/drm2/dist/drm/i915/intel_pm.c: revision 1.19
sys/external/bsd/drm2/dist/drm/radeon/rv770d.h: revision 1.3
sys/external/bsd/drm2/dist/drm/radeon/cikd.h: revision 1.3
sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v4_2.c: revision 1.2
sys/external/bsd/drm2/dist/include/drm/drm_fixed.h: revision 1.3
sys/external/bsd/drm2/dist/drm/radeon/sumod.h: revision 1.3
sys/external/bsd/drm2/dist/drm/radeon/radeon_reg.h: revision 1.3
sys/external/bsd/drm2/dist/drm/radeon/radeon_mode.h: revision 1.5
sys/external/bsd/drm2/dist/drm/radeon/r600d.h: revision 1.3
sys/external/bsd/drm2/dist/drm/radeon/r600d.h: revision 1.4
sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c: revision 1.2
sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c: revision 1.3
sys/external/bsd/drm2/dist/drm/radeon/radeon_r600.c: revision 1.2
sys/external/bsd/drm2/dist/drm/radeon/evergreend.h: revision 1.3
sys/external/bsd/drm2/dist/drm/radeon/evergreend.h: revision 1.4
sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.10
sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.8
sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.11
sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.13
sys/external/bsd/drm2/dist/drm/radeon/rv730d.h: revision 1.3
sys/external/bsd/drm2/dist/drm/radeon/radeon_rv770_smc.c: revision 1.2
sys/external/bsd/drm2/dist/drm/radeon/sid.h: revision 1.3
sys/external/bsd/drm2/dist/drm/radeon/radeon_si_smc.c: revision 1.2
sys/external/bsd/drm2/dist/drm/radeon/sid.h: revision 1.4

Use unsigned to avoid undefined behavior. Found by kUBSan.

(martin)

2020-01-31 11:21:42 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #676):

etc/rc.d/ipsec: revision 1.16

Skip inet6 addresses that begin with fe80: (not just exact match).

(martin)

2020-01-31 11:19:58 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #675):

etc/rc.d/autounmountd: revision 1.3
etc/rc.d/ip6addrctl: revision 1.4

Add NetBSD ID

(martin)

2020-01-31 11:17:32 UTC netbsd-9 commitmail json YAML

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

sys/dev/ic/tulip.c: revision 1.198
sys/dev/pci/if_jme.c: revision 1.45
sys/dev/pci/agp.c: revision 1.86
sys/dev/pci/if_lii.c: revision 1.27
sys/dev/acpi/thinkpad_acpi.c: revision 1.47
sys/dev/scsipi/scsipi_base.c: revision 1.183
sys/dev/ic/aic6915reg.h: revision 1.6

Fix undefined behavior in thinkpad_mask_init(). Found by kUBSan.

Use unsigned when initialize the transmit completion ring to avoid undefined
behavior. Found by kUBSan.

Avoid undefined behavior when setting multicast address. found by kUBSan.

Use unsigned to avoid undefined behavior in agpattach(). Found by kUBSan.

Avoid undefined behavior in jme_mii_write(). Found by kUBSan.

Use unsigned to avoid undefined behavior in lii_setmulti().

Use unsigned to avoid undefined behavior in scsipi_{get,put}_tag().

Found by kUBSan.

(martin)

2020-01-31 11:14:51 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/if_bce.c: revision 1.53
sys/dev/pci/pccbbreg.h: revision 1.16
sys/dev/ic/rt2860.c: revision 1.34
sys/dev/pci/if_alc.c: revision 1.45
sys/dev/pci/if_mcx.c: revision 1.5
sys/dev/pci/if_pcn.c: revision 1.72
sys/dev/pci/if_ale.c: revision 1.37
sys/dev/pci/if_age.c: revision 1.65
sys/dev/ieee1394/fwohcireg.h: revision 1.20
sys/dev/ieee1394/fwohci.c: revision 1.143
sys/dev/ieee1394/firewire.c: revision 1.49
sys/dev/ic/am79900reg.h: revision 1.10

Use unsigned to avoid undefined behavior. Found by kUBSan.

(martin)

2020-01-31 11:07:51 UTC netbsd-9 commitmail json YAML

2020-01-31 11:06:31 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/pcidevs: revision 1.1396
sys/dev/pci/pcidevs: revision 1.1397
sys/dev/pci/pcidevs: revision 1.1392
sys/dev/pci/pcidevs: revision 1.1393
sys/dev/pci/pcidevs: revision 1.1394
sys/dev/pci/pcidevs: revision 1.1395

- Add Xeon D-1500 NTB-secondary

- Add Xeon D NS QuickData DMA channel 0-7

Add AMD Family14h PCIe.

Killer E3000
from OpenBSD

add Aquantia AQC 10G network adapters

Add Intel I219 LM10-LM15 and V10-V14 from OpenBSD.

Remove duplicated entries.

(martin)

2020-01-31 11:02:57 UTC netbsd-8 commitmail json YAML

2020-01-31 11:01:38 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #1497):

sys/netipsec/ipsecif.c: revision 1.19

Fix IPv6 over IPv4 ipsecif(4) uses IPv4 SP wrongly.  Pointed out by ohishi@IIJ.
XXX pullup-8, pullup-9

(martin)

2020-01-31 10:57:29 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_stgereg.h: revision 1.7

Fix address of STGE_MaxFrameSize. Same as other OSes.

(martin)

2020-01-31 10:55:37 UTC netbsd-8 commitmail json YAML

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

sys/dev/usb/if_urlreg.h: revision 1.16

URL_TCR_IFG0 is not bit 4 but bit3. From OpenBSD.

(martin)

2020-01-31 10:53:29 UTC netbsd-8 commitmail json YAML

Pull up the following, requested by msaitoh in ticket #1494:

sys/arch/x86/include/specialreg.h 1.146, 1.151-1.154, 1.156 via patch
usr.sbin/cpuctl/arch/i386.c 1.105-1.107 via patch

- Add definitions of AMD's CPUID Fn8000_0008 %ebx.
- Add definitions of AMD's CPUID Fn8000_001f Encrypted Memory features.
- Add definition of AMD's CPUID Fn8000_000a %edx bit 11 "GMET".
- Define CPUID_AMD_SVM_PFThreshold correctly.
- Modify comment a bit for consistency.
- Call cpu_dcp_cacheinfo() only when the cpuid Topology Extension flag
  is set on AMD processor.
- Fix typos.

(martin)

2020-01-31 09:23:58 UTC MAIN commitmail json YAML

2020-01-31 09:08:57 UTC MAIN commitmail json YAML

D means E here (aarch32), so don't check it. A-I-F are checked below
already, so drop the whole line.

(maxv)