/linux/tools/power/pm-graph/config/ |
H A D | example.cfg | 2 # Generic S3 (Suspend to Mem) test 9 # sudo ./sleepgraph.py -config config/example.cfg 14 # ---- General Options ---- 20 # Suspend Mode 26 output-dir: suspend-{hostname}-{date}-{time} 36 # Suspend/Resume Gap 37 # insert a small visible gap between suspend and resume on the timeline (default: false) 44 # Sync filesystem before suspend 48 # Runtime suspend enable/disable 49 # Enable/disable runtime suspend for all devices, restore all after test (default: no-action) [all …]
|
H A D | custom-timeline-functions.cfg | 7 # sudo ./sleepgraph.py -config thisfile.txt 16 # Suspend Mode 36 # Back to Back Suspend/Resume 37 # Run two suspend/resumes back to back (default: false) 40 # Back to Back Suspend Delay 52 # Suspend/Resume Gap 53 # insert a small visible gap between suspend and resume on the timeline (default: false) 58 output-dir: suspend-{hostname}-{date}-{time}-custom 60 # Override default timeline entries 63 override-timeline-functions: true [all …]
|
/linux/Documentation/devicetree/bindings/phy/ |
H A D | qca,ar7100-usb-phy.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/phy/qca,ar7100-usb-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alban Bedel <albeu@free.fr> 15 - const: qca,ar7100-usb-phy 17 reset-names: 21 - const: phy 22 - const: suspend-override 28 - description: Reset controller for phy [all …]
|
/linux/tools/power/pm-graph/ |
H A D | README | 8 pm-graph: suspend/resume/boot timing analysis tools 11 …Home Page: https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/overvi… 13 Report bugs/issues at bugzilla.kernel.org Tools/pm-graph 14 - https://bugzilla.kernel.org/buglist.cgi?component=pm-graph&product=Tools 17 - Getting Started: 20 - Feature Summary: 21 https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/features.html 23 - upstream version in git: 24 git clone https://github.com/intel/pm-graph/ 27 - Overview [all …]
|
/linux/kernel/time/ |
H A D | clocksource.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 #include "tick-internal.h" 27 u64 delta = clocksource_delta(end, start, cs->mask, cs->max_raw_delta); in cycles_to_nsec_safe() 29 if (likely(delta < cs->max_cycles)) in cycles_to_nsec_safe() 30 return clocksource_cyc2ns(delta, cs->mult, cs->shift); in cycles_to_nsec_safe() 32 return mul_u64_u32_shr(delta, cs->mul in cycles_to_nsec_safe() [all...] |
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-puma.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/pwm/pwm.h> 17 compatible = "gpio-leds"; 18 pinctrl-names = "default"; 19 pinctrl-0 = <&module_led_pin>; 21 module_led: led-0 { 24 linux,default-trigger = "heartbeat"; 25 panic-indicator; 29 extcon_usb3: extcon-usb3 { 30 compatible = "linux,extcon-usb-gpio"; [all …]
|
H A D | px30-ringneck.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/leds/common.h> 20 attiny-updi-gate-regulator { 21 compatible = "regulator-output"; 22 vout-supply = <&vg_attiny_updi>; 25 emmc_pwrseq: emmc-pwrseq { 26 compatible = "mmc-pwrseq-emmc"; 27 pinctrl-0 = <&emmc_reset>; 28 pinctrl-names = "default"; [all …]
|
/linux/drivers/phy/qualcomm/ |
H A D | phy-ath79-usb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2015-2018 Alban Bedel <albeu@free.fr> 16 /* The suspend override logic is inverted, hence the no prefix 27 if (priv->no_suspend_override) { in ath79_usb_phy_power_on() 28 err = reset_control_assert(priv->no_suspend_override); in ath79_usb_phy_power_on() 33 err = reset_control_deassert(priv->reset); in ath79_usb_phy_power_on() 34 if (err && priv->no_suspend_override) in ath79_usb_phy_power_on() 35 reset_control_deassert(priv->no_suspend_override); in ath79_usb_phy_power_on() 45 err = reset_control_assert(priv->reset); in ath79_usb_phy_power_off() 49 if (priv->no_suspend_override) { in ath79_usb_phy_power_off() [all …]
|
/linux/include/xen/interface/ |
H A D | sched.h | 1 /* SPDX-License-Identifier: MIT */ 28 * @arg == Operation-specific extra argument(s), as described below. 29 * ... == Additional Operation-specific extra arguments, described below. 62 * x86 PV guests must also set RDX (EDX for 32-bit guests) to the MFN 67 * returns 1 if suspend was cancelled or the domain was merely 73 * Poll a set of event-channel ports. Return when one or more are pending. An 81 * in interpreting shutdown requests and reasons for fully-virtualized 82 * domains. A para-virtualized domain may use SCHEDOP_shutdown directly. 105 * Override the current vcpu affinity by pinning it to one physical cpu or 106 * undo this override restoring the previous affinity. [all …]
|
/linux/drivers/clocksource/ |
H A D | acpi_pm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 static void (*suspend_resume_callback)(void *data, bool suspend); 65 void acpi_pmtmr_register_suspend_resume_callback(void (*cb)(void *data, bool suspend), void *data) in acpi_pmtmr_register_suspend_resume_callback() argument 102 .suspend = acpi_pm_suspend, 143 if (dev->revision < 3) { in acpi_pm_check_blacklist() 144 pr_warn("* Found PM-Timer Bug on the chipset. Due to workarounds for a bug,\n" in acpi_pm_check_blacklist() 158 pr_warn("* The chipset may have PM-Timer Bug. Due to workarounds for a bug,\n" in acpi_pm_check_graylist() 187 delta = (value2 - value1) & ACPI_PM_MASK; in verify_pmtmr_rate() 192 pr_info("PM-Timer running at invalid rate: %lu%% of normal - aborting.\n", in verify_pmtmr_rate() 194 return -1; in verify_pmtmr_rate() [all …]
|
/linux/include/linux/ |
H A D | suspend.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 44 * struct platform_suspend_ops - Callbacks for managing platform dependent 66 * appropriate .suspend() method has been executed for each device) and 67 * before device drivers' late suspend callbacks are executed. It returns 75 * device drivers' late suspend callbacks have been executed. It returns 93 * @finish: Finish wake-up of the platform. 94 * @finish is called right prior to calling device drivers' regular suspend 101 * @suspend_again: Returns whether the system should suspend again (true) or 104 * suspend_again callback is the place assuming that periodic-wakeup or 105 * alarm-wakeup is already setup. This allows to execute some codes while [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | rockchip,rk817.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chris Zhong <zyw@rock-chips.com> 11 - Zhang Qing <zhangqing@rock-chips.com> 21 - rockchip,rk809 22 - rockchip,rk817 30 '#clock-cells': 32 See <dt-bindings/clock/rockchip,rk808.h> for clock IDs. 39 clock-names: [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | base.c | 32 if (init->func->mmio) in nvkm_devinit_mmio() 33 addr = init->func->mmio(init, addr); in nvkm_devinit_mmio() 40 return init->func->pll_set(init, type, khz); in nvkm_devinit_pll_set() 46 if (init->func->meminit) in nvkm_devinit_meminit() 47 init->func->meminit(init); in nvkm_devinit_meminit() 53 if (init && init->func->disable) in nvkm_devinit_disable() 54 init->func->disable(init); in nvkm_devinit_disable() 63 if (init && init->func->post) in nvkm_devinit_post() 64 ret = init->func->post(init, init->post); in nvkm_devinit_post() 70 nvkm_devinit_fini(struct nvkm_subdev *subdev, bool suspend) in nvkm_devinit_fini() argument [all …]
|
/linux/arch/riscv/kernel/ |
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # Makefile for the RISC-V Linux kernel 12 CFLAGS_syscall_table.o += $(call cc-disable-warning, override-init) 13 CFLAGS_compat_syscall_table.o += $(call cc-disable-warning, override-init) 16 AFLAGS_kexec_relocate.o := -mcmodel=medany $(call cc-option,-mno-relax) 21 CFLAGS_alternative.o := -mcmodel=medany 22 CFLAGS_cpufeature.o := -mcmodel=medany 23 CFLAGS_sbi_ecall.o := -mcmodel=medany 30 CFLAGS_alternative.o += -fno-pie 31 CFLAGS_cpufeature.o += -fno-pie [all …]
|
/linux/drivers/phy/broadcom/ |
H A D | phy-brcm-usb-init-synopsys.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include "phy-brcm-usb-init.h" 110 void __iomem *usb_mdio = params->regs[BRCM_REGS_USB_MDIO]; in usb_mdio_write_7211b0() 112 addr &= 0x1f; /* 5-bit address */ in usb_mdio_write_7211b0() 128 void __iomem *usb_mdio = params->regs[BRCM_REGS_USB_MDIO]; in usb_mdio_read_7211b0() 130 addr &= 0x1f; /* 5-bit address */ in usb_mdio_read_7211b0() 155 void __iomem *ctrl = params->regs[BRCM_REGS_CTRL]; in xhci_soft_reset() 156 void __iomem *xhci_gbl = params->regs[BRCM_REGS_XHCI_GBL]; in xhci_soft_reset() 161 /* De-assert reset */ in xhci_soft_reset() 165 if (params->supported_port_modes != USB_CTLR_MODE_DRD) in xhci_soft_reset() [all …]
|
/linux/drivers/usb/host/ |
H A D | ohci-at91.c | 1 // SPDX-License-Identifier: GPL-1.0+ 6 * Copyright (C) 2005 Thibaut VARENE <varenet@parisc-linux.org> 11 * Based on ohci-omap.c 16 #include <linux/arm-smccc.h> 18 #include <linux/dma-mapping.h> 30 #include <soc/at91/atmel-sfr.h> 40 ((struct ohci_at91_priv *)hcd_to_ohci(h)->priv) 57 bool wakeup; /* Saved wake-up state for resume */ 71 /*-------------------------------------------------------------------------*/ 75 if (ohci_at91->clocked) in at91_start_clock() [all …]
|
/linux/Documentation/pcmcia/ |
H A D | driver-changes.rst | 8 If `struct pcmcia_device *p_dev->config_flags` is set accordingly, 10 automatically, though the driver may still override the settings 14 - CONF_AUTO_CHECK_VCC : check for matching Vcc 15 - CONF_AUTO_SET_VPP : set Vpp 16 - CONF_AUTO_AUDIO : auto-enable audio line, if required 17 - CONF_AUTO_SET_IO : set ioport resources (->resource[0,1]) 18 - CONF_AUTO_SET_IOMEM : set first iomem resource (->resource[2]) 20 * pcmcia_request_configuration -> pcmcia_enable_device (as of 2.6.36) 28 `struct pcmcia_device *p_dev->resource[2,3,4,5]` for up to four ioport 30 are reserved and may be used immediately -- until pcmcia_release_window() [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_drv.c | 40 #include <linux/suspend.h> 60 * - 3.0.0 - initial driver 61 * - 3.1.0 - allow reading more status registers (GRBM, SRBM, SDMA, CP) 62 * - 3.2.0 - GFX8: Uses EOP_TC_WB_ACTION_EN, so UMDs don't have to do the same 64 * - 3.3.0 - Add VM support for UVD on supported hardware. 65 * - 3.4.0 - Add AMDGPU_INFO_NUM_EVICTIONS. 66 * - 3.5.0 - Add support for new UVD_NO_OP register. 67 * - 3.6.0 - kmd involves use CONTEXT_CONTROL in ring buffer. 68 * - 3.7.0 - Add support for VCE clock list packet 69 * - 3.8.0 - Add support raster config init in the kernel [all …]
|
/linux/drivers/ufs/host/ |
H A D | ufs-hisi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2016-2017 Linaro Ltd. 6 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd. 14 #include <linux/dma-mapping.h> 19 #include "ufshcd-pltfrm.h" 21 #include "ufs-hisi.h" 57 dev_err(hba->dev, "%s: unable to get TX_FSM_STATE, err %d\n", in ufs_hisi_check_hibern8() 61 err = -1; in ufs_hisi_check_hibern8() 62 dev_err(hba->dev, "%s: invalid TX_FSM_STATE, lane0 = %d, lane1 = %d\n", in ufs_hisi_check_hibern8() 88 if (!IS_ERR(host->rst)) in ufs_hisi_soc_init() [all …]
|
/linux/kernel/power/ |
H A D | power.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #include <linux/suspend.h> 54 * their .suspend() routines without breaking the suspend to disk. 190 * SF_COMPRESSION_ALG_LZ4 to override this behaviour and use LZ4. 192 * SF_CRC32_MODE, SF_COMPRESSION_ALG_LZO(dummy) -> Compression, LZO 193 * SF_CRC32_MODE, SF_COMPRESSION_ALG_LZ4 -> Compression, LZ4 214 /* kernel/power/suspend.c */ 225 return -ENOSYS; in suspend_devices_and_enter() 252 * Suspend test levels 267 #define TEST_MAX (__TEST_AFTER_LAST - 1)
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-power | 15 labels, which may be "mem" (suspend), "standby" (power-on 16 suspend), "freeze" (suspend-to-idle) and "disk" (hibernation). 21 See Documentation/admin-guide/pm/sleep-states.rst for more 29 system suspend. Reading from it returns the available modes 32 to suspend the system (by writing "mem" to the /sys/power/state 36 represented by it to be used on subsequent attempts to suspend 39 See Documentation/admin-guide/pm/sleep-states.rst for more 47 suspend-to-disk mechanism. Reading from this file returns 49 sleep on the next suspend. There are four methods supported: 51 'firmware' - means that the memory image will be saved to disk [all …]
|
/linux/sound/soc/sof/ |
H A D | core.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 15 #include "sof-priv.h" 16 #include "sof-of-dev.h" 22 /* Module parameters for firmware, topology and IPC type override */ 43 static int override_ipc_type = -1; 45 MODULE_PARM_DESC(ipc_type, "Force SOF IPC type. 0 - IPC3, 1 - IPC4"); 68 * sof_debug_check_flag - check if a given flag(s) is set in sof_core_debug 109 * sof_print_oops_and_stack - Handle the printing of DSP oops and stack trace 133 dev_printk(level, sdev->dev, "unexpected fault %#010x trace %#010x\n", in sof_print_oops_and_stack() 142 dev_printk(level, sdev->dev, "reason: %s (%#x)\n", in sof_print_oops_and_stack() [all …]
|
/linux/Documentation/devicetree/bindings/soc/ti/ |
H A D | wkup-m3-ipc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/ti/wkup-m3-ipc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dave Gerlach <d-gerlach@ti.com> 11 - Drew Fustini <dfustini@baylibre.com> 14 The TI AM33xx and AM43xx family of devices use a small Cortex M3 co-processor 16 that cannot be controlled from the MPU, like suspend/resume and certain deep 17 C-states for CPU Idle. Once the wkup_m3_ipc driver uses the wkup_m3_rproc driver 29 On some boards like the AM335x EVM-SK and the AM437x GP EVM, a GPIO pin is [all …]
|
/linux/drivers/ata/ |
H A D | ahci.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * ahci.h - Common AHCI SATA definitions and declarations 6 * Please ALWAYS copy linux-ide@vger.kernel.org 9 * Copyright 2004-2005 Red Hat, Inc. 12 * as Documentation/driver-api/libata.rst 80 HOST_RESET = BIT(0), /* reset controller; self-clear */ 92 HOST_CAP_FBS = BIT(16), /* FIS-based switching support */ 95 HOST_CAP_CLO = BIT(24), /* Command List Override support */ 98 HOST_CAP_SSS = BIT(27), /* Staggered Spin-up */ 102 HOST_CAP_64 = BIT(31), /* PCI DAC (64-bit DMA) support */ [all …]
|
/linux/sound/soc/intel/boards/ |
H A D | bytcht_es8316.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * bytcht_es8316.c - ASoc Machine driver for Intel Baytrail/Cherrytrail 7 * Authors: David Yang <yangxiaohua@everest-semi.com>, 29 #include <sound/soc-acpi.h> 30 #include "../../codecs/es83xx-dsm-common.h" 31 #include "../atom/sst-atom-controls.h" 32 #include "../common/soc-intel-quirks.h" 34 /* jd-inv + terminating entry */ 57 static int quirk_override = -1; 59 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); [all …]
|