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 (7h)  netbsd-10 (16d)  netbsd-9 (16d)  netbsd-8 (21d) 

2024-06-02 07:28:59 UTC Now

2017-10-25 06:32:59 UTC MAIN commitmail json YAML

Implement tcgetwinsize() and tcsetwinsize() in libc, with access
via <termios.h> (and document them.)  Bump libc minor number for them.

Arrange for "struct winsize" to become visible in <termios.h>

Fix stty(1) so that "cols" is reported as the arg to set number of columns,
and "columns" is the alias, rather than the other way around, as "cols" is
what has been added to POSIX.

This is to conform with updates to be included in 1003.1 issue 8
(whenever that gets published) currently available at:
  http://austingroupbugs.net/view.php?id=1053  (see note 3863)
  http://austingroupbugs.net/view.php?id=1151  (see note 3856)

(kre)

2017-10-25 06:02:40 UTC MAIN commitmail json YAML

Document lock order and locking rules.

(riastradh)

2017-10-25 05:42:56 UTC MAIN commitmail json YAML

Add options to the builtin jobid command to allow discovering the
process group (-g), the process leader pid (-p) ($! if the job was &'d)
and the job identifier (-j) (the %n that refers to the job) in addition to
(default) the list of all pids in the job (which it has always done).
No change to the (single) "job" arg, which is a specifier of the job:
the process leader pid, or one of the % forms, and defaults to %% (aka %+).
(This is all now documented in sh(1))

Also document the jobs command properly (no change to the command, just
document what it actually is.)

And while here, a whole new section in sh(1) "Job Control".  It probably
needs better wording, but this is (perhaps) better than the nothing that
was there before.

(kre)

2017-10-25 04:45:41 UTC MAIN commitmail json YAML

- For X550 and newer, print NVM Image Version with %u.%02x (e.g. "0.05").
- Fix value check of OEM_NVM_IMAGE_VER.

(msaitoh)

2017-10-25 04:33:15 UTC MAIN commitmail json YAML

Remove unnecessary splsoftnet

(ozaki-r)

2017-10-25 04:17:34 UTC MAIN commitmail json YAML

Don't free sc_rthash twice

(ozaki-r)

2017-10-24 22:38:32 UTC MAIN commitmail json YAML

Switch BEAGLEBOARD config over to using GENERIC.common.
Remove duplicates already defined in GENERIC.common.

(sevan)

2017-10-24 22:25:51 UTC MAIN commitmail json YAML

Switch BEAGLEBOARDXM config over to using GENERIC.common.
Remove duplicates already defined in GENERIC.common.

(sevan)

2017-10-24 20:24:12 UTC MAIN commitmail json YAML

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

Add missing functions from the SYNOPSIS to the NAME section

(abhinav)

2017-10-24 19:07:13 UTC MAIN commitmail json YAML

Use commas at the right places in the NAME section

(abhinav)

2017-10-24 19:04:58 UTC MAIN commitmail json YAML

Add missing functions from the SYNOPSIS to the NAME section

(abhinav)

2017-10-24 18:54:03 UTC MAIN commitmail json YAML

Remove trailing comma after last Nm entry in the NAME section

(abhinav)

2017-10-24 18:50:46 UTC MAIN commitmail json YAML

Add getpass_r and getpassfd to the NAME section as well.

(abhinav)

2017-10-24 18:42:06 UTC MAIN commitmail json YAML

Fix typo: s/cexpandtc/csetexpandtc

The synopsis and description mention only csetexpandtc function.
nxr also only shows csetexpandtc while no matches for cexpandtc.

(abhinav)

2017-10-24 18:19:17 UTC MAIN commitmail json YAML

Add membar_datadep_consumer to the NAME section
Remove Pp before Bl

(abhinav)

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

2017-10-24 17:38:17 UTC MAIN commitmail json YAML

Welcome to 2017c:

    zic and the reference runtime now reject multiple leap seconds
    within 28 days of each other, or leap seconds before the Epoch.
    As a result, support for double leap seconds, which was
    obsolescent and undocumented, has been removed.  Double leap
    seconds were an error in the C89 standard; they have never existed
    in civil timekeeping.  (Thanks to Robert Elz and Bradley White for
    noticing glitches in the code that uncovered this problem.)

    zic now warns about use of the obsolescent and undocumented -y
    option, and about use of the obsolescent TYPE field of Rule lines.

    zic now allows unambiguous abbreviations like "Sa" and "Su" for
    weekdays; formerly it rejected them due to a bug.  Conversely, zic
    no longer considers non-prefixes to be abbreviations; for example,
    it no longer accepts "lF" as an abbreviation for "lastFriday".
    Also, zic warns about the undocumented usage with a "last-"
    prefix, e.g., "last-Fri".

    Similarly, zic now accepts the unambiguous abbreviation "L" for
    "Link" in ordinary context and for "Leap" in leap-second context.
    Conversely, zic no longer accepts non-prefixes such as "La" as
    abbreviations for words like "Leap".

    zic no longer accepts leap second lines in ordinary input, or
    ordinary lines in leap second input.  Formerly, zic sometimes
    warned about this undocumented usage and handled it incorrectly.

    The new macro HAVE_TZNAME governs whether the tzname external
    variable is exported, instead of USG_COMPAT.  USG_COMPAT now
    governs only the external variables "timezone" and "daylight".
    This change is needed because the three variables are not in the
    same category: although POSIX requires tzname, it specifies the
    other two variables as optional.  Also, USG_COMPAT is now 1 or 0:
    if not defined, the code attempts to guess it from other macros.

    localtime.c and difftime.c no longer require stdio.h, and .c files
    other than zic.c no longer require sys/wait.h.

    zdump.c no longer assumes snprintf.  (Reported by Jonathan Leffler.)

    Calculation of time_t extrema works around a bug in GCC 4.8.4
    (Reported by Stan Shebs and Joseph Myers.)

    zic.c no longer mistranslates formats of line numbers in non-English
    locales.  (Problem reported by Benno Schulenberg.)

    Several minor changes have been made to the code to make it a
    bit easier to port to MS-Windows and Solaris.  (Thanks to Kees
    Dekker for reporting the problems.)

  Changes to documentation and commentary

    The two new files 'theory.html' and 'calendars' contain the
    contents of the removed file 'Theory'.  The goal is to document
    tzdb theory more accessibly.

    The zic man page now documents abbreviation rules.

    tz-link.htm now covers how to apply tzdata changes to clients.
    (Thanks to Jorge F叩bregas for the AIX link.)  It also mentions MySQL.

    The leap-seconds.list URL has been updated to something that is
    more reliable for tzdb.  (Thanks to Tim Parenti and Brian Inglis.)

(christos)

2017-10-24 17:01:15 UTC MAIN commitmail json YAML

Remove cdbr_write from NAME section, it's a left over
Also add comma after the first Nm entry

ok joerg@

(abhinav)

2017-10-24 15:43:45 UTC MAIN commitmail json YAML

deal with firmware that does not set the 'vram' property on the tcx's node

(macallan)

2017-10-24 15:07:09 UTC MAIN commitmail json YAML

Adjust irq mask/unmask along with enable/disable to make qemu happy

(jmcneill)

2017-10-24 15:06:23 UTC MAIN commitmail json YAML

sun4i: use Timer 1 instead of Timer 0 for delay, and explicitly enable it

(jmcneill)

2017-10-24 09:11:51 UTC MAIN commitmail json YAML

Added link up status check for valid pci device confirm.

(hkenken)

2017-10-24 08:32:42 UTC MAIN commitmail json YAML

Print Error Source Identification register correctly.

(msaitoh)

2017-10-24 08:02:07 UTC MAIN commitmail json YAML

Print "ECC" or "no ECC" for DDR4.

(msaitoh)

2017-10-24 02:22:09 UTC MAIN commitmail json YAML

Marked zoneinfo/Canada/East-Saskatchewan as obsolete (zone removed from
tzdata 201c) - name does not meet guidelines, and was never needed.

(kre)

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

2017-10-24 01:28:18 UTC MAIN commitmail json YAML

2017-10-23 23:29:38 UTC MAIN commitmail json YAML

fix wm(4) vlan panic. Reported and tested by Tom Ivar Helbekkmo, thanks.

wm(4) used PRI bits and CFI bit as vlantag by mistake. It is found out
by if_ether.h:r1.67.

XXX need pullup-8

(knakahara)

2017-10-23 21:03:25 UTC MAIN commitmail json YAML

Enable clocks and de-assert resets

(jmcneill)

2017-10-23 19:36:01 UTC MAIN commitmail json YAML

A couple small adjustments to make big endian (BE8) SUNXI work.

(jakllsch)

2017-10-23 19:03:40 UTC MAIN commitmail json YAML

remove counter for 'journal I/O bufs biowait' - it's (total - async), so
superfluous; adjust the description of the the other counters a bit to make
them more clear

(jdolecek)

2017-10-23 15:34:45 UTC MAIN commitmail json YAML

Remove duplicate MLINK entry for dup_field.3
(it's already defined 3 lines above)

(abhinav)

2017-10-23 15:23:56 UTC MAIN commitmail json YAML

Add the function names to the NAME section

(abhinav)

2017-10-23 15:21:11 UTC MAIN commitmail json YAML

Initialize txrate to 0 for new associations; firmware handles rate adaptation for us

(jmcneill)

2017-10-23 15:08:05 UTC MAIN commitmail json YAML

We don't need '&mii', but just 'mii' for mii_detach().

(jakllsch)

2017-10-23 13:47:17 UTC MAIN commitmail json YAML

- Get SDIO reset working (from OpenBSD).
- After switching bus width, notify the host controller of the change.

(jmcneill)

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

Fix swapped BUS_DMASYNC_POST{READ,WRITE} on bounced commands

(jmcneill)

2017-10-23 13:12:23 UTC MAIN commitmail json YAML

2017-10-23 13:11:17 UTC MAIN commitmail json YAML

SDIO IO_RW_EXTENDED (CMD53) commands have datalen set but no dmamap. Setup
and use a bounce buffer to service these requests.

(jmcneill)

2017-10-23 12:55:26 UTC MAIN commitmail json YAML

2017-10-23 11:21:56 UTC MAIN commitmail json YAML

Do the second half of the previous half-bump: now welcome to 8.99.5
for real!

(martin)

2017-10-23 11:06:31 UTC MAIN commitmail json YAML

Change SUNXI_MMC_DEBUG to a bitmask, allowing for isolation of specific
device units. Useful for debugging sdio without seeing debug spam from the
SD card.

(jmcneill)

2017-10-23 10:52:07 UTC MAIN commitmail json YAML

PR bin/52640  PR bin/52641

Don't delete jobs from the jobs table merely because they finished,
if they are not the job we are waiting upon.  (bin/52640 part 1)

In a sub-shell environment, don't allow wait to find jobs from the
parent shell that had already exited (before the sub-shell was
created) and return status for them as if they are our children.
(bin/52640 part 2)

Don't have the "jobs" command also be an implicit "wait" command
in non-interactive shells.  (bin/52641)

Use WCONTINUED (when it exists) so we can report on stopped jobs that
"mysteriously" move back to running state without the user issuing
a "bg" command (eg: kill -CONT <pid>)  Previously they would keep
being reported as stopped until they exited.

When a job is detected as having changed status just as we're
issuing a "jobs" command (i.e.: the change occurred between the last
prompt and the jobs command being entered) don't report it twice,
once from the status change, and then again in the jobs command
output.  Once is enough (keep the jobs output, suppress the other).

Apply some sanity to the way jobs_invalid is processed - ignore it
in getjob() instead of just ignoring it most of the time there, and
instead always check it before calling getjob() in situations where
we can handle only children of the current shell.  This allows the
(totally broken) save/clear/restore of jobs_invalid in jobscmd() to
be done away with (previously an error while in the clear state would
have left jobs_invalid incorrectly cleared - shouldn't have mattered
since jobs_invalid => subshell => error causes exit, but better to be safe).

Add/improve the DEBUG more tracing.

XXX pullup -8

(kre)

2017-10-23 09:35:35 UTC MAIN commitmail json YAML

Change return value of if_initialize() and if_attach() from void to int.

Welcome to 8.99.4

(msaitoh)

2017-10-23 09:32:55 UTC MAIN commitmail json YAML

- If if_attach() failed in the attach function, free resources and return.
- KNF

(msaitoh)

2017-10-23 09:32:33 UTC MAIN commitmail json YAML

- If if_initialize() failed in the attach function, free resources and return.
- KNF

(msaitoh)

2017-10-23 09:32:00 UTC MAIN commitmail json YAML

If if_attach() failed in the attach function, free resources and return.

(msaitoh)

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

2017-10-23 09:28:38 UTC MAIN commitmail json YAML

- If if_initialize() failed in the attach function, free resources and return.
- Fix error path in the attach function correctly.

(msaitoh)

2017-10-23 09:28:13 UTC MAIN commitmail json YAML

- If if_initialize() failed in the attach function, free resources and return.
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.

(msaitoh)

2017-10-23 09:27:46 UTC MAIN commitmail json YAML

- If if_initialize() failed in the attach function, free resources and return.
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach
  failed.

(msaitoh)

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

If if_initialize() failed in the attach function, return.

(msaitoh)

2017-10-23 09:25:31 UTC MAIN commitmail json YAML

- Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.

(msaitoh)

2017-10-23 09:25:11 UTC MAIN commitmail json YAML

- If if_initialize() failed in athn_attach(), free resources and return.
- Add missing pmf_event_deregister() in athn_detach().

(msaitoh)

2017-10-23 09:24:34 UTC MAIN commitmail json YAML

If error occured in the attach function, free resources and return.

(msaitoh)

2017-10-23 09:23:48 UTC MAIN commitmail json YAML

If error occured in pq3etsec_attach(), free resources and return.

(msaitoh)

2017-10-23 09:23:25 UTC MAIN commitmail json YAML

If error occured in bcmeth_ccb_attach(), free resources and return.

(msaitoh)

2017-10-23 09:22:51 UTC MAIN commitmail json YAML

- If if_initialize() failed in the attach function, free resources and return.
- Add some missing frees in bridge_clone_destroy().
- KNF

(msaitoh)

2017-10-23 09:22:24 UTC MAIN commitmail json YAML

2017-10-23 09:21:40 UTC MAIN commitmail json YAML

Return if bah_attach_subr() failed.

(msaitoh)

2017-10-23 09:21:20 UTC MAIN commitmail json YAML

if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.

(msaitoh)

2017-10-23 08:08:53 UTC MAIN commitmail json YAML

Add bwfm (and sort other 802.11 usb wifi drivers)

(skrll)

2017-10-23 07:05:23 UTC MAIN commitmail json YAML

splserial is an alias for splhigh now. No need to splhigh twice.

(skrll)

2017-10-23 06:52:17 UTC MAIN commitmail json YAML

Provide better debug messages for ioctl

(ozaki-r)

2017-10-23 06:43:00 UTC MAIN commitmail json YAML

Fix compile error. Use const correctly.

(msaitoh)

2017-10-23 06:00:59 UTC MAIN commitmail json YAML

Add two XXXs, so that people don't get confused, a fifth region is needed
anyway.

(maxv)

2017-10-23 03:54:40 UTC MAIN commitmail json YAML

Clear ifm_cur and ifm_media after removing all ifmedia entries(IFM_INST_ANY)
in ifmedia_delete_instance() like if_media.c rev. 1.32.
Now if_media_delete_instance(IFM_INST_ANY) is the same as ifmedia_removeall().

(msaitoh)

2017-10-23 02:38:46 UTC MAIN commitmail json YAML

remove the braces I accidentally added.

(christos)

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

New sentence, new line.

(wiz)

2017-10-23 01:06:52 UTC MAIN commitmail json YAML

Remove superfluous Tn.

(wiz)

2017-10-23 01:06:05 UTC MAIN commitmail json YAML

Remove superfluous Tn.

(wiz)

2017-10-23 01:05:10 UTC MAIN commitmail json YAML

2017-10-23 01:03:23 UTC MAIN commitmail json YAML

2017-10-23 00:59:44 UTC MAIN commitmail json YAML

2017-10-22 23:15:54 UTC MAIN commitmail json YAML

Bump image size to 24MB, won't fit for plain evbarm otherwise.

(joerg)

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

PR/52638: matthew green: missing argument check causes m4 to core in ifelse()

(christos)

2017-10-22 20:35:32 UTC MAIN commitmail json YAML

2017-10-22 18:37:01 UTC MAIN commitmail json YAML

All the four functions described in the man page conform to POSIX.1

(abhinav)

2017-10-22 18:26:46 UTC MAIN commitmail json YAML

Add missing word in the sentence

(abhinav)

2017-10-22 18:09:33 UTC MAIN commitmail json YAML

Add rtsol to the NAME section as well

(abhinav)

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

Add quotadump to the NAME section

(abhinav)

2017-10-22 17:58:10 UTC MAIN commitmail json YAML

Add irda to the NAME section as well

(abhinav)

2017-10-22 17:53:49 UTC MAIN commitmail json YAML

Add newsyslog.conf to the NAME section
Also fix couple of lint warnings from mandoc

(abhinav)

2017-10-22 17:45:46 UTC MAIN commitmail json YAML

Add pgrep and prenice to the NAME section

(abhinav)

2017-10-22 17:40:53 UTC MAIN commitmail json YAML

Add getcap to the NAME section as well

(abhinav)

2017-10-22 17:36:49 UTC MAIN commitmail json YAML

Add gunzip and zcat to the NAME section as well

(abhinav)

2017-10-22 16:59:18 UTC MAIN commitmail json YAML

Add snprintb_m to the NAME section.

(abhinav)

2017-10-22 16:55:32 UTC MAIN commitmail json YAML

Add missing functions to the NAME section

(abhinav)

2017-10-22 16:49:13 UTC MAIN commitmail json YAML

Add hid_parse_usage_page and hid_parse_usage_in_page to the NAME section

(abhinav)

2017-10-22 16:44:51 UTC MAIN commitmail json YAML

Remove tputs from NAME section since it is described in terminfo(3)

(abhinav)

2017-10-22 16:42:34 UTC MAIN commitmail json YAML

Add missing functions to the NAME section

(abhinav)

2017-10-22 16:37:24 UTC MAIN commitmail json YAML

2017-10-22 16:15:02 UTC MAIN commitmail json YAML

Remove description of pthread_barrierattr_getpshared and pthread_barrierattr_setpshared

These functions are described in pthread_barrierattr(3) man page

(abhinav)

2017-10-22 16:09:22 UTC MAIN commitmail json YAML

Add rest of the pthread_barrier functions in the NAME section

(abhinav)

2017-10-22 15:48:11 UTC MAIN commitmail json YAML

Add pthread_attr_setdetachstate to NAME section

(abhinav)

2017-10-22 15:44:21 UTC MAIN commitmail json YAML

Add pthread_getattr_np to the NAME section

(abhinav)

2017-10-22 15:34:13 UTC MAIN commitmail json YAML

Remove comma after last Nm entry in the NAME section

(abhinav)

2017-10-22 15:28:48 UTC MAIN commitmail json YAML

Add function names to the NAME section

(abhinav)

2017-10-22 14:25:33 UTC MAIN commitmail json YAML

Add rest of the functions from the SYNOPSIS to the NAME section

(abhinav)

2017-10-22 14:13:41 UTC MAIN commitmail json YAML

2017-10-22 14:07:03 UTC MAIN commitmail json YAML

Add rest of the functions from the SYNOPSIS section to the NAME section

(abhinav)

2017-10-22 13:57:47 UTC MAIN commitmail json YAML

2017-10-22 13:57:25 UTC MAIN commitmail json YAML

If an mmc-pwrseq provider is available, use it

(jmcneill)

2017-10-22 13:56:49 UTC MAIN commitmail json YAML

2017-10-22 13:13:55 UTC MAIN commitmail json YAML

do not share queue between the non-indepedant channels; instead make
sure only one of the channels is ever active on the same controller

fixes PR kern/52606 by Martin Husemann, thanks for report and testing

(jdolecek)

2017-10-22 11:17:39 UTC MAIN commitmail json YAML

Add magic_open to the NAME section

(abhinav)

2017-10-22 11:00:28 UTC MAIN commitmail json YAML

AXP209 isn't an SMBus device, so don't use iic_smbus_* APIs.

(jmcneill)

2017-10-22 10:31:57 UTC MAIN commitmail json YAML

2017-10-22 07:52:40 UTC MAIN commitmail json YAML

2017-10-22 06:26:01 UTC MAIN commitmail json YAML

Remove superfluous space character.

From rjc via https://github.com/NetBSD/src/pull/1

(pgoyette)

2017-10-22 03:29:23 UTC MAIN commitmail json YAML

tlb_exception - set ksi_addr to va also when a userland page is not found.
Helps SIGSEGV handlers for PROT_NONE red zones.

(uwe)

2017-10-22 01:57:33 UTC MAIN commitmail json YAML

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

Add sysctl machdep.bootmethod

either "UEFI" or "BIOS" to mimic freebsd

(maya)

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

Move initialization code out of efi_probe into efi_init

and call it from cpu_configure

(maya)

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

2017-10-22 00:20:50 UTC MAIN commitmail json YAML

Add an explanation of how namespace.h works.

(christos)

2017-10-21 23:49:28 UTC MAIN commitmail json YAML

2017-10-21 22:03:01 UTC MAIN commitmail json YAML

Direct reader to use build.sh for building NetBSD in favour of using make directly.
Give an example of why build.sh is better to use.

(sevan)

2017-10-21 21:18:33 UTC MAIN commitmail json YAML

Fix non-macro. Properly end list.

(wiz)

2017-10-21 21:16:07 UTC MAIN commitmail json YAML

SH3 is no longer an exception for MKPIC, in src/share/mk/bsd.own.mk we set MKPIC
to yes by default.
Kill trailing whitespace.

(sevan)

2017-10-21 20:36:12 UTC MAIN commitmail json YAML

Pass WME access classification to bcdc header

(jmcneill)

2017-10-21 19:43:53 UTC MAIN commitmail json YAML

Update contact info for changes to this file.

(jmcneill)

2017-10-21 18:18:44 UTC MAIN commitmail json YAML

Initialize all fields in bcdc header.

(jmcneill)

2017-10-21 15:20:52 UTC MAIN commitmail json YAML

SMAP on amd64.

(maxv)

2017-10-21 15:14:57 UTC MAIN commitmail json YAML

USER_LDT on amd64.

(maxv)

2017-10-21 15:12:28 UTC MAIN commitmail json YAML

USER_LDT done.

(maxv)

2017-10-21 14:38:22 UTC MAIN commitmail json YAML

Remove comma after last Nm entry

(abhinav)

2017-10-21 11:47:17 UTC MAIN commitmail json YAML

Add support for sdio interrupts

(jmcneill)

2017-10-21 11:38:14 UTC MAIN commitmail json YAML

disable seeprom for now, it seems to trigger random boot failures on my A10 board

(jmcneill)

2017-10-21 09:58:56 UTC MAIN commitmail json YAML

Fix return value.  fo_kqfilter is expected to return errno on error.
This is the rest of 1.226 (10 years ago).

(isaki)

2017-10-21 09:12:41 UTC MAIN commitmail json YAML

Fix return value.  fo_poll is expected to return revents on error.

(isaki)

2017-10-21 09:02:23 UTC MAIN commitmail json YAML

Fix return value.  fo_mmap is expected to return errno on error.

(isaki)

2017-10-21 08:27:19 UTC MAIN commitmail json YAML

Forbid 64bit entries. That's it, now we support USER_LDT on amd64.

(maxv)

2017-10-21 08:08:26 UTC MAIN commitmail json YAML

Use labels instead of disassembling *(%rip). intrfastexit is now the
only place where the segregs can fault.

(maxv)

2017-10-21 07:24:26 UTC MAIN commitmail json YAML

2017-10-21 07:23:22 UTC MAIN commitmail json YAML

2017-10-21 06:55:54 UTC MAIN commitmail json YAML

Improve our segregs model. Pass 3/3.

Treat %gs the same way we treat %ds/%es/%fs: restore it in INTRFASTEXIT
on 32bit LWPs.

On Xen however, its behavior does not change, because we need to do an
hypercall before INTR_RESTORE_GPRS, and that's too complicated for now.

As a side effect, this change fixes a bug in the ACPI wakeup code; %fs/%gs
were not restored on 32bit LWPs, and chances are they would segfault
shortly afterwards.

Support for USER_LDT on amd64 is almost complete now.

(maxv)

2017-10-21 05:30:48 UTC MAIN commitmail json YAML

Create directory for new bwfm firmware to be installed into.

(kre)

2017-10-21 03:17:36 UTC MAIN commitmail json YAML

2017-10-21 03:17:09 UTC MAIN commitmail json YAML

2017-10-21 02:21:30 UTC MAIN commitmail json YAML

Fix sun4i platform delay to sleep the requested number of microseconds
instead of the requested number of clock ticks.

(jmcneill)

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

Add bwfm firmware Makefile

(jmcneill)

2017-10-21 02:05:38 UTC MAIN commitmail json YAML

2017-10-20 23:38:57 UTC MAIN commitmail json YAML

Set maximum supported bwfm_bss_info length

(jmcneill)

2017-10-20 23:38:21 UTC MAIN commitmail json YAML

Fix an alignment problem with scan results within an escan event

(jmcneill)

2017-10-20 22:29:33 UTC MAIN commitmail json YAML

2017-10-20 22:29:15 UTC MAIN commitmail json YAML

Add driver for sun4i/sun7i 10/100 Fast Ethernet controller (EMAC).

(jmcneill)

2017-10-20 21:51:29 UTC MAIN commitmail json YAML

actually 0680 uses different chip map func, which doesn't call the function
handing non-independant channels, so don't set IDE_SHARED_CHANNELS for it

(jdolecek)

2017-10-20 19:06:46 UTC MAIN commitmail json YAML

Initialize the in/out parameter vmin.

vmin is only an optional hint since we're not passing UVM_FLAG_FIXED,
but that doesn't mean we should use uninitialized stack garbage as
the hint.

Noted by chs@.

(riastradh)

2017-10-20 14:48:43 UTC MAIN commitmail json YAML

Carve out KVA for execargs on boot from an exec_map like we used to.

Candidate fix for PR kern/45718: `processes sometimes get stuck and
spin in vm_map', a problem that has been plaguing all our 32-bit
ports for years.

Since we currently use large (256k) buffers for execargs, and since
nobody has stepped up to tackle breaking them into bite-sized (or at
least page-sized) chunks, after KVA gets sufficiently fragmented we
can't allocate new execargs buffers from kernel_map.

Until 2008, we always carved out KVA for execargs on boot with a uvm
submap exec_map of kernel_map.  Then ad@ found that the uvm_km_free
call, to discard them when done, cost about 100us, which a pool
avoided:

https://mail-index.NetBSD.org/tech-kern/2008/06/25/msg001854.html
https://mail-index.NetBSD.org/tech-kern/2008/06/26/msg001859.html

ad@ _simultaneously_ introduced a pool _and_ eliminated the reserved
KVA in the exec_map submap.  This change preserves the pool, but
restores exec_map (with less code, by putting it in MI code instead
of copying it in every MD initialization routine).

Patch proposed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2017/10/19/msg022461.html

Patch tested by bouyer@:
https://mail-index.NetBSD.org/tech-kern/2017/10/20/msg022465.html

I previously discussed the issue on tech-kern before I knew of the
history around exec_map:
https://mail-index.NetBSD.org/tech-kern/2012/12/09/msg014695.html

The candidate workaround I proposed of using pool_setlowat to force
preallocation of KVA would also force preallocation of physical RAM,
which is a waste not incurred by using exec_map, and which is part of
why I never committed it.

There may remain a general problem that if thread A calls pool_get
and tries to service that request by a uvm_km_alloc call that hangs
because KVA is scarce, and thread B does pool_put, the pool_put in
thread B will not notify the pool_get in thread A that it doesn't
need to wait for KVA, and so thread A may continue to hang in
uvm_km_alloc.  However,

(a) That won't apply here, because there is exactly as much KVA
available in exec_map as exec_pool will ever try to use.

(b) It is possible that may not even matter in other cases as long as
the page daemon eventually tries to shrink the pool, which will cause
a uvm_km_free that can unhang the hung uvm_km_alloc.

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

(riastradh)

2017-10-20 12:11:34 UTC MAIN commitmail json YAML

Make check_exec() errors print the name of the binary that fails to
execute.

(martin)

2017-10-20 12:03:16 UTC MAIN commitmail json YAML

2017-10-20 12:01:43 UTC MAIN commitmail json YAML

update entry for Marvel Yukon 8058, and fix URL for pci ids (Rocky Hotas)

(christos)

2017-10-20 09:26:13 UTC MAIN commitmail json YAML

On I219, drop TARC0 bit 28 for DMA hang workaround (from Linux).

(msaitoh)

2017-10-20 08:04:39 UTC MAIN commitmail json YAML

No functional change:
- Simplify ifmedia_removeall using with ifmedia_delete_instance(IFM_INST_ANY).
- KNF.

(msaitoh)

2017-10-20 07:06:08 UTC MAIN commitmail json YAML

2017-10-20 03:45:47 UTC MAIN commitmail json YAML

Add test cases for one SP with multiple SAs

These are for a bug reported recently which modifies SPs accidentally.

(ozaki-r)

2017-10-20 03:45:02 UTC MAIN commitmail json YAML

Suppress name resolution

(ozaki-r)

2017-10-20 03:43:51 UTC MAIN commitmail json YAML

2017-10-20 03:42:53 UTC MAIN commitmail json YAML

Show packet counters

(ozaki-r)

2017-10-19 23:59:56 UTC MAIN commitmail json YAML

2017-10-19 23:59:30 UTC MAIN commitmail json YAML

2017-10-19 23:58:41 UTC MAIN commitmail json YAML

2017-10-19 23:55:02 UTC MAIN commitmail json YAML

2017-10-19 23:54:42 UTC MAIN commitmail json YAML

Add USB IDs for Broadcom BCM43236, BCM43143, BCM43242, and BCM43569 USB
wireless devices.

(jmcneill)

2017-10-19 20:45:07 UTC MAIN commitmail json YAML

more detailed debug info; also sync DEBUG_* values in wd.c with ata.c

(jdolecek)

2017-10-19 20:27:12 UTC MAIN commitmail json YAML

2017-10-19 20:11:38 UTC MAIN commitmail json YAML

replace the chek for the shared channel of cmdide(4) a flag of the
product array, rather than switch inside attach routine

XXX judging from product name, Silicon Image 0680 might be newer than 0649
XXX and hence have actually independant channels, but I don't have the hw
XXX so keeping as-is

no functional change, just to improve visibility in course of fixing
PR kern/52606

(jdolecek)

2017-10-19 19:05:53 UTC MAIN commitmail json YAML

Improve our segregs model. Pass 2/3.

Treat %fs the same way we treat %ds and %es. For a new 32bit LWP %fs is
set to GUDATA32_SEL, and always updated in INTRFASTEXIT.

This solves an important issue we had until now: we couldn't handle the
faults generated by the "movw $val,%fs" instructions, because they were
deep into the kernel context. Now %fs can fault only in INTRFASTEXIT,
which is safe.

Note that it also fixes a bug I believe affected the kernel: on AMD CPUs,
setting %fs to zero does not flush the internal register state, and
therefore we could leak the %fs base address when context-switching. This
being said, I couldn't trigger the issue on the AMD cpu I have. Whatever,
it's fixed now, since we first set %fs to GUDATA32 - which does flush the
register state.

(maxv)

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

Improve our segregs model. Pass 1/3.

Right now, we are saving and restoring %ds/%es each time we enter/leave the
kernel. However, we let %fs/%gs live in the kernel space, and we rely on
the fact that when switching to an LWP, %fs/%gs are set right away (via
cpu_switchto or setregs).

It has two drawbacks: we are taking care of %ds/%es while they are
deprecated (useless) on 64bit LWPs, and we are restricting %fs/%gs while
they still have a meaning on 32bit LWPs.

Therefore, handle 32bit and 64bit LWPs differently:
* 64bit LWPs use fixed segregs, which are not taken care of.
* 32bit LWPs have dynamic segregs, always saved/restored.

For now, only %ds and %es are changed; %fs and %gs will be in the next
passes.

The trapframe is constructed as usual. In INTRFASTEXIT, we restore %ds/%es
depending on the %cs value. If %cs contains one of the two standard 64bit
selectors, don't do anything. Otherwise, restore everything.

When doing a context switch, just restore %ds/%es to their default values.
On a 32bit LWP they will be overwritten by INTRFASTEXIT; on a 64bit LWP
they won't be updated.

In the ACPI wakeup code, restore %ds/%es to the default 64bit user value.

(maxv)

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

Don't call tegra_pcie_reset_port for now - it makes tk1 re @ pci not work

(skrll)

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

fix l2tp panic when l2tp session id is changed (same as if_vlan.c:r1.104)

E.g. the following operation causes this panic.
    ====================
    # ifconfig l2tp0 create
    # ifconfig l2tp0 session 140 140
    # ifconfig l2tp1 create
    # ifconfig l2tp1 session 200 200
    # ifconfig l2tp1 session 300 300
    panic: kernel diagnostic assertion "new->ple_next == NULL" failed: file "/disk4/home/k-nakahara/repos/netbsd-src/sys/sys/pslist.h", line 118
    ====================

Pointed out by s-yamaguchi@IIJ, thanks.

XXX need pullup-8

(knakahara)

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

Always mask the 16 bits of the segregs in the trapframe. We don't zero-
extend the uint64_t's when building it, so we're leaking 48 bits of kernel
stack to userland.

Having said that, it appears that I unintentionally fixed most of this
issue in locore.S::rev1.127 - by building the frame with interrupts
disabled, we are implicitly guaranteeing that the structure doesn't get
overwritten by the kernel. Which means, we are leaking to userland data
that comes from userland anyway.

(still other places with this issue, but I'll fix them differently)

(maxv)

2017-10-19 09:32:01 UTC MAIN commitmail json YAML

Make sure we don't go farther with 32bit LWPs. There appears to be some
confusion in the code - in part introduced by myself -, and clearly this
place is not supposed to handle 32bit LWPs.

Right now we're returning EINVAL, but verily we would need to redirect
these calls to their netbsd32 counterparts.

(maxv)

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

fix vlan panic when vlan is re-configured without destroy.

E.g. the following operation causes this panic.
    ====================
    # ifconfig vlan0 create
    # ifconfig vlan0 vlan 1 vlanif ixg3
    # ifconfig vlan1 create
    # ifconfig vlan1 vlan 1 vlanif ixg2
    # ifconfig vlan1 -vlanif
    # ifconfig vlan1 vlan 1 vlanif ixg2

    panic: kernel diagnostic assertion "new->ple_next == NULL" failed: file "/git/netbsd-src/sys/sys/pslist.h", line 118
    ====================

Pointed out and tested by msaitoh@n.o, fixed by s-yamaguchi@IIJ, thanks.

XXX need pullup-8

(knakahara)

2017-10-19 06:29:16 UTC MAIN commitmail json YAML

Add the following bits in AMD Fn8000000a %edx features (SVM features):
PFThreshold (PAUSE filter threshold)
AVIC (AMD virtual interrupt controller)
V_VMSAVE_VMLOAD (virtualized VMSAVE and VMLOAD)
vGIF (virtualized GIF)

(msaitoh)

2017-10-19 05:52:57 UTC MAIN commitmail json YAML

Fix a bug that the TPH ST table is decoded even if it's not in the TPH
Requester extended capability structure.

(msaitoh)

2017-10-19 05:45:37 UTC MAIN commitmail json YAML

2017-10-19 05:39:22 UTC MAIN commitmail json YAML

KASSERT -> KASSERTMSG and while I'm here update a comment

(skrll)

2017-10-19 03:26:29 UTC MAIN commitmail json YAML

external/lgpl3/gmp build fail in configure phase with "ln -s J /etc/malloc.conf".

patch from pkgsrc/devel/gmp
  http://mail-index.netbsd.org/pkgsrc-changes/2017/06/15/msg158404.html

(nonaka)

2017-10-19 03:09:55 UTC MAIN commitmail json YAML

Update from Intel SDM:
0x55: Xeon Scalable (Skylake)
0x57: Xeon Phi [357]200 (Knights Landing)
0x66: Future Core (Cannon Lake)
0x85: Future Xeon Phi (Knights Mill)

(msaitoh)

2017-10-19 01:57:18 UTC MAIN commitmail json YAML

Re-factor the code that extracts status from exited jobs, avoiding
code duplication, and reducing the size of /bin/sh by a trivial amount.

NFCI.

This is being done now as there are two other changes forthcoming, both
of which benefit - one would result in even more code duplication without
this, the other might need to alter how this is done, and doing it after this
means there's just one place to change (if required).

(kre)

2017-10-19 01:57:15 UTC MAIN commitmail json YAML

Turn on D_MPSAFE flag of bpf_cdevsw that is already MP-safe

Pointed out by k-goda@IIJ

(ozaki-r)

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

Remove unnecessary Tn.

(wiz)

2017-10-18 17:12:42 UTC MAIN commitmail json YAML

If a branch is already there, use it and don't create a new one. This way
we can call mm_map_tree twice with neighboring regions.

(maxv)

2017-10-18 16:29:56 UTC MAIN commitmail json YAML

Group the sections into segments, and align to KERNALIGN only between
segments. Prerequisite for other changes. Unfortunately the code is not
very compact, but whatever.

(maxv)

2017-10-18 16:01:58 UTC MAIN commitmail json YAML

Match BUFFALO CEWL-1 (Sony UWA-BR100 WLAN)

(jmcneill)

2017-10-18 16:01:21 UTC MAIN commitmail json YAML

2017-10-18 16:00:53 UTC MAIN commitmail json YAML

Add Sony UWA-BR100 WLAN adapter

(jmcneill)

2017-10-18 12:55:14 UTC MAIN commitmail json YAML

do what freebsd does:
- when disabling an interrupt, disable it on the HT PIC as well
- when establishing an interrupt, don't enable it right away
- program IRQs 0-3 as level, like freebsd does
Now svwsata is almost usable. We still get an interrupt storm but it doesn't
eat up all CPU cycles anymore.

(macallan)

2017-10-18 10:43:32 UTC MAIN commitmail json YAML

Protect ec_multi* with mutex like other MP safe Ethernet drivers.
See if_ether.h rev. 1.66 and related stuff:
http://mail-index.netbsd.org/source-changes/2016/12/28/msg080289.html

(msaitoh)

2017-10-18 08:54:59 UTC MAIN commitmail json YAML

I have seen (way too often) uses of test(1) that are not defined to
actually work (but just happen to, today, and in some cases, even
that trusts to some luck.)

It has been recently pointed out to me that the man page (ie: this
file) doesn't give any real guidance to what is really acceptable,
and what is not.

The CAVEATS section does note that the grammar is ambiguous, but then
just says that test(1) implements what POSIX requires, and refers
readers to the relevant section of the POSIX standard for more details.
That is probably asking too much of the average reader...

So, add some extra information in the CAVEATS with what is defined to work,
and what should be avoided.  Not all of the POSIX rules are here, but this
might hopefully help script authors avoid some of the pitfalls.

(kre)

2017-10-18 08:38:35 UTC MAIN commitmail json YAML

add newlines to the debug messages

(jdolecek)

2017-10-18 03:38:32 UTC MAIN commitmail json YAML

Add Turbo Boost Max Technology 3.0 bit.

(msaitoh)

2017-10-17 21:11:36 UTC MAIN commitmail json YAML

Typo: s/processes/process's/ for possession

(pgoyette)

2017-10-17 19:23:42 UTC MAIN commitmail json YAML

2017-10-17 19:18:30 UTC MAIN commitmail json YAML

Move call to sofree() to end of sctp_inpcb_free() and re-aquire
softnet_lock.

Logic copied from in_pcb.c.

(rjs)

2017-10-17 18:52:51 UTC MAIN commitmail json YAML

reintroduce ATACH_IRQ_WAIT flag for attachments using wdcintr(), only
process the interrupt when the flag is set - this fixes spurious interrupt
during post-reset drive setup in wdc_ata_bio_start(), and wdc_atapi_start()

while those functions set WDCTL_IDS, this seems to be ignored by certain
(maybe all) PCI-IDE controllers; usually the implicit KERNEL_LOCK() would
prevent the interrupt anyway, but not when the start routine is started
from the atabus thread, which doesn't take it

fixes 'panic: wdc_ata_bio_intr: bad state' reported on current-users
by Chavdar Ivanov

(jdolecek)

2017-10-17 16:24:14 UTC MAIN commitmail json YAML

no need to clear DMA WAIT flag in mvsata_edma_handle(), it's not needed
by atabus layer

(jdolecek)