CVS commit: src/sys/dev/mii

2020-07-06 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Jul  7 06:59:22 UTC 2020

Modified Files:
src/sys/dev/mii: tlphy.c

Log Message:
"no media present" is intended case on tlphy(4), so don't use
aprint_error_dev().


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/dev/mii/tlphy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-06 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Jul  7 06:27:37 UTC 2020

Modified Files:
src/sys/dev/pci: if_tl.c if_tlp_pci.c if_tlregs.h if_tlvar.h

Log Message:
No functional change:

 - u_int32_t -> uint32_t
 - KNF.


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/sys/dev/pci/if_tl.c
cvs rdiff -u -r1.128 -r1.129 src/sys/dev/pci/if_tlp_pci.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/pci/if_tlregs.h
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/pci/if_tlvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2020-07-06 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Jul  7 03:38:49 UTC 2020

Modified Files:
src/sys/arch/algor/dev: mainbus.c
src/sys/arch/amiga/pci: em4k.c empb.c empbreg.h mppb.c p5pb.c
src/sys/arch/arc/include: pci_machdep.h
src/sys/arch/arc/pci: necpb.c
src/sys/arch/arm/broadcom: bcm53xx_pax.c
src/sys/arch/arm/fdt: pcihost_fdt.c
src/sys/arch/arm/gemini: gemini_pci.c
src/sys/arch/arm/imx: imx6_pcie.c
src/sys/arch/arm/imx/fdt: imx6_pcie.c
src/sys/arch/arm/ixp12x0: ixp12x0_pci.c
src/sys/arch/arm/nvidia: tegra_pcie.c
src/sys/arch/arm/s3c2xx0: s3c2800_pci.c
src/sys/arch/arm/xscale: becc_pci.c i80312_pci.c i80321_pci.c
ixp425_pci.c
src/sys/arch/bebox/bebox: mainbus.c
src/sys/arch/cobalt/dev: gt.c
src/sys/arch/cobalt/include: pci_machdep.h
src/sys/arch/evbarm/ifpga: ifpga.c
src/sys/arch/evbmips/gdium: mainbus.c
src/sys/arch/evbmips/loongson: mainbus.c
src/sys/arch/evbmips/malta/dev: mainbus.c
src/sys/arch/evbppc/walnut/pci: pchb.c
src/sys/arch/ibmnws/ibmnws: mainbus.c
src/sys/arch/mips/adm5120/dev: admpci.c
src/sys/arch/mips/alchemy/dev: aupci.c
src/sys/arch/mips/rmi: rmixl_pcie.c rmixl_pcix.c
src/sys/arch/mvmeppc/mvmeppc: mainbus.c
src/sys/arch/ofppc/pci: ofwpci.c
src/sys/arch/powerpc/booke/pci: pq3pci.c
src/sys/arch/powerpc/ibm4xx/pci: pchb.c
src/sys/arch/prep/prep: mainbus.c
src/sys/arch/sandpoint/sandpoint: mainbus.c
src/sys/arch/sgimips/gio: pci_gio.c
src/sys/arch/sgimips/include: pci_machdep.h
src/sys/arch/sgimips/mace: pci_mace.c
src/sys/arch/sh3/dev: shpcic.c
src/sys/dev/acpi: acpi_mcfg.c
src/sys/dev/ic: cpc700.c
src/sys/dev/marvell: gtpci.c mvpex.c
src/sys/dev/pci: pciconf.c pciconf.h

Log Message:
Overhaul the interface to pci_configure_bus():
- Don't expose how PCI bus configuration resource management is implemented.
  Provide a new resource provider API:

  ==> pciconf_resource_init() -- Initialize a PCI configuration resources
  container.
  ==> pciconf_resource_add() -- Add a PCI configuration resource to the
  container (I/O, MEM, or prefetchable MEM).  Multiple resources of
  each type may be added.
  ==> pciconf_resource_fini() -- Tear down the PCI configurtation resources
  container once the bus has been configured.

  This is much easier to use than the previous method of providing an
  extent map for each kind of resource, and works better for e.g. ACPI
  platforms that provide potentially multiple PCI resources in tables
  provided by firmware.

- Re-implement PCI configuration resource management using vmem arenas,
  rather than extent maps.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/algor/dev/mainbus.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/amiga/pci/em4k.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/amiga/pci/empb.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/amiga/pci/empbreg.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/amiga/pci/mppb.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/amiga/pci/p5pb.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/arc/include/pci_machdep.h
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/arc/pci/necpb.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/arm/broadcom/bcm53xx_pax.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/fdt/pcihost_fdt.c
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/arm/gemini/gemini_pci.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/imx/imx6_pcie.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/imx/fdt/imx6_pcie.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/ixp12x0/ixp12x0_pci.c
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/arm/nvidia/tegra_pcie.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/arm/s3c2xx0/s3c2800_pci.c
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/arm/xscale/becc_pci.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/arm/xscale/i80312_pci.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arm/xscale/i80321_pci.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/arm/xscale/ixp425_pci.c
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/bebox/bebox/mainbus.c
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/cobalt/dev/gt.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/cobalt/include/pci_machdep.h
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/evbarm/ifpga/ifpga.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/evbmips/gdium/mainbus.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbmips/loongson/mainbus.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/evbmips/malta/dev/mainbus.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/evbppc/walnut/pci/pchb.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/ibmnws/ibmnws/mainbus.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/mips/adm5120/dev/admpci.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/mips/alchemy/dev/aupci.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/mips/rmi/rmixl_pcie.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/mips/rmi/rmixl_pcix.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/mvme

CVS commit: src/sys/sys

2020-07-06 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Jul  7 03:23:33 UTC 2020

Modified Files:
src/sys/sys: vmem_impl.h

Log Message:
Explicitly include  here; don't rely on it being included
by the includer.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/sys/vmem_impl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/macppc/conf

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jul  7 02:39:59 UTC 2020

Modified Files:
src/sys/arch/macppc/conf: POWERMAC_G5_11_2

Log Message:
Enable COPY_SYMTAB in case of directly booted from Open Firmware
with ofwboot being skipped.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/macppc/conf/POWERMAC_G5_11_2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/macppc/conf

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jul  7 02:37:27 UTC 2020

Modified Files:
src/sys/arch/macppc/conf: POWERMAC_G5_11_2

Log Message:
Sync wscons colors with GENERIC; now it works fine!


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/macppc/conf/POWERMAC_G5_11_2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jul  7 02:33:55 UTC 2020

Modified Files:
src/sys/arch/macppc/include: autoconf.h
src/sys/arch/macppc/macppc: machdep.c
src/sys/arch/ofppc/include: autoconf.h
src/sys/arch/powerpc/oea: ofw_rascons.c ofwoea_machdep.c

Log Message:
It turned out that using some Open Firmware routines causes the system
freeze after calling OF_quiesce().

This is why setting color palette crash the system for some Power Mac G5
models, like PowerMac11,2.

Therefore, stop using color-palette and backlight callbacks for genfb(4)
in this case.

Also, postpone OF_quiesce() after rascons_init_rasops(), and initialize
color palette there if OF is going to be quiesced and color depth is 8.

Now, color palette for wscons is initialized correctly for PowerMac11,2.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/macppc/include/autoconf.h
cvs rdiff -u -r1.169 -r1.170 src/sys/arch/macppc/macppc/machdep.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/ofppc/include/autoconf.h
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/powerpc/oea/ofw_rascons.c
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/powerpc/oea/ofwoea_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/oea

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jul  7 02:10:21 UTC 2020

Modified Files:
src/sys/arch/powerpc/oea: ofw_rascons.c

Log Message:
Fix boot failure for PowerMac11,2 when ``auto-boot?'' is true.

For some machines like PowerMac11,2, Open Firmware does not correctly
initialize console-related variables, like font-adr and line#, when
``auto-boot?'' is true; -1 is returned instead of correct values.

Fall back to wsfont embedded in kernel in this case. Also, do not use
line# if it is negative.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/powerpc/oea/ofw_rascons.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/crypto/external/bsd/openssl/dist/crypto

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jul  7 01:47:47 UTC 2020

Modified Files:
src/crypto/external/bsd/openssl/dist/crypto: ppccap.c

Log Message:
Part of PR port-powerpc/55425
openssl fails on FPU emulation for powerpc

When machdep.fpu_present sysctl variable can be retrieved, and
its value is zero, avoid using FPU arithmetic.

FPU is absent and emulated by kernel in that case, and calculation
results are not correct in bit-to-bit precision.

This behavior should be useful even if we could fix FPU emulation;
it is much faster to skip FPU arithmetic in general, rather than
relying upon emulation by kernel via illegal instruction handler.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 \
src/crypto/external/bsd/openssl/dist/crypto/ppccap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jul  7 01:39:23 UTC 2020

Modified Files:
src/sys/arch/powerpc/include: cpu.h
src/sys/arch/powerpc/powerpc: powerpc_machdep.c

Log Message:
Part of PR port-powerpc/55425
openssl fails on FPU emulation for powerpc

Provide machdep.fpu_present sysctl variable like other ports.

Userland can get informed that FPU is absent and emulated in software
(and calculation results may not be correct in bit-to-bit precision).

This variable should be useful even if we could fix FPU emulation;
it is much faster to skip FPU arithmetic in general, rather than
relying upon emulation by kernel via illegal instruction handler.


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/sys/arch/powerpc/include/cpu.h
cvs rdiff -u -r1.78 -r1.79 src/sys/arch/powerpc/powerpc/powerpc_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jul  7 00:59:30 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: e500_tlb.c

Log Message:
Revert previous; tmpfs should be fixed instead.

Pointed out by thorpej@, thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/powerpc/booke/e500_tlb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jul  7 00:49:09 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: trap.c

Log Message:
For booke, fix signo and other siginfo returned for userland by
syncing with oea and ibm4xx.

Now, tests/kernel/t_trapsignal:bus_handle and friends pass on booke.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/powerpc/booke/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jul  7 00:41:32 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: trap.c

Log Message:
Do not clear pcb_onfault for error path of setfault().
This is caller's responsibility, and all the callers actually do so.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/powerpc/booke/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jul  7 00:37:46 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: trap.c

Log Message:
For booke, restore callee saved registers when recovery for page fault
fails for kernel.

OOPS! How on the earth we had overlooked this error so far...


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/powerpc/booke/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jul  7 00:28:31 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: e500_tlb.c

Log Message:
Fix kernel panic due to tmpfs.

pmap for booke assumes that the ``va'' argument for pmap_kenter_pa(9) is
page-aligned. However, by recent changes, tmpfs became to use ``va'' with
page offset via ubc_uiomove(9). So, truncate it to page boundary.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/powerpc/booke/e500_tlb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-07-06 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jul  6 23:33:38 UTC 2020

Modified Files:
src/lib/libcurses: get_wch.c getch.c

Log Message:
Pads are not to be automatically refreshed on input.

X/Open Curses says in the documentation for newpad():

  Automatic refreshes of pads (e.g., from scrolling or echoing of
  input) do not occur.

And in the documentation for get*():

  If the current or specified window is not a pad, and it has been
  moved or modified since the last refresh operation, then it will be
  refreshed before another character is read.

>From Michael Forney in PR lib/55457


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libcurses/get_wch.c
cvs rdiff -u -r1.74 -r1.75 src/lib/libcurses/getch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/libexec/httpd

2020-07-06 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Jul  6 23:31:36 UTC 2020

Modified Files:
src/libexec/httpd: bozohttpd.8 bozohttpd.c bozohttpd.h dir-index-bozo.c
main.c

Log Message:
Add -R flag to specify a README file to add at the bottom of directory
autoindex listings.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/libexec/httpd/bozohttpd.8
cvs rdiff -u -r1.114 -r1.115 src/libexec/httpd/bozohttpd.c
cvs rdiff -u -r1.60 -r1.61 src/libexec/httpd/bozohttpd.h
cvs rdiff -u -r1.32 -r1.33 src/libexec/httpd/dir-index-bozo.c
cvs rdiff -u -r1.22 -r1.23 src/libexec/httpd/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-07-06 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jul  6 22:46:50 UTC 2020

Modified Files:
src/lib/libcurses: ins_wch.c ins_wstr.c insch.c insstr.c

Log Message:
mvwins*(WINDOW *win, ...) functions - call wins* on win, not stdscr.
>From Naman Jain in PR lib/55460.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libcurses/ins_wch.c \
src/lib/libcurses/ins_wstr.c
cvs rdiff -u -r1.25 -r1.26 src/lib/libcurses/insch.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libcurses/insstr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 22:32:22 UTC 2020

Modified Files:
src/sys/sys: lock.h

Log Message:
Include missing opt_lockdebug.h.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/sys/lock.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/wsfont

2020-07-06 Thread Frederic Cambus
Module Name:src
Committed By:   fcambus
Date:   Mon Jul  6 20:19:14 UTC 2020

Modified Files:
src/sys/dev/wsfont: spleen12x24.h spleen16x32.h spleen32x64.h
spleen5x8.h spleen8x16.h

Log Message:
Use C99 initializers in wsdisplay_font struct definitions for
Spleen kernel fonts.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/wsfont/spleen12x24.h \
src/sys/dev/wsfont/spleen32x64.h src/sys/dev/wsfont/spleen5x8.h
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/wsfont/spleen16x32.h
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/wsfont/spleen8x16.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2020-07-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul  6 18:49:12 UTC 2020

Modified Files:
src/sys/netinet: tcp_input.c

Log Message:
- always set both ip and ip6, otherwise a kernel assertion can be triggered
- move alignment early so that we do less work


To generate a diff of this commit:
cvs rdiff -u -r1.417 -r1.418 src/sys/netinet/tcp_input.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists

2020-07-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul  6 18:47:02 UTC 2020

Modified Files:
src/distrib/sets/lists/debug: mi
src/distrib/sets/lists/tests: mi

Log Message:
new mapped test.


To generate a diff of this commit:
cvs rdiff -u -r1.323 -r1.324 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.872 -r1.873 src/distrib/sets/lists/tests/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/net/net

2020-07-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul  6 18:45:26 UTC 2020

Modified Files:
src/tests/net/net: Makefile
Added Files:
src/tests/net/net: t_mapped.c

Log Message:
add a test for v4 mapped addresses


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/tests/net/net/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/net/net/t_mapped.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2020-07-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Jul  6 18:30:48 UTC 2020

Modified Files:
src/sys/arch/x86/x86: fpu.c

Log Message:
Restore the lwp's fpu state, not zeros, and leave with fpu enabled.

We need to clear the fpu state anyway because it is likely to contain
secrets at this point.  Previously we set it to zeros, and then issued
stts to disable the fpu in order to detect the mistake of further use
of the fpu in kernel.  But there must be some path I haven't identified
yet that doesn't do fpu_handle_deferred, leading to fpudna panics.

In any case, there's no benefit to restoring the fpu state twice
(once with zeros and once with the real data).  The downside is,
although this avoids spurious fpudna traps, using fpu_kern_enter in a
softint has the side effect that -- until the next userland context
switch triggering stts -- we no longer detect misuse of fpu in the
kernel in that lwp.  This will serve for now, but we should find
another way to issue clts/stts judiciously to detect such misuse.

May improve the continued symptoms of
https://mail-index.netbsd.org/current-users/2020/07/02/msg039051.html
although may not fix everything.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/arch/x86/x86/fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/net/net

2020-07-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul  6 16:24:06 UTC 2020

Modified Files:
src/tests/net/net: t_unix.c

Log Message:
don't open the socket twice.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/tests/net/net/t_unix.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/include

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 13:20:55 UTC 2020

Modified Files:
src/sys/arch/powerpc/include: cpu.h

Log Message:
Use (CI_SAVEMAX*CPUSAVE_LEN) as CPUSAVE_SIZE for MODULAR || _MODULE,
since it exceeds 128 (256 for now).

XXX
We should use CTASSERT here, but it conflicts with genassym...


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/sys/arch/powerpc/include/cpu.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/ibm4xx

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 13:10:19 UTC 2020

Modified Files:
src/sys/arch/powerpc/ibm4xx: ibm4xx_machdep.c

Log Message:
Set cpu_psluserset, cpu_pslusermod, cpu_pslusermask for MODULAR.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 11:24:57 UTC 2020

Modified Files:
src/sys/arch/powerpc/powerpc: trap.c

Log Message:
Stop using DDBX which is defined nowhere.


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/sys/arch/powerpc/powerpc/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 11:23:59 UTC 2020

Modified Files:
src/sys/arch/powerpc/powerpc: trap.c

Log Message:
This file is not used for ibm4xx.


To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/sys/arch/powerpc/powerpc/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 11:09:15 UTC 2020

Modified Files:
src/sys/arch/powerpc/powerpc: trap_subr.S

Log Message:
Include required opt_*.h for sure.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/arch/powerpc/powerpc/trap_subr.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 11:08:22 UTC 2020

Modified Files:
src/sys/arch/powerpc/powerpc: trap.c

Log Message:
- Drop unused opt_multiprocessor.h.
- Include missing opt_ppcarch.h.


To generate a diff of this commit:
cvs rdiff -u -r1.158 -r1.159 src/sys/arch/powerpc/powerpc/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 11:07:39 UTC 2020

Modified Files:
src/sys/arch/powerpc/powerpc: syscall.c

Log Message:
Drop unused opt_altivec.h and opt_multiprocessor.h.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/powerpc/powerpc/syscall.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 11:06:52 UTC 2020

Modified Files:
src/sys/arch/powerpc/powerpc: locore_subr.S

Log Message:
Drop unused opt_lockdebug.h.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/powerpc/powerpc/locore_subr.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 11:05:54 UTC 2020

Modified Files:
src/sys/arch/powerpc/powerpc: kgdb_machdep.c

Log Message:
- Drop unused opt_ddb.h.
- Include missing opt_ppcarch.h.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/powerpc/powerpc/kgdb_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 11:05:05 UTC 2020

Modified Files:
src/sys/arch/powerpc/powerpc: core_machdep.c

Log Message:
Drop unused opt_ppcarch.h.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/powerpc/powerpc/core_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/pic

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 11:02:44 UTC 2020

Modified Files:
src/sys/arch/powerpc/pic: openpic_common.c pic_distopenpic.c

Log Message:
Drop unused opt_interrupt.h.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/powerpc/pic/openpic_common.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/powerpc/pic/pic_distopenpic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/pic

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 11:01:24 UTC 2020

Modified Files:
src/sys/arch/powerpc/pic: ipi.c

Log Message:
Drop unused opt_altivec.h, opt_interrupt.h, opt_ipi.h, and opt_pic.h.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/powerpc/pic/ipi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/oea

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:59:37 UTC 2020

Modified Files:
src/sys/arch/powerpc/oea: ofwoea_machdep.c

Log Message:
- Drop unused opt_compat_netbsd.h.
- Include missing opt_multiprocessor.h.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/powerpc/oea/ofwoea_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/oea

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:58:06 UTC 2020

Modified Files:
src/sys/arch/powerpc/oea: cpu_speedctl.c

Log Message:
Drop unused opt_ppcparam.h.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/powerpc/oea/cpu_speedctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/include/oea

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:57:03 UTC 2020

Modified Files:
src/sys/arch/powerpc/include/oea: pmap.h

Log Message:
Include missing opt_modular.h so that struct vm_page_md is compatible to
that for booke.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/powerpc/include/oea/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:54:56 UTC 2020

Modified Files:
src/sys/arch/powerpc/include/booke: cpuvar.h
src/sys/arch/powerpc/pic: pic_openpic.c

Log Message:
Include missing opt_multiprocessor.h.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/powerpc/include/booke/cpuvar.h
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/powerpc/pic/pic_openpic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:52:12 UTC 2020

Modified Files:
src/sys/arch/powerpc/include: fpu.h
src/sys/arch/powerpc/oea: altivec.c
src/sys/arch/powerpc/powerpc: fpu.c vm_machdep.c

Log Message:
Drop unused opt_multiprocessor.h includes.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/powerpc/include/fpu.h
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/powerpc/oea/altivec.c
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/powerpc/powerpc/fpu.c
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/powerpc/powerpc/vm_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/include

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:50:32 UTC 2020

Modified Files:
src/sys/arch/powerpc/include: cpu.h

Log Message:
Drop unused opt_lockdebug.h.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/arch/powerpc/include/cpu.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/ibm4xx/pci

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:49:41 UTC 2020

Modified Files:
src/sys/arch/powerpc/ibm4xx/pci: pci_machdep.c

Log Message:
Include missing opt_pci.h


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/powerpc/ibm4xx/pci/pci_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/ibm4xx/openbios

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:48:54 UTC 2020

Modified Files:
src/sys/arch/powerpc/ibm4xx/openbios: locore.S

Log Message:
Do not silently #undef PPC_4XX_NOCACHE, which results in terrible confusion.
Raise #error instead.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/powerpc/ibm4xx/openbios/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/ibm4xx/openbios

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:44:38 UTC 2020

Modified Files:
src/sys/arch/powerpc/ibm4xx/openbios: locore.S

Log Message:
Drop unused opt_lockdebug.h, opt_multiprocessor.h, and opt_ppcarch.h.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/powerpc/ibm4xx/openbios/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/ibm4xx

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:42:21 UTC 2020

Modified Files:
src/sys/arch/powerpc/ibm4xx: trap_subr.S

Log Message:
Include required opt_*.h for sure.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/powerpc/ibm4xx/trap_subr.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/ibm4xx

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:41:43 UTC 2020

Modified Files:
src/sys/arch/powerpc/ibm4xx: trap.c

Log Message:
- Drop unused opt_altivec.h.
- Include missing opt_ppcarch.h.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/arch/powerpc/ibm4xx/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/ibm4xx

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:40:21 UTC 2020

Modified Files:
src/sys/arch/powerpc/ibm4xx: pmap.c

Log Message:
Include missing opt_ddb.h.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/arch/powerpc/ibm4xx/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbppc/conf

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:38:46 UTC 2020

Modified Files:
src/sys/arch/evbppc/conf: files.explora

Log Message:
Now, sys/arch/powerpc/ibm4xx/pic_uic.c requires opt_uic.h.

XXX
Switch to powerpc/conf/files.ibm4xx.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/evbppc/conf/files.explora

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/ibm4xx

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:35:29 UTC 2020

Modified Files:
src/sys/arch/powerpc/ibm4xx: pic_uic.c

Log Message:
Include missing opt_ppcarch.h and opt_uic.h.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/powerpc/ibm4xx/pic_uic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:34:23 UTC 2020

Modified Files:
src/sys/arch/powerpc/ibm4xx: ibm4xx_machdep.c
src/sys/arch/powerpc/oea: oea_machdep.c

Log Message:
Drop unused opt_compat_netbsd.h include.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c
cvs rdiff -u -r1.80 -r1.81 src/sys/arch/powerpc/oea/oea_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/sbin/ifconfig

2020-07-06 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jul  6 10:35:01 UTC 2020

Modified Files:
src/tests/sbin/ifconfig: t_repeated_link_addr.sh

Log Message:
Remove the expected timeout; there is something more sinister behind the
timeouts seen on the Qemu/evbarm-aarch64 runs.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/sbin/ifconfig/t_repeated_link_addr.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/usr.sbin

2020-07-06 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jul  6 10:32:18 UTC 2020

Modified Files:
src/tests/usr.sbin/execsnoop: t_execsnoop.sh
src/tests/usr.sbin/opensnoop: t_opensnoop.sh

Log Message:
Sleep more.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.sbin/execsnoop/t_execsnoop.sh
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.sbin/opensnoop/t_opensnoop.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:31:24 UTC 2020

Modified Files:
src/sys/arch/powerpc/fpu: fpu_emu.c
src/sys/arch/powerpc/ibm4xx: clock.c
src/sys/arch/powerpc/include: cpu_counter.h pio.h spr.h
src/sys/arch/powerpc/include/oea: bat.h hid.h spr.h
src/sys/arch/powerpc/oea: cpu_subr.c ofw_subr.S
src/sys/arch/powerpc/pic: intr.c
src/sys/arch/powerpc/powerpc: bus_dma.c bus_space.c clock.c db_disasm.c
fixup.c pio_subr.S pmap_subr.c

Log Message:
Include missing opt_ppcarch.h.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/powerpc/fpu/fpu_emu.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/powerpc/ibm4xx/clock.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/powerpc/include/cpu_counter.h \
src/sys/arch/powerpc/include/pio.h
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/powerpc/include/spr.h
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/powerpc/include/oea/bat.h
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/powerpc/include/oea/hid.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/powerpc/include/oea/spr.h
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/powerpc/oea/cpu_subr.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/powerpc/oea/ofw_subr.S
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/powerpc/pic/intr.c
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/powerpc/powerpc/bus_dma.c
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/powerpc/powerpc/bus_space.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/powerpc/powerpc/clock.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/powerpc/powerpc/db_disasm.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/powerpc/powerpc/fixup.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/powerpc/powerpc/pio_subr.S
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/powerpc/powerpc/pmap_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke/dev

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:22:44 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke/dev: pq3cfi.c pq3nandfcm.c

Log Message:
Drop unused opt_flash.h.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/powerpc/booke/dev/pq3cfi.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/powerpc/booke/dev/pq3nandfcm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/nand

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:22:07 UTC 2020

Modified Files:
src/sys/dev/nand: nand.h

Log Message:
Include opt_nand.h for NAND_DEBUG.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/nand/nand.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:16:12 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: trap_subr.S

Log Message:
Include required opt_*.h for sure.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/powerpc/booke/trap_subr.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:13:02 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: trap.c

Log Message:
Include missing opt_altivec.h for PPC_HAVE_SPE.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/powerpc/booke/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:12:04 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: e500_tlb.c

Log Message:
Include missing opt_multiprocessor.h and opt_pmap.h.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/powerpc/booke/e500_tlb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:11:14 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: e500_intr.c

Log Message:
Drop unused opt_ddb.h.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/powerpc/booke/e500_intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:09:23 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: booke_pmap.c

Log Message:
Include missing opt_multiprocessor.h and opt_pmap.h.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/powerpc/booke/booke_pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 10:08:16 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: booke_machdep.c

Log Message:
Include missing ksyms.h, opt_ddb.h, and opt_multiprocessor.h.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/powerpc/booke/booke_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 09:34:18 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: booke_cache.c booke_machdep.c booke_pmap.c
booke_stubs.c copyin.c copyout.c e500_intr.c e500_tlb.c kcopy.c
spe.c spe_subr.S trap.c
src/sys/arch/powerpc/booke/dev: cpunode.c e500wdog.c pq3cfi.c pq3ddrc.c
pq3diic.c pq3duart.c pq3ehci.c pq3etsec.c pq3gpio.c pq3nandfcm.c
pq3obio.c
src/sys/arch/powerpc/booke/pci: pq3pci.c
src/sys/arch/powerpc/fpu: fpu_emu.c
src/sys/arch/powerpc/ibm4xx: ibm4xx_machdep.c pic_uic.c trap.c
src/sys/arch/powerpc/ibm4xx/dev: com_opb.c emacreg.h if_emac.c opb.c
plb.c rgmii.c
src/sys/arch/powerpc/ibm4xx/openbios: locore.S
src/sys/arch/powerpc/ibm4xx/pci: pchb.c
src/sys/arch/powerpc/include: aout_machdep.h bus_defs.h db_machdep.h
fpu.h frame.h param.h psl.h reloc.h signal.h trap.h userret.h
src/sys/arch/powerpc/include/booke: e500var.h pmap.h
src/sys/arch/powerpc/include/oea: bat.h
src/sys/arch/powerpc/marvell: marvell_intr.h
src/sys/arch/powerpc/oea: altivec.c altivec_subr.S cpu_speedctl.c
cpu_subr.c genassym.cf oea_machdep.c ofw_consinit.c
ofwoea_machdep.c pmap.c pmap_kernel.c prep_machdep.c
src/sys/arch/powerpc/pci: pchb.c pci_machdep_common.c pci_module.c
pcib.c pciconf_ofmethod.c
src/sys/arch/powerpc/pic: intr.c ipi.c ipi_openpic.c openpic_common.c
pic_distopenpic.c pic_mpcsoc.c pic_openpic.c
src/sys/arch/powerpc/powerpc: bus_dma.c bus_space.c compat_16_machdep.c
db_interface.c db_trace.c fixup.c fpu.c intr_stubs.c kgdb_machdep.c
linux_syscall.c lock_stubs.S locore_subr.S ofwreal.S openfirm.c
pmap_subr.c powerpc_machdep.c process_machdep.c setfault.S
sig_machdep.c syscall.c trap.c trap_subr.S vm_machdep.c

Log Message:
Style and cosmetic changes. No binary changes intended.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/powerpc/booke/booke_cache.c \
src/sys/arch/powerpc/booke/spe_subr.S
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/powerpc/booke/booke_machdep.c
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/powerpc/booke/booke_pmap.c \
src/sys/arch/powerpc/booke/trap.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/powerpc/booke/booke_stubs.c \
src/sys/arch/powerpc/booke/spe.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/powerpc/booke/copyin.c \
src/sys/arch/powerpc/booke/copyout.c
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/powerpc/booke/e500_intr.c
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/powerpc/booke/e500_tlb.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/powerpc/booke/kcopy.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/powerpc/booke/dev/cpunode.c \
src/sys/arch/powerpc/booke/dev/pq3cfi.c \
src/sys/arch/powerpc/booke/dev/pq3duart.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/powerpc/booke/dev/e500wdog.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/powerpc/booke/dev/pq3ddrc.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/powerpc/booke/dev/pq3diic.c \
src/sys/arch/powerpc/booke/dev/pq3obio.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/powerpc/booke/dev/pq3ehci.c
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/powerpc/booke/dev/pq3etsec.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/powerpc/booke/dev/pq3gpio.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/powerpc/booke/dev/pq3nandfcm.c
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/powerpc/booke/pci/pq3pci.c
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/powerpc/fpu/fpu_emu.c
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/powerpc/ibm4xx/pic_uic.c
cvs rdiff -u -r1.81 -r1.82 src/sys/arch/powerpc/ibm4xx/trap.c
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/powerpc/ibm4xx/dev/com_opb.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/powerpc/ibm4xx/dev/emacreg.h
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/powerpc/ibm4xx/dev/if_emac.c
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/powerpc/ibm4xx/dev/opb.c
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/powerpc/ibm4xx/dev/plb.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/powerpc/ibm4xx/dev/rgmii.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/powerpc/ibm4xx/openbios/locore.S
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/powerpc/ibm4xx/pci/pchb.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/powerpc/include/aout_machdep.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/powerpc/include/bus_defs.h
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/powerpc/include/db_machdep.h
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/powerpc/include/fpu.h
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/powerpc/include/frame.h
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/powerpc/include/param.h
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/powerpc/include/psl.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/powerpc/include/reloc.h
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/powerpc/include/signal.h
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/powerpc/include/trap.h
cvs rdiff -u -r1.30 -r1.31 src/sy

CVS commit: src/sys/arch/powerpc/include/oea

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 09:10:02 UTC 2020

Modified Files:
src/sys/arch/powerpc/include/oea: pmap.h

Log Message:
LKM was gone.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/powerpc/include/oea/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 08:30:10 UTC 2020

Modified Files:
src/sys/arch/powerpc/powerpc: db_trace.c

Log Message:
db_stack_trace_print():
For ibm4xx, show fault address in dear register also for EXC_DTMISS.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/arch/powerpc/powerpc/db_trace.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/include

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 08:26:10 UTC 2020

Modified Files:
src/sys/arch/powerpc/include: vmparam.h

Log Message:
Correct #ifdef; _MODULE not _MODULAR here.

Now __HAVE_PMAP_PHYSSEG is defined correctly for modules, which was
missing accidentally.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/powerpc/include/vmparam.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/include

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 08:20:40 UTC 2020

Modified Files:
src/sys/arch/powerpc/include: asm.h

Log Message:
Consistently use _LP64 instead of __LP64__, although both are defined for
powerpc64.

No binary changes intended.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/powerpc/include/asm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/include

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 08:18:57 UTC 2020

Modified Files:
src/sys/arch/powerpc/include: frame.h

Log Message:
LKM was gone. _KERNEL is always defined for module.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/powerpc/include/frame.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/include

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 08:17:01 UTC 2020

Modified Files:
src/sys/arch/powerpc/include: pmap.h
src/sys/arch/powerpc/include/oea: pte.h

Log Message:
Fix comments. No binary changes.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/powerpc/include/pmap.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/powerpc/include/oea/pte.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/include/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 08:14:54 UTC 2020

Modified Files:
src/sys/arch/powerpc/include/booke: e500var.h

Log Message:
e500_cpunode_submatch() should be declared regardless of _KERNEL_OPT.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/powerpc/include/booke/e500var.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/booke

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 08:13:00 UTC 2020

Modified Files:
src/sys/arch/powerpc/booke: e500_intr.c

Log Message:
XXX
Skip KASSERT which fires when !__HAVE_FAST_SOFTINTS. Just for debug.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/arch/powerpc/booke/e500_intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/powerpc

2020-07-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jul  6 08:10:57 UTC 2020

Modified Files:
src/sys/arch/powerpc/powerpc: intr_stubs.c

Log Message:
Make this compile without __HAVE_FAST_SOFTINTS for debug.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/powerpc/powerpc/intr_stubs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-06 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jul  6 07:51:09 UTC 2020

Modified Files:
src/sys/dev/pci: if_wm.c

Log Message:
 Fix a bug that the WMREG_EEARBC_I210 register is incorrectly set if the system
uses iNVM.


To generate a diff of this commit:
cvs rdiff -u -r1.679 -r1.680 src/sys/dev/pci/if_wm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/arm/arm32

2020-07-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Jul  6 07:36:14 UTC 2020

Modified Files:
src/sys/arch/arm/arm32: cpuswitch.S

Log Message:
Whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/arch/arm/arm32/cpuswitch.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.