Re: CVS commit: src/sys/dev/pci

2019-01-27 Thread Frank Kardel

Hi!

Great, that did it - no more immediately visible device deficiencies.

com* work

wm1 works

radeon still spits errors

[10.941427] kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset

 the VCPU!!!
[12.002002] kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset

 the VCPU!!!

graphics seem to work though with little flickering in glx windows.

So except for the radeon startup (and possible minor flickering in glx 
windows) my system seems to work now when booted via UEFI.


Maybe someone with more insight in the radeon reset code can give hints 
what could be missing.


So the system looks usable now just leaving the radeon UVD reset issue 
as final topic.


Thanks!

Frank


The left-over pci setup differences are:

--- lspci-csm-201901272019-01-27 14:42:57.454117956 +0100
+++ lspci-uefi-20190127.12019-01-28 07:10:47.857701110 +0100
@@ -4,7 +4,7 @@

 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1451
 Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1451
-Flags: bus master, fast devsel, latency 0, IRQ 255
+Flags: fast devsel, IRQ 255
 Capabilities: [40] Secure device 
 Capabilities: [64] MSI: Enable- Count=1/4 Maskable- 64bit+
 Capabilities: [74] HyperTransport: MSI Mapping Enable+ Fixed+
@@ -339,7 +339,7 @@

 21:00.0 Serial controller: MosChip Semiconductor Technology Ltd. 
4-Port PCIe Serial Adapter (prog-if 02 [16550])

 Subsystem: Device a000:1000
-Flags: bus master, fast devsel, latency 0, IRQ 11
+Flags: fast devsel, IRQ 11
 I/O ports at b030
 Memory at fcc07000 (32-bit, non-prefetchable)
 Memory at fcc06000 (32-bit, non-prefetchable)
@@ -351,7 +351,7 @@

 21:00.1 Serial controller: MosChip Semiconductor Technology Ltd. 
4-Port PCIe Serial Adapter (prog-if 02 [16550])

 Subsystem: Device a000:1000
-Flags: bus master, fast devsel, latency 0, IRQ 11
+Flags: fast devsel, IRQ 11
 I/O ports at b020
 Memory at fcc05000 (32-bit, non-prefetchable)
 Memory at fcc04000 (32-bit, non-prefetchable)
@@ -362,7 +362,7 @@

 21:00.2 Serial controller: MosChip Semiconductor Technology Ltd. 
4-Port PCIe Serial Adapter (prog-if 02 [16550])

 Subsystem: Device a000:1000
-Flags: bus master, fast devsel, latency 0, IRQ 10
+Flags: fast devsel, IRQ 10
 I/O ports at b010
 Memory at fcc03000 (32-bit, non-prefetchable)
 Memory at fcc02000 (32-bit, non-prefetchable)
@@ -373,7 +373,7 @@

 21:00.3 Serial controller: MosChip Semiconductor Technology Ltd. 
4-Port PCIe Serial Adapter (prog-if 02 [16550])

 Subsystem: Device a000:1000
-Flags: bus master, fast devsel, latency 0, IRQ 5
+Flags: fast devsel, IRQ 5
 I/O ports at b000
 Memory at fcc01000 (32-bit, non-prefetchable)
 Memory at fcc0 (32-bit, non-prefetchable)
@@ -384,7 +384,7 @@

 24:00.0 System peripheral: Meinberg Funkuhren GPS180PEX GPS Receiver 
(PCI Express) (rev 01)

 Subsystem: Meinberg Funkuhren GPS180PEX GPS Receiver (PCI Express)
-Flags: bus master, fast devsel, latency 0, IRQ 5
+Flags: fast devsel, IRQ 5
 I/O ports at a000
 Memory at fcb0 (32-bit, non-prefetchable)
 Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
@@ -465,7 +465,7 @@

 29:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, 
Inc. [AMD] Device 145a

 Subsystem: Advanced Micro Devices, Inc. [AMD] Device 145a
-Flags: bus master, fast devsel, latency 0, IRQ 255
+Flags: fast devsel, IRQ 255
 Capabilities: [48] Vendor Specific Information: Len=08 
 Capabilities: [50] Power Management version 3
 Capabilities: [64] Express Endpoint, MSI 00
@@ -476,9 +476,9 @@

 29:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] 
Device 1456

 Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1456
-Flags: bus master, fast devsel, latency 0, IRQ 11
-Memory at fd10 (32-bit, non-prefetchable)
-Memory at fd20 (32-bit, non-prefetchable)
+Flags: fast devsel, IRQ 11
+Memory at fd10 (32-bit, non-prefetchable) [disabled]
+Memory at fd20 (32-bit, non-prefetchable) [disabled]
 Capabilities: [48] Vendor Specific Information: Len=08 
 Capabilities: [50] Power Management version 3
 Capabilities: [64] Express Endpoint, MSI 00
@@ -502,7 +502,7 @@

 2a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, 
Inc. [AMD] Device 1455

 Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1455
-Flags: bus master, fast devsel, latency 0, IRQ 255
+Flags: fast devsel, IRQ 255
 Capabilities: [48] Vendor Specific Information: Len=08 
 Capabilities: [50] Power Management version 3
 Capabilities: [64] Express Endpoint, MSI 00



On 01/28/19 05:11, Masanobu SAITOH wrote:

Hi.

On 2019/01/28 4:05, Frank

Re: CVS commit: src/sys/dev/pci

2019-01-27 Thread Jason Thorpe



> On Jan 28, 2019, at 8:11 AM, Masanobu SAITOH  wrote:
> 
> On 2019/01/28 15:07, Jason Thorpe wrote:
>> Doesn’t it seem a little dangerous to just blindly enable?
> 
> You mean it should be enable only when the secondary bridge is configured
> correctly?
> 
> Both FreeBSD and OpenBSD blindly enabled it. One of the difference between
> NetBSD and others is that they configure unconfigured bridge.

Right, if the address decoders aren't programmed properly, it seems like you 
could get into all sorts of trouble.

I really feel like the correct way to solve the problem is to fully configure 
the bus using information from ACPI.

-- thorpej



Re: CVS commit: src/sys/arch

2019-01-27 Thread Maxime Villard

Le 28/01/2019 à 03:36, David Holland a écrit :

On Sun, Jan 27, 2019 at 07:10:24PM +0100, Maxime Villard wrote:
  > > Restore satlink's majors entries commented out and marked obsolete.
  > > Otherwise they might accidentally get reused later and cause a
  > > security problem.
  >
  > This is completely useless, please revert. You are re-adding references
  > to satlink without a good reason.

There's a good reason right there in the commit message, y'know. No,
I'm not going to revert it.


The policy is to add majors at the end of the list, not in the middle.
Keeping 'obsolete' comments doesn't change anything to this policy, and
therefore doesn't solve any problem.

Given that you are yourself unsure about what drivers may have been
obsoleted in the past (judging by your commit message), it's still unclear
if some free slots can be reused safely.

In other words, this change is still pretty much useless in practice.

But:


  > We've never marked entries as obsolete in majors (just check amd64's
  > cvs log). If you really think this matters, then please add all the
  > obsoletes that are needed after all these years of changes.

Yes, that's done now. It became clear that it was necessary, but it
took a while.


Thanks for that. I'm fine with this new policy (of keeping comments of
what was unreferenced), and, at least spiritually, it is probably better
than not keeping comments at all.


(Your recent removals were more than half the work.)


Yes, they were in the continuity of what we had been doing for 15+ years,
and were consistent with our policy. Your changes weren't initially...

But it's mostly fixed now, thanks for that.


Re: CVS commit: src/sys/dev/pci

2019-01-27 Thread Masanobu SAITOH

On 2019/01/28 15:07, Jason Thorpe wrote:

Doesn’t it seem a little dangerous to just blindly enable?


 You mean it should be enable only when the secondary bridge is configured
correctly?

 Both FreeBSD and OpenBSD blindly enabled it. One of the difference between
NetBSD and others is that they configure unconfigured bridge.


-- thorpej
Sent from my iPhone.


On Jan 28, 2019, at 6:09 AM, SAITOH Masanobu  wrote:

Module Name:src
Committed By:msaitoh
Date:Mon Jan 28 04:09:51 UTC 2019

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

Log Message:
Explicitly enable bus masterling in case BIOS, UEFI or firmware don't enable
it. Might fix PR kern/53811.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/pci/ppb.c

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






--
---
SAITOH Masanobu (msai...@execsw.org
 msai...@netbsd.org)


Re: CVS commit: src/sys/dev/pci

2019-01-27 Thread Jason Thorpe
Doesn’t it seem a little dangerous to just blindly enable?

-- thorpej
Sent from my iPhone.

> On Jan 28, 2019, at 6:09 AM, SAITOH Masanobu  wrote:
> 
> Module Name:src
> Committed By:msaitoh
> Date:Mon Jan 28 04:09:51 UTC 2019
> 
> Modified Files:
>src/sys/dev/pci: ppb.c
> 
> Log Message:
> Explicitly enable bus masterling in case BIOS, UEFI or firmware don't enable
> it. Might fix PR kern/53811.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.65 -r1.66 src/sys/dev/pci/ppb.c
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 



Re: CVS commit: src/bin/sleep

2019-01-27 Thread Robert Elz
Date:Sun, 27 Jan 2019 21:07:22 -0800
From:"Tom Spindler (moof)" 
Message-ID:  <20190128050722.ga37...@babymeat.com>

  | I'd argue that "300ms" or "120us" or "15ns" are all pretty unambiguous,
  | and that an exactly two char suffix would be rather unlikely to be line
  | noise.

Probably, though in the linux version, 300m would mean 300 minutes
(I don't know if they go to check that there isn't another char following).

Sleeps for < 1 second are comparatively rare, as the internal mechanisms
don't work (currently anyway) at the kind of precision needed to support
it, so all that is really possible reliably is "very short" "short" or seconds,
which for the vast majority of purposes that the sleep command is used
is entirely sufficient (aside from the actual duration of the sleep, there are
also potential scheduelling delays before the process will get to run again.)

I don't think we really need to support any of this suffix stuff in the sleep
command, if needed it is easy to do the calculations on the command line,
I do things like
sleep $(( 3600 * 3 + 60 * 20 ))
all the time, it really isn't that hard, and a script or function which would
look at the args (whatever are suitable for your use) and to the calculation
for you is, IMO, a better solution than building someone's idea of what
ought to be supported, and how it should work, into sleep.

kre



Re: CVS commit: src/bin/sleep

2019-01-27 Thread Tom Spindler (moof)
On Mon, Jan 28, 2019 at 07:52:22AM +0700, Robert Elz wrote:
> That PR needed to be fixed, even before it was filed, as stray
> characters after the numeric value are more likely to be something
> attempting linux "sleep 2m" (ie: sleep 120) raher than someone
> attempting to sleep for a currency value.   And that does need
> to be detected as an error, unlike "sleep 1,2" (or even sleep 0,2)
> which does no real harm, even if it was an accident (we're
> talking about a sleep of some extra fraction of a second...)

I'd argue that "300ms" or "120us" or "15ns" are all pretty unambiguous,
and that an exactly two char suffix would be rather unlikely to be line
noise.



Re: CVS commit: src/sys/dev/pci

2019-01-27 Thread Masanobu SAITOH

Hi.

On 2019/01/28 4:05, Frank Kardel wrote:

Hi,

that made all devices being recognized during boot with UEFI - good.


We seem closer, but not there yet (for my main board at least).

There is still an issue with interrupts (or dma - see missing bus master in pci 
differences).

It seems device interrupts via ioapic don't get interrupts/data at all or not 
reliably. This affects following devices AFAICS on my system:
 com*
 wm1 (PCIe network card)
     radeon (see errors below)

MSI/X using devices seem to do fine.

Interrupt allocation is the same in both environments:

UEFI & CSM
interrupt id    device name(s)
ioapic0 pin 9   acpi SCI
ioapic0 pin 1   pckbc1 kbd
msix0 vec 0 nvme0 adminq
msix0 vec 1 nvme0 ioq1
msix0 vec 2 nvme0 ioq2
msix0 vec 3 nvme0 ioq3
msix0 vec 4 nvme0 ioq4
msix0 vec 5 nvme0 ioq5
msix0 vec 6 nvme0 ioq6
msix0 vec 7 nvme0 ioq7
msi1 vec 0  xhci0
msi2 vec 0  ahcisata0
msix3 vec 0 wm0TXRX0
msix3 vec 1 wm0TXRX1
msix3 vec 2 wm0LINK
ioapic1 pin 10  wm1, com5
ioapic1 pin 11  com2, ahd0
ioapic1 pin 8   com3
ioapic1 pin 9   com4
msi4 vec 0  hdaudio0
msi5 vec 0  mpii0
msi6 vec 0  xhci1
msi7 vec 0  ahcisata1
msi8 vec 0  hdaudio1
ioapic0 pin 4   com0
ioapic1 pin 30  radeon0

Other hickups seen:
   keyboard input (PS/2) is sometimes repeated
   glxgears regularly stalls for a seconds and does not really run smoothly.
   llinfo entries for wm1 fail, arp resolution on wm1 fail
   wm1 seems completely broken - no packets are received there

dmesg differences are from efi presence, minor difference memory size, 
different usb detection sequence. nothing critical.

The main difference is the radeon* fails to properly initialize giving these 
diagnostics:
  kern info: [drm] radeon: irq initialized.
kern info: [drm] ring test on 0 succeeded in 0 usecs
kern info: [drm] ring test on 3 succeeded in 3 usecs
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start]
 *ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start]
 *ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start]
 *ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start]
 *ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start]
 *ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start]
 *ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start]
 *ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start]
 *ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start]
 *ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start]
 *ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:354)uvd_v1_0_start]
 *ERROR* UVD not responding, giving up!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen.c:5688)evergreen_startup]
 *ERROR* radeon: error initializing UVD (-1).
kern info: [drm] ib test on ring 0 succeeded in 0 usecs
kern info: [drm] ib test on ring 3 succeeded in 0 usecs

Differences between pci configs (lspic -v)
--- lspci-csm-20190127    2019-01-27 14:42:57.454117956 +0100
+++ lspci-uefi-20190127    2019-01-27 14:51:27.003880544 +0100
@@ -4,7 +4,7 @@

  00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1451
  Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1451
-    Flags: bus master, fast devsel, latency 0, IRQ 255
+    Flags: fast devsel, IRQ 255
  Capabilities: [40] Secure device 
  Capabilities: [64] MSI: Enable- Count=1/4 Maskable- 64bit+
  Capabilities: [74] HyperTransport: MSI Mapping Enable+ Fixed+
@@ -213,7 +213,7 @@
  Capabilities: [100] Advanced Error Reporting

  1d:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02) 
(prog-if 00 [Normal decode])
-    Flags: bus master, fast devsel, latency 0, IRQ 11
+    Flags: fast devsel, IRQ 11
  Bus: primary=1d, secondary=1e, subordinate=1e, sec-latency=0
   

CVS commit: src/sys/dev/pci

2019-01-27 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jan 28 04:09:51 UTC 2019

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

Log Message:
 Explicitly enable bus masterling in case BIOS, UEFI or firmware don't enable
it. Might fix PR kern/53811.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/pci/ppb.c

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

Modified files:

Index: src/sys/dev/pci/ppb.c
diff -u src/sys/dev/pci/ppb.c:1.65 src/sys/dev/pci/ppb.c:1.66
--- src/sys/dev/pci/ppb.c:1.65	Sun Jan 27 02:08:42 2019
+++ src/sys/dev/pci/ppb.c	Mon Jan 28 04:09:51 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: ppb.c,v 1.65 2019/01/27 02:08:42 pgoyette Exp $	*/
+/*	$NetBSD: ppb.c,v 1.66 2019/01/28 04:09:51 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 1996, 1998 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ppb.c,v 1.65 2019/01/27 02:08:42 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ppb.c,v 1.66 2019/01/28 04:09:51 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ppb.h"
@@ -358,6 +358,11 @@ ppbattach(device_t parent, device_t self
 	}
 #endif /* PPB_USEINTR */
 
+	/* Enable bus master. */
+	reg = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
+	pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
+	reg | PCI_COMMAND_MASTER_ENABLE);
+
 	if (!pmf_device_register(self, ppb_suspend, ppb_resume))
 		aprint_error_dev(self, "couldn't establish power handler\n");
 



CVS commit: src/sys/dev/pci

2019-01-27 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jan 28 04:09:51 UTC 2019

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

Log Message:
 Explicitly enable bus masterling in case BIOS, UEFI or firmware don't enable
it. Might fix PR kern/53811.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/pci/ppb.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

2019-01-27 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jan 28 03:37:52 UTC 2019

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
 Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.1348 -r1.1349 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1347 -r1.1348 src/sys/dev/pci/pcidevs_data.h

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

diffs are larger than 1MB and have been omitted


CVS commit: src/sys/dev/pci

2019-01-27 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jan 28 03:37:28 UTC 2019

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
 Add AMD Family 17h devices from OpenBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.1359 -r1.1360 src/sys/dev/pci/pcidevs

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

Modified files:

Index: src/sys/dev/pci/pcidevs
diff -u src/sys/dev/pci/pcidevs:1.1359 src/sys/dev/pci/pcidevs:1.1360
--- src/sys/dev/pci/pcidevs:1.1359	Sat Jan 26 18:30:48 2019
+++ src/sys/dev/pci/pcidevs	Mon Jan 28 03:37:27 2019
@@ -1,4 +1,4 @@
-$NetBSD: pcidevs,v 1.1359 2019/01/26 18:30:48 msaitoh Exp $
+$NetBSD: pcidevs,v 1.1360 2019/01/28 03:37:27 msaitoh Exp $
 
 /*
  * Copyright (c) 1995, 1996 Christopher G. Demetriou
@@ -1002,6 +1002,24 @@ product AMD F15_30_HB	0x1424	Family15h H
 product AMD F15_30_RP_5	0x1425	Family15h Root Port
 product AMD F15_30_RP_6	0x1426	Family15h Root Port
 product AMD F16_GPPB	0x1439	Family16h GPP Bridge
+product AMD F17_RC	0x1450	Family17h Root Complex
+product AMD F17_IOMMU	0x1451	Family17h IOMMU
+product AMD F17_PCIE_1	0x1452	Family17h PCIE
+product AMD F17_PCIE_2	0x1453	Family17h PCIE
+product AMD F17_PCIE_3	0x1454	Family17h PCIE
+product AMD F17_HDA	0x1457	Family17h HD Audio
+product AMD F17_XHCI	0x145c	Family17h xHCI
+product AMD F17_XHCI_2	0x145f	Family17h xHCI
+product AMD F17_DF_1	0x1460	Family17h Data Fabric
+product AMD F17_DF_2	0x1461	Family17h Data Fabric
+product AMD F17_DF_3	0x1462	Family17h Data Fabric
+product AMD F17_DF_4	0x1463	Family17h Data Fabric
+product AMD F17_DF_5	0x1464	Family17h Data Fabric
+product AMD F17_DF_6	0x1465	Family17h Data Fabric
+product AMD F17_DF_7	0x1466	Family17h Data Fabric
+product AMD F17_DF_8	0x1467	Family17h Data Fabric
+product AMD F17_PCIE_4	0x1470	Family17h PCIE
+product AMD F17_PCIE_5	0x1471	Family17h PCIE
 product AMD F14_RC	0x1510	Family14h Root Complex
 product AMD F16_HT	0x1530	Family16h HyperTransport Configuration
 product AMD F16_ADDR	0x1531	Family16h Address Map Configuration
@@ -1033,6 +1051,21 @@ product AMD F16_30_DRAM	0x1582	Family16h
 product AMD F16_30_NB	0x1583	Family16h North Bridge Configuration
 product AMD F16_30_CSTATE	0x1584	Family16h CPU C-state Configuration
 product AMD F16_30_MISC	0x1585	Family16h Miscellaneous Configuration
+product AMD F17_1X_RC	0x15d0	Family17h/1xh Root Complex
+product AMD F17_1X_IOMMU 0x15d1	Family17h/1xh IOMMU
+product AMD F17_1X_PCIE_1 0x15d3 Family17h/1xh PCIE
+product AMD F17_1X_PCIE_2 0x15db Family17h/1xh PCIE
+product AMD F17_1X_PCIE_3 0x15dc Family17h/1xh PCIE
+product AMD F17_1X_XHCI_1 0x15e0 Family17h/1xh xHCI
+product AMD F17_1X_XHCI_2 0x15e1 Family17h/1xh xHCI
+product AMD F17_1X_DF_0	0x15e8	Family17h/1xh Data Fabric
+product AMD F17_1X_DF_1	0x15e9	Family17h/1xh Data Fabric
+product AMD F17_1X_DF_2	0x15ea	Family17h/1xh Data Fabric
+product AMD F17_1X_DF_3	0x15eb	Family17h/1xh Data Fabric
+product AMD F17_1X_DF_4	0x15ec	Family17h/1xh Data Fabric
+product AMD F17_1X_DF_5	0x15ed	Family17h/1xh Data Fabric
+product AMD F17_1X_DF_6	0x15ee	Family17h/1xh Data Fabric
+product AMD F17_1X_DF_7	0x15ef	Family17h/1xh Data Fabric
 product AMD F15_HT	0x1600	Family15h HyperTransport Configuration
 product AMD F15_ADDR	0x1601	Family15h Address Map Configuration
 product AMD F15_DRAM	0x1602	Family15h DRAM Configuration



CVS commit: src/sys/dev/pci

2019-01-27 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jan 28 03:37:52 UTC 2019

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
 Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.1348 -r1.1349 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1347 -r1.1348 src/sys/dev/pci/pcidevs_data.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/pci

2019-01-27 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jan 28 03:37:28 UTC 2019

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
 Add AMD Family 17h devices from OpenBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.1359 -r1.1360 src/sys/dev/pci/pcidevs

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



CVS commit: src/doc

2019-01-27 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Jan 28 03:31:57 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
Fix listing on website.


To generate a diff of this commit:
cvs rdiff -u -r1.2496 -r1.2497 src/doc/CHANGES

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2496 src/doc/CHANGES:1.2497
--- src/doc/CHANGES:1.2496	Mon Jan 28 03:02:39 2019
+++ src/doc/CHANGES	Mon Jan 28 03:31:57 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2496 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2497 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -312,13 +312,13 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 		NETMAP algorithm for static NAT, lock-free lookup for 'ipset'
 		tables, lock-free state lookup, incremental state G/C, etc).
 		[rmind 20190119]
-	dhcpcd: Import dhcpcd-7.1.0 (roy 20190122)
-	kernel: Remove the satlink driver. (maxv 20190127)
+	dhcpcd: Import dhcpcd-7.1.0. [roy 20190122]
+	kernel: Remove the satlink driver. [maxv 20190127]
 	kernel: Merged [pgoyette-compat] branch - for details, see
 		src/doc/TODO.compat-module.  Includes splitting of the
 		monolithic compat-netbsd module into several version-
 		specific modules, introduction of MP-safe module hook
 		mechanism, and removal of various limitations within
-		the kernel module framework. (pgoyette 20190127)
+		the kernel module framework. [pgoyette 20190127]
 	macppc: Include EDID block for Clamshell iBook G3 displays.
 		[sevan 20190128]



CVS commit: src/doc

2019-01-27 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Jan 28 03:31:57 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
Fix listing on website.


To generate a diff of this commit:
cvs rdiff -u -r1.2496 -r1.2497 src/doc/CHANGES

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



CVS commit: src/doc

2019-01-27 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Jan 28 03:02:39 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
macppc clamshell edid block


To generate a diff of this commit:
cvs rdiff -u -r1.2495 -r1.2496 src/doc/CHANGES

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



CVS commit: src/doc

2019-01-27 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Jan 28 03:02:39 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
macppc clamshell edid block


To generate a diff of this commit:
cvs rdiff -u -r1.2495 -r1.2496 src/doc/CHANGES

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2495 src/doc/CHANGES:1.2496
--- src/doc/CHANGES:1.2495	Sun Jan 27 10:32:05 2019
+++ src/doc/CHANGES	Mon Jan 28 03:02:39 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2495 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2496 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -320,3 +320,5 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 		specific modules, introduction of MP-safe module hook
 		mechanism, and removal of various limitations within
 		the kernel module framework. (pgoyette 20190127)
+	macppc: Include EDID block for Clamshell iBook G3 displays.
+		[sevan 20190128]



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

2019-01-27 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Jan 28 02:45:13 UTC 2019

Modified Files:
src/sys/arch/macppc/macppc: static_edid.c

Log Message:
Add a description


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

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

Modified files:

Index: src/sys/arch/macppc/macppc/static_edid.c
diff -u src/sys/arch/macppc/macppc/static_edid.c:1.2 src/sys/arch/macppc/macppc/static_edid.c:1.3
--- src/sys/arch/macppc/macppc/static_edid.c:1.2	Mon Jan 28 02:25:01 2019
+++ src/sys/arch/macppc/macppc/static_edid.c	Mon Jan 28 02:45:13 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: static_edid.c,v 1.2 2019/01/28 02:25:01 sevan Exp $ */
+/*	$NetBSD: static_edid.c,v 1.3 2019/01/28 02:45:13 sevan Exp $ */
 
 /*-
  * Copyright (c) 2011 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: static_edid.c,v 1.2 2019/01/28 02:25:01 sevan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: static_edid.c,v 1.3 2019/01/28 02:45:13 sevan Exp $");
 #include 
 
 /* EDID blocks for some known hardware that doesn't provide its own */
@@ -55,6 +55,10 @@ uint8_t edid_pismo[128] = {
 /* 78 */	0x43, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x52
 };
 
+/*
+ * iBook G3 Clamshell, obtained from the 2nd revision (firewire).
+ * Should work on the 1st revision.
+ */
 uint8_t edid_clamshell[128] = {
 /* 00 */	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00,
 /* 08 */	0x06, 0x10, 0x05, 0x9c, 0x01, 0x01, 0x01, 0x01,



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

2019-01-27 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Jan 28 02:45:13 UTC 2019

Modified Files:
src/sys/arch/macppc/macppc: static_edid.c

Log Message:
Add a description


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

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



Re: CVS commit: src/sys/arch

2019-01-27 Thread David Holland
On Sun, Jan 27, 2019 at 07:10:24PM +0100, Maxime Villard wrote:
 > > Restore satlink's majors entries commented out and marked obsolete.
 > > Otherwise they might accidentally get reused later and cause a
 > > security problem.
 > 
 > This is completely useless, please revert. You are re-adding references
 > to satlink without a good reason.

There's a good reason right there in the commit message, y'know. No,
I'm not going to revert it.

 > We've never marked entries as obsolete in majors (just check amd64's
 > cvs log). If you really think this matters, then please add all the
 > obsoletes that are needed after all these years of changes.

Yes, that's done now. It became clear that it was necessary, but it
took a while.

(Your recent removals were more than half the work.)

-- 
David A. Holland
dholl...@netbsd.org


CVS commit: src/sys/arch

2019-01-27 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Mon Jan 28 02:29:01 UTC 2019

Modified Files:
src/sys/arch/aarch64/conf: majors.aarch64
src/sys/arch/acorn32/conf: majors.acorn32
src/sys/arch/algor/conf: majors.algor
src/sys/arch/alpha/conf: majors.alpha
src/sys/arch/amd64/conf: majors.amd64
src/sys/arch/amiga/conf: majors.amiga
src/sys/arch/amigappc/conf: majors.amigappc
src/sys/arch/arc/conf: majors.arc
src/sys/arch/arm/conf: majors.arm32
src/sys/arch/atari/conf: majors.atari
src/sys/arch/bebox/conf: majors.bebox
src/sys/arch/cesfic/conf: majors.cesfic
src/sys/arch/cobalt/conf: majors.cobalt
src/sys/arch/dreamcast/conf: majors.dreamcast
src/sys/arch/epoc32/conf: majors.epoc32
src/sys/arch/evbcf/conf: majors.evbcf
src/sys/arch/evbmips/conf: majors.evbmips
src/sys/arch/evbppc/conf: majors.evbppc
src/sys/arch/evbsh3/conf: majors.evbsh3
src/sys/arch/ews4800mips/conf: majors.ews4800mips
src/sys/arch/hp300/conf: majors.hp300
src/sys/arch/hpcarm/conf: majors.hpcarm
src/sys/arch/hpcmips/conf: majors.hpcmips
src/sys/arch/hpcsh/conf: majors.hpcsh
src/sys/arch/i386/conf: majors.i386
src/sys/arch/ia64/conf: majors.ia64
src/sys/arch/ibmnws/conf: majors.ibmnws
src/sys/arch/landisk/conf: majors.landisk
src/sys/arch/luna68k/conf: majors.luna68k
src/sys/arch/mac68k/conf: majors.mac68k
src/sys/arch/mipsco/conf: majors.mipsco
src/sys/arch/mmeye/conf: majors.mmeye
src/sys/arch/mvme68k/conf: majors.mvme68k
src/sys/arch/mvmeppc/conf: majors.mvmeppc
src/sys/arch/news68k/conf: majors.news68k
src/sys/arch/newsmips/conf: majors.newsmips
src/sys/arch/next68k/conf: majors.next68k
src/sys/arch/playstation2/conf: majors.playstation2
src/sys/arch/pmax/conf: majors.pmax
src/sys/arch/powerpc/conf: majors.powerpc
src/sys/arch/prep/conf: majors.prep
src/sys/arch/riscv/conf: majors.riscv
src/sys/arch/sgimips/conf: majors.sgimips
src/sys/arch/shark/conf: majors.shark
src/sys/arch/sparc/conf: majors.sparc
src/sys/arch/sparc64/conf: majors.sparc64
src/sys/arch/sun2/conf: majors.sun2
src/sys/arch/sun3/conf: majors.sun3
src/sys/arch/vax/conf: majors.vax
src/sys/arch/x68k/conf: majors.x68k
src/sys/arch/zaurus/conf: majors.zaurus

Log Message:
Systematize handling of removed drivers.

 - Every driver that was removed and whose number hasn't already been
   reused is now listed with a commented-out "obsolete" line.
 - The format of these has been systematized. Future format changes can
   probably be safely done with a script.
 - This does not include a few cases of assignments that only lasted a
   couple days, or stuff from before major reorgs. Some of these may
   be included nonetheless, because there was a lot of ground to cover
   and therefore not a lot of time to dig into history in detail.

Note that the obsolete listings do not mean the major numbers can
never be reused; that's up to portmasters and/or core. It does mean
that they won't be reused by accident, however, which in some cases
(depending on the driver, how widely used it was, its family of device
nodes, their default permissions, etc.) can be quite dangerous.

Note that some of the things now explicitly listed as obsolete are
really ancient history. My scan went back as far as when the majors
files were added. (But not before that.)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/aarch64/conf/majors.aarch64
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/acorn32/conf/majors.acorn32
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/algor/conf/majors.algor
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/alpha/conf/majors.alpha
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/amd64/conf/majors.amd64
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/amiga/conf/majors.amiga
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/amigappc/conf/majors.amigappc
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/arc/conf/majors.arc
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/arm/conf/majors.arm32
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/atari/conf/majors.atari
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/bebox/conf/majors.bebox
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/cesfic/conf/majors.cesfic
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/cobalt/conf/majors.cobalt
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/dreamcast/conf/majors.dreamcast
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/epoc32/conf/majors.epoc32
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbcf/conf/majors.evbcf
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/evbmips/conf/majors.evbmips
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/evbppc/conf/majors.evbppc
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/evbsh3/conf/majors.evbsh3
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/ews4800mips/conf/majors.ews4800mips
cvs 

CVS commit: src/sys/arch

2019-01-27 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Mon Jan 28 02:29:01 UTC 2019

Modified Files:
src/sys/arch/aarch64/conf: majors.aarch64
src/sys/arch/acorn32/conf: majors.acorn32
src/sys/arch/algor/conf: majors.algor
src/sys/arch/alpha/conf: majors.alpha
src/sys/arch/amd64/conf: majors.amd64
src/sys/arch/amiga/conf: majors.amiga
src/sys/arch/amigappc/conf: majors.amigappc
src/sys/arch/arc/conf: majors.arc
src/sys/arch/arm/conf: majors.arm32
src/sys/arch/atari/conf: majors.atari
src/sys/arch/bebox/conf: majors.bebox
src/sys/arch/cesfic/conf: majors.cesfic
src/sys/arch/cobalt/conf: majors.cobalt
src/sys/arch/dreamcast/conf: majors.dreamcast
src/sys/arch/epoc32/conf: majors.epoc32
src/sys/arch/evbcf/conf: majors.evbcf
src/sys/arch/evbmips/conf: majors.evbmips
src/sys/arch/evbppc/conf: majors.evbppc
src/sys/arch/evbsh3/conf: majors.evbsh3
src/sys/arch/ews4800mips/conf: majors.ews4800mips
src/sys/arch/hp300/conf: majors.hp300
src/sys/arch/hpcarm/conf: majors.hpcarm
src/sys/arch/hpcmips/conf: majors.hpcmips
src/sys/arch/hpcsh/conf: majors.hpcsh
src/sys/arch/i386/conf: majors.i386
src/sys/arch/ia64/conf: majors.ia64
src/sys/arch/ibmnws/conf: majors.ibmnws
src/sys/arch/landisk/conf: majors.landisk
src/sys/arch/luna68k/conf: majors.luna68k
src/sys/arch/mac68k/conf: majors.mac68k
src/sys/arch/mipsco/conf: majors.mipsco
src/sys/arch/mmeye/conf: majors.mmeye
src/sys/arch/mvme68k/conf: majors.mvme68k
src/sys/arch/mvmeppc/conf: majors.mvmeppc
src/sys/arch/news68k/conf: majors.news68k
src/sys/arch/newsmips/conf: majors.newsmips
src/sys/arch/next68k/conf: majors.next68k
src/sys/arch/playstation2/conf: majors.playstation2
src/sys/arch/pmax/conf: majors.pmax
src/sys/arch/powerpc/conf: majors.powerpc
src/sys/arch/prep/conf: majors.prep
src/sys/arch/riscv/conf: majors.riscv
src/sys/arch/sgimips/conf: majors.sgimips
src/sys/arch/shark/conf: majors.shark
src/sys/arch/sparc/conf: majors.sparc
src/sys/arch/sparc64/conf: majors.sparc64
src/sys/arch/sun2/conf: majors.sun2
src/sys/arch/sun3/conf: majors.sun3
src/sys/arch/vax/conf: majors.vax
src/sys/arch/x68k/conf: majors.x68k
src/sys/arch/zaurus/conf: majors.zaurus

Log Message:
Systematize handling of removed drivers.

 - Every driver that was removed and whose number hasn't already been
   reused is now listed with a commented-out "obsolete" line.
 - The format of these has been systematized. Future format changes can
   probably be safely done with a script.
 - This does not include a few cases of assignments that only lasted a
   couple days, or stuff from before major reorgs. Some of these may
   be included nonetheless, because there was a lot of ground to cover
   and therefore not a lot of time to dig into history in detail.

Note that the obsolete listings do not mean the major numbers can
never be reused; that's up to portmasters and/or core. It does mean
that they won't be reused by accident, however, which in some cases
(depending on the driver, how widely used it was, its family of device
nodes, their default permissions, etc.) can be quite dangerous.

Note that some of the things now explicitly listed as obsolete are
really ancient history. My scan went back as far as when the majors
files were added. (But not before that.)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/aarch64/conf/majors.aarch64
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/acorn32/conf/majors.acorn32
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/algor/conf/majors.algor
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/alpha/conf/majors.alpha
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/amd64/conf/majors.amd64
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/amiga/conf/majors.amiga
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/amigappc/conf/majors.amigappc
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/arc/conf/majors.arc
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/arm/conf/majors.arm32
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/atari/conf/majors.atari
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/bebox/conf/majors.bebox
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/cesfic/conf/majors.cesfic
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/cobalt/conf/majors.cobalt
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/dreamcast/conf/majors.dreamcast
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/epoc32/conf/majors.epoc32
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbcf/conf/majors.evbcf
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/evbmips/conf/majors.evbmips
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/evbppc/conf/majors.evbppc
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/evbsh3/conf/majors.evbsh3
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/ews4800mips/conf/majors.ews4800mips
cvs 

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

2019-01-27 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Jan 28 02:25:02 UTC 2019

Modified Files:
src/sys/arch/macppc/macppc: machdep.c static_edid.c static_edid.h

Log Message:
Fake the EDID info for the clamshell iBook G3 so X11 works out of the box.
Obtained from the 2nd (firewire) revision iBook, but it's applied to 1st gen
also.

[93.906] (II) R128(0): I2C bus "VGA-0" initialized.
[93.907] (II) got 128 bytes worth of EDID from wsdisplay
[93.908] (II) R128(0): EDID for output LVDS
[93.908] (II) R128(0): Manufacturer: APP  Model: 9c05  Serial#: 16843009
[93.908] (II) R128(0): Year: 1999  Week: 9
[93.908] (II) R128(0): EDID Version: 1.1
[93.908] (II) R128(0): Digital Display Input
[93.908] (II) R128(0): Max Image Size [cm]: horiz.: 24  vert.: 18
[93.908] (II) R128(0): Gamma: 2.28
[93.908] (II) R128(0): DPMS capabilities: StandBy Suspend Off
[93.909] (II) R128(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[93.909] (II) R128(0): redX: 0.594 redY: 0.345   greenX: 0.317 greenY: 0.494
[93.909] (II) R128(0): blueX: 0.155 blueY: 0.146   whiteX: 0.312 whiteY: 
0.328
[93.909] (II) R128(0): Supported established timings:
[93.909] (II) R128(0): 800x600@60Hz
[93.909] (II) R128(0): Manufacturer's mask: 0
[93.910] (II) R128(0): Supported detailed timing:
[93.910] (II) R128(0): clock: 60.0 MHz   Image Size:  275 x 199 mm
[93.910] (II) R128(0): h_active: 800  h_sync: 840  h_sync_end 968 
h_blank_end 1056 h_border: 0
[93.910] (II) R128(0): v_active: 600  v_sync: 601  v_sync_end 605 
v_blanking: 628 v_border: 0
[93.910] (II) R128(0):  LT121SU-121
[93.910] (II) R128(0):  LT121SU-121
[93.910] (II) R128(0): Monitor name: Color LCD
[93.910] (II) R128(0): EDID (in hex):
[93.910] (II) R128(0):  00000610059c01010101
[93.910] (II) R128(0):  09090101a8181280e816e09858517e27
[93.910] (II) R128(0):  2550540101010101010101010101
[93.911] (II) R128(0):  0101010101017017200031581c202880
[93.911] (II) R128(0):  140013c7101800fe004c5431
[93.911] (II) R128(0):  323153552d3132310a2000fe004c
[93.911] (II) R128(0):  5431323153552d3132310a2000fc
[93.911] (II) R128(0):  00436f6c6f72204c43440a2020200037
[93.912] (II) R128(0): I2C device "VGA-0:ddc2" registered at address 0xA0.


To generate a diff of this commit:
cvs rdiff -u -r1.168 -r1.169 src/sys/arch/macppc/macppc/machdep.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/macppc/macppc/static_edid.c \
src/sys/arch/macppc/macppc/static_edid.h

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

Modified files:

Index: src/sys/arch/macppc/macppc/machdep.c
diff -u src/sys/arch/macppc/macppc/machdep.c:1.168 src/sys/arch/macppc/macppc/machdep.c:1.169
--- src/sys/arch/macppc/macppc/machdep.c:1.168	Sun Jul 15 05:16:43 2018
+++ src/sys/arch/macppc/macppc/machdep.c	Mon Jan 28 02:25:01 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.168 2018/07/15 05:16:43 maxv Exp $	*/
+/*	$NetBSD: machdep.c,v 1.169 2019/01/28 02:25:01 sevan Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.168 2018/07/15 05:16:43 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.169 2019/01/28 02:25:01 sevan Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_ddb.h"
@@ -389,6 +389,8 @@ add_model_specifics(prop_dictionary_t di
 {
 	const char *bl_rev_models[] = {
 		"PowerBook4,3", "PowerBook6,3", "PowerBook6,5", NULL};
+	const char *clamshell[] = {
+		"PowerBook2,1", "PowerBook2,2", NULL};
 	const char *pismo[] = {
 		"PowerBook3,1", NULL};
 	const char *mini1[] = {
@@ -402,6 +404,13 @@ add_model_specifics(prop_dictionary_t di
 	if (of_compatible(node, bl_rev_models) != -1) {
 		prop_dictionary_set_bool(dict, "backlight_level_reverted", 1);
 	}
+	if (of_compatible(node, clamshell) != -1) {
+		prop_data_t edid;
+
+		edid = prop_data_create_data(edid_clamshell, sizeof(edid_clamshell));
+		prop_dictionary_set(dict, "EDID", edid);
+		prop_object_release(edid);
+	}
 	if (of_compatible(node, pismo) != -1) {
 		prop_data_t edid;
 

Index: src/sys/arch/macppc/macppc/static_edid.c
diff -u src/sys/arch/macppc/macppc/static_edid.c:1.1 src/sys/arch/macppc/macppc/static_edid.c:1.2
--- src/sys/arch/macppc/macppc/static_edid.c:1.1	Wed Jul 13 22:54:33 2011
+++ src/sys/arch/macppc/macppc/static_edid.c	Mon Jan 28 02:25:01 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: static_edid.c,v 1.1 2011/07/13 22:54:33 macallan Exp $ */
+/*	$NetBSD: static_edid.c,v 1.2 2019/01/28 02:25:01 sevan Exp $ */
 
 /*-
  * Copyright (c) 2011 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: static_edid.c,v 1.1 2011/07/13 22:54:33 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: static_edid.c,v 1.2 2019/01/28 02:25:01 sevan Exp $");
 #include 
 
 /* EDID blocks for some known hardware 

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

2019-01-27 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Jan 28 02:25:02 UTC 2019

Modified Files:
src/sys/arch/macppc/macppc: machdep.c static_edid.c static_edid.h

Log Message:
Fake the EDID info for the clamshell iBook G3 so X11 works out of the box.
Obtained from the 2nd (firewire) revision iBook, but it's applied to 1st gen
also.

[93.906] (II) R128(0): I2C bus "VGA-0" initialized.
[93.907] (II) got 128 bytes worth of EDID from wsdisplay
[93.908] (II) R128(0): EDID for output LVDS
[93.908] (II) R128(0): Manufacturer: APP  Model: 9c05  Serial#: 16843009
[93.908] (II) R128(0): Year: 1999  Week: 9
[93.908] (II) R128(0): EDID Version: 1.1
[93.908] (II) R128(0): Digital Display Input
[93.908] (II) R128(0): Max Image Size [cm]: horiz.: 24  vert.: 18
[93.908] (II) R128(0): Gamma: 2.28
[93.908] (II) R128(0): DPMS capabilities: StandBy Suspend Off
[93.909] (II) R128(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[93.909] (II) R128(0): redX: 0.594 redY: 0.345   greenX: 0.317 greenY: 0.494
[93.909] (II) R128(0): blueX: 0.155 blueY: 0.146   whiteX: 0.312 whiteY: 
0.328
[93.909] (II) R128(0): Supported established timings:
[93.909] (II) R128(0): 800x600@60Hz
[93.909] (II) R128(0): Manufacturer's mask: 0
[93.910] (II) R128(0): Supported detailed timing:
[93.910] (II) R128(0): clock: 60.0 MHz   Image Size:  275 x 199 mm
[93.910] (II) R128(0): h_active: 800  h_sync: 840  h_sync_end 968 
h_blank_end 1056 h_border: 0
[93.910] (II) R128(0): v_active: 600  v_sync: 601  v_sync_end 605 
v_blanking: 628 v_border: 0
[93.910] (II) R128(0):  LT121SU-121
[93.910] (II) R128(0):  LT121SU-121
[93.910] (II) R128(0): Monitor name: Color LCD
[93.910] (II) R128(0): EDID (in hex):
[93.910] (II) R128(0):  00000610059c01010101
[93.910] (II) R128(0):  09090101a8181280e816e09858517e27
[93.910] (II) R128(0):  2550540101010101010101010101
[93.911] (II) R128(0):  0101010101017017200031581c202880
[93.911] (II) R128(0):  140013c7101800fe004c5431
[93.911] (II) R128(0):  323153552d3132310a2000fe004c
[93.911] (II) R128(0):  5431323153552d3132310a2000fc
[93.911] (II) R128(0):  00436f6c6f72204c43440a2020200037
[93.912] (II) R128(0): I2C device "VGA-0:ddc2" registered at address 0xA0.


To generate a diff of this commit:
cvs rdiff -u -r1.168 -r1.169 src/sys/arch/macppc/macppc/machdep.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/macppc/macppc/static_edid.c \
src/sys/arch/macppc/macppc/static_edid.h

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



Re: CVS commit: src/bin/sleep

2019-01-27 Thread Robert Elz
Date:Sun, 27 Jan 2019 16:38:34 +
From:David Holland 
Message-ID:  <20190127163833.gb20...@netbsd.org>

  | The Unix shell environment is about processing text, and, largely,
  | processing text in arbitrary ad hoc ways. It fundamentally relies on
  | being able to treat the user-facing output of arbitrary programs as
  | machine-readable input.

yes.

  | This puts the goal of customizing user-facing
  | output to accomodate the user in direct conflict with the goal of
  | making the shell environment work as intended.

I am not sure I agree with that.   There is an issue with taking
one user's output and processing it by another user, but that in
general is a much bigger problem, and a hard one.   Eg: lots
of tools that we have, which in one way or another deal with
"words" (like "wc" and \< in vi, etc) don't work when the language
is Thai (and probably others related) where words are
distinguished by context, not syntax, and spaces between "words"
separate sentences (or just break lines) rather than words.

Dealing with those kinds of issues is just plain hard.

But ...

  | One 'solution' is to discourage ordinary users from learning the shell

no...

  | Another 'solution' is to create a  separate but equal set

no...

For the problem you're describing the answer is simply consistency.

That is, whatever something means on output, it needs to mean the
same for input.   It doesn't matter which locale's syntax is chosen,
none of them are unconditionally better than any of the others, all
that matters is that it is used universally, for the user running the
commands (unless they decide to alter it, of course.)

We are not at that point yet, and you're right that POSIX is not
helping - but nor is it really its job, it is not a legislature, and does
not, or should not, be specifying what we have to do ... rather it
writes down what actually works, so everyone can agree that
a particular command will have some specified effect, and we can
rely upon that working everyehere.   Then when everyone (more
or less) agrees what foo does, we make sure our foo does the
same thing -- unless for some reason that's just "wrong" . (This
is how the standards get changed, when what once was common
is now perceived as incorrect, and implementations start ignoring
the standard and changing ... then eventually the standard catches
up, during the period of turmoil, it first switches to making whatever
it is unspecified, which allows those systems which refuse to do
anything non-standard to alter as well, and then eventually the
new definition can be standardised.)

That is, before POSIX can specify something as being the right
way, it needs to actually work in the world first (in at least some
reasonable fraction of the systems, ignoring any where something
does not work because of what is an obvious bug which simply
should be fixed.)

This is how we got the current locale mess - it was someone's
attempt at dealing with unix in non-ascii environments, and
nothing better has yet come along to replace it, despits its flaws.

kre



CVS commit: src/sys/compat/netbsd32

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jan 28 01:09:52 UTC 2019

Modified Files:
src/sys/compat/netbsd32: netbsd32_compat_80.c

Log Message:
Include new compatability header


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/netbsd32/netbsd32_compat_80.c

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

Modified files:

Index: src/sys/compat/netbsd32/netbsd32_compat_80.c
diff -u src/sys/compat/netbsd32/netbsd32_compat_80.c:1.2 src/sys/compat/netbsd32/netbsd32_compat_80.c:1.3
--- src/sys/compat/netbsd32/netbsd32_compat_80.c:1.2	Sun Jan 27 02:08:40 2019
+++ src/sys/compat/netbsd32/netbsd32_compat_80.c	Mon Jan 28 01:09:52 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32_compat_80.c,v 1.2 2019/01/27 02:08:40 pgoyette Exp $	*/
+/*	$NetBSD: netbsd32_compat_80.c,v 1.3 2019/01/28 01:09:52 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_80.c,v 1.2 2019/01/27 02:08:40 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_80.c,v 1.3 2019/01/28 01:09:52 pgoyette Exp $");
 
 #include 
 #include 
@@ -39,6 +39,8 @@ __KERNEL_RCSID(0, "$NetBSD: netbsd32_com
 
 #include 
 
+#include 
+
 #include 
 #include 
 #include 



CVS commit: src/sys/compat/netbsd32

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jan 28 01:09:52 UTC 2019

Modified Files:
src/sys/compat/netbsd32: netbsd32_compat_80.c

Log Message:
Include new compatability header


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/netbsd32/netbsd32_compat_80.c

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



CVS commit: src/sys/compat/sys

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jan 28 01:01:59 UTC 2019

Modified Files:
src/sys/compat/sys: module.h

Log Message:
Use the correct macro name for dup-include checking


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/compat/sys/module.h

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



CVS commit: src/sys/compat/sys

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jan 28 01:01:59 UTC 2019

Modified Files:
src/sys/compat/sys: module.h

Log Message:
Use the correct macro name for dup-include checking


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/compat/sys/module.h

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

Modified files:

Index: src/sys/compat/sys/module.h
diff -u src/sys/compat/sys/module.h:1.1 src/sys/compat/sys/module.h:1.2
--- src/sys/compat/sys/module.h:1.1	Sun Jan 27 18:29:10 2019
+++ src/sys/compat/sys/module.h	Mon Jan 28 01:01:59 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: module.h,v 1.1 2019/01/27 18:29:10 christos Exp $	*/
+/*	$NetBSD: module.h,v 1.2 2019/01/28 01:01:59 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -26,8 +26,8 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef _SYS_COMPAT_MODULE_H_
-#define _SYS_COMPAT_MODULE_H_
+#ifndef _COMPAT_SYS_MODULE_H_
+#define _COMPAT_SYS_MODULE_H_
 
 /*
  * This structure intentionally has the same layout for 32 and 64
@@ -45,4 +45,4 @@ typedef struct omodstat {
 	u_int		oms_reserved[3];
 } omodstat_t;
 
-#endif	/* !_SYS_COMPAT_MODULE_H_ */
+#endif	/* !_COMPAT_SYS_MODULE_H_ */



CVS commit: src/sys/conf

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jan 28 01:00:23 UTC 2019

Modified Files:
src/sys/conf: files

Log Message:
Move COMPAT_43 to preceed anything that depends on it


To generate a diff of this commit:
cvs rdiff -u -r1.1226 -r1.1227 src/sys/conf/files

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

Modified files:

Index: src/sys/conf/files
diff -u src/sys/conf/files:1.1226 src/sys/conf/files:1.1227
--- src/sys/conf/files:1.1226	Mon Jan 28 00:26:53 2019
+++ src/sys/conf/files	Mon Jan 28 01:00:23 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: files,v 1.1226 2019/01/28 00:26:53 pgoyette Exp $
+#	$NetBSD: files,v 1.1227 2019/01/28 01:00:23 pgoyette Exp $
 #	@(#)files.newconf	7.5 (Berkeley) 5/10/93
 
 version 	20171118
@@ -151,6 +151,7 @@ defflag	opt_compat_netbsd.h	COMPAT_11: C
 defflag	opt_compat_netbsd.h	COMPAT_10: COMPAT_11, COMPAT_NETBSD
 defflag	opt_compat_netbsd.h	COMPAT_09: COMPAT_10, COMPAT_NETBSD
 defflagCOMPAT_OSSAUDIO
+defflagCOMPAT_43
 defflagCOMPAT_FREEBSD: COMPAT_09, COMPAT_43
 defflagCOMPAT_LINUX: COMPAT_NETBSD, COMPAT_43
 defflagCOMPAT_OSF1
@@ -168,7 +169,6 @@ defflagCOMPAT_LINUX32 : COMPAT_LINUX
 defflagCOMPAT_AOUT_M68K: COMPAT_40
 defflagCOMPAT_M68K4K
 defflagCOMPAT_VAX1K
-defflagCOMPAT_43
 defflag	opt_compat_netbsd.h	COMPAT_NOMID
 
 include	"compat/common/files.common"



CVS commit: src/sys/conf

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jan 28 01:00:23 UTC 2019

Modified Files:
src/sys/conf: files

Log Message:
Move COMPAT_43 to preceed anything that depends on it


To generate a diff of this commit:
cvs rdiff -u -r1.1226 -r1.1227 src/sys/conf/files

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



Re: CVS commit: src/bin/sleep

2019-01-27 Thread Robert Elz
Date:Sun, 27 Jan 2019 22:56:17 +0100
From:Kamil Rytarowski 
Message-ID:  <1906f04e-93b9-a2c5-62a0-bf430ca60...@gmx.com>

  |  Passing to sleep 1,2 or 1.000 makes as much sense

The question isn't really whether it makes sense, that's up
to the user to decide, not us, but whether it could be interpreted
any other way.

The first of those has "worked" on NetBSD ever since support
for fractional seconds got added (whaver the locale) until very
recently - where "worked" is in quotes as the sleep might have
lasted for one second, or one and one fifth seconds, or as close
to that as the system can manage, but there would have been a
1 second (approx) sleep in any case).

The second case is ambiguous, which is (I presume) why no-one
is expecting that to ever mean anything except a very precise 1,
and why the grouping chars are never supported for input., whatever
they are, and only works to the extent that the extra input precision is
completely ignored, and does not cause sleep to attempt to really
only last exacly 1 second, rather than perhaps 1 second and 5
milliseconds, which "sleep 1" might delay for (or even longer.)

A better question than "does it make sense" is "what else could
it reasonably mean", and if there is no other answer than "nothing"
(which is true for the first of those, but not the second) then when
there is no other meaning that makes sense, ask "is there any
plausible potential use for this?" and if the answer to that is yes,
then why not support it?

Incidentally, the better input to have asked about would have been
0,2 as until recently, that one did not "work" in any sense unless
the locale uses ',' as the radix char (and that has not changed)
or 0.2 (the kind of example that caused this discussion) when the
radix char is ',' (or something other than '.').   No-one here is
disputing that the 0.2 case should always work, and not be an
error.   That is what was fixed.   The only question is whether there
is any harm in also accepting the 0,2 form when ',' is the
"decimal point".

  | as passing to it 1000USD.

Until PR 53910 was pre-emptively fixed recenty, that one would
also have "worked" (though the perhaps slightly more common
in many areas, USD1000, would not) .

That PR needed to be fixed, even before it was filed, as stray
characters after the numeric value are more likely to be something
attempting linux "sleep 2m" (ie: sleep 120) raher than someone
attempting to sleep for a currency value.   And that does need
to be detected as an error, unlike "sleep 1,2" (or even sleep 0,2)
which does no real harm, even if it was an accident (we're
talking about a sleep of some extra fraction of a second...)

kre

ps: Another command affected by all of this is "seq" which also
takes floating point command line args.   That is not in posix,
so we get no guidance there.   This one is a very odd case, the
first three executable lines in it are ...

/* Determine the locale's decimal point. */
locale = localeconv();
if (locale && locale->decimal_point && locale->decimal_point[0] != '\0')
decimal_point = locale->decimal_point;

and then it does everything (validating input, ...) based upon that
"decimal_point" variable, to the extent of (properly it seems to me
from just reading the code) dealing with the possibility that the
"decimal_point" might be a multiple byte string (ie: not '.' or ','
but perhaps something with a 2 byte or longer UTF-8 encoding,
or something).   That is, it uses "strstr()" to locate the radix.

That is, it is very clearly and very explicitly written to accept, and
generate, input and output in the user's locale.

Except ...

Note the "first three executable lines" and consider the implication
of that  there is no setlocale() call, which means the program is
required to run in the C locale ignoring LC_* environment vars,
and therefore, "locale" there is always the C locale, and consequently
decimal_point is always "." and all of the (considerable) work that
the code goes to to be able to operate in different locales is wasted.

seq seems to have mostly come from Plan-9 where the requirement
for setlocale() presumably (I have never run it, or even seen it
running) does not exist, and locales are simply always used if set.

I do not plan on "fixing" this any time soon (the FreeBSD version
was taken from ours, and has the same issue, exactly, OpenBSD
do not have seq at all, and linux, which had it before us, have,
I think, just - within the past couple of days  - made it (and sleep)
handle both the C locale, and the user's locale, interchangably.

But if we do decide to leave sleep as it is now, then it will make sense
to fix seq to have the same flexibility, but that one is not going to
be a trivial change - as it is written now, it really only wants to operate
in a single locate (whatever it is) and not in the user's locale, or the
C locale, whichever works better...

Perhaps for that one, a better fix 

CVS commit: src/doc

2019-01-27 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Jan 28 00:43:54 UTC 2019

Modified Files:
src/doc: BRANCHES

Log Message:
remove obsolete part of description for kqueue


To generate a diff of this commit:
cvs rdiff -u -r1.347 -r1.348 src/doc/BRANCHES

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

Modified files:

Index: src/doc/BRANCHES
diff -u src/doc/BRANCHES:1.347 src/doc/BRANCHES:1.348
--- src/doc/BRANCHES:1.347	Sun Jan 27 10:27:18 2019
+++ src/doc/BRANCHES	Mon Jan 28 00:43:54 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: BRANCHES,v 1.347 2019/01/27 10:27:18 pgoyette Exp $
+#	$NetBSD: BRANCHES,v 1.348 2019/01/28 00:43:54 jdolecek Exp $
 #
 # This file contains a list of branches that exist in the NetBSD CVS
 # tree and their current state.
@@ -1150,8 +1150,6 @@ Notes:		Integration of FreeBSD's kqueue(
 		local internal changes to better suit NetBSD, and
 		enhancements such as looking up filters by name or
 		number, and dynamic registration of "user" filters.
-		The work is complete as is, but is awaiting more
-		feedback from various kernel gurus before going mainline.
 
 Branch:		ktrace-lwp
 Description:	ktrace support for lwp ids.



CVS commit: src/doc

2019-01-27 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Jan 28 00:43:54 UTC 2019

Modified Files:
src/doc: BRANCHES

Log Message:
remove obsolete part of description for kqueue


To generate a diff of this commit:
cvs rdiff -u -r1.347 -r1.348 src/doc/BRANCHES

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



CVS commit: src/sys/conf

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jan 28 00:26:53 UTC 2019

Modified Files:
src/sys/conf: files

Log Message:
Spell COMPAT_43 correctly - no NETBSD in the middle


To generate a diff of this commit:
cvs rdiff -u -r1.1225 -r1.1226 src/sys/conf/files

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



CVS commit: src/sys/conf

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jan 28 00:26:53 UTC 2019

Modified Files:
src/sys/conf: files

Log Message:
Spell COMPAT_43 correctly - no NETBSD in the middle


To generate a diff of this commit:
cvs rdiff -u -r1.1225 -r1.1226 src/sys/conf/files

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

Modified files:

Index: src/sys/conf/files
diff -u src/sys/conf/files:1.1225 src/sys/conf/files:1.1226
--- src/sys/conf/files:1.1225	Mon Jan 28 00:00:18 2019
+++ src/sys/conf/files	Mon Jan 28 00:26:53 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: files,v 1.1225 2019/01/28 00:00:18 christos Exp $
+#	$NetBSD: files,v 1.1226 2019/01/28 00:26:53 pgoyette Exp $
 #	@(#)files.newconf	7.5 (Berkeley) 5/10/93
 
 version 	20171118
@@ -151,8 +151,8 @@ defflag	opt_compat_netbsd.h	COMPAT_11: C
 defflag	opt_compat_netbsd.h	COMPAT_10: COMPAT_11, COMPAT_NETBSD
 defflag	opt_compat_netbsd.h	COMPAT_09: COMPAT_10, COMPAT_NETBSD
 defflagCOMPAT_OSSAUDIO
-defflagCOMPAT_FREEBSD: COMPAT_09, COMPAT_NETBSD_43
-defflagCOMPAT_LINUX: COMPAT_NETBSD, COMPAT_NETBSD_43
+defflagCOMPAT_FREEBSD: COMPAT_09, COMPAT_43
+defflagCOMPAT_LINUX: COMPAT_NETBSD, COMPAT_43
 defflagCOMPAT_OSF1
 defflagCOMPAT_SUNOS: COMPAT_30
 defflagCOMPAT_ULTRIX: COMPAT_50



CVS commit: src/sys/conf

2019-01-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 28 00:00:18 UTC 2019

Modified Files:
src/sys/conf: files

Log Message:
comma police.


To generate a diff of this commit:
cvs rdiff -u -r1.1224 -r1.1225 src/sys/conf/files

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



CVS commit: src/sys/conf

2019-01-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 28 00:00:18 UTC 2019

Modified Files:
src/sys/conf: files

Log Message:
comma police.


To generate a diff of this commit:
cvs rdiff -u -r1.1224 -r1.1225 src/sys/conf/files

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

Modified files:

Index: src/sys/conf/files
diff -u src/sys/conf/files:1.1224 src/sys/conf/files:1.1225
--- src/sys/conf/files:1.1224	Sun Jan 27 17:06:07 2019
+++ src/sys/conf/files	Sun Jan 27 19:00:18 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: files,v 1.1224 2019/01/27 22:06:07 pgoyette Exp $
+#	$NetBSD: files,v 1.1225 2019/01/28 00:00:18 christos Exp $
 #	@(#)files.newconf	7.5 (Berkeley) 5/10/93
 
 version 	20171118
@@ -151,8 +151,8 @@ defflag	opt_compat_netbsd.h	COMPAT_11: C
 defflag	opt_compat_netbsd.h	COMPAT_10: COMPAT_11, COMPAT_NETBSD
 defflag	opt_compat_netbsd.h	COMPAT_09: COMPAT_10, COMPAT_NETBSD
 defflagCOMPAT_OSSAUDIO
-defflagCOMPAT_FREEBSD: COMPAT_09 COMPAT_NETBSD_43
-defflagCOMPAT_LINUX: COMPAT_NETBSD COMPAT_NETBSD_43
+defflagCOMPAT_FREEBSD: COMPAT_09, COMPAT_NETBSD_43
+defflagCOMPAT_LINUX: COMPAT_NETBSD, COMPAT_NETBSD_43
 defflagCOMPAT_OSF1
 defflagCOMPAT_SUNOS: COMPAT_30
 defflagCOMPAT_ULTRIX: COMPAT_50



CVS commit: src/sys/conf

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jan 27 22:06:07 UTC 2019

Modified Files:
src/sys/conf: files

Log Message:
COMPAT_FREEBSD also requires COMPAT_43


To generate a diff of this commit:
cvs rdiff -u -r1.1223 -r1.1224 src/sys/conf/files

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



CVS commit: src/sys/conf

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jan 27 22:06:07 UTC 2019

Modified Files:
src/sys/conf: files

Log Message:
COMPAT_FREEBSD also requires COMPAT_43


To generate a diff of this commit:
cvs rdiff -u -r1.1223 -r1.1224 src/sys/conf/files

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

Modified files:

Index: src/sys/conf/files
diff -u src/sys/conf/files:1.1223 src/sys/conf/files:1.1224
--- src/sys/conf/files:1.1223	Sun Jan 27 22:00:14 2019
+++ src/sys/conf/files	Sun Jan 27 22:06:07 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: files,v 1.1223 2019/01/27 22:00:14 pgoyette Exp $
+#	$NetBSD: files,v 1.1224 2019/01/27 22:06:07 pgoyette Exp $
 #	@(#)files.newconf	7.5 (Berkeley) 5/10/93
 
 version 	20171118
@@ -151,7 +151,7 @@ defflag	opt_compat_netbsd.h	COMPAT_11: C
 defflag	opt_compat_netbsd.h	COMPAT_10: COMPAT_11, COMPAT_NETBSD
 defflag	opt_compat_netbsd.h	COMPAT_09: COMPAT_10, COMPAT_NETBSD
 defflagCOMPAT_OSSAUDIO
-defflagCOMPAT_FREEBSD: COMPAT_09
+defflagCOMPAT_FREEBSD: COMPAT_09 COMPAT_NETBSD_43
 defflagCOMPAT_LINUX: COMPAT_NETBSD COMPAT_NETBSD_43
 defflagCOMPAT_OSF1
 defflagCOMPAT_SUNOS: COMPAT_30



CVS commit: src/sys/conf

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jan 27 22:00:14 UTC 2019

Modified Files:
src/sys/conf: files

Log Message:
Adjust dependencies for COMPAT_FREEBSD and COMPAT_LINUX

Should address kern/53915


To generate a diff of this commit:
cvs rdiff -u -r1.1222 -r1.1223 src/sys/conf/files

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



CVS commit: src/sys/conf

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jan 27 22:00:14 UTC 2019

Modified Files:
src/sys/conf: files

Log Message:
Adjust dependencies for COMPAT_FREEBSD and COMPAT_LINUX

Should address kern/53915


To generate a diff of this commit:
cvs rdiff -u -r1.1222 -r1.1223 src/sys/conf/files

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

Modified files:

Index: src/sys/conf/files
diff -u src/sys/conf/files:1.1222 src/sys/conf/files:1.1223
--- src/sys/conf/files:1.1222	Sun Jan 27 02:08:41 2019
+++ src/sys/conf/files	Sun Jan 27 22:00:14 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: files,v 1.1222 2019/01/27 02:08:41 pgoyette Exp $
+#	$NetBSD: files,v 1.1223 2019/01/27 22:00:14 pgoyette Exp $
 #	@(#)files.newconf	7.5 (Berkeley) 5/10/93
 
 version 	20171118
@@ -151,8 +151,8 @@ defflag	opt_compat_netbsd.h	COMPAT_11: C
 defflag	opt_compat_netbsd.h	COMPAT_10: COMPAT_11, COMPAT_NETBSD
 defflag	opt_compat_netbsd.h	COMPAT_09: COMPAT_10, COMPAT_NETBSD
 defflagCOMPAT_OSSAUDIO
-defflagCOMPAT_FREEBSD: COMPAT_30
-defflagCOMPAT_LINUX: COMPAT_NETBSD
+defflagCOMPAT_FREEBSD: COMPAT_09
+defflagCOMPAT_LINUX: COMPAT_NETBSD COMPAT_NETBSD_43
 defflagCOMPAT_OSF1
 defflagCOMPAT_SUNOS: COMPAT_30
 defflagCOMPAT_ULTRIX: COMPAT_50



Re: CVS commit: src/bin/sleep

2019-01-27 Thread Kamil Rytarowski
On 27.01.2019 06:54, Kamil Rytarowski wrote:
> On 27.01.2019 05:42, Robert Elz wrote:
>> Yes, like English...   I wasn't previously aware that '.' was ever used
>> as the grouping char, though I did believe that some locales use a
>> space for that purpose.
> 
> I don't know whether there is formality that is followed, but in
> practice people use no distinction, spaces (or some automatic distance
> in font grouping numbers) or dots/commas (the other character that has
> been used for radix). In computer science and some programming languages
> there are used '_' (especially for hex numbers).
> 
> One of the reasons I prefer to reduce it (at least for my own purposes)
> to printing text, not parsing files.
> 

As anglophones didn't catch it... the usage of "," is common mainly in
financial use-cases. Passing to sleep 1,2 or 1.000 makes as much sense
as passing to it 1000USD.



signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/sys/arch

2019-01-27 Thread Maxime Villard

Le 27/01/2019 à 18:59, David A. Holland a écrit :

Module Name:src
Committed By:   dholland
Date:   Sun Jan 27 17:59:23 UTC 2019

Modified Files:
src/sys/arch/algor/conf: majors.algor
src/sys/arch/alpha/conf: majors.alpha
src/sys/arch/amd64/conf: majors.amd64
src/sys/arch/bebox/conf: majors.bebox
src/sys/arch/evbmips/conf: majors.evbmips
src/sys/arch/i386/conf: majors.i386
src/sys/arch/ia64/conf: majors.ia64
src/sys/arch/ibmnws/conf: majors.ibmnws
src/sys/arch/mvmeppc/conf: majors.mvmeppc
src/sys/arch/powerpc/conf: majors.powerpc
src/sys/arch/prep/conf: majors.prep
src/sys/arch/riscv/conf: majors.riscv

Log Message:
Restore satlink's majors entries commented out and marked obsolete.
Otherwise they might accidentally get reused later and cause a
security problem.


This is completely useless, please revert. You are re-adding references
to satlink without a good reason.

We've never marked entries as obsolete in majors (just check amd64's
cvs log). If you really think this matters, then please add all the
obsoletes that are needed after all these years of changes.


CVS commit: src/sys/compat/common

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jan 27 21:25:24 UTC 2019

Modified Files:
src/sys/compat/common: kern_mod_80.c

Log Message:
Include new header from correct directory


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/common/kern_mod_80.c

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

Modified files:

Index: src/sys/compat/common/kern_mod_80.c
diff -u src/sys/compat/common/kern_mod_80.c:1.3 src/sys/compat/common/kern_mod_80.c:1.4
--- src/sys/compat/common/kern_mod_80.c:1.3	Sun Jan 27 18:29:10 2019
+++ src/sys/compat/common/kern_mod_80.c	Sun Jan 27 21:25:24 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_mod_80.c,v 1.3 2019/01/27 18:29:10 christos Exp $	*/
+/*	$NetBSD: kern_mod_80.c,v 1.4 2019/01/27 21:25:24 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_mod_80.c,v 1.3 2019/01/27 18:29:10 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_mod_80.c,v 1.4 2019/01/27 21:25:24 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -49,7 +49,8 @@ __KERNEL_RCSID(0, "$NetBSD: kern_mod_80.
 #include 
 #include 
 #include 
-#include 
+
+#include 
 
 #include 
 



CVS commit: src/sys/compat/common

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jan 27 21:25:24 UTC 2019

Modified Files:
src/sys/compat/common: kern_mod_80.c

Log Message:
Include new header from correct directory


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/common/kern_mod_80.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/aarch64/aarch64

2019-01-27 Thread Alexander Nasonov
Module Name:src
Committed By:   alnsn
Date:   Sun Jan 27 19:13:04 UTC 2019

Modified Files:
src/sys/arch/aarch64/aarch64: netbsd32_machdep.c

Log Message:
Local variable p is __diagused.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/aarch64/aarch64/netbsd32_machdep.c

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

Modified files:

Index: src/sys/arch/aarch64/aarch64/netbsd32_machdep.c
diff -u src/sys/arch/aarch64/aarch64/netbsd32_machdep.c:1.4 src/sys/arch/aarch64/aarch64/netbsd32_machdep.c:1.5
--- src/sys/arch/aarch64/aarch64/netbsd32_machdep.c:1.4	Sun Jan 27 02:08:36 2019
+++ src/sys/arch/aarch64/aarch64/netbsd32_machdep.c	Sun Jan 27 19:13:04 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32_machdep.c,v 1.4 2019/01/27 02:08:36 pgoyette Exp $	*/
+/*	$NetBSD: netbsd32_machdep.c,v 1.5 2019/01/27 19:13:04 alnsn Exp $	*/
 
 /*
  * Copyright (c) 2018 Ryo Shimizu 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.4 2019/01/27 02:08:36 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.5 2019/01/27 19:13:04 alnsn Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -308,7 +308,7 @@ startlwp32(void *arg)
 int
 cpu_mcontext32_validate(struct lwp *l, const mcontext32_t *mcp)
 {
-	struct proc * const p = l->l_proc;
+	struct proc * const p __diagused = l->l_proc;
 	const uint32_t spsr = mcp->__gregs[_REG_CPSR];
 
 	KASSERT(p->p_flag & PK_32);



CVS commit: src/sys/arch/aarch64/aarch64

2019-01-27 Thread Alexander Nasonov
Module Name:src
Committed By:   alnsn
Date:   Sun Jan 27 19:13:04 UTC 2019

Modified Files:
src/sys/arch/aarch64/aarch64: netbsd32_machdep.c

Log Message:
Local variable p is __diagused.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/aarch64/aarch64/netbsd32_machdep.c

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



Re: CVS commit: src/sys/dev/pci

2019-01-27 Thread Frank Kardel

Hi,

that made all devices being recognized during boot with UEFI - good.


We seem closer, but not there yet (for my main board at least).

There is still an issue with interrupts (or dma - see missing bus master 
in pci differences).


It seems device interrupts via ioapic don't get interrupts/data at all 
or not reliably. This affects following devices AFAICS on my system:

com*
wm1 (PCIe network card)
radeon (see errors below)

MSI/X using devices seem to do fine.

Interrupt allocation is the same in both environments:

UEFI & CSM
interrupt iddevice name(s)
ioapic0 pin 9   acpi SCI
ioapic0 pin 1   pckbc1 kbd
msix0 vec 0 nvme0 adminq
msix0 vec 1 nvme0 ioq1
msix0 vec 2 nvme0 ioq2
msix0 vec 3 nvme0 ioq3
msix0 vec 4 nvme0 ioq4
msix0 vec 5 nvme0 ioq5
msix0 vec 6 nvme0 ioq6
msix0 vec 7 nvme0 ioq7
msi1 vec 0  xhci0
msi2 vec 0  ahcisata0
msix3 vec 0 wm0TXRX0
msix3 vec 1 wm0TXRX1
msix3 vec 2 wm0LINK
ioapic1 pin 10  wm1, com5
ioapic1 pin 11  com2, ahd0
ioapic1 pin 8   com3
ioapic1 pin 9   com4
msi4 vec 0  hdaudio0
msi5 vec 0  mpii0
msi6 vec 0  xhci1
msi7 vec 0  ahcisata1
msi8 vec 0  hdaudio1
ioapic0 pin 4   com0
ioapic1 pin 30  radeon0

Other hickups seen:
  keyboard input (PS/2) is sometimes repeated
  glxgears regularly stalls for a seconds and does not really run smoothly.
  llinfo entries for wm1 fail, arp resolution on wm1 fail
  wm1 seems completely broken - no packets are received there

dmesg differences are from efi presence, minor difference memory size, 
different usb detection sequence. nothing critical.


The main difference is the radeon* fails to properly initialize giving 
these diagnostics:

 kern info: [drm] radeon: irq initialized.
kern info: [drm] ring test on 0 succeeded in 0 usecs
kern info: [drm] ring test on 3 succeeded in 3 usecs
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:345)uvd_v1_0_start] 
*ERROR* UVD not responding, trying to reset the VCPU!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c:354)uvd_v1_0_start] 
*ERROR* UVD not responding, giving up!!!
kern error: 
[drm:(/src/NetBSD/cur/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen.c:5688)evergreen_startup] 
*ERROR* radeon: error initializing UVD (-1).

kern info: [drm] ib test on ring 0 succeeded in 0 usecs
kern info: [drm] ib test on ring 3 succeeded in 0 usecs

Differences between pci configs (lspic -v)
--- lspci-csm-20190127  2019-01-27 14:42:57.454117956 +0100
+++ lspci-uefi-20190127 2019-01-27 14:51:27.003880544 +0100
@@ -4,7 +4,7 @@

 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1451
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1451
-   Flags: bus master, fast devsel, latency 0, IRQ 255
+   Flags: fast devsel, IRQ 255
Capabilities: [40] Secure device 
Capabilities: [64] MSI: Enable- Count=1/4 Maskable- 64bit+
Capabilities: [74] HyperTransport: MSI Mapping Enable+ Fixed+
@@ -213,7 +213,7 @@
Capabilities: [100] Advanced Error Reporting

 1d:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 
(rev 02) (prog-if 00 [Normal decode])

-   Flags: bus master, fast devsel, latency 0, IRQ 11
+   Flags: fast devsel, IRQ 11
Bus: primary=1d, secondary=1e, subordinate=1e, sec-latency=0
I/O behind br

CVS commit: [netbsd-8] src/doc

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 18:47:59 UTC 2019

Modified Files:
src/doc [netbsd-8]: CHANGES-8.1

Log Message:
Tickets #1170, #1172, #1173 and #1174.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.94 -r1.1.2.95 src/doc/CHANGES-8.1

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



CVS commit: [netbsd-8] src/doc

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 18:47:59 UTC 2019

Modified Files:
src/doc [netbsd-8]: CHANGES-8.1

Log Message:
Tickets #1170, #1172, #1173 and #1174.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.94 -r1.1.2.95 src/doc/CHANGES-8.1

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

Modified files:

Index: src/doc/CHANGES-8.1
diff -u src/doc/CHANGES-8.1:1.1.2.94 src/doc/CHANGES-8.1:1.1.2.95
--- src/doc/CHANGES-8.1:1.1.2.94	Thu Jan 24 15:36:05 2019
+++ src/doc/CHANGES-8.1	Sun Jan 27 18:47:59 2019
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-8.1,v 1.1.2.94 2019/01/24 15:36:05 martin Exp $
+# $NetBSD: CHANGES-8.1,v 1.1.2.95 2019/01/27 18:47:59 martin Exp $
 
 A complete list of changes from the NetBSD 8.0 release to the NetBSD 8.1
 release:
@@ -2279,3 +2279,45 @@ sys/kern/kern_ntptime.c1.60
 	stack disclosure.
 	[maxv, ticket #1168]
 
+lib/libc/gen/popen.c1.36
+
+	Use a mutex instead of an rwlock to assure thread safety.
+	[christos, ticket #1170]
+
+sys/dev/pci/if_fxp_pci.c			1.84,1.85
+sys/dev/pci/ixgbe/ixgbe.c			1.171
+sys/dev/pci/ixgbe/ixv.c1.108
+sys/dev/pci/nvme_pci.c1.26
+sys/dev/pci/xhci_pci.c1.16,1.21
+
+	Style/cleanup/remove debug code.
+	Explicitly enable address decoding if the firmware did not do it.
+	[msaitoh, ticket #1172]
+
+sys/arch/alpha/alpha/machdep.c			1.352
+sys/arch/amd64/amd64/netbsd32_machdep.c		1.117
+sys/arch/arm/arm/sig_machdep.c			1.51
+sys/arch/hppa/hppa/sig_machdep.c		1.26
+sys/arch/i386/i386/machdep.c			1.813
+sys/arch/m68k/m68k/sig_machdep.c		1.50
+sys/arch/mips/mips/netbsd32_machdep.c		1.16
+sys/arch/mips/mips/sig_machdep.c		1.24
+sys/arch/powerpc/powerpc/sig_machdep.c		1.46
+sys/arch/riscv/riscv/sig_machdep.c		1.2
+sys/arch/sh3/sh3/sh3_machdep.c			1.106
+sys/arch/sparc64/sparc64/machdep.c		1.289
+sys/arch/sparc64/sparc64/netbsd32_machdep.c	1.111
+sys/arch/usermode/target/i386/cpu_i386.c	1.8
+sys/arch/usermode/target/x86_64/cpu_x86_64.c	1.7
+sys/arch/vax/vax/sig_machdep.c			1.23
+
+	Fix widespread leak in the sendsig_siginfo() functions.
+	sigframe_siginfo has padding, so zero it out properly.
+	[maxv, ticket #1173]
+
+sys/arch/amd64/include/vmparam.h		1.50
+
+	Increase VM_PHYSSEG_MAX from 32 to 64.
+	Heavily fragmented memory maps have been discovered in the wild.
+	[maxv, ticket #1174]
+



CVS commit: [netbsd-8] src/sys/arch/amd64/include

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 18:46:11 UTC 2019

Modified Files:
src/sys/arch/amd64/include [netbsd-8]: vmparam.h

Log Message:
Pull up following revision(s) (requested by maxv in ticket #1174):

sys/arch/amd64/include/vmparam.h: revision 1.50

Increase VM_PHYSSEG_MAX from 32 to 64. Saw an example on tech-kern@ of a
heavily fragmented memory map.


To generate a diff of this commit:
cvs rdiff -u -r1.39.6.2 -r1.39.6.3 src/sys/arch/amd64/include/vmparam.h

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

Modified files:

Index: src/sys/arch/amd64/include/vmparam.h
diff -u src/sys/arch/amd64/include/vmparam.h:1.39.6.2 src/sys/arch/amd64/include/vmparam.h:1.39.6.3
--- src/sys/arch/amd64/include/vmparam.h:1.39.6.2	Wed Apr 11 14:37:11 2018
+++ src/sys/arch/amd64/include/vmparam.h	Sun Jan 27 18:46:11 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: vmparam.h,v 1.39.6.2 2018/04/11 14:37:11 martin Exp $	*/
+/*	$NetBSD: vmparam.h,v 1.39.6.3 2019/01/27 18:46:11 martin Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -150,7 +150,7 @@
 /* virtual sizes (bytes) for various kernel submaps */
 #define VM_PHYS_SIZE		(USRIOSIZE*PAGE_SIZE)
 
-#define VM_PHYSSEG_MAX		32	/* 1 "hole" + 31 free lists */
+#define VM_PHYSSEG_MAX		64	/* 1 "hole" + 63 free lists */
 #define VM_PHYSSEG_STRAT	VM_PSTRAT_BIGFIRST
 
 #define	VM_NFREELIST		6



CVS commit: [netbsd-8] src/sys/arch/amd64/include

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 18:46:11 UTC 2019

Modified Files:
src/sys/arch/amd64/include [netbsd-8]: vmparam.h

Log Message:
Pull up following revision(s) (requested by maxv in ticket #1174):

sys/arch/amd64/include/vmparam.h: revision 1.50

Increase VM_PHYSSEG_MAX from 32 to 64. Saw an example on tech-kern@ of a
heavily fragmented memory map.


To generate a diff of this commit:
cvs rdiff -u -r1.39.6.2 -r1.39.6.3 src/sys/arch/amd64/include/vmparam.h

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



CVS commit: [netbsd-8] src/sys/arch

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 18:43:09 UTC 2019

Modified Files:
src/sys/arch/alpha/alpha [netbsd-8]: machdep.c
src/sys/arch/amd64/amd64 [netbsd-8]: netbsd32_machdep.c
src/sys/arch/arm/arm [netbsd-8]: sig_machdep.c
src/sys/arch/hppa/hppa [netbsd-8]: sig_machdep.c
src/sys/arch/i386/i386 [netbsd-8]: machdep.c
src/sys/arch/m68k/m68k [netbsd-8]: sig_machdep.c
src/sys/arch/mips/mips [netbsd-8]: netbsd32_machdep.c sig_machdep.c
src/sys/arch/powerpc/powerpc [netbsd-8]: sig_machdep.c
src/sys/arch/riscv/riscv [netbsd-8]: sig_machdep.c
src/sys/arch/sh3/sh3 [netbsd-8]: sh3_machdep.c
src/sys/arch/sparc64/sparc64 [netbsd-8]: machdep.c netbsd32_machdep.c
src/sys/arch/usermode/target/i386 [netbsd-8]: cpu_i386.c
src/sys/arch/usermode/target/x86_64 [netbsd-8]: cpu_x86_64.c
src/sys/arch/vax/vax [netbsd-8]: sig_machdep.c

Log Message:
Pull up following revision(s) (requested by maxv in ticket #1173):
sys/arch/hppa/hppa/sig_machdep.c: revision 1.26
sys/arch/arm/arm/sig_machdep.c: revision 1.51
sys/arch/i386/i386/machdep.c: revision 1.813
sys/arch/alpha/alpha/machdep.c: revision 1.352
sys/arch/m68k/m68k/sig_machdep.c: revision 1.50
sys/arch/usermode/target/i386/cpu_i386.c: revision 1.8
sys/arch/sparc64/sparc64/machdep.c: revision 1.289
sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.111
sys/arch/powerpc/powerpc/sig_machdep.c: revision 1.46
sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.117
sys/arch/sh3/sh3/sh3_machdep.c: revision 1.106
sys/arch/mips/mips/netbsd32_machdep.c: revision 1.16
sys/arch/mips/mips/sig_machdep.c: revision 1.24
sys/arch/riscv/riscv/sig_machdep.c: revision 1.2
sys/arch/usermode/target/x86_64/cpu_x86_64.c: revision 1.7
sys/arch/vax/vax/sig_machdep.c: revision 1.23

Fix widespread leak in the sendsig_siginfo() functions. sigframe_siginfo
has padding, so zero it out properly. While here I'm also zeroing out some
other things in several ports, for safety. Same problem in netbsd32, so
fix that too.

I can't compile-test on each architecture, but there should be no
breakage (tm).

Overall this fixes at least 14 info leaks. Prompted by the discovery by
KLEAK of a leak in amd64's sendsig_siginfo.


To generate a diff of this commit:
cvs rdiff -u -r1.350 -r1.350.6.1 src/sys/arch/alpha/alpha/machdep.c
cvs rdiff -u -r1.105.2.1 -r1.105.2.2 \
src/sys/arch/amd64/amd64/netbsd32_machdep.c
cvs rdiff -u -r1.49 -r1.49.10.1 src/sys/arch/arm/arm/sig_machdep.c
cvs rdiff -u -r1.25 -r1.25.48.1 src/sys/arch/hppa/hppa/sig_machdep.c
cvs rdiff -u -r1.782.6.6 -r1.782.6.7 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.49 -r1.49.32.1 src/sys/arch/m68k/m68k/sig_machdep.c
cvs rdiff -u -r1.14 -r1.14.6.1 src/sys/arch/mips/mips/netbsd32_machdep.c
cvs rdiff -u -r1.23 -r1.23.46.1 src/sys/arch/mips/mips/sig_machdep.c
cvs rdiff -u -r1.45 -r1.45.6.1 src/sys/arch/powerpc/powerpc/sig_machdep.c
cvs rdiff -u -r1.1 -r1.1.12.1 src/sys/arch/riscv/riscv/sig_machdep.c
cvs rdiff -u -r1.105 -r1.105.8.1 src/sys/arch/sh3/sh3/sh3_machdep.c
cvs rdiff -u -r1.287 -r1.287.8.1 src/sys/arch/sparc64/sparc64/machdep.c
cvs rdiff -u -r1.110 -r1.110.8.1 \
src/sys/arch/sparc64/sparc64/netbsd32_machdep.c
cvs rdiff -u -r1.4 -r1.4.34.1 src/sys/arch/usermode/target/i386/cpu_i386.c
cvs rdiff -u -r1.2 -r1.2.42.1 \
src/sys/arch/usermode/target/x86_64/cpu_x86_64.c
cvs rdiff -u -r1.22 -r1.22.2.1 src/sys/arch/vax/vax/sig_machdep.c

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

Modified files:

Index: src/sys/arch/alpha/alpha/machdep.c
diff -u src/sys/arch/alpha/alpha/machdep.c:1.350 src/sys/arch/alpha/alpha/machdep.c:1.350.6.1
--- src/sys/arch/alpha/alpha/machdep.c:1.350	Thu Mar 16 16:13:20 2017
+++ src/sys/arch/alpha/alpha/machdep.c	Sun Jan 27 18:43:08 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.350 2017/03/16 16:13:20 chs Exp $ */
+/* $NetBSD: machdep.c,v 1.350.6.1 2019/01/27 18:43:08 martin Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
 
 #include 			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.350 2017/03/16 16:13:20 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.350.6.1 2019/01/27 18:43:08 martin Exp $");
 
 #include 
 #include 
@@ -1467,12 +1467,11 @@ sendsig_siginfo(const ksiginfo_t *ksi, c
 #endif
 
 	/* Build stack frame for signal trampoline. */
-
+	memset(, 0, sizeof(frame));
 	frame.sf_si._info = ksi->ksi_info;
 	frame.sf_uc.uc_flags = _UC_SIGMASK;
 	frame.sf_uc.uc_sigmask = *mask;
 	frame.sf_uc.uc_link = l->l_ctxlink;
-	memset(_uc.uc_stack, 0, sizeof(frame.sf_uc.uc_stack));
 	sendsig_reset(l, sig);
 	mutex_exit(p->p_lock);
 	cpu_getmcontext(l, _uc.uc_mcontext, _uc.uc_flags);

Index: 

CVS commit: [netbsd-8] src/sys/arch

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 18:43:09 UTC 2019

Modified Files:
src/sys/arch/alpha/alpha [netbsd-8]: machdep.c
src/sys/arch/amd64/amd64 [netbsd-8]: netbsd32_machdep.c
src/sys/arch/arm/arm [netbsd-8]: sig_machdep.c
src/sys/arch/hppa/hppa [netbsd-8]: sig_machdep.c
src/sys/arch/i386/i386 [netbsd-8]: machdep.c
src/sys/arch/m68k/m68k [netbsd-8]: sig_machdep.c
src/sys/arch/mips/mips [netbsd-8]: netbsd32_machdep.c sig_machdep.c
src/sys/arch/powerpc/powerpc [netbsd-8]: sig_machdep.c
src/sys/arch/riscv/riscv [netbsd-8]: sig_machdep.c
src/sys/arch/sh3/sh3 [netbsd-8]: sh3_machdep.c
src/sys/arch/sparc64/sparc64 [netbsd-8]: machdep.c netbsd32_machdep.c
src/sys/arch/usermode/target/i386 [netbsd-8]: cpu_i386.c
src/sys/arch/usermode/target/x86_64 [netbsd-8]: cpu_x86_64.c
src/sys/arch/vax/vax [netbsd-8]: sig_machdep.c

Log Message:
Pull up following revision(s) (requested by maxv in ticket #1173):
sys/arch/hppa/hppa/sig_machdep.c: revision 1.26
sys/arch/arm/arm/sig_machdep.c: revision 1.51
sys/arch/i386/i386/machdep.c: revision 1.813
sys/arch/alpha/alpha/machdep.c: revision 1.352
sys/arch/m68k/m68k/sig_machdep.c: revision 1.50
sys/arch/usermode/target/i386/cpu_i386.c: revision 1.8
sys/arch/sparc64/sparc64/machdep.c: revision 1.289
sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.111
sys/arch/powerpc/powerpc/sig_machdep.c: revision 1.46
sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.117
sys/arch/sh3/sh3/sh3_machdep.c: revision 1.106
sys/arch/mips/mips/netbsd32_machdep.c: revision 1.16
sys/arch/mips/mips/sig_machdep.c: revision 1.24
sys/arch/riscv/riscv/sig_machdep.c: revision 1.2
sys/arch/usermode/target/x86_64/cpu_x86_64.c: revision 1.7
sys/arch/vax/vax/sig_machdep.c: revision 1.23

Fix widespread leak in the sendsig_siginfo() functions. sigframe_siginfo
has padding, so zero it out properly. While here I'm also zeroing out some
other things in several ports, for safety. Same problem in netbsd32, so
fix that too.

I can't compile-test on each architecture, but there should be no
breakage (tm).

Overall this fixes at least 14 info leaks. Prompted by the discovery by
KLEAK of a leak in amd64's sendsig_siginfo.


To generate a diff of this commit:
cvs rdiff -u -r1.350 -r1.350.6.1 src/sys/arch/alpha/alpha/machdep.c
cvs rdiff -u -r1.105.2.1 -r1.105.2.2 \
src/sys/arch/amd64/amd64/netbsd32_machdep.c
cvs rdiff -u -r1.49 -r1.49.10.1 src/sys/arch/arm/arm/sig_machdep.c
cvs rdiff -u -r1.25 -r1.25.48.1 src/sys/arch/hppa/hppa/sig_machdep.c
cvs rdiff -u -r1.782.6.6 -r1.782.6.7 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.49 -r1.49.32.1 src/sys/arch/m68k/m68k/sig_machdep.c
cvs rdiff -u -r1.14 -r1.14.6.1 src/sys/arch/mips/mips/netbsd32_machdep.c
cvs rdiff -u -r1.23 -r1.23.46.1 src/sys/arch/mips/mips/sig_machdep.c
cvs rdiff -u -r1.45 -r1.45.6.1 src/sys/arch/powerpc/powerpc/sig_machdep.c
cvs rdiff -u -r1.1 -r1.1.12.1 src/sys/arch/riscv/riscv/sig_machdep.c
cvs rdiff -u -r1.105 -r1.105.8.1 src/sys/arch/sh3/sh3/sh3_machdep.c
cvs rdiff -u -r1.287 -r1.287.8.1 src/sys/arch/sparc64/sparc64/machdep.c
cvs rdiff -u -r1.110 -r1.110.8.1 \
src/sys/arch/sparc64/sparc64/netbsd32_machdep.c
cvs rdiff -u -r1.4 -r1.4.34.1 src/sys/arch/usermode/target/i386/cpu_i386.c
cvs rdiff -u -r1.2 -r1.2.42.1 \
src/sys/arch/usermode/target/x86_64/cpu_x86_64.c
cvs rdiff -u -r1.22 -r1.22.2.1 src/sys/arch/vax/vax/sig_machdep.c

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



CVS commit: [netbsd-8] src/sys/dev/pci

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 18:35:20 UTC 2019

Modified Files:
src/sys/dev/pci [netbsd-8]: if_fxp_pci.c nvme_pci.c xhci_pci.c
src/sys/dev/pci/ixgbe [netbsd-8]: ixgbe.c ixv.c

Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #1172):

sys/dev/pci/nvme_pci.c: revision 1.26
sys/dev/pci/xhci_pci.c: revision 1.21
sys/dev/pci/ixgbe/ixv.c: revision 1.108
sys/dev/pci/ixgbe/ixgbe.c: revision 1.171
sys/dev/pci/if_fxp_pci.c: revision 1.84
sys/dev/pci/if_fxp_pci.c: revision 1.85
sys/dev/pci/xhci_pci.c: revision 1.16

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

 -

  KNF. No functional change.

 -

  Nowadays some UEFI BIOSes don't enable some PCI devices' address decoding.
To resolve this problem, pci_map.c rev. 1.34-1.36 changed the
pci_mapreg_(sub)map()'s to set the decode bit if it's not set. It's good for
almost all drivers, but some other drivers don't use pci_mapreg_map().
In drivers which don't use pci_mapreg_map(), some of them explicitly enable
decoding but others don't. Add code to enable decoding to them.

  See also the following discussion:
http://mail-index.netbsd.org/tech-kern/2017/03/22/msg021678.html


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.82.10.1 src/sys/dev/pci/if_fxp_pci.c
cvs rdiff -u -r1.19.2.1 -r1.19.2.2 src/sys/dev/pci/nvme_pci.c
cvs rdiff -u -r1.8.6.1 -r1.8.6.2 src/sys/dev/pci/xhci_pci.c
cvs rdiff -u -r1.88.2.25 -r1.88.2.26 src/sys/dev/pci/ixgbe/ixgbe.c
cvs rdiff -u -r1.56.2.18 -r1.56.2.19 src/sys/dev/pci/ixgbe/ixv.c

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



CVS commit: [netbsd-8] src/sys/dev/pci

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 18:35:20 UTC 2019

Modified Files:
src/sys/dev/pci [netbsd-8]: if_fxp_pci.c nvme_pci.c xhci_pci.c
src/sys/dev/pci/ixgbe [netbsd-8]: ixgbe.c ixv.c

Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #1172):

sys/dev/pci/nvme_pci.c: revision 1.26
sys/dev/pci/xhci_pci.c: revision 1.21
sys/dev/pci/ixgbe/ixv.c: revision 1.108
sys/dev/pci/ixgbe/ixgbe.c: revision 1.171
sys/dev/pci/if_fxp_pci.c: revision 1.84
sys/dev/pci/if_fxp_pci.c: revision 1.85
sys/dev/pci/xhci_pci.c: revision 1.16

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

 -

  KNF. No functional change.

 -

  Nowadays some UEFI BIOSes don't enable some PCI devices' address decoding.
To resolve this problem, pci_map.c rev. 1.34-1.36 changed the
pci_mapreg_(sub)map()'s to set the decode bit if it's not set. It's good for
almost all drivers, but some other drivers don't use pci_mapreg_map().
In drivers which don't use pci_mapreg_map(), some of them explicitly enable
decoding but others don't. Add code to enable decoding to them.

  See also the following discussion:
http://mail-index.netbsd.org/tech-kern/2017/03/22/msg021678.html


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.82.10.1 src/sys/dev/pci/if_fxp_pci.c
cvs rdiff -u -r1.19.2.1 -r1.19.2.2 src/sys/dev/pci/nvme_pci.c
cvs rdiff -u -r1.8.6.1 -r1.8.6.2 src/sys/dev/pci/xhci_pci.c
cvs rdiff -u -r1.88.2.25 -r1.88.2.26 src/sys/dev/pci/ixgbe/ixgbe.c
cvs rdiff -u -r1.56.2.18 -r1.56.2.19 src/sys/dev/pci/ixgbe/ixv.c

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

Modified files:

Index: src/sys/dev/pci/if_fxp_pci.c
diff -u src/sys/dev/pci/if_fxp_pci.c:1.82 src/sys/dev/pci/if_fxp_pci.c:1.82.10.1
--- src/sys/dev/pci/if_fxp_pci.c:1.82	Mon Apr 13 16:33:25 2015
+++ src/sys/dev/pci/if_fxp_pci.c	Sun Jan 27 18:35:19 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_fxp_pci.c,v 1.82 2015/04/13 16:33:25 riastradh Exp $	*/
+/*	$NetBSD: if_fxp_pci.c,v 1.82.10.1 2019/01/27 18:35:19 martin Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_fxp_pci.c,v 1.82 2015/04/13 16:33:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_fxp_pci.c,v 1.82.10.1 2019/01/27 18:35:19 martin Exp $");
 
 #include 
 #include 
@@ -190,13 +190,13 @@ fxp_pci_lookup(const struct pci_attach_a
 	const struct fxp_pci_product *fpp;
 
 	if (PCI_VENDOR(pa->pa_id) != PCI_VENDOR_INTEL)
-		return (NULL);
+		return NULL;
 
 	for (fpp = fxp_pci_products; fpp->fpp_name != NULL; fpp++)
 		if (PCI_PRODUCT(pa->pa_id) == fpp->fpp_prodid)
-			return (fpp);
+			return fpp;
 
-	return (NULL);
+	return NULL;
 }
 
 static int
@@ -205,9 +205,9 @@ fxp_pci_match(device_t parent, cfdata_t 
 	struct pci_attach_args *pa = aux;
 
 	if (fxp_pci_lookup(pa) != NULL)
-		return (1);
+		return 1;
 
-	return (0);
+	return 0;
 }
 
 /*
@@ -245,8 +245,7 @@ fxp_pci_confreg_restore(struct fxp_pci_s
 	reg = pci_conf_read(psc->psc_pc, psc->psc_tag, PCI_COMMAND_STATUS_REG);
 #endif
 
-	pci_conf_write(psc->psc_pc, psc->psc_tag,
-	PCI_COMMAND_STATUS_REG,
+	pci_conf_write(psc->psc_pc, psc->psc_tag, PCI_COMMAND_STATUS_REG,
 	(reg & 0x) |
 	(psc->psc_regs[PCI_COMMAND_STATUS_REG>>2] & 0x));
 	pci_conf_write(psc->psc_pc, psc->psc_tag, PCI_BHLC_REG,
@@ -303,6 +302,7 @@ fxp_pci_attach(device_t parent, device_t
 	bus_space_handle_t ioh, memh;
 	int ioh_valid, memh_valid;
 	bus_addr_t addr;
+	pcireg_t csr;
 	int flags;
 	int error;
 	char intrbuf[PCI_INTRSTR_LEN];
@@ -312,8 +312,7 @@ fxp_pci_attach(device_t parent, device_t
 	/*
 	 * Map control/status registers.
 	 */
-	ioh_valid = (pci_mapreg_map(pa, FXP_PCI_IOBA,
-	PCI_MAPREG_TYPE_IO, 0,
+	ioh_valid = (pci_mapreg_map(pa, FXP_PCI_IOBA, PCI_MAPREG_TYPE_IO, 0,
 	, , NULL, NULL) == 0);
 
 	/*
@@ -352,6 +351,15 @@ fxp_pci_attach(device_t parent, device_t
 	if (memh_valid) {
 		sc->sc_st = memt;
 		sc->sc_sh = memh;
+		/*
+		 * Enable address decoding for memory range in case BIOS or
+		 * UEFI didn't set it.
+		 */
+		csr = pci_conf_read(pa->pa_pc, pa->pa_tag,
+		PCI_COMMAND_STATUS_REG);
+		csr |= PCI_COMMAND_MEM_ENABLE;
+		pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
+		csr);
 	} else if (ioh_valid) {
 		sc->sc_st = iot;
 		sc->sc_sh = ioh;
@@ -541,5 +549,5 @@ fxp_pci_enable(struct fxp_softc *sc)
 	/* Now restore the configuration registers. */
 	fxp_pci_confreg_restore(psc);
 
-	return (0);
+	return 0;
 }

Index: src/sys/dev/pci/nvme_pci.c
diff -u src/sys/dev/pci/nvme_pci.c:1.19.2.1 src/sys/dev/pci/nvme_pci.c:1.19.2.2
--- src/sys/dev/pci/nvme_pci.c:1.19.2.1	Thu Apr 19 15:37:56 2018
+++ src/sys/dev/pci/nvme_pci.c	Sun Jan 27 18:35:19 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: nvme_pci.c,v 1.19.2.1 2018/04/19 15:37:56 martin Exp $	*/
+/*	

CVS commit: src/sys

2019-01-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 27 18:29:10 UTC 2019

Modified Files:
src/sys/compat/common: kern_mod_80.c
src/sys/kern: sys_module.c
src/sys/sys: module.h
Added Files:
src/sys/compat/sys: module.h

Log Message:
- autoload the compat_80 for modstat
- move compat struct to a compat header


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/common/kern_mod_80.c
cvs rdiff -u -r0 -r1.1 src/sys/compat/sys/module.h
cvs rdiff -u -r1.26 -r1.27 src/sys/kern/sys_module.c
cvs rdiff -u -r1.43 -r1.44 src/sys/sys/module.h

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



CVS commit: src/sys

2019-01-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 27 18:29:10 UTC 2019

Modified Files:
src/sys/compat/common: kern_mod_80.c
src/sys/kern: sys_module.c
src/sys/sys: module.h
Added Files:
src/sys/compat/sys: module.h

Log Message:
- autoload the compat_80 for modstat
- move compat struct to a compat header


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/common/kern_mod_80.c
cvs rdiff -u -r0 -r1.1 src/sys/compat/sys/module.h
cvs rdiff -u -r1.26 -r1.27 src/sys/kern/sys_module.c
cvs rdiff -u -r1.43 -r1.44 src/sys/sys/module.h

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

Modified files:

Index: src/sys/compat/common/kern_mod_80.c
diff -u src/sys/compat/common/kern_mod_80.c:1.2 src/sys/compat/common/kern_mod_80.c:1.3
--- src/sys/compat/common/kern_mod_80.c:1.2	Sat Jan 26 21:08:39 2019
+++ src/sys/compat/common/kern_mod_80.c	Sun Jan 27 13:29:10 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_mod_80.c,v 1.2 2019/01/27 02:08:39 pgoyette Exp $	*/
+/*	$NetBSD: kern_mod_80.c,v 1.3 2019/01/27 18:29:10 christos Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_mod_80.c,v 1.2 2019/01/27 02:08:39 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_mod_80.c,v 1.3 2019/01/27 18:29:10 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -49,6 +49,7 @@ __KERNEL_RCSID(0, "$NetBSD: kern_mod_80.
 #include 
 #include 
 #include 
+#include 
 
 #include 
 

Index: src/sys/kern/sys_module.c
diff -u src/sys/kern/sys_module.c:1.26 src/sys/kern/sys_module.c:1.27
--- src/sys/kern/sys_module.c:1.26	Sat Jan 26 21:08:43 2019
+++ src/sys/kern/sys_module.c	Sun Jan 27 13:29:10 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_module.c,v 1.26 2019/01/27 02:08:43 pgoyette Exp $	*/
+/*	$NetBSD: sys_module.c,v 1.27 2019/01/27 18:29:10 christos Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sys_module.c,v 1.26 2019/01/27 02:08:43 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_module.c,v 1.27 2019/01/27 18:29:10 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
@@ -325,7 +325,7 @@ sys_modctl(struct lwp *l, const struct s
 		break;
 
 	default:
-
+		(void)module_autoload("compat_80", MODULE_CLASS_EXEC);
 		MODULE_CALL_HOOK(compat_modstat_80_hook,
 		(SCARG(uap, cmd), , arg), enosys(), error);
 		if (error == ENOSYS)

Index: src/sys/sys/module.h
diff -u src/sys/sys/module.h:1.43 src/sys/sys/module.h:1.44
--- src/sys/sys/module.h:1.43	Sat Jan 26 21:08:50 2019
+++ src/sys/sys/module.h	Sun Jan 27 13:29:10 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: module.h,v 1.43 2019/01/27 02:08:50 pgoyette Exp $	*/
+/*	$NetBSD: module.h,v 1.44 2019/01/27 18:29:10 christos Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -248,22 +248,6 @@ enum modctl {
 };
 
 /*
- * This structure intentionally has the same layout for 32 and 64
- * bit builds.
- */
-typedef struct omodstat {
-	char		oms_name[MAXMODNAME];
-	char		oms_required[MAXMODNAME * MAXMODDEPS];
-	uint64_t	oms_addr;
-	modsrc_t	oms_source;
-	modclass_t	oms_class;
-	u_int		oms_size;
-	u_int		oms_refcnt;
-	u_int		oms_flags;
-	u_int		oms_reserved[3];
-} omodstat_t;
-
-/*
  * This structure is used with the newer version of MODCTL_STAT, which
  * exports strings of arbitrary length for the list of required modules.
  */

Added files:

Index: src/sys/compat/sys/module.h
diff -u /dev/null src/sys/compat/sys/module.h:1.1
--- /dev/null	Sun Jan 27 13:29:10 2019
+++ src/sys/compat/sys/module.h	Sun Jan 27 13:29:10 2019
@@ -0,0 +1,48 @@
+/*	$NetBSD: module.h,v 1.1 2019/01/27 18:29:10 christos Exp $	*/
+
+/*-
+ * Copyright (c) 2008 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY 

CVS commit: [netbsd-8] src/lib/libc/gen

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 18:25:52 UTC 2019

Modified Files:
src/lib/libc/gen [netbsd-8]: popen.c

Log Message:
Pull up following revision(s) (requested by christos in ticket #1170):

lib/libc/gen/popen.c: revision 1.36

PR/53904: Jintao Zhu: Use a mutex instead of an rwlock to assure thread safety


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.35.8.1 src/lib/libc/gen/popen.c

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

Modified files:

Index: src/lib/libc/gen/popen.c
diff -u src/lib/libc/gen/popen.c:1.35 src/lib/libc/gen/popen.c:1.35.8.1
--- src/lib/libc/gen/popen.c:1.35	Mon Feb  2 22:07:05 2015
+++ src/lib/libc/gen/popen.c	Sun Jan 27 18:25:52 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: popen.c,v 1.35 2015/02/02 22:07:05 christos Exp $	*/
+/*	$NetBSD: popen.c,v 1.35.8.1 2019/01/27 18:25:52 martin Exp $	*/
 
 /*
  * Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)popen.c	8.3 (Berkeley) 5/3/95";
 #else
-__RCSID("$NetBSD: popen.c,v 1.35 2015/02/02 22:07:05 christos Exp $");
+__RCSID("$NetBSD: popen.c,v 1.35.8.1 2019/01/27 18:25:52 martin Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -73,7 +73,20 @@ static struct pid {
 } *pidlist; 
 	
 #ifdef _REENTRANT
-static rwlock_t pidlist_lock = RWLOCK_INITIALIZER;
+static  mutex_t pidlist_mutex = MUTEX_INITIALIZER;
+# define MUTEX_LOCK() \
+do { \
+	if (__isthreaded) \
+		mutex_lock(_mutex); \
+} while (/*CONSTCOND*/0)
+# define MUTEX_UNLOCK() \
+do { \
+	if (__isthreaded) \
+		mutex_unlock(_mutex); \
+} while (/*CONSTCOND*/0)
+#else
+# define MUTEX_LOCK() __nothing
+# define MUTEX_UNLOCK() __nothing
 #endif
 
 static struct pid *
@@ -183,17 +196,13 @@ popen(const char *cmd, const char *type)
 	if ((cur = pdes_get(pdes, )) == NULL)
 		return NULL;
 
-#ifdef _REENTRANT
-	(void)rwlock_rdlock(_lock);
-#endif
+	MUTEX_LOCK();
 	(void)__readlockenv();
 	switch (pid = vfork()) {
 	case -1:			/* Error. */
 		serrno = errno;
 		(void)__unlockenv();
-#ifdef _REENTRANT
-		(void)rwlock_unlock(_lock);
-#endif
+		MUTEX_UNLOCK();
 		pdes_error(pdes, cur);
 		errno = serrno;
 		return NULL;
@@ -208,9 +217,7 @@ popen(const char *cmd, const char *type)
 
 	pdes_parent(pdes, cur, pid, type);
 
-#ifdef _REENTRANT
-	(void)rwlock_unlock(_lock);
-#endif
+	MUTEX_UNLOCK();
 
 	return cur->fp;
 }
@@ -228,15 +235,11 @@ popenve(const char *cmd, char *const *ar
 	if ((cur = pdes_get(pdes, )) == NULL)
 		return NULL;
 
-#ifdef _REENTRANT
-	(void)rwlock_rdlock(_lock);
-#endif
+	MUTEX_LOCK();
 	switch (pid = vfork()) {
 	case -1:			/* Error. */
 		serrno = errno;
-#ifdef _REENTRANT
-		(void)rwlock_unlock(_lock);
-#endif
+		MUTEX_UNLOCK();
 		pdes_error(pdes, cur);
 		errno = serrno;
 		return NULL;
@@ -250,9 +253,7 @@ popenve(const char *cmd, char *const *ar
 
 	pdes_parent(pdes, cur, pid, type);
 
-#ifdef _REENTRANT
-	(void)rwlock_unlock(_lock);
-#endif
+	MUTEX_UNLOCK();
 
 	return cur->fp;
 }
@@ -271,18 +272,14 @@ pclose(FILE *iop)
 
 	_DIAGASSERT(iop != NULL);
 
-#ifdef _REENTRANT
-	rwlock_wrlock(_lock);
-#endif
+	MUTEX_LOCK();
 
 	/* Find the appropriate file pointer. */
 	for (last = NULL, cur = pidlist; cur; last = cur, cur = cur->next)
 		if (cur->fp == iop)
 			break;
 	if (cur == NULL) {
-#ifdef _REENTRANT
-		(void)rwlock_unlock(_lock);
-#endif
+		MUTEX_UNLOCK();
 		errno = ESRCH;
 		return -1;
 	}
@@ -295,9 +292,7 @@ pclose(FILE *iop)
 	else
 		last->next = cur->next;
 
-#ifdef _REENTRANT
-	(void)rwlock_unlock(_lock);
-#endif
+	MUTEX_UNLOCK();
 
 	do {
 		pid = waitpid(cur->pid, , 0);



CVS commit: [netbsd-8] src/lib/libc/gen

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 18:25:52 UTC 2019

Modified Files:
src/lib/libc/gen [netbsd-8]: popen.c

Log Message:
Pull up following revision(s) (requested by christos in ticket #1170):

lib/libc/gen/popen.c: revision 1.36

PR/53904: Jintao Zhu: Use a mutex instead of an rwlock to assure thread safety


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.35.8.1 src/lib/libc/gen/popen.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/riscv/conf

2019-01-27 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Jan 27 18:00:06 UTC 2019

Modified Files:
src/sys/arch/riscv/conf: majors.riscv

Log Message:
This may have been cutpasted from evbmips, but we don't need to say so.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/riscv/conf/majors.riscv

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

Modified files:

Index: src/sys/arch/riscv/conf/majors.riscv
diff -u src/sys/arch/riscv/conf/majors.riscv:1.5 src/sys/arch/riscv/conf/majors.riscv:1.6
--- src/sys/arch/riscv/conf/majors.riscv:1.5	Sun Jan 27 17:59:23 2019
+++ src/sys/arch/riscv/conf/majors.riscv	Sun Jan 27 18:00:06 2019
@@ -1,6 +1,6 @@
-#	$NetBSD: majors.riscv,v 1.5 2019/01/27 17:59:23 dholland Exp $
+#	$NetBSD: majors.riscv,v 1.6 2019/01/27 18:00:06 dholland Exp $
 #
-# Device majors for evbmips
+# Device majors for riscv
 #
 
 device-major	tun		char 7			tun



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

2019-01-27 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Jan 27 18:00:06 UTC 2019

Modified Files:
src/sys/arch/riscv/conf: majors.riscv

Log Message:
This may have been cutpasted from evbmips, but we don't need to say so.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/riscv/conf/majors.riscv

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



CVS commit: src/sys/arch

2019-01-27 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Jan 27 17:59:23 UTC 2019

Modified Files:
src/sys/arch/algor/conf: majors.algor
src/sys/arch/alpha/conf: majors.alpha
src/sys/arch/amd64/conf: majors.amd64
src/sys/arch/bebox/conf: majors.bebox
src/sys/arch/evbmips/conf: majors.evbmips
src/sys/arch/i386/conf: majors.i386
src/sys/arch/ia64/conf: majors.ia64
src/sys/arch/ibmnws/conf: majors.ibmnws
src/sys/arch/mvmeppc/conf: majors.mvmeppc
src/sys/arch/powerpc/conf: majors.powerpc
src/sys/arch/prep/conf: majors.prep
src/sys/arch/riscv/conf: majors.riscv

Log Message:
Restore satlink's majors entries commented out and marked obsolete.
Otherwise they might accidentally get reused later and cause a
security problem.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/algor/conf/majors.algor
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/alpha/conf/majors.alpha
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/amd64/conf/majors.amd64
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/bebox/conf/majors.bebox
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/evbmips/conf/majors.evbmips
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/i386/conf/majors.i386
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/ia64/conf/majors.ia64
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/ibmnws/conf/majors.ibmnws
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/mvmeppc/conf/majors.mvmeppc
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/powerpc/conf/majors.powerpc
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/prep/conf/majors.prep
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/riscv/conf/majors.riscv

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

Modified files:

Index: src/sys/arch/algor/conf/majors.algor
diff -u src/sys/arch/algor/conf/majors.algor:1.25 src/sys/arch/algor/conf/majors.algor:1.26
--- src/sys/arch/algor/conf/majors.algor:1.25	Sun Jan 27 08:53:29 2019
+++ src/sys/arch/algor/conf/majors.algor	Sun Jan 27 17:59:22 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: majors.algor,v 1.25 2019/01/27 08:53:29 maxv Exp $
+#	$NetBSD: majors.algor,v 1.26 2019/01/27 17:59:22 dholland Exp $
 #
 # Device majors for algor
 #
@@ -34,6 +34,7 @@ device-major	fd		char 34  block 0	fdc
 device-major	ipl		char 35			ipfilter
 device-major	wd		char 36  block 4	wd
 device-major	se		char 37			se
+#device-major	obsolete	char 38			obsolete (satlink)
 device-major	rnd		char 39			rnd
 
 device-major	scsibus		char 42			scsibus

Index: src/sys/arch/alpha/conf/majors.alpha
diff -u src/sys/arch/alpha/conf/majors.alpha:1.32 src/sys/arch/alpha/conf/majors.alpha:1.33
--- src/sys/arch/alpha/conf/majors.alpha:1.32	Sun Jan 27 08:53:29 2019
+++ src/sys/arch/alpha/conf/majors.alpha	Sun Jan 27 17:59:22 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: majors.alpha,v 1.32 2019/01/27 08:53:29 maxv Exp $
+#	$NetBSD: majors.alpha,v 1.33 2019/01/27 17:59:22 dholland Exp $
 #
 # Device majors for alpha
 #
@@ -35,6 +35,7 @@ device-major	fd		char 34  block 0	fdc
 device-major	ipl		char 35			ipfilter
 device-major	wd		char 36  block 4	wd
 device-major	se		char 37			se
+#device-major	obsolete	char 38			obsolete (satlink)
 device-major	rnd		char 39			rnd
 #device-major	obsolete	char 40			obsolete
 device-major	scsibus		char 42			scsibus

Index: src/sys/arch/amd64/conf/majors.amd64
diff -u src/sys/arch/amd64/conf/majors.amd64:1.30 src/sys/arch/amd64/conf/majors.amd64:1.31
--- src/sys/arch/amd64/conf/majors.amd64:1.30	Sun Jan 27 08:53:29 2019
+++ src/sys/arch/amd64/conf/majors.amd64	Sun Jan 27 17:59:22 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: majors.amd64,v 1.30 2019/01/27 08:53:29 maxv Exp $
+#	$NetBSD: majors.amd64,v 1.31 2019/01/27 17:59:22 dholland Exp $
 #
 # Device majors for amd64
 #
@@ -35,6 +35,7 @@ device-major	tun		char 40			tun
 device-major	vnd		char 41  block 14	vnd
 device-major	audio		char 42			audio
 device-major	ipl		char 44			ipfilter
+#device-major	obsolete	char 45			obsolete (satlink)
 device-major	rnd		char 46			rnd
 device-major	wsdisplay	char 47			wsdisplay
 device-major	wskbd		char 48			wskbd

Index: src/sys/arch/bebox/conf/majors.bebox
diff -u src/sys/arch/bebox/conf/majors.bebox:1.29 src/sys/arch/bebox/conf/majors.bebox:1.30
--- src/sys/arch/bebox/conf/majors.bebox:1.29	Sun Jan 27 08:53:29 2019
+++ src/sys/arch/bebox/conf/majors.bebox	Sun Jan 27 17:59:23 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: majors.bebox,v 1.29 2019/01/27 08:53:29 maxv Exp $
+#	$NetBSD: majors.bebox,v 1.30 2019/01/27 17:59:23 dholland Exp $
 #
 # Device majors for bebox
 #
@@ -40,6 +40,7 @@ device-major	tun		char 40			tun
 device-major	vnd		char 41  block 14	vnd
 device-major	audio		char 42			audio
 device-major	ipl		char 44			ipfilter
+#device-major	obsolete	char 45			obsolete (satlink)
 device-major	rnd		char 46			rnd
 device-major	wsdisplay	char 47			wsdisplay
 device-major	wskbd		char 48			wskbd

Index: src/sys/arch/evbmips/conf/majors.evbmips
diff -u src/sys/arch/evbmips/conf/majors.evbmips:1.32 

CVS commit: src/sys/arch

2019-01-27 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Jan 27 17:59:23 UTC 2019

Modified Files:
src/sys/arch/algor/conf: majors.algor
src/sys/arch/alpha/conf: majors.alpha
src/sys/arch/amd64/conf: majors.amd64
src/sys/arch/bebox/conf: majors.bebox
src/sys/arch/evbmips/conf: majors.evbmips
src/sys/arch/i386/conf: majors.i386
src/sys/arch/ia64/conf: majors.ia64
src/sys/arch/ibmnws/conf: majors.ibmnws
src/sys/arch/mvmeppc/conf: majors.mvmeppc
src/sys/arch/powerpc/conf: majors.powerpc
src/sys/arch/prep/conf: majors.prep
src/sys/arch/riscv/conf: majors.riscv

Log Message:
Restore satlink's majors entries commented out and marked obsolete.
Otherwise they might accidentally get reused later and cause a
security problem.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/algor/conf/majors.algor
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/alpha/conf/majors.alpha
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/amd64/conf/majors.amd64
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/bebox/conf/majors.bebox
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/evbmips/conf/majors.evbmips
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/i386/conf/majors.i386
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/ia64/conf/majors.ia64
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/ibmnws/conf/majors.ibmnws
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/mvmeppc/conf/majors.mvmeppc
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/powerpc/conf/majors.powerpc
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/prep/conf/majors.prep
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/riscv/conf/majors.riscv

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



CVS commit: src/share/man/man9

2019-01-27 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Jan 27 17:44:02 UTC 2019

Modified Files:
src/share/man/man9: module.9

Log Message:
Grammar fix.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/share/man/man9/module.9

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

Modified files:

Index: src/share/man/man9/module.9
diff -u src/share/man/man9/module.9:1.50 src/share/man/man9/module.9:1.51
--- src/share/man/man9/module.9:1.50	Sun Jan 27 02:08:36 2019
+++ src/share/man/man9/module.9	Sun Jan 27 17:44:02 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: module.9,v 1.50 2019/01/27 02:08:36 pgoyette Exp $
+.\"	$NetBSD: module.9,v 1.51 2019/01/27 17:44:02 wiz Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -126,7 +126,7 @@ The module subsystem is protected by the
 .It Fn MODULE "class" "name" "required"
 The
 .Fn MODULE
-macro creates and initialize a
+macro creates and initializes a
 .Vt modinfo_t
 structure.
 The



CVS commit: src/share/man/man9

2019-01-27 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Jan 27 17:44:02 UTC 2019

Modified Files:
src/share/man/man9: module.9

Log Message:
Grammar fix.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/share/man/man9/module.9

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



CVS commit: src/bin/sleep

2019-01-27 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Jan 27 17:42:53 UTC 2019

Modified Files:
src/bin/sleep: sleep.1

Log Message:
Sort sections.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/bin/sleep/sleep.1

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



CVS commit: src/bin/sleep

2019-01-27 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Jan 27 17:42:53 UTC 2019

Modified Files:
src/bin/sleep: sleep.1

Log Message:
Sort sections.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/bin/sleep/sleep.1

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

Modified files:

Index: src/bin/sleep/sleep.1
diff -u src/bin/sleep/sleep.1:1.26 src/bin/sleep/sleep.1:1.27
--- src/bin/sleep/sleep.1:1.26	Sat Jan 26 15:20:50 2019
+++ src/bin/sleep/sleep.1	Sun Jan 27 17:42:53 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sleep.1,v 1.26 2019/01/26 15:20:50 kre Exp $
+.\"	$NetBSD: sleep.1,v 1.27 2019/01/27 17:42:53 wiz Exp $
 .\"
 .\" Copyright (c) 1990, 1993, 1994
 .\"	The Regents of the University of California.  All rights reserved.
@@ -149,6 +149,17 @@ The
 command is expected to be
 .St -p1003.2
 compatible.
+.Sh HISTORY
+A
+.Nm
+utility appeared in
+.At v4 .
+Processing fractional seconds, and processing the
+.Ic seconds
+argument respecting the current locale, was added in
+.Nx 1.3 .
+The ability to sleep for extended periods appeared in
+.Nx 9 .
 .Sh BUGS
 This
 .Nm
@@ -164,14 +175,3 @@ individual
 .Nm
 invocation limited to 200 billion years
 approximately.
-.Sh HISTORY
-A
-.Nm
-utility appeared in
-.At v4 .
-Processing fractional seconds, and processing the
-.Ic seconds
-argument respecting the current locale, was added in
-.Nx 1.3 .
-The ability to sleep for extended periods appeared in
-.Nx 9 .



Re: CVS commit: src/usr.bin/printf

2019-01-27 Thread Robert Elz
Actually, I suspect now that what I remember reading was the rationale in the
page in XCU section 4 for the printf command.

kre



Re: CVS commit: src/usr.bin/printf

2019-01-27 Thread Robert Elz
Date:Sun, 27 Jan 2019 18:42:22 +0300
From:Valery Ushakov 
Message-ID:  <20190127154222.gg18...@pony.stderr.spb.ru>

  | This was changed in Issue 7.  The link to the Austin group
  | interpretations repository seems to be broken, though.  Where can I
  | find the text for the rationale behind this?

Sorry, I cannot find it again now - though I read it just a few hours ago (the
bug report with the text in it that was adopted)...  their search tool for this
stuff is worse than pathetic (amongst other things it leads to multiple
submissions of the same issue, and even resolutions of issues that contradict
the resolution of the same issue when raised earlier - because no-one can
ever find anything they're actually looking for.)

I will look again tomorrow, but it is more likely to appear when I am looking
for something entirely unrelated.

kre



Re: CVS commit: src/bin/sleep

2019-01-27 Thread David Holland
On Sat, Jan 26, 2019 at 12:28:08PM +0100, Kamil Rytarowski wrote:
 > This is where I disagree. In my opinion (of a native user of ",") -
 > parsing locale specific input for such programs doesn't make sense.
 > 
 > Locale specific format is in my opinion appropriate only for programs
 > that process text for printing (like man(1) or groff(1)).

So here's the thing: there's an underlying design problem here that
nobody (not us, not POSIX, and certainly not anyone in the Linux
world) has really worked out a solution to, and that is:

The Unix shell environment is about processing text, and, largely,
processing text in arbitrary ad hoc ways. It fundamentally relies on
being able to treat the user-facing output of arbitrary programs as
machine-readable input. This puts the goal of customizing user-facing
output to accomodate the user in direct conflict with the goal of
making the shell environment work as intended.

One 'solution' is to discourage ordinary users from learning the shell
environment ("...for the console is dark, and full of terrors") so
that it can be arbitrarily broken (via ill-considered locale behavior
and other things) without repercussions. That seems to be the Linux
world's approach. That won't work for NetBSD, if only because there
are too many oldtimers here. Another 'solution' is to create a
separate but equal set of additional tools for use when the output
needs to be predictable. This seems to be what POSIX favors, but it's
not right either: it compromises the design, since the point, or part
of the point, has always been that the shell allows you to paste
together the same things that you use directly. Also it multiplies
entities needlessly.

Some other approach is needed. It's not particularly clear what.


-- 
David A. Holland
dholl...@netbsd.org


CVS commit: src/distrib/sets/lists/tests

2019-01-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 27 16:32:52 UTC 2019

Modified Files:
src/distrib/sets/lists/tests: module.mi

Log Message:
threadpool needs rump


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/distrib/sets/lists/tests/module.mi

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

Modified files:

Index: src/distrib/sets/lists/tests/module.mi
diff -u src/distrib/sets/lists/tests/module.mi:1.15 src/distrib/sets/lists/tests/module.mi:1.16
--- src/distrib/sets/lists/tests/module.mi:1.15	Fri Jan 25 13:33:58 2019
+++ src/distrib/sets/lists/tests/module.mi	Sun Jan 27 11:32:52 2019
@@ -1,4 +1,4 @@
-# $NetBSD: module.mi,v 1.15 2019/01/25 18:33:58 christos Exp $
+# $NetBSD: module.mi,v 1.16 2019/01/27 16:32:52 christos Exp $
 #
 # These are only made for ports doing modules.
 #
@@ -20,6 +20,6 @@
 ./usr/tests/modules/t_klua_pr_52864 		tests-sys-tests		atf,rump
 ./usr/tests/modules/t_modctl			tests-sys-tests		atf,rump
 ./usr/tests/modules/t_modload			tests-sys-tests		atf,rump
-./usr/tests/modules/t_threadpool		tests-sys-tests		atf,compattestfile
-./usr/tests/modules/threadpool_tester		tests-sys-tests		atf,compattestfile
-./usr/tests/modules/threadpool_tester/threadpool_tester.kmod tests-sys-tests	atf,compattestfile
+./usr/tests/modules/t_threadpool		tests-sys-tests		atf,rump
+./usr/tests/modules/threadpool_tester		tests-sys-tests		atf,rump
+./usr/tests/modules/threadpool_tester/threadpool_tester.kmod tests-sys-tests	atf,rump



CVS commit: src/distrib/sets/lists/tests

2019-01-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 27 16:32:52 UTC 2019

Modified Files:
src/distrib/sets/lists/tests: module.mi

Log Message:
threadpool needs rump


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/distrib/sets/lists/tests/module.mi

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



CVS commit: src/tests/kernel

2019-01-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 27 16:29:56 UTC 2019

Modified Files:
src/tests/kernel: h_segv.c

Log Message:
vaxinate against ieeefp.h


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/tests/kernel/h_segv.c

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

Modified files:

Index: src/tests/kernel/h_segv.c
diff -u src/tests/kernel/h_segv.c:1.11 src/tests/kernel/h_segv.c:1.12
--- src/tests/kernel/h_segv.c:1.11	Sat Jan 26 11:44:30 2019
+++ src/tests/kernel/h_segv.c	Sun Jan 27 11:29:56 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: h_segv.c,v 1.11 2019/01/26 16:44:30 martin Exp $	*/
+/*	$NetBSD: h_segv.c,v 1.12 2019/01/27 16:29:56 christos Exp $	*/
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include 
-__RCSID("$NetBSD: h_segv.c,v 1.11 2019/01/26 16:44:30 martin Exp $");
+__RCSID("$NetBSD: h_segv.c,v 1.12 2019/01/27 16:29:56 christos Exp $");
 
 #define	__TEST_FENV
 
@@ -39,7 +39,9 @@ __RCSID("$NetBSD: h_segv.c,v 1.11 2019/0
 
 #include 
 #include 
+#if (__arm__ && !__SOFTFP__) || __aarch64__
 #include  /* only need for ARM Cortex/Neon hack */
+#endif
 #include 
 #include 
 #include 



CVS commit: src/tests/kernel

2019-01-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 27 16:29:56 UTC 2019

Modified Files:
src/tests/kernel: h_segv.c

Log Message:
vaxinate against ieeefp.h


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/tests/kernel/h_segv.c

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



Re: CVS commit: src/usr.bin/printf

2019-01-27 Thread Valery Ushakov
On Sun, Jan 27, 2019 at 12:03:09 +, Robert Elz wrote:

> Modified Files:
>   src/usr.bin/printf: printf.c
> 
> Log Message:
> Revert previous, it was based upon a misreading of the POSIX
> spec.   POSIX requires "as if by calling strtod()" which we
> did already ... by calling strtod().   Go back to doing that.

This was changed in Issue 7.  The link to the Austin group
interpretations repository seems to be broken, though.  Where can I
find the text for the rationale behind this?

-uwe


CVS commit: src/sbin/gpt

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 13:16:05 UTC 2019

Modified Files:
src/sbin/gpt: gpt.c

Log Message:
Fix three MBR extended partition related bugs:
 1) when walking an extended MBR chain, do not assign duplicate indices
 2) the pointer to the next MBR may be any of the MBR_PTYPE_EXT* variants
 3) the ext MBR chain links are relative to the primary extended partition,
unlike the contained partitions which are relative to the extended MBR
block address.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sbin/gpt/gpt.c

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



CVS commit: src/sbin/gpt

2019-01-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jan 27 13:16:05 UTC 2019

Modified Files:
src/sbin/gpt: gpt.c

Log Message:
Fix three MBR extended partition related bugs:
 1) when walking an extended MBR chain, do not assign duplicate indices
 2) the pointer to the next MBR may be any of the MBR_PTYPE_EXT* variants
 3) the ext MBR chain links are relative to the primary extended partition,
unlike the contained partitions which are relative to the extended MBR
block address.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sbin/gpt/gpt.c

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

Modified files:

Index: src/sbin/gpt/gpt.c
diff -u src/sbin/gpt/gpt.c:1.76 src/sbin/gpt/gpt.c:1.77
--- src/sbin/gpt/gpt.c:1.76	Sun Oct 14 20:10:49 2018
+++ src/sbin/gpt/gpt.c	Sun Jan 27 13:16:05 2019
@@ -35,7 +35,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: gpt.c,v 1.76 2018/10/14 20:10:49 mlelstv Exp $");
+__RCSID("$NetBSD: gpt.c,v 1.77 2019/01/27 13:16:05 martin Exp $");
 #endif
 
 #include 
@@ -279,7 +279,7 @@ gpt_write(gpt_t gpt, map_t map)
 }
 
 static int
-gpt_mbr(gpt_t gpt, off_t lba)
+gpt_mbr(gpt_t gpt, off_t lba, unsigned int *next_index, off_t ext_offset)
 {
 	struct mbr *mbr;
 	map_t m, p;
@@ -345,20 +345,22 @@ gpt_mbr(gpt_t gpt, off_t lba)
 			(uintmax_t)lba);
 			continue;
 		}
-		/* start is relative to the offset of the MBR itself. */
-		start += lba;
 		if (gpt->verbose > 2)
 			gpt_msg(gpt, "MBR part: flag=%#x type=%d, start=%ju, "
 			"size=%ju", mbr->mbr_part[i].part_flag,
 			mbr->mbr_part[i].part_typ,
 			(uintmax_t)start, (uintmax_t)size);
-		if (mbr->mbr_part[i].part_typ != MBR_PTYPE_EXT_LBA) {
+		if (!MBR_IS_EXTENDED(mbr->mbr_part[i].part_typ)) {
+			start += lba;
 			m = map_add(gpt, start, size, MAP_TYPE_MBR_PART, p, 0);
 			if (m == NULL)
 return -1;
-			m->map_index = i + 1;
+			m->map_index = *next_index;
+			(*next_index)++;
 		} else {
-			if (gpt_mbr(gpt, start) == -1)
+			start += ext_offset;
+			if (gpt_mbr(gpt, start, next_index,
+			ext_offset ? ext_offset : start) == -1)
 return -1;
 		}
 	}
@@ -479,7 +481,7 @@ gpt_open(const char *dev, int flags, int
 	int mode, found;
 	off_t devsz;
 	gpt_t gpt;
-
+	unsigned int index;
 
 	if ((gpt = calloc(1, sizeof(*gpt))) == NULL) {
 		if (!(flags & GPT_QUIET))
@@ -567,7 +569,8 @@ gpt_open(const char *dev, int flags, int
 	if (map_init(gpt, devsz) == -1)
 		goto close;
 
-	if (gpt_mbr(gpt, 0LL) == -1)
+	index = 1;
+	if (gpt_mbr(gpt, 0LL, , 0U) == -1)
 		goto close;
 	if ((found = gpt_gpt(gpt, 1LL, 1)) == -1)
 		goto close;



CVS commit: src/usr.bin/printf

2019-01-27 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Sun Jan 27 12:03:09 UTC 2019

Modified Files:
src/usr.bin/printf: printf.c

Log Message:
Revert previous, it was based upon a misreading of the POSIX
spec.   POSIX requires "as if by calling strtod()" which we
did already ... by calling strtod().   Go back to doing that.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/usr.bin/printf/printf.c

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



CVS commit: src/usr.bin/printf

2019-01-27 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Sun Jan 27 12:03:09 UTC 2019

Modified Files:
src/usr.bin/printf: printf.c

Log Message:
Revert previous, it was based upon a misreading of the POSIX
spec.   POSIX requires "as if by calling strtod()" which we
did already ... by calling strtod().   Go back to doing that.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/usr.bin/printf/printf.c

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

Modified files:

Index: src/usr.bin/printf/printf.c
diff -u src/usr.bin/printf/printf.c:1.47 src/usr.bin/printf/printf.c:1.48
--- src/usr.bin/printf/printf.c:1.47	Sat Jan 26 15:22:54 2019
+++ src/usr.bin/printf/printf.c	Sun Jan 27 12:03:09 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: printf.c,v 1.47 2019/01/26 15:22:54 kre Exp $	*/
+/*	$NetBSD: printf.c,v 1.48 2019/01/27 12:03:09 kre Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
 #if 0
 static char sccsid[] = "@(#)printf.c	8.2 (Berkeley) 3/22/95";
 #else
-__RCSID("$NetBSD: printf.c,v 1.47 2019/01/26 15:22:54 kre Exp $");
+__RCSID("$NetBSD: printf.c,v 1.48 2019/01/27 12:03:09 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -682,7 +682,7 @@ getdouble(void)
 		return (double) *((*gargv++)+1);
 
 	errno = 0;
-	val = strtod_l(*gargv, , LC_C_LOCALE);
+	val = strtod(*gargv, );
 	check_conversion(*gargv++, ep);
 	return val;
 }



CVS commit: src/sys/dev/i2c

2019-01-27 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 27 11:41:52 UTC 2019

Modified Files:
src/sys/dev/i2c: ddcreg.h

Log Message:
Add a definition for the DDC segment address (30h).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/ddcreg.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/i2c

2019-01-27 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 27 11:41:52 UTC 2019

Modified Files:
src/sys/dev/i2c: ddcreg.h

Log Message:
Add a definition for the DDC segment address (30h).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/ddcreg.h

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

Modified files:

Index: src/sys/dev/i2c/ddcreg.h
diff -u src/sys/dev/i2c/ddcreg.h:1.2 src/sys/dev/i2c/ddcreg.h:1.3
--- src/sys/dev/i2c/ddcreg.h:1.2	Sun May 14 21:42:27 2006
+++ src/sys/dev/i2c/ddcreg.h	Sun Jan 27 11:41:52 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: ddcreg.h,v 1.2 2006/05/14 21:42:27 elad Exp $	*/
+/*	$NetBSD: ddcreg.h,v 1.3 2019/01/27 11:41:52 jmcneill Exp $	*/
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -35,7 +35,8 @@
 #ifndef _DEV_I2C_DDCREG_H_
 #define _DEV_I2C_DDCREG_H_
 
-#define	DDC_ADDR	0x50
-#define	DDC_EDID_START	0
+#define	DDC_ADDR		0x50
+#define	DDC_SEGMENT_ADDR	0x30
+#define	DDC_EDID_START		0
 
 #endif /* _DEV_I2C_DDCREG_H_ */



CVS commit: src/doc

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jan 27 10:32:05 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
Add entry for the [pgoyette-compat] changes


To generate a diff of this commit:
cvs rdiff -u -r1.2494 -r1.2495 src/doc/CHANGES

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



CVS commit: src/doc

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jan 27 10:32:05 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
Add entry for the [pgoyette-compat] changes


To generate a diff of this commit:
cvs rdiff -u -r1.2494 -r1.2495 src/doc/CHANGES

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2494 src/doc/CHANGES:1.2495
--- src/doc/CHANGES:1.2494	Sun Jan 27 09:07:23 2019
+++ src/doc/CHANGES	Sun Jan 27 10:32:05 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2494 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2495 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -314,3 +314,9 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 		[rmind 20190119]
 	dhcpcd: Import dhcpcd-7.1.0 (roy 20190122)
 	kernel: Remove the satlink driver. (maxv 20190127)
+	kernel: Merged [pgoyette-compat] branch - for details, see
+		src/doc/TODO.compat-module.  Includes splitting of the
+		monolithic compat-netbsd module into several version-
+		specific modules, introduction of MP-safe module hook
+		mechanism, and removal of various limitations within
+		the kernel module framework. (pgoyette 20190127)



CVS commit: src/doc

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jan 27 10:27:18 UTC 2019

Modified Files:
src/doc: BRANCHES

Log Message:
Note that [pgoyette-compat] has been merged.


To generate a diff of this commit:
cvs rdiff -u -r1.346 -r1.347 src/doc/BRANCHES

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

Modified files:

Index: src/doc/BRANCHES
diff -u src/doc/BRANCHES:1.346 src/doc/BRANCHES:1.347
--- src/doc/BRANCHES:1.346	Thu Aug 23 16:25:37 2018
+++ src/doc/BRANCHES	Sun Jan 27 10:27:18 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: BRANCHES,v 1.346 2018/08/23 16:25:37 snj Exp $
+#	$NetBSD: BRANCHES,v 1.347 2019/01/27 10:27:18 pgoyette Exp $
 #
 # This file contains a list of branches that exist in the NetBSD CVS
 # tree and their current state.
@@ -887,21 +887,21 @@ Scope:		src/sys and src/common
 Notes:		Used as experiment sandbox and if successful hopefully one day
 		to be integrated.
 
+
+
+# Individual developers' branches (Terminated):
+
+
 Branch:		pgoyette-compat
 Description:	clean-up of compat module
-Status:		Active
+Status:		Merged
 Start Date:	Tues Mar 6, 2018
-End Date:
+End Date:	Sun Jan 27, 2019
 Base Tag:	pgoyette-compat-base
 Maintainer:	pgoyette
 Scope:		src/
 Notes:
 
-
-
-# Individual developers' branches (Terminated):
-
-
 Branch:		prg-localcount2
 Description:	Implement localcount reference counting as proposed by
 		riastradh@ - supersedes abandonded pgoyette-localcount



CVS commit: src/doc

2019-01-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jan 27 10:27:18 UTC 2019

Modified Files:
src/doc: BRANCHES

Log Message:
Note that [pgoyette-compat] has been merged.


To generate a diff of this commit:
cvs rdiff -u -r1.346 -r1.347 src/doc/BRANCHES

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



CVS commit: src/share/man/man4

2019-01-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sun Jan 27 09:22:19 UTC 2019

Modified Files:
src/share/man/man4: uslsa.4

Log Message:
Update list of supported adapters.
- add Adafruit 954 USB to TTL Serial Cable
- sort entries

Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/share/man/man4/uslsa.4

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

Modified files:

Index: src/share/man/man4/uslsa.4
diff -u src/share/man/man4/uslsa.4:1.7 src/share/man/man4/uslsa.4:1.8
--- src/share/man/man4/uslsa.4:1.7	Tue Mar 13 19:25:42 2012
+++ src/share/man/man4/uslsa.4	Sun Jan 27 09:22:19 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: uslsa.4,v 1.7 2012/03/13 19:25:42 njoly Exp $
+.\" $NetBSD: uslsa.4,v 1.8 2019/01/27 09:22:19 rin Exp $
 .\"
 .\" Copyright (c) 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd January 17, 2012
+.Dd January 27, 2019
 .Dt USLSA 4
 .Os
 .Sh NAME
@@ -42,10 +42,11 @@ The
 driver is known to work with the following adapters:
 .Pp
 .Bl -tag -width Dv -offset indent -compact
-.It Siemens MC60 Data Cable
-.It Suunto USB Serial Adaptor
+.It Adafruit 954 USB to TTL Serial Cable
 .It Helicomm IP-Link 1220-DVM
 .It Nokia CA-42 USB
+.It Siemens MC60 Data Cable
+.It Suunto USB Serial Adaptor
 .El
 .Sh DESCRIPTION
 The



CVS commit: src/share/man/man4

2019-01-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sun Jan 27 09:22:19 UTC 2019

Modified Files:
src/share/man/man4: uslsa.4

Log Message:
Update list of supported adapters.
- add Adafruit 954 USB to TTL Serial Cable
- sort entries

Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/share/man/man4/uslsa.4

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



CVS commit: src/sys

2019-01-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sun Jan 27 09:19:37 UTC 2019

Modified Files:
src/sys/dev/fdt: fdt_subr.c
src/sys/rump/dev/lib/libscsipi: scsipi_component.c
src/sys/rump/dev/lib/libucom: ucom_at_usb.c
src/sys/rump/dev/lib/libulpt: ulpt_at_usb.c
src/sys/rump/dev/lib/libumass: umass_component.c
src/sys/rump/dev/lib/libwscons: wscons_component.c
src/sys/rump/kern/lib/libsys_cygwin: sys_cygwin_component.c
src/sys/rump/kern/lib/libsys_linux: linux_rump.c sys_linux_component.c
src/sys/rump/kern/lib/libsys_sunos: sys_sunos_component.c

Log Message:
Fix merge botches. I hope there's no more left...


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/fdt/fdt_subr.c
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/dev/lib/libscsipi/scsipi_component.c
cvs rdiff -u -r1.10 -r1.11 src/sys/rump/dev/lib/libucom/ucom_at_usb.c
cvs rdiff -u -r1.8 -r1.9 src/sys/rump/dev/lib/libulpt/ulpt_at_usb.c
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/dev/lib/libumass/umass_component.c
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/dev/lib/libwscons/wscons_component.c
cvs rdiff -u -r1.5 -r1.6 \
src/sys/rump/kern/lib/libsys_cygwin/sys_cygwin_component.c
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/kern/lib/libsys_linux/linux_rump.c
cvs rdiff -u -r1.6 -r1.7 \
src/sys/rump/kern/lib/libsys_linux/sys_linux_component.c
cvs rdiff -u -r1.5 -r1.6 \
src/sys/rump/kern/lib/libsys_sunos/sys_sunos_component.c

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



CVS commit: src/sys

2019-01-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sun Jan 27 09:19:37 UTC 2019

Modified Files:
src/sys/dev/fdt: fdt_subr.c
src/sys/rump/dev/lib/libscsipi: scsipi_component.c
src/sys/rump/dev/lib/libucom: ucom_at_usb.c
src/sys/rump/dev/lib/libulpt: ulpt_at_usb.c
src/sys/rump/dev/lib/libumass: umass_component.c
src/sys/rump/dev/lib/libwscons: wscons_component.c
src/sys/rump/kern/lib/libsys_cygwin: sys_cygwin_component.c
src/sys/rump/kern/lib/libsys_linux: linux_rump.c sys_linux_component.c
src/sys/rump/kern/lib/libsys_sunos: sys_sunos_component.c

Log Message:
Fix merge botches. I hope there's no more left...


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/fdt/fdt_subr.c
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/dev/lib/libscsipi/scsipi_component.c
cvs rdiff -u -r1.10 -r1.11 src/sys/rump/dev/lib/libucom/ucom_at_usb.c
cvs rdiff -u -r1.8 -r1.9 src/sys/rump/dev/lib/libulpt/ulpt_at_usb.c
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/dev/lib/libumass/umass_component.c
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/dev/lib/libwscons/wscons_component.c
cvs rdiff -u -r1.5 -r1.6 \
src/sys/rump/kern/lib/libsys_cygwin/sys_cygwin_component.c
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/kern/lib/libsys_linux/linux_rump.c
cvs rdiff -u -r1.6 -r1.7 \
src/sys/rump/kern/lib/libsys_linux/sys_linux_component.c
cvs rdiff -u -r1.5 -r1.6 \
src/sys/rump/kern/lib/libsys_sunos/sys_sunos_component.c

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

Modified files:

Index: src/sys/dev/fdt/fdt_subr.c
diff -u src/sys/dev/fdt/fdt_subr.c:1.25 src/sys/dev/fdt/fdt_subr.c:1.26
--- src/sys/dev/fdt/fdt_subr.c:1.25	Sun Jan 27 02:08:41 2019
+++ src/sys/dev/fdt/fdt_subr.c	Sun Jan 27 09:19:36 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_subr.c,v 1.25 2019/01/27 02:08:41 pgoyette Exp $ */
+/* $NetBSD: fdt_subr.c,v 1.26 2019/01/27 09:19:36 rin Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill 
@@ -27,9 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: fdt_subr.c,v 1.25 2019/01/27 02:08:41 pgoyette Exp $");
-
-#include "opt_fdt.h"
+__KERNEL_RCSID(0, "$NetBSD: fdt_subr.c,v 1.26 2019/01/27 09:19:36 rin Exp $");
 
 #include "opt_fdt.h"
 

Index: src/sys/rump/dev/lib/libscsipi/scsipi_component.c
diff -u src/sys/rump/dev/lib/libscsipi/scsipi_component.c:1.4 src/sys/rump/dev/lib/libscsipi/scsipi_component.c:1.5
--- src/sys/rump/dev/lib/libscsipi/scsipi_component.c:1.4	Sun Jan 27 02:08:48 2019
+++ src/sys/rump/dev/lib/libscsipi/scsipi_component.c	Sun Jan 27 09:19:36 2019
@@ -1,10 +1,7 @@
-/*	$NetBSD: scsipi_component.c,v 1.4 2019/01/27 02:08:48 pgoyette Exp $	*/
+/*	$NetBSD: scsipi_component.c,v 1.5 2019/01/27 09:19:36 rin Exp $	*/
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: scsipi_component.c,v 1.4 2019/01/27 02:08:48 pgoyette Exp $");
-
-#include 
-__KERNEL_RCSID(0, "$NetBSD: scsipi_component.c,v 1.4 2019/01/27 02:08:48 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsipi_component.c,v 1.5 2019/01/27 09:19:36 rin Exp $");
 
 #include 
 #include 

Index: src/sys/rump/dev/lib/libucom/ucom_at_usb.c
diff -u src/sys/rump/dev/lib/libucom/ucom_at_usb.c:1.10 src/sys/rump/dev/lib/libucom/ucom_at_usb.c:1.11
--- src/sys/rump/dev/lib/libucom/ucom_at_usb.c:1.10	Sun Jan 27 02:08:48 2019
+++ src/sys/rump/dev/lib/libucom/ucom_at_usb.c	Sun Jan 27 09:19:37 2019
@@ -1,10 +1,7 @@
-/*	$NetBSD: ucom_at_usb.c,v 1.10 2019/01/27 02:08:48 pgoyette Exp $	*/
+/*	$NetBSD: ucom_at_usb.c,v 1.11 2019/01/27 09:19:37 rin Exp $	*/
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ucom_at_usb.c,v 1.10 2019/01/27 02:08:48 pgoyette Exp $");
-
-#include 
-__KERNEL_RCSID(0, "$NetBSD: ucom_at_usb.c,v 1.10 2019/01/27 02:08:48 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ucom_at_usb.c,v 1.11 2019/01/27 09:19:37 rin Exp $");
 
 #include 
 #include 

Index: src/sys/rump/dev/lib/libulpt/ulpt_at_usb.c
diff -u src/sys/rump/dev/lib/libulpt/ulpt_at_usb.c:1.8 src/sys/rump/dev/lib/libulpt/ulpt_at_usb.c:1.9
--- src/sys/rump/dev/lib/libulpt/ulpt_at_usb.c:1.8	Sun Jan 27 02:08:49 2019
+++ src/sys/rump/dev/lib/libulpt/ulpt_at_usb.c	Sun Jan 27 09:19:37 2019
@@ -1,10 +1,7 @@
-/*	$NetBSD: ulpt_at_usb.c,v 1.8 2019/01/27 02:08:49 pgoyette Exp $	*/
+/*	$NetBSD: ulpt_at_usb.c,v 1.9 2019/01/27 09:19:37 rin Exp $	*/
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ulpt_at_usb.c,v 1.8 2019/01/27 02:08:49 pgoyette Exp $");
-
-#include 
-__KERNEL_RCSID(0, "$NetBSD: ulpt_at_usb.c,v 1.8 2019/01/27 02:08:49 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ulpt_at_usb.c,v 1.9 2019/01/27 09:19:37 rin Exp $");
 
 #include 
 #include 

Index: src/sys/rump/dev/lib/libumass/umass_component.c
diff -u src/sys/rump/dev/lib/libumass/umass_component.c:1.4 src/sys/rump/dev/lib/libumass/umass_component.c:1.5
--- src/sys/rump/dev/lib/libumass/umass_component.c:1.4	Sun Jan 27 02:08:49 2019
+++ src/sys/rump/dev/lib/libumass/umass_component.c	Sun Jan 27 09:19:37 2019
@@ -1,10 +1,7 @@
-/*	$NetBSD: 

CVS commit: src/doc

2019-01-27 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jan 27 09:07:24 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
satlink removed


To generate a diff of this commit:
cvs rdiff -u -r1.2493 -r1.2494 src/doc/CHANGES

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2493 src/doc/CHANGES:1.2494
--- src/doc/CHANGES:1.2493	Tue Jan 22 15:22:55 2019
+++ src/doc/CHANGES	Sun Jan 27 09:07:23 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2493 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2494 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -313,3 +313,4 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 		tables, lock-free state lookup, incremental state G/C, etc).
 		[rmind 20190119]
 	dhcpcd: Import dhcpcd-7.1.0 (roy 20190122)
+	kernel: Remove the satlink driver. (maxv 20190127)



CVS commit: src/doc

2019-01-27 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jan 27 09:07:24 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
satlink removed


To generate a diff of this commit:
cvs rdiff -u -r1.2493 -r1.2494 src/doc/CHANGES

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



CVS commit: src/share/man/man8

2019-01-27 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jan 27 08:57:05 UTC 2019

Modified Files:
src/share/man/man8: MAKEDEV.8

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/share/man/man8/MAKEDEV.8

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

Modified files:

Index: src/share/man/man8/MAKEDEV.8
diff -u src/share/man/man8/MAKEDEV.8:1.52 src/share/man/man8/MAKEDEV.8:1.53
--- src/share/man/man8/MAKEDEV.8:1.52	Wed Dec 12 08:24:50 2018
+++ src/share/man/man8/MAKEDEV.8	Sun Jan 27 08:57:04 2019
@@ -6,7 +6,7 @@
 .\" *** DO NOT EDIT - any changes will be lost!!!
 .\" *** --
 .\"
-.\" $NetBSD: MAKEDEV.8,v 1.52 2018/12/12 08:24:50 maxv Exp $
+.\" $NetBSD: MAKEDEV.8,v 1.53 2019/01/27 08:57:04 maxv Exp $
 .\"
 .\" Copyright (c) 2001, 2003, 2007, 2008 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -35,7 +35,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd December 12, 2018
+.Dd January 27, 2019
 .Dt MAKEDEV 8
 .Os
 .Sh NAME
@@ -814,8 +814,6 @@ RealTimeClock, see
 .Xr \/rtc 4 ,
 .Xr \/rtc 4 ,
 .Xr \/rtc 4
-. It Ar satlink#
-PlanetConnect satellite receiver driver
 . It Ar scsibus#
 SCSI busses, see
 .Xr \ 4



CVS commit: src/share/man/man8

2019-01-27 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jan 27 08:57:05 UTC 2019

Modified Files:
src/share/man/man8: MAKEDEV.8

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/share/man/man8/MAKEDEV.8

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



CVS commit: src

2019-01-27 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jan 27 08:53:31 UTC 2019

Modified Files:
src/distrib/sets/lists/comp: mi
src/etc: MAKEDEV.tmpl
src/etc/etc.algor: MAKEDEV.conf
src/etc/etc.alpha: MAKEDEV.conf
src/etc/etc.amd64: MAKEDEV.conf
src/etc/etc.bebox: MAKEDEV.conf
src/etc/etc.evbmips: MAKEDEV.conf
src/etc/etc.i386: MAKEDEV.conf
src/etc/etc.ia64: MAKEDEV.conf
src/etc/etc.ofppc: MAKEDEV.conf
src/etc/etc.sbmips: MAKEDEV.conf
src/share/man/man9: ioctl.9
src/sys/arch/algor/conf: majors.algor
src/sys/arch/alpha/conf: GENERIC majors.alpha
src/sys/arch/amd64/conf: ALL majors.amd64
src/sys/arch/bebox/conf: majors.bebox
src/sys/arch/evbmips/conf: majors.evbmips
src/sys/arch/i386/conf: ALL GENERIC GENERIC_TINY INSTALL_FLOPPY
INSTALL_TINY majors.i386
src/sys/arch/ia64/conf: majors.ia64
src/sys/arch/ibmnws/conf: majors.ibmnws
src/sys/arch/mvmeppc/conf: majors.mvmeppc
src/sys/arch/powerpc/conf: majors.powerpc
src/sys/arch/prep/conf: majors.prep
src/sys/arch/riscv/conf: majors.riscv
src/sys/dev: DEVNAMES
src/sys/dev/isa: Makefile files.isa
src/sys/rump/librump/rumpkern: devsw.c
Removed Files:
src/sys/dev/isa: satlink.c satlinkio.h satlinkreg.h

Log Message:
Remove the satlink driver. It was disabled everywhere, had no man page and
no use either. Spotted by thorpej in PR/21345, ok christos.


To generate a diff of this commit:
cvs rdiff -u -r1.2252 -r1.2253 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.196 -r1.197 src/etc/MAKEDEV.tmpl
cvs rdiff -u -r1.6 -r1.7 src/etc/etc.algor/MAKEDEV.conf
cvs rdiff -u -r1.12 -r1.13 src/etc/etc.alpha/MAKEDEV.conf
cvs rdiff -u -r1.26 -r1.27 src/etc/etc.amd64/MAKEDEV.conf
cvs rdiff -u -r1.9 -r1.10 src/etc/etc.bebox/MAKEDEV.conf
cvs rdiff -u -r1.9 -r1.10 src/etc/etc.evbmips/MAKEDEV.conf
cvs rdiff -u -r1.28 -r1.29 src/etc/etc.i386/MAKEDEV.conf
cvs rdiff -u -r1.2 -r1.3 src/etc/etc.ia64/MAKEDEV.conf
cvs rdiff -u -r1.10 -r1.11 src/etc/etc.ofppc/MAKEDEV.conf
cvs rdiff -u -r1.5 -r1.6 src/etc/etc.sbmips/MAKEDEV.conf
cvs rdiff -u -r1.33 -r1.34 src/share/man/man9/ioctl.9
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/algor/conf/majors.algor
cvs rdiff -u -r1.387 -r1.388 src/sys/arch/alpha/conf/GENERIC
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/alpha/conf/majors.alpha
cvs rdiff -u -r1.113 -r1.114 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/amd64/conf/majors.amd64
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/bebox/conf/majors.bebox
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/evbmips/conf/majors.evbmips
cvs rdiff -u -r1.461 -r1.462 src/sys/arch/i386/conf/ALL
cvs rdiff -u -r1.1199 -r1.1200 src/sys/arch/i386/conf/GENERIC
cvs rdiff -u -r1.161 -r1.162 src/sys/arch/i386/conf/GENERIC_TINY
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/i386/conf/INSTALL_FLOPPY
cvs rdiff -u -r1.158 -r1.159 src/sys/arch/i386/conf/INSTALL_TINY
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/i386/conf/majors.i386
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/ia64/conf/majors.ia64
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/ibmnws/conf/majors.ibmnws
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/mvmeppc/conf/majors.mvmeppc
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/powerpc/conf/majors.powerpc
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/prep/conf/majors.prep
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/riscv/conf/majors.riscv
cvs rdiff -u -r1.319 -r1.320 src/sys/dev/DEVNAMES
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/isa/Makefile
cvs rdiff -u -r1.171 -r1.172 src/sys/dev/isa/files.isa
cvs rdiff -u -r1.46 -r0 src/sys/dev/isa/satlink.c
cvs rdiff -u -r1.4 -r0 src/sys/dev/isa/satlinkio.h
cvs rdiff -u -r1.3 -r0 src/sys/dev/isa/satlinkreg.h
cvs rdiff -u -r1.9 -r1.10 src/sys/rump/librump/rumpkern/devsw.c

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.2252 src/distrib/sets/lists/comp/mi:1.2253
--- src/distrib/sets/lists/comp/mi:1.2252	Thu Jan 24 21:51:15 2019
+++ src/distrib/sets/lists/comp/mi	Sun Jan 27 08:53:28 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.2252 2019/01/24 21:51:15 mrg Exp $
+#	$NetBSD: mi,v 1.2253 2019/01/27 08:53:28 maxv Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.compcomp-sys-root
@@ -583,7 +583,7 @@
 ./usr/include/dev/isa/pcppireg.h		comp-obsolete		obsolete
 ./usr/include/dev/isa/pcppivar.h		comp-obsolete		obsolete
 ./usr/include/dev/isa/pssreg.h			comp-obsolete		obsolete
-./usr/include/dev/isa/satlinkio.h		comp-c-include
+./usr/include/dev/isa/satlinkio.h		comp-obsolete		obsolete
 ./usr/include/dev/isa/satlinkreg.h		comp-obsolete		obsolete
 ./usr/include/dev/isa/sbdspvar.h		comp-obsolete		obsolete
 ./usr/include/dev/isa/sbreg.h			comp-obsolete		obsolete

Index: src/etc/MAKEDEV.tmpl
diff -u 

CVS commit: src

2019-01-27 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jan 27 08:53:31 UTC 2019

Modified Files:
src/distrib/sets/lists/comp: mi
src/etc: MAKEDEV.tmpl
src/etc/etc.algor: MAKEDEV.conf
src/etc/etc.alpha: MAKEDEV.conf
src/etc/etc.amd64: MAKEDEV.conf
src/etc/etc.bebox: MAKEDEV.conf
src/etc/etc.evbmips: MAKEDEV.conf
src/etc/etc.i386: MAKEDEV.conf
src/etc/etc.ia64: MAKEDEV.conf
src/etc/etc.ofppc: MAKEDEV.conf
src/etc/etc.sbmips: MAKEDEV.conf
src/share/man/man9: ioctl.9
src/sys/arch/algor/conf: majors.algor
src/sys/arch/alpha/conf: GENERIC majors.alpha
src/sys/arch/amd64/conf: ALL majors.amd64
src/sys/arch/bebox/conf: majors.bebox
src/sys/arch/evbmips/conf: majors.evbmips
src/sys/arch/i386/conf: ALL GENERIC GENERIC_TINY INSTALL_FLOPPY
INSTALL_TINY majors.i386
src/sys/arch/ia64/conf: majors.ia64
src/sys/arch/ibmnws/conf: majors.ibmnws
src/sys/arch/mvmeppc/conf: majors.mvmeppc
src/sys/arch/powerpc/conf: majors.powerpc
src/sys/arch/prep/conf: majors.prep
src/sys/arch/riscv/conf: majors.riscv
src/sys/dev: DEVNAMES
src/sys/dev/isa: Makefile files.isa
src/sys/rump/librump/rumpkern: devsw.c
Removed Files:
src/sys/dev/isa: satlink.c satlinkio.h satlinkreg.h

Log Message:
Remove the satlink driver. It was disabled everywhere, had no man page and
no use either. Spotted by thorpej in PR/21345, ok christos.


To generate a diff of this commit:
cvs rdiff -u -r1.2252 -r1.2253 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.196 -r1.197 src/etc/MAKEDEV.tmpl
cvs rdiff -u -r1.6 -r1.7 src/etc/etc.algor/MAKEDEV.conf
cvs rdiff -u -r1.12 -r1.13 src/etc/etc.alpha/MAKEDEV.conf
cvs rdiff -u -r1.26 -r1.27 src/etc/etc.amd64/MAKEDEV.conf
cvs rdiff -u -r1.9 -r1.10 src/etc/etc.bebox/MAKEDEV.conf
cvs rdiff -u -r1.9 -r1.10 src/etc/etc.evbmips/MAKEDEV.conf
cvs rdiff -u -r1.28 -r1.29 src/etc/etc.i386/MAKEDEV.conf
cvs rdiff -u -r1.2 -r1.3 src/etc/etc.ia64/MAKEDEV.conf
cvs rdiff -u -r1.10 -r1.11 src/etc/etc.ofppc/MAKEDEV.conf
cvs rdiff -u -r1.5 -r1.6 src/etc/etc.sbmips/MAKEDEV.conf
cvs rdiff -u -r1.33 -r1.34 src/share/man/man9/ioctl.9
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/algor/conf/majors.algor
cvs rdiff -u -r1.387 -r1.388 src/sys/arch/alpha/conf/GENERIC
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/alpha/conf/majors.alpha
cvs rdiff -u -r1.113 -r1.114 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/amd64/conf/majors.amd64
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/bebox/conf/majors.bebox
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/evbmips/conf/majors.evbmips
cvs rdiff -u -r1.461 -r1.462 src/sys/arch/i386/conf/ALL
cvs rdiff -u -r1.1199 -r1.1200 src/sys/arch/i386/conf/GENERIC
cvs rdiff -u -r1.161 -r1.162 src/sys/arch/i386/conf/GENERIC_TINY
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/i386/conf/INSTALL_FLOPPY
cvs rdiff -u -r1.158 -r1.159 src/sys/arch/i386/conf/INSTALL_TINY
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/i386/conf/majors.i386
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/ia64/conf/majors.ia64
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/ibmnws/conf/majors.ibmnws
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/mvmeppc/conf/majors.mvmeppc
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/powerpc/conf/majors.powerpc
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/prep/conf/majors.prep
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/riscv/conf/majors.riscv
cvs rdiff -u -r1.319 -r1.320 src/sys/dev/DEVNAMES
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/isa/Makefile
cvs rdiff -u -r1.171 -r1.172 src/sys/dev/isa/files.isa
cvs rdiff -u -r1.46 -r0 src/sys/dev/isa/satlink.c
cvs rdiff -u -r1.4 -r0 src/sys/dev/isa/satlinkio.h
cvs rdiff -u -r1.3 -r0 src/sys/dev/isa/satlinkreg.h
cvs rdiff -u -r1.9 -r1.10 src/sys/rump/librump/rumpkern/devsw.c

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