/linux-6.12.1/drivers/gpu/drm/i915/gt/ |
D | selftest_slpc.c | 1 // SPDX-License-Identifier: MIT 26 static int slpc_set_min_freq(struct intel_guc_slpc *slpc, u32 freq) in slpc_set_min_freq() argument 30 ret = intel_guc_slpc_set_min_freq(slpc, freq); in slpc_set_min_freq() 32 pr_err("Could not set min frequency to [%u]\n", freq); in slpc_set_min_freq() 39 static int slpc_set_max_freq(struct intel_guc_slpc *slpc, u32 freq) in slpc_set_max_freq() argument 43 ret = intel_guc_slpc_set_max_freq(slpc, freq); in slpc_set_max_freq() 46 freq); in slpc_set_max_freq() 53 static int slpc_set_freq(struct intel_gt *gt, u32 freq) in slpc_set_freq() argument 56 struct intel_guc_slpc *slpc = >_to_guc(gt)->slpc; in slpc_set_freq() 58 err = slpc_set_max_freq(slpc, freq); in slpc_set_freq() [all …]
|
D | selftest_rps.c | 1 // SPDX-License-Identifier: MIT 26 #define CPU_LATENCY 0 /* -1 to disable pm_qos, 0 to disable cstates */ 37 return -1; in cmp_u64() 49 return -1; in cmp_u32() 68 #define CS_GPR(x) GEN8_RING_CS_GPR(engine->mmio_base, x) in create_spin_counter() 76 obj = i915_gem_object_create_internal(vm->i915, 64 << 10); in create_spin_counter() 80 end = obj->base.size / sizeof(u32) - 1; in create_spin_counter() 113 loop = cs - base; in create_spin_counter() 134 GEM_BUG_ON(cs - base > end); in create_spin_counter() 151 static u8 wait_for_freq(struct intel_rps *rps, u8 freq, int timeout_ms) in wait_for_freq() argument [all …]
|
D | selftest_llc.c | 1 // SPDX-License-Identifier: MIT 11 struct drm_i915_private *i915 = llc_to_gt(llc)->i915; in gen6_verify_ring_freq() 17 wakeref = intel_runtime_pm_get(llc_to_gt(llc)->uncore->rpm); in gen6_verify_ring_freq() 25 struct intel_rps *rps = &llc_to_gt(llc)->rps; in gen6_verify_ring_freq() 33 if (snb_pcode_read(llc_to_gt(llc)->uncore, GEN6_PCODE_READ_MIN_FREQ_TABLE, in gen6_verify_ring_freq() 35 pr_err("Failed to read freq table[%d], range [%d, %d]\n", in gen6_verify_ring_freq() 37 err = -ENXIO; in gen6_verify_ring_freq() 43 …pr_err("Min freq table(%d/[%d, %d]):%dMHz did not match expected CPU freq, found %d, expected %d\n… in gen6_verify_ring_freq() 47 err = -EINVAL; in gen6_verify_ring_freq() 53 …pr_err("Min freq table(%d/[%d, %d]):%dMHz did not match expected ring freq, found %d, expected %d\… in gen6_verify_ring_freq() [all …]
|
/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_guc_pc.c | 1 // SPDX-License-Identifier: MIT 56 * including frequency management, Render-C states management, and various 69 * Render-C States: 72 * Render-C states is also a GuC PC feature that is now enabled in Xe for 84 return &pc_to_guc(pc)->ct; in pc_to_ct() 99 return &pc->bo->vmap; in pc_to_maps() 130 wait = timeout_us - slept; in wait_for_pc_state() 133 return -ETIMEDOUT; in wait_for_pc_state() 142 xe_bo_ggtt_addr(pc->bo), in pc_action_reset() 161 xe_bo_ggtt_addr(pc->bo), in pc_action_query_task_state() [all …]
|
D | xe_gt_freq.c | 1 // SPDX-License-Identifier: MIT 32 * Xe's Freq provides a sysfs API for frequency management: 34 * device/tile#/gt#/freq0/<item>_freq *read-only* files: 35 * - act_freq: The actual resolved frequency decided by PCODE. 36 * - cur_freq: The current one requested by GuC PC to the PCODE. 37 * - rpn_freq: The Render Performance (RP) N level, which is the minimal one. 38 * - rpe_freq: The Render Performance (RP) E level, which is the efficient one. 39 * - rp0_freq: The Render Performance (RP) 0 level, which is the maximum one. 41 * device/tile#/gt#/freq0/<item>_freq *read-write* files: 42 * - min_freq: Min frequency request. [all …]
|
/linux-6.12.1/tools/power/cpupower/utils/ |
D | cpufreq-set.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * (C) 2004-2009 Dominik Brodowski <linux@dominikbrodowski.de> 24 {"min", required_argument, NULL, 'd'}, 27 {"freq", required_argument, NULL, 'f'}, 35 "- Do you have proper administration rights? (super-user?)\n" in print_error() 36 "- Is the governor you requested available and modprobed?\n" in print_error() 37 "- Trying to set an invalid policy?\n" in print_error() 38 "- Trying to set a specific frequency, but userspace governor is not available,\n" in print_error() 49 {"hz", -3}, 68 unsigned long freq; in string_to_frequency() local [all …]
|
/linux-6.12.1/drivers/cpufreq/ |
D | freq_table.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2002 - 2003 Dominik Brodowski 19 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq() 25 if (pos->flags & CPUFREQ_BOOST_FREQ) in policy_has_boost_freq() 38 unsigned int freq; in cpufreq_frequency_table_cpuinfo() local 41 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo() 43 if ((!cpufreq_boost_enabled() || !policy->boost_enabled) in cpufreq_frequency_table_cpuinfo() 44 && (pos->flags & CPUFREQ_BOOST_FREQ)) in cpufreq_frequency_table_cpuinfo() 47 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo() 48 if (freq < min_freq) in cpufreq_frequency_table_cpuinfo() [all …]
|
D | sh-cpufreq.c | 4 * Copyright (C) 2002 - 2012 Paul Mundt 7 * Clock framework bits from arch/avr32/mach-at32ap/cpufreq.c 9 * Copyright (C) 2004-2007 Atmel Corporation 34 unsigned int freq; member 45 struct cpufreq_policy *policy = target->policy; in __sh_cpufreq_target() 46 int cpu = policy->cpu; in __sh_cpufreq_target() 50 long freq; in __sh_cpufreq_target() local 53 return -ENODEV; in __sh_cpufreq_target() 58 freq = clk_round_rate(cpuclk, target->freq * 1000); in __sh_cpufreq_target() 60 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) in __sh_cpufreq_target() [all …]
|
D | cpufreq_userspace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * (C) 2002 - 2004 Dominik Brodowski <linux@brodo.de> 25 * cpufreq_set - set the CPU frequency 26 * @policy: pointer to policy struct where freq is being set 27 * @freq: target frequency in kHz 29 * Sets the CPU frequency to freq. 31 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) in cpufreq_set() argument 33 int ret = -EINVAL; in cpufreq_set() 34 struct userspace_policy *userspace = policy->governor_data; in cpufreq_set() 36 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set() [all …]
|
/linux-6.12.1/arch/arm/boot/dts/ti/omap/ |
D | elpida_ecb240abacn.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 compatible = "elpida,ECB240ABACN","jedec,lpddr2-s4"; 10 io-width = <32>; 12 tRPab-min-tck = <3>; 13 tRCD-min-tck = <3>; 14 tWR-min-tck = <3>; 15 tRASmin-min-tck = <3>; 16 tRRD-min-tck = <2>; 17 tWTR-min-tck = <2>; 18 tXP-min-tck = <2>; [all …]
|
/linux-6.12.1/include/linux/ |
D | cpufreq.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 6 * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de> 30 * Maximum transition latency is in nanoseconds - if it's unknown, 34 #define CPUFREQ_ETERNAL (-1) 51 /* in 10^(-9) s = nanoseconds */ 68 unsigned int min; /* in kHz */ member 72 unsigned int suspend_freq; /* freq to set during suspend */ 96 * - Any routine that wants to read from the policy structure will 98 * - Any routine that will write to the policy structure and/or may take away 106 * - fast_switch_possible should be set by the driver if it can [all …]
|
/linux-6.12.1/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_slpc.c | 1 // SPDX-License-Identifier: MIT 30 return slpc_to_gt(slpc)->i915; in slpc_to_i915() 35 /* GuC SLPC is unavailable for pre-Gen12 */ in __detect_slpc_supported() 36 return guc->submission_supported && in __detect_slpc_supported() 45 return guc->submission_selected; in __guc_slpc_selected() 52 slpc->supported = __detect_slpc_supported(guc); in intel_guc_slpc_init_early() 53 slpc->selected = __guc_slpc_selected(guc); in intel_guc_slpc_init_early() 64 data->override_params.bits[id >> 5] |= (1 << (id % 32)); in slpc_mem_set_param() 65 data->override_params.values[id] = value; in slpc_mem_set_param() 94 GEM_BUG_ON(!slpc->vma); in slpc_get_state() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/memory-controllers/ddr/ |
D | jedec,lpddr2-timings.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2-timings.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR2 SDRAM AC timing parameters for a given speed-bin 10 - Krzysztof Kozlowski <krzk@kernel.org> 14 const: jedec,lpddr2-timings 16 max-freq: 19 Maximum DDR clock frequency for the speed-bin, in Hz. 21 min-freq: [all …]
|
D | jedec,lpddr2.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR2 SDRAM compliant to JEDEC JESD209-2 10 - Krzysztof Kozlowski <krzk@kernel.org> 13 - $ref: jedec,lpddr-props.yaml# 18 - items: 19 - enum: 20 - elpida,ECB240ABACN [all …]
|
D | jedec,lpddr3-timings.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr3-timings.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR3 SDRAM AC timing parameters for a given speed-bin 10 - Krzysztof Kozlowski <krzk@kernel.org> 14 const: jedec,lpddr3-timings 19 Maximum DDR clock frequency for the speed-bin, in Hz. 20 Property is deprecated, use max-freq. 23 max-freq: [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/sound/ |
D | atmel,sama5d2-pdmic.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/sound/atmel,sama5d2-pdmic.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Claudiu Beznea <claudiu.beznea@microchip.com> 20 const: atmel,sama5d2-pdmic 30 - description: peripheral clock 31 - description: generated clock 33 clock-names: 35 - const: pclk [all …]
|
/linux-6.12.1/drivers/crypto/intel/qat/qat_common/ |
D | adf_clock.c | 1 // SPDX-License-Identifier: GPL-2.0-only 58 delta_us = timespec_to_us(&ts2) - timespec_to_us(&ts1); in measure_clock() 59 } while (delta_us > MEASURE_CLOCK_DELTA_THRESHOLD_US && --tries); in measure_clock() 63 return -ETIMEDOUT; in measure_clock() 74 return -EIO; in measure_clock() 77 delta_us = timespec_to_us(&ts4) - timespec_to_us(&ts3); in measure_clock() 78 } while (delta_us > MEASURE_CLOCK_DELTA_THRESHOLD_US && --tries); in measure_clock() 82 return -ETIMEDOUT; in measure_clock() 85 delta_us = timespec_to_us(&ts3) - timespec_to_us(&ts1); in measure_clock() 87 return -EINVAL; in measure_clock() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu12/ |
D | renoir_ppt.c | 158 struct smu_table_context *smu_table = &smu->smu_table; in renoir_init_smc_tables() 159 struct smu_table *tables = smu_table->tables; in renoir_init_smc_tables() 168 smu_table->clocks_table = kzalloc(sizeof(DpmClocks_t), GFP_KERNEL); in renoir_init_smc_tables() 169 if (!smu_table->clocks_table) in renoir_init_smc_tables() 172 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in renoir_init_smc_tables() 173 if (!smu_table->metrics_table) in renoir_init_smc_tables() 175 smu_table->metrics_time = 0; in renoir_init_smc_tables() 177 smu_table->watermarks_table = kzalloc(sizeof(Watermarks_t), GFP_KERNEL); in renoir_init_smc_tables() 178 if (!smu_table->watermarks_table) in renoir_init_smc_tables() 181 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v2_2); in renoir_init_smc_tables() [all …]
|
/linux-6.12.1/arch/arm/boot/dts/samsung/ |
D | exynos5250-spring.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 10 #include <dt-bindings/clock/samsung,s2mps11.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 13 #include <dt-bindings/input/input.h> 19 chassis-type = "laptop"; 33 stdout-path = "serial3:115200n8"; 36 gpio-keys { 37 compatible = "gpio-keys"; [all …]
|
D | exynos5250-smdk5250.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 10 #include <dt-bindings/clock/maxim,max77686.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 31 stdout-path = "serial2:115200n8"; 34 vdd: fixed-regulator-vdd { 35 compatible = "regulator-fixed"; 36 regulator-name = "vdd-supply"; 37 regulator-min-microvolt = <1800000>; [all …]
|
D | exynos5250-snow-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/clock/maxim,max77686.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/sound/samsung-i2s.h> 30 stdout-path = "serial3:115200n8"; 33 gpio-keys { 34 compatible = "gpio-keys"; 35 pinctrl-names = "default"; [all …]
|
/linux-6.12.1/drivers/sh/clk/ |
D | core.c | 4 * Copyright (C) 2005 - 2010 Paul Mundt 8 * Copyright (C) 2004 - 2008 Nokia Corporation 46 unsigned long freq; in clk_rate_table_build() local 49 clk->nr_freqs = nr_freqs; in clk_rate_table_build() 55 if (src_table->divisors && i < src_table->nr_divisors) in clk_rate_table_build() 56 div = src_table->divisors[i]; in clk_rate_table_build() 58 if (src_table->multipliers && i < src_table->nr_multipliers) in clk_rate_table_build() 59 mult = src_table->multipliers[i]; in clk_rate_table_build() 62 freq = CPUFREQ_ENTRY_INVALID; in clk_rate_table_build() 64 freq = clk->parent->rate * mult / div; in clk_rate_table_build() [all …]
|
/linux-6.12.1/drivers/media/tuners/ |
D | r820t.c | 1 // SPDX-License-Identifier: GPL-2.0 7 // that it is part of rtl-sdr git tree, released under GPLv2: 8 // https://groups.google.com/forum/#!topic/ultra-cheap-sdr/Y3rBEOFtHug 9 // https://github.com/n1gp/gr-baz 30 #include "tuner-i2c.h" 96 u32 freq; member 130 .freq = 0, 139 .freq = 50, /* Start freq, in MHz */ 148 .freq = 55, /* Start freq, in MHz */ 157 .freq = 60, /* Start freq, in MHz */ [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu14/ |
D | smu_v14_0_0_ppt.c | 187 struct smu_table_context *smu_table = &smu->smu_table; in smu_v14_0_0_init_smc_tables() 188 struct smu_table *tables = smu_table->tables; in smu_v14_0_0_init_smc_tables() 197 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in smu_v14_0_0_init_smc_tables() 198 if (!smu_table->metrics_table) in smu_v14_0_0_init_smc_tables() 200 smu_table->metrics_time = 0; in smu_v14_0_0_init_smc_tables() 202 …smu_table->clocks_table = kzalloc(max(sizeof(DpmClocks_t), sizeof(DpmClocks_t_v14_0_1)), GFP_KERNE… in smu_v14_0_0_init_smc_tables() 203 if (!smu_table->clocks_table) in smu_v14_0_0_init_smc_tables() 206 smu_table->watermarks_table = kzalloc(sizeof(Watermarks_t), GFP_KERNEL); in smu_v14_0_0_init_smc_tables() 207 if (!smu_table->watermarks_table) in smu_v14_0_0_init_smc_tables() 210 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v3_0); in smu_v14_0_0_init_smc_tables() [all …]
|
/linux-6.12.1/drivers/memory/ |
D | of_memory.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 * of_get_min_tck() - extract min timing values for ddr 21 * @dev: device requesting for min timing values 26 * default min timings provided by JEDEC. 32 struct lpddr2_min_tck *min; in of_get_min_tck() local 34 min = devm_kzalloc(dev, sizeof(*min), GFP_KERNEL); in of_get_min_tck() 35 if (!min) in of_get_min_tck() 38 ret |= of_property_read_u32(np, "tRPab-min-tck", &min->tRPab); in of_get_min_tck() 39 ret |= of_property_read_u32(np, "tRCD-min-tck", &min->tRCD); in of_get_min_tck() 40 ret |= of_property_read_u32(np, "tWR-min-tck", &min->tWR); in of_get_min_tck() [all …]
|