Commit graph

399 commits

Author SHA1 Message Date
Maximilian Luz b26d91a0da
Merge pull request #6 from kitakar5525/v5.2-ipts
ipts: backport for 4.19 / fix crash after some use
2019-09-12 18:11:22 +02:00
kitakar5525 03e4a8dff3 ipts-5.2: fix crash after some use
- ipts: fix crash caused by calling ipts_send_feedback() repeatedly
(v2-ipts-fix-crash-caused-by-calling-ipts_send_feedback-.patch from kitakar5525/ipts-fix-crash)
2019-09-10 21:55:39 +09:00
kitakar5525 d8b26bd3b7 ipts-4.19: backport changes from 5.2 / fix crash after some use
- ipts: fix crash caused by calling ipts_send_feedback() repeatedly
(v2-ipts-fix-crash-caused-by-calling-ipts_send_feedback-.patch from kitakar5525/ipts-fix-crash)
- i915: ipts: add destroy_doorbell() when disabling ipts guc submission
(https://github.com/jakeday/linux-surface/issues/544#issuecomment-517626511)
- IPTS: Enable debug prints (qzed/linux-surface@a5e6433)
- IPTS: Do not call intel_ipts_cleanup on suspend (qzed/linux-surface@f52dae4)
- IPTS: Add device link for PM (qzed/linux-surface@cf887d8)
- Fix RCS0 GPU hang on module removing
(0001-Fix-RCS0-GPU-hang-on-module-removing.patch from kitakar5525/linux-surface-patches)
2019-09-10 21:53:44 +09:00
Dorian Stoll 83e67e4a27 Improve wifi reliability after resuming from suspend
Using the old script I regulary	had the	problem, that after resuming
from suspend (or hibernate) the wifi would just break. The only way
to fix it was to restart network manager, or disable it in the GNOME
network settings.

I am not a 100% sure *why*, but this change greatly improved the wifi
stability after resume. I am running this for like 5 days now and
didn't see the wifi breaking once. I suppose, that `modprobe` vs
`modprobe -i` is what makes the difference.

Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
2019-08-26 01:00:45 +02:00
qzed fadf055d5f Update systemd-sleep script for IPTS changes
Integrate the changes discussed in [1] as proposed by @kitakar5525 in
[2]. The IPTS suspend/resume mechanism should work without the need for
unloading/reloading the corresponding modules, so we comment-out and
update the workaround and will handle any issues coming from that via
the IPTS drivers. The workaround is not completely removed yet as want
to provide an easy-to-apply temporary fix in case anything goes wrong.

[1]: https://github.com/jakeday/linux-surface/issues/544
[2]: https://github.com/jakeday/linux-surface/issues/544#issuecomment-519126757
2019-08-26 01:00:45 +02:00
kitakar5525 e8a3d85b22 Update NVMe part of suspend.patch
Note:
NVMe part will be merged into Linux 5.3. Remove the part in
0002-suspend.patch when it arrives.

For 5.2
- (Reverted NVMe part of 0002-suspend.patch to apply following patch set)
- nvme: export get and set features · torvalds/linux@1a87ee6
torvalds/linux@1a87ee6
- nvme-pci: use host managed power state for suspend · torvalds/linux@d916b1b
torvalds/linux@d916b1b#diff-bc4c090f021c046a7d256a3fcf86b7da

For 4.19, this patch is also applied
- nvme-pci: Sync queues on reset · torvalds/linux@d6135c3
torvalds/linux@d6135c3#diff-bc4c090f021c046a7d256a3fcf86b7da

See
- Surface Book with Performance Base: NVMe SSD breaks suspend (s2idle) · Issue jakeday#123 · jakeday/linux-surface
jakeday#123
2019-08-26 01:00:45 +02:00
kitakar5525 360a2b1c45 IPTS: Add debugfs entries 2019-08-26 00:58:14 +02:00
qzed a5e6433117 IPTS: Enable debug prints 2019-08-26 00:58:14 +02:00
qzed f52dae4ec1 IPTS: Do not call intel_ipts_cleanup on suspend
Revert a3a3ed3: "updating 4.19 patches to fix touch and suspend".

Calling intel_ipts_cleanup during suspend causes destroy_doorbell to
fail. Furthermore, removing intel_ipts_cleanup from suspend does not
seem to cause any issues on the Surface Book 1 and 2, and the
introduction of the device link in the previous commit may have fixed
some of the edge-cases/race conditions that may have made this call
necessary in the past. If any issue arises from this, we will deal with
it later in a more subtle way.

See https://github.com/jakeday/linux-surface/issues/544 for an
exhaustive discussion on this.
2019-08-26 00:58:13 +02:00
qzed cf887d8c46 IPTS: Add device link for PM 2019-08-26 00:58:13 +02:00
qzed 9cf56369b0 Update patches for v5.2 2019-08-26 00:56:25 +02:00
qzed 21508168a7 Fix GPE interrupt setup for Surface Book 1 2019-08-26 00:54:14 +02:00
qzed 51c7f7a234 Update button patches (v3-upstreaming) 2019-07-27 18:27:19 +02:00
qzed 8e6c7b85ca Set up GPE interrupts for lid-based wakeup
The newer surface devices Pro 4 and up do not define _PRW to specify
which GPE interrupt belongs to the lid. Thus they may not be marked as
wake-up sources automatically, so we have to do this manually.
2019-07-26 04:15:42 +02:00
qzed be234ec92c Update button patches (v3) 2019-07-21 00:01:46 +02:00
qzed 49e4051332 Fix deferral issue in button driver 2019-07-07 01:07:34 +02:00
qzed 2009a8d721 Add dGPU hot-plug/power-setting support 2019-07-03 00:37:16 +02:00
qzed 002a33b6f0 Update surface-acpi and button patches 2019-07-03 00:36:37 +02:00
Jake Day 3d0abed6c4 updating configs 2019-06-27 12:58:22 -04:00
Jake Day 9d2772a7e8 updating patches 2019-06-27 12:58:16 -04:00
Jake Day 8f87e9c4d2
Merge pull request #519 from qzed/master
Patch updates for newer kernels
2019-06-26 20:38:46 -04:00
Jake Day 6fe298de5d
Merge pull request #526 from wrecklass/master
Fix for a bug in setup.sh with bad curl response
2019-06-26 20:38:35 -04:00
qzed 565c5e4c2f Update DMA check for surface_acpi
Linux upstream commit 5ba846b1ee0792f5a596b9b0b86d6e8cdebfab06 changed
some behavior in dmaengine, this is a fix for that.
2019-06-20 02:13:19 +02:00
Stephen Martin 3267e4ea1f Fix for issue with the curl to https://api.github.com/repos/jakeday/linux-surface/releases/latest returning a wall/blob of text instead of individual lines. Backwards compatible so it should be fine even if the result comes back with individual lines 2019-06-17 19:15:39 -06:00
qzed 109d2c5ffc drop surface-dock patch 2019-06-11 22:13:55 +02:00
Jake Day a77e9504b1 updating ath10k firmware 2019-06-06 13:50:00 -04:00
Jake Day a4a9b7ca20 updating patches 2019-06-06 13:44:35 -04:00
Jake Day 1717e1ec14
Merge pull request #499 from qzed/master
Update patches for v5.1
2019-06-06 13:25:34 -04:00
qzed 79dec2382a Update patches for v5.1 2019-05-16 01:47:24 +02:00
Jake Day 2b206b56e1 update readme 2019-04-30 20:55:43 -04:00
Jake Day b7e8acf062 adding LTE support and updating patches 2019-04-30 20:52:01 -04:00
Jake Day 46b3dbff4c
Merge pull request #478 from qzed/master
Ensure GPIOs are available in button driver
2019-04-30 20:29:34 -04:00
Jake Day c7931fc8c8
Merge pull request #481 from samdoshi/surface-pro-6-ipts
Adding touchscreen and pen udev rules for SP6
2019-04-30 20:27:55 -04:00
Sam Doshi 51d4546450 adding touchscreen and pen udev rules for SP6 2019-04-25 18:39:49 +01:00
qzed 17ba202bb2 Ensure GPIOs are available in button driver
This patch ensures that a GPIO driver is loaded and set up before the
button driver can bind to the MSHW0040 device. Without this the driver
may not bind to the MSHW0040 device at all.
2019-04-24 20:51:10 +02:00
Jake Day ba59e2eb7f adding additional notes to setup.sh script questions 2019-04-22 13:39:16 -04:00
Jake Day a3fa626cff
Merge pull request #472 from qzed/master
Add performance-mode support for Surface Book 2
2019-04-22 12:58:10 -04:00
qzed 4e2e009dc7 Add performance-mode support for Surface Book 2
Adds a driver for the Surface platform Integration Device (SID) of the
Surface Book 2. This allows for setting the performance-mode, which can
be used to choose between performance-optimized vs. quiet operation.

The performance-mode can be set via the perf_mode sysfs attribute on the
corresponding device (MSHW0107).
2019-04-21 15:37:02 +02:00
Jake Day cd52f74d20 updating ath10k firmware 2019-04-17 12:31:25 -04:00
Jake Day 0c3e3a67d9
Merge pull request #451 from qzed/master
Update surface-acpi patches
2019-04-10 09:25:57 -04:00
qzed 327b97cb81 Update surface-acpi patches 2019-04-04 23:40:23 +02:00
Jake Day 5c2a640308 adding support for 5.0 kernel 2019-03-13 16:23:21 -04:00
Jake Day e71356f50e updating sound config 2019-03-13 13:08:29 -04:00
Jake Day dd73fcec71 updating libwacom package 2019-03-07 16:43:11 -05:00
Jake Day e09d9e11f5 updating patches 2019-03-07 15:01:54 -05:00
Jake Day 3d26d63eec updating config file 2019-03-07 15:01:46 -05:00
Jake Day d4e5ab5670 adding config file for button fixes 2019-03-07 15:01:35 -05:00
Jake Day 12eac38efc adding config file for sound fixes 2019-03-07 15:01:21 -05:00
Jake Day adc5d4b425 updating readme 2019-03-07 15:01:05 -05:00
Jake Day 73d2e9ccf4
Merge pull request #406 from tmarkov/patch-1
Fix setup for systems that do /usr merge
2019-03-07 09:13:22 -05:00