CVS: cvs.openbsd.org: src

2020-07-15 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/07/15 18:52:33

Modified files:
sys/dev/pci: if_sis.c 

Log message:
Initialize sis_ring_init() 'sis_rx_prod' and 'sis_rx_cons' to 0.

ok mpi@, deraadt@



CVS: cvs.openbsd.org: src

2020-07-21 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/07/21 18:48:02

Modified files:
share/man/man4 : pci.4 rge.4 
sys/dev/pci: if_rge.c if_rgereg.h 

Log message:
Add support for newer RTL8125 chipset (RTL8125B).
Tested for on a TP-LINK TL-NG421.

ok jmatthew@



CVS: cvs.openbsd.org: src

2020-08-04 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/08/04 08:45:46

Modified files:
sys/dev/usb: if_ure.c if_urereg.h 

Log message:
Pack multiple packets into one xfer as possible.  Given this is a 5x-7x
TX improvement.  It's all Jonathon's code so assert his copyright.

Submitted by Jonathon Fletcher.

Tested by jcs@, Mikolaj Kucharski, Jonathon Fletcher and myself.

ok jmatthew@



CVS: cvs.openbsd.org: src

2020-08-07 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/08/07 07:53:58

Modified files:
sys/dev/pci: if_rge.c 

Log message:
- Do better work in ifmedia_upd
- Eliminate the redundant bits of code for MTU handling; From Brad



CVS: cvs.openbsd.org: src

2020-09-15 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/09/15 01:41:38

Modified files:
usr.bin/cap_mkdb: cap_mkdb.c 

Log message:
Remove igetnext prototype for the function does not exist.

ok deraadt@



CVS: cvs.openbsd.org: src

2020-09-28 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/09/28 19:44:40

Modified files:
sys/dev/usb: if_ure.c 

Log message:
Add TP-LINK UE300 device.
Tested by Joel Carnat.

ok deraadt@



CVS: cvs.openbsd.org: www

2020-10-03 Thread Kevin Lo
CVSROOT:/cvs
Module name:www
Changes by: ke...@cvs.openbsd.org   2020/10/03 10:21:19

Modified files:
.  : 68.html 

Log message:
rge(4) is an Ethernet network driver.



CVS: cvs.openbsd.org: src

2020-10-11 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/10/11 20:06:25

Modified files:
sys/dev/pci: if_rge.c if_rgereg.h 

Log message:
Set the maximum frame size to RGE_JUMBO_FRAMELEN.

>From Brad.
Tweak by myself.



CVS: cvs.openbsd.org: src

2020-10-11 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/10/11 20:11:10

Modified files:
share/man/man4 : rge.4 

Log message:
Mention TP-LINK TL-NG421.

>From Brad.



CVS: cvs.openbsd.org: src

2020-10-31 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/10/31 01:50:41

Modified files:
sys/dev/pci: if_rge.c if_rgereg.h 

Log message:
Update the RTL8125B microcode and use ifiq_input and its return value to
apply backpressure to rxrs.



CVS: cvs.openbsd.org: src

2020-11-15 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/11/16 00:40:19

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add PCI ids for Intel 2.5Gb adapters.

ok jsg@



CVS: cvs.openbsd.org: src

2020-11-15 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/11/16 00:40:59

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2020-11-26 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/11/26 17:13:15

Modified files:
sys/dev/pci: if_myx.c 

Log message:
Add initialization of sc_sff_lock rwlock.

ok semarie@



CVS: cvs.openbsd.org: src

2020-11-28 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/11/28 20:17:28

Modified files:
sys/dev/pci: berkwdt.c mbg.c pwdog.c wdt.c 

Log message:
Un-const pci_attach_args var.

"yes guess so" deraadt@



CVS: cvs.openbsd.org: src

2020-12-23 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/12/23 18:00:00

Modified files:
share/man/man4 : rge.4 
sys/dev/pci: if_rge.c if_rgereg.h 

Log message:
Add Wake on LAN support to rge(4).

Tested by otto@ and myself.



CVS: cvs.openbsd.org: src

2021-01-21 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/01/21 04:05:38

Modified files:
share/man/man4 : ifmedia.4 

Log message:
Document IFM_2500_T media type.

ok claudio@ jmc@ sthen@



CVS: cvs.openbsd.org: src

2021-03-29 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/03/29 18:55:09

Modified files:
sys/dev/pci: if_rge.c if_rgereg.h 

Log message:
Move tx/rx descriptors into their own structs.
This is a first step toward making rge work with multiple queues and interrupts.
Only one queue is currently used.

While here, update the RTL8125B microcode.

ok jmatthew@



CVS: cvs.openbsd.org: src

2021-04-14 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/04/14 20:23:17

Modified files:
sys/dev/usb: if_ure.c 

Log message:
Match Linux path in r8153_set_rx_early_size().

The rx early size is used to reduce the loading of CPU by letting a transfer
contain more data to reduce the number of transfers.

ok deraadt@



CVS: cvs.openbsd.org: src

2021-05-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/05/18 08:23:03

Modified files:
share/man/man4 : umb.4 umsm.4 
sys/dev/usb: if_umb.c umsm.c usbdevs 

Log message:
Add support for Quectel EC25.
To issue an AT command (AT+QCFG="usbnet",2) to change to MBIM mode.

Tested by Shawn Chiou on rpi4; "of course" deraadt@



CVS: cvs.openbsd.org: src

2021-05-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/05/18 08:23:53

Modified files:
sys/dev/usb: usbdevs.h usbdevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2021-05-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/05/18 08:26:00

Modified files:
sys/arch/arm64/conf: GENERIC 

Log message:
Enable umb(4).



CVS: cvs.openbsd.org: src

2021-07-26 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/07/26 19:44:55

Modified files:
sys/dev/pci: if_ix.c 

Log message:
Fix Rx hash type
This matches what Linux and FreeBSD do.

ok jmatthew@



CVS: cvs.openbsd.org: src

2021-08-09 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/08/09 06:59:53

Modified files:
sys/dev/pci: azalia.c 

Log message:
If an error during attach caused us to detach our resources,
don't do anything on shutdown.

This fixes a panic that was reported by me on X1 Extreme Gen 1.

ok ratchov@



CVS: cvs.openbsd.org: src

2021-08-15 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/08/15 19:30:27

Modified files:
sys/dev/pci: if_rge.c 

Log message:
Remove redundant SIOCSIFMTU ioctl handler already handlded by ether_ioctl().

>From Brad



CVS: cvs.openbsd.org: src

2021-08-16 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/08/16 08:54:50

Modified files:
sys/dev/pci: if_iwx.c if_iwxreg.h 

Log message:
Remove obsolete pre-release support code about two early versions of 8260.
No need to access iwx_read_prph and could get the rid of the obsolete comment.

See Linux commit 4adfaf9b2de3a04a9ee9adff6e000e8dbb37bed5

ok stsp@



CVS: cvs.openbsd.org: src

2021-08-19 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/08/19 19:33:44

Modified files:
sys/dev/pci: if_iwm.c if_iwx.c 

Log message:
In the attach routine, the hardware bug workaround is only for legacy PCI
interrupts.  Move it to the right place.



CVS: cvs.openbsd.org: src

2021-08-19 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/08/19 19:40:51

Modified files:
sys/dev/usb: if_ure.c 

Log message:
When plugging and unplugging an adapter continuously, it waits for a timeout
over and over again.  The problem is that the device has been unplugged,
but the attach handler still issues USB requests via ure_ctl().

The easiest solution is to deactivate the device proactively in
ure_ctl() when we see that error there.

>From Christian Ludwig



Re: CVS: cvs.openbsd.org: src

2021-08-19 Thread Kevin Lo
On Thu, Aug 19, 2021 at 07:33:44PM -0600, Kevin Lo wrote:
> 
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   ke...@cvs.openbsd.org   2021/08/19 19:33:44
> 
> Modified files:
>   sys/dev/pci: if_iwm.c if_iwx.c 
> 
> Log message:
> In the attach routine, the hardware bug workaround is only for legacy PCI
> interrupts.  Move it to the right place.
> 

Sorry, I forgot to add "ok stsp@"



CVS: cvs.openbsd.org: src

2021-08-19 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/08/19 22:54:10

Modified files:
sys/dev/usb: if_ure.c 

Log message:
Back out last commit.

deraadt@ pointed out that the operation is correct.
It attaches, but by then it is being pulled.  The dying flag is set to
avoid half the kinds of failure conditions.  The other half of the failure
conditions are detect on-the-spot.

And it seems when compiled for debug, this on-the-spot check which notices
the device isn't there, has a printf.



CVS: cvs.openbsd.org: src

2021-08-26 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/08/26 01:11:10

Modified files:
sys/dev/pci: if_iwm.c if_iwx.c 

Log message:
There are some races in the hardware which thus require a few more tries
to get ownership.

See Linux commit 501fd9895c1d7d8161ed56698ae2fccb10ef14f5

ok stsp@



CVS: cvs.openbsd.org: src

2021-09-02 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/09/02 07:39:34

Modified files:
sys/dev/pci: if_iwx.c 

Log message:
The PCI_PRODUCT_INTEL_WL_22500_1 device is part of the 22000
family (discrete) not integrated.

ok stsp@



CVS: cvs.openbsd.org: src

2019-01-29 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/01/29 02:35:16

Modified files:
sys/dev/ic : rtwn.c 

Log message:
Accept control frames in monitor mode.
Based on a diff from Jesper Wallin.

ok jmatthew@, stsp@



CVS: cvs.openbsd.org: src

2019-02-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/02/18 01:59:43

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add another PCI ID for Intel Dual Band Wireless AC 9560, found in
thinkpad x1 extreme.

ok stsp@



CVS: cvs.openbsd.org: src

2019-02-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/02/18 02:02:12

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2019-03-10 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/03/11 00:19:33

Modified files:
sys/dev/ic : r92creg.h rtwn.c rtwnvar.h 
sys/dev/usb: if_urtwn.c 

Log message:
- in rtwn_r88e_fw_reset function, use the correct bit R88E_RSV_CTRL_MCU_RST
to reset/enable MCU
- there's no need to enable 1.2V power for rtl8192eu

ok jmatthew@



CVS: cvs.openbsd.org: src

2019-03-14 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/03/14 23:42:38

Modified files:
lib/libc/arch/amd64/sys: tfork_thread.S 
lib/libc/arch/i386/sys: tfork_thread.S 
lib/libc/arch/sparc64/fpu: fpu_add.c fpu_compare.c fpu_div.c 
   fpu_explode.c fpu_implode.c fpu_mul.c 
   fpu_qp.c fpu_sqrt.c fpu_subr.c 
lib/libm/src   : s_lrintl.c s_lroundl.c 
sys/arch/arm64/arm64: cpufunc_asm.S exception.S support.S trap.c 
sys/dev/pci: if_bnxt.c if_bnxtreg.h 
sys/kern   : subr_witness.c 
sys/ufs/ufs: ufs_dirhash.c 

Log message:
Remove FBSDID.

ok deraadt@



CVS: cvs.openbsd.org: src

2019-03-22 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/03/22 03:04:46

Modified files:
share/man/man4 : alc.4 
sys/dev/pci: if_alc.c if_alcreg.h 

Log message:
Add support for QCA AR816x/AR817x for alc(4).
Based on FreeBSD via Genadijus Paleckis on tech@, some modifications by me.

Tested with Atheros Killer E2200.



CVS: cvs.openbsd.org: src

2019-03-22 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/03/22 09:33:30

Modified files:
sys/dev/pci: if_alc.c 

Log message:
Mixmerge fixup.

Some of the flag and oactive handling bits and alc_stop_queue() were
mismerged.

Pointed out by Brad, thanks!



CVS: cvs.openbsd.org: src

2019-03-22 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/03/22 11:43:18

Modified files:
sys/dev/pci: if_alc.c 

Log message:
- Fix the AR816X_REV_B0 / default DMA channel selection to be the
same as the original code

- Merge FreeBSD's r304574
Correct DMA channel number selection on AR816x family of
controllers. For Gigabit Ethernet version of AR816x, AR813x/AR815x
except L1D controller, use vendor recommended ASPM parameters.
While here, increase alc_dma_burst array size.  Broken H/W can
return bogus value in theory

>From Brad.



CVS: cvs.openbsd.org: src

2019-03-24 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/03/24 20:28:20

Modified files:
sys/dev/pci: if_alc.c 

Log message:
- Formatting fixes and in some cases bringing things a bit closer to the
original code
- Remove unusedd function decarations

>From Brad



CVS: cvs.openbsd.org: src

2019-03-27 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/03/27 01:55:24

Modified files:
sys/dev/pci: if_alc.c 

Log message:
Add AR8152 PCI ids to alc_phy_down(), based on FreeBSD r272730.

>From Brad



CVS: cvs.openbsd.org: src

2019-03-31 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/03/31 05:00:11

Modified files:
sys/dev/ic : ar9287.c 

Log message:
AR9287-based usb devices use GPIO pin 10 for LED, not 8.
Tested with TP-LINK TL-WN821N V3.

ok stsp@



CVS: cvs.openbsd.org: src

2019-04-09 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/04/09 23:17:48

Modified files:
sys/dev/usb: if_urereg.h 

Log message:
Fix URE_WDT6_SET_MODE register definition.
Based on FreeBSD r346028, this fixes ure(4) not detected after a reboot.

ok deraadt@



CVS: cvs.openbsd.org: src

2019-04-22 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/04/22 19:17:09

Modified files:
sys/dev/pci: if_athn_pci.c 

Log message:
- Update the comment describing why pci retry timeout needs to be disabled
- Override the default cache line size if it's set to zero

from Linux ath9k

ok stsp@, jmatthew@



CVS: cvs.openbsd.org: src

2019-04-24 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/04/24 19:52:14

Modified files:
sys/dev/ic : bwfm.c rtwn.c 
sys/dev/pci: if_iwi.c 
sys/dev/usb: if_ral.c if_rsu.c if_rum.c if_run.c if_uath.c 
 if_upgt.c if_zyd.c 

Log message:
Follow up on jmatthew's suggestion:
in x_media_change(), return the errno from ieee80211_media_change() and
do the error check from x_init().

ok stsp@, jmatthew@, phessler@



CVS: cvs.openbsd.org: src

2019-05-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/05/06 01:44:00

Modified files:
sys/dev/pci: if_alc.c 

Log message:
Fix a logic error when configuring the driver to use msi.



CVS: cvs.openbsd.org: src

2019-05-16 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/05/16 19:05:20

Modified files:
sys/dev/ic : athn.c athnreg.h 

Log message:
For AR9271, use correct clock control register and add a macro to access it.

ok stsp@



CVS: cvs.openbsd.org: src

2019-05-22 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/05/22 19:57:19

Modified files:
sys/dev/pci: if_alc.c 

Log message:
Formatting fixes.

>From Brad



CVS: cvs.openbsd.org: src

2019-06-02 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/06/02 19:52:53

Modified files:
sys/dev/pci: if_alc.c 

Log message:
- Remove a redundant check within alc_mii_readreg_813x().
The PHY address is already checked within alc_miibus_readreg().
- Remove redundant call to alc_stop_queue().
First thing alc_stop_mac() does is call alc_stop_queue().

>From Brad



CVS: cvs.openbsd.org: src

2019-06-17 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/06/17 02:14:45

Modified files:
share/man/man5 : elf.5 

Log message:
Mention the ELF machine type EM_AARCH64.

ok jmc@



CVS: cvs.openbsd.org: src

2019-06-17 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/06/17 02:17:21

Modified files:
sys/dev/pci: if_alc.c 

Log message:
When reloading station address via TWSI is timed out, try to reload
station address from EEPROM.

>From Brad.



CVS: cvs.openbsd.org: src

2019-06-17 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/06/17 02:53:01

Modified files:
share/man/man5 : elf.5 

Log message:
Mention EM_PPC64; from jsg@



CVS: cvs.openbsd.org: src

2019-06-30 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/06/30 23:11:32

Modified files:
sys/ufs/ext2fs : ext2fs.h ext2fs_inode.c ext2fs_vfsops.c 

Log message:
Add more verbose messages about unsupported ext2fs features.
Based on FreeBSD r320578.

While here, rename a few macros to make the consisten and keep in sync with
Linux upstream.

ok kn@



CVS: cvs.openbsd.org: src

2019-07-01 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/07/01 01:13:44

Modified files:
sbin/fsck_ext2fs: inode.c pass1.c setup.c 

Log message:
Oops, forgot to commit this patch.



CVS: cvs.openbsd.org: src

2019-07-01 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/07/01 01:17:26

Modified files:
sbin/newfs_ext2fs: mke2fs.c 

Log message:
Forgot to commit this patch.



CVS: cvs.openbsd.org: src

2019-07-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/07/06 07:37:09

Modified files:
sys/dev/usb: if_mue.c 

Log message:
Ensure Rx/Tx resources are freed during interface stop.



CVS: cvs.openbsd.org: src

2019-07-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/07/06 07:55:20

Modified files:
sys/dev/pci: if_alc.c 

Log message:
Re-add some printf's as they were originally.

>From Brad



CVS: cvs.openbsd.org: src

2019-07-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/07/07 00:40:10

Modified files:
sys/dev/usb: if_axe.c if_axen.c if_mos.c if_mue.c if_smsc.c 

Log message:
Eliminate duplicate code in xxx_detach().

ok mpi@



CVS: cvs.openbsd.org: src

2019-07-08 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/07/08 23:43:03

Modified files:
sys/dev/usb: files.usb 

Log message:
ure(4) and url(4) need ifmedia attribute.

ok deraadt@



CVS: cvs.openbsd.org: src

2019-07-16 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/07/16 20:13:43

Modified files:
sys/dev/pci: if_xge.c 

Log message:
Remove an unused header (dev/mii/miivar.h)

ok stsp@, jsg@



CVS: cvs.openbsd.org: src

2019-07-25 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/07/25 22:35:38

Modified files:
sys/arch/amd64/include: i82489reg.h 
sys/arch/i386/include: i82489reg.h 

Log message:
emove duplicate definitions of LAPIC_ID_MASK and LAPIC_ID_SHIFT.

"yes please" guenther@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/08/29 02:55:06

Modified files:
share/man/man4 : ure.4 usb.4 
sys/dev/usb: if_ure.c if_urereg.h 

Log message:
Add support for RTL8153B after study of Linux r8152 driver.

Tested by myself, jcs@



CVS: cvs.openbsd.org: src

2019-09-25 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/09/25 03:30:28

Modified files:
sys/dev/ic : ti.c 
sys/dev/pci: if_lge.c if_nfe.c if_nge.c 

Log message:
Argument order fix for MCLGETI.

ok claudio@



CVS: cvs.openbsd.org: src

2019-11-16 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/11/16 07:08:31

Modified files:
sys/dev/ic : rtwn.c 
sys/dev/usb: if_urtwn.c 

Log message:
- Don't enable/disable efuse access protection for rtl8188c/rtl8192c;
it may prevent incorrect mac address read from efuse
- Disable BB/RF is not needed in urtwn_r92c_power_on()

ok stsp@



CVS: cvs.openbsd.org: src

2019-11-17 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/11/17 20:03:37

Modified files:
sys/arch/amd64/conf: GENERIC 
sys/arch/i386/conf: GENERIC 
sys/dev/pci: files.pci pcidevs 
Added files:
sys/dev/pci: if_rge.c if_rgereg.h 

Log message:
Introduce rge(4), a new driver for Realtek 8125 PCI Express 2.5Gb Ethernet
device.

"just commit!" deraadt@
"looks good to me" jmatthew@



CVS: cvs.openbsd.org: src

2019-11-17 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/11/17 20:07:31

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2019-11-17 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/11/17 20:08:38

Modified files:
share/man/man4 : Makefile pci.4 
Added files:
share/man/man4 : rge.4 

Log message:
Manual page for the Realtek 8125 2.5Gb Ethernet driver.

ok jmc@



CVS: cvs.openbsd.org: src

2019-11-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/11/18 19:01:58

Modified files:
sys/arch/amd64/conf: RAMDISK_CD 
sys/arch/i386/conf: RAMDISK_CD 

Log message:
Enable rge(4).

ok deraadt@



CVS: cvs.openbsd.org: src

2019-11-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/11/18 23:32:46

Modified files:
sys/dev/ic : re.c 

Log message:
Don't assign ifp twice in the re_txeof().

ok deraadt@



CVS: cvs.openbsd.org: src

2019-11-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/11/18 23:34:10

Modified files:
sys/dev/ic : re.c 

Log message:
Set isr to the correct value (sc->rl_intrs).

ok deraadt@



CVS: cvs.openbsd.org: src

2019-12-07 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/12/07 01:45:28

Modified files:
share/man/man4 : ure.4 usb.4 
sys/dev/usb: if_ure.c if_urereg.h usbdevs 

Log message:
- Add support for RTL8156
- Add RX/TX checksum offload support

Tested by Shawn Chiou and myself.



CVS: cvs.openbsd.org: src

2019-12-07 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/12/07 01:47:20

Modified files:
sys/dev/usb: usbdevs.h usbdevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2020-01-02 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/01/02 02:00:45

Modified files:
sys/dev/pci: if_rge.c 

Log message:
Fix bus_dmamap_sync(9) calls.  While here fix a typo in a comment.



CVS: cvs.openbsd.org: src

2020-02-03 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/02/03 18:01:09

Modified files:
sys/arch/arm64/conf: GENERIC RAMDISK 

Log message:
Enable rge(4).
Tested on rockpro64.

ok sthen@



Re: CVS: cvs.openbsd.org: src

2020-02-03 Thread Kevin Lo
On Mon, Feb 03, 2020 at 06:01:09PM -0700, Kevin Lo wrote:
> 
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   ke...@cvs.openbsd.org   2020/02/03 18:01:09
> 
> Modified files:
>   sys/arch/arm64/conf: GENERIC RAMDISK 
> 
> Log message:
> Enable rge(4).
> Tested on rockpro64.
> 
> ok sthen@

also ok deraadt@



CVS: cvs.openbsd.org: src

2020-03-09 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/03/09 19:11:30

Modified files:
sys/dev/usb: if_ure.c usbdevs 

Log message:
Match on Lenovo OneLink Plus Dock Ethernet.
Tested by David Demelier



CVS: cvs.openbsd.org: src

2020-03-09 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/03/09 19:11:58

Modified files:
sys/dev/usb: usbdevs.h usbdevs_data.h 

Log message:
sync



CVS: cvs.openbsd.org: src

2020-04-25 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/04/25 09:24:25

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2020-04-25 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2020/04/25 09:23:48

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add RTL8821CE and RTL8822CE PCI ids.

ok stsp@



CVS: cvs.openbsd.org: src

2021-09-23 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/09/23 23:25:37

Modified files:
share/man/man4 : umb.4 
sys/dev/usb: if_umb.c usbdevs 

Log message:
Add support for SIMCom SIM7600.
To issue AT commands (AT+CUSBPIDSWITCH=9003,1,1 and AT+CLANMODE=1) to
change to MBIM mode.

ok deraadt@



CVS: cvs.openbsd.org: src

2021-09-24 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/09/24 02:50:57

Modified files:
sys/dev/usb: usbdevs.h usbdevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2021-10-03 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/10/03 19:29:02

src/sys/dev/microcode/rtwn

Update of /cvs/src/sys/dev/microcode/rtwn
In directory cvs.openbsd.org:/tmp/cvs-serv66561/sys/dev/microcode/rtwn

Log Message:
Directory /cvs/src/sys/dev/microcode/rtwn added to the repository



CVS: cvs.openbsd.org: src

2021-10-03 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/10/03 19:29:02

src/sys/dev/microcode/rsu

Update of /cvs/src/sys/dev/microcode/rsu
In directory cvs.openbsd.org:/tmp/cvs-serv66561/sys/dev/microcode/rsu

Log Message:
Directory /cvs/src/sys/dev/microcode/rsu added to the repository



CVS: cvs.openbsd.org: src

2021-10-03 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/10/03 19:29:02

src/sys/dev/microcode/urtwn

Update of /cvs/src/sys/dev/microcode/urtwn
In directory cvs.openbsd.org:/tmp/cvs-serv66561/sys/dev/microcode/urtwn

Log Message:
Directory /cvs/src/sys/dev/microcode/urtwn added to the repository



CVS: cvs.openbsd.org: src

2021-10-03 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/10/03 19:29:57

Added files:
sys/dev/microcode/rsu: microcode.h rsu-license 
sys/dev/microcode/rtwn: microcode.h rtwn-license 
sys/dev/microcode/urtwn: microcode.h urtwn-license 

Log message:
Permission from Realtek to include wireless firmwares

After deraadt@ explained why the Realtek firmware cannot be put into our tree,
I reached out to Realtek to explain the situation.

According to the LICENCE.rtlwifi_firmware.txt [1], the rules permitted adding
their non-open-source firmware into open source operating systems but such
an addition (ironically) makes that open source operating system not entirely
open source.  Realtek understood the irony, and change the license.

Thanks to Realtek for this change which lets us put the firmware .h file
into our tree, this means Realtek wireless will work without requiring
a firmware download (which is difficult over a non-working Realtek network :)

[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/LICENCE.rtlwifi_firmware.txt?id=0f863ff1b388ad5b0f7d25decdbb642#n22

ok deraadt@



CVS: cvs.openbsd.org: src

2021-10-03 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/10/03 19:33:42

Modified files:
share/man/man4 : rsu.4 rtwn.4 urtwn.4 
sys/dev/microcode: Makefile 
sys/dev/pci: if_rtwn.c 
sys/dev/usb: if_rsu.c if_urtwn.c 
Added files:
sys/dev/microcode/rsu: Makefile build.c 
sys/dev/microcode/rtwn: Makefile build.c 
sys/dev/microcode/urtwn: Makefile build.c 

Log message:
Build firmware for rsu(4), rtwn(4), and urtwn(4).
We have to install the files with new filenames (removal of "fw" from each of
the filenames) and change the driver to use the new filenames,
such that the package becomes irrelevant.

Discussed with deraadt@ and sthen@

ok deraadt@



CVS: cvs.openbsd.org: src

2021-10-03 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/10/03 19:34:29

Modified files:
distrib/amd64/ramdisk_cd: list 
distrib/arm64/ramdisk: list 
distrib/armv7/ramdisk: list 
distrib/i386/ramdisk_cd: list 
distrib/macppc/ramdisk: list 
distrib/octeon/ramdisk: list 
distrib/riscv64/ramdisk: list 

Log message:
Add firmwares for rsu(4), rtwn(4), and urtwn(4) drivers.
ok deraadt@



CVS: cvs.openbsd.org: src

2021-11-22 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/11/22 18:44:44

Modified files:
sys/dev/pci: if_rge.c 

Log message:
Fix mbuf leaks after reception error in rge_rxeof().

Being that rge(4) is derived from re(4) it looks like it has the same
issues as fixed in re(4) rev 1.211.

>From Brad
ok gnezdo@



CVS: cvs.openbsd.org: src

2021-12-30 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2021/12/30 08:09:49

Modified files:
sys/dev/usb: if_mtw.c 

Log message:
Add Xiaomi MiniWif to list of devices supported by mtw(4).
Works for me on amd64.

ok hastings@



CVS: cvs.openbsd.org: src

2022-01-07 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/01/07 06:56:54

Modified files:
sys/arch/arm64/conf: kern.ldscript 
sys/arch/riscv64/conf: kern.ldscript 

Log message:
.glue_7 is used for arm code calling thumb code, and .glue_7t is used for
thumb code calling arm code, no need to put these input sections at the text
output section.

ok jsg@ kettenis@



CVS: cvs.openbsd.org: src

2022-01-11 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/01/11 17:58:48

Modified files:
sys/arch/riscv64/conf: Makefile.riscv64 

Log message:
Remove -target riscv64-unknown-openbsd from CMACHFLAGS.

ok kettenis@ deraadt@



CVS: cvs.openbsd.org: src

2022-02-14 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/02/14 01:14:19

Modified files:
share/man/man5 : elf.5 

Log message:
Add the EM_RISCV value to match 

ok miod@



Re: CVS: cvs.openbsd.org: src

2022-02-14 Thread Kevin Lo
On Mon, Feb 14, 2022 at 01:14:19AM -0700, Kevin Lo wrote:
> 
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   ke...@cvs.openbsd.org   2022/02/14 01:14:19
> 
> Modified files:
>   share/man/man5 : elf.5 
> 
> Log message:
> Add the EM_RISCV value to match 
> 
> ok miod@

Also ok deraadt@



CVS: cvs.openbsd.org: src

2022-04-02 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/04/02 06:22:56

Modified files:
sys/dev/usb: if_ure.c if_urereg.h 

Log message:
Add preliminary support for RTL8156B and bug fixes for RTL8153/RTL8156.

ok stsp@

Tested:
RTL8152  (0x4c10): jmatthew, Marcus Merighi
RTL8153  (0x5c10): Yifei Zhan
RTL8153  (0x5c20): James Jerkins, Paul de Weerd, stsp
RTL8153  (0x5c30): gerhard, sthen
RTL8153B (0x6010): Paul de Weerd



CVS: cvs.openbsd.org: www

2022-04-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:www
Changes by: ke...@cvs.openbsd.org   2022/04/06 20:41:00

Modified files:
.  : arm64.html 

Log message:
Mention Pine64 H64 as supported.

ok jsg@



CVS: cvs.openbsd.org: src

2022-04-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/04/06 20:44:51

Modified files:
distrib/notes/arm64: hardware 

Log message:
Mention Allwinner H6

ok jsg@



Re: CVS: cvs.openbsd.org: src

2022-04-06 Thread Kevin Lo
On Wed, Apr 06, 2022 at 08:44:51PM -0600, Kevin Lo wrote:
> 
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   ke...@cvs.openbsd.org   2022/04/06 20:44:51
> 
> Modified files:
>   distrib/notes/arm64: hardware 
> 
> Log message:
> Mention Allwinner H6
> 
> ok jsg@

and ok deraadt@



CVS: cvs.openbsd.org: src

2022-04-07 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/04/08 00:07:01

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add MT7921K.

ok deraadt@



CVS: cvs.openbsd.org: src

2022-04-07 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/04/08 00:07:39

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2022-04-17 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/04/17 23:50:29

Modified files:
sys/dev/pci: pcidevs 

Log message:
A few devices found on EBOX-3360-C2CF and EBOX-3300MX.



  1   2   3   4   >