CVS: cvs.openbsd.org: src

2024-03-22 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/03/22 13:22:23

Modified files:
usr.bin/patch  : backupfile.c patch.1 patch.c 

Log message:
add "-V none" to prevent making any backups

from FreeBSD

ok bluhm deraadt



CVS: cvs.openbsd.org: www

2024-01-19 Thread joshua stein
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2024/01/19 20:57:01

Modified files:
.  : groups.html 
build  : groups.dat 

Log message:
ChiBUG is no more



CVS: cvs.openbsd.org: src

2023-07-20 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/20 20:19:49

Modified files:
sys/dev/i2c: ietp.c 

Log message:
add missing newline on successful attachment, spotted by bmercer

remove duplicate prefixes on unsuccessful attachment, wrap at 80,
other minor nits



CVS: cvs.openbsd.org: src

2023-07-07 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/07 20:43:02

Modified files:
sys/dev/i2c: files.i2c 
sys/dev/acpi   : dwiic_acpi.c 
sys/arch/amd64/conf: GENERIC 
share/man/man4 : Makefile 
Added files:
sys/dev/i2c: ietp.c ietp.h 
share/man/man4 : ietp.4 

Log message:
Add ietp driver for Elantech I2C touchpads

>From Vladimir Serbinenko



CVS: cvs.openbsd.org: src

2023-06-12 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/06/12 20:44:08

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

Log message:
regen



CVS: cvs.openbsd.org: src

2023-06-12 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/06/12 20:43:39

Modified files:
sys/dev/pci: pcidevs 

Log message:
add SanDisk PC SN740



CVS: cvs.openbsd.org: src

2023-05-16 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/05/16 08:10:43

Modified files:
lib/libssl : s3_lib.c 

Log message:
add missing pointer invalidation

ok tb



CVS: cvs.openbsd.org: src

2023-04-20 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 13:28:31

Modified files:
share/man/man4 : Makefile 
sys/arch/amd64/conf: GENERIC 
sys/arch/arm64/conf: GENERIC RAMDISK 
sys/dev/pv : files.pv virtio.c virtioreg.h 
sys/dev/wscons : wsconsio.h 
Added files:
share/man/man4 : viogpu.4 
sys/dev/pv : viogpu.c viogpu.h 

Log message:
add viogpu, a VirtIO GPU driver

works enough to get a console on qemu with more work to come from
others

feedback from miod
ok patrick



CVS: cvs.openbsd.org: src

2023-04-09 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/09 11:50:02

Modified files:
sys/dev/acpi   : acpithinkpad.c 

Log message:
don't attach temperature sensors for which there is no TMP# node in
the DSDT, and verify the result of the fetch when updating it later.

ok kn



CVS: cvs.openbsd.org: src

2023-03-09 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/03/09 14:06:24

Modified files:
usr.bin/ssh: authfd.c ssh-agent.c readconf.c 

Log message:
modify parentheses in conditionals to make it clearer what is being
assigned and what is being checked

ok djm dtucker



CVS: cvs.openbsd.org: src

2023-01-30 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/01/30 07:43:29

Modified files:
share/man/man4/man4.amd64: apm.4 
share/man/man4/man4.arm64: apm.4 
share/man/man4/man4.i386: apm.4 
share/man/man4/man4.loongson: apm.4 
share/man/man4/man4.macppc: apm.4 

Log message:
The APM_IOC_NEXTEVENT ioctl was removed in the mickey era, remove
documentation about it

ok deraadt, miod



CVS: cvs.openbsd.org: src

2023-01-24 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/01/24 14:48:04

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

Log message:
Parallels Desktop 17 emulates an azalia audio device, add it

azalia0 at pci0 dev 1 function 0 "Intel 82801I HD Audio" rev 0x00: msi
azalia0: codecs: Parallels/0x0001

ok patrick



CVS: cvs.openbsd.org: src

2022-04-20 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/04/20 15:55:17

Modified files:
lib/libutil: login_fbtab.c 
share/man/man5 : fbtab.5 

Log message:
Use glob to expand wildcards in "other device" paths rather than a
custom implementation that only allowed matching all files in a
directory.

ok millert



CVS: cvs.openbsd.org: src

2021-11-22 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/11/22 15:12:37

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

Log message:
use ISC license for ubcmtp



CVS: cvs.openbsd.org: src

2021-11-19 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/11/19 20:13:37

Modified files:
usr.sbin/config: config.8 main.c misc.c ukcutil.c 

Log message:
When cmdfile is specified, use lines from it for all input, not just
commands.  This allows complex actions like changing device
parameters to be done with a command file.



CVS: cvs.openbsd.org: src

2021-10-07 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/10/07 08:47:32

Modified files:
libexec/ld.so  : dlfcn.c 

Log message:
Print the name of the symbol that can't be resolved when using
LD_DEBUG

ok mpi, kn



CVS: cvs.openbsd.org: src

2021-09-08 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 20:23:14

Modified files:
sys/dev/pci/drm/i915/display: intel_csr.c 
sys/dev/pci/drm/i915/gt/uc: intel_uc_fw.c 

Log message:
Don't print references to Intel's website for downloading firmware
when loading fails, it will just confuse people

ok jsg



CVS: cvs.openbsd.org: src

2021-09-07 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/07 07:46:07

Modified files:
usr.bin/doas   : doas.c doas.h 

Log message:
Retry up to 3 times on password authentication failure

ok martijn
support from various



CVS: cvs.openbsd.org: src

2021-08-26 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/08/26 15:05:01

Modified files:
sys/dev/i2c: ihidev.c 

Log message:
Request wMaxInputLength bytes of data on each interrupt which should
already account for the two-byte length and one-byte report id,
rather than adding them ourself and requesting wMaxInputLength + 3.

Fixes dwiic timeouts requesting data from at least one touchpad.

Tested by various



CVS: cvs.openbsd.org: src

2021-08-10 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/08/10 06:19:06

Modified files:
sys/dev/acpi   : pchgpio.c 

Log message:
Add Tiger Lake LP (INT34C5) support

with James Hastings



CVS: cvs.openbsd.org: src

2021-08-08 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/08/08 08:45:16

Modified files:
sys/dev/pci/drm/i915/display: intel_opregion.c 

Log message:
Use the correct address offset on OpRegion 2.1+ devices to be able
to find the VBT

ok jsg



CVS: cvs.openbsd.org: src

2021-07-20 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/07/20 12:33:59

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

Log message:
add AMD 17h/6xh Root Complex

ok brynet



CVS: cvs.openbsd.org: src

2021-06-10 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/06/10 07:34:37

Modified files:
sys/dev/hid: hidms.c 

Log message:
Don't skip mouse attachment if an otherwise qualified report doesn't
include X and Y usages.

Some devices put the buttons on one report and X/Y on another, which
was causing us to ignore button data.  This change will cause
attachment of two mouse devices in this case, but wsmux and X's
handling of input devices will make this transparent.

A future change should use [IU]HIDEV_CLAIM_MULTIPLE_REPORTID and
attach just one [iu]ms device that claims multiple reports and gets
X/Y and button data from whichever report it needs to.  But the
future is not today.

ok gnezdo



CVS: cvs.openbsd.org: src

2021-05-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/31 12:30:11

Modified files:
usr.bin/usbhidctl: usbhid.c usbhidctl.1 

Log message:
add an -R flag to dump the raw report descriptor bytes for parsing
with other tools

man page help from jmc
ok anton



CVS: cvs.openbsd.org: src

2021-05-30 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/30 13:54:52

Modified files:
lib/libusbhid  : descr.c shlib_version usbhid.3 usbhid.h 

Log message:
add hid_get_report_desc_data() to access the raw report descriptor
data without needing to export the report_desc struct definition.

suggested by and ok anton@



CVS: cvs.openbsd.org: src

2021-05-25 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/25 13:06:13

Added files:
.  : .gitignore 

Log message:
instruct git to ignore all **/obj entries created by "make obj"

ok deraadt, stsp



CVS: cvs.openbsd.org: www

2021-04-30 Thread joshua stein
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2021/04/30 20:10:40

Modified files:
.  : index.html 
Added files:
images : puffy69.jpg 
Removed files:
images : puffy69.png 

Log message:
shrink banner image resolution, convert to jpeg

ok deraadt



CVS: cvs.openbsd.org: xenocara

2021-03-28 Thread joshua stein
CVSROOT:/cvs
Module name:xenocara
Changes by: j...@cvs.openbsd.org2021/03/28 09:57:45

Modified files:
driver/xf86-input-ws/src: ws.c 

Log message:
Ignore WSMOUSEIO_GTYPE ioctl failure when checking /dev/wsmouse

When xf86-input-ws has attached separately to all existing mouse
devices already or there are no mice plugged in, xf86-input-ws fails
to attach to the wsmouse mux as a default fallback because there is
no wsmouse device left in the mux to handle the WSMOUSEIO_GTYPE
ioctl.  If a USB mouse is later plugged in, there will not be any
xf86-input-ws driver loaded listening to /dev/wsmouse for input.

ok matthieu



CVS: cvs.openbsd.org: src

2021-03-23 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/23 20:49:57

Modified files:
sys/dev/usb: ums.c umt.c usb_quirks.c usb_quirks.h 

Log message:
Define a USB quirk for devices that need to keep their pipes open at
all times, before the device is enabled and after the device is
disabled by wscons.

This was originally needed by umt for the Microsoft Surface Type
Cover to avoid it resetting (or at least detaching and reattaching)
when the touchpad was touched while at the console.

A similar problem occurs with the Pinebook Pro's keyboard when
switching from X to the console due to the touchpad getting
disabled, so add it to ums as well.

with and ok kurt



CVS: cvs.openbsd.org: src

2021-03-23 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/23 20:21:40

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

Log message:
regen



CVS: cvs.openbsd.org: src

2021-03-23 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/23 20:20:44

Modified files:
sys/dev/usb: usbdevs 

Log message:
add HAILUCK Keyboard

from kurt



CVS: cvs.openbsd.org: src

2021-03-17 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/17 13:44:16

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

Log message:
When devices have claimed multiple report ids, only detach and send
DVACT_DEACTIVATE to them once when walking sc_subdevs.

Fixes a regression reported and tested by Edd Barrett.

Input from and previous version ok anton.



CVS: cvs.openbsd.org: src

2021-03-08 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/08 07:39:34

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

Log message:
Add another Type Cover device

from Fredrik Engberg



CVS: cvs.openbsd.org: src

2021-03-08 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/08 07:37:21

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

Log message:
regen



CVS: cvs.openbsd.org: src

2021-03-08 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/08 07:37:09

Modified files:
sys/dev/usb: usbdevs 

Log message:
Add Surface Pro Type Cover

from Fredrik Engberg



CVS: cvs.openbsd.org: src

2021-03-08 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/08 07:35:57

Modified files:
sys/dev/usb: fido.c ucycom.c ugold.c uhid.c uhidev.c 
 uhidev.h ujoy.c umt.c uoaklux.c uoakrh.c 
 uoakv.c upd.c uslhcom.c uthum.c utrh.c 
 utwitch.c 

Log message:
Allow uhidev child devices to claim selective report ids

There may be multiple matching devices on a single uhidev device but
the first device that responds to UHIDEV_CLAIM_ALLREPORTID will
block the others from attaching.

Change this to UHIDEV_CLAIM_MULTIPLE_REPORTID and require any
devices wanting some/all report ids to fill in the claimed array in
uhidev_attach_arg with just the reports it needs.  uhidev can then
run match routines for other drivers with the available report ids.

ok anton



CVS: cvs.openbsd.org: src

2021-02-09 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/09 07:37:13

Modified files:
sys/ddb: db_output.c db_output.h 
sys/dev/wscons : wsdisplay.c 

Log message:
ddb: when a new wsdisplay console attaches, resize ddb cols/rows to it

ok visa



CVS: cvs.openbsd.org: src

2021-02-05 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/05 10:59:33

Modified files:
usr.bin/sndiod : sndiod.8 sndiod.c 

Log message:
disable autovol by default and set default volume to 127

The previous behavior of automatically decreasing playback volume
when new programs start playing can be achieved with '-w on'.

ok ratchov, patrick



CVS: cvs.openbsd.org: src

2021-01-22 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/01/22 10:35:00

Modified files:
sys/dev/i2c: ims.c 
share/man/man4 : ims.4 

Log message:
ims: an actual i2c-connected mouse is unlikely

Claim to be a touchpad instead, which sets up ims devices in X11 to
be more like touchpads.

ok mglocker



CVS: cvs.openbsd.org: src

2021-01-17 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/01/17 07:24:00

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

Log message:
add another iwx device

ok stsp jsg



CVS: cvs.openbsd.org: src

2021-01-17 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/01/17 07:22:09

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

Log message:
regen



CVS: cvs.openbsd.org: src

2021-01-17 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/01/17 07:21:26

Modified files:
sys/dev/pci: pcidevs 

Log message:
add another ax201



CVS: cvs.openbsd.org: src

2020-12-17 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/12/17 08:37:09

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

Log message:
bwfm: add a delay in bwfm_set_key_cb before talking to hardware

This works around an issue on the BCM43602 where ieee80211 calls
this too quickly during authentication and triggers "unexpected
pairwise key update" errors.

ok patrick



CVS: cvs.openbsd.org: src

2020-11-01 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/11/01 11:16:08

Modified files:
usr.bin/diff   : diff.h 

Log message:
restore RCS id removed in 1.33



CVS: cvs.openbsd.org: src

2020-08-14 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/08/14 12:14:11

Modified files:
sys/dev/ic : com.c comreg.h comvar.h 
sys/dev/pci: puc.c pucdata.c pucvar.h 
sys/dev/puc: com_puc.c 

Log message:
Re-commit Exar XR17V35x serial port support previously backed out:

The Exar XR17V354 has 4 ports that have a 256-byte FIFO, use a
frequency of 125Mhz, and have a unique sleep register.  A custom
interrupt handler is setup in puc for these ports so it can check a
register which reports which ports triggered the interrupt, rather
than having to run comintr for every port every time.

To avoid probing for these ports in com_attach_subr which requires
access to registers that may be reserved on certain platforms, pass
the sc_uarttype from com_puc_attach since the port type is already
known based on the puc device vendor/id.

Input from kettenis, tested in snaps



CVS: cvs.openbsd.org: src

2020-07-09 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/07/09 15:01:56

Modified files:
sys/dev/i2c: ihidev.c ihidev.h imt.c 

Log message:
On some laptops that have a Windows Precision Touchpad (imt) and
also a trackstick or separate physical buttons, imt was claiming all
report ids of the ihidev device preventing the trackstick/buttons
from attaching as a separate ims device on other report ids.

Just claim the report ids that imt needs and let ims attach to
others it may find.

Fixes two Dell Latitude laptops and tested in snaps for a bit.



CVS: cvs.openbsd.org: src

2020-07-09 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/07/09 15:01:08

Modified files:
sys/dev/hid: hidmt.c 

Log message:
Some touchpads don't have the "maximum number of contacts" or
"button type" usages, so assume some reasonable defaults rather than
failing to attach.

Fixes two Dell Latitude laptops and tested in snaps for a bit.



CVS: cvs.openbsd.org: src

2020-07-06 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/07/06 20:13:13

Modified files:
sys/arch/amd64/amd64: efifb.c 

Log message:
Get rid of some rasops callbacks in efifb that only call rasops
functions in them and let rasops call them directly.

>From John Carmack

ok kettenis



CVS: cvs.openbsd.org: xenocara

2020-06-12 Thread joshua stein
CVSROOT:/cvs
Module name:xenocara
Changes by: j...@cvs.openbsd.org2020/06/12 08:45:55

Modified files:
xserver/os : utils.c 

Log message:
revert local change which removed -retro flag and adjust -br to
properly override our default behavior of stippled root.

no objection from deraadt and kettenis



CVS: cvs.openbsd.org: src

2020-06-02 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/06/02 13:26:36

Modified files:
sys/dev/acpi   : acpihid.c 

Log message:
disable debugging by default and only print unknown events when
debug is enabled



CVS: cvs.openbsd.org: src

2020-06-02 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/06/02 10:24:25

Modified files:
share/man/man4 : Makefile acpi.4 
sys/arch/amd64/conf: GENERIC 
sys/dev/acpi   : files.acpi 
Added files:
share/man/man4 : acpihid.4 
sys/dev/acpi   : acpihid.c 

Log message:
add acpihid(4) for ACPI HID event and 5-button array devices

ok kettenis



CVS: cvs.openbsd.org: src

2020-05-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/05/31 21:42:38

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

Log message:
regen



CVS: cvs.openbsd.org: src

2020-05-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/05/31 21:42:18

Modified files:
sys/dev/pci: pcidevs 

Log message:
add SK hynix, and an NVMe from them



CVS: cvs.openbsd.org: src

2020-05-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/05/31 19:52:21

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

Log message:
make umstc descriptions the same in both man pages



CVS: cvs.openbsd.org: src

2020-05-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/05/31 12:15:37

Modified files:
share/man/man4 : Makefile usb.4 
sys/arch/amd64/conf: GENERIC 
sys/dev/hid: hid.h 
sys/dev/usb: files.usb 
Added files:
share/man/man4 : umstc.4 
sys/dev/usb: umstc.c 

Log message:
add umstc(4) for Microsoft Surface Type Cover keyboards



CVS: cvs.openbsd.org: src

2020-05-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/05/31 12:12:04

Modified files:
sys/dev/usb: usbdevs 

Log message:
add two Surface Go Type Cover models



CVS: cvs.openbsd.org: src

2020-05-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/05/31 12:12:28

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

Log message:
regen



CVS: cvs.openbsd.org: src

2020-01-27 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/01/27 12:16:43

Modified files:
sys/net: bpf.c 

Log message:
update bpf_iflist in bpfsdetach instead of bpfdetach as some drivers
like USB only use the former and bpf_iflist was otherwise retaining
references to a freed bpf_if.

ok sashan



CVS: cvs.openbsd.org: src

2019-11-16 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/11/16 18:38:20

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

Log message:
print firmware version as unsigned ints

ok stsp



CVS: cvs.openbsd.org: src

2019-10-29 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/10/29 12:48:18

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

Log message:
sync



CVS: cvs.openbsd.org: src

2019-10-29 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/10/29 12:47:51

Modified files:
sys/dev/pci: pcidevs 

Log message:
add an Intel 9260 wifi card



CVS: cvs.openbsd.org: src

2019-10-21 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/10/21 10:45:48

Modified files:
sys/dev/acpi   : acpithinkpad.c 

Log message:
On newer ThinkPads reporting HKEY version > 1, don't claim wscons
backlight controls so that acpivout can.  This allows using all of
the fine-grained backlight BCL steps defined in ACPI (usually 100)
instead of the dozen or so available through acpithinkpad's
proprietary ACPI or CMOS interfaces.

This is also needed for future amdgpu work.



CVS: cvs.openbsd.org: src

2019-10-21 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/10/21 10:32:51

Modified files:
sys/dev/acpi   : acpivout.c 

Log message:
When incrementing or decrementing screen brightness, don't just
adjust by 1 BCL level as there may be 100 levels.  Find the next
brightness level that is at least 5% up or down and use that.

ok kettenis



CVS: cvs.openbsd.org: src

2019-10-13 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/10/13 20:04:35

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

Log message:
Add another quirk for the ALC285 on the X1C7 to avoid a clicking
noise on the headphone output

>From Linux



CVS: cvs.openbsd.org: src

2019-10-13 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/10/13 19:59:14

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

Log message:
Rename AZ_QRK_WID_SPKR2_DAC and AZ_QRK_WID_DOLBY_ATMOS to make it
clear they are not widget quirks, and renumber AZ_QRK_WID_SPKR2_DAC
to fall outside of AZ_QRK_WID_MASK since it's not handled by
azalia_codec_widget_quirks



CVS: cvs.openbsd.org: www

2019-10-11 Thread joshua stein
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2019/10/11 22:40:36

Modified files:
.  : 66.html 

Log message:
tweak some entries



CVS: cvs.openbsd.org: src

2019-08-29 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/08/29 08:04:48

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

Log message:
ure: attach to RTL8153B device on Lenovo USB-C Dock



CVS: cvs.openbsd.org: src

2019-08-27 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/08/27 12:00:19

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

Log message:
sync



CVS: cvs.openbsd.org: src

2019-08-27 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/08/27 11:59:58

Modified files:
sys/dev/usb: usbdevs 

Log message:
add ethernet found on Lenovo USB-C Dock



CVS: cvs.openbsd.org: src

2019-08-13 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/08/13 09:28:13

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

Log message:
azalia: add quirk for speaker routing on ThinkPad X1C7

The X1C7 has 4 speakers and the speaker2 set needs to be routed to a
different DAC.

Also add the Intel 300 Series HDA to the list of devices on which to
enable snooping.



CVS: cvs.openbsd.org: src

2019-08-07 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/08/07 16:03:43

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

Log message:
recognize the Realtek ALC285



CVS: cvs.openbsd.org: src

2019-08-03 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/08/03 08:57:51

Modified files:
sys/arch/amd64/amd64: lapic.c tsc.c 

Log message:
If the CPU frequency is available during TSC init, make it available
for lapic timer init to avoid calibrating against the 8254 clock.
Some newer machines are shipping with the 8254 clock gated for power
saving, so it may not be usable.

ok mlarkin
discussed with deraadt



CVS: cvs.openbsd.org: src

2019-07-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/07/31 10:09:12

Modified files:
sys/dev/i2c: ihidev.c 

Log message:
ihidev: continue doing polling when interrupt setup fails



CVS: cvs.openbsd.org: src

2019-07-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/07/31 10:07:21

Modified files:
sys/dev/acpi   : dwiic_acpi.c 

Log message:
dwiic_acpi: handle GPIO interrupts when we have no appropriate driver

Avoid printing a confusing "irq 0" message in this case.



CVS: cvs.openbsd.org: src

2019-07-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/07/31 10:04:16

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

Log message:
dwiic: stop enabling polling by default

The interrupt problem had nothing to do with changes in the Intel
100 Series and was due to most of these machines using the same DSDT
template where we were walking _INI nodes in the wrong order.

This lead to the touchpad device's _INI method being called before
\_SB_.PCI0._INI (where \OSYS is initialized), making the touchpad
device's interrupts setup for an OSYS of 0, but when its _CRS method
was called later during ihidev attachment (after \_SB_.PCI0._INI was
executed, modifying OSYS), it returned information for interrupts as
if were initially setup for the proper OSYS.



CVS: cvs.openbsd.org: src

2019-07-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/07/31 09:58:00

Modified files:
sys/dev/acpi   : dsdt.c 

Log message:
aml_find_node: perform callback on matched direct-child nodes before
recursing into child devices looking for matches.

This ensures that when walking nodes with acpi_inidev, a method like
\_SB_.PCI0._INI will be executed before \_SB_.PCI0.I2C1.TPL1._INI.

This matches how ACPICA walks nodes and a commonly-used DSDT
template assumes that \OSYS has been initialized in \_SB_.PCI0._INI
before being used by other device _INI methods.

This should also help to execute \_INI and \_SB_._INI first, if
present, which ACPICA does explicitly.

Tested in snaps, ok deraadt



CVS: cvs.openbsd.org: src

2019-07-31 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/07/31 09:47:49

Modified files:
sys/dev/acpi   : dsdt.c 

Log message:
The ACPI 3 spec says the ToHexString and ToDec(imal)String
operators can take a data argument of Integer, String, or Buffer
types, not just Integer.

ok kettenis, deraadt



CVS: cvs.openbsd.org: src

2019-07-22 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/07/22 08:37:06

Modified files:
sys/dev/acpi   : dwiic_acpi.c 
sys/dev/i2c: i2cvar.h ihidev.c ihidev.h 

Log message:
Even when polling is requested, install ihidev's interrupt handler

If an interrupt is received, turn off polling and rely on
interrupts.  This may happen after S3 resume.

Also properly shut down polling during suspend and start it up again
on resume only after dwiic is back in action.



CVS: cvs.openbsd.org: src

2019-07-16 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/07/16 13:12:32

Modified files:
sys/dev/acpi   : dwiic_acpi.c 
sys/dev/ic : dwiic.c 
sys/dev/pci: dwiic_pci.c 

Log message:
don't bother reading default timing parameters if they're just going
to be overridden from ACPI



CVS: cvs.openbsd.org: src

2019-07-16 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/07/16 13:00:25

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

Log message:
dwiic_init is called from dwiic_activate, don't do it twice



CVS: cvs.openbsd.org: src

2019-07-02 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/07/02 15:17:24

Modified files:
sys/dev/acpi   : acpi.c acpiec.c acpivar.h 

Log message:
acpi_set_gpehandler: turn edge arg into flags, add support for
passing GPE_DIRECT which directly executes the supplied callback and
clears a level interrupt rather than going through acpi_taskq which
can be slow when other driver callbacks are in the queue.

This should not be used for GPE handlers that need to do anything
ACPI-related.

ok kettenis



CVS: cvs.openbsd.org: src

2019-07-02 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/07/02 09:26:07

Modified files:
sys/dev/pci/drm/i915: intel_fbdev.c 

Log message:
re-add framebuffer size change from 1.4 that was lost in the big
update

ok jsg



CVS: cvs.openbsd.org: src

2019-07-01 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/07/01 12:39:26

Modified files:
sys/dev/pci/drm/i915: intel_display.c 

Log message:
drm/i915/gen9+: Fix initial readout for Y tiled framebuffers

>From Imre Deak
d9a515867bdba59ebf196a6ade10faae8e8be36a in mainline linux

ok jsg



CVS: cvs.openbsd.org: www

2019-06-13 Thread joshua stein
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2019/06/13 11:46:47

Modified files:
.  : groups.html 

Log message:
sync



CVS: cvs.openbsd.org: www

2019-06-13 Thread joshua stein
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2019/06/13 11:46:26

Modified files:
build  : groups.dat 

Log message:
ChiBUG has been meeting every month



CVS: cvs.openbsd.org: www

2019-06-13 Thread joshua stein
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2019/06/13 11:46:01

Modified files:
build  : groups.skel 

Log message:
remove whitespace that was removed in groups.html



CVS: cvs.openbsd.org: www

2019-06-13 Thread joshua stein
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2019/06/13 11:43:55

Modified files:
.  : index.html 

Log message:
add a link to groups.html on the sidebar

ok deraadt



CVS: cvs.openbsd.org: xenocara

2019-06-11 Thread joshua stein
CVSROOT:/cvs
Module name:xenocara
Changes by: j...@cvs.openbsd.org2019/06/11 08:51:34

Modified files:
xserver/config : wscons.c 
xserver/os : privsep.c 

Log message:
when probing for wsmouse devices, check up to wsmouse9

ok deraadt



CVS: cvs.openbsd.org: src

2019-06-11 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/06/11 08:49:18

Modified files:
etc/etc.alpha  : MAKEDEV 
etc/etc.amd64  : MAKEDEV 
etc/etc.arm64  : MAKEDEV 
etc/etc.armv7  : MAKEDEV 
etc/etc.hppa   : MAKEDEV 
etc/etc.i386   : MAKEDEV 
etc/etc.landisk: MAKEDEV 
etc/etc.loongson: MAKEDEV 
etc/etc.luna88k: MAKEDEV 
etc/etc.macppc : MAKEDEV 
etc/etc.octeon : MAKEDEV 
etc/etc.sgi: MAKEDEV 
etc/etc.sparc64: MAKEDEV 

Log message:
regen



CVS: cvs.openbsd.org: src

2019-06-11 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/06/11 08:48:56

Modified files:
etc: MAKEDEV.common 

Log message:
make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt



CVS: cvs.openbsd.org: src

2019-06-07 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/06/07 10:07:00

Modified files:
sys/arch/amd64/conf: GENERIC 
sys/dev/usb: files.usb 
share/man/man4 : Makefile ucom.4 usb.4 
Added files:
sys/dev/usb: ukspan.c 
share/man/man4 : ukspan.4 

Log message:
add ukspan(4), a driver for the Keyspan USA19HS USB serial adapter

written by Cody Cutler 



CVS: cvs.openbsd.org: src

2019-06-07 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/06/07 10:06:08

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

Log message:
regen



CVS: cvs.openbsd.org: src

2019-06-07 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/06/07 10:05:55

Modified files:
sys/dev/usb: usbdevs 

Log message:
add Keyspan USA-19HS



CVS: cvs.openbsd.org: src

2019-05-27 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/05/27 09:50:26

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

Log message:
fix multitouch by properly reading multi-finger data on type4
devices which have padding between finger data

tested on an older model by bru@



CVS: cvs.openbsd.org: src

2019-05-25 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/05/25 09:47:46

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

Log message:
two-finger scrolling works out of the box now, no need for synclient



CVS: cvs.openbsd.org: src

2019-04-08 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/04/08 11:50:45

Modified files:
sys/dev/i2c: ihidev.c 

Log message:
change psize to a signed int to cope with it going negative since
the data read during polling may be junk

fixed with Petr Ro??kai
ok deraadt, mpi, stsp



CVS: cvs.openbsd.org: src

2019-03-24 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/03/24 08:37:44

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

Log message:
Add a quirk for the Huawei Matebook X to activate the right-side
speaker on its Dolby Atmos system.

Through some extensive tracing of the Realtek Windows driver, I
found the many hundreds of CORB commands that the Windows driver
sends to initialize Dolby Atmos and activate both speakers.

The list of CORB commands was optimized by Tomas Espeleta to reduce
file size and then implemented in azalia by Stefan Sperling.

ok stsp, deraadt



CVS: cvs.openbsd.org: src

2019-03-15 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/03/15 20:40:43

Modified files:
sys/dev/pci: dwiic_pci.c 
sys/dev/ic : dwiicvar.h 

Log message:
fetch timing parameters from ACPI like the ACPI attachment does
since those fetched from the controller may not be correct

also attach on intel 300 series devices

ok kettenis



CVS: cvs.openbsd.org: src

2019-03-08 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/03/08 09:33:23

Modified files:
sys/dev/acpi   : acpithinkpad.c 

Log message:
the previous hkey version check was not accurate enough, so try the
ACPI method for screen backlight changes everywhere and if the ACPI
method fails, fallback on the CMOS method.

also unmask the mic mute event needed on the x260.

required for the x260, no regression on the x40, x230, x250, x280,
t460s, t470p, and x1c6.



CVS: cvs.openbsd.org: src

2019-03-06 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/03/06 08:36:30

Modified files:
sys/dev/acpi   : acpithinkpad.c 

Log message:
explicitly unmask keyboard brightness and screen brightness events

on newer machines these may be masked by default so unmask them to
keep wscons keyboard.backlight in sync and give us a chance to react
to screen brightness keys.

on those newer machines, make thinkpad_brightness_{up,down} use the
ACPI method for adjusting screen brightness instead of the old CMOS
method.

tested by many
fixes x270, x280, t470s, t470p, x1c6
no regression on x201, x230, x240, x250



  1   2   3   >