CVS: cvs.openbsd.org: src

2024-06-30 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/06/30 02:13:02

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

Log message:
Add support for the Realtek RTL8126 chip to the rge(4) driver.
The RTL8126 is a PCIe to 5Gb Ethernet controller.



CVS: cvs.openbsd.org: src

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

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

Log message:
regen



CVS: cvs.openbsd.org: src

2024-06-30 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/06/30 02:11:36

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add Realtek RTL8126.



CVS: cvs.openbsd.org: src

2024-05-23 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/05/23 02:06:45

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

Log message:
regen



CVS: cvs.openbsd.org: src

2024-05-23 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/05/23 02:06:22

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

Log message:
Add support for Quectel EM060K.
The Quectel EM060K is set by default to MBIM mode.

Tested by Shawn Chiou
ok jsg@



CVS: cvs.openbsd.org: src

2024-05-19 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/05/19 19:51:32

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

Log message:
Map MSI-X in addition to MSI and INTx on rge(4).

Brad noticed on Orange Pi 5 Plus apparently the RTL8125 Ethernet controller
doesn't support MSIs, but does support MSI-X.  With this diff running on
Orange Pi 5+ we switch over from shared INTx to device-specific MSI-X
interrupts.

Tested by Brad.
ok kettenis@



CVS: cvs.openbsd.org: src

2024-05-14 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/05/14 19:41:41

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

Log message:
regen



CVS: cvs.openbsd.org: src

2024-05-14 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/05/14 19:41:19

Modified files:
share/man/man4 : uchcom.4 ucom.4 usb.4 
sys/dev/usb: uchcom.c usbdevs 

Log message:
Add CH9102 support.  Tested on the NodeMCU esp8266 v3 ch9102x board.

ok deraadt@



CVS: cvs.openbsd.org: src

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

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

Log message:
Regen



CVS: cvs.openbsd.org: src

2024-04-11 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/04/11 18:43:32

Modified files:
share/man/man4 : uchcom.4 ucom.4 usb.4 
sys/dev/usb: uchcom.c usbdevs 

Log message:
Add support for CH343 uart.
The CH343 devices support any baud rate up to 6 Mbps.

ok miod@



CVS: cvs.openbsd.org: www

2024-03-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:www
Changes by: ke...@cvs.openbsd.org   2024/03/06 21:41:28

Modified files:
.  : riscv64.html 

Log message:
Add a few supported Allwinner D1 boards.



CVS: cvs.openbsd.org: src

2024-03-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/03/06 18:05:07

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

Log message:
Enable dwxe(4)

ok kettenis@, deraadt@



CVS: cvs.openbsd.org: src

2024-03-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/03/06 18:04:16

Modified files:
sys/dev/fdt: sxiccmu.c sxiccmu_clocks.h 

Log message:
Support Allwinner D1's ethernet controller clocks and reset.

ok kettenis@, deraadt@



CVS: cvs.openbsd.org: src

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

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

Log message:
- Add support for reporting flow control status.
- Add missing igc_check_for_link() call; from Masanobu SAITOH via NetBSD.

"Fine" deraadt@

ok jan@



CVS: cvs.openbsd.org: src

2024-02-21 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/02/21 07:40:50

Modified files:
sys/dev/ic : qwxreg.h 

Log message:
Remove duplicate definitions.

ok stsp@



CVS: cvs.openbsd.org: src

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

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

Log message:
regen



CVS: cvs.openbsd.org: src

2024-02-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/02/18 20:00:37

Modified files:
sys/dev/pci: pcidevs 

Log message:
add Realtek 802.11ax ids



CVS: cvs.openbsd.org: src

2024-01-23 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/01/24 00:36:52

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

Log message:
Add iwm(4) to arm64 GENERIC, as follow up of 1.280

ok mlarkin@



CVS: cvs.openbsd.org: src

2024-01-23 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/01/23 01:48:12

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

Log message:
Change default duplex setting and simplify the setup of srrctl.BSIZEPKT.

During media selection through ifconfig one might not specify the duplex
setting through the mediaopt flag.  In that case the igc(4) would default
to full-duplex.  The problem with this approach is that em(4) defaults to
half-duplex.  Because of that if one connects both NICs and sets media to
e.g. 100baseTX on both of them no carrier will be found.
Fix that by matching igc(4) behaviour with what em(4) does.

Adapted from FreeBSD commits 3b8d04f845b416d29a258658b8a48d1afb4a2e81 and
0eb8cd1de26849cbaefaf3bc59aa9612fa0dfa52 respectively.

ok mbuhl@



CVS: cvs.openbsd.org: src

2024-01-16 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/01/16 05:21:02

Modified files:
sys/dev/pci: if_iwmreg.h 

Log message:
Fix clang warning about possible unaligned access on arm64.

ok stsp@



CVS: cvs.openbsd.org: src

2024-01-04 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/01/04 01:41:59

Modified files:
share/man/man4 : axen.4 usb.4 
sys/dev/usb: if_axen.c if_axenreg.h if_cdce.c if_cdcereg.h 

Log message:
Add support for AX88179A.  AX88179A interweave dummies alongside valid
packet headers in axen_rxeof().

However current driver records these dummy headers as dropped frames,
leading to stats misreporting one Ifail per Ipkt.

This skips those dummy headers silently, thereby not generating Ifail
for them.

>From FreeBSD commit 70fbcd451b68b7f6038d8a602cd8d5e1bb890f1d

Tested by landry@ and myself.
ok claudio@, landry@



Re: CVS: cvs.openbsd.org: src

2024-01-03 Thread Kevin Lo
On Wed, Jan 03, 2024 at 02:19:22AM -0700, Kevin Lo wrote:
> 
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   ke...@cvs.openbsd.org   2024/01/03 02:19:22
> 
> Modified files:
>   share/man/man4 : uoaklux.4 uoakrh.4 uoakv.4 
> 
> Log message:
> Update website URL.
> 
> ok miod@

Also ok sthen@



CVS: cvs.openbsd.org: src

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

Modified files:
share/man/man4 : uoaklux.4 uoakrh.4 uoakv.4 

Log message:
Update website URL.

ok miod@



CVS: cvs.openbsd.org: src

2024-01-01 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2024/01/01 06:04:35

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

Log message:
Add Quectel RM500Q to umb man page.

ok mglocker@



CVS: cvs.openbsd.org: src

2023-12-21 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/12/21 22:28:14

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

Log message:
Update microcode, initialization and reset behavior.
Remove two chip versions (identified by MAC_CFG2 and MAC_CFG4) support that
may not be available in the market, and also raise rxring lwm to 32.

Tested by Nick Owens.



CVS: cvs.openbsd.org: src

2023-12-05 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/12/05 06:43:39

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

Log message:
timeout_del() the timer while stopping an interface so that no timeout
is fired afterwards.

ok claudio@



CVS: cvs.openbsd.org: src

2023-10-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/10/18 00:45:45

Modified files:
distrib/notes/arm64: prep 

Log message:
Mention U-Boot file and offset for Rockchip RK356x.

"Sure." miod@



CVS: cvs.openbsd.org: www

2023-10-12 Thread Kevin Lo
CVSROOT:/cvs
Module name:www
Changes by: ke...@cvs.openbsd.org   2023/10/12 19:48:44

Modified files:
.  : 74.html 

Log message:
mention rtl8153d



CVS: cvs.openbsd.org: src

2023-09-09 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/09/09 08:24:07

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

Log message:
Regen



CVS: cvs.openbsd.org: src

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

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

Log message:
Correct TP-LINK bluetooth ID.
Reported on bugs@ by Douglas Silva .

ok jsg@



CVS: cvs.openbsd.org: src

2023-08-30 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/08/30 01:12:25

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

Log message:
regen



CVS: cvs.openbsd.org: src

2023-08-30 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/08/30 01:11:48

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add Phison PS5021 device id

ok miod@, jsg@



CVS: cvs.openbsd.org: src

2023-07-14 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/07/14 08:28:47

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

Log message:
Check if the OWN bit of Tx descriptor instead of Rx descriptor is set
in rtwn_tx().

Because definitions of R92C_TXDW0_OWN and R92C_RXDW0_OWN are the same,
no functional change.

ok stsp@



CVS: cvs.openbsd.org: src

2023-05-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/05/06 02:14:26

Modified files:
share/man/man4 : ure.4 usb.4 

Log message:
Mention RTL8153D.



CVS: cvs.openbsd.org: src

2023-05-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/05/06 02:07:10

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

Log message:
Add support for RTL8153D.

The RTL8153D chipset shares many similarities with the already supported
RTL8156B chip but additionally requires a few semi-unique configurations.

Tested by weerd@
ok jmatthew@



CVS: cvs.openbsd.org: src

2023-05-03 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/05/03 23:38:50

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

Log message:
regen



CVS: cvs.openbsd.org: src

2023-05-03 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/05/03 23:38:17

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add another Lenovo NVMe device id found in my ThinkPad X1 Extreme Gen 1.

ok miod@



CVS: cvs.openbsd.org: src

2023-04-27 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/04/27 19:25:51

Modified files:
distrib/sets/lists/base: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

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

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

Log message:
regen



CVS: cvs.openbsd.org: src

2023-04-27 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/04/27 19:24:15

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 
share/man/man4 : urtwn.4 usb.4 
sys/dev/ic : r92creg.h rtwn.c rtwnvar.h 
sys/dev/microcode/urtwn: Makefile build.c microcode.h 
sys/dev/usb: if_urtwn.c usbdevs 

Log message:
Add support for RTL8188FTV chip to urtwn(4).

Tested with Comfast CF-WU710N v4.

"go ahead" deraadt@
OK stsp@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/04/26 21:28:34

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

Log message:
Fix logic error in rtwn_r92e_get_txpower().

The RTL8192EU is up to two stream TX/RX (so MCS0->15).

ok stsp@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/04/26 21:19:45

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

Log message:
Whitespace fix



CVS: cvs.openbsd.org: src

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

Modified files:
distrib/sets/lists/comp: mi 
distrib/sets/lists/man: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2023-04-01 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/04/01 21:40:54

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

Log message:
nable ngbe(4) on install media.  Passes 'make release' build.

Pointed out by miod@, patrick@



CVS: cvs.openbsd.org: src

2023-03-31 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/03/31 02:22:09

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

Log message:
Enable ngbe(4).

ok miod@



CVS: cvs.openbsd.org: src

2023-03-31 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/03/31 02:20:58

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

Log message:
Man page for ngbe(4).

ok miod@



CVS: cvs.openbsd.org: src

2023-03-31 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/03/31 02:19:41

Modified files:
sys/dev/pci: files.pci 
Added files:
sys/dev/pci: if_ngbe.c if_ngbereg.h 

Log message:
ngbe(4), a driver for Wangxun WX1860 series Gigabit Ethernet devices.
Written based on the vendor driver for Linux.
Thanks to WangXun for relicensing their vendor driver to ISC.

Special thanks to miod@ for reviewing and providing valuable input.

ok miod@



CVS: cvs.openbsd.org: src

2023-03-31 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/03/31 02:17:00

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

Log message:
regen



CVS: cvs.openbsd.org: src

2023-03-31 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/03/31 02:16:30

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add "Beijing WangXun Technology" vendor and WX1860 series NICs.

ok miod@



CVS: cvs.openbsd.org: src

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

Modified files:
share/man/man4 : igc.4 pci.4 

Log message:
Document i226.

>From Brad.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/dev/mii: txphy.c 

Log message:
Update comment: RTL8139 -> TNETE2101

ok mpi@



CVS: cvs.openbsd.org: src

2023-02-06 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/02/07 00:11:14

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

Log message:
regen



CVS: cvs.openbsd.org: src

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

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add ASMedia ASM2142 xhci

ok deraadt@



CVS: cvs.openbsd.org: src

2022-12-29 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/12/29 17:54:09

Modified files:
sys/dev/usb: uftdi.c uftdireg.h 

Log message:
Support FTDI FT232R.  The upper 2 bits encode the fractional component of the
FT232R is either 0 or 0.125.

ok dlg@



CVS: cvs.openbsd.org: src

2022-12-20 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/12/20 19:31:09

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

Log message:
Update the Rx descriptor based on the vendor driver for Linux.
This fixes a panic seen by Geoff Steckel on RTL8125 with MCLGETL.

Tested by Geoff Steckel and Nick Owens.

ok dlg@



CVS: cvs.openbsd.org: src

2022-10-08 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/10/08 20:32:02

Modified files:
sys/dev/pci: if_bge.c if_lge.c if_nge.c 

Log message:
Fix typo in debug messages.

ok deraadt@



CVS: cvs.openbsd.org: src

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

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

Log message:
List SIMCom SIM8262E-M2 as supported for umb(4)

ok jmc@



CVS: cvs.openbsd.org: src

2022-08-21 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/08/21 01:56:31

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

Log message:
A couple of minor changes for rtl8192eu:

- enable Tx/Rx aggregations of individual 802.11 frames on the USB bus
- in urtwn_fw_loadpage(), the maximum block size is 254 bytes rather than
196 bytes
- clear the interrupt status register
- no need to disable BAR for USB devices and set NAV limit

ok stsp@, jmatthew@



CVS: cvs.openbsd.org: src

2022-08-13 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/08/13 08:16:59

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

Log message:
Correct rx data rate for rtl8192eu

ok stsp@, jmatthew@



CVS: cvs.openbsd.org: src

2022-07-27 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/07/27 18:56:02

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

Log message:
Remove bogus mtw_read_cfg.

ok hastings@



CVS: cvs.openbsd.org: src

2022-05-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/05/18 18:52:37

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

Log message:
Force maximum payload size to 128 bytes for AR816X/AR817x as it triggers
dma write error rendering the network unusable.

Bug reported and patch tested by Scott C. MacCallum.



CVS: cvs.openbsd.org: src

2022-05-11 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/05/11 00:14:15

Modified files:
sys/dev/pci: if_igc.c igc_api.h igc_hw.h igc_i225.c 
 igc_phy.c igc_phy.h 

Log message:
Use hardware routine for PHY reset and always accept the PHY that's present.

The previously used software reset routine wasn't sufficient to reset the PHY
if the bootloader hadn't left the device in an initialized state.
>From FreeBSD.

Bug reported and the fix tested by daniel@



CVS: cvs.openbsd.org: src

2022-04-20 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/04/20 23:08:40

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

Log message:
Repair hw vlan tagging.  Previously swapped byte RGE_TDEXTSTS_VTAG, this
caused no tag was sent on the outgoing packet.

Bug reported and the fix tested by Andrew Laramore.



CVS: cvs.openbsd.org: src

2022-04-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/04/18 21:26:52

Modified files:
sys/dev/mii: miidevs.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2022-04-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/04/18 21:26:33

Modified files:
sys/dev/mii: miidevs rdcphy.c 

Log message:
Add a new RDC PHY.

>From Andrius Varanavicius



CVS: cvs.openbsd.org: src

2022-04-18 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/04/18 21:25:46

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

Log message:
Restore original MDC speed control register value on vte_reset,
which is needed for at least Vortex86DX3 machines.

Patch from Andrius Varanavicius via bugs@

Special thanks to DMP for donating hardware which helped make this fix
possible.



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:51:08

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.



CVS: cvs.openbsd.org: src

2022-04-08 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-08 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@



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-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@



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-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



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-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@



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-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

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

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-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-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: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: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: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-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-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-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

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-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.



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 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



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-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-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-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-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-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-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



  1   2   3   4   >