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

2024-05-10 03:26:41 UTC Now

2018-11-18 18:52:29 UTC MAIN commitmail json YAML

Don't mix private and public names for the same thing in one statement.
While here, fix harmless edito in a debug call.

(uwe)

2018-11-18 17:23:37 UTC MAIN commitmail json YAML

Rationalise (slightly) the way that expansions are processed
to hide meta-characters in the result when the expansion was
in (double) quotes, and so should not be further processed.

Most of this has been OK for a long while, but \ needs hiding
as well, which complicates things, as \ cannot simply be hidden
in the syntax tables as one of the group of random special characters.

This was fixed earlier for simple variable expansions, but
every variety has its own code path ($var uses different code
than $n which is different than $(...), which is different
again from ~ expansions, and also from what $'...' produces).

This could be fixed by moving them all to a common code path,
but that's harder than it seems.  The form in which the data
is made available differs, so one common routine would need
a whole bunch of different "get the next char or indicate end"
methods - probably via passing in an accessor function.
That's all a lot of churn, and would probably slow the shell.

Instead, just make macros for doing the standard tests, and
use those instead of open coding (differently) each time.
This way some of the code paths don't end up forgetting to
handle '\' (which is different than all the others).

This removes one optimisation ... when no escaping is needed
(like just $var (unquoted) where magic chars (think '*') in
the value are intended to remain magic), the code avoided doing
two tests for each char ("do we need escapes" and "is this char
one that needs escaping") by choosing two different syntax
tables (choice made outside the loop) - one of which never
returns the magic "needs escaping" result, and the other does
when appropriate, and then just avoiding the "do we need escapes"
test for each character processed.  Then when '\' was fixed,
there needed to be another test for it, as it cannot (for other
reasons) be the same as all the others for which "this char
need escaping" is true.  So that added a 2nd test for each char...
Not all the code paths were updated.  Hence the bugs...

nb: this is all rarely seen in the wild, so it is no big
surprised that no-one ever noticed.

Now the "use two different syntax tables" is gone (the two
returned the same for '\' which is why '\' needed special
processing) - and in order to avoid two tests for each
char (plus the \ test) we duplicate the loops, one of which
tests each char to see if it needs an escape, the 2nd just
copies them.  This should be faster in the "no escapes"
code path (though that is not the point) and perhaps also
in the "escapes needed" path (no indirect reference to
the syntax table - though that would probably be in a
register) but makes the code slightly bigger.  For /bin/sh
the text segment (on amd64) has grown by 48 bytes.  But
it still uses the same number of 512 byte pages (and hence
also any bigger page size).  The resulting file size
(/bin/sh) is identical before and after.  So is /rescue/sh
(or /rescue/anything-else).

(kre)

2018-11-18 17:15:41 UTC MAIN commitmail json YAML

2018-11-18 17:09:39 UTC MAIN commitmail json YAML

2018-11-18 16:34:07 UTC MAIN commitmail json YAML

2018-11-18 15:52:04 UTC MAIN commitmail json YAML

2018-11-18 15:50:26 UTC MAIN commitmail json YAML

2018-11-18 14:25:17 UTC MAIN commitmail json YAML

Add xname argument to pc_intr_establish implementation

(jmcneill)

2018-11-18 14:16:13 UTC MAIN commitmail json YAML

2018-11-18 14:12:28 UTC MAIN commitmail json YAML

Add xname argument to pc_intr_establish implementation

(jmcneill)

2018-11-18 13:41:24 UTC MAIN commitmail json YAML

It turns out there are more cases where escaping of meta-chars
was not being done properly (too many different code paths inside sh)
so add even more subtests to the case_matching test case to verify
that all (that I can think of for now anyway) get fixed when this
gets cleaned up.  The case_matching test case still fails, but now
6 of its subtests should fail (until sh is corrected ... soon).

(kre)

2018-11-18 12:00:18 UTC netbsd-8 commitmail json YAML

2018-11-18 11:58:20 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #1096):

libexec/makewhatis/makewhatis.c: revision 1.50
libexec/makewhatis/makewhatis.c: revision 1.51

Include time.h for time.
XXX Doesn't build with newer zlib, remove?

-

make this compile.

(martin)

2018-11-18 11:54:03 UTC netbsd-8 commitmail json YAML

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

sys/arch/newsmips/apbus/apbus.c: revision 1.23
sys/arch/newsmips/apbus/apbus_subr.c: revision 1.10
sys/arch/newsmips/apbus/apbusvar.h: revision 1.10
sys/arch/newsmips/conf/std.newsmips: revision 1.18

Fix news5000 panic during boot on APbus attach. PR port-newsmips/53626

Discussed with ryo@ (the original author of news5000 support).

Should be pulled up to netbsd-8.

(martin)

2018-11-18 11:48:57 UTC MAIN commitmail json YAML

Remove unused struct member (usbd_xfer now has a struct usb_task)

(skrll)

2018-11-18 11:45:46 UTC MAIN commitmail json YAML

2018-11-18 11:22:11 UTC MAIN commitmail json YAML

use __func__ in debug().

(mrg)

2018-11-18 11:16:52 UTC netbsd-8 commitmail json YAML

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

sys/arch/x86/x86/procfs_machdep.c: revision 1.25

- I misread ci_acpiid as ci_apicid... LAPIC ID is in ci_cpuid.
  Print it correctly.

- ci_initapicid(Initial APIC ID) is uint32_t, so use %u.

(martin)

2018-11-18 10:37:04 UTC MAIN commitmail json YAML

Yet another size estimate

(martin)

2018-11-18 10:34:46 UTC MAIN commitmail json YAML

2018-11-18 10:24:10 UTC MAIN commitmail json YAML

Save the interrupt trap/clockframe to a per-cpu copy.

We can use this copy to pass on the trapframe to hardclock(9) from
within the xen timer handler. This delinks the current dependency
between MD code and the handler, which is specially prototyped to take
the clockframe unlike any other handler.

This change has performance implications, as each interrupt entry will
copy the entire trapframe over to the per-cpu cached copy. This can be
mitigated by selectively copying just the parts of the clockframe that
are used by hardclock() et. al.

Tested on amd64 XEN domU

(cherry)

2018-11-18 07:42:24 UTC MAIN commitmail json YAML

Ah, should be UVM_ADV_RANDOM.

(maxv)

2018-11-18 06:28:39 UTC MAIN commitmail json YAML

- support *_mmap()
- support BUS_SPACE_MAP_PREFETCHABLE for memory spaces
- fill in *_stream methods if needed
With this Xorg with wsfb works on iyonix. The nv driver still crashes ( and
needs options INSECURE ), something seems to be wrong with accessing IO space.
But, progress.

(macallan)

2018-11-18 02:46:24 UTC MAIN commitmail json YAML

Reindent a few lineeq() calls now that we can w/out exceeding 80
columns limit.  Whitespace change only.

(uwe)

2018-11-18 02:39:44 UTC MAIN commitmail json YAML

Further tweak previous.  Change the check order to be more logical.
No functional change intentded.  While here fix indentation.

(uwe)

2018-11-18 02:34:39 UTC MAIN commitmail json YAML

Merge one more #ifdef with mostly identical code in both branches.
The same object code is generated modulo gratuitously different order
of checks.

(uwe)

2018-11-18 02:17:24 UTC MAIN commitmail json YAML

Merge another #ifdefs that now has identical code in both branches
modulo swapped arguments to celleq() call.  Same object code is
generated otherwise for both HAVE_WCHAR and !HAVE_WCHAR

(uwe)

2018-11-18 01:54:30 UTC MAIN commitmail json YAML

Merge few #ifdefs that now have identical code in both branches.
Same object code is generated for both HAVE_WCHAR and !HAVE_WCHAR.

(uwe)

2018-11-18 01:39:55 UTC MAIN commitmail json YAML

Define celleq() and lineeq() for !HAVE_WCHAR too and use them instead
of explicit memcmp() calls.  Same object code is generated for both
HAVE_WCHAR and !HAVE_WCHAR, but we can now try to merge some of the
#ifdefs

(uwe)

2018-11-18 01:24:44 UTC MAIN commitmail json YAML

Add some tests to detect the presence of a bug in sh reported by
Martijn Dekker (private e-mail.)  Variable expansions that are
double quoted result in literal characters (nver pattern matching
meta chars.)  This includes '\' (that one was the bug.)
[On the other hand, a variable in a case pattern expansion that is
unquoted, produces a pattern, and in that the \ character can be
used to excape other pattern meta-chars (and itself.]

This addition will cause the case_matching test case to fail (two
of the newly added sub-tests fail) until fixes to /bin/sh are made.
(That is comiung soon, the code exists already.)

(kre)

2018-11-18 01:23:57 UTC MAIN commitmail json YAML

Oops, revert previous.  Wrong tree.

(uwe)

2018-11-18 01:22:49 UTC MAIN commitmail json YAML

Comment out LIBDPLIBS so that this can be built outside of the tree.

(uwe)

2018-11-18 01:19:29 UTC MAIN commitmail json YAML

Rename cellcmp() and linecmp() to celleq() and lineeq() respectively
and make them static.

(uwe)

2018-11-18 01:05:30 UTC MAIN commitmail json YAML

quickch - fix inverted checks.

I have to admit I have no idea what's going on here, but HAVE_WCHAR
code here inverted the sense of linecmp and cellcmp checks w.r.t the
!HAVE_WCHAR variant just above it.  Cf. also all other similar #ifdefs
in this file.

Found through source code inspection, not really tested.

(uwe)

2018-11-18 00:45:44 UTC MAIN commitmail json YAML

cellcmp - use logical && not bitwise &

(uwe)

2018-11-17 20:53:35 UTC MAIN commitmail json YAML

change "InterruptNumber" to "irq" to fix compilation

(scole)

2018-11-17 20:36:23 UTC MAIN commitmail json YAML

TX/RX FIFO are looking for 32-bit samples, so add play/rec filters.

(jmcneill)

2018-11-17 20:35:41 UTC MAIN commitmail json YAML

Handle different burst bits for h3/a64

(jmcneill)

2018-11-17 20:29:49 UTC MAIN commitmail json YAML

Add commented out options WSEMUL_DEFAULT="\"vt100\""

If WSEMUL_SUN is enabled it becomes the default emulation which is
most likely not what we want here.

(uwe)

2018-11-17 19:30:51 UTC MAIN commitmail json YAML

Serialize RSB requests.

(jmcneill)

2018-11-17 19:22:48 UTC MAIN commitmail json YAML

Add default for debug sets size

(martin)

2018-11-17 16:51:51 UTC MAIN commitmail json YAML

use aprint_debug() rather than aprint_error() rk_cru_clock_get_rate()

(jakllsch)

2018-11-17 16:11:33 UTC MAIN commitmail json YAML

Don't forget to set 'prot' when the guest has paging disabled.

(maxv)

2018-11-17 07:06:26 UTC MAIN commitmail json YAML

Attempt to appease gcc and unbreak i386 build.  Should be NFC.

(kre)

2018-11-17 05:26:46 UTC MAIN commitmail json YAML

Use hypervisor provided interface to unmask specific ports.

Although at first glance this looks suboptimal, the unmask operation
fast path does not use hypervisor_unmask_event(). Instead, it directly
operates on the mask and pending bit arrays to provide what would
effectively be an "auto mask/eoi" semantic.

This change is thus not in the fast path, and has the advantage of
performance improvements since cross CPU state updates etc. is handled
within the hypervisor instead of domU IPIs.

(cherry)

2018-11-17 01:45:25 UTC MAIN commitmail json YAML

Add xname to footbridge_pci_intr_establish().

(rjs)

2018-11-17 01:08:55 UTC MAIN commitmail json YAML

Move two entries in TODO.sanitizers to be done later (post -9 branch)

- develop fts(3) interceptors (MSan, for ls(1), find(1), mtree(8)
- investigate and address the libcxx failing tests on NetBSD

(kamil)

2018-11-17 00:17:54 UTC MAIN commitmail json YAML

Use intr_establish_xname

(jmcneill)

2018-11-16 23:25:09 UTC MAIN commitmail json YAML

Use intr_establish_xname

(jmcneill)

2018-11-16 23:24:28 UTC MAIN commitmail json YAML

Use intr_establish_xname

(jmcneill)

2018-11-16 23:18:17 UTC MAIN commitmail json YAML

2018-11-16 23:18:00 UTC MAIN commitmail json YAML

Use acpi_intr_establish

(jmcneill)

2018-11-16 23:05:50 UTC MAIN commitmail json YAML

Use acpi_md_intr_establish/disestablish to handle device IRQs. The existing
code abused AcpiOsInstallInterruptHandler, which is meant for installing
the SCI handler.

(jmcneill)

2018-11-16 23:03:55 UTC MAIN commitmail json YAML

2018-11-16 20:49:08 UTC MAIN commitmail json YAML

PR toolchain/53710

allow 64bit target to compile on 32bit host

Ok'ed by <christos>

(scole)

2018-11-16 19:55:18 UTC MAIN commitmail json YAML

Now that size estimates are not way off anymore, only double the size
for the minimal suggested partition.

(martin)

2018-11-16 19:54:05 UTC MAIN commitmail json YAML

2018-11-16 19:46:53 UTC MAIN commitmail json YAML

2018-11-16 19:32:01 UTC MAIN commitmail json YAML

make pcihost_intr_evcnt static, like the other functions

(jakllsch)

2018-11-16 17:18:29 UTC MAIN commitmail json YAML

Belated Condolonces on the loss of your m_devget() copy argument.
In sympathy we offer you a welcome to 8.99.26

(kre)

2018-11-16 17:07:42 UTC MAIN commitmail json YAML

2018-11-16 17:07:10 UTC MAIN commitmail json YAML

Bump space for ramdisk image

(martin)

2018-11-16 15:41:27 UTC MAIN commitmail json YAML

Restore acpi_pci_ignore_boot_config lost in previous commit

(jmcneill)

2018-11-16 15:06:23 UTC MAIN commitmail json YAML

2018-11-16 14:58:54 UTC MAIN commitmail json YAML

Fix boot failure from installation floppies.  PR port-macppc/53103

Also bump version to denote a visible fix.
Should be pulled up to netbsd-8 and netbsd-7.

(tsutsui)

2018-11-16 13:55:18 UTC MAIN commitmail json YAML

The test for regular file was wrong.

From yarl on freenode, thanks!

(mlelstv)

2018-11-16 13:02:52 UTC MAIN commitmail json YAML

Adjust for libcurses bump

(martin)

2018-11-16 10:51:08 UTC MAIN commitmail json YAML

fix type of argument for va_arg; don't round to 32bit.

(ryo)

2018-11-16 10:12:00 UTC MAIN commitmail json YAML

Fix for PR lib/52063
Many thanks to  Onno van der Linden (o.vd.linden@quicknet.nl) for providing
the bulk of the patch that fixes the issue.

(blymn)

2018-11-16 10:09:29 UTC MAIN commitmail json YAML

Bump libcurses minor version due to fix for lib/52063

(blymn)

2018-11-16 08:57:10 UTC MAIN commitmail json YAML

rtadvd: use %u to print unsigned variables

(ozaki-r)

2018-11-16 02:39:02 UTC MAIN commitmail json YAML

Use reclaim2 to fix reclaim/lookup race conditions

The PUFFS reclaim operation had a race condition with lookups: we could
be asked to lookup a node, then to reclaim it before lookup completion.
At lookup completion, we would then create a leaked node.

Enter the PUFFS reclaim2 operation, which features a nlookup argument.
That let us count how many lookups are pending and avoid the above
described scenario. It also makes the codes simplier.

(manu)

2018-11-16 00:34:51 UTC MAIN commitmail json YAML

Build fix

From David H. Gutteridge

(manu)

2018-11-15 23:53:40 UTC MAIN commitmail json YAML

If the bootloader specifies a boot mac-address, use it to find the root device.

(jmcneill)

2018-11-15 23:52:33 UTC MAIN commitmail json YAML

2018-11-15 23:01:46 UTC MAIN commitmail json YAML

2018-11-15 22:15:44 UTC MAIN commitmail json YAML

remove #ifdef DEBUG printf, it seems to have outlived it's usefulness

(jdolecek)

2018-11-15 20:39:19 UTC MAIN commitmail json YAML

enable some incorrectly commented-out code

(scole)

2018-11-15 20:06:23 UTC MAIN commitmail json YAML

change "PCB" to "pcb"

(scole)

2018-11-15 17:15:52 UTC MAIN commitmail json YAML

A64 timer errata can cause the timer to fire too soon, so skip KASSERT here too.

(jmcneill)

2018-11-15 16:58:56 UTC MAIN commitmail json YAML

No need to write any initializer here, casted or otherwise.

(Sorry about the build breakage; thanks, kre!)

(riastradh)

2018-11-15 14:19:23 UTC MAIN commitmail json YAML

Woah man, fix enormous leak.

Possible info leak: [len=1056, leaked=931]
#0 0xffffffff80bad351 in kleak_copyout
#1 0xffffffff80b2cf64 in uvm_swap_stats.part.1
#2 0xffffffff80b2d38d in uvm_swap_stats
#3 0xffffffff80b2d43c in sys_swapctl
#4 0xffffffff80259b82 in syscall

(maxv)

2018-11-15 13:50:51 UTC MAIN commitmail json YAML

WSDISPLAYIO_SFONT: Do not attempt to print to the console in the middle of
resizing when DEBUG is defined.

(jmcneill)

2018-11-15 11:20:59 UTC MAIN commitmail json YAML

Update signature in prototype of efi_relva() to match
change in definition in previous, and explicitly cast
NULL to paddr_t to avoid gcc noise.

(kre)

2018-11-15 11:18:33 UTC MAIN commitmail json YAML

Reduce indentation level.

(maxv)

2018-11-15 10:56:30 UTC MAIN commitmail json YAML

2018-11-15 10:37:26 UTC MAIN commitmail json YAML

2018-11-15 10:34:21 UTC MAIN commitmail json YAML

2018-11-15 10:23:57 UTC MAIN commitmail json YAML

2018-11-15 10:23:32 UTC MAIN commitmail json YAML

Add a new helper function to show messages with positional parameters

(martin)

2018-11-15 10:06:07 UTC MAIN commitmail json YAML

Simplify the mtag API:

- Remove m_tag_init(), m_tag_first(), m_tag_next() and
  m_tag_delete_nonpersistent().

- Remove the 't' argument from m_tag_delete_chain().

(maxv)

2018-11-15 09:38:57 UTC MAIN commitmail json YAML

Merge uipc_mbuf2.c into uipc_mbuf.c. Reorder the latter a little to gather
similar functions. No functional change.

(maxv)

2018-11-15 09:23:50 UTC MAIN commitmail json YAML

Explicitly document the incompatibility between USE_PIGZGZIP
and USE_XZ_SETS. Disable the latter if the former is enabled.

(martin)

2018-11-15 07:20:31 UTC MAIN commitmail json YAML

tprof: Add silvermont, airmont support.

I tested on Atom C2758 (Rangeley).

(knakahara)

2018-11-15 06:53:58 UTC MAIN commitmail json YAML

Don't try to interpret the second half of a 64-bit BAR as another one.

From msaitoh@.

(riastradh)

2018-11-15 05:43:57 UTC MAIN commitmail json YAML

Use callout_halt, not callout_stop, for FreeBSD callout_drain shim.

Callers expect callout_drain will wait for it to complete if it has
fired.

(riastradh)

2018-11-15 05:14:20 UTC MAIN commitmail json YAML

cbrtl_powl is xfail only if long double has more bits than double.

(riastradh)

2018-11-15 04:59:02 UTC MAIN commitmail json YAML

Make the direct-map API always available, but fail if KASAN or rump.

(Only for architectures that support it at all; on others,
__HAVE_MM_MD_DIRECT_MAPPED_PHYS/IO are still undefined and the
functions unimplemented.)

This gives modules like zfs an opportunity to use it.

While here, fix the one caller of mm_md_direct_mapped_phys that
ignored the return value (and make sure to call pmap_kremove/update
before uvm_km_free).

(riastradh)

2018-11-15 04:57:00 UTC MAIN commitmail json YAML

Include <bsd.own.mk> before using ACTIVE_CC.  Fixes make errors.

(riastradh)

2018-11-15 04:56:52 UTC MAIN commitmail json YAML

Respect the __HIDE_DELAY kludge like on other ports.

(riastradh)

2018-11-15 04:55:49 UTC MAIN commitmail json YAML

Need <dev/mm.h> for mm_md_direct_mapped_phys.

It turns out this code always sees __HAVE_MM_MD_DIRECT_MAPPED_PHYS as
disabled on amd64, for reasons that I shall address forthwith, but it
is enabled on aarch64 and so the MKZFS=yes build breaks.

(riastradh)

2018-11-15 04:55:38 UTC MAIN commitmail json YAML

Be consistent about _KERNEL vs _HARDKERNEL in zfs.

As it happens, on x86 both _HARDKERNEL and _KERNEL get defined; see
the conditional in sys/rump/Makefile.rump that _refrains_ from
defining _RUMPKERNEL on x86.

So the only version of this code that has been tested is the one with
all of it included.  But on, e.g., aarch64, we do not get _HARDKERNEL
here, and the code fails to build because some things use the field
struct spa::spa_deadman_cycid under _KERNEL when it is declared only
under _HARDKERNEL.

If there's a reason _not_ to use this in rump -- and it's not obvious
to me why -- then all access to the field needs to agree to use
_HARDKERNEL.

(riastradh)

2018-11-15 04:55:26 UTC MAIN commitmail json YAML

Omit unused definition with broken cpp conditional.

(riastradh)

2018-11-15 04:55:17 UTC MAIN commitmail json YAML

Omit conflicting definition that breaks build on aarch64.

(riastradh)

2018-11-15 04:55:06 UTC MAIN commitmail json YAML

"PRIu64", not llu, to print uint64_t.

(riastradh)

2018-11-15 04:53:54 UTC MAIN commitmail json YAML

- I misread ci_acpiid as ci_apicid... LAPIC ID is in ci_cpuid.
  Print it correctly.
- ci_initapicid(Initial APIC ID) is uint32_t, so use %u.

(msaitoh)

2018-11-15 04:37:20 UTC MAIN commitmail json YAML

Fix the format of ifconfig linkstr; it takes an argument

(ozaki-r)

2018-11-15 04:36:46 UTC MAIN commitmail json YAML

ifconfig: add linkstr/-linkstr to the help message

(ozaki-r)

2018-11-15 03:50:22 UTC MAIN commitmail json YAML

Add MAWAU (for BND{LD,ST}X instruction) from the latest Intel SDM.

(msaitoh)

2018-11-15 03:17:51 UTC MAIN commitmail json YAML

_cursesi_addbyte - fix function comment after what looks like an
editing accident.

(uwe)

2018-11-15 02:35:23 UTC MAIN commitmail json YAML

Workaround NBP PN533 USB toggle bit bugs

The PN533 is known to mishandle the USB toggle bit, causing replies to
be filtered out by the host controller. As a result, the kernel sees
a timed out operation.

Vendor errata suggests that userland applications should detect the
situation on read timeout, and write a dumy frame to resync the toggle bit.
NFC Tools's libnfc does just that, but in order to succeed, the dummy
frame write must not be reported as timed out.

We therefore introduce a new USB quirk for devices known to miss output
acks. When that occur, we pretend that the operation succeeded, leaving
userland the duty to check that everything went okay.

This workaround lets libnfc recover from interrupted communications
without the need te reboot the system.

(manu)

2018-11-15 00:01:38 UTC MAIN commitmail json YAML

Instead of disabling preemption, set the binary point field to the minimum supported value

(jmcneill)

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

- When forking, use own register stack for each thread
- For UAREA, arrange layout same as FreeBSD for now to hopefully
  ease porting woes.  add some related macros
  locore.S is incorrectly assuming same layout and seems painful
  to change bspstore in startup
- use ia64_init_return same as FreeBSD
- change some "printf" to "panic" for incompleted items

context switching is still broken but maybe less so

(scole)

2018-11-14 20:13:14 UTC MAIN commitmail json YAML

add more items

(scole)

2018-11-14 20:03:29 UTC MAIN commitmail json YAML

Switch to NKMEMPAGES_MAX_UNLIMITED.

This aligns aarch64 with our other modern 64-bit ports.  Significantly
improves file caching utilization on aarch64 systems with copious RAM.

(jakllsch)

2018-11-14 19:14:40 UTC MAIN commitmail json YAML

Take RAX from the VMCB and not the VCPU state, the latter is not
synchronized and contains old values.

(maxv)

2018-11-14 18:28:18 UTC MAIN commitmail json YAML

Sort sections. New sentence, new line.

(wiz)

2018-11-14 17:51:37 UTC MAIN commitmail json YAML

Apply the recent fixes to {send,recv}mmsg() to their compat variants.

(hannken)

2018-11-14 17:09:08 UTC MAIN commitmail json YAML

Define _LP64 or _ILP32 for all architectures.

Rather than write out a table for each architecture, rely on the C
compiler to define _LP64 for 64-bit ones, on the assumption that
anything not LP64 is ILP32, and on CTASSERTs to verify this
assumption so that if it's wrong it'll fail safely with a noisy build
failure.

Gives zfs half a chance of building on, e.g., powerpc.

(riastradh)

2018-11-14 12:05:29 UTC MAIN commitmail json YAML

In validate_bootsel, the code assumed that arr[j][i] can be accessed
with something like arr[0][j*ARRAYWIDTH+i]. gcc no longer allows such
hacks and discards the code silently because of undefined behaviour.

(mlelstv)

2018-11-14 11:02:52 UTC MAIN commitmail json YAML

Define __HAVE_PCI_MSI_MSIX

(jmcneill)

2018-11-14 10:58:04 UTC MAIN commitmail json YAML

Some fixes for QEMU/hppa.

Don't call desidhash_l on pcxl2 as it doesn't support it.  QEMU emulates
this cpu and would trap on illegal instruction for the diag in desidhash_l

Allow a FPU to be missing... more fixes are likely here.

QEMU doesn't set C bit properly yet

(skrll)

2018-11-14 08:44:34 UTC MAIN commitmail json YAML

Add debug files for recent xserver addition

(martin)

2018-11-14 06:56:31 UTC MAIN commitmail json YAML

defflag XHCI_DISABLE_MSIX

(skrll)

2018-11-14 05:07:48 UTC MAIN commitmail json YAML

let ATF detect a bug fixed by if_vla.c:r1.132.

(knakahara)

2018-11-14 03:41:21 UTC MAIN commitmail json YAML

- Add new wm_gmii_{hv,i82544}_{read,write}reg_locked() and use them in
  wm_gmii_{hv,i82544}_{read,write}reg(). *_locked() functions are not
  mii(4) API functions, so it's not required to keep the mii API. Change
  the PHY register type from int to uint16_t. It also change the usage of
  return value. It returns zero on success and non-zero on error.
- Check the return value of *_locked() function and treat it.
- Use *writereg_locked() function to reduce race condition in
  wm_init_lcd_from_nvm().
- Add comment.

(msaitoh)

2018-11-14 02:37:51 UTC MAIN commitmail json YAML

Add a test for the bug in PR bin/53712  ( " { } > out " core dump )
Tested with both fixed, and unfixed, versions of /bin/sh (and in
posix mode, where that is a syntax error).

(kre)

2018-11-14 02:30:00 UTC MAIN commitmail json YAML

Slightly enhance previous: create two utility functions checking for
partitionability and boot code requirements, use a generic match helper
function for both and fully check the device name.

(martin)

2018-11-13 22:25:29 UTC MAIN commitmail json YAML

Update GICD_CTLR reg bit definitions to reflect the layout of the register
when either in non-secure state or for a system that only supports a single
state.

(jmcneill)

2018-11-13 21:22:38 UTC MAIN commitmail json YAML

Apply -fno-delete-null-pointer-checks so PAGE0 is handled correctly

netinstall.lif works again

(skrll)

2018-11-13 21:20:11 UTC MAIN commitmail json YAML

2018-11-13 20:48:14 UTC MAIN commitmail json YAML

On second/third thoughts we can use the pages before the kernel
everywhere.

(skrll)

2018-11-13 20:24:48 UTC MAIN commitmail json YAML

Fix intrctl for pics with non-0 irqbase

(jmcneill)

2018-11-13 20:12:45 UTC MAIN commitmail json YAML

use pci_intr_establish_xname()

(jdolecek)

2018-11-13 19:39:04 UTC MAIN commitmail json YAML

whitespace fix, NFC

(jdolecek)

2018-11-13 19:06:05 UTC MAIN commitmail json YAML

Add AXP803 current and maximum battery capacity sensors

(jakllsch)

2018-11-13 18:48:26 UTC MAIN commitmail json YAML

2018-11-13 18:27:32 UTC MAIN commitmail json YAML

Use semantically-correct "_lo" in AXP_ADC_RAW macro.

(jakllsch)

2018-11-13 17:22:04 UTC MAIN commitmail json YAML

Skip mbr for xbd and raid devices, as it was before Nov. 5 commits.
anita xen installs should work again.

(bouyer)

2018-11-13 16:57:45 UTC netbsd-8 commitmail json YAML

2018-11-13 16:55:22 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1093):
sys/compat/netbsd32/netbsd32_socket.c: 1.48
Fix inverted logic, which leads to buffer overflow. Detected by kASan.

(snj)

2018-11-13 14:52:31 UTC MAIN commitmail json YAML

2018-11-13 11:06:19 UTC MAIN commitmail json YAML

Fix/add KASSERTS to work with a system of MAXCPUS.  Add some comments to
explain things.

Discussed with rmind

(skrll)

2018-11-13 11:01:54 UTC MAIN commitmail json YAML

Framebuffer definitions for multiboot protocol.

(mlelstv)

2018-11-13 11:00:55 UTC MAIN commitmail json YAML

use generic usbdevices.config

(mlelstv)

2018-11-13 10:51:49 UTC MAIN commitmail json YAML

compute interrupt timer depending on bus clock.

(mlelstv)

2018-11-13 10:35:32 UTC MAIN commitmail json YAML

Fix race in attachment.

(mlelstv)

2018-11-13 10:33:03 UTC MAIN commitmail json YAML

Save a few pages by only allocating LPI pending tables for "ncpu" instead of "MAXCPU" CPUs.

(jmcneill)

2018-11-13 10:31:01 UTC MAIN commitmail json YAML

only warn once per call to uvm_pglistalloc_simple() if waiting.

(mrg)

2018-11-13 10:30:57 UTC MAIN commitmail json YAML

2018-11-13 10:30:35 UTC MAIN commitmail json YAML

Physical end should be the end of the last range, not the first.

(jmcneill)

2018-11-13 09:24:37 UTC MAIN commitmail json YAML

Too much magic involved - revert previous.

(martin)

2018-11-13 09:14:14 UTC MAIN commitmail json YAML

Need some minimalistic support for additional things that ../Makefile
requires, even if we do nothing here

(martin)

2018-11-13 09:00:09 UTC MAIN commitmail json YAML

Move conditionals for libnvmm to subdir makefile, requested boy mrg.

(martin)

2018-11-13 07:45:44 UTC MAIN commitmail json YAML

Fix kernel info leak. There are 2 bytes of padding in struct if_msghdr.

[  944.607323] kleak: Possible leak in copyout: [len=176, leaked=2]
[  944.617335] #0 0xffffffff80b7c44a in kleak_note <netbsd>
[  944.627332] #1 0xffffffff80b7c4ca in kleak_copyout <netbsd>
[  944.627332] #2 0xffffffff80c91698 in sysctl_iflist_if <netbsd>
[  944.637336] #3 0xffffffff80c91d3c in sysctl_iflist <netbsd>
[  944.647343] #4 0xffffffff80c93855 in sysctl_rtable <netbsd>
[  944.647343] #5 0xffffffff80b5b328 in sysctl_dispatch <netbsd>
[  944.657346] #6 0xffffffff80b5b62e in sys___sysctl <netbsd>
[  944.667354] #7 0xffffffff8025ab3c in sy_call <netbsd>
[  944.667354] #8 0xffffffff8025ad6e in sy_invoke <netbsd>
[  944.677365] #9 0xffffffff8025adf4 in syscall <netbsd>

(maxv)

2018-11-13 07:16:33 UTC MAIN commitmail json YAML

Fix kernel info leak. There are 2x4 bytes of padding in struct itimerval.

[  738.451860] kleak: Possible leak in copyout: [len=32, leaked=8]
[  738.481840] #0 0xffffffff80b7c42a in kleak_note <netbsd>
[  738.491821] #1 0xffffffff80b7c4aa in kleak_copyout <netbsd>
[  738.501806] #2 0xffffffff80b6154e in sys___getitimer50 <netbsd>
[  738.511778] #3 0xffffffff80b61e39 in sys___setitimer50 <netbsd>
[  738.521781] #4 0xffffffff8025ab3c in sy_call <netbsd>
[  738.521781] #5 0xffffffff8025ad6e in sy_invoke <netbsd>
[  738.531808] #6 0xffffffff8025adf4 in syscall <netbsd>

(maxv)

2018-11-13 06:58:14 UTC MAIN commitmail json YAML

Fix kernel info leak. There are 4 bytes of padding in struct kevent.

[  287.537676] kleak: Possible leak in copyout: [len=40, leaked=4]
[  287.537676] #0 0xffffffff80b7c41a in kleak_note <netbsd>
[  287.547673] #1 0xffffffff80b7c49a in kleak_copyout <netbsd>
[  287.557677] #2 0xffffffff80b1d32d in kqueue_scan.isra.1.constprop.2 <netbsd>
[  287.557677] #3 0xffffffff80b1dc6a in kevent1 <netbsd>
[  287.567683] #4 0xffffffff80b1dcb0 in sys___kevent50 <netbsd>
[  287.567683] #5 0xffffffff8025ab3c in sy_call <netbsd>
[  287.577688] #6 0xffffffff8025ad6e in sy_invoke <netbsd>
[  287.587693] #7 0xffffffff8025adf4 in syscall <netbsd>

(maxv)

2018-11-13 06:57:14 UTC MAIN commitmail json YAML

Revert my own rev 1.2, the missing include was only when building the 32-bit
compat library, we no longer do this.

(maya)

2018-11-13 06:06:30 UTC MAIN commitmail json YAML

turn on MODULAR by default on aarch64

(ryo)

2018-11-13 03:07:21 UTC MAIN commitmail json YAML

add ppc601 kernel to macppc iso

(scole)

2018-11-13 03:03:22 UTC MAIN commitmail json YAML

add ppc601 kernel to macppc iso

(scole)

2018-11-13 01:06:37 UTC MAIN commitmail json YAML

Avoid using the "interrupt-map" table on our own interrupts.

This is needed by the rk3399.dtsi's pcie0 node, which needs to map its
interrupts an entity other than itself.

Suggested by jmcneill@

(jakllsch)

2018-11-12 20:54:03 UTC MAIN commitmail json YAML

pass correct status + error to *_atapi_phase_complete(), so that
the function is actually able to recognize when there was an error;
tested via reading a cd0 device in QEMU with ejected cdrom

bug was introduced with jdolecek-ncq branch

fixes PR kern/53724 by Andreas Gustafsson

(jdolecek)

2018-11-12 20:16:46 UTC MAIN commitmail json YAML

2018-11-12 20:11:39 UTC MAIN commitmail json YAML

2018-11-12 20:09:07 UTC MAIN commitmail json YAML

install kernel for ppc601 floppies and iso

(scole)

2018-11-12 20:07:47 UTC MAIN commitmail json YAML

install kernel for ppc601 floppies and iso

(scole)

2018-11-12 20:03:42 UTC MAIN commitmail json YAML

Add scroll support, wsmouse

(scole)

2018-11-12 20:00:46 UTC MAIN commitmail json YAML

2018-11-12 18:51:01 UTC MAIN commitmail json YAML

hold channel lock during whole ata_dmaerr()/ata_downgrade_mode() -
according to code inspection this is safe, none of the set_modes
hooks execute anything which would be taking the lock

adresses PR kern/53714 by Andreas Gustafsson

(jdolecek)

2018-11-12 18:10:37 UTC MAIN commitmail json YAML

Add a comment explaining an important rule. Just to better highlight that
this rule is actually not respected.

(maxv)

2018-11-12 17:46:53 UTC MAIN commitmail json YAML

No need to install shared libraries to /lib.

(nakayama)

2018-11-12 16:03:17 UTC netbsd-8 commitmail json YAML

2018-11-12 16:02:18 UTC netbsd-8 commitmail json YAML

2018-11-12 16:01:35 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1091):

sys/dev/usb/usb_quirks.c: revision 1.88,1.89 (via patch)
sys/dev/usb/usbdi_util.c: revision 1.72 (via patch)
sys/dev/usb/usb_quirks.h: revision 1.28 (via patch)
sys/dev/usb/usbdi_util.h: revision 1.48
sys/dev/usb/usbdevs: revision 1.760,1.761 (via patch)

Add PN533 based NFC devices

-

Workaround PN533 USB descriptor corruption

During normal operation, the PN533 chip may corrupt its USB configuration,
interface and endpoint descriptors. The device descriptor remains unaffected.

Since the descriptors are documented to be immutable, we can work around
the problem by providing hard-coded descriptors instead of pulling them
from the device.

Userland implementation such as NFC tools' libnfc use the same approach,
but this kernel quirk is still necessary so that the device can be
attached on reboot, after its USB descriptors got corrupted.

-

Fix typo

(martin)

2018-11-12 12:56:05 UTC MAIN commitmail json YAML

2018-11-12 12:41:03 UTC MAIN commitmail json YAML

Only attach v2m if PCI support is present

(jmcneill)

2018-11-12 12:24:42 UTC netbsd-8 commitmail json YAML

2018-11-12 12:23:20 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by roy in ticket #1092):

sys/netipsec/keysock.c: revision 1.66
sys/kern/uipc_usrreq.c: revision 1.187

Don't call soroverflow when we return the error to the sender.

Thanks to thorpej@ for a sanity check.

(martin)

2018-11-12 12:17:07 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1090):

sys/dev/usb/ugen.c: revision 1.141

Enfore USB timeout on ugen(4) write operations

(martin)

2018-11-12 09:44:17 UTC netbsd-8 commitmail json YAML

2018-11-12 09:43:19 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1089):

external/bsd/nsd/include/config.h: revision 1.5
sys/kern/uipc_syscalls.c: revision 1.198
sys/kern/uipc_syscalls.c: revision 1.199
sys/kern/uipc_socket.c: revision 1.267

Update getsockopt(SO_ERROR) to behave like soreceive() and
return and clear so->so_rerror if so->so_error is zero.

Ok: christos@

-

Don't defer errors from sendmmsg().  This matches the linux manpage.

Defer errors from recvmmsg() through so_rerror and
tests and return a deferred error on entry.

Ok: christos@

-

sys_recvmmsg: don't defer an error that already gets returned.

-

Re-enable {send,recv}mmsg now they are working.

(martin)

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

Do not build a compat i386 version of libnvmm.

(martin)

2018-11-12 09:21:45 UTC MAIN commitmail json YAML

Re-enable {send,recv}mmsg now they are working.

(hannken)

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

sys_recvmmsg: don't defer an error that already gets returned.

(hannken)

2018-11-12 08:57:23 UTC netbsd-8 commitmail json YAML

2018-11-12 08:56:15 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1088):

sys/kern/kern_proc.c: revision 1.219 (via patch)

Fix buffer overflow, which can lead to severe information leak. Detected
by kASan.

(martin)

2018-11-12 08:50:18 UTC netbsd-8 commitmail json YAML

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

sys/net/if_gif.c: revision 1.145

Fix ALTQ on gif(4). Reported and tested by Anthony Mallet, advised by Greg Troxel, thanks.

l2tp(4) and ipsecif(4) don't support ALTQ yet. So, they don't require this fix.

XXX pullup-8

(martin)

2018-11-12 08:46:54 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1086):

bin/sh/parser.c: revision 1.152

PR bin/53712

Avoid crash from redirect on null compound command.

(martin)

2018-11-12 06:55:03 UTC MAIN commitmail json YAML

Fix buffer overflow, which can lead to severe information leak. Detected
by kASan.

(maxv)

2018-11-12 06:53:43 UTC MAIN commitmail json YAML

Fix inverted logic, which leads to buffer overflow. Detected by kASan.

(maxv)

2018-11-12 05:02:00 UTC MAIN commitmail json YAML

Make fenv.h optional for this test to unbreak the vax build.

(riastradh)

2018-11-12 04:37:54 UTC MAIN commitmail json YAML

2018-11-12 04:37:27 UTC MAIN commitmail json YAML

Add some Intel 100 series and C230 series devices.

(msaitoh)

2018-11-12 03:37:33 UTC MAIN commitmail json YAML

Fix ALTQ on gif(4). Reported and tested by Anthony Mallet, advised by Greg Troxel, thanks.

l2tp(4) and ipsecif(4) don't support ALTQ yet. So, they don't require this fix.

XXX pullup-8

(knakahara)

2018-11-12 00:56:26 UTC MAIN commitmail json YAML

Improve examples and netmask information (from Dan Plassche)

(christos)

2018-11-12 00:50:54 UTC MAIN commitmail json YAML

FILES section from Dan Plassche

(christos)

2018-11-11 23:14:17 UTC MAIN commitmail json YAML

2018-11-11 23:13:10 UTC MAIN commitmail json YAML

2018-11-11 23:05:25 UTC MAIN commitmail json YAML

our GCC 6.5 is "nb4 20181109".

(mrg)