Commit graph

616 commits

Author SHA1 Message Date
Dorian Stoll aee8e310e0
Remove hard systemd dependency from the sleep script
By using nmcli, users who don't use a systemd based distribution (Gentoo etc.),
can run the sleep script manually, or hook it up to their service manager manually.

This also removes the forced restart if people willingly disabled NetworkManager.

Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
2019-10-01 12:13:59 +02:00
Dorian Stoll cd9cced2fd
Add some documentation about the IPTS driver firmware
Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
2019-10-01 12:05:00 +02:00
Dorian Stoll 80788a3386
Replace the HID descriptor for MSHW0079 with MSHW0137
See: https://github.com/jakeday/linux-surface/issues/574

As long as that issue exist, and noone of us understands how to work
with HID descriptors and fix them, replace the file with the one from
MSHW0137 which is confirmed to be working properly.

Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
2019-10-01 12:04:40 +02:00
Maximilian Luz 293f8214f6
Keep v5.2 patches around for now 2019-09-28 03:32:53 +02:00
Maximilian Luz ffbc925692
Add GPG key 2019-09-28 03:27:11 +02:00
qzed 982ba582f1
Run cleanpatch 2019-09-28 03:27:11 +02:00
qzed e1748122e9
Update surface-acpi for v5.3
This should fix the remaining issues in jakeday#473.
2019-09-28 03:27:11 +02:00
qzed 7f460186ff
Update surface-acpi for v4.19
This should fix the remaining issues in #473.
2019-09-28 03:27:10 +02:00
Dorian Stoll b74befa0ca
Disable bluetooth when suspending without anything connected.
On Surface Book 2 it is not possible to archive stable S0ix while bluetooth is
enabled but no device is connected. Either S0ix fails completely, or the
residency is pretty bad. When bluetooth is disabled, or a device such as the pen
is connected, S0ix works fine and residency is great again.

By disabling bluetooth when no device is connected, we get proper S0ix in all
situations. And since no device is connected, the reset won't really matter.

Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
2019-09-28 03:27:10 +02:00
qzed acbe43fca4
Add secure boot DER certificate 2019-09-28 03:27:10 +02:00
qzed a9681ee2ac
Add patches for v5.3 2019-09-28 03:26:33 +02:00
kitakar5525 f0ffd413fa
suspend.patch-4.19: Update NVMe part
This commit will update suspend.patch for 4.19

Backported these two patches:
- torvalds/linux@4eaefe8c62
  (nvme-pci: Allow PCI bus-level PM to be used if ASPM is disabled)
- torvalds/linux@accd2dd72c
  (PCI/ASPM: Add pcie_aspm_enabled())

on top of these patches that are already backported by commit
qzed/linux-surface@e8a3d85b22
(Update NVMe part of suspend.patch):
- torvalds/linux@d916b1be94
  (nvme-pci: use host managed power state for suspend)
- torvalds/linux@1a87ee657c
  (nvme: export get and set features)
- torvalds/linux@d6135c3a1e
  (nvme-pci: Sync queues on reset)

Tested and confirmed that suspend is working on Surface Book 1 with
THNSN5512GPU7 TOSHIBA NVMe SSD which has issue resuming from suspend
with PCI bus-level PM.

Link to issue: https://github.com/jakeday/linux-surface/issues/123
(Surface Book with Performance Base: NVMe SSD breaks suspend (s2idle))
2019-09-28 03:26:32 +02:00
Dorian Stoll 6f7679b00b
Seperate firmware and configs 2019-09-28 03:26:32 +02:00
Dorian Stoll 77cf8159e1
Point the setup script at qzed's repository.
Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
2019-09-28 03:26:32 +02:00
Dorian Stoll 4d026f53b9
Update and clean up bundled firmware 2019-09-28 03:26:32 +02:00
Dorian Stoll 8c3acded2d
Move the no_feedback option into ipts-params.c
Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
2019-09-28 03:26:32 +02:00
Dorian Stoll de86889877
Add the ability to load different IPTS firmware per model
Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
2019-09-28 03:26:31 +02:00
qzed 292b082b29
Remove unnecessary changes in ACPI/serdev patches 2019-09-28 03:26:31 +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