Author: wulf
Date: Wed Dec 16 08:43:38 2020
New Revision: 368691
URL: https://svnweb.freebsd.org/changeset/base/368691
Log:
Fix fallout from r368689
This is a direct commit because of different KBDC type in HEAD and STABLE12
Modified:
stable/12/sys/dev/atkbdc/psm.c
Modified:
Author: wulf
Date: Wed Dec 16 08:03:07 2020
New Revision: 368690
URL: https://svnweb.freebsd.org/changeset/base/368690
Log:
MFC r368366
ig4(4): Add PCI IDs for Intel Tiger Lake
Submitted by: Neel Chauhan
Differential Revision:https://reviews.freebsd.org/D27483
Modified:
Author: wulf
Date: Wed Dec 16 07:59:47 2020
New Revision: 368689
URL: https://svnweb.freebsd.org/changeset/base/368689
Log:
MFC: r367349, r367854, r368365, r368374(by cem)
r367349:
atkbdc(4): Add quirk for "System76 lemur Pro" laptops.
Currently atkbdc(4) assumes all coreboot
Author: wulf
Date: Sat Dec 5 10:57:15 2020
New Revision: 368366
URL: https://svnweb.freebsd.org/changeset/base/368366
Log:
ig4(4): Add PCI IDs for Intel Tiger Lake
Submitted by: Neel Chauhan
Differential Revision:https://reviews.freebsd.org/D27483
Modified:
Author: wulf
Date: Sat Dec 5 10:55:14 2020
New Revision: 368365
URL: https://svnweb.freebsd.org/changeset/base/368365
Log:
atkbd(4): Change quirk table end-of-list marker to NULL vendor/maker/product
This fixes regression introduced in r367349 which effectively resulted in
truncation of
Author: wulf
Date: Fri Nov 20 00:13:30 2020
New Revision: 367854
URL: https://svnweb.freebsd.org/changeset/base/367854
Log:
psm(4): Disable AUX multiplexer probing on all Lenovo laptops.
Rudimentary AUX multiplexing support was added to kernel to make possible
touchpad initialization on
Author: wulf
Date: Sat Nov 14 12:02:50 2020
New Revision: 367677
URL: https://svnweb.freebsd.org/changeset/base/367677
Log:
MFC r367239-367241:
r367239:
Add plug and play information macroses for ACPI and I2C buses.
Matching table format is compatible with ACPI_ID_PROBE bus method.
Author: wulf
Date: Sat Nov 14 11:51:37 2020
New Revision: 367676
URL: https://svnweb.freebsd.org/changeset/base/367676
Log:
MFC r367237:
devmatch(8): Respect mask field when matching strings of Z type.
While here, add debug output for this action.
Reviewed by: imp
Differential
Author: wulf
Date: Sat Nov 14 11:48:28 2020
New Revision: 367675
URL: https://svnweb.freebsd.org/changeset/base/367675
Log:
MFC r367230:
ig4(4): Add PCI IDs for Intel Comet Lake I2C controllers.
Modified:
stable/12/sys/dev/ichiic/ig4_pci.c
Directory Properties:
stable/12/ (props
Author: wulf
Date: Sat Nov 14 10:34:18 2020
New Revision: 367673
URL: https://svnweb.freebsd.org/changeset/base/367673
Log:
LinuxKPI: Exclude linux/acpi.h content on non-ACPI archs.
LinuxKPI ACPI support is based on FreeBSD import of ACPICA which can be
compiled only on aarch64, amd64
Author: wulf
Date: Wed Nov 4 21:52:10 2020
New Revision: 367349
URL: https://svnweb.freebsd.org/changeset/base/367349
Log:
atkbdc(4): Add quirk for "System76 lemur Pro" laptops.
Currently atkbdc(4) assumes all coreboot BIOSes belonging to Chromebooks
and unconditionally sets a number of
Author: wulf
Date: Sat Oct 31 22:20:42 2020
New Revision: 367241
URL: https://svnweb.freebsd.org/changeset/base/367241
Log:
acpi_dock(4): Add ACPI_PNP_INFO
MFC after:2 weeks
Modified:
head/sys/dev/acpica/acpi_dock.c
Modified: head/sys/dev/acpica/acpi_dock.c
Author: wulf
Date: Sat Oct 31 22:19:39 2020
New Revision: 367240
URL: https://svnweb.freebsd.org/changeset/base/367240
Log:
acpi_wmi(4): Add ACPI_PNP_INFO
MFC after:2 weeks
Modified:
head/sys/dev/acpi_support/acpi_wmi.c
Modified: head/sys/dev/acpi_support/acpi_wmi.c
Author: wulf
Date: Sat Oct 31 22:15:59 2020
New Revision: 367239
URL: https://svnweb.freebsd.org/changeset/base/367239
Log:
Add plug and play information macroses for ACPI and I2C buses.
Matching table format is compatible with ACPI_ID_PROBE bus method.
Note that while ACPI_ID_PROBE
Author: wulf
Date: Sat Oct 31 22:04:13 2020
New Revision: 367237
URL: https://svnweb.freebsd.org/changeset/base/367237
Log:
devmatch(8): Respect mask field when matching strings of Z type.
While here, add debug output for this action.
Reviewed by: imp
MFC after:2 weeks
Author: wulf
Date: Sat Oct 31 20:28:13 2020
New Revision: 367234
URL: https://svnweb.freebsd.org/changeset/base/367234
Log:
acpi_video(4): Put display device in to D3 state on "Display off" event.
As required by ACPI specs 6.3, appendix A.6, table B-8.
Modified:
Author: wulf
Date: Sat Oct 31 20:25:55 2020
New Revision: 367233
URL: https://svnweb.freebsd.org/changeset/base/367233
Log:
acpi_video(4): Add evdev support for reporting of video events.
Modified:
head/sys/dev/acpica/acpi_video.c
Modified: head/sys/dev/acpica/acpi_video.c
Author: wulf
Date: Sat Oct 31 20:14:28 2020
New Revision: 367232
URL: https://svnweb.freebsd.org/changeset/base/367232
Log:
acpi(9): Add EVENTHANDLERs for video and AC adapter events.
They are required for coming ACPI support in LinuxKPI.
Reviewed by: hselasky, manu (as part of
Author: wulf
Date: Sat Oct 31 19:47:34 2020
New Revision: 367231
URL: https://svnweb.freebsd.org/changeset/base/367231
Log:
acpi: Tweak _DSM method evaluation helpers.
- Use ACPI style for _DSM evaluation helper parameter types.
- Constify UUID parameter.
- Increase size of returned
Author: wulf
Date: Sat Oct 31 19:30:23 2020
New Revision: 367230
URL: https://svnweb.freebsd.org/changeset/base/367230
Log:
ig4(4): Add PCI IDs for Intel Comit Lake I2C controllers.
MFC after:2 weeks
Modified:
head/sys/dev/ichiic/ig4_pci.c
Modified: head/sys/dev/ichiic/ig4_pci.c
Author: wulf
Date: Sun Sep 6 17:40:35 2020
New Revision: 365383
URL: https://svnweb.freebsd.org/changeset/base/365383
Log:
MFC r364964: LinuxKPI: Implement ksize() function.
In Linux, ksize() gets the actual amount of memory allocated for a given
object. This commit adds
Author: wulf
Date: Sat Aug 29 19:26:31 2020
New Revision: 364964
URL: https://svnweb.freebsd.org/changeset/base/364964
Log:
LinuxKPI: Implement ksize() function.
In Linux, ksize() gets the actual amount of memory allocated for a given
object. This commit adds malloc_usable_size() to
Author: wulf
Date: Tue Jul 21 23:38:05 2020
New Revision: 363407
URL: https://svnweb.freebsd.org/changeset/base/363407
Log:
MFC 363205:
linuxkpi: Ignore NULL pointers passed to string parameter of kstr(n)dup
That follows Linux and fixes related drm-kmod-5.3 panic.
Reviewed by:
Author: wulf
Date: Tue Jul 21 23:36:18 2020
New Revision: 363406
URL: https://svnweb.freebsd.org/changeset/base/363406
Log:
MFC r363205:
linuxkpi: Ignore NULL pointers passed to string parameter of kstr(n)dup
That follows Linux and fixes related drm-kmod-5.3 panic.
Reviewed by:
Author: wulf
Date: Tue Jul 14 21:56:59 2020
New Revision: 363205
URL: https://svnweb.freebsd.org/changeset/base/363205
Log:
linuxkpi: Ignore NULL pointers passed to string parameter of kstr(n)dup
That follows Linux and fixes related drm-kmod-5.3 panic.
Reviewed by: imp, hselasky
Author: wulf
Date: Thu Jun 25 00:09:43 2020
New Revision: 362599
URL: https://svnweb.freebsd.org/changeset/base/362599
Log:
atkbd/evdev: recognize the Chromebook menu key as F13 like Linux does.
This is the key on the right side of the function keys, with the
"hamburger menu" icon on it.
Author: wulf
Date: Thu Jun 25 00:01:24 2020
New Revision: 362598
URL: https://svnweb.freebsd.org/changeset/base/362598
Log:
MFC r362260:
evdev: Add AT translated set1 scancodes for 'Eisu' & 'Kana' keys.
PR: 247292
Submitted by: Yuichiro NAITO
Modified:
Author: wulf
Date: Thu Jun 25 00:00:04 2020
New Revision: 362597
URL: https://svnweb.freebsd.org/changeset/base/362597
Log:
MFC r362260:
evdev: Add AT translated set1 scancodes for 'Eisu' & 'Kana' keys.
PR: 247292
Submitted by: Yuichiro NAITO
Modified:
Author: wulf
Date: Wed Jun 17 08:35:35 2020
New Revision: 362260
URL: https://svnweb.freebsd.org/changeset/base/362260
Log:
evdev: Add AT translated set1 scancodes for 'Eisu' & 'Kana' keys.
PR: 247292
Submitted by: Yuichiro NAITO
MFC after:1 week
Modified:
Author: wulf
Date: Mon Jun 15 22:43:46 2020
New Revision: 362209
URL: https://svnweb.freebsd.org/changeset/base/362209
Log:
MFC r361715:
[psm] Do not disable trackpoint when hw.psm.elantech.touchpad_off is enabled
PR: 246117
Reported by: Alexander Sieg
MFC r361718:
Author: wulf
Date: Mon Jun 15 22:41:28 2020
New Revision: 362208
URL: https://svnweb.freebsd.org/changeset/base/362208
Log:
MFC r361715:
[psm] Do not disable trackpoint when hw.psm.elantech.touchpad_off is enabled
PR: 246117
Reported by: Alexander Sieg
MFC r361718:
Author: wulf
Date: Mon Jun 15 22:35:39 2020
New Revision: 362207
URL: https://svnweb.freebsd.org/changeset/base/362207
Log:
MFC r360624:
[evdev] Add AT translated set1 scancodes for F-unlocked F1-12 keys.
"F lock" is a switch between two sets of scancodes for function keys F1-F12
Author: wulf
Date: Mon Jun 15 22:32:59 2020
New Revision: 362206
URL: https://svnweb.freebsd.org/changeset/base/362206
Log:
MFC r360624:
[evdev] Add AT translated set1 scancodes for F-unlocked F1-12 keys.
"F lock" is a switch between two sets of scancodes for function keys F1-F12
Author: wulf
Date: Tue Jun 2 01:04:49 2020
New Revision: 361718
URL: https://svnweb.freebsd.org/changeset/base/361718
Log:
[psm] Workaround active PS/2 multiplexor hang
which happens on some laptops after returning to legacy multiplexing mode
at initialization stage.
PR:
Author: wulf
Date: Tue Jun 2 00:53:39 2020
New Revision: 361715
URL: https://svnweb.freebsd.org/changeset/base/361715
Log:
[psm] Do not disable trackpoint when hw.psm.elantech.touchpad_off is enabled
PR: 246117
Reported by: Alexander Sieg
MFC after:1 week
Modified:
Author: wulf
Date: Mon May 4 11:00:24 2020
New Revision: 360625
URL: https://svnweb.freebsd.org/changeset/base/360625
Log:
[evdev] Sync event codes with Linux kernel 5.6
MFC after:2 weeks
Modified:
head/sys/dev/evdev/input-event-codes.h
head/sys/dev/evdev/input.h
Modified:
Author: wulf
Date: Mon May 4 10:59:17 2020
New Revision: 360624
URL: https://svnweb.freebsd.org/changeset/base/360624
Log:
[evdev] Add AT translated set1 scancodes for F-unlocked F1-12 keys.
"F lock" is a switch between two sets of scancodes for function keys F1-F12
found on some
Author: wulf
Date: Sun May 3 23:40:16 2020
New Revision: 360618
URL: https://svnweb.freebsd.org/changeset/base/360618
Log:
MFC r360355:
ig4(4): Add PCI IDs for Intel Bay Trail I2C controllers.
PR: 245654
Reported by:
Modified:
stable/12/sys/dev/ichiic/ig4_pci.c
Author: wulf
Date: Sun May 3 23:38:21 2020
New Revision: 360617
URL: https://svnweb.freebsd.org/changeset/base/360617
Log:
MFC r360353:
psm(4): Fix wrong key-release event occuring after trackpoint use.
Some models of laptops e.g. "X1 Carbon 3rd Gen Thinkpad" have LRM buttons
wired
Author: wulf
Date: Sun May 3 23:38:21 2020
New Revision: 360617
URL: https://svnweb.freebsd.org/changeset/base/360617
Log:
MFC r360353:
psm(4): Fix wrong key-release event occuring after trackpoint use.
Some models of laptops e.g. "X1 Carbon 3rd Gen Thinkpad" have LRM buttons
wired
Author: wulf
Date: Sun Apr 26 20:16:18 2020
New Revision: 360355
URL: https://svnweb.freebsd.org/changeset/base/360355
Log:
ig4(4): Add PCI IDs for Intel Bay Trail I2C controllers.
PR: 245654
Reported by:
MFC after:1 week
Modified:
head/sys/dev/ichiic/ig4_pci.c
Author: wulf
Date: Sun Apr 26 20:06:08 2020
New Revision: 360353
URL: https://svnweb.freebsd.org/changeset/base/360353
Log:
psm(4): Fix wrong key-release event occuring after trackpoint use.
Some models of laptops e.g. "X1 Carbon 3rd Gen Thinkpad" have LRM buttons
wired as so called
Author: wulf
Date: Sun Apr 26 19:42:40 2020
New Revision: 360351
URL: https://svnweb.freebsd.org/changeset/base/360351
Log:
MFC r359905:
[evdev] Use proper mutex reference in autorepeat callout initialization.
This fixes panic occuring when evdev key autorepeat is enabled by driver
Author: wulf
Date: Sun Apr 26 19:43:27 2020
New Revision: 360352
URL: https://svnweb.freebsd.org/changeset/base/360352
Log:
MFC r359905:
[evdev] Use proper mutex reference in autorepeat callout initialization.
This fixes panic occuring when evdev key autorepeat is enabled by driver
On 20.04.2020 19:39, Justin Hibbits wrote:
> But I'm curious, why not attach to sysmouse(4) and kbdmux(4)? What
> breakage does that cause? I could maybe see not attaching to
> sysmouse(4) by default, if the protocol isn't expressive enough, but
> kbdmux(4) should be sufficient.
>
> - Justin
Author: wulf
Date: Mon Apr 13 22:21:01 2020
New Revision: 359907
URL: https://svnweb.freebsd.org/changeset/base/359907
Log:
MFC r359428:
evdev: Add COMPAT_FREEBSD32 support for amd64 arch
Incompatibility between i386 and amd64 evdev ABIs was caused by presence of
'struct timeval' in
Author: wulf
Date: Mon Apr 13 22:18:49 2020
New Revision: 359906
URL: https://svnweb.freebsd.org/changeset/base/359906
Log:
MFC r359428:
evdev: Add COMPAT_FREEBSD32 support for amd64 arch
Incompatibility between i386 and amd64 evdev ABIs was caused by presence of
'struct timeval' in
Author: wulf
Date: Mon Apr 13 22:06:28 2020
New Revision: 359905
URL: https://svnweb.freebsd.org/changeset/base/359905
Log:
[evdev] Use proper mutex reference in autorepeat callout initialization.
This fixes panic occuring when evdev key autorepeat is enabled by driver
which initializes
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ stable/12/sys/dev/iicbus/acpi_iicbus.c Sun Mar 29 23:38:55 2020
(r359431, copy of r358820, head/sys/dev/iicbus/acpi_iicbus.c)
@@ -0,0 +1,789 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
Author: wulf
Date: Sun Mar 29 23:01:36 2020
New Revision: 359429
URL: https://svnweb.freebsd.org/changeset/base/359429
Log:
evdev: return error rather than zero-length data on blocked read()
if blocked process has been woken up by evdev device destruction.
MFC after:2 weeks
Author: wulf
Date: Sun Mar 29 23:00:33 2020
New Revision: 359428
URL: https://svnweb.freebsd.org/changeset/base/359428
Log:
evdev: Add COMPAT_FREEBSD32 support for amd64 arch
Incompatibility between i386 and amd64 evdev ABIs was caused by presence of
'struct timeval' in evdev protocol.
Author: wulf
Date: Tue Mar 17 23:58:58 2020
New Revision: 359056
URL: https://svnweb.freebsd.org/changeset/base/359056
Log:
MFC r358824:
wmt(4): Fix Synaptics Touch Digitizer V04 attachment
Touch Digitizer V04 report descriptor declares 'Contact Count Maximum' usage
as constant.
Author: wulf
Date: Tue Mar 17 23:57:06 2020
New Revision: 359055
URL: https://svnweb.freebsd.org/changeset/base/359055
Log:
MFC r358824:
wmt(4): Fix Synaptics Touch Digitizer V04 attachment
Touch Digitizer V04 report descriptor declares 'Contact Count Maximum' usage
as constant.
Author: wulf
Date: Sat Mar 14 22:07:11 2020
New Revision: 359004
URL: https://svnweb.freebsd.org/changeset/base/359004
Log:
MFC r358895
wmt(4): Reapply r358872 (by hselasky) modified to use
maximal input report size instead of wMaxPacketSize.
If the USB frame length is set to 1024
Author: wulf
Date: Sat Mar 14 22:03:49 2020
New Revision: 359003
URL: https://svnweb.freebsd.org/changeset/base/359003
Log:
MFC r358895
wmt(4): Reapply r358872 (by hselasky) modified to use
maximal input report size instead of wMaxPacketSize.
If the USB frame length is set to 1024
Author: wulf
Date: Wed Mar 11 20:05:49 2020
New Revision: 358895
URL: https://svnweb.freebsd.org/changeset/base/358895
Log:
wmt(4): Reapply r358872 (by hselasky) modified to use
maximal input report size instead of wMaxPacketSize.
If the USB frame length is set to 1024 bytes, WMT_BSIZE,
Author: wulf
Date: Wed Mar 11 19:57:43 2020
New Revision: 358892
URL: https://svnweb.freebsd.org/changeset/base/358892
Log:
wmt(4): revert r358872 (by hselasky)
Limiting frame size to maximum packet size breaks devices which have input
report size larger than wMaxPacketSize. Maximal
Author: wulf
Date: Mon Mar 9 21:01:22 2020
New Revision: 358824
URL: https://svnweb.freebsd.org/changeset/base/358824
Log:
wmt(4): Fix Synaptics Touch Digitizer V04 attachment
Touch Digitizer V04 report descriptor declares 'Contact Count Maximum' usage
as constant. That was not
Mon Mar 9 20:31:38 2020
(r358820)
@@ -0,0 +1,789 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
+ * Copyright (c) 2019-2020 Vladimir Kondratyev
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the
Author: wulf
Date: Mon Mar 9 20:28:45 2020
New Revision: 358819
URL: https://svnweb.freebsd.org/changeset/base/358819
Log:
acpi: Export functions required by upcoming acpi_iicbus driver.
Modified:
head/sys/dev/acpica/acpi.c
head/sys/dev/acpica/acpivar.h
Modified:
Author: wulf
Date: Mon Mar 9 20:27:25 2020
New Revision: 358818
URL: https://svnweb.freebsd.org/changeset/base/358818
Log:
acpi: Fix stalled value returned by acpi_get_device() after device deletion
Newbus device reference attached to ACPI handle is not cleared when newbus
device is
Author: wulf
Date: Sun Dec 22 00:46:07 2019
New Revision: 355994
URL: https://svnweb.freebsd.org/changeset/base/355994
Log:
MFC r354291 - r354322, r354327, r355596
r354291:
[ig4] Give common name to PCI and ACPI device drivers
r354292:
[ig4] Handle controller startup errors
Author: wulf
Date: Tue Dec 10 20:23:05 2019
New Revision: 355596
URL: https://svnweb.freebsd.org/changeset/base/355596
Log:
[ig4] Remove unused methods from bus interface
bus_get/set_resource methods are implemented in child device (iicbus).
As their implementation with
Author: wulf
Date: Tue Dec 3 23:11:40 2019
New Revision: 355372
URL: https://svnweb.freebsd.org/changeset/base/355372
Log:
MFC r355065 - r355068: Linux epoll improvements.
r355065:
Linux epoll: Don't deregister file descriptor after EPOLLONESHOT is fired
Linux epoll does not remove
Author: wulf
Date: Sun Nov 24 20:51:09 2019
New Revision: 355068
URL: https://svnweb.freebsd.org/changeset/base/355068
Log:
Linux epoll: Allow passing of any negative timeout value to epoll_wait
Linux epoll allow passing of any negative timeout value to epoll_wait()
to cause unbound
Author: wulf
Date: Sun Nov 24 20:47:40 2019
New Revision: 355067
URL: https://svnweb.freebsd.org/changeset/base/355067
Log:
Linux epoll: Register events with zero event mask
Such an events are legal and should be interpreted as EPOLLERR | EPOLLHUP.
Register a disabled kqueue event in
Author: wulf
Date: Sun Nov 24 20:44:14 2019
New Revision: 355066
URL: https://svnweb.freebsd.org/changeset/base/355066
Log:
Linux epoll: Check both read and write kqueue events existence in
EPOLL_CTL_ADD
Linux epoll EPOLL_CTL_ADD op handler should always check registration
of both
Author: wulf
Date: Sun Nov 24 20:41:47 2019
New Revision: 355065
URL: https://svnweb.freebsd.org/changeset/base/355065
Log:
Linux epoll: Don't deregister file descriptor after EPOLLONESHOT is fired
Linux epoll does not remove descriptor after one-shot event has been
triggered.
Set
Author: wulf
Date: Mon Nov 4 02:29:58 2019
New Revision: 354327
URL: https://svnweb.freebsd.org/changeset/base/354327
Log:
[ig4] Try to workaround MIPS namespace pollution issue
Modified:
head/sys/dev/ichiic/ig4_iic.c
Modified: head/sys/dev/ichiic/ig4_iic.c
On 04.11.2019 01:02, Konstantin Belousov wrote:
> On Sun, Nov 03, 2019 at 09:17:51PM +0000, Vladimir Kondratyev wrote:
>> Author: wulf
>> Date: Sun Nov 3 21:17:50 2019
>> New Revision: 354322
>> URL: https://svnweb.freebsd.org/changeset/base/354322
>>
>> Lo
Author: wulf
Date: Sun Nov 3 21:17:01 2019
New Revision: 354321
URL: https://svnweb.freebsd.org/changeset/base/354321
Log:
[ig4] Enable additional registers support on Appolo Lake controllers
To be inline with intel-lpss Linux driver
Modified:
head/sys/dev/ichiic/ig4_var.h
Modified:
Author: wulf
Date: Sun Nov 3 20:59:04 2019
New Revision: 354307
URL: https://svnweb.freebsd.org/changeset/base/354307
Log:
[ig4] Implement burst mode for data reads
In this mode DATA_CMD register reads and writes are performed in
TX/RX FIFO-sized bursts to increase I2C bus utilization.
Author: wulf
Date: Sun Nov 3 21:03:55 2019
New Revision: 354311
URL: https://svnweb.freebsd.org/changeset/base/354311
Log:
[ig4] Convert last remaining usage of TX_NOTFULL status to TX_EMPTY
in ig4iic_read routine. It makes possible interrupt utilization while
waiting for empty space in
Author: wulf
Date: Sun Nov 3 20:40:55 2019
New Revision: 354292
URL: https://svnweb.freebsd.org/changeset/base/354292
Log:
[ig4] Handle controller startup errors
Fail the attach on controller startup errors. For some reason the
dell xps 13 says there's I2C controller, but the
Author: wulf
Date: Sun Nov 3 21:10:47 2019
New Revision: 354316
URL: https://svnweb.freebsd.org/changeset/base/354316
Log:
[ig4] On SkyLake controllers issue reset on attach unconditionally.
It is very helpful during debugging of I2C issues.
It is done only for SkyLakes due to lack of
Author: wulf
Date: Sun Nov 3 21:16:06 2019
New Revision: 354320
URL: https://svnweb.freebsd.org/changeset/base/354320
Log:
[ig4] Add support for CannonLake controllers
They are clocked at 216MHz rate, much higher than previous models.
PR: 240485
Submitted by: Neel Chauhan
Author: wulf
Date: Sun Nov 3 20:56:53 2019
New Revision: 354305
URL: https://svnweb.freebsd.org/changeset/base/354305
Log:
[ig4] dump IG4_REG_COMP_PARAM1 and IG4_REG_COMP_VER registers unconditionally
They appeared to be supported (although undocumented) on SkyLakes+ too.
Modified:
Author: wulf
Date: Sun Nov 3 20:53:13 2019
New Revision: 354302
URL: https://svnweb.freebsd.org/changeset/base/354302
Log:
[ig4] Allow enabling of polled mode from iicbus allocation callback
If controller is allocated with IIC_NOWAIT option ig4 enables polled mode
for a period of
Author: wulf
Date: Sun Nov 3 20:39:46 2019
New Revision: 354291
URL: https://svnweb.freebsd.org/changeset/base/354291
Log:
[ig4] Give common name to PCI and ACPI device drivers
They share common device driver code with different bus attachments
This commit starts a bunch of changes
Author: wulf
Date: Sun Nov 3 21:01:53 2019
New Revision: 354309
URL: https://svnweb.freebsd.org/changeset/base/354309
Log:
[ig4] Remove dead code inherited from DragonflyBSD
Modified:
head/sys/dev/ichiic/ig4_iic.c
head/sys/dev/ichiic/ig4_var.h
Modified: head/sys/dev/ichiic/ig4_iic.c
Author: wulf
Date: Sun Nov 3 20:57:59 2019
New Revision: 354306
URL: https://svnweb.freebsd.org/changeset/base/354306
Log:
[ig4] Set clock registers based on controller model
IC clock rates are varied between different controller models so we have
to adjust timing registers in each case
Author: wulf
Date: Sun Nov 3 21:04:51 2019
New Revision: 354312
URL: https://svnweb.freebsd.org/changeset/base/354312
Log:
[ig4] Use interrupts for waiting for empty TX FIFO
Modified:
head/sys/dev/ichiic/ig4_iic.c
Modified: head/sys/dev/ichiic/ig4_iic.c
Author: wulf
Date: Sun Nov 3 20:45:25 2019
New Revision: 354296
URL: https://svnweb.freebsd.org/changeset/base/354296
Log:
[ig4] Reduce scope of io_lock
Now io_lock is used as condition variable to synchronize active process with
the interrupt handler. It is not used for tasks other
Author: wulf
Date: Sun Nov 3 20:55:28 2019
New Revision: 354304
URL: https://svnweb.freebsd.org/changeset/base/354304
Log:
[cyapa] Postpone start of the polling thread until sleep is available
After recent ig4 changes cyapa driver can be attached before timers
initialization is
Author: wulf
Date: Sun Nov 3 21:12:59 2019
New Revision: 354317
URL: https://svnweb.freebsd.org/changeset/base/354317
Log:
[ig4] wait for bus stop condition after stop command issued
It gives better error detection and ig4 driver's lock coverage
in a pipelined write case
Modified:
Author: wulf
Date: Sun Nov 3 20:46:20 2019
New Revision: 354297
URL: https://svnweb.freebsd.org/changeset/base/354297
Log:
[ig4] Ignore stray interrupts
Modified:
head/sys/dev/ichiic/ig4_iic.c
Modified: head/sys/dev/ichiic/ig4_iic.c
Author: wulf
Date: Sun Nov 3 21:17:50 2019
New Revision: 354322
URL: https://svnweb.freebsd.org/changeset/base/354322
Log:
[ig4] Convert ithread interrupt handler to filter based one.
Modified:
head/sys/dev/ichiic/ig4_iic.c
Modified: head/sys/dev/ichiic/ig4_iic.c
Author: wulf
Date: Sun Nov 3 21:00:55 2019
New Revision: 354308
URL: https://svnweb.freebsd.org/changeset/base/354308
Log:
[ig4] Add suspend/resume support
That is done with re-execution of controller initialization procedure
from resume handler.
PR: 238037
Modified:
Author: wulf
Date: Sun Nov 3 21:15:01 2019
New Revision: 354319
URL: https://svnweb.freebsd.org/changeset/base/354319
Log:
[ig4] Add generic resource methods to bus interface
That allows ig4 children to allocate IRQs
Modified:
head/sys/dev/ichiic/ig4_acpi.c
Author: wulf
Date: Sun Nov 3 21:08:26 2019
New Revision: 354315
URL: https://svnweb.freebsd.org/changeset/base/354315
Log:
[ig4] Set STOP condition and flush TX/RX FIFOs on error
if controller has not it done for us yet.
Reset controller when transfer abort is failed.
Modified:
Author: wulf
Date: Sun Nov 3 20:44:16 2019
New Revision: 354295
URL: https://svnweb.freebsd.org/changeset/base/354295
Log:
[ig4] Do not wait for interrupts in set_controller() routine
Specs shows no dedicated interrupt firing on disable of the controller.
Remove io lock acquisitions
Author: wulf
Date: Sun Nov 3 21:14:08 2019
New Revision: 354318
URL: https://svnweb.freebsd.org/changeset/base/354318
Log:
[ig4] Minor improvement of write pipelining
With leaving some data queued in the TX FIFO at the end of write cycle.
Modified:
head/sys/dev/ichiic/ig4_iic.c
Author: wulf
Date: Sun Nov 3 20:50:06 2019
New Revision: 354300
URL: https://svnweb.freebsd.org/changeset/base/354300
Log:
[ig4] disable controller before initialization of clock counters
It is required by controller specifications.
Modified:
head/sys/dev/ichiic/ig4_iic.c
Modified:
Author: wulf
Date: Sun Nov 3 20:51:22 2019
New Revision: 354301
URL: https://svnweb.freebsd.org/changeset/base/354301
Log:
[ig4] Add support for polled mode
Currently ig4 internally depends on it's own interrupts and uses mtx_sleep()
to wait for them. That means it can not be used from
Author: wulf
Date: Sun Nov 3 21:06:06 2019
New Revision: 354313
URL: https://svnweb.freebsd.org/changeset/base/354313
Log:
[ig4] Convert polling loop from status-based to interrupt-based
INTR_STAT register exposes more useful informaton then STA register does
e.g. it exposes error and
Author: wulf
Date: Sun Nov 3 20:42:04 2019
New Revision: 354293
URL: https://svnweb.freebsd.org/changeset/base/354293
Log:
[ig4] Only enable interrupts when we want them. Otherwise keep mask at 0.
This avoids possible interrupt storms, depending on the state of the I2C
controller before
Author: wulf
Date: Sun Nov 3 20:49:04 2019
New Revision: 354299
URL: https://svnweb.freebsd.org/changeset/base/354299
Log:
[ig4] Stop I2C controller after checking that it's kind of functional.
Obtained from:DragonfliBSD (0b3eedb)
Modified:
head/sys/dev/ichiic/ig4_iic.c
Author: wulf
Date: Sun Nov 3 21:03:07 2019
New Revision: 354310
URL: https://svnweb.freebsd.org/changeset/base/354310
Log:
[ig4] Rewrite ig4iic_write routine to use TX_EMPTY status flag
rather than TX_NOTFULL. It makes possible interrupt utilization while
waiting for empty space in TX
Author: wulf
Date: Sun Nov 3 21:07:12 2019
New Revision: 354314
URL: https://svnweb.freebsd.org/changeset/base/354314
Log:
[ig4] Improve error detection
Handle error bits of INTR_STAT and TX_ABORT registers.
Move interrupt clearing from interrupt handler to polling loop to get
Author: wulf
Date: Sun Nov 3 20:54:17 2019
New Revision: 354303
URL: https://svnweb.freebsd.org/changeset/base/354303
Log:
[ig4] Do not wait until interrupts are enabled at attach stage
as the driver is fully functional on a cold boot through utilization of
polled mode.
As a side
1 - 100 of 222 matches
Mail list logo