Commit graph

170 commits

Author SHA1 Message Date
Maximilian Luz 6ced7eba76
Update v4.19 patches
Changes:
 - SAM:
   - Fix bug in SAN driver, triggered by thermal events.
   - Rename Surface Laptop / Book 3 HID input devices.
   - Implement Surface Laptop 1 and 2 caps-lock light.
   - Continued cleanup and misc. fixes.
   - Update docs.

Links:
- SAM: 73ea41f1ec
- kernel: 48d3cc0dff
2020-10-08 22:30:09 +02:00
Maximilian Luz 80f6acecc9
hotfix: Fix SPDX license identifier for Surface Aggregator 2020-10-01 19:16:52 +02:00
Maximilian Luz 1f3be0afff
Update v5.8 patches
Changes:
 - SAM:
   - Fix bug in packet submission leading to a potential deadlock when
     packets need to be resent in constested situations
   - Misc. other fixes.
   - Rename surface_aggregator_debugfs module to surface_aggregator_cdev
     and make it a proper character device (miscdevice).
   - Add copyright notices.
   - Continued cleanup and code improvements.
   - Change core from late to standard initialization
   - Add sysfs attribute for SAM firmware version
   - Register SAN consumers dynamically
   - Misc. fixes and cleanup

 - mwifiex:
   - Revert auto_ds force-disablement
   - Add enable_device_dump module parameter
   - Try to improve suspend behavior

Links:
- SAM: 47bb8f0824
- kernel: d427e73e92
2020-10-01 18:08:56 +02:00
Maximilian Luz b56f50e330
Update v5.4 patches
Changes:
 - SAM:
   - Fix bug in packet submission leading to a potential deadlock when
     packets need to be resent in constested situations
   - Misc. other fixes.
   - Rename surface_aggregator_debugfs module to surface_aggregator_cdev
     and make it a proper character device (miscdevice).
   - Add copyright notices.
   - Continued cleanup and code improvements.
   - Change core from late to standard initialization
   - Add sysfs attribute for SAM firmware version
   - Register SAN consumers dynamically
   - Misc. fixes and cleanup

 - mwifiex:
   - Revert auto_ds force-disablement
   - Add enable_device_dump module parameter
   - Try to improve suspend behavior

Links:
- SAM: 47bb8f0824
- kernel: 674e306816
2020-10-01 18:08:56 +02:00
Maximilian Luz cda77f53f5
Update v4.19 patches
Changes:
 - SAM:
   - Fix bug in packet submission leading to a potential deadlock when
     packets need to be resent in constested situations
   - Misc. other fixes.
   - Rename surface_aggregator_debugfs module to surface_aggregator_cdev
     and make it a proper character device (miscdevice).
   - Add copyright notices.
   - Continued cleanup and code improvements.
   - Change core from late to standard initialization
   - Add sysfs attribute for SAM firmware version
   - Register SAN consumers dynamically
   - Misc. fixes and cleanup

 - mwifiex:
   - Revert auto_ds force-disablement
   - Add enable_device_dump module parameter
   - Try to improve suspend behavior

Links:
- SAM: 47bb8f0824
- kernel: f9183418ae
2020-10-01 18:08:55 +02:00
Maximilian Luz 62c11293cf
Fix patches for v5.4
Include missing kernel commit.
2020-09-20 01:00:16 +02:00
Maximilian Luz b0b40551ce
Fix patches for v4.19
Include missing kernel commit.
2020-09-20 01:00:04 +02:00
Maximilian Luz 36b1d5d473
Update v5.8 patches
Changes:
- SAM:
  - Fix a memory allocation bug causing crashes through memory corruption and
    invalid access.

Links:
- SAM: 9f9a5fcfd2
- kernel: 47d0191632
2020-09-19 23:21:09 +02:00
Maximilian Luz f3e52acc8b
Update v5.4 patches
Changes:
- SAM:
  - Fix a memory allocation bug causing crashes through memory corruption and
    invalid access.

Links:
- SAM: 9f9a5fcfd2
- kernel: 3cb6d4f2e9
2020-09-19 23:20:29 +02:00
Maximilian Luz 51421f2375
Update v4.19 patches
Changes:
- SAM:
  - Fix a memory allocation bug causing crashes through memory corruption and
    invalid access.

Links:
- SAM: 9f9a5fcfd2
- kernel: d5df92c197
2020-09-19 23:17:22 +02:00
Maximilian Luz b27a8f90c7
Update v5.8 patches
Changes:
- Fix a bug preventing the Surface Serial Hub driver from probing
  successfully under certain conditions.

Links:
- SAM: f973e273e1
- kernel: a60417830c
2020-09-18 03:34:55 +02:00
Maximilian Luz 6a3e490796
Update v5.4 patches
Changes:
- Fix a bug preventing the Surface Serial Hub driver from probing
  successfully under certain conditions.

Links:
- SAM: f973e273e1
- kernel: ac0c9d22ca
2020-09-18 03:34:23 +02:00
Maximilian Luz d978030eb8
Update v4.19 patches
Changes:
- Fix a bug preventing the Surface Serial Hub driver from probing
  successfully under certain conditions.

Links:
- SAM: f973e273e1
- kernel: c594ad2647
2020-09-18 03:30:54 +02:00
Maximilian Luz 6a032ce25e
Update v5.8 patches
Changes:
- SAM:
  - Fix a bug preventing SSAM client devices to be registered on the
    Surface Book 3.
  - Introduce SSAM device domains.
  - Rename modules, drivers, and source directories.
  - Split-up main header file.
  - Update and improve Kconfig options and help texts.
  - Internal restructuring, cleanup, and documentation.

- GPE:
  - Cleanup, fixes, and restructuring.

Links:
- SAM: 4b3ee5ad71
- GPE: 7c017f4d52
- kernel: 6ec5f0ebb0
2020-09-17 23:26:19 +02:00
Maximilian Luz 536da55ec6
Update v5.4 patches
Changes:
- SAM:
  - Fix a bug preventing SSAM client devices to be registered on the
    Surface Book 3.
  - Introduce SSAM device domains.
  - Rename modules, drivers, and source directories.
  - Split-up main header file.
  - Update and improve Kconfig options and help texts.
  - Internal restructuring, cleanup, and documentation.

- GPE:
  - Cleanup, fixes, and restructuring.

Links:
- SAM: 4b3ee5ad71
- GPE: 7c017f4d52
- kernel: 70d365e78c
2020-09-17 23:25:44 +02:00
Maximilian Luz 821bb27beb
Update v4.19 patches
Changes:
- SAM:
  - Fix a bug preventing SSAM client devices to be registered on the
    Surface Book 3.
  - Introduce SSAM device domains.
  - Rename modules, drivers, and source directories.
  - Split-up main header file.
  - Update and improve Kconfig options and help texts.
  - Internal restructuring, cleanup, and documentation.

Links:
- SAM: 4b3ee5ad71
- kernel: 47860ccd1d
2020-09-17 23:20:10 +02:00
Maximilian Luz 9a5fdd5e61
Update v5.8 patches
Changes:
- SAM:
  - Internal restructuring, cleanup, and documentation.

Links:
- SAM: 6de853a5cd
- kernel: 12216a9ad7
2020-09-12 16:15:26 +02:00
Maximilian Luz 93f386b6ea
Update v5.4 patches
Changes:
- SAM:
  - Internal restructuring, cleanup, and documentation.

Links:
- SAM: 6de853a5cd
- kernel: c6478f16d3
2020-09-12 16:11:46 +02:00
Maximilian Luz 4dfe143fc5
Update v4.19 patches
Changes:
- SAM:
  - Internal restructuring, cleanup, and documentation.

Links:
- SAM: 6de853a5cd
- kernel: 93659504ca
2020-09-12 16:08:25 +02:00
Maximilian Luz 6070a3cde4
Update v5.8 patches
Changes:
- SAM:
  - Cleanup and restructuring.

- GPE:
  - Cleanup and restructuring.

Links:
- SAM: 84827e830e
- GPE: 829bacbe19
- kernel: 0d9bfdba18
2020-09-10 22:29:26 +02:00
Maximilian Luz ac699ba714
Update v5.4 patches
Changes:
- SAM:
  - Cleanup and restructuring.

- GPE:
  - Cleanup and restructuring.

Links:
- SAM: 84827e830e
- GPE: 829bacbe19
- kernel: 7245c5ab77
2020-09-10 22:26:25 +02:00
Maximilian Luz c4331c5071
Update v4.19 patches
Changes:
- SAM:
  - Cleanup and restructuring.

Links:
- SAM: 84827e830e
- kernel: f6bd6798d4
2020-09-10 22:23:37 +02:00
Maximilian Luz b586e3bddb
Update v5.8 patches
Changes:
- SAM:
  - Fix bug where second Surface Book 3 battery would be set up
    incorrectly.
  - Continued work on internal documentation and cleanup.
  - Other minor bugfixes.

- SAM-over-HID:
  - Add dGPU switch module for SB1.

- GPE:
  - Cleanup and formatting.

Links:
- SAM: c5f84f1f9a
- SAM-over-HID: 9d2a927ac8
- GPE: a9d97ed280
- kernel: 6f814d29c3
2020-09-08 16:43:46 +02:00
Maximilian Luz 6836b92298
Update v5.4 patches
Changes:
- SAM:
  - Fix bug where second Surface Book 3 battery would be set up
    incorrectly.
  - Continued work on internal documentation and cleanup.
  - Other minor bugfixes.

- SAM-over-HID:
  - Add dGPU switch module for SB1.

- GPE:
  - Cleanup and formatting.

Links:
- SAM: c5f84f1f9a
- SAM-over-HID: 9d2a927ac8
- GPE: a9d97ed280
- kernel: ee5d2c7ad3
2020-09-08 16:40:21 +02:00
Maximilian Luz d3992b7362
Update v4.19 patches
Changes:
- SAM:
  - Fix bug where second Surface Book 3 battery would be set up
    incorrectly.
  - Continued work on internal documentation and cleanup.
  - Other minor bugfixes.

- SAM-over-HID:
  - Add dGPU switch module for SB1.

- GPE:
  - Cleanup and formatting.

Links:
- SAM: c5f84f1f9a
- SAM-over-HID: 9d2a927ac8
- GPE: a9d97ed280
- kernel: f26a027064
2020-09-08 16:40:21 +02:00
Maximilian Luz 8611b6e18e
Update v5.8 patches
Changes:
- SAM
  - Properly re-enable events after hibernation.
  - Other bugfixes.
  - Continued work on internal documentation.

- mwifiex
  - Fix bug causing network connection failure on certain networks.

Links:
- SAM: 735a01f74b
- mwifiex: https://lkml.org/lkml/2020/8/27/642
- kernel: 50b5cf34b8
2020-08-28 17:14:51 +02:00
Maximilian Luz 441a362da9
Update v5.7 patches
Changes:
- SAM
  - Properly re-enable events after hibernation.
  - Other bugfixes.
  - Continued work on internal documentation.

- mwifiex
  - Fix bug causing network connection failure on certain networks.

Links:
- SAM: 735a01f74b
- mwifiex: https://lkml.org/lkml/2020/8/27/642
- kernel: d9aab7bed9
2020-08-28 17:12:20 +02:00
Maximilian Luz 8327001638
Update v5.4 patches
Changes:
- SAM
  - Properly re-enable events after hibernation.
  - Other bugfixes.
  - Continued work on internal documentation.

- mwifiex
  - Fix bug causing network connection failure on certain networks.

Links:
- SAM: 735a01f74b
- mwifiex: https://lkml.org/lkml/2020/8/27/642
- kernel: 9ea314c74e
2020-08-28 17:09:20 +02:00
Maximilian Luz d000c7488a
Update v4.19 patches
Changes:
- SAM
  - Properly re-enable events after hibernation.
  - Other bugfixes.
  - Continued work on internal documentation.

- mwifiex
  - Fix bug causing network connection failure on certain networks.

Links:
- SAM: 735a01f74b
- mwifiex: https://lkml.org/lkml/2020/8/27/642
- kernel: e83a20197d
2020-08-28 17:00:44 +02:00
Maximilian Luz a23856e569
Update v5.8 patches
Changes:
  SAM:
  - Fix false wanring when plugging in AC adapter.
  - Fix includes for error injection.
  - Other bug fixes and code improvements.

Links:
- kernel: 381dd4669f
- SAM: 4ca8b315e0
2020-08-23 22:26:50 +02:00
Maximilian Luz aa20be62d6
Update v5.7 patches
Changes:
  SAM:
  - Fix false wanring when plugging in AC adapter.
  - Fix includes for error injection.
  - Other bug fixes and code improvements.

Links:
- kernel: f8cec34509
- SAM: 4ca8b315e0
2020-08-23 22:25:29 +02:00
Maximilian Luz 6b302ac1c1
Update v5.4 patches
Changes:
  SAM:
  - Fix false wanring when plugging in AC adapter.
  - Fix includes for error injection.
  - Other bug fixes and code improvements.

Links:
- kernel: aba6935b86
- SAM: 4ca8b315e0
2020-08-23 22:24:26 +02:00
Maximilian Luz b6bee9963f
Update v4.19 patches
Changes:
  SAM:
  - Fix false wanring when plugging in AC adapter.
  - Fix includes for error injection.
  - Other bug fixes and code improvements.

Links:
- kernel: ce875e1f82
- SAM: 4ca8b315e0
2020-08-23 22:23:54 +02:00
Maximilian Luz 9605e98c8f
fixup! Update v4.19 patches 2020-08-18 07:46:06 +02:00
Maximilian Luz 402c979bcd
Update v5.8 patches
Changes:
  SAM:
  - Move lid/GPE workaround into separate independent module.
  - A bus and device type has been implemented for SAM devices.
  - Detach devices attached to the base when the cliboard is being detached on
    the Surface Book 3.
  - Internal restructuring.

Links:
- kernel: 233bcf2785
- SAM: 08bbb7272a
2020-08-18 06:08:22 +02:00
Maximilian Luz 4b1be0cff3
Update v5.7 patches
Changes:
  SAM:
  - Move lid/GPE workaround into separate independent module.
  - A bus and device type has been implemented for SAM devices.
  - Detach devices attached to the base when the cliboard is being detached on
    the Surface Book 3.
  - Internal restructuring.

Links:
- kernel: 16f3286d32
- SAM: 08bbb7272a
2020-08-18 06:06:58 +02:00
Maximilian Luz df00235d1d
Update v5.4 patches
Changes:
  SAM:
  - Move lid/GPE workaround into separate independent module.
  - A bus and device type has been implemented for SAM devices.
  - Detach devices attached to the base when the cliboard is being detached on
    the Surface Book 3.
  - Internal restructuring.

Links:
- kernel: 713c0f7364
- SAM: 08bbb7272a
2020-08-18 06:04:26 +02:00
Maximilian Luz 5507e69098
Update v4.19 patches
Changes:
  SAM:
  - Move lid/GPE workaround into separate independent module.
  - A bus and device type has been implemented for SAM devices.
  - Detach devices attached to the base when the cliboard is being
    detached on the Surface Book 3.
  - Internal restructuring.

Links:
- kernel: 2926c01232
- SAM: 08bbb7272a
2020-08-18 06:01:34 +02:00
Dorian Stoll 2c51b4e4ff
Update the patches for 5.8
For 5.8, we are going to make iptsd the default, which mostly supports
4.19 level multitouch, instead of just singletouch + stylus.

This replaces the old ipts driver with the new UAPI version that is
required for iptsd.

Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
2020-08-06 11:30:47 +02:00
Maximilian Luz bd7d22c24b
Add patches for v5.8
Patches have been obtained by rebasing the patches in commit

    23d3bc55ce

onto v5.8.
2020-08-03 21:02:06 +02:00
Maximilian Luz 23d3bc55ce
Update v5.7 patches
Changes:
  SAM:
    - Fix bug that can cause IRQ storm when SSAM wake IRQ gets triggered.
    - Continued internal restructuring.
    - Other small bug fixes.

Links:
- kernel: 78e06bc875
- SAM: b9fe8f28b7
2020-08-03 18:23:42 +02:00
Maximilian Luz 8e8811cd28
Update v5.4 patches
Changes:
  SAM:
    - Fix bug that can cause IRQ storm when SSAM wake IRQ gets triggered.
    - Continued internal restructuring.
    - Other small bug fixes.

Links:
- kernel: 9d7730b64c
- SAM: b9fe8f28b7
2020-08-03 18:23:21 +02:00
Maximilian Luz 6787e5ada5
Update v4.19 patches
Changes:
  SAM:
    - Fix bug that can cause IRQ storm when SSAM wake IRQ gets triggered.
    - Continued internal restructuring.
    - Other small bug fixes.

Links:
- kernel: 307c8337b9
- SAM: b9fe8f28b7
2020-08-03 18:18:45 +02:00
Maximilian Luz 8fb0a8e62a
Update v5.7 patches
Changes:
  SAM:
    - Enable performance modes on Surface Laptop 1 and 2.
    - Support for D0-exit/D0-entry notifications, sent to the SAM
      controller when suspending (D0-exit) or resuming (D0-entry) on
      newer (gen. 7+) devices.
    - Replace sysfs-based debug device with new debugfs-based debug
      device.
    - More internal restructuring and internal API changes.
    - Some small bug fixes.

  SAM-over-HID:
    - Add ACPI support for SAM-over-HID. This allows setting dGPU power
      on the Surface Book 1 via ACPI calls.

Links:
- kernel: 551b70e295
- SAM: 89b8232d49
2020-07-30 20:43:04 +02:00
Maximilian Luz 00e270fc8a
Update v5.4 patches
Changes:
  SAM:
    - Enable performance modes on Surface Laptop 1 and 2.
    - Support for D0-exit/D0-entry notifications, sent to the SAM
      controller when suspending (D0-exit) or resuming (D0-entry) on
      newer (gen. 7+) devices.
    - Replace sysfs-based debug device with new debugfs-based debug
      device.
    - More internal restructuring and internal API changes.
    - Some small bug fixes.

  SAM-over-HID:
    - Add ACPI support for SAM-over-HID. This allows setting dGPU power
      on the Surface Book 1 via ACPI calls.

Links:
- kernel: 91f5a27a55
- SAM: 89b8232d49
2020-07-30 20:38:28 +02:00
Maximilian Luz 0ccce0b332
Update v4.19 patches
Changes:
  SAM:
    - Enable performance modes on Surface Laptop 1 and 2.
    - Support for D0-exit/D0-entry notifications, sent to the SAM
      controller when suspending (D0-exit) or resuming (D0-entry) on
      newer (gen. 7+) devices.
    - Replace sysfs-based debug device with new debugfs-based debug
      device.
    - More internal restructuring and internal API changes.
    - Some small bug fixes.

  SAM-over-HID:
    - Add ACPI support for SAM-over-HID. This allows setting dGPU power
      on the Surface Book 1 via ACPI calls.

Links:
- kernel: c03772c10e
- SAM: 89b8232d49
2020-07-30 20:32:52 +02:00
Tsuchiya Yuto 1a33e83e63 Update v4.19 patches; replace surface3-spi with surface3-touchscreen-dma-fix
Changes:
  surface3-spi:
    - Dropped this patch in favor of the surface3-touchscreen-dma-fix
      patch (which is taken from the upstream DMA fix). For details, take
      a look at the commit history of kernel repo linked below.
  surface3-touchscreen-dma-fix:
    - Added this patch as a successor to the dropped surface3-spi patch.
      For details, take a look at the commit history of kernel repo linked
      below.
      Note: currently, this patch is available upstream only on v5.8,
      v5.7, and v5.4 and not backported to any older LTS kernels. So,
      this patch was backported from upstream commit ourselves.

Links:
- kernel: 94678ca738

Signed-off-by: Tsuchiya Yuto <kitakar@gmail.com>
2020-07-24 20:52:12 +09:00
Tsuchiya Yuto da2d9c9722 Update v5.4 patches; drop surface3-spi
Changes:
  surface3-spi:
    - Dropped this patch in favor of the upstream DMA fix. For details,
      take a look at the commit history of kernel repo linked below.

Links:
- kernel: f455d27378

Signed-off-by: Tsuchiya Yuto <kitakar@gmail.com>
2020-07-24 20:52:12 +09:00
Tsuchiya Yuto ceae72ec44 Update v5.7 patches; drop surface3-spi
Changes:
  surface3-spi:
    - Dropped this patch in favor of the upstream DMA fix. For details,
      take a look at the commit history of kernel repo linked below.

Links:
- kernel: b6d18e159d

Signed-off-by: Tsuchiya Yuto <kitakar@gmail.com>
2020-07-24 20:52:12 +09:00
Maximilian Luz 36bf7dd80e
Update v5.7 patches
Changes:
  SAM:
    - Bugfix: Fix HID input for Surface Laptop 3. The driver now separates
      devices by IID, using the same behavior as on the Surface Book 3.
    - Bugfix: Minor fixes in SSH driver message system.

Links:
- kernel: c9354ce40c
- SAM: 99b0243136
2020-07-15 22:26:48 +02:00