From 6942f8a0f4a24685a2f67bdb84e9104ac349f223 Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Sat, 21 Nov 2026 03:43:06 +0100 Subject: [PATCH 1/3] linux-omarchy-aarch64: build hibernation, with the fixes a Snapdragon X1 laptop needs to resume The ARM configuration has had CONFIG_HIBERNATION off since the N1x kernel came in, while linux-omarchy on x86_64 has it on, so no ARM computer could hibernate and nobody could work on getting one to resume. 7.3-75 turns it on and carries eight patches from the kernel lists: the pin configuration restore (2280), the PCIe shutdown series and powering a controller down when hibernating (2281 to 2284), smp2p starting over after a restore (2285), hci_qca's in-band sleep state (2286) and the geni serial engine setup after a restore (2287). --- ...tore-the-pin-configuration-after-hib.patch | 255 ++++++++++++++++++ ...Fix-early-bus-walk-exit-in-d3cold_po.patch | 67 +++++ ...-link-entry-on-shutdown-reboot-witho.patch | 180 +++++++++++++ ...PCI-qcom-Implement-shutdown-callback.patch | 87 ++++++ ...the-controller-down-when-hibernating.patch | 106 ++++++++ ...tart-over-after-a-restore-from-hiber.patch | 127 +++++++++ ...a-Reset-the-in-band-sleep-state-on-p.patch | 96 +++++++ ...-Set-the-serial-engine-up-again-afte.patch | 75 ++++++ pkgbuilds/linux-omarchy-aarch64/PKGBUILD | 30 ++- pkgbuilds/linux-omarchy-aarch64/README.md | 4 +- .../linux-omarchy-aarch64/config.aarch64 | 13 +- 11 files changed, 1033 insertions(+), 7 deletions(-) create mode 100644 pkgbuilds/linux-omarchy-aarch64/2280-pinctrl-qcom-Restore-the-pin-configuration-after-hib.patch create mode 100644 pkgbuilds/linux-omarchy-aarch64/2281-PCI-host-common-Fix-early-bus-walk-exit-in-d3cold_po.patch create mode 100644 pkgbuilds/linux-omarchy-aarch64/2282-PCI-dwc-Force-L2-link-entry-on-shutdown-reboot-witho.patch create mode 100644 pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch create mode 100644 pkgbuilds/linux-omarchy-aarch64/2284-PCI-qcom-Power-the-controller-down-when-hibernating.patch create mode 100644 pkgbuilds/linux-omarchy-aarch64/2285-soc-qcom-smp2p-Start-over-after-a-restore-from-hiber.patch create mode 100644 pkgbuilds/linux-omarchy-aarch64/2286-Bluetooth-hci_qca-Reset-the-in-band-sleep-state-on-p.patch create mode 100644 pkgbuilds/linux-omarchy-aarch64/2287-serial-qcom-geni-Set-the-serial-engine-up-again-afte.patch diff --git a/pkgbuilds/linux-omarchy-aarch64/2280-pinctrl-qcom-Restore-the-pin-configuration-after-hib.patch b/pkgbuilds/linux-omarchy-aarch64/2280-pinctrl-qcom-Restore-the-pin-configuration-after-hib.patch new file mode 100644 index 0000000000..9aaaab0ed3 --- /dev/null +++ b/pkgbuilds/linux-omarchy-aarch64/2280-pinctrl-qcom-Restore-the-pin-configuration-after-hib.patch @@ -0,0 +1,255 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Birk Skyum +Date: Sat, 10 Oct 2026 13:03:31 +0200 +Subject: [PATCH] pinctrl: qcom: Restore the pin configuration after + hibernation + +A hibernation image is restored after a power cycle. The TLMM registers +then hold what the boot firmware and the kernel that loaded the image +made of them. The restored kernel has the configuration it applied in +memory only, and nothing writes it to the hardware again, so every pin +that the loading kernel did not set up the same way stays wrong. + +On a Lenovo Yoga Slim 7x (X1E80100) the Bluetooth and Wi-Fi enable lines +are two of them. Their drivers are loaded from the root file system, so +the kernel that loads the image never touches the pins. This is +/sys/kernel/debug/gpio before the hibernation and after the resume: + + gpio116 : out low func0 2mA no pull + gpio117 : out high func0 2mA no pull + + gpio116 : in low func0 2mA pull down + gpio117 : out high func0 16mA no pull + +The driver that owns gpio116 still believes it drives the line. + +Save the control, output and interrupt configuration registers in +freeze_noirq and write them back in restore_noirq, the output level +first, so that a pin drives the right level from the moment it becomes +an output. Changing the interrupt configuration can latch an interrupt, +so the configuration is written with the interrupt disabled, the status +is cleared where the register changed, as msm_gpio_irq_set_type() does +with the interrupt masked, and only then is the interrupt enabled again. + +Only the GPIOs the kernel uses are put back: those requested as a GPIO, +muxed to a function or used as an interrupt, as pinctrl-intel does. A +valid GPIO without an owner may be in use by firmware. The SDC pads +after the GPIOs are configured without a mux function, so they never +have an owner, and their control register is always put back. + +msm_pinctrl_dev_pm_ops gets the two callbacks and x1e80100 starts using +these ops. With that x1e80100 also gets their suspend and resume +callbacks, which apply the sleep and default state of the controller's +own pins where a board defines them. + +Signed-off-by: Birk Skyum +--- + drivers/pinctrl/qcom/pinctrl-msm.c | 150 +++++++++++++++++++++++- + drivers/pinctrl/qcom/pinctrl-x1e80100.c | 1 + + 2 files changed, 149 insertions(+), 2 deletions(-) + +diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c +index 27f06bbc1..32aa7b919 100644 +--- a/drivers/pinctrl/qcom/pinctrl-msm.c ++++ b/drivers/pinctrl/qcom/pinctrl-msm.c +@@ -39,6 +39,15 @@ + #define MAX_NR_TILES 4 + #define PS_HOLD_OFFSET 0x820 + ++/* Register values of one pin group, kept across a hibernation. */ ++struct msm_pin_state { ++ u32 ctl; ++ u32 io; ++ u32 intr_cfg; ++ u32 intr_target; ++ bool saved; ++}; ++ + /** + * struct msm_pinctrl - state for a pinctrl-msm device + * @dev: device handle. +@@ -58,6 +67,7 @@ + * @soc: Reference to soc_data of platform specific data. + * @regs: Base addresses for the TLMM tiles. + * @phys_base: Physical base address ++ * @saved: Pin registers kept while a hibernation image is taken. + */ + struct msm_pinctrl { + struct device *dev; +@@ -80,6 +90,8 @@ struct msm_pinctrl { + const struct msm_pinctrl_soc_data *soc; + void __iomem *regs[MAX_NR_TILES]; + u32 phys_base[MAX_NR_TILES]; ++ ++ struct msm_pin_state *saved; + }; + + #define MSM_ACCESSOR(name) \ +@@ -1583,9 +1595,136 @@ static __maybe_unused int msm_pinctrl_resume(struct device *dev) + return pinctrl_force_default(pctrl->pctrl); + } + +-SIMPLE_DEV_PM_OPS(msm_pinctrl_dev_pm_ops, msm_pinctrl_suspend, +- msm_pinctrl_resume); ++static bool msm_pin_has_own_intr_target(struct msm_pinctrl *pctrl, ++ const struct msm_pingroup *g) ++{ ++ return !pctrl->intr_target_use_scm && g->intr_target_reg && ++ g->intr_target_reg != g->intr_cfg_reg; ++} ++ ++/* ++ * A GPIO is only put back when the kernel uses it, as a GPIO, through a mux ++ * function or as an interrupt. Other valid pins may be in use by firmware. ++ * The pads after the GPIOs (SDC) have no GPIO and are configured without a ++ * mux function, so they never have an owner and are always put back. ++ */ ++static bool msm_pin_in_use(struct msm_pinctrl *pctrl, unsigned int i) ++{ ++ const struct pin_desc *desc; ++ ++ if (i >= pctrl->chip.ngpio) ++ return true; ++ ++ if (!gpiochip_line_is_valid(&pctrl->chip, i)) ++ return false; ++ ++ desc = pin_desc_get(pctrl->pctrl, i); ++ ++ return desc && (desc->mux_owner || desc->gpio_owner || ++ gpiochip_line_is_irq(&pctrl->chip, i)); ++} ++ ++/* Remember how the pins are set up when a hibernation image is taken. */ ++static int msm_pinctrl_freeze_noirq(struct device *dev) ++{ ++ struct msm_pinctrl *pctrl = dev_get_drvdata(dev); ++ const struct msm_pingroup *g; ++ struct msm_pin_state *s; ++ unsigned int i; ++ ++ guard(raw_spinlock_irqsave)(&pctrl->lock); ++ ++ for (i = 0; i < pctrl->soc->ngroups; i++) { ++ g = &pctrl->soc->groups[i]; ++ s = &pctrl->saved[i]; ++ s->saved = msm_pin_in_use(pctrl, i); ++ if (!s->saved) ++ continue; ++ ++ s->ctl = msm_readl_ctl(pctrl, g); ++ if (i >= pctrl->chip.ngpio) ++ continue; ++ ++ s->io = msm_readl_io(pctrl, g); ++ if (!g->intr_cfg_reg) ++ continue; ++ ++ s->intr_cfg = msm_readl_intr_cfg(pctrl, g); ++ if (msm_pin_has_own_intr_target(pctrl, g)) ++ s->intr_target = msm_readl_intr_target(pctrl, g); ++ } + ++ return 0; ++} ++ ++/* ++ * The image is restored after a power cycle, when the pins are back at what ++ * the firmware and the kernel that loaded the image made of them. Nothing else ++ * writes the configuration again, so put back what was there. ++ * ++ * A both-edge interrupt that is emulated by flipping the polarity gets the ++ * polarity it had, which is not primed for a line that changed meanwhile. No ++ * SoC with such pins (one-bit detection) uses these callbacks. ++ */ ++static int msm_pinctrl_restore_noirq(struct device *dev) ++{ ++ struct msm_pinctrl *pctrl = dev_get_drvdata(dev); ++ const struct msm_pingroup *g; ++ struct msm_pin_state *s; ++ unsigned int i; ++ u32 val; ++ ++ guard(raw_spinlock_irqsave)(&pctrl->lock); ++ ++ for (i = 0; i < pctrl->soc->ngroups; i++) { ++ g = &pctrl->soc->groups[i]; ++ s = &pctrl->saved[i]; ++ if (!s->saved) ++ continue; ++ ++ if (i >= pctrl->chip.ngpio) { ++ msm_writel_ctl(s->ctl, pctrl, g); ++ continue; ++ } ++ ++ /* Set the level before the pin starts driving it. */ ++ val = msm_readl_io(pctrl, g); ++ val &= ~BIT(g->out_bit); ++ val |= s->io & BIT(g->out_bit); ++ msm_writel_io(val, pctrl, g); ++ ++ msm_writel_ctl(s->ctl, pctrl, g); ++ if (!g->intr_cfg_reg) ++ continue; ++ ++ if (msm_pin_has_own_intr_target(pctrl, g)) ++ msm_writel_intr_target(s->intr_target, pctrl, g); ++ ++ /* ++ * Changing the configuration can latch an interrupt, so write it ++ * with the interrupt disabled and clear the status before the ++ * interrupt is enabled again. One that is latched with the ++ * configuration unchanged is a real one. ++ */ ++ val = msm_readl_intr_cfg(pctrl, g); ++ msm_writel_intr_cfg(s->intr_cfg & ~BIT(g->intr_enable_bit), ++ pctrl, g); ++ if (val != s->intr_cfg) ++ msm_ack_intr_status(pctrl, g); ++ if (s->intr_cfg & BIT(g->intr_enable_bit)) ++ msm_writel_intr_cfg(s->intr_cfg, pctrl, g); ++ } ++ ++ return 0; ++} ++ ++const struct dev_pm_ops msm_pinctrl_dev_pm_ops = { ++ SYSTEM_SLEEP_PM_OPS(msm_pinctrl_suspend, msm_pinctrl_resume) ++ .freeze_noirq = PTR_IF(IS_ENABLED(CONFIG_HIBERNATE_CALLBACKS), ++ msm_pinctrl_freeze_noirq), ++ .restore_noirq = PTR_IF(IS_ENABLED(CONFIG_HIBERNATE_CALLBACKS), ++ msm_pinctrl_restore_noirq), ++}; + EXPORT_SYMBOL(msm_pinctrl_dev_pm_ops); + + int msm_pinctrl_probe(struct platform_device *pdev, +@@ -1663,6 +1802,13 @@ int msm_pinctrl_probe(struct platform_device *pdev, + if (ret) + return ret; + ++ if (IS_ENABLED(CONFIG_HIBERNATE_CALLBACKS)) { ++ pctrl->saved = devm_kcalloc(&pdev->dev, pctrl->soc->ngroups, ++ sizeof(*pctrl->saved), GFP_KERNEL); ++ if (!pctrl->saved) ++ return -ENOMEM; ++ } ++ + platform_set_drvdata(pdev, pctrl); + + dev_dbg(&pdev->dev, "Probed Qualcomm pinctrl driver\n"); +diff --git a/drivers/pinctrl/qcom/pinctrl-x1e80100.c b/drivers/pinctrl/qcom/pinctrl-x1e80100.c +index e4c0abcd9..bfe122fc7 100644 +--- a/drivers/pinctrl/qcom/pinctrl-x1e80100.c ++++ b/drivers/pinctrl/qcom/pinctrl-x1e80100.c +@@ -1855,6 +1855,7 @@ static struct platform_driver x1e80100_pinctrl_driver = { + .driver = { + .name = "x1e80100-tlmm", + .of_match_table = x1e80100_pinctrl_of_match, ++ .pm = &msm_pinctrl_dev_pm_ops, + }, + .probe = x1e80100_pinctrl_probe, + }; +-- +2.56.0 + diff --git a/pkgbuilds/linux-omarchy-aarch64/2281-PCI-host-common-Fix-early-bus-walk-exit-in-d3cold_po.patch b/pkgbuilds/linux-omarchy-aarch64/2281-PCI-host-common-Fix-early-bus-walk-exit-in-d3cold_po.patch new file mode 100644 index 0000000000..14ab7f30c9 --- /dev/null +++ b/pkgbuilds/linux-omarchy-aarch64/2281-PCI-host-common-Fix-early-bus-walk-exit-in-d3cold_po.patch @@ -0,0 +1,67 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Krishna Chaitanya Chundru +Date: Wed, 9 Sep 2026 17:54:28 +0530 +Subject: [PATCH] PCI: host-common: Fix early bus-walk exit in + d3cold_possible() + +__pci_host_common_d3cold_possible() returns -EOPNOTSUPP for the first +downstream device it finds outside PCI_D3hot, and pci_walk_bus() aborts +the walk as soon as its callback returns nonzero. Any device enumerated +after the disqualifying one -- including a wakeup-enabled, PME-from-D3cold +capable endpoint -- is then never visited, so pme_capable can come back +false even though such a device exists on the bus. + +Since pci_host_common_d3cold_possible() already returns false whenever +any device disqualifies D3cold, aborting the walk buys nothing for the +plain suspend path: the overall bool result is unaffected. But it +silently drops pme_capable detection for any device ordered after the +disqualifying one. + +This matters for the upcoming shutdown path in particular: unlike plain +suspend, shutdown forces the link into L2/D3cold regardless of whether +pci_host_common_d3cold_possible() itself allows it (see the following +"force_d3cold" changes), so at shutdown time it's common for an +endpoint to still be in D0 and disqualify D3cold while a later, +PME-capable device is never visited. dw_pcie_suspend_noirq() still +uses "pme_capable" to set pci->pp.skip_pwrctrl_off, so an inaccurate +result here can cause Vaux/wakeup support to be dropped for a device +that actually supports PME from D3cold. + +Signed-off-by: Krishna Chaitanya Chundru +--- + drivers/pci/controller/pci-host-common.c | 13 ++++--------- + 1 file changed, 4 insertions(+), 9 deletions(-) + +diff --git a/drivers/pci/controller/pci-host-common.c b/drivers/pci/controller/pci-host-common.c +index a23907a87..c2c852c64 100644 +--- a/drivers/pci/controller/pci-host-common.c ++++ b/drivers/pci/controller/pci-host-common.c +@@ -275,21 +275,16 @@ static int __pci_host_common_d3cold_possible(struct pci_dev *pdev, + return 0; + + if (pdev->current_state != PCI_D3hot) +- goto exit; ++ *flags &= ~PCI_HOST_D3COLD_ALLOWED; + + if (device_may_wakeup(&pdev->dev)) { +- if (!pci_pme_capable(pdev, PCI_D3cold)) +- goto exit; +- else ++ if (pci_pme_capable(pdev, PCI_D3cold)) + *flags |= PCI_HOST_PME_D3COLD_CAPABLE; ++ else ++ *flags &= ~PCI_HOST_D3COLD_ALLOWED; + } + + return 0; +- +-exit: +- *flags &= ~PCI_HOST_D3COLD_ALLOWED; +- +- return -EOPNOTSUPP; + } + + /** +-- +2.56.0 + diff --git a/pkgbuilds/linux-omarchy-aarch64/2282-PCI-dwc-Force-L2-link-entry-on-shutdown-reboot-witho.patch b/pkgbuilds/linux-omarchy-aarch64/2282-PCI-dwc-Force-L2-link-entry-on-shutdown-reboot-witho.patch new file mode 100644 index 0000000000..5a2c892640 --- /dev/null +++ b/pkgbuilds/linux-omarchy-aarch64/2282-PCI-dwc-Force-L2-link-entry-on-shutdown-reboot-witho.patch @@ -0,0 +1,180 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Krishna Chaitanya Chundru +Date: Wed, 9 Sep 2026 17:54:29 +0530 +Subject: [PATCH] PCI: dwc: Force L2 link entry on shutdown/reboot without + D3cold check + +dw_pcie_suspend_noirq() normally calls pci_host_common_d3cold_possible() +to check whether every downstream endpoint can be put into D3cold before +bothering to move the link to L2. If no endpoint supports it, the +function returns early and leaves the link up. + +Querying D3cold support during shutdown is actively harmful, not just +slow: pci_host_common_d3cold_possible() requires every active endpoint +to already be in PCI_D3hot, and returns false otherwise. If any endpoint +is still in D0 -- which is common, since endpoint drivers aren't +guaranteed to have suspended by the time the host's shutdown path runs +the check fails and dw_pcie_suspend_noirq() returns early without ever +moving the link to L2, leaving it up right up to the point where the +system cuts power/clocks to the controller. + +Add a force parameter to dw_pcie_suspend_noirq() that callers set +explicitly to force this behavior, still call +pci_host_common_d3cold_possible() unconditionally, since it's also how +pme_capable gets set, but ignore its return value and force L2 entry +regardless when force is set. + +Signed-off-by: Krishna Chaitanya Chundru +--- + drivers/pci/controller/dwc/pci-imx6.c | 2 +- + drivers/pci/controller/dwc/pci-layerscape.c | 2 +- + drivers/pci/controller/dwc/pcie-designware-host.c | 7 ++++--- + drivers/pci/controller/dwc/pcie-designware.h | 4 ++-- + drivers/pci/controller/dwc/pcie-eswin.c | 2 +- + drivers/pci/controller/dwc/pcie-nxp-s32g.c | 2 +- + drivers/pci/controller/dwc/pcie-qcom.c | 2 +- + drivers/pci/controller/dwc/pcie-stm32.c | 2 +- + drivers/pci/controller/dwc/pcie-ultrarisc.c | 2 +- + 9 files changed, 13 insertions(+), 12 deletions(-) + +diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c +index f7a2eb257..7e8905c9e 100644 +--- a/drivers/pci/controller/dwc/pci-imx6.c ++++ b/drivers/pci/controller/dwc/pci-imx6.c +@@ -1738,7 +1738,7 @@ static int imx_pcie_suspend_noirq(struct device *dev) + imx_pcie_assert_perst(imx_pcie, true); + imx_pcie->drvdata->enable_ref_clk(imx_pcie, false); + } else { +- return dw_pcie_suspend_noirq(imx_pcie->pci); ++ return dw_pcie_suspend_noirq(imx_pcie->pci, false); + } + + return 0; +diff --git a/drivers/pci/controller/dwc/pci-layerscape.c b/drivers/pci/controller/dwc/pci-layerscape.c +index 14d6ac4fc..aca1b0acb 100644 +--- a/drivers/pci/controller/dwc/pci-layerscape.c ++++ b/drivers/pci/controller/dwc/pci-layerscape.c +@@ -382,7 +382,7 @@ static int ls_pcie_suspend_noirq(struct device *dev) + if (!pcie->drvdata->pm_support) + return 0; + +- return dw_pcie_suspend_noirq(pcie->pci); ++ return dw_pcie_suspend_noirq(pcie->pci, false); + } + + static int ls_pcie_resume_noirq(struct device *dev) +diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c b/drivers/pci/controller/dwc/pcie-designware-host.c +index f5a38e6fd..21830c05d 100644 +--- a/drivers/pci/controller/dwc/pcie-designware-host.c ++++ b/drivers/pci/controller/dwc/pcie-designware-host.c +@@ -1222,16 +1222,17 @@ static int dw_pcie_pme_turn_off(struct dw_pcie *pci) + return 0; + } + +-int dw_pcie_suspend_noirq(struct dw_pcie *pci) ++int dw_pcie_suspend_noirq(struct dw_pcie *pci, bool force) + { +- bool pme_capable = false; ++ bool d3cold_possible, pme_capable = false; + int ret = 0; + u32 val; + + if (!dw_pcie_link_up(pci)) + goto stop_link; + +- if (!pci_host_common_d3cold_possible(pci->pp.bridge, &pme_capable)) ++ d3cold_possible = pci_host_common_d3cold_possible(pci->pp.bridge, &pme_capable); ++ if (!d3cold_possible && !force) + return 0; + + if (pci->pp.ops->pme_turn_off) { +diff --git a/drivers/pci/controller/dwc/pcie-designware.h b/drivers/pci/controller/dwc/pcie-designware.h +index 0735ae940..887daab4a 100644 +--- a/drivers/pci/controller/dwc/pcie-designware.h ++++ b/drivers/pci/controller/dwc/pcie-designware.h +@@ -859,7 +859,7 @@ static inline enum dw_pcie_ltssm dw_pcie_get_ltssm(struct dw_pcie *pci) + const char *dw_pcie_ltssm_status_string(enum dw_pcie_ltssm ltssm); + + #ifdef CONFIG_PCIE_DW_HOST +-int dw_pcie_suspend_noirq(struct dw_pcie *pci); ++int dw_pcie_suspend_noirq(struct dw_pcie *pci, bool force); + int dw_pcie_resume_noirq(struct dw_pcie *pci); + void dw_handle_msi_irq(struct dw_pcie_rp *pp); + void dw_pcie_msi_init(struct dw_pcie_rp *pp); +@@ -872,7 +872,7 @@ int dw_pcie_allocate_domains(struct dw_pcie_rp *pp); + void __iomem *dw_pcie_own_conf_map_bus(struct pci_bus *bus, unsigned int devfn, + int where); + #else +-static inline int dw_pcie_suspend_noirq(struct dw_pcie *pci) ++static inline int dw_pcie_suspend_noirq(struct dw_pcie *pci, bool force) + { + return 0; + } +diff --git a/drivers/pci/controller/dwc/pcie-eswin.c b/drivers/pci/controller/dwc/pcie-eswin.c +index ce8d64f8a..06fc488f8 100644 +--- a/drivers/pci/controller/dwc/pcie-eswin.c ++++ b/drivers/pci/controller/dwc/pcie-eswin.c +@@ -367,7 +367,7 @@ static int eswin_pcie_suspend_noirq(struct device *dev) + { + struct eswin_pcie *pcie = dev_get_drvdata(dev); + +- return dw_pcie_suspend_noirq(&pcie->pci); ++ return dw_pcie_suspend_noirq(&pcie->pci, false); + } + + static int eswin_pcie_resume_noirq(struct device *dev) +diff --git a/drivers/pci/controller/dwc/pcie-nxp-s32g.c b/drivers/pci/controller/dwc/pcie-nxp-s32g.c +index 31e1169b8..43174a06c 100644 +--- a/drivers/pci/controller/dwc/pcie-nxp-s32g.c ++++ b/drivers/pci/controller/dwc/pcie-nxp-s32g.c +@@ -365,7 +365,7 @@ static int s32g_pcie_suspend_noirq(struct device *dev) + struct s32g_pcie *s32g_pp = dev_get_drvdata(dev); + struct dw_pcie *pci = &s32g_pp->pci; + +- return dw_pcie_suspend_noirq(pci); ++ return dw_pcie_suspend_noirq(pci, false); + } + + static int s32g_pcie_resume_noirq(struct device *dev) +diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c +index b58a607b7..448af3029 100644 +--- a/drivers/pci/controller/dwc/pcie-qcom.c ++++ b/drivers/pci/controller/dwc/pcie-qcom.c +@@ -2346,7 +2346,7 @@ static int qcom_pcie_suspend_noirq(struct device *dev) + if (!pcie) + return 0; + +- ret = dw_pcie_suspend_noirq(pcie->pci); ++ ret = dw_pcie_suspend_noirq(pcie->pci, false); + if (ret) + return ret; + +diff --git a/drivers/pci/controller/dwc/pcie-stm32.c b/drivers/pci/controller/dwc/pcie-stm32.c +index 349618ea5..7b3a8c1b0 100644 +--- a/drivers/pci/controller/dwc/pcie-stm32.c ++++ b/drivers/pci/controller/dwc/pcie-stm32.c +@@ -78,7 +78,7 @@ static int stm32_pcie_suspend_noirq(struct device *dev) + struct stm32_pcie *stm32_pcie = dev_get_drvdata(dev); + int ret; + +- ret = dw_pcie_suspend_noirq(&stm32_pcie->pci); ++ ret = dw_pcie_suspend_noirq(&stm32_pcie->pci, false); + if (ret) + return ret; + +diff --git a/drivers/pci/controller/dwc/pcie-ultrarisc.c b/drivers/pci/controller/dwc/pcie-ultrarisc.c +index 51e891804..cb2781a15 100644 +--- a/drivers/pci/controller/dwc/pcie-ultrarisc.c ++++ b/drivers/pci/controller/dwc/pcie-ultrarisc.c +@@ -187,7 +187,7 @@ static int ultrarisc_pcie_suspend_noirq(struct device *dev) + if (pci->suspended) + return 0; + +- ret = dw_pcie_suspend_noirq(pci); ++ ret = dw_pcie_suspend_noirq(pci, false); + if (ret) + return ret; + +-- +2.56.0 + diff --git a/pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch b/pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch new file mode 100644 index 0000000000..803307e7f6 --- /dev/null +++ b/pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch @@ -0,0 +1,87 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Manivannan Sadhasivam +Date: Wed, 9 Sep 2026 17:54:30 +0530 +Subject: [PATCH] PCI: qcom: Implement shutdown() callback + +PCIe host controllers should bring the link down cleanly before system +shutdown/reboot proceeds to remove power/clocks from the controller. +Without this, the link may still be up and endpoints still have +transactions in flight when power/clocks are cut, which can trip SMMU +translation faults or NoC protocol errors. + +Reuse dw_pcie_suspend_noirq() in the shutdown path to force the link +into L2, putting it into D3cold. + +device_shutdown() runs with interrupts enabled, unlike suspend_noirq(). +Mask the chained MSI IRQ(s) and the Global IRQ before tearing down the +link and clocks/PHY, since a late/spurious interrupt could otherwise +reach a handler that touches now-unclocked PARF/DBI registers. + +Signed-off-by: Manivannan Sadhasivam +Signed-off-by: Krishna Chaitanya Chundru +--- + drivers/pci/controller/dwc/pcie-qcom.c | 35 ++++++++++++++++++++++++++ + 1 file changed, 35 insertions(+) + +diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c +index 448af3029..5544f2a05 100644 +--- a/drivers/pci/controller/dwc/pcie-qcom.c ++++ b/drivers/pci/controller/dwc/pcie-qcom.c +@@ -1924,6 +1924,9 @@ static int qcom_pcie_ecam_host_init(struct pci_config_window *cfg) + pp->use_imsi_rx = true; + dw_pcie_msi_init(pp); + ++ /* Stash pci so qcom_pcie_shutdown() can mask the MSI IRQ(s) later */ ++ platform_set_drvdata(to_platform_device(dev), pci); ++ + return devm_add_action_or_reset(dev, qcom_pci_free_msi, pp); + } + +@@ -2337,6 +2340,37 @@ static int qcom_pcie_probe(struct platform_device *pdev) + return ret; + } + ++static void qcom_pcie_shutdown(struct platform_device *pdev) ++{ ++ const struct qcom_pcie_cfg *pcie_cfg = of_device_get_match_data(&pdev->dev); ++ struct qcom_pcie *pcie; ++ struct dw_pcie *pci; ++ ++ if (pcie_cfg && pcie_cfg->firmware_managed) { ++ /* ++ * Firmware owns the link teardown and clock/PHY shutdown in ++ * this mode; Linux only owns the chained MSI IRQ(s), which ++ * still need to be masked off before shutdown proceeds. ++ */ ++ pci = platform_get_drvdata(pdev); ++ } else { ++ pcie = platform_get_drvdata(pdev); ++ pci = pcie->pci; ++ ++ if (pcie->global_irq) ++ disable_irq(pcie->global_irq); ++ } ++ ++ if (pci->pp.use_imsi_rx) ++ dw_pcie_free_msi(&pci->pp); ++ ++ if (pcie) ++ dw_pcie_suspend_noirq(pcie->pci, true); ++ ++ pm_runtime_put_sync(&pdev->dev); ++ pm_runtime_disable(&pdev->dev); ++} ++ + static int qcom_pcie_suspend_noirq(struct device *dev) + { + struct qcom_pcie *pcie; +@@ -2519,5 +2553,6 @@ static struct platform_driver qcom_pcie_driver = { + .pm = &qcom_pcie_pm_ops, + .probe_type = PROBE_PREFER_ASYNCHRONOUS, + }, ++ .shutdown = qcom_pcie_shutdown, + }; + builtin_platform_driver(qcom_pcie_driver); +-- +2.56.0 + diff --git a/pkgbuilds/linux-omarchy-aarch64/2284-PCI-qcom-Power-the-controller-down-when-hibernating.patch b/pkgbuilds/linux-omarchy-aarch64/2284-PCI-qcom-Power-the-controller-down-when-hibernating.patch new file mode 100644 index 0000000000..e6721839fb --- /dev/null +++ b/pkgbuilds/linux-omarchy-aarch64/2284-PCI-qcom-Power-the-controller-down-when-hibernating.patch @@ -0,0 +1,106 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Birk Skyum +Date: Mon, 12 Oct 2026 12:46:01 +0200 +Subject: [PATCH] PCI: qcom: Power the controller down when hibernating + +qcom_pcie_suspend_noirq() leaves the controller powered when a device +below it cannot go to D3cold, and qcom_pcie_resume_noirq() then carries +on with the controller as it was. + +That is fine for suspend. The same two functions also run as +freeze_noirq and restore_noirq for hibernation. Devices are normally +still in D0 at freeze, so a controller with a device behind it is left +powered and the image records it as running. That image is resumed +after a power cycle, by a kernel that may never have brought the +controller up. + +On a Lenovo Yoga Slim 7x (X1E80100) this resets the machine on every +resume from hibernation. The Wi-Fi card is behind pcie4, whose link +only comes up once the power sequencing drivers have been loaded from +the root file system. The kernel that loads the image resumes before +that, so it never powers pcie4, and the restored kernel then reads the +DBI registers of that controller: + + qcom_pcie_resume_noirq() + qcom_pcie_icc_opp_update() + dw_pcie_find_capability() + dw_pcie_read_dbi() + +The machine resets at that read. pcie6a, which holds the NVMe drive and +is brought up by both kernels, gets through the same path. + +Give the driver a freeze_noirq callback of its own that forces the link +into L2 and powers the controller down, whatever state the devices +below it are in. A hibernation image then always holds a controller +that is down, and thaw_noirq and restore_noirq bring it up through +dw_pcie_resume_noirq(), like after any other loss of power. Suspend and +the poweroff phase of hibernation keep the D3cold check. + +Suggested-by: Krishna Chaitanya Chundru +Signed-off-by: Birk Skyum +--- + drivers/pci/controller/dwc/pcie-qcom.c | 27 +++++++++++++++++++++++--- + 1 file changed, 24 insertions(+), 3 deletions(-) + +diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c +index 5544f2a05..dff5c4a47 100644 +--- a/drivers/pci/controller/dwc/pcie-qcom.c ++++ b/drivers/pci/controller/dwc/pcie-qcom.c +@@ -2371,7 +2371,7 @@ static void qcom_pcie_shutdown(struct platform_device *pdev) + pm_runtime_disable(&pdev->dev); + } + +-static int qcom_pcie_suspend_noirq(struct device *dev) ++static int qcom_pcie_suspend(struct device *dev, bool force) + { + struct qcom_pcie *pcie; + int ret = 0; +@@ -2380,7 +2380,7 @@ static int qcom_pcie_suspend_noirq(struct device *dev) + if (!pcie) + return 0; + +- ret = dw_pcie_suspend_noirq(pcie->pci, false); ++ ret = dw_pcie_suspend_noirq(pcie->pci, force); + if (ret) + return ret; + +@@ -2429,6 +2429,22 @@ static int qcom_pcie_suspend_noirq(struct device *dev) + return ret; + } + ++static int qcom_pcie_suspend_noirq(struct device *dev) ++{ ++ return qcom_pcie_suspend(dev, false); ++} ++ ++/* ++ * A hibernation image is resumed after a power cycle, by a kernel that may ++ * not have brought this controller up. Power the controller down even if a ++ * device below it cannot go to D3cold, so that the image never holds a ++ * controller that is running. Thaw and restore bring it up again. ++ */ ++static int qcom_pcie_freeze_noirq(struct device *dev) ++{ ++ return qcom_pcie_suspend(dev, true); ++} ++ + static int qcom_pcie_resume_noirq(struct device *dev) + { + struct qcom_pcie *pcie; +@@ -2541,7 +2557,12 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x1000, qcom_fixup_class); + DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x1001, qcom_fixup_class); + + static const struct dev_pm_ops qcom_pcie_pm_ops = { +- NOIRQ_SYSTEM_SLEEP_PM_OPS(qcom_pcie_suspend_noirq, qcom_pcie_resume_noirq) ++ .suspend_noirq = pm_sleep_ptr(qcom_pcie_suspend_noirq), ++ .resume_noirq = pm_sleep_ptr(qcom_pcie_resume_noirq), ++ .freeze_noirq = pm_sleep_ptr(qcom_pcie_freeze_noirq), ++ .thaw_noirq = pm_sleep_ptr(qcom_pcie_resume_noirq), ++ .poweroff_noirq = pm_sleep_ptr(qcom_pcie_suspend_noirq), ++ .restore_noirq = pm_sleep_ptr(qcom_pcie_resume_noirq), + }; + + static struct platform_driver qcom_pcie_driver = { +-- +2.56.0 + diff --git a/pkgbuilds/linux-omarchy-aarch64/2285-soc-qcom-smp2p-Start-over-after-a-restore-from-hiber.patch b/pkgbuilds/linux-omarchy-aarch64/2285-soc-qcom-smp2p-Start-over-after-a-restore-from-hiber.patch new file mode 100644 index 0000000000..89cd94a353 --- /dev/null +++ b/pkgbuilds/linux-omarchy-aarch64/2285-soc-qcom-smp2p-Start-over-after-a-restore-from-hiber.patch @@ -0,0 +1,127 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Birk Skyum +Date: Fri, 9 Oct 2026 23:27:30 +0200 +Subject: [PATCH] soc: qcom: smp2p: Start over after a restore from hibernation + +smp2p remembers what it has negotiated with the remote processor: where +the remote's item is, which of its entries are matched, that version +and features are agreed, and whether the remote's last restart has been +acknowledged. + +None of that holds when a hibernation image is restored. The machine +has been through a power cycle, shared memory has been set up again, +the kernel that loaded the image has created a fresh item for us, and +the remote starts from nothing. + +On a Lenovo Yoga Slim 7x (X1E80100) a remote processor that is started +after a resume from hibernation never comes up: + + remoteproc remoteproc0: Booting fw image qcom/x1e80100/LENOVO/83ED/qcadsp8380.mbn, size 21592504 + qcom_q6v5_pas 6800000.remoteproc: start timed out + remoteproc remoteproc0: can't start rproc adsp: -110 + +For the ADSP the driver still has ssr_ack set while the fresh item has +RESTART_ACK clear. When the remote sets RESTART_DONE, +qcom_smp2p_check_ssr() sees no restart, and the acknowledgement the +remote waits for is never written. For the CDSP the driver believes the +negotiation is done, so the fresh item is left at version 2 while the +remote uses version 1. + +Forget all of it in restore_noirq and build our item again, the way +probe does. If the remote is still running, as after test_resume, +qcom_smp2p_start_in() finds its item again and the next interrupt +redoes the negotiation. + +Signed-off-by: Birk Skyum +--- + drivers/soc/qcom/smp2p.c | 53 +++++++++++++++++++++++++++++++++++++--- + 1 file changed, 50 insertions(+), 3 deletions(-) + +diff --git a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c +index 89e242f4d..0352ecd3b 100644 +--- a/drivers/soc/qcom/smp2p.c ++++ b/drivers/soc/qcom/smp2p.c +@@ -519,9 +519,8 @@ static const struct qcom_smem_state_ops smp2p_state_ops = { + .update_bits = smp2p_update_bits, + }; + +-static int qcom_smp2p_outbound_entry(struct qcom_smp2p *smp2p, +- struct smp2p_entry *entry, +- struct device_node *node) ++static void qcom_smp2p_claim_outbound_entry(struct qcom_smp2p *smp2p, ++ struct smp2p_entry *entry) + { + struct smp2p_smem_item *out = smp2p->out; + char buf[SMP2P_MAX_ENTRY_NAME] = {}; +@@ -534,6 +533,13 @@ static int qcom_smp2p_outbound_entry(struct qcom_smp2p *smp2p, + entry->value = &out->entries[out->valid_entries].value; + + out->valid_entries++; ++} ++ ++static int qcom_smp2p_outbound_entry(struct qcom_smp2p *smp2p, ++ struct smp2p_entry *entry, ++ struct device_node *node) ++{ ++ qcom_smp2p_claim_outbound_entry(smp2p, entry); + + entry->state = qcom_smem_state_register(node, &smp2p_state_ops, entry); + if (IS_ERR(entry->state)) { +@@ -785,6 +791,46 @@ static void qcom_smp2p_remove(struct platform_device *pdev) + smp2p->out->valid_entries = 0; + } + ++/* ++ * A hibernation image is restored after a power cycle. Shared memory has been ++ * set up anew since and the remote starts from nothing, so forget what was ++ * negotiated with it and build our item again. ++ */ ++static int qcom_smp2p_restore_noirq(struct device *dev) ++{ ++ struct qcom_smp2p *smp2p = dev_get_drvdata(dev); ++ struct smp2p_entry *entry; ++ int ret; ++ ++ smp2p->in = NULL; ++ smp2p->valid_entries = 0; ++ smp2p->negotiation_done = false; ++ smp2p->ssr_ack_enabled = false; ++ smp2p->ssr_ack = false; ++ ++ list_for_each_entry(entry, &smp2p->inbound, node) { ++ entry->value = NULL; ++ entry->last_value = 0; ++ } ++ ++ ret = qcom_smp2p_alloc_outbound_item(smp2p); ++ if (ret < 0) ++ return ret; ++ ++ /* Entries were added at the head of the list, so walk it backwards. */ ++ list_for_each_entry_reverse(entry, &smp2p->outbound, node) ++ qcom_smp2p_claim_outbound_entry(smp2p, entry); ++ ++ qcom_smp2p_start_in(smp2p); ++ qcom_smp2p_kick(smp2p); ++ ++ return 0; ++} ++ ++static const struct dev_pm_ops qcom_smp2p_pm_ops = { ++ .restore_noirq = pm_sleep_ptr(qcom_smp2p_restore_noirq), ++}; ++ + static const struct of_device_id qcom_smp2p_of_match[] = { + { .compatible = "qcom,smp2p" }, + {} +@@ -797,6 +843,7 @@ static struct platform_driver qcom_smp2p_driver = { + .driver = { + .name = "qcom_smp2p", + .of_match_table = qcom_smp2p_of_match, ++ .pm = &qcom_smp2p_pm_ops, + }, + }; + module_platform_driver(qcom_smp2p_driver); +-- +2.56.0 + diff --git a/pkgbuilds/linux-omarchy-aarch64/2286-Bluetooth-hci_qca-Reset-the-in-band-sleep-state-on-p.patch b/pkgbuilds/linux-omarchy-aarch64/2286-Bluetooth-hci_qca-Reset-the-in-band-sleep-state-on-p.patch new file mode 100644 index 0000000000..e5fbc7c980 --- /dev/null +++ b/pkgbuilds/linux-omarchy-aarch64/2286-Bluetooth-hci_qca-Reset-the-in-band-sleep-state-on-p.patch @@ -0,0 +1,96 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Birk Skyum +Date: Wed, 14 Oct 2026 17:53:56 +0000 +Subject: [PATCH] Bluetooth: hci_qca: Reset the in-band sleep state on power + off + +qca_power_off() cuts the power of the controller but leaves the host +side of the in-band sleep (IBS) protocol as it was. tx_ibs_state and +rx_ibs_state are initialised in qca_open() only, so a controller that +qca_setup() powers on again meets whatever state the last session ended +in. + +If that state is HCI_IBS_TX_AWAKE, the host sends the frames after the +next setup without a wake indication. qca_hci_shutdown() stops both IBS +timers, but the pre-shutdown command it sends afterwards goes through +qca_enqueue() and arms tx_idle_timer again for 2 s, so a power on within +those 2 s finds the state at AWAKE. On a OnePlus Pad 3 (WCN7880) this +happens with a power off and on within 2 s, and at every boot of a board +without local-bd-address when user space sets the address right after +the controller registers. The controller comes back asleep, and the +first command after it has gone to sleep breaks the link: + + Bluetooth: hci0: Frame reassembly failed (-84) + Bluetooth: hci0: Opcode 0x0c56 failed: -110 + Bluetooth: hci0: crash the soc to collect controller dump + +The timer left armed can also send HCI_IBS_SLEEP_IND in the middle of +the next setup. + +If the state is HCI_IBS_TX_WAKING, the host is waiting for a wake +acknowledgment, and qca_hci_shutdown() has deleted the timer that +sends the wake indication again. The setup still works, because frames +bypass IBS while QCA_IBS_DISABLED is set. Once the flag is cleared, +qca_enqueue() puts every frame on tx_wait_q and nothing takes it off: + + Bluetooth: hci0: QCA setup on UART is completed + Bluetooth: hci0: Opcode 0x0c03 failed: -110 + +A restore from hibernation gets there on a Lenovo Yoga Slim 7x +(WCN7850). The controller has been through a power cycle, while the +restored kernel holds the state from before the image was taken. Its +wake indications go unanswered, the commands behind them time out, and +the core closes the device and sets it up again. From then on +tx_ibs_state reads 1 in debugfs and Bluetooth stays dead until hci_uart +is reloaded. + +When the controller loses power, cancel the IBS work, wait for the IBS +timers, drop what was queued and put both sides back to asleep, which +is where qca_open() starts. The timer callbacks take hci_ibs_lock, so +the timers are deleted outside of it. All callers of qca_power_off() +can sleep, and the work items do not call it. + +Fixes: 3e4be65eb82c ("Bluetooth: hci_qca: Add poweroff support during hci down for wcn3990") +Cc: stable@vger.kernel.org +Co-developed-by: Vladyslav Tymoshchuk +Signed-off-by: Vladyslav Tymoshchuk +Signed-off-by: Birk Skyum +--- + drivers/bluetooth/hci_qca.c | 17 +++++++++++++++-- + 1 file changed, 15 insertions(+), 2 deletions(-) + +diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c +index cef2b525c..671a51ffd 100644 +--- a/drivers/bluetooth/hci_qca.c ++++ b/drivers/bluetooth/hci_qca.c +@@ -2246,12 +2246,25 @@ static void qca_power_off(struct hci_uart *hu) + struct qca_power *power; + + /* From this point we go into power off state. But serial port may +- * still be open, stop queueing the IBS data and flush all the buffered +- * data in skb's. ++ * still be open, stop queueing the IBS data. + */ + spin_lock_irqsave(&qca->hci_ibs_lock, flags); + set_bit(QCA_IBS_DISABLED, &qca->flags); ++ spin_unlock_irqrestore(&qca->hci_ibs_lock, flags); ++ ++ /* The controller loses the IBS state with its power and comes back ++ * with both sides asleep, as qca_open() assumes. Stop the IBS work and ++ * timers, drop what they queued and start over from there. ++ */ ++ cancel_work_sync(&qca->ws_awake_device); ++ cancel_work_sync(&qca->ws_awake_rx); ++ timer_delete_sync(&qca->wake_retrans_timer); ++ timer_delete_sync(&qca->tx_idle_timer); ++ ++ spin_lock_irqsave(&qca->hci_ibs_lock, flags); + qca_flush(hu); ++ qca->tx_ibs_state = HCI_IBS_TX_ASLEEP; ++ qca->rx_ibs_state = HCI_IBS_RX_ASLEEP; + spin_unlock_irqrestore(&qca->hci_ibs_lock, flags); + + /* Non-serdev device usually is powered by external power +-- +2.56.0 + diff --git a/pkgbuilds/linux-omarchy-aarch64/2287-serial-qcom-geni-Set-the-serial-engine-up-again-afte.patch b/pkgbuilds/linux-omarchy-aarch64/2287-serial-qcom-geni-Set-the-serial-engine-up-again-afte.patch new file mode 100644 index 0000000000..eb24bb52d1 --- /dev/null +++ b/pkgbuilds/linux-omarchy-aarch64/2287-serial-qcom-geni-Set-the-serial-engine-up-again-afte.patch @@ -0,0 +1,75 @@ +From e076a322973e62853f5025e346743090774240f4 Mon Sep 17 00:00:00 2001 +From: Birk Skyum +Date: Tue, 27 Oct 2026 17:22:21 +0000 +Subject: [PATCH] serial: qcom-geni: Set the serial engine up again after + hibernation + +A hibernation image is restored after a power cycle, which resets every +serial engine. The kernel that loads the image only sets up the engines +it uses itself, and on laptops the Bluetooth UART is opened from the +root file system, so that kernel never touches it. + +The restored kernel still has port->setup set from before, so the +startup in uart_resume_port() skips qcom_geni_serial_port_setup() and +the port runs on an engine whose FIFOs, packing and transfer mode were +never configured. On a Lenovo Yoga Slim 7x (X1E80100) the WCN7850's +Bluetooth controller then never comes back: every setup attempt of +hci_qca's error recovery ends in "command 0xfc00 tx timeout" and +"Reading QCA version information failed (-110)". + +Clear port->setup in a restore callback of its own, so the next startup +sets the engine up again. Leave console ports alone: the kernel that +loads the image sets up its console when it registers it, and setting +the engine up again in qcom_geni_serial_startup() would run without the +port lock while the console may be writing. The other system sleep +callbacks are unchanged. + +Signed-off-by: Birk Skyum +--- + drivers/tty/serial/qcom_geni_serial.c | 23 ++++++++++++++++++++++- + 1 file changed, 22 insertions(+), 1 deletion(-) + +diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c +index a851b8f0e..0ee263963 100644 +--- a/drivers/tty/serial/qcom_geni_serial.c ++++ b/drivers/tty/serial/qcom_geni_serial.c +@@ -2136,6 +2136,22 @@ static int qcom_geni_serial_resume(struct device *dev) + return ret; + } + ++/* ++ * A hibernation image is restored after a power cycle, which reset the serial ++ * engine. The kernel that loaded the image only set up the engines it used ++ * itself, so set this one up again when the port starts. A console is left as ++ * it is, since setting it up at startup would race with console output. ++ */ ++static int qcom_geni_serial_restore(struct device *dev) ++{ ++ struct qcom_geni_serial_port *port = dev_get_drvdata(dev); ++ ++ if (!uart_console(&port->uport)) ++ port->setup = false; ++ ++ return qcom_geni_serial_resume(dev); ++} ++ + #if IS_ENABLED(CONFIG_SERIAL_QCOM_GENI_CONSOLE) + static const struct qcom_geni_device_data qcom_geni_console_data = { + .console = true, +@@ -2173,7 +2189,12 @@ static const struct qcom_geni_device_data sa8255p_qcom_geni_uart_data = { + static const struct dev_pm_ops qcom_geni_serial_pm_ops = { + SET_RUNTIME_PM_OPS(qcom_geni_serial_runtime_suspend, + qcom_geni_serial_runtime_resume, NULL) +- SYSTEM_SLEEP_PM_OPS(qcom_geni_serial_suspend, qcom_geni_serial_resume) ++ .suspend = pm_sleep_ptr(qcom_geni_serial_suspend), ++ .resume = pm_sleep_ptr(qcom_geni_serial_resume), ++ .freeze = pm_sleep_ptr(qcom_geni_serial_suspend), ++ .thaw = pm_sleep_ptr(qcom_geni_serial_resume), ++ .poweroff = pm_sleep_ptr(qcom_geni_serial_suspend), ++ .restore = pm_sleep_ptr(qcom_geni_serial_restore), + }; + + static void qcom_geni_serial_sys_shutdown(struct platform_device *pdev) +-- +2.56.0 + diff --git a/pkgbuilds/linux-omarchy-aarch64/PKGBUILD b/pkgbuilds/linux-omarchy-aarch64/PKGBUILD index 2fa695f319..5a4cef077a 100644 --- a/pkgbuilds/linux-omarchy-aarch64/PKGBUILD +++ b/pkgbuilds/linux-omarchy-aarch64/PKGBUILD @@ -9,7 +9,7 @@ pkgbase=linux-omarchy-aarch64 _kernel=linux-omarchy pkgver=7.3 -pkgrel=74 +pkgrel=75 # NVIDIA's open kernel modules ship prebuilt as $_kernel-nvidia-open, built in # this recipe so every kernel lands with modules for it and nobody compiles # them through DKMS on a kernel update. Keep this version and the patches in @@ -299,6 +299,14 @@ source=( 2209-i2c-qcom-cci-Suspend-the-controller-50-ms-after-the-last-transfer.patch 2210-arm64-dts-qcom-hamoa-glymur-Disable-the-crypto-engine.patch 2217-serial-qcom-geni-release-the-OPP-and-ICC-votes-in-sy.patch + 2280-pinctrl-qcom-Restore-the-pin-configuration-after-hib.patch + 2281-PCI-host-common-Fix-early-bus-walk-exit-in-d3cold_po.patch + 2282-PCI-dwc-Force-L2-link-entry-on-shutdown-reboot-witho.patch + 2283-PCI-qcom-Implement-shutdown-callback.patch + 2284-PCI-qcom-Power-the-controller-down-when-hibernating.patch + 2285-soc-qcom-smp2p-Start-over-after-a-restore-from-hiber.patch + 2286-Bluetooth-hci_qca-Reset-the-in-band-sleep-state-on-p.patch + 2287-serial-qcom-geni-Set-the-serial-engine-up-again-afte.patch 2300-ASoC-codecs-lpass-wsa-macro-use-v2.5-Compander1-addr.patch 2301-ASoC-codecs-lpass-rx-wsa-macro-sort-reg_defaults-bef.patch 2302-ASoC-codecs-lpass-wsa-macro-switch-cache-to-REGCACHE.patch @@ -974,6 +982,14 @@ sha256sums=('87363c24f10e06321eb362765521094e94471f6bff8bce2d6b3e40f39f004953' '5eb763f45fdef2428571d4a8988522e350c71158ef83b2f1a76d3dba9798d677' '71bfc324bed8d2d19169f29e65bf5a29d48b67c910a161e7ffc015a76fc5fecf' '1da0c923a429b9f8bdd3b4b3080cd46f50202c5ef2afbc60d1f085133c37b2b7' + 'bf7c0c72e228b84858323cdacee5e3259e4453b1cb16073025fca79d0599bf5c' + 'f3c8eb103f1750726512bdf660826b34bec8276cd3643a73aa6ddce42b8013cc' + '58f77483401b116f69462bef1527adbcc6ac3e1be99e60b8c46466af27e7748a' + 'd8522d392573c5d104c6499cbc083c1325667840a13a082a4b91de612ffda95f' + '81dcafddc5b784665086823494efed3ef0c73623ba445ba450f0935d8237ef4f' + '48b3d882f39502aa03cec2aa37af6789520d8b0c06917baf33c817f628283d03' + '47c80cebe3b2a2bf1b05f06cc544d4c39a63fe4d481021b3a23bc0e7bb392535' + '892555cd30690b6c6e251414f220c64406fe0c371f26c5679521a91bebda5496' '330491cb42da5cd7b540edb1d5cd574f92e9cde3832a7900d160928224371497' '5ca289bb7eba4e70e54e63fded3a08af64a0b68a6100b7a78097a685baa180d4' 'cab2a593aef371c5d10d0ce15d6be1f62fc19b9684152cdd3bc82841bd8702b0' @@ -1326,7 +1342,7 @@ sha256sums=('87363c24f10e06321eb362765521094e94471f6bff8bce2d6b3e40f39f004953' 'ae5730ccf495854bad7f3f7459be1eb7bdb6b38b74fcbb133451cf151fbac14b' '54c6946021f3e49ca4dc9744898b6f7691ab7191592f76e4abe14cb1a4c0c03e' '1832f3d5393980ff380cd0660601a8d16c0a7870b79caa1cdadbef7cd0aaf592') -sha256sums_aarch64=('815d28c3e5c89e90d59b73fd2b91ff34b0bf8dff0f92b80db0871d216031b7a7') +sha256sums_aarch64=('de0919316a30ee734152d709a19405674a4fcba4a1d7c779984ad6b0ee9de371') b2sums=('b7fb8c74de664fdd0cd7b42afff2720bda5c4bdb2ffffa80a745c5fecd029c6fe739a3ecbdaa5c5e27194a8acb9bf861271e7bafe6eb475bb3ccd6862e4caf60' 'SKIP' '60eac409f1ba50fe319f6b3aa5b0af81bc7ce5628ca41c1af346a6d5ef0fc9c577527742d1f70ece7e07ea410fcd112b32d64f0a05af5b532f27b62e5e7d837a' @@ -1640,6 +1656,14 @@ b2sums=('b7fb8c74de664fdd0cd7b42afff2720bda5c4bdb2ffffa80a745c5fecd029c6fe739a3e '753658af251a83196626a8767d345a43d6fbf8b93574a1fc13287bb9b173c24e805df9a6b463f52fa8c887367d52c5e572ce92381a4c3b3d44af5dcbcef6ebc3' '9586b54ca8191bdc1aa2d813d319afa613176fb87de0dc82e0772f26468df72b6396c5c9e5d00fbb8c317f0f3654ee6605d93297a1388211648ffbd429fb4522' '8b10db91844ed6ae48020570370c728c3e90eca128a19744940763af25c4a0425e24f6481166f0aa14a2953796a04643829596cd9d710fd7246927d8c958df8f' + '2336931a04df95fd05720ff2e463262b4bbd06eea6ba3fecef90e43e40e21b3164fb76527de3d9e04093e0176ac613d2b94bcf726e5df64ce516734ac016d148' + '050ff9080d31ce11222f2c197d2742e93a111e586445986cf07f20ffa6145be4173f4d53faa71135fb9aa400564b2a15457d181eafe3303407f0b1c2ca91a7e4' + '8d72185740035393d9f3b0598e6496b32f5e83d98541bdaf7d02c01bb0e32f120e22b10a4db0cafec9872b8d2bcf341e400ba978c8e5ffc5c22cc570b72da329' + 'd7499496befe9f7b81b6c2d082b126129d710ec0ea2e9d94bd6aa0aedadba8ecc01b23c104d87327255ea6c37c6b097edcbb7e2b7153b189910974cf7e0c34a4' + '558f1c502c52cac2d6cc5f85f1eefe8077cdf72b19a79e6782c4c56f5b706cf7851bbded1d7b3f32dd30509555eac57e0c608868dcc6fb0535d25781ce8ca7e0' + '8b6814864aaa3dc5b88d2acb8705cae19e9b0a382e630e8f94393da0b009b7088f8830d435998532a5f0af0763912069a3f230f6264b294eddb9969a4caea8f5' + '898a46bd1708cd4eb531b01a3d862ab1d8d06563f5b6b683d76d7e72c5b513150eb9f7d293da337d8caab9f4f2af4307fb40e93ae0b1dd3bfeeb36f6ab7e733f' + '8e9a4a53ba55b089acdc9e854c9193b6b3606ccf4649d8c751b3eb64b53b281b2c99044d74ef77d597023ead7087b9ad59f72201426d405bf0b5d2d5a59fae12' 'ebf3d336f169ccea3f28a1257c63c3faef8429a2f548615f136dccede0f8517471a1b41a1f0545d880a1b7403f906fc40145344fccdf3c3e61391792694ff63a' '62dafc4ffdfee47436496aafcb76710ae4331f8bd01a8f9f419460dacf37d6606c950952883647ad97097ce283089ade05e2d13ad4b3376a857f2cd4990e6995' 'a76c3473fc2d6f598e7b7df6c6f25757b7d6b6db3b1386c4f7572c47175c8b7089e0252875abd74cd4d2b728fcb83452b02d9341c5e7cd7764cf8e7377c0b4f0' @@ -1992,7 +2016,7 @@ b2sums=('b7fb8c74de664fdd0cd7b42afff2720bda5c4bdb2ffffa80a745c5fecd029c6fe739a3e '4426d029431f76e9eb4f607616c7107f1f8fb9c4ec1dbd8f74ded6945cedd99d8af79f0037846c99b3aad15889439e0e0040e0d44724ad78811bee7dd4ffe465' 'b2841f9381a41c9a708377cd00a3bc0fe8ab3cf1ef89bf53cbff9aff82875a3bd0afd6e69b87cb3fa7c832fac0a60b8ec0b993ff4f98218c7f95434abcb37af5' '6b7fe2022f125e1c59f9645730cac87a3258e9f2210c19ff1f82022ea644ec1242ba9444e59e64f2e4e30f0c579f4ae2e05e119b30cb4d2564e270690373c906') -b2sums_aarch64=('bfe78422db93b8cc166ea24318792d145236b1e68917ac9399ef8fd37fa6e35c8cac6757ce1fecc05749c9aa6b907f597041d0dca488ca56488f45809f3d7ecd') +b2sums_aarch64=('a1f32619797fbfb1e538ed590fc0dd1503003d228226c1cb38b2e3716a498a19ef2db3e8cc7cf3ca051e151b177f9dddb738a61ca8cd7806a59f3b34b630a6f9') # https://www.kernel.org/pub/linux/kernel/v7.x/sha256sums.asc diff --git a/pkgbuilds/linux-omarchy-aarch64/README.md b/pkgbuilds/linux-omarchy-aarch64/README.md index e6908b98bc..c39309286b 100644 --- a/pkgbuilds/linux-omarchy-aarch64/README.md +++ b/pkgbuilds/linux-omarchy-aarch64/README.md @@ -4,7 +4,7 @@ The `linux-omarchy` kernel for aarch64, with NVIDIA N1x (RTX Spark) and Snapdrag It carries the signed Omarchy patch set of `linux-omarchy` 7.2.8-10, ported to 7.3, plus N1x topic patches numbered 1000 and up. `linux-omarchy` is the BORE build (it was `linux-omarchy-bore` until 7.2.8-9, which is now a transitional package), so the shared patches, their signatures and the BORE and ADIOS schedulers come from `linux-omarchy`, byte for byte, including its BORE rebases of the scheduler patches. This package moved to 7.3 ahead of `linux-omarchy`, which is still on 7.2.8. Twelve of the shared patches 7.3 still needs had to change for it and carry no signature. `0110` is BORE's own 7.3 patch, `0450` the amd-staging HDMI VRR and ALLM series, `0608` only the icm fix 7.3 lacks, and `0140`, `0350`, `0402`, `0460`, `0461`, `0478`, `0517`, `0804` and `8205` are rebuilt for 7.3. The rest are `linux-omarchy`'s files with their signatures. `0568` and `0571` stay out: 7.3 has the HID updates, and `0571` reverts the Logitech Bolt receiver support `0568` adds (upstream 3fabd8ec206b, in 7.3-rc6), which made mice on a Bolt receiver scroll about 15 times too fast. Once `linux-omarchy` moves to 7.3, this package takes its set again. The intent is to fold these into `linux-omarchy` itself once it builds for aarch64; until then this is the kernel Omarchy installs on N1x machines (`install/hardware/n1x.sh` in omarchy), replacing NVIDIA's 7.0-based `linux-n1x`. -The `pkgrel` counts N1x revisions of this package and starts again at 1 when the kernel version changes. On 7.2.5 it was `6.1` to `6.9` while it tracked `linux-omarchy`'s release; the ninth revision became `9`, `10` added the Dell XPS 16 patches, `11` brought a dock's displays back after a failed DisplayPort tunnel, `12` stopped the clock during suspend-to-idle, `13` brought NVIDIA's device sleep patches from 1022.23, `14` let keyboard and touchpad interrupts wake the system from the platform's deepest sleep, and `15` brought audio and UCSI fixes from upstream and turned kexec handover off by default. `7.2.8-1` moves to 7.2.8 and `linux-omarchy` 7.2.8-5's patch set, `2` closes a SoundWire interrupt race that could hang the boot, `3` stops `cppc_cpufreq` registering its artificial energy model, so EAS no longer packs the desktop onto the A725 cores, `4` ships the Snapdragon laptops' device trees and resets the Iris AHB bridge before hardware mode, `5` builds SCMI CPU frequency scaling in, which the Snapdragon laptops need, `6` lets suspend-to-idle reach the platform's deepest idle state, which brings sleep from 6-15 W to under 1 W, `7` stops reclaiming the GPU's reserved memory, which the firmware now sizes itself, `8` takes the name `linux-omarchy`, `9` registers `cppc_cpufreq`'s artificial energy model again, so that power-profiles-daemon's RTX Spark driver can turn EAS on and off with the governor, as NVIDIA designed it, `10` keeps a dock's tunnels through suspend-to-idle, so its USB devices and displays come back on resume, `11` spaces out a dock's DisplayPort teardowns, so the GPU sees both monitors leave when a two-monitor dock is unplugged, `13` keeps USB and the SSPM-dependent ACPI drivers working on a DGX Spark whose firmware hides the SSPM mailbox, `14` lets Bolt authorize new docks on its own, as it does on Intel and AMD laptops, `15` brings back the Snapdragon laptops' digital microphones, `16` lets UPower see a Snapdragon laptop's charger being plugged in and out, `17` adds the Surface Pro 11 patches, `19` lets the Snapdragon X1 laptops sleep with DDR in self-refresh and the SoC's CX rail collapsed, `20` turns on the Lenovo Yoga Slim 7x's webcam, `21` stops the camera bus controller from stalling when a camera starts again soon after it stopped, `22` stops the NVIDIA DGX Spark resetting when idle, and `23` keeps the Snapdragon laptops' Wi-Fi from stalling after the access point changes its channel or bandwidth and fixes an out-of-bounds read and a deadlock in the Iris video decoder. `7.3-1` moves to 7.3, ahead of `linux-omarchy`, `7.3-7` adds the ASUS Zenbook A16, `7.3-8` lets its Copilot key send F23, `7.3-9` gives the ASUS ProArt P14 its keyboard back on BIOS 303, and `7.3-10` adds the Acer Swift 14 AI and Swift Go 14, the Dell Latitude 5455 and the HP EliteBook 6 G1q. `7.3-12` adds `linux-omarchy-nvidia-open`, and `7.3-13` adds nine more laptops' trees from linux-next and linux-arm-msm and gives the Surface Pro 12in hardware IDs under the compatible its tree uses. `7.3-14` adds the HP OmniBook Ultra 14 and the ASUS Zenbook A14 X2 and the shared PCIe3 PHY their NVMe sits behind. `7.3-15` adds the HP OmniBook 5 14 and the ASUS Vivobook S16 (S3607QA), and `7.3-16` moves the Surface Laptop 8 to the board name of Qualcomm's posted tree and gives it hardware IDs. `7.3-17` loads its DSP firmware from the folder that tree names. `7.3-18` gives the ThinkPad T14s Gen 7 its Elan touchpad and adds the Lenovo IdeaPad 5x 2-in-1, the Lenovo IdeaPad Slim 3x and the ASUS Vivobook 16 (X1607QA). `7.3-19` adds the HP OmniBook 5 16 (2026), and `7.3-20` gives the Dell Inspiron 14 5441 hardware IDs. `7.3-21` gives the Anduril BlueChip hardware IDs under the Glymur CRD's tree, `7.3-22` gives it its own tree, and `7.3-23` names FAT files in UTF-8 and mounts FAT in the initramfs. `7.3-24` keeps kernel crash logs out of UEFI variables, lets RCU batch its callbacks while idle and compresses the modules. `7.3-25` gives monitors on the ASUS Zenbook A14, the HP OmniBook X 14 and the Surface Laptop 7 sound. `7.3-26` adds the ASUS ProArt PZ13. `7.3-27` links only the Anduril BlueChip's left speakers, so its sound card plays. `7.3-28` adds the HP OmniBook 3 14 and 16 and gives the Samsung Galaxy Book4 Edge 16 hardware IDs. `7.3-29` adds the ASUS Zenbook 14 UX3480QA and restores the ASUS 0B05:4B42 keyboard's backlight and Fn-lock after sleep. `7.3-30` adds the Microsoft Surface Laptop 8 15-inch. `7.3-31` keeps an open geni UART clocked across system sleep (`2217`). `7.3-38` gives the ASUS Zenbook 14 UX3480QAB hardware IDs under the UX3480QA's tree and turns that tree's CoreSight debug blocks off, without which the UX3480QAB resets once qcom_aoss loads. `7.3-39` lets the Snapdragon X1 laptops' lid switch report both edges, so closing the lid suspends them, honours the time zone stored with the Qualcomm UEFI RTC offset, and delivers the audio DSP's replies sent while q6apm probes, so the sound card no longer binds 5 s late. `7.3-40` adds the ASUS Vivobook 14 (X1407QA) and takes the hardware ID every ASUS laptop with an empty SKU shares out of the Vivobook 16's file. `7.3-41` skips the ProArt P16's PSYS and PSOC thermal zones, as on the XPS 16. `7.3-42` gives the European Samsung Galaxy Book4 Edge 14, the NP940XMA, hardware IDs under the 14-inch tree, since none of the NP944XMA's match it. `7.3-43` adds the Dell Inspiron 14 5441 with the X1P-42-100 and the Lenovo ThinkCentre neo 50q QC, and gives the Surface Pro 11 with the LCD hardware IDs for its own tree. `7.3-44` adds the ASUS ProArt PZ14. `7.3-46` brings back `soc_button_array`. `7.3-47` moves the Snapdragon laptops' device trees and hardware IDs to `linux-omarchy-dtbs`, which this package depends on. `7.3-48` gives the LCD Surface Pro 11's other cores cpufreq (`2157`), its panel's timings (`2160`) and its speakers' settings (`2441`), and stops the Surface Pro 11 reporting a second battery (`2765`). Its tree's backlight and CPU fixes are in `linux-omarchy-dtbs`. `7.3-49` keeps wsa884x's PA fault recovery to the Surface Pro 11 and stops it resetting an amplifier that faults again at once (`2442`). `7.3-50` adds the HP OmniBook X 14's audio topology to the MT8901 machine driver (`1061`). `7.3-51` lets a USB-C repeater that fails channel equalisation with TPS4 retry with TPS3 (`2444`). `7.3-52` writes the DVFSRC flag only on the N1x laptops, so no GB10 desktop gets it (`1115`). `7.3-53` brings DisplayPort back through USB4 docks such as the Lenovo 40B0 on the X1 machines with the PS883x retimer (`2445` to `2447`). `7.3-55` updates the Glymur USB3 PHY settings to Qualcomm's latest hardware reference (`2840`). `7.3-56` gives the Surface Laptop 8 a real-time clock (`2766` to `2769`). `7.3-57` reads the Surface Laptop 8's battery and charger from SAM, as Windows does (`2773`, `2774`). `7.3-58` makes the Surface Laptop 8's microphone key mute the microphone (`2775`). `7.3-59` sets a DisplayPort controller's clock parents only once its PHY is on, so a USB-C display output the firmware left off at boot, such as the Lenovo IdeaCentre Mini's, comes up (`2448`, `2449`). `7.3-60` runs USB4 on the Surface Laptop 8's second USB-C port, with a display through a dock (`2850` to `2856`). `7.3-61` plays the Dell XPS 13 9345's four speakers in the right order (`2450`, `2451`). `7.3-62` gives the Snapdragon X2 Surfaces without a tree in Linux their SAM battery, charger, clock, fan and type cover (`2776` to `2778`), and gives Kalambo, the X2P-42-100, its display compression settings, DSP domains and UEFI variables (`2860`, `2861`). `7.3-69` gives the ASUS Vivobook S 16 S3607QA's keyboard its Fn keys and backlight (`1116`). `7.3-71` keeps the Surface Pro 11's speaker supply configuration when the amplifiers attach again, so they keep their 2S and 4 ohm settings after the first stream instead of falling back to defaults, which could leave them silent (`2443`). `7.3-73` adds UFS on the Snapdragon X2 Elite (Glymur), which the Samsung Galaxy Book6 Edge boots from (`2920` to `2922`). `7.3-74` gives the Samsung Galaxy Book4 Edge 14 and 16 their battery, charger, USB-C ports, keyboard backlight and fan through Antheas Kapenekakis's EC and S2MM006 drivers, and the 14 its USB-C retimers, front camera and fingerprint reader, and the 14 the speaker cap of its WSA883x amplifiers (`2960` to `2972`). +The `pkgrel` counts N1x revisions of this package and starts again at 1 when the kernel version changes. On 7.2.5 it was `6.1` to `6.9` while it tracked `linux-omarchy`'s release; the ninth revision became `9`, `10` added the Dell XPS 16 patches, `11` brought a dock's displays back after a failed DisplayPort tunnel, `12` stopped the clock during suspend-to-idle, `13` brought NVIDIA's device sleep patches from 1022.23, `14` let keyboard and touchpad interrupts wake the system from the platform's deepest sleep, and `15` brought audio and UCSI fixes from upstream and turned kexec handover off by default. `7.2.8-1` moves to 7.2.8 and `linux-omarchy` 7.2.8-5's patch set, `2` closes a SoundWire interrupt race that could hang the boot, `3` stops `cppc_cpufreq` registering its artificial energy model, so EAS no longer packs the desktop onto the A725 cores, `4` ships the Snapdragon laptops' device trees and resets the Iris AHB bridge before hardware mode, `5` builds SCMI CPU frequency scaling in, which the Snapdragon laptops need, `6` lets suspend-to-idle reach the platform's deepest idle state, which brings sleep from 6-15 W to under 1 W, `7` stops reclaiming the GPU's reserved memory, which the firmware now sizes itself, `8` takes the name `linux-omarchy`, `9` registers `cppc_cpufreq`'s artificial energy model again, so that power-profiles-daemon's RTX Spark driver can turn EAS on and off with the governor, as NVIDIA designed it, `10` keeps a dock's tunnels through suspend-to-idle, so its USB devices and displays come back on resume, `11` spaces out a dock's DisplayPort teardowns, so the GPU sees both monitors leave when a two-monitor dock is unplugged, `13` keeps USB and the SSPM-dependent ACPI drivers working on a DGX Spark whose firmware hides the SSPM mailbox, `14` lets Bolt authorize new docks on its own, as it does on Intel and AMD laptops, `15` brings back the Snapdragon laptops' digital microphones, `16` lets UPower see a Snapdragon laptop's charger being plugged in and out, `17` adds the Surface Pro 11 patches, `19` lets the Snapdragon X1 laptops sleep with DDR in self-refresh and the SoC's CX rail collapsed, `20` turns on the Lenovo Yoga Slim 7x's webcam, `21` stops the camera bus controller from stalling when a camera starts again soon after it stopped, `22` stops the NVIDIA DGX Spark resetting when idle, and `23` keeps the Snapdragon laptops' Wi-Fi from stalling after the access point changes its channel or bandwidth and fixes an out-of-bounds read and a deadlock in the Iris video decoder. `7.3-1` moves to 7.3, ahead of `linux-omarchy`, `7.3-7` adds the ASUS Zenbook A16, `7.3-8` lets its Copilot key send F23, `7.3-9` gives the ASUS ProArt P14 its keyboard back on BIOS 303, and `7.3-10` adds the Acer Swift 14 AI and Swift Go 14, the Dell Latitude 5455 and the HP EliteBook 6 G1q. `7.3-12` adds `linux-omarchy-nvidia-open`, and `7.3-13` adds nine more laptops' trees from linux-next and linux-arm-msm and gives the Surface Pro 12in hardware IDs under the compatible its tree uses. `7.3-14` adds the HP OmniBook Ultra 14 and the ASUS Zenbook A14 X2 and the shared PCIe3 PHY their NVMe sits behind. `7.3-15` adds the HP OmniBook 5 14 and the ASUS Vivobook S16 (S3607QA), and `7.3-16` moves the Surface Laptop 8 to the board name of Qualcomm's posted tree and gives it hardware IDs. `7.3-17` loads its DSP firmware from the folder that tree names. `7.3-18` gives the ThinkPad T14s Gen 7 its Elan touchpad and adds the Lenovo IdeaPad 5x 2-in-1, the Lenovo IdeaPad Slim 3x and the ASUS Vivobook 16 (X1607QA). `7.3-19` adds the HP OmniBook 5 16 (2026), and `7.3-20` gives the Dell Inspiron 14 5441 hardware IDs. `7.3-21` gives the Anduril BlueChip hardware IDs under the Glymur CRD's tree, `7.3-22` gives it its own tree, and `7.3-23` names FAT files in UTF-8 and mounts FAT in the initramfs. `7.3-24` keeps kernel crash logs out of UEFI variables, lets RCU batch its callbacks while idle and compresses the modules. `7.3-25` gives monitors on the ASUS Zenbook A14, the HP OmniBook X 14 and the Surface Laptop 7 sound. `7.3-26` adds the ASUS ProArt PZ13. `7.3-27` links only the Anduril BlueChip's left speakers, so its sound card plays. `7.3-28` adds the HP OmniBook 3 14 and 16 and gives the Samsung Galaxy Book4 Edge 16 hardware IDs. `7.3-29` adds the ASUS Zenbook 14 UX3480QA and restores the ASUS 0B05:4B42 keyboard's backlight and Fn-lock after sleep. `7.3-30` adds the Microsoft Surface Laptop 8 15-inch. `7.3-31` keeps an open geni UART clocked across system sleep (`2217`). `7.3-38` gives the ASUS Zenbook 14 UX3480QAB hardware IDs under the UX3480QA's tree and turns that tree's CoreSight debug blocks off, without which the UX3480QAB resets once qcom_aoss loads. `7.3-39` lets the Snapdragon X1 laptops' lid switch report both edges, so closing the lid suspends them, honours the time zone stored with the Qualcomm UEFI RTC offset, and delivers the audio DSP's replies sent while q6apm probes, so the sound card no longer binds 5 s late. `7.3-40` adds the ASUS Vivobook 14 (X1407QA) and takes the hardware ID every ASUS laptop with an empty SKU shares out of the Vivobook 16's file. `7.3-41` skips the ProArt P16's PSYS and PSOC thermal zones, as on the XPS 16. `7.3-42` gives the European Samsung Galaxy Book4 Edge 14, the NP940XMA, hardware IDs under the 14-inch tree, since none of the NP944XMA's match it. `7.3-43` adds the Dell Inspiron 14 5441 with the X1P-42-100 and the Lenovo ThinkCentre neo 50q QC, and gives the Surface Pro 11 with the LCD hardware IDs for its own tree. `7.3-44` adds the ASUS ProArt PZ14. `7.3-46` brings back `soc_button_array`. `7.3-47` moves the Snapdragon laptops' device trees and hardware IDs to `linux-omarchy-dtbs`, which this package depends on. `7.3-48` gives the LCD Surface Pro 11's other cores cpufreq (`2157`), its panel's timings (`2160`) and its speakers' settings (`2441`), and stops the Surface Pro 11 reporting a second battery (`2765`). Its tree's backlight and CPU fixes are in `linux-omarchy-dtbs`. `7.3-49` keeps wsa884x's PA fault recovery to the Surface Pro 11 and stops it resetting an amplifier that faults again at once (`2442`). `7.3-50` adds the HP OmniBook X 14's audio topology to the MT8901 machine driver (`1061`). `7.3-51` lets a USB-C repeater that fails channel equalisation with TPS4 retry with TPS3 (`2444`). `7.3-52` writes the DVFSRC flag only on the N1x laptops, so no GB10 desktop gets it (`1115`). `7.3-53` brings DisplayPort back through USB4 docks such as the Lenovo 40B0 on the X1 machines with the PS883x retimer (`2445` to `2447`). `7.3-55` updates the Glymur USB3 PHY settings to Qualcomm's latest hardware reference (`2840`). `7.3-56` gives the Surface Laptop 8 a real-time clock (`2766` to `2769`). `7.3-57` reads the Surface Laptop 8's battery and charger from SAM, as Windows does (`2773`, `2774`). `7.3-58` makes the Surface Laptop 8's microphone key mute the microphone (`2775`). `7.3-59` sets a DisplayPort controller's clock parents only once its PHY is on, so a USB-C display output the firmware left off at boot, such as the Lenovo IdeaCentre Mini's, comes up (`2448`, `2449`). `7.3-60` runs USB4 on the Surface Laptop 8's second USB-C port, with a display through a dock (`2850` to `2856`). `7.3-61` plays the Dell XPS 13 9345's four speakers in the right order (`2450`, `2451`). `7.3-62` gives the Snapdragon X2 Surfaces without a tree in Linux their SAM battery, charger, clock, fan and type cover (`2776` to `2778`), and gives Kalambo, the X2P-42-100, its display compression settings, DSP domains and UEFI variables (`2860`, `2861`). `7.3-69` gives the ASUS Vivobook S 16 S3607QA's keyboard its Fn keys and backlight (`1116`). `7.3-71` keeps the Surface Pro 11's speaker supply configuration when the amplifiers attach again, so they keep their 2S and 4 ohm settings after the first stream instead of falling back to defaults, which could leave them silent (`2443`). `7.3-73` adds UFS on the Snapdragon X2 Elite (Glymur), which the Samsung Galaxy Book6 Edge boots from (`2920` to `2922`). `7.3-74` gives the Samsung Galaxy Book4 Edge 14 and 16 their battery, charger, USB-C ports, keyboard backlight and fan through Antheas Kapenekakis's EC and S2MM006 drivers, and the 14 its USB-C retimers, front camera and fingerprint reader, and the 14 the speaker cap of its WSA883x amplifiers (`2960` to `2972`). `7.3-75` builds hibernation, which the configuration had off, and carries the fixes a Snapdragon X1 laptop needs to come back from it (`2280` to `2287`). [`UPGRADING-7.3.md`](UPGRADING-7.3.md) has notes for the move to 7.3: what each N1x patch needs there, what upstream already has, and how to verify the result. @@ -155,6 +155,8 @@ The package build fails unless every tree it installs rebuilds from the shipped `2217` keeps an open geni UART clocked across system sleep and releases only its baud-rate OPP vote and interconnect vote, instead of the force suspend 7.3 added (d0cd9c8d0fd5). On the Surface Pro 11 the Surface Aggregator EC sits on such a UART, and with the force suspend a suspend that closely follows a resume could leave the EC link dead: every SAM request timed out and the machine hung in resume. Dropping the force suspend alone avoids that but keeps CX from collapsing, because the OPP vote stays in the sleep set. Why keeping the engine clocked avoids the hang is not established. The change is in the generic driver, so it changes the sleep path of every open geni UART, Bluetooth on the X1 laptops included; closed, runtime-suspended ports are left alone, as before. Runtime PM stays off across the transition, as it did with the force suspend, so a wake interrupt can't bring a closed port back up partway through suspend and leave it holding its votes for the whole sleep. +`2280` to `2287` are for hibernation on the Snapdragon X1 laptops, which this kernel builds since 7.3-75 (`CONFIG_HIBERNATION`, as `linux-omarchy` has it on x86_64). A hibernation image is restored after a power cycle, by a kernel that set up only the hardware it used itself. `2280` writes the pin configuration to the TLMM again, without which the Wi-Fi and Bluetooth enable lines stay as the loading kernel left them. `2281` to `2283` are Krishna Chaitanya Chundru's and Manivannan Sadhasivam's "PCI: qcom: Implement shutdown()" v6, and `2284` builds on it to power a PCIe controller down when hibernating. Without `2284` a Lenovo Yoga Slim 7x resets on every resume, since the image records a controller as running that the loading kernel never brought up. `2285` makes smp2p start over after a restore, so a remote processor started afterwards comes up. `2286` resets hci_qca's in-band sleep state on power off, and `2287` sets a geni serial engine up again after a restore, without which the WCN7850's Bluetooth never answers. `2280`, `2284`, `2285`, `2286` and `2287` are Birk Skyum's and were posted to the kernel lists in October 2026. With all eight on 7.3-3 a Yoga Slim 7x restored its session after a power-off twice, in 112 s and 89 s. Two faults were left then. Battery readings time out after a restore while the audio DSP runs, and stopping the DSP first resets the laptop on 7.3. `2217` has changed the serial driver's sleep callbacks since, and `2287` applies on top of it. Omarchy does not set hibernation up on an ARM computer by itself, so nothing changes for an install until its owner asks for it. + `2780` to `2786` are Dmitry Baryshkov's "firmware: qcom: enable UEFI variables on Lenovo Yoga C630", v4 patches 1 to 7 ([posted on 25 June 2025](https://lore.kernel.org/all/20250625-more-qseecom-v4-0-aacca9306cee@oss.qualcomm.com/) and not applied yet), and `2787` is our own. Linux reads and writes the UEFI variables through QSEECOM: `efibootmgr`'s boot entries and the RTC offset the firmware keeps there. Upstream uses QSEECOM only on the machines in `qcom_scm`'s allowlist, so every laptop added here needed a driver patch, and with it a kernel rebuild. The series lets the allowlist name SoC families and give a machine quirks (read-only variables, or no QSEECOM at all), and adds `qcom_scm.qseecom=` (`auto`, `force`, `roefivars` or `off`) to override it at boot. `2786` lists the SC8180X, SC8280XP, X1E80100 and X1P42100 families instead of their machines, and `2787` adds the X2's Glymur and Mahua, so a new Snapdragon X laptop gets its UEFI variables through its device tree alone. They are rebased onto 7.3, which checks the allowlist with `of_machine_device_match()`, and each notes what changed. They come last in the list because they replace the allowlist that the machine patches before them extend, which stay as they are. Against the machine list, every machine that had QSEECOM keeps it. The HP OmniBook X 16 (Mahua) and the X1P model of the OmniBook X14 get it for the first time, and the SC8280XP CRD and the Yoga C630 get it with read-only variables. Patch 8 of the series, a Yoga C630 device tree change, stays out. diff --git a/pkgbuilds/linux-omarchy-aarch64/config.aarch64 b/pkgbuilds/linux-omarchy-aarch64/config.aarch64 index ca994a0e2b..b0a869def4 100644 --- a/pkgbuilds/linux-omarchy-aarch64/config.aarch64 +++ b/pkgbuilds/linux-omarchy-aarch64/config.aarch64 @@ -668,7 +668,13 @@ CONFIG_DMI=y CONFIG_SUSPEND=y CONFIG_SUSPEND_FREEZER=y # CONFIG_SUSPEND_SKIP_SYNC is not set -# CONFIG_HIBERNATION is not set +CONFIG_HIBERNATE_CALLBACKS=y +CONFIG_HIBERNATION=y +CONFIG_HIBERNATION_SNAPSHOT_DEV=y +CONFIG_HIBERNATION_COMP_LZO=y +# CONFIG_HIBERNATION_COMP_LZ4 is not set +CONFIG_HIBERNATION_DEF_COMP="lzo" +CONFIG_PM_STD_PARTITION="" CONFIG_PM_SLEEP=y CONFIG_PM_SLEEP_SMP=y # CONFIG_PM_AUTOSLEEP is not set @@ -691,6 +697,7 @@ CONFIG_PM_GENERIC_DOMAINS_OF=y CONFIG_CPU_PM=y CONFIG_ENERGY_MODEL=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y +CONFIG_ARCH_HIBERNATION_HEADER=y CONFIG_ARCH_SUSPEND_POSSIBLE=y # end of Power management options @@ -15171,7 +15178,7 @@ CONFIG_CRYPTO_CRC32=m CONFIG_CRYPTO_DEFLATE=y CONFIG_CRYPTO_LZO=y CONFIG_CRYPTO_842=m -CONFIG_CRYPTO_LZ4=m +CONFIG_CRYPTO_LZ4=y CONFIG_CRYPTO_LZ4HC=m CONFIG_CRYPTO_ZSTD=m # end of Compression @@ -15423,7 +15430,7 @@ CONFIG_ZLIB_INFLATE=y CONFIG_ZLIB_DEFLATE=y CONFIG_LZO_COMPRESS=y CONFIG_LZO_DECOMPRESS=y -CONFIG_LZ4_COMPRESS=m +CONFIG_LZ4_COMPRESS=y CONFIG_LZ4HC_COMPRESS=m CONFIG_LZ4_DECOMPRESS=y CONFIG_ZSTD_COMMON=y From 6e7bfc9f3f1ed67b70b13b2af412821635c6159f Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Sat, 21 Nov 2026 03:54:15 +0100 Subject: [PATCH 2/3] linux-omarchy-aarch64: start pcie as NULL in the carried PCIe shutdown callback qcom_pcie_shutdown() left pcie unset on the firmware-managed branch and tested it afterwards. The build zeroes stack variables, so it read NULL there, but only by that setting. --- .../2283-PCI-qcom-Implement-shutdown-callback.patch | 5 ++++- pkgbuilds/linux-omarchy-aarch64/PKGBUILD | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch b/pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch index 803307e7f6..8fc9c433a3 100644 --- a/pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch +++ b/pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch @@ -17,6 +17,9 @@ Mask the chained MSI IRQ(s) and the Global IRQ before tearing down the link and clocks/PHY, since a late/spurious interrupt could otherwise reach a handler that touches now-unclocked PARF/DBI registers. +[birk: start pcie as NULL. The firmware-managed branch leaves it unset and + the test below then read it uninitialised] + Signed-off-by: Manivannan Sadhasivam Signed-off-by: Krishna Chaitanya Chundru --- @@ -44,7 +47,7 @@ index 448af3029..5544f2a05 100644 +static void qcom_pcie_shutdown(struct platform_device *pdev) +{ + const struct qcom_pcie_cfg *pcie_cfg = of_device_get_match_data(&pdev->dev); -+ struct qcom_pcie *pcie; ++ struct qcom_pcie *pcie = NULL; + struct dw_pcie *pci; + + if (pcie_cfg && pcie_cfg->firmware_managed) { diff --git a/pkgbuilds/linux-omarchy-aarch64/PKGBUILD b/pkgbuilds/linux-omarchy-aarch64/PKGBUILD index 5a4cef077a..dd3d0100ef 100644 --- a/pkgbuilds/linux-omarchy-aarch64/PKGBUILD +++ b/pkgbuilds/linux-omarchy-aarch64/PKGBUILD @@ -985,7 +985,7 @@ sha256sums=('87363c24f10e06321eb362765521094e94471f6bff8bce2d6b3e40f39f004953' 'bf7c0c72e228b84858323cdacee5e3259e4453b1cb16073025fca79d0599bf5c' 'f3c8eb103f1750726512bdf660826b34bec8276cd3643a73aa6ddce42b8013cc' '58f77483401b116f69462bef1527adbcc6ac3e1be99e60b8c46466af27e7748a' - 'd8522d392573c5d104c6499cbc083c1325667840a13a082a4b91de612ffda95f' + '1cf58df87964f7685130ba3684b3408be2d31e0cfe6ad7c091aa48e08b9b0b88' '81dcafddc5b784665086823494efed3ef0c73623ba445ba450f0935d8237ef4f' '48b3d882f39502aa03cec2aa37af6789520d8b0c06917baf33c817f628283d03' '47c80cebe3b2a2bf1b05f06cc544d4c39a63fe4d481021b3a23bc0e7bb392535' @@ -1659,7 +1659,7 @@ b2sums=('b7fb8c74de664fdd0cd7b42afff2720bda5c4bdb2ffffa80a745c5fecd029c6fe739a3e '2336931a04df95fd05720ff2e463262b4bbd06eea6ba3fecef90e43e40e21b3164fb76527de3d9e04093e0176ac613d2b94bcf726e5df64ce516734ac016d148' '050ff9080d31ce11222f2c197d2742e93a111e586445986cf07f20ffa6145be4173f4d53faa71135fb9aa400564b2a15457d181eafe3303407f0b1c2ca91a7e4' '8d72185740035393d9f3b0598e6496b32f5e83d98541bdaf7d02c01bb0e32f120e22b10a4db0cafec9872b8d2bcf341e400ba978c8e5ffc5c22cc570b72da329' - 'd7499496befe9f7b81b6c2d082b126129d710ec0ea2e9d94bd6aa0aedadba8ecc01b23c104d87327255ea6c37c6b097edcbb7e2b7153b189910974cf7e0c34a4' + '45a69331967fc235ce3cc044f2658d86fd6a5a3085416bbf80779aa10eea5d0a342634d3d58fe1ce3703732a9101b2e6a5f0a5ff83cb5b9718829b322c5b39b3' '558f1c502c52cac2d6cc5f85f1eefe8077cdf72b19a79e6782c4c56f5b706cf7851bbded1d7b3f32dd30509555eac57e0c608868dcc6fb0535d25781ce8ca7e0' '8b6814864aaa3dc5b88d2acb8705cae19e9b0a382e630e8f94393da0b009b7088f8830d435998532a5f0af0763912069a3f230f6264b294eddb9969a4caea8f5' '898a46bd1708cd4eb531b01a3d862ab1d8d06563f5b6b683d76d7e72c5b513150eb9f7d293da337d8caab9f4f2af4307fb40e93ae0b1dd3bfeeb36f6ab7e733f' From b56ad6976b252cf5e7078dd6e2d44c396639869e Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Sat, 21 Nov 2026 04:31:51 +0100 Subject: [PATCH 3/3] linux-omarchy-aarch64: build hibernation without the carried fixes On the current base the eight fixes do not get a Yoga Slim 7x through a power-off cycle, and the October kernel no longer completes one on that laptop either. They come back once a laptop resumes with them. 7.3-75 is now the configuration change alone. --- ...tore-the-pin-configuration-after-hib.patch | 255 ------------------ ...Fix-early-bus-walk-exit-in-d3cold_po.patch | 67 ----- ...-link-entry-on-shutdown-reboot-witho.patch | 180 ------------- ...PCI-qcom-Implement-shutdown-callback.patch | 90 ------- ...the-controller-down-when-hibernating.patch | 106 -------- ...tart-over-after-a-restore-from-hiber.patch | 127 --------- ...a-Reset-the-in-band-sleep-state-on-p.patch | 96 ------- ...-Set-the-serial-engine-up-again-afte.patch | 75 ------ pkgbuilds/linux-omarchy-aarch64/PKGBUILD | 24 -- pkgbuilds/linux-omarchy-aarch64/README.md | 4 +- 10 files changed, 1 insertion(+), 1023 deletions(-) delete mode 100644 pkgbuilds/linux-omarchy-aarch64/2280-pinctrl-qcom-Restore-the-pin-configuration-after-hib.patch delete mode 100644 pkgbuilds/linux-omarchy-aarch64/2281-PCI-host-common-Fix-early-bus-walk-exit-in-d3cold_po.patch delete mode 100644 pkgbuilds/linux-omarchy-aarch64/2282-PCI-dwc-Force-L2-link-entry-on-shutdown-reboot-witho.patch delete mode 100644 pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch delete mode 100644 pkgbuilds/linux-omarchy-aarch64/2284-PCI-qcom-Power-the-controller-down-when-hibernating.patch delete mode 100644 pkgbuilds/linux-omarchy-aarch64/2285-soc-qcom-smp2p-Start-over-after-a-restore-from-hiber.patch delete mode 100644 pkgbuilds/linux-omarchy-aarch64/2286-Bluetooth-hci_qca-Reset-the-in-band-sleep-state-on-p.patch delete mode 100644 pkgbuilds/linux-omarchy-aarch64/2287-serial-qcom-geni-Set-the-serial-engine-up-again-afte.patch diff --git a/pkgbuilds/linux-omarchy-aarch64/2280-pinctrl-qcom-Restore-the-pin-configuration-after-hib.patch b/pkgbuilds/linux-omarchy-aarch64/2280-pinctrl-qcom-Restore-the-pin-configuration-after-hib.patch deleted file mode 100644 index 9aaaab0ed3..0000000000 --- a/pkgbuilds/linux-omarchy-aarch64/2280-pinctrl-qcom-Restore-the-pin-configuration-after-hib.patch +++ /dev/null @@ -1,255 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Birk Skyum -Date: Sat, 10 Oct 2026 13:03:31 +0200 -Subject: [PATCH] pinctrl: qcom: Restore the pin configuration after - hibernation - -A hibernation image is restored after a power cycle. The TLMM registers -then hold what the boot firmware and the kernel that loaded the image -made of them. The restored kernel has the configuration it applied in -memory only, and nothing writes it to the hardware again, so every pin -that the loading kernel did not set up the same way stays wrong. - -On a Lenovo Yoga Slim 7x (X1E80100) the Bluetooth and Wi-Fi enable lines -are two of them. Their drivers are loaded from the root file system, so -the kernel that loads the image never touches the pins. This is -/sys/kernel/debug/gpio before the hibernation and after the resume: - - gpio116 : out low func0 2mA no pull - gpio117 : out high func0 2mA no pull - - gpio116 : in low func0 2mA pull down - gpio117 : out high func0 16mA no pull - -The driver that owns gpio116 still believes it drives the line. - -Save the control, output and interrupt configuration registers in -freeze_noirq and write them back in restore_noirq, the output level -first, so that a pin drives the right level from the moment it becomes -an output. Changing the interrupt configuration can latch an interrupt, -so the configuration is written with the interrupt disabled, the status -is cleared where the register changed, as msm_gpio_irq_set_type() does -with the interrupt masked, and only then is the interrupt enabled again. - -Only the GPIOs the kernel uses are put back: those requested as a GPIO, -muxed to a function or used as an interrupt, as pinctrl-intel does. A -valid GPIO without an owner may be in use by firmware. The SDC pads -after the GPIOs are configured without a mux function, so they never -have an owner, and their control register is always put back. - -msm_pinctrl_dev_pm_ops gets the two callbacks and x1e80100 starts using -these ops. With that x1e80100 also gets their suspend and resume -callbacks, which apply the sleep and default state of the controller's -own pins where a board defines them. - -Signed-off-by: Birk Skyum ---- - drivers/pinctrl/qcom/pinctrl-msm.c | 150 +++++++++++++++++++++++- - drivers/pinctrl/qcom/pinctrl-x1e80100.c | 1 + - 2 files changed, 149 insertions(+), 2 deletions(-) - -diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c -index 27f06bbc1..32aa7b919 100644 ---- a/drivers/pinctrl/qcom/pinctrl-msm.c -+++ b/drivers/pinctrl/qcom/pinctrl-msm.c -@@ -39,6 +39,15 @@ - #define MAX_NR_TILES 4 - #define PS_HOLD_OFFSET 0x820 - -+/* Register values of one pin group, kept across a hibernation. */ -+struct msm_pin_state { -+ u32 ctl; -+ u32 io; -+ u32 intr_cfg; -+ u32 intr_target; -+ bool saved; -+}; -+ - /** - * struct msm_pinctrl - state for a pinctrl-msm device - * @dev: device handle. -@@ -58,6 +67,7 @@ - * @soc: Reference to soc_data of platform specific data. - * @regs: Base addresses for the TLMM tiles. - * @phys_base: Physical base address -+ * @saved: Pin registers kept while a hibernation image is taken. - */ - struct msm_pinctrl { - struct device *dev; -@@ -80,6 +90,8 @@ struct msm_pinctrl { - const struct msm_pinctrl_soc_data *soc; - void __iomem *regs[MAX_NR_TILES]; - u32 phys_base[MAX_NR_TILES]; -+ -+ struct msm_pin_state *saved; - }; - - #define MSM_ACCESSOR(name) \ -@@ -1583,9 +1595,136 @@ static __maybe_unused int msm_pinctrl_resume(struct device *dev) - return pinctrl_force_default(pctrl->pctrl); - } - --SIMPLE_DEV_PM_OPS(msm_pinctrl_dev_pm_ops, msm_pinctrl_suspend, -- msm_pinctrl_resume); -+static bool msm_pin_has_own_intr_target(struct msm_pinctrl *pctrl, -+ const struct msm_pingroup *g) -+{ -+ return !pctrl->intr_target_use_scm && g->intr_target_reg && -+ g->intr_target_reg != g->intr_cfg_reg; -+} -+ -+/* -+ * A GPIO is only put back when the kernel uses it, as a GPIO, through a mux -+ * function or as an interrupt. Other valid pins may be in use by firmware. -+ * The pads after the GPIOs (SDC) have no GPIO and are configured without a -+ * mux function, so they never have an owner and are always put back. -+ */ -+static bool msm_pin_in_use(struct msm_pinctrl *pctrl, unsigned int i) -+{ -+ const struct pin_desc *desc; -+ -+ if (i >= pctrl->chip.ngpio) -+ return true; -+ -+ if (!gpiochip_line_is_valid(&pctrl->chip, i)) -+ return false; -+ -+ desc = pin_desc_get(pctrl->pctrl, i); -+ -+ return desc && (desc->mux_owner || desc->gpio_owner || -+ gpiochip_line_is_irq(&pctrl->chip, i)); -+} -+ -+/* Remember how the pins are set up when a hibernation image is taken. */ -+static int msm_pinctrl_freeze_noirq(struct device *dev) -+{ -+ struct msm_pinctrl *pctrl = dev_get_drvdata(dev); -+ const struct msm_pingroup *g; -+ struct msm_pin_state *s; -+ unsigned int i; -+ -+ guard(raw_spinlock_irqsave)(&pctrl->lock); -+ -+ for (i = 0; i < pctrl->soc->ngroups; i++) { -+ g = &pctrl->soc->groups[i]; -+ s = &pctrl->saved[i]; -+ s->saved = msm_pin_in_use(pctrl, i); -+ if (!s->saved) -+ continue; -+ -+ s->ctl = msm_readl_ctl(pctrl, g); -+ if (i >= pctrl->chip.ngpio) -+ continue; -+ -+ s->io = msm_readl_io(pctrl, g); -+ if (!g->intr_cfg_reg) -+ continue; -+ -+ s->intr_cfg = msm_readl_intr_cfg(pctrl, g); -+ if (msm_pin_has_own_intr_target(pctrl, g)) -+ s->intr_target = msm_readl_intr_target(pctrl, g); -+ } - -+ return 0; -+} -+ -+/* -+ * The image is restored after a power cycle, when the pins are back at what -+ * the firmware and the kernel that loaded the image made of them. Nothing else -+ * writes the configuration again, so put back what was there. -+ * -+ * A both-edge interrupt that is emulated by flipping the polarity gets the -+ * polarity it had, which is not primed for a line that changed meanwhile. No -+ * SoC with such pins (one-bit detection) uses these callbacks. -+ */ -+static int msm_pinctrl_restore_noirq(struct device *dev) -+{ -+ struct msm_pinctrl *pctrl = dev_get_drvdata(dev); -+ const struct msm_pingroup *g; -+ struct msm_pin_state *s; -+ unsigned int i; -+ u32 val; -+ -+ guard(raw_spinlock_irqsave)(&pctrl->lock); -+ -+ for (i = 0; i < pctrl->soc->ngroups; i++) { -+ g = &pctrl->soc->groups[i]; -+ s = &pctrl->saved[i]; -+ if (!s->saved) -+ continue; -+ -+ if (i >= pctrl->chip.ngpio) { -+ msm_writel_ctl(s->ctl, pctrl, g); -+ continue; -+ } -+ -+ /* Set the level before the pin starts driving it. */ -+ val = msm_readl_io(pctrl, g); -+ val &= ~BIT(g->out_bit); -+ val |= s->io & BIT(g->out_bit); -+ msm_writel_io(val, pctrl, g); -+ -+ msm_writel_ctl(s->ctl, pctrl, g); -+ if (!g->intr_cfg_reg) -+ continue; -+ -+ if (msm_pin_has_own_intr_target(pctrl, g)) -+ msm_writel_intr_target(s->intr_target, pctrl, g); -+ -+ /* -+ * Changing the configuration can latch an interrupt, so write it -+ * with the interrupt disabled and clear the status before the -+ * interrupt is enabled again. One that is latched with the -+ * configuration unchanged is a real one. -+ */ -+ val = msm_readl_intr_cfg(pctrl, g); -+ msm_writel_intr_cfg(s->intr_cfg & ~BIT(g->intr_enable_bit), -+ pctrl, g); -+ if (val != s->intr_cfg) -+ msm_ack_intr_status(pctrl, g); -+ if (s->intr_cfg & BIT(g->intr_enable_bit)) -+ msm_writel_intr_cfg(s->intr_cfg, pctrl, g); -+ } -+ -+ return 0; -+} -+ -+const struct dev_pm_ops msm_pinctrl_dev_pm_ops = { -+ SYSTEM_SLEEP_PM_OPS(msm_pinctrl_suspend, msm_pinctrl_resume) -+ .freeze_noirq = PTR_IF(IS_ENABLED(CONFIG_HIBERNATE_CALLBACKS), -+ msm_pinctrl_freeze_noirq), -+ .restore_noirq = PTR_IF(IS_ENABLED(CONFIG_HIBERNATE_CALLBACKS), -+ msm_pinctrl_restore_noirq), -+}; - EXPORT_SYMBOL(msm_pinctrl_dev_pm_ops); - - int msm_pinctrl_probe(struct platform_device *pdev, -@@ -1663,6 +1802,13 @@ int msm_pinctrl_probe(struct platform_device *pdev, - if (ret) - return ret; - -+ if (IS_ENABLED(CONFIG_HIBERNATE_CALLBACKS)) { -+ pctrl->saved = devm_kcalloc(&pdev->dev, pctrl->soc->ngroups, -+ sizeof(*pctrl->saved), GFP_KERNEL); -+ if (!pctrl->saved) -+ return -ENOMEM; -+ } -+ - platform_set_drvdata(pdev, pctrl); - - dev_dbg(&pdev->dev, "Probed Qualcomm pinctrl driver\n"); -diff --git a/drivers/pinctrl/qcom/pinctrl-x1e80100.c b/drivers/pinctrl/qcom/pinctrl-x1e80100.c -index e4c0abcd9..bfe122fc7 100644 ---- a/drivers/pinctrl/qcom/pinctrl-x1e80100.c -+++ b/drivers/pinctrl/qcom/pinctrl-x1e80100.c -@@ -1855,6 +1855,7 @@ static struct platform_driver x1e80100_pinctrl_driver = { - .driver = { - .name = "x1e80100-tlmm", - .of_match_table = x1e80100_pinctrl_of_match, -+ .pm = &msm_pinctrl_dev_pm_ops, - }, - .probe = x1e80100_pinctrl_probe, - }; --- -2.56.0 - diff --git a/pkgbuilds/linux-omarchy-aarch64/2281-PCI-host-common-Fix-early-bus-walk-exit-in-d3cold_po.patch b/pkgbuilds/linux-omarchy-aarch64/2281-PCI-host-common-Fix-early-bus-walk-exit-in-d3cold_po.patch deleted file mode 100644 index 14ab7f30c9..0000000000 --- a/pkgbuilds/linux-omarchy-aarch64/2281-PCI-host-common-Fix-early-bus-walk-exit-in-d3cold_po.patch +++ /dev/null @@ -1,67 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Krishna Chaitanya Chundru -Date: Wed, 9 Sep 2026 17:54:28 +0530 -Subject: [PATCH] PCI: host-common: Fix early bus-walk exit in - d3cold_possible() - -__pci_host_common_d3cold_possible() returns -EOPNOTSUPP for the first -downstream device it finds outside PCI_D3hot, and pci_walk_bus() aborts -the walk as soon as its callback returns nonzero. Any device enumerated -after the disqualifying one -- including a wakeup-enabled, PME-from-D3cold -capable endpoint -- is then never visited, so pme_capable can come back -false even though such a device exists on the bus. - -Since pci_host_common_d3cold_possible() already returns false whenever -any device disqualifies D3cold, aborting the walk buys nothing for the -plain suspend path: the overall bool result is unaffected. But it -silently drops pme_capable detection for any device ordered after the -disqualifying one. - -This matters for the upcoming shutdown path in particular: unlike plain -suspend, shutdown forces the link into L2/D3cold regardless of whether -pci_host_common_d3cold_possible() itself allows it (see the following -"force_d3cold" changes), so at shutdown time it's common for an -endpoint to still be in D0 and disqualify D3cold while a later, -PME-capable device is never visited. dw_pcie_suspend_noirq() still -uses "pme_capable" to set pci->pp.skip_pwrctrl_off, so an inaccurate -result here can cause Vaux/wakeup support to be dropped for a device -that actually supports PME from D3cold. - -Signed-off-by: Krishna Chaitanya Chundru ---- - drivers/pci/controller/pci-host-common.c | 13 ++++--------- - 1 file changed, 4 insertions(+), 9 deletions(-) - -diff --git a/drivers/pci/controller/pci-host-common.c b/drivers/pci/controller/pci-host-common.c -index a23907a87..c2c852c64 100644 ---- a/drivers/pci/controller/pci-host-common.c -+++ b/drivers/pci/controller/pci-host-common.c -@@ -275,21 +275,16 @@ static int __pci_host_common_d3cold_possible(struct pci_dev *pdev, - return 0; - - if (pdev->current_state != PCI_D3hot) -- goto exit; -+ *flags &= ~PCI_HOST_D3COLD_ALLOWED; - - if (device_may_wakeup(&pdev->dev)) { -- if (!pci_pme_capable(pdev, PCI_D3cold)) -- goto exit; -- else -+ if (pci_pme_capable(pdev, PCI_D3cold)) - *flags |= PCI_HOST_PME_D3COLD_CAPABLE; -+ else -+ *flags &= ~PCI_HOST_D3COLD_ALLOWED; - } - - return 0; -- --exit: -- *flags &= ~PCI_HOST_D3COLD_ALLOWED; -- -- return -EOPNOTSUPP; - } - - /** --- -2.56.0 - diff --git a/pkgbuilds/linux-omarchy-aarch64/2282-PCI-dwc-Force-L2-link-entry-on-shutdown-reboot-witho.patch b/pkgbuilds/linux-omarchy-aarch64/2282-PCI-dwc-Force-L2-link-entry-on-shutdown-reboot-witho.patch deleted file mode 100644 index 5a2c892640..0000000000 --- a/pkgbuilds/linux-omarchy-aarch64/2282-PCI-dwc-Force-L2-link-entry-on-shutdown-reboot-witho.patch +++ /dev/null @@ -1,180 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Krishna Chaitanya Chundru -Date: Wed, 9 Sep 2026 17:54:29 +0530 -Subject: [PATCH] PCI: dwc: Force L2 link entry on shutdown/reboot without - D3cold check - -dw_pcie_suspend_noirq() normally calls pci_host_common_d3cold_possible() -to check whether every downstream endpoint can be put into D3cold before -bothering to move the link to L2. If no endpoint supports it, the -function returns early and leaves the link up. - -Querying D3cold support during shutdown is actively harmful, not just -slow: pci_host_common_d3cold_possible() requires every active endpoint -to already be in PCI_D3hot, and returns false otherwise. If any endpoint -is still in D0 -- which is common, since endpoint drivers aren't -guaranteed to have suspended by the time the host's shutdown path runs -the check fails and dw_pcie_suspend_noirq() returns early without ever -moving the link to L2, leaving it up right up to the point where the -system cuts power/clocks to the controller. - -Add a force parameter to dw_pcie_suspend_noirq() that callers set -explicitly to force this behavior, still call -pci_host_common_d3cold_possible() unconditionally, since it's also how -pme_capable gets set, but ignore its return value and force L2 entry -regardless when force is set. - -Signed-off-by: Krishna Chaitanya Chundru ---- - drivers/pci/controller/dwc/pci-imx6.c | 2 +- - drivers/pci/controller/dwc/pci-layerscape.c | 2 +- - drivers/pci/controller/dwc/pcie-designware-host.c | 7 ++++--- - drivers/pci/controller/dwc/pcie-designware.h | 4 ++-- - drivers/pci/controller/dwc/pcie-eswin.c | 2 +- - drivers/pci/controller/dwc/pcie-nxp-s32g.c | 2 +- - drivers/pci/controller/dwc/pcie-qcom.c | 2 +- - drivers/pci/controller/dwc/pcie-stm32.c | 2 +- - drivers/pci/controller/dwc/pcie-ultrarisc.c | 2 +- - 9 files changed, 13 insertions(+), 12 deletions(-) - -diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c -index f7a2eb257..7e8905c9e 100644 ---- a/drivers/pci/controller/dwc/pci-imx6.c -+++ b/drivers/pci/controller/dwc/pci-imx6.c -@@ -1738,7 +1738,7 @@ static int imx_pcie_suspend_noirq(struct device *dev) - imx_pcie_assert_perst(imx_pcie, true); - imx_pcie->drvdata->enable_ref_clk(imx_pcie, false); - } else { -- return dw_pcie_suspend_noirq(imx_pcie->pci); -+ return dw_pcie_suspend_noirq(imx_pcie->pci, false); - } - - return 0; -diff --git a/drivers/pci/controller/dwc/pci-layerscape.c b/drivers/pci/controller/dwc/pci-layerscape.c -index 14d6ac4fc..aca1b0acb 100644 ---- a/drivers/pci/controller/dwc/pci-layerscape.c -+++ b/drivers/pci/controller/dwc/pci-layerscape.c -@@ -382,7 +382,7 @@ static int ls_pcie_suspend_noirq(struct device *dev) - if (!pcie->drvdata->pm_support) - return 0; - -- return dw_pcie_suspend_noirq(pcie->pci); -+ return dw_pcie_suspend_noirq(pcie->pci, false); - } - - static int ls_pcie_resume_noirq(struct device *dev) -diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c b/drivers/pci/controller/dwc/pcie-designware-host.c -index f5a38e6fd..21830c05d 100644 ---- a/drivers/pci/controller/dwc/pcie-designware-host.c -+++ b/drivers/pci/controller/dwc/pcie-designware-host.c -@@ -1222,16 +1222,17 @@ static int dw_pcie_pme_turn_off(struct dw_pcie *pci) - return 0; - } - --int dw_pcie_suspend_noirq(struct dw_pcie *pci) -+int dw_pcie_suspend_noirq(struct dw_pcie *pci, bool force) - { -- bool pme_capable = false; -+ bool d3cold_possible, pme_capable = false; - int ret = 0; - u32 val; - - if (!dw_pcie_link_up(pci)) - goto stop_link; - -- if (!pci_host_common_d3cold_possible(pci->pp.bridge, &pme_capable)) -+ d3cold_possible = pci_host_common_d3cold_possible(pci->pp.bridge, &pme_capable); -+ if (!d3cold_possible && !force) - return 0; - - if (pci->pp.ops->pme_turn_off) { -diff --git a/drivers/pci/controller/dwc/pcie-designware.h b/drivers/pci/controller/dwc/pcie-designware.h -index 0735ae940..887daab4a 100644 ---- a/drivers/pci/controller/dwc/pcie-designware.h -+++ b/drivers/pci/controller/dwc/pcie-designware.h -@@ -859,7 +859,7 @@ static inline enum dw_pcie_ltssm dw_pcie_get_ltssm(struct dw_pcie *pci) - const char *dw_pcie_ltssm_status_string(enum dw_pcie_ltssm ltssm); - - #ifdef CONFIG_PCIE_DW_HOST --int dw_pcie_suspend_noirq(struct dw_pcie *pci); -+int dw_pcie_suspend_noirq(struct dw_pcie *pci, bool force); - int dw_pcie_resume_noirq(struct dw_pcie *pci); - void dw_handle_msi_irq(struct dw_pcie_rp *pp); - void dw_pcie_msi_init(struct dw_pcie_rp *pp); -@@ -872,7 +872,7 @@ int dw_pcie_allocate_domains(struct dw_pcie_rp *pp); - void __iomem *dw_pcie_own_conf_map_bus(struct pci_bus *bus, unsigned int devfn, - int where); - #else --static inline int dw_pcie_suspend_noirq(struct dw_pcie *pci) -+static inline int dw_pcie_suspend_noirq(struct dw_pcie *pci, bool force) - { - return 0; - } -diff --git a/drivers/pci/controller/dwc/pcie-eswin.c b/drivers/pci/controller/dwc/pcie-eswin.c -index ce8d64f8a..06fc488f8 100644 ---- a/drivers/pci/controller/dwc/pcie-eswin.c -+++ b/drivers/pci/controller/dwc/pcie-eswin.c -@@ -367,7 +367,7 @@ static int eswin_pcie_suspend_noirq(struct device *dev) - { - struct eswin_pcie *pcie = dev_get_drvdata(dev); - -- return dw_pcie_suspend_noirq(&pcie->pci); -+ return dw_pcie_suspend_noirq(&pcie->pci, false); - } - - static int eswin_pcie_resume_noirq(struct device *dev) -diff --git a/drivers/pci/controller/dwc/pcie-nxp-s32g.c b/drivers/pci/controller/dwc/pcie-nxp-s32g.c -index 31e1169b8..43174a06c 100644 ---- a/drivers/pci/controller/dwc/pcie-nxp-s32g.c -+++ b/drivers/pci/controller/dwc/pcie-nxp-s32g.c -@@ -365,7 +365,7 @@ static int s32g_pcie_suspend_noirq(struct device *dev) - struct s32g_pcie *s32g_pp = dev_get_drvdata(dev); - struct dw_pcie *pci = &s32g_pp->pci; - -- return dw_pcie_suspend_noirq(pci); -+ return dw_pcie_suspend_noirq(pci, false); - } - - static int s32g_pcie_resume_noirq(struct device *dev) -diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c -index b58a607b7..448af3029 100644 ---- a/drivers/pci/controller/dwc/pcie-qcom.c -+++ b/drivers/pci/controller/dwc/pcie-qcom.c -@@ -2346,7 +2346,7 @@ static int qcom_pcie_suspend_noirq(struct device *dev) - if (!pcie) - return 0; - -- ret = dw_pcie_suspend_noirq(pcie->pci); -+ ret = dw_pcie_suspend_noirq(pcie->pci, false); - if (ret) - return ret; - -diff --git a/drivers/pci/controller/dwc/pcie-stm32.c b/drivers/pci/controller/dwc/pcie-stm32.c -index 349618ea5..7b3a8c1b0 100644 ---- a/drivers/pci/controller/dwc/pcie-stm32.c -+++ b/drivers/pci/controller/dwc/pcie-stm32.c -@@ -78,7 +78,7 @@ static int stm32_pcie_suspend_noirq(struct device *dev) - struct stm32_pcie *stm32_pcie = dev_get_drvdata(dev); - int ret; - -- ret = dw_pcie_suspend_noirq(&stm32_pcie->pci); -+ ret = dw_pcie_suspend_noirq(&stm32_pcie->pci, false); - if (ret) - return ret; - -diff --git a/drivers/pci/controller/dwc/pcie-ultrarisc.c b/drivers/pci/controller/dwc/pcie-ultrarisc.c -index 51e891804..cb2781a15 100644 ---- a/drivers/pci/controller/dwc/pcie-ultrarisc.c -+++ b/drivers/pci/controller/dwc/pcie-ultrarisc.c -@@ -187,7 +187,7 @@ static int ultrarisc_pcie_suspend_noirq(struct device *dev) - if (pci->suspended) - return 0; - -- ret = dw_pcie_suspend_noirq(pci); -+ ret = dw_pcie_suspend_noirq(pci, false); - if (ret) - return ret; - --- -2.56.0 - diff --git a/pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch b/pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch deleted file mode 100644 index 8fc9c433a3..0000000000 --- a/pkgbuilds/linux-omarchy-aarch64/2283-PCI-qcom-Implement-shutdown-callback.patch +++ /dev/null @@ -1,90 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Manivannan Sadhasivam -Date: Wed, 9 Sep 2026 17:54:30 +0530 -Subject: [PATCH] PCI: qcom: Implement shutdown() callback - -PCIe host controllers should bring the link down cleanly before system -shutdown/reboot proceeds to remove power/clocks from the controller. -Without this, the link may still be up and endpoints still have -transactions in flight when power/clocks are cut, which can trip SMMU -translation faults or NoC protocol errors. - -Reuse dw_pcie_suspend_noirq() in the shutdown path to force the link -into L2, putting it into D3cold. - -device_shutdown() runs with interrupts enabled, unlike suspend_noirq(). -Mask the chained MSI IRQ(s) and the Global IRQ before tearing down the -link and clocks/PHY, since a late/spurious interrupt could otherwise -reach a handler that touches now-unclocked PARF/DBI registers. - -[birk: start pcie as NULL. The firmware-managed branch leaves it unset and - the test below then read it uninitialised] - -Signed-off-by: Manivannan Sadhasivam -Signed-off-by: Krishna Chaitanya Chundru ---- - drivers/pci/controller/dwc/pcie-qcom.c | 35 ++++++++++++++++++++++++++ - 1 file changed, 35 insertions(+) - -diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c -index 448af3029..5544f2a05 100644 ---- a/drivers/pci/controller/dwc/pcie-qcom.c -+++ b/drivers/pci/controller/dwc/pcie-qcom.c -@@ -1924,6 +1924,9 @@ static int qcom_pcie_ecam_host_init(struct pci_config_window *cfg) - pp->use_imsi_rx = true; - dw_pcie_msi_init(pp); - -+ /* Stash pci so qcom_pcie_shutdown() can mask the MSI IRQ(s) later */ -+ platform_set_drvdata(to_platform_device(dev), pci); -+ - return devm_add_action_or_reset(dev, qcom_pci_free_msi, pp); - } - -@@ -2337,6 +2340,37 @@ static int qcom_pcie_probe(struct platform_device *pdev) - return ret; - } - -+static void qcom_pcie_shutdown(struct platform_device *pdev) -+{ -+ const struct qcom_pcie_cfg *pcie_cfg = of_device_get_match_data(&pdev->dev); -+ struct qcom_pcie *pcie = NULL; -+ struct dw_pcie *pci; -+ -+ if (pcie_cfg && pcie_cfg->firmware_managed) { -+ /* -+ * Firmware owns the link teardown and clock/PHY shutdown in -+ * this mode; Linux only owns the chained MSI IRQ(s), which -+ * still need to be masked off before shutdown proceeds. -+ */ -+ pci = platform_get_drvdata(pdev); -+ } else { -+ pcie = platform_get_drvdata(pdev); -+ pci = pcie->pci; -+ -+ if (pcie->global_irq) -+ disable_irq(pcie->global_irq); -+ } -+ -+ if (pci->pp.use_imsi_rx) -+ dw_pcie_free_msi(&pci->pp); -+ -+ if (pcie) -+ dw_pcie_suspend_noirq(pcie->pci, true); -+ -+ pm_runtime_put_sync(&pdev->dev); -+ pm_runtime_disable(&pdev->dev); -+} -+ - static int qcom_pcie_suspend_noirq(struct device *dev) - { - struct qcom_pcie *pcie; -@@ -2519,5 +2553,6 @@ static struct platform_driver qcom_pcie_driver = { - .pm = &qcom_pcie_pm_ops, - .probe_type = PROBE_PREFER_ASYNCHRONOUS, - }, -+ .shutdown = qcom_pcie_shutdown, - }; - builtin_platform_driver(qcom_pcie_driver); --- -2.56.0 - diff --git a/pkgbuilds/linux-omarchy-aarch64/2284-PCI-qcom-Power-the-controller-down-when-hibernating.patch b/pkgbuilds/linux-omarchy-aarch64/2284-PCI-qcom-Power-the-controller-down-when-hibernating.patch deleted file mode 100644 index e6721839fb..0000000000 --- a/pkgbuilds/linux-omarchy-aarch64/2284-PCI-qcom-Power-the-controller-down-when-hibernating.patch +++ /dev/null @@ -1,106 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Birk Skyum -Date: Mon, 12 Oct 2026 12:46:01 +0200 -Subject: [PATCH] PCI: qcom: Power the controller down when hibernating - -qcom_pcie_suspend_noirq() leaves the controller powered when a device -below it cannot go to D3cold, and qcom_pcie_resume_noirq() then carries -on with the controller as it was. - -That is fine for suspend. The same two functions also run as -freeze_noirq and restore_noirq for hibernation. Devices are normally -still in D0 at freeze, so a controller with a device behind it is left -powered and the image records it as running. That image is resumed -after a power cycle, by a kernel that may never have brought the -controller up. - -On a Lenovo Yoga Slim 7x (X1E80100) this resets the machine on every -resume from hibernation. The Wi-Fi card is behind pcie4, whose link -only comes up once the power sequencing drivers have been loaded from -the root file system. The kernel that loads the image resumes before -that, so it never powers pcie4, and the restored kernel then reads the -DBI registers of that controller: - - qcom_pcie_resume_noirq() - qcom_pcie_icc_opp_update() - dw_pcie_find_capability() - dw_pcie_read_dbi() - -The machine resets at that read. pcie6a, which holds the NVMe drive and -is brought up by both kernels, gets through the same path. - -Give the driver a freeze_noirq callback of its own that forces the link -into L2 and powers the controller down, whatever state the devices -below it are in. A hibernation image then always holds a controller -that is down, and thaw_noirq and restore_noirq bring it up through -dw_pcie_resume_noirq(), like after any other loss of power. Suspend and -the poweroff phase of hibernation keep the D3cold check. - -Suggested-by: Krishna Chaitanya Chundru -Signed-off-by: Birk Skyum ---- - drivers/pci/controller/dwc/pcie-qcom.c | 27 +++++++++++++++++++++++--- - 1 file changed, 24 insertions(+), 3 deletions(-) - -diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c -index 5544f2a05..dff5c4a47 100644 ---- a/drivers/pci/controller/dwc/pcie-qcom.c -+++ b/drivers/pci/controller/dwc/pcie-qcom.c -@@ -2371,7 +2371,7 @@ static void qcom_pcie_shutdown(struct platform_device *pdev) - pm_runtime_disable(&pdev->dev); - } - --static int qcom_pcie_suspend_noirq(struct device *dev) -+static int qcom_pcie_suspend(struct device *dev, bool force) - { - struct qcom_pcie *pcie; - int ret = 0; -@@ -2380,7 +2380,7 @@ static int qcom_pcie_suspend_noirq(struct device *dev) - if (!pcie) - return 0; - -- ret = dw_pcie_suspend_noirq(pcie->pci, false); -+ ret = dw_pcie_suspend_noirq(pcie->pci, force); - if (ret) - return ret; - -@@ -2429,6 +2429,22 @@ static int qcom_pcie_suspend_noirq(struct device *dev) - return ret; - } - -+static int qcom_pcie_suspend_noirq(struct device *dev) -+{ -+ return qcom_pcie_suspend(dev, false); -+} -+ -+/* -+ * A hibernation image is resumed after a power cycle, by a kernel that may -+ * not have brought this controller up. Power the controller down even if a -+ * device below it cannot go to D3cold, so that the image never holds a -+ * controller that is running. Thaw and restore bring it up again. -+ */ -+static int qcom_pcie_freeze_noirq(struct device *dev) -+{ -+ return qcom_pcie_suspend(dev, true); -+} -+ - static int qcom_pcie_resume_noirq(struct device *dev) - { - struct qcom_pcie *pcie; -@@ -2541,7 +2557,12 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x1000, qcom_fixup_class); - DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x1001, qcom_fixup_class); - - static const struct dev_pm_ops qcom_pcie_pm_ops = { -- NOIRQ_SYSTEM_SLEEP_PM_OPS(qcom_pcie_suspend_noirq, qcom_pcie_resume_noirq) -+ .suspend_noirq = pm_sleep_ptr(qcom_pcie_suspend_noirq), -+ .resume_noirq = pm_sleep_ptr(qcom_pcie_resume_noirq), -+ .freeze_noirq = pm_sleep_ptr(qcom_pcie_freeze_noirq), -+ .thaw_noirq = pm_sleep_ptr(qcom_pcie_resume_noirq), -+ .poweroff_noirq = pm_sleep_ptr(qcom_pcie_suspend_noirq), -+ .restore_noirq = pm_sleep_ptr(qcom_pcie_resume_noirq), - }; - - static struct platform_driver qcom_pcie_driver = { --- -2.56.0 - diff --git a/pkgbuilds/linux-omarchy-aarch64/2285-soc-qcom-smp2p-Start-over-after-a-restore-from-hiber.patch b/pkgbuilds/linux-omarchy-aarch64/2285-soc-qcom-smp2p-Start-over-after-a-restore-from-hiber.patch deleted file mode 100644 index 89cd94a353..0000000000 --- a/pkgbuilds/linux-omarchy-aarch64/2285-soc-qcom-smp2p-Start-over-after-a-restore-from-hiber.patch +++ /dev/null @@ -1,127 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Birk Skyum -Date: Fri, 9 Oct 2026 23:27:30 +0200 -Subject: [PATCH] soc: qcom: smp2p: Start over after a restore from hibernation - -smp2p remembers what it has negotiated with the remote processor: where -the remote's item is, which of its entries are matched, that version -and features are agreed, and whether the remote's last restart has been -acknowledged. - -None of that holds when a hibernation image is restored. The machine -has been through a power cycle, shared memory has been set up again, -the kernel that loaded the image has created a fresh item for us, and -the remote starts from nothing. - -On a Lenovo Yoga Slim 7x (X1E80100) a remote processor that is started -after a resume from hibernation never comes up: - - remoteproc remoteproc0: Booting fw image qcom/x1e80100/LENOVO/83ED/qcadsp8380.mbn, size 21592504 - qcom_q6v5_pas 6800000.remoteproc: start timed out - remoteproc remoteproc0: can't start rproc adsp: -110 - -For the ADSP the driver still has ssr_ack set while the fresh item has -RESTART_ACK clear. When the remote sets RESTART_DONE, -qcom_smp2p_check_ssr() sees no restart, and the acknowledgement the -remote waits for is never written. For the CDSP the driver believes the -negotiation is done, so the fresh item is left at version 2 while the -remote uses version 1. - -Forget all of it in restore_noirq and build our item again, the way -probe does. If the remote is still running, as after test_resume, -qcom_smp2p_start_in() finds its item again and the next interrupt -redoes the negotiation. - -Signed-off-by: Birk Skyum ---- - drivers/soc/qcom/smp2p.c | 53 +++++++++++++++++++++++++++++++++++++--- - 1 file changed, 50 insertions(+), 3 deletions(-) - -diff --git a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c -index 89e242f4d..0352ecd3b 100644 ---- a/drivers/soc/qcom/smp2p.c -+++ b/drivers/soc/qcom/smp2p.c -@@ -519,9 +519,8 @@ static const struct qcom_smem_state_ops smp2p_state_ops = { - .update_bits = smp2p_update_bits, - }; - --static int qcom_smp2p_outbound_entry(struct qcom_smp2p *smp2p, -- struct smp2p_entry *entry, -- struct device_node *node) -+static void qcom_smp2p_claim_outbound_entry(struct qcom_smp2p *smp2p, -+ struct smp2p_entry *entry) - { - struct smp2p_smem_item *out = smp2p->out; - char buf[SMP2P_MAX_ENTRY_NAME] = {}; -@@ -534,6 +533,13 @@ static int qcom_smp2p_outbound_entry(struct qcom_smp2p *smp2p, - entry->value = &out->entries[out->valid_entries].value; - - out->valid_entries++; -+} -+ -+static int qcom_smp2p_outbound_entry(struct qcom_smp2p *smp2p, -+ struct smp2p_entry *entry, -+ struct device_node *node) -+{ -+ qcom_smp2p_claim_outbound_entry(smp2p, entry); - - entry->state = qcom_smem_state_register(node, &smp2p_state_ops, entry); - if (IS_ERR(entry->state)) { -@@ -785,6 +791,46 @@ static void qcom_smp2p_remove(struct platform_device *pdev) - smp2p->out->valid_entries = 0; - } - -+/* -+ * A hibernation image is restored after a power cycle. Shared memory has been -+ * set up anew since and the remote starts from nothing, so forget what was -+ * negotiated with it and build our item again. -+ */ -+static int qcom_smp2p_restore_noirq(struct device *dev) -+{ -+ struct qcom_smp2p *smp2p = dev_get_drvdata(dev); -+ struct smp2p_entry *entry; -+ int ret; -+ -+ smp2p->in = NULL; -+ smp2p->valid_entries = 0; -+ smp2p->negotiation_done = false; -+ smp2p->ssr_ack_enabled = false; -+ smp2p->ssr_ack = false; -+ -+ list_for_each_entry(entry, &smp2p->inbound, node) { -+ entry->value = NULL; -+ entry->last_value = 0; -+ } -+ -+ ret = qcom_smp2p_alloc_outbound_item(smp2p); -+ if (ret < 0) -+ return ret; -+ -+ /* Entries were added at the head of the list, so walk it backwards. */ -+ list_for_each_entry_reverse(entry, &smp2p->outbound, node) -+ qcom_smp2p_claim_outbound_entry(smp2p, entry); -+ -+ qcom_smp2p_start_in(smp2p); -+ qcom_smp2p_kick(smp2p); -+ -+ return 0; -+} -+ -+static const struct dev_pm_ops qcom_smp2p_pm_ops = { -+ .restore_noirq = pm_sleep_ptr(qcom_smp2p_restore_noirq), -+}; -+ - static const struct of_device_id qcom_smp2p_of_match[] = { - { .compatible = "qcom,smp2p" }, - {} -@@ -797,6 +843,7 @@ static struct platform_driver qcom_smp2p_driver = { - .driver = { - .name = "qcom_smp2p", - .of_match_table = qcom_smp2p_of_match, -+ .pm = &qcom_smp2p_pm_ops, - }, - }; - module_platform_driver(qcom_smp2p_driver); --- -2.56.0 - diff --git a/pkgbuilds/linux-omarchy-aarch64/2286-Bluetooth-hci_qca-Reset-the-in-band-sleep-state-on-p.patch b/pkgbuilds/linux-omarchy-aarch64/2286-Bluetooth-hci_qca-Reset-the-in-band-sleep-state-on-p.patch deleted file mode 100644 index e5fbc7c980..0000000000 --- a/pkgbuilds/linux-omarchy-aarch64/2286-Bluetooth-hci_qca-Reset-the-in-band-sleep-state-on-p.patch +++ /dev/null @@ -1,96 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Birk Skyum -Date: Wed, 14 Oct 2026 17:53:56 +0000 -Subject: [PATCH] Bluetooth: hci_qca: Reset the in-band sleep state on power - off - -qca_power_off() cuts the power of the controller but leaves the host -side of the in-band sleep (IBS) protocol as it was. tx_ibs_state and -rx_ibs_state are initialised in qca_open() only, so a controller that -qca_setup() powers on again meets whatever state the last session ended -in. - -If that state is HCI_IBS_TX_AWAKE, the host sends the frames after the -next setup without a wake indication. qca_hci_shutdown() stops both IBS -timers, but the pre-shutdown command it sends afterwards goes through -qca_enqueue() and arms tx_idle_timer again for 2 s, so a power on within -those 2 s finds the state at AWAKE. On a OnePlus Pad 3 (WCN7880) this -happens with a power off and on within 2 s, and at every boot of a board -without local-bd-address when user space sets the address right after -the controller registers. The controller comes back asleep, and the -first command after it has gone to sleep breaks the link: - - Bluetooth: hci0: Frame reassembly failed (-84) - Bluetooth: hci0: Opcode 0x0c56 failed: -110 - Bluetooth: hci0: crash the soc to collect controller dump - -The timer left armed can also send HCI_IBS_SLEEP_IND in the middle of -the next setup. - -If the state is HCI_IBS_TX_WAKING, the host is waiting for a wake -acknowledgment, and qca_hci_shutdown() has deleted the timer that -sends the wake indication again. The setup still works, because frames -bypass IBS while QCA_IBS_DISABLED is set. Once the flag is cleared, -qca_enqueue() puts every frame on tx_wait_q and nothing takes it off: - - Bluetooth: hci0: QCA setup on UART is completed - Bluetooth: hci0: Opcode 0x0c03 failed: -110 - -A restore from hibernation gets there on a Lenovo Yoga Slim 7x -(WCN7850). The controller has been through a power cycle, while the -restored kernel holds the state from before the image was taken. Its -wake indications go unanswered, the commands behind them time out, and -the core closes the device and sets it up again. From then on -tx_ibs_state reads 1 in debugfs and Bluetooth stays dead until hci_uart -is reloaded. - -When the controller loses power, cancel the IBS work, wait for the IBS -timers, drop what was queued and put both sides back to asleep, which -is where qca_open() starts. The timer callbacks take hci_ibs_lock, so -the timers are deleted outside of it. All callers of qca_power_off() -can sleep, and the work items do not call it. - -Fixes: 3e4be65eb82c ("Bluetooth: hci_qca: Add poweroff support during hci down for wcn3990") -Cc: stable@vger.kernel.org -Co-developed-by: Vladyslav Tymoshchuk -Signed-off-by: Vladyslav Tymoshchuk -Signed-off-by: Birk Skyum ---- - drivers/bluetooth/hci_qca.c | 17 +++++++++++++++-- - 1 file changed, 15 insertions(+), 2 deletions(-) - -diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c -index cef2b525c..671a51ffd 100644 ---- a/drivers/bluetooth/hci_qca.c -+++ b/drivers/bluetooth/hci_qca.c -@@ -2246,12 +2246,25 @@ static void qca_power_off(struct hci_uart *hu) - struct qca_power *power; - - /* From this point we go into power off state. But serial port may -- * still be open, stop queueing the IBS data and flush all the buffered -- * data in skb's. -+ * still be open, stop queueing the IBS data. - */ - spin_lock_irqsave(&qca->hci_ibs_lock, flags); - set_bit(QCA_IBS_DISABLED, &qca->flags); -+ spin_unlock_irqrestore(&qca->hci_ibs_lock, flags); -+ -+ /* The controller loses the IBS state with its power and comes back -+ * with both sides asleep, as qca_open() assumes. Stop the IBS work and -+ * timers, drop what they queued and start over from there. -+ */ -+ cancel_work_sync(&qca->ws_awake_device); -+ cancel_work_sync(&qca->ws_awake_rx); -+ timer_delete_sync(&qca->wake_retrans_timer); -+ timer_delete_sync(&qca->tx_idle_timer); -+ -+ spin_lock_irqsave(&qca->hci_ibs_lock, flags); - qca_flush(hu); -+ qca->tx_ibs_state = HCI_IBS_TX_ASLEEP; -+ qca->rx_ibs_state = HCI_IBS_RX_ASLEEP; - spin_unlock_irqrestore(&qca->hci_ibs_lock, flags); - - /* Non-serdev device usually is powered by external power --- -2.56.0 - diff --git a/pkgbuilds/linux-omarchy-aarch64/2287-serial-qcom-geni-Set-the-serial-engine-up-again-afte.patch b/pkgbuilds/linux-omarchy-aarch64/2287-serial-qcom-geni-Set-the-serial-engine-up-again-afte.patch deleted file mode 100644 index eb24bb52d1..0000000000 --- a/pkgbuilds/linux-omarchy-aarch64/2287-serial-qcom-geni-Set-the-serial-engine-up-again-afte.patch +++ /dev/null @@ -1,75 +0,0 @@ -From e076a322973e62853f5025e346743090774240f4 Mon Sep 17 00:00:00 2001 -From: Birk Skyum -Date: Tue, 27 Oct 2026 17:22:21 +0000 -Subject: [PATCH] serial: qcom-geni: Set the serial engine up again after - hibernation - -A hibernation image is restored after a power cycle, which resets every -serial engine. The kernel that loads the image only sets up the engines -it uses itself, and on laptops the Bluetooth UART is opened from the -root file system, so that kernel never touches it. - -The restored kernel still has port->setup set from before, so the -startup in uart_resume_port() skips qcom_geni_serial_port_setup() and -the port runs on an engine whose FIFOs, packing and transfer mode were -never configured. On a Lenovo Yoga Slim 7x (X1E80100) the WCN7850's -Bluetooth controller then never comes back: every setup attempt of -hci_qca's error recovery ends in "command 0xfc00 tx timeout" and -"Reading QCA version information failed (-110)". - -Clear port->setup in a restore callback of its own, so the next startup -sets the engine up again. Leave console ports alone: the kernel that -loads the image sets up its console when it registers it, and setting -the engine up again in qcom_geni_serial_startup() would run without the -port lock while the console may be writing. The other system sleep -callbacks are unchanged. - -Signed-off-by: Birk Skyum ---- - drivers/tty/serial/qcom_geni_serial.c | 23 ++++++++++++++++++++++- - 1 file changed, 22 insertions(+), 1 deletion(-) - -diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c -index a851b8f0e..0ee263963 100644 ---- a/drivers/tty/serial/qcom_geni_serial.c -+++ b/drivers/tty/serial/qcom_geni_serial.c -@@ -2136,6 +2136,22 @@ static int qcom_geni_serial_resume(struct device *dev) - return ret; - } - -+/* -+ * A hibernation image is restored after a power cycle, which reset the serial -+ * engine. The kernel that loaded the image only set up the engines it used -+ * itself, so set this one up again when the port starts. A console is left as -+ * it is, since setting it up at startup would race with console output. -+ */ -+static int qcom_geni_serial_restore(struct device *dev) -+{ -+ struct qcom_geni_serial_port *port = dev_get_drvdata(dev); -+ -+ if (!uart_console(&port->uport)) -+ port->setup = false; -+ -+ return qcom_geni_serial_resume(dev); -+} -+ - #if IS_ENABLED(CONFIG_SERIAL_QCOM_GENI_CONSOLE) - static const struct qcom_geni_device_data qcom_geni_console_data = { - .console = true, -@@ -2173,7 +2189,12 @@ static const struct qcom_geni_device_data sa8255p_qcom_geni_uart_data = { - static const struct dev_pm_ops qcom_geni_serial_pm_ops = { - SET_RUNTIME_PM_OPS(qcom_geni_serial_runtime_suspend, - qcom_geni_serial_runtime_resume, NULL) -- SYSTEM_SLEEP_PM_OPS(qcom_geni_serial_suspend, qcom_geni_serial_resume) -+ .suspend = pm_sleep_ptr(qcom_geni_serial_suspend), -+ .resume = pm_sleep_ptr(qcom_geni_serial_resume), -+ .freeze = pm_sleep_ptr(qcom_geni_serial_suspend), -+ .thaw = pm_sleep_ptr(qcom_geni_serial_resume), -+ .poweroff = pm_sleep_ptr(qcom_geni_serial_suspend), -+ .restore = pm_sleep_ptr(qcom_geni_serial_restore), - }; - - static void qcom_geni_serial_sys_shutdown(struct platform_device *pdev) --- -2.56.0 - diff --git a/pkgbuilds/linux-omarchy-aarch64/PKGBUILD b/pkgbuilds/linux-omarchy-aarch64/PKGBUILD index dd3d0100ef..17b94504ce 100644 --- a/pkgbuilds/linux-omarchy-aarch64/PKGBUILD +++ b/pkgbuilds/linux-omarchy-aarch64/PKGBUILD @@ -299,14 +299,6 @@ source=( 2209-i2c-qcom-cci-Suspend-the-controller-50-ms-after-the-last-transfer.patch 2210-arm64-dts-qcom-hamoa-glymur-Disable-the-crypto-engine.patch 2217-serial-qcom-geni-release-the-OPP-and-ICC-votes-in-sy.patch - 2280-pinctrl-qcom-Restore-the-pin-configuration-after-hib.patch - 2281-PCI-host-common-Fix-early-bus-walk-exit-in-d3cold_po.patch - 2282-PCI-dwc-Force-L2-link-entry-on-shutdown-reboot-witho.patch - 2283-PCI-qcom-Implement-shutdown-callback.patch - 2284-PCI-qcom-Power-the-controller-down-when-hibernating.patch - 2285-soc-qcom-smp2p-Start-over-after-a-restore-from-hiber.patch - 2286-Bluetooth-hci_qca-Reset-the-in-band-sleep-state-on-p.patch - 2287-serial-qcom-geni-Set-the-serial-engine-up-again-afte.patch 2300-ASoC-codecs-lpass-wsa-macro-use-v2.5-Compander1-addr.patch 2301-ASoC-codecs-lpass-rx-wsa-macro-sort-reg_defaults-bef.patch 2302-ASoC-codecs-lpass-wsa-macro-switch-cache-to-REGCACHE.patch @@ -982,14 +974,6 @@ sha256sums=('87363c24f10e06321eb362765521094e94471f6bff8bce2d6b3e40f39f004953' '5eb763f45fdef2428571d4a8988522e350c71158ef83b2f1a76d3dba9798d677' '71bfc324bed8d2d19169f29e65bf5a29d48b67c910a161e7ffc015a76fc5fecf' '1da0c923a429b9f8bdd3b4b3080cd46f50202c5ef2afbc60d1f085133c37b2b7' - 'bf7c0c72e228b84858323cdacee5e3259e4453b1cb16073025fca79d0599bf5c' - 'f3c8eb103f1750726512bdf660826b34bec8276cd3643a73aa6ddce42b8013cc' - '58f77483401b116f69462bef1527adbcc6ac3e1be99e60b8c46466af27e7748a' - '1cf58df87964f7685130ba3684b3408be2d31e0cfe6ad7c091aa48e08b9b0b88' - '81dcafddc5b784665086823494efed3ef0c73623ba445ba450f0935d8237ef4f' - '48b3d882f39502aa03cec2aa37af6789520d8b0c06917baf33c817f628283d03' - '47c80cebe3b2a2bf1b05f06cc544d4c39a63fe4d481021b3a23bc0e7bb392535' - '892555cd30690b6c6e251414f220c64406fe0c371f26c5679521a91bebda5496' '330491cb42da5cd7b540edb1d5cd574f92e9cde3832a7900d160928224371497' '5ca289bb7eba4e70e54e63fded3a08af64a0b68a6100b7a78097a685baa180d4' 'cab2a593aef371c5d10d0ce15d6be1f62fc19b9684152cdd3bc82841bd8702b0' @@ -1656,14 +1640,6 @@ b2sums=('b7fb8c74de664fdd0cd7b42afff2720bda5c4bdb2ffffa80a745c5fecd029c6fe739a3e '753658af251a83196626a8767d345a43d6fbf8b93574a1fc13287bb9b173c24e805df9a6b463f52fa8c887367d52c5e572ce92381a4c3b3d44af5dcbcef6ebc3' '9586b54ca8191bdc1aa2d813d319afa613176fb87de0dc82e0772f26468df72b6396c5c9e5d00fbb8c317f0f3654ee6605d93297a1388211648ffbd429fb4522' '8b10db91844ed6ae48020570370c728c3e90eca128a19744940763af25c4a0425e24f6481166f0aa14a2953796a04643829596cd9d710fd7246927d8c958df8f' - '2336931a04df95fd05720ff2e463262b4bbd06eea6ba3fecef90e43e40e21b3164fb76527de3d9e04093e0176ac613d2b94bcf726e5df64ce516734ac016d148' - '050ff9080d31ce11222f2c197d2742e93a111e586445986cf07f20ffa6145be4173f4d53faa71135fb9aa400564b2a15457d181eafe3303407f0b1c2ca91a7e4' - '8d72185740035393d9f3b0598e6496b32f5e83d98541bdaf7d02c01bb0e32f120e22b10a4db0cafec9872b8d2bcf341e400ba978c8e5ffc5c22cc570b72da329' - '45a69331967fc235ce3cc044f2658d86fd6a5a3085416bbf80779aa10eea5d0a342634d3d58fe1ce3703732a9101b2e6a5f0a5ff83cb5b9718829b322c5b39b3' - '558f1c502c52cac2d6cc5f85f1eefe8077cdf72b19a79e6782c4c56f5b706cf7851bbded1d7b3f32dd30509555eac57e0c608868dcc6fb0535d25781ce8ca7e0' - '8b6814864aaa3dc5b88d2acb8705cae19e9b0a382e630e8f94393da0b009b7088f8830d435998532a5f0af0763912069a3f230f6264b294eddb9969a4caea8f5' - '898a46bd1708cd4eb531b01a3d862ab1d8d06563f5b6b683d76d7e72c5b513150eb9f7d293da337d8caab9f4f2af4307fb40e93ae0b1dd3bfeeb36f6ab7e733f' - '8e9a4a53ba55b089acdc9e854c9193b6b3606ccf4649d8c751b3eb64b53b281b2c99044d74ef77d597023ead7087b9ad59f72201426d405bf0b5d2d5a59fae12' 'ebf3d336f169ccea3f28a1257c63c3faef8429a2f548615f136dccede0f8517471a1b41a1f0545d880a1b7403f906fc40145344fccdf3c3e61391792694ff63a' '62dafc4ffdfee47436496aafcb76710ae4331f8bd01a8f9f419460dacf37d6606c950952883647ad97097ce283089ade05e2d13ad4b3376a857f2cd4990e6995' 'a76c3473fc2d6f598e7b7df6c6f25757b7d6b6db3b1386c4f7572c47175c8b7089e0252875abd74cd4d2b728fcb83452b02d9341c5e7cd7764cf8e7377c0b4f0' diff --git a/pkgbuilds/linux-omarchy-aarch64/README.md b/pkgbuilds/linux-omarchy-aarch64/README.md index c39309286b..741153f200 100644 --- a/pkgbuilds/linux-omarchy-aarch64/README.md +++ b/pkgbuilds/linux-omarchy-aarch64/README.md @@ -4,7 +4,7 @@ The `linux-omarchy` kernel for aarch64, with NVIDIA N1x (RTX Spark) and Snapdrag It carries the signed Omarchy patch set of `linux-omarchy` 7.2.8-10, ported to 7.3, plus N1x topic patches numbered 1000 and up. `linux-omarchy` is the BORE build (it was `linux-omarchy-bore` until 7.2.8-9, which is now a transitional package), so the shared patches, their signatures and the BORE and ADIOS schedulers come from `linux-omarchy`, byte for byte, including its BORE rebases of the scheduler patches. This package moved to 7.3 ahead of `linux-omarchy`, which is still on 7.2.8. Twelve of the shared patches 7.3 still needs had to change for it and carry no signature. `0110` is BORE's own 7.3 patch, `0450` the amd-staging HDMI VRR and ALLM series, `0608` only the icm fix 7.3 lacks, and `0140`, `0350`, `0402`, `0460`, `0461`, `0478`, `0517`, `0804` and `8205` are rebuilt for 7.3. The rest are `linux-omarchy`'s files with their signatures. `0568` and `0571` stay out: 7.3 has the HID updates, and `0571` reverts the Logitech Bolt receiver support `0568` adds (upstream 3fabd8ec206b, in 7.3-rc6), which made mice on a Bolt receiver scroll about 15 times too fast. Once `linux-omarchy` moves to 7.3, this package takes its set again. The intent is to fold these into `linux-omarchy` itself once it builds for aarch64; until then this is the kernel Omarchy installs on N1x machines (`install/hardware/n1x.sh` in omarchy), replacing NVIDIA's 7.0-based `linux-n1x`. -The `pkgrel` counts N1x revisions of this package and starts again at 1 when the kernel version changes. On 7.2.5 it was `6.1` to `6.9` while it tracked `linux-omarchy`'s release; the ninth revision became `9`, `10` added the Dell XPS 16 patches, `11` brought a dock's displays back after a failed DisplayPort tunnel, `12` stopped the clock during suspend-to-idle, `13` brought NVIDIA's device sleep patches from 1022.23, `14` let keyboard and touchpad interrupts wake the system from the platform's deepest sleep, and `15` brought audio and UCSI fixes from upstream and turned kexec handover off by default. `7.2.8-1` moves to 7.2.8 and `linux-omarchy` 7.2.8-5's patch set, `2` closes a SoundWire interrupt race that could hang the boot, `3` stops `cppc_cpufreq` registering its artificial energy model, so EAS no longer packs the desktop onto the A725 cores, `4` ships the Snapdragon laptops' device trees and resets the Iris AHB bridge before hardware mode, `5` builds SCMI CPU frequency scaling in, which the Snapdragon laptops need, `6` lets suspend-to-idle reach the platform's deepest idle state, which brings sleep from 6-15 W to under 1 W, `7` stops reclaiming the GPU's reserved memory, which the firmware now sizes itself, `8` takes the name `linux-omarchy`, `9` registers `cppc_cpufreq`'s artificial energy model again, so that power-profiles-daemon's RTX Spark driver can turn EAS on and off with the governor, as NVIDIA designed it, `10` keeps a dock's tunnels through suspend-to-idle, so its USB devices and displays come back on resume, `11` spaces out a dock's DisplayPort teardowns, so the GPU sees both monitors leave when a two-monitor dock is unplugged, `13` keeps USB and the SSPM-dependent ACPI drivers working on a DGX Spark whose firmware hides the SSPM mailbox, `14` lets Bolt authorize new docks on its own, as it does on Intel and AMD laptops, `15` brings back the Snapdragon laptops' digital microphones, `16` lets UPower see a Snapdragon laptop's charger being plugged in and out, `17` adds the Surface Pro 11 patches, `19` lets the Snapdragon X1 laptops sleep with DDR in self-refresh and the SoC's CX rail collapsed, `20` turns on the Lenovo Yoga Slim 7x's webcam, `21` stops the camera bus controller from stalling when a camera starts again soon after it stopped, `22` stops the NVIDIA DGX Spark resetting when idle, and `23` keeps the Snapdragon laptops' Wi-Fi from stalling after the access point changes its channel or bandwidth and fixes an out-of-bounds read and a deadlock in the Iris video decoder. `7.3-1` moves to 7.3, ahead of `linux-omarchy`, `7.3-7` adds the ASUS Zenbook A16, `7.3-8` lets its Copilot key send F23, `7.3-9` gives the ASUS ProArt P14 its keyboard back on BIOS 303, and `7.3-10` adds the Acer Swift 14 AI and Swift Go 14, the Dell Latitude 5455 and the HP EliteBook 6 G1q. `7.3-12` adds `linux-omarchy-nvidia-open`, and `7.3-13` adds nine more laptops' trees from linux-next and linux-arm-msm and gives the Surface Pro 12in hardware IDs under the compatible its tree uses. `7.3-14` adds the HP OmniBook Ultra 14 and the ASUS Zenbook A14 X2 and the shared PCIe3 PHY their NVMe sits behind. `7.3-15` adds the HP OmniBook 5 14 and the ASUS Vivobook S16 (S3607QA), and `7.3-16` moves the Surface Laptop 8 to the board name of Qualcomm's posted tree and gives it hardware IDs. `7.3-17` loads its DSP firmware from the folder that tree names. `7.3-18` gives the ThinkPad T14s Gen 7 its Elan touchpad and adds the Lenovo IdeaPad 5x 2-in-1, the Lenovo IdeaPad Slim 3x and the ASUS Vivobook 16 (X1607QA). `7.3-19` adds the HP OmniBook 5 16 (2026), and `7.3-20` gives the Dell Inspiron 14 5441 hardware IDs. `7.3-21` gives the Anduril BlueChip hardware IDs under the Glymur CRD's tree, `7.3-22` gives it its own tree, and `7.3-23` names FAT files in UTF-8 and mounts FAT in the initramfs. `7.3-24` keeps kernel crash logs out of UEFI variables, lets RCU batch its callbacks while idle and compresses the modules. `7.3-25` gives monitors on the ASUS Zenbook A14, the HP OmniBook X 14 and the Surface Laptop 7 sound. `7.3-26` adds the ASUS ProArt PZ13. `7.3-27` links only the Anduril BlueChip's left speakers, so its sound card plays. `7.3-28` adds the HP OmniBook 3 14 and 16 and gives the Samsung Galaxy Book4 Edge 16 hardware IDs. `7.3-29` adds the ASUS Zenbook 14 UX3480QA and restores the ASUS 0B05:4B42 keyboard's backlight and Fn-lock after sleep. `7.3-30` adds the Microsoft Surface Laptop 8 15-inch. `7.3-31` keeps an open geni UART clocked across system sleep (`2217`). `7.3-38` gives the ASUS Zenbook 14 UX3480QAB hardware IDs under the UX3480QA's tree and turns that tree's CoreSight debug blocks off, without which the UX3480QAB resets once qcom_aoss loads. `7.3-39` lets the Snapdragon X1 laptops' lid switch report both edges, so closing the lid suspends them, honours the time zone stored with the Qualcomm UEFI RTC offset, and delivers the audio DSP's replies sent while q6apm probes, so the sound card no longer binds 5 s late. `7.3-40` adds the ASUS Vivobook 14 (X1407QA) and takes the hardware ID every ASUS laptop with an empty SKU shares out of the Vivobook 16's file. `7.3-41` skips the ProArt P16's PSYS and PSOC thermal zones, as on the XPS 16. `7.3-42` gives the European Samsung Galaxy Book4 Edge 14, the NP940XMA, hardware IDs under the 14-inch tree, since none of the NP944XMA's match it. `7.3-43` adds the Dell Inspiron 14 5441 with the X1P-42-100 and the Lenovo ThinkCentre neo 50q QC, and gives the Surface Pro 11 with the LCD hardware IDs for its own tree. `7.3-44` adds the ASUS ProArt PZ14. `7.3-46` brings back `soc_button_array`. `7.3-47` moves the Snapdragon laptops' device trees and hardware IDs to `linux-omarchy-dtbs`, which this package depends on. `7.3-48` gives the LCD Surface Pro 11's other cores cpufreq (`2157`), its panel's timings (`2160`) and its speakers' settings (`2441`), and stops the Surface Pro 11 reporting a second battery (`2765`). Its tree's backlight and CPU fixes are in `linux-omarchy-dtbs`. `7.3-49` keeps wsa884x's PA fault recovery to the Surface Pro 11 and stops it resetting an amplifier that faults again at once (`2442`). `7.3-50` adds the HP OmniBook X 14's audio topology to the MT8901 machine driver (`1061`). `7.3-51` lets a USB-C repeater that fails channel equalisation with TPS4 retry with TPS3 (`2444`). `7.3-52` writes the DVFSRC flag only on the N1x laptops, so no GB10 desktop gets it (`1115`). `7.3-53` brings DisplayPort back through USB4 docks such as the Lenovo 40B0 on the X1 machines with the PS883x retimer (`2445` to `2447`). `7.3-55` updates the Glymur USB3 PHY settings to Qualcomm's latest hardware reference (`2840`). `7.3-56` gives the Surface Laptop 8 a real-time clock (`2766` to `2769`). `7.3-57` reads the Surface Laptop 8's battery and charger from SAM, as Windows does (`2773`, `2774`). `7.3-58` makes the Surface Laptop 8's microphone key mute the microphone (`2775`). `7.3-59` sets a DisplayPort controller's clock parents only once its PHY is on, so a USB-C display output the firmware left off at boot, such as the Lenovo IdeaCentre Mini's, comes up (`2448`, `2449`). `7.3-60` runs USB4 on the Surface Laptop 8's second USB-C port, with a display through a dock (`2850` to `2856`). `7.3-61` plays the Dell XPS 13 9345's four speakers in the right order (`2450`, `2451`). `7.3-62` gives the Snapdragon X2 Surfaces without a tree in Linux their SAM battery, charger, clock, fan and type cover (`2776` to `2778`), and gives Kalambo, the X2P-42-100, its display compression settings, DSP domains and UEFI variables (`2860`, `2861`). `7.3-69` gives the ASUS Vivobook S 16 S3607QA's keyboard its Fn keys and backlight (`1116`). `7.3-71` keeps the Surface Pro 11's speaker supply configuration when the amplifiers attach again, so they keep their 2S and 4 ohm settings after the first stream instead of falling back to defaults, which could leave them silent (`2443`). `7.3-73` adds UFS on the Snapdragon X2 Elite (Glymur), which the Samsung Galaxy Book6 Edge boots from (`2920` to `2922`). `7.3-74` gives the Samsung Galaxy Book4 Edge 14 and 16 their battery, charger, USB-C ports, keyboard backlight and fan through Antheas Kapenekakis's EC and S2MM006 drivers, and the 14 its USB-C retimers, front camera and fingerprint reader, and the 14 the speaker cap of its WSA883x amplifiers (`2960` to `2972`). `7.3-75` builds hibernation, which the configuration had off, and carries the fixes a Snapdragon X1 laptop needs to come back from it (`2280` to `2287`). +The `pkgrel` counts N1x revisions of this package and starts again at 1 when the kernel version changes. On 7.2.5 it was `6.1` to `6.9` while it tracked `linux-omarchy`'s release; the ninth revision became `9`, `10` added the Dell XPS 16 patches, `11` brought a dock's displays back after a failed DisplayPort tunnel, `12` stopped the clock during suspend-to-idle, `13` brought NVIDIA's device sleep patches from 1022.23, `14` let keyboard and touchpad interrupts wake the system from the platform's deepest sleep, and `15` brought audio and UCSI fixes from upstream and turned kexec handover off by default. `7.2.8-1` moves to 7.2.8 and `linux-omarchy` 7.2.8-5's patch set, `2` closes a SoundWire interrupt race that could hang the boot, `3` stops `cppc_cpufreq` registering its artificial energy model, so EAS no longer packs the desktop onto the A725 cores, `4` ships the Snapdragon laptops' device trees and resets the Iris AHB bridge before hardware mode, `5` builds SCMI CPU frequency scaling in, which the Snapdragon laptops need, `6` lets suspend-to-idle reach the platform's deepest idle state, which brings sleep from 6-15 W to under 1 W, `7` stops reclaiming the GPU's reserved memory, which the firmware now sizes itself, `8` takes the name `linux-omarchy`, `9` registers `cppc_cpufreq`'s artificial energy model again, so that power-profiles-daemon's RTX Spark driver can turn EAS on and off with the governor, as NVIDIA designed it, `10` keeps a dock's tunnels through suspend-to-idle, so its USB devices and displays come back on resume, `11` spaces out a dock's DisplayPort teardowns, so the GPU sees both monitors leave when a two-monitor dock is unplugged, `13` keeps USB and the SSPM-dependent ACPI drivers working on a DGX Spark whose firmware hides the SSPM mailbox, `14` lets Bolt authorize new docks on its own, as it does on Intel and AMD laptops, `15` brings back the Snapdragon laptops' digital microphones, `16` lets UPower see a Snapdragon laptop's charger being plugged in and out, `17` adds the Surface Pro 11 patches, `19` lets the Snapdragon X1 laptops sleep with DDR in self-refresh and the SoC's CX rail collapsed, `20` turns on the Lenovo Yoga Slim 7x's webcam, `21` stops the camera bus controller from stalling when a camera starts again soon after it stopped, `22` stops the NVIDIA DGX Spark resetting when idle, and `23` keeps the Snapdragon laptops' Wi-Fi from stalling after the access point changes its channel or bandwidth and fixes an out-of-bounds read and a deadlock in the Iris video decoder. `7.3-1` moves to 7.3, ahead of `linux-omarchy`, `7.3-7` adds the ASUS Zenbook A16, `7.3-8` lets its Copilot key send F23, `7.3-9` gives the ASUS ProArt P14 its keyboard back on BIOS 303, and `7.3-10` adds the Acer Swift 14 AI and Swift Go 14, the Dell Latitude 5455 and the HP EliteBook 6 G1q. `7.3-12` adds `linux-omarchy-nvidia-open`, and `7.3-13` adds nine more laptops' trees from linux-next and linux-arm-msm and gives the Surface Pro 12in hardware IDs under the compatible its tree uses. `7.3-14` adds the HP OmniBook Ultra 14 and the ASUS Zenbook A14 X2 and the shared PCIe3 PHY their NVMe sits behind. `7.3-15` adds the HP OmniBook 5 14 and the ASUS Vivobook S16 (S3607QA), and `7.3-16` moves the Surface Laptop 8 to the board name of Qualcomm's posted tree and gives it hardware IDs. `7.3-17` loads its DSP firmware from the folder that tree names. `7.3-18` gives the ThinkPad T14s Gen 7 its Elan touchpad and adds the Lenovo IdeaPad 5x 2-in-1, the Lenovo IdeaPad Slim 3x and the ASUS Vivobook 16 (X1607QA). `7.3-19` adds the HP OmniBook 5 16 (2026), and `7.3-20` gives the Dell Inspiron 14 5441 hardware IDs. `7.3-21` gives the Anduril BlueChip hardware IDs under the Glymur CRD's tree, `7.3-22` gives it its own tree, and `7.3-23` names FAT files in UTF-8 and mounts FAT in the initramfs. `7.3-24` keeps kernel crash logs out of UEFI variables, lets RCU batch its callbacks while idle and compresses the modules. `7.3-25` gives monitors on the ASUS Zenbook A14, the HP OmniBook X 14 and the Surface Laptop 7 sound. `7.3-26` adds the ASUS ProArt PZ13. `7.3-27` links only the Anduril BlueChip's left speakers, so its sound card plays. `7.3-28` adds the HP OmniBook 3 14 and 16 and gives the Samsung Galaxy Book4 Edge 16 hardware IDs. `7.3-29` adds the ASUS Zenbook 14 UX3480QA and restores the ASUS 0B05:4B42 keyboard's backlight and Fn-lock after sleep. `7.3-30` adds the Microsoft Surface Laptop 8 15-inch. `7.3-31` keeps an open geni UART clocked across system sleep (`2217`). `7.3-38` gives the ASUS Zenbook 14 UX3480QAB hardware IDs under the UX3480QA's tree and turns that tree's CoreSight debug blocks off, without which the UX3480QAB resets once qcom_aoss loads. `7.3-39` lets the Snapdragon X1 laptops' lid switch report both edges, so closing the lid suspends them, honours the time zone stored with the Qualcomm UEFI RTC offset, and delivers the audio DSP's replies sent while q6apm probes, so the sound card no longer binds 5 s late. `7.3-40` adds the ASUS Vivobook 14 (X1407QA) and takes the hardware ID every ASUS laptop with an empty SKU shares out of the Vivobook 16's file. `7.3-41` skips the ProArt P16's PSYS and PSOC thermal zones, as on the XPS 16. `7.3-42` gives the European Samsung Galaxy Book4 Edge 14, the NP940XMA, hardware IDs under the 14-inch tree, since none of the NP944XMA's match it. `7.3-43` adds the Dell Inspiron 14 5441 with the X1P-42-100 and the Lenovo ThinkCentre neo 50q QC, and gives the Surface Pro 11 with the LCD hardware IDs for its own tree. `7.3-44` adds the ASUS ProArt PZ14. `7.3-46` brings back `soc_button_array`. `7.3-47` moves the Snapdragon laptops' device trees and hardware IDs to `linux-omarchy-dtbs`, which this package depends on. `7.3-48` gives the LCD Surface Pro 11's other cores cpufreq (`2157`), its panel's timings (`2160`) and its speakers' settings (`2441`), and stops the Surface Pro 11 reporting a second battery (`2765`). Its tree's backlight and CPU fixes are in `linux-omarchy-dtbs`. `7.3-49` keeps wsa884x's PA fault recovery to the Surface Pro 11 and stops it resetting an amplifier that faults again at once (`2442`). `7.3-50` adds the HP OmniBook X 14's audio topology to the MT8901 machine driver (`1061`). `7.3-51` lets a USB-C repeater that fails channel equalisation with TPS4 retry with TPS3 (`2444`). `7.3-52` writes the DVFSRC flag only on the N1x laptops, so no GB10 desktop gets it (`1115`). `7.3-53` brings DisplayPort back through USB4 docks such as the Lenovo 40B0 on the X1 machines with the PS883x retimer (`2445` to `2447`). `7.3-55` updates the Glymur USB3 PHY settings to Qualcomm's latest hardware reference (`2840`). `7.3-56` gives the Surface Laptop 8 a real-time clock (`2766` to `2769`). `7.3-57` reads the Surface Laptop 8's battery and charger from SAM, as Windows does (`2773`, `2774`). `7.3-58` makes the Surface Laptop 8's microphone key mute the microphone (`2775`). `7.3-59` sets a DisplayPort controller's clock parents only once its PHY is on, so a USB-C display output the firmware left off at boot, such as the Lenovo IdeaCentre Mini's, comes up (`2448`, `2449`). `7.3-60` runs USB4 on the Surface Laptop 8's second USB-C port, with a display through a dock (`2850` to `2856`). `7.3-61` plays the Dell XPS 13 9345's four speakers in the right order (`2450`, `2451`). `7.3-62` gives the Snapdragon X2 Surfaces without a tree in Linux their SAM battery, charger, clock, fan and type cover (`2776` to `2778`), and gives Kalambo, the X2P-42-100, its display compression settings, DSP domains and UEFI variables (`2860`, `2861`). `7.3-69` gives the ASUS Vivobook S 16 S3607QA's keyboard its Fn keys and backlight (`1116`). `7.3-71` keeps the Surface Pro 11's speaker supply configuration when the amplifiers attach again, so they keep their 2S and 4 ohm settings after the first stream instead of falling back to defaults, which could leave them silent (`2443`). `7.3-73` adds UFS on the Snapdragon X2 Elite (Glymur), which the Samsung Galaxy Book6 Edge boots from (`2920` to `2922`). `7.3-74` gives the Samsung Galaxy Book4 Edge 14 and 16 their battery, charger, USB-C ports, keyboard backlight and fan through Antheas Kapenekakis's EC and S2MM006 drivers, and the 14 its USB-C retimers, front camera and fingerprint reader, and the 14 the speaker cap of its WSA883x amplifiers (`2960` to `2972`). `7.3-75` builds hibernation (`CONFIG_HIBERNATION`, as `linux-omarchy` has it on x86_64), which the configuration had off. No ARM laptop is known to come back from it yet, and Omarchy sets it up on one only when asked to with `omarchy-hibernation-setup --experimental`. [`UPGRADING-7.3.md`](UPGRADING-7.3.md) has notes for the move to 7.3: what each N1x patch needs there, what upstream already has, and how to verify the result. @@ -155,8 +155,6 @@ The package build fails unless every tree it installs rebuilds from the shipped `2217` keeps an open geni UART clocked across system sleep and releases only its baud-rate OPP vote and interconnect vote, instead of the force suspend 7.3 added (d0cd9c8d0fd5). On the Surface Pro 11 the Surface Aggregator EC sits on such a UART, and with the force suspend a suspend that closely follows a resume could leave the EC link dead: every SAM request timed out and the machine hung in resume. Dropping the force suspend alone avoids that but keeps CX from collapsing, because the OPP vote stays in the sleep set. Why keeping the engine clocked avoids the hang is not established. The change is in the generic driver, so it changes the sleep path of every open geni UART, Bluetooth on the X1 laptops included; closed, runtime-suspended ports are left alone, as before. Runtime PM stays off across the transition, as it did with the force suspend, so a wake interrupt can't bring a closed port back up partway through suspend and leave it holding its votes for the whole sleep. -`2280` to `2287` are for hibernation on the Snapdragon X1 laptops, which this kernel builds since 7.3-75 (`CONFIG_HIBERNATION`, as `linux-omarchy` has it on x86_64). A hibernation image is restored after a power cycle, by a kernel that set up only the hardware it used itself. `2280` writes the pin configuration to the TLMM again, without which the Wi-Fi and Bluetooth enable lines stay as the loading kernel left them. `2281` to `2283` are Krishna Chaitanya Chundru's and Manivannan Sadhasivam's "PCI: qcom: Implement shutdown()" v6, and `2284` builds on it to power a PCIe controller down when hibernating. Without `2284` a Lenovo Yoga Slim 7x resets on every resume, since the image records a controller as running that the loading kernel never brought up. `2285` makes smp2p start over after a restore, so a remote processor started afterwards comes up. `2286` resets hci_qca's in-band sleep state on power off, and `2287` sets a geni serial engine up again after a restore, without which the WCN7850's Bluetooth never answers. `2280`, `2284`, `2285`, `2286` and `2287` are Birk Skyum's and were posted to the kernel lists in October 2026. With all eight on 7.3-3 a Yoga Slim 7x restored its session after a power-off twice, in 112 s and 89 s. Two faults were left then. Battery readings time out after a restore while the audio DSP runs, and stopping the DSP first resets the laptop on 7.3. `2217` has changed the serial driver's sleep callbacks since, and `2287` applies on top of it. Omarchy does not set hibernation up on an ARM computer by itself, so nothing changes for an install until its owner asks for it. - `2780` to `2786` are Dmitry Baryshkov's "firmware: qcom: enable UEFI variables on Lenovo Yoga C630", v4 patches 1 to 7 ([posted on 25 June 2025](https://lore.kernel.org/all/20250625-more-qseecom-v4-0-aacca9306cee@oss.qualcomm.com/) and not applied yet), and `2787` is our own. Linux reads and writes the UEFI variables through QSEECOM: `efibootmgr`'s boot entries and the RTC offset the firmware keeps there. Upstream uses QSEECOM only on the machines in `qcom_scm`'s allowlist, so every laptop added here needed a driver patch, and with it a kernel rebuild. The series lets the allowlist name SoC families and give a machine quirks (read-only variables, or no QSEECOM at all), and adds `qcom_scm.qseecom=` (`auto`, `force`, `roefivars` or `off`) to override it at boot. `2786` lists the SC8180X, SC8280XP, X1E80100 and X1P42100 families instead of their machines, and `2787` adds the X2's Glymur and Mahua, so a new Snapdragon X laptop gets its UEFI variables through its device tree alone. They are rebased onto 7.3, which checks the allowlist with `of_machine_device_match()`, and each notes what changed. They come last in the list because they replace the allowlist that the machine patches before them extend, which stay as they are. Against the machine list, every machine that had QSEECOM keeps it. The HP OmniBook X 16 (Mahua) and the X1P model of the OmniBook X14 get it for the first time, and the SC8280XP CRD and the Yoga C630 get it with read-only variables. Patch 8 of the series, a Yoga C630 device tree change, stays out.