/openbmc/qemu/tests/qemu-iotests/ |
H A D | 060.out | 6 ERROR cluster 3 refcount=1 reference=3 25 qemu-io: can't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write 30 === Testing cluster data reference into refcount block === 34 ERROR cluster 2 refcount=1 reference=2 43 ERROR cluster 2 refcount=1 reference=2 45 Repairing cluster 1 refcount=1 reference=0 46 Repairing cluster 2 refcount=2 reference=1 59 === Testing cluster data reference into inactive L2 table === 66 ERROR cluster 4 refcount=1 reference=2 67 Leaked cluster 9 refcount=1 reference=0 [all …]
|
H A D | 121 | 51 echo '--- Test 1 ---' 57 _make_test_img -o 'preallocation=metadata,cluster_size=1k' 64512K 64 # different refcount block being written to disk (a zeroed cluster) than what is 66 # write would then result in that cached cluster being marked dirty and then 71 $QEMU_IO -c 'write 62M 1025K' -c 'write 64M 1M' "$TEST_IMG" | _filter_qemu_io 77 echo '--- Test 2 ---' 80 _make_test_img -o 'preallocation=metadata,cluster_size=1k' 64513K 86 # immediately before that (new_block) takes cluster index 4 (which is now free) 87 # and is thus not self-describing (in contrast to test 1, where new_block was 88 # self-describing). The refcount table growth algorithm then used to place the [all …]
|
H A D | 271.out | 8 write -q -P PATTERN 0 1k 10 write -q -P PATTERN 3k 512 12 write -q -P PATTERN 5k 1k 14 write -q -P PATTERN 6k 2k 16 write -q -P PATTERN 8k 6k 18 write -q -P PATTERN 15k 4k 20 write -q -P PATTERN 32k 1k 22 write -q -P PATTERN 63k 4k 25 write -q -z 2k 2k 27 write -q -z 0 64k [all …]
|
/openbmc/linux/drivers/cpuidle/ |
H A D | cpuidle-big_little.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 * index 1 states have to define exit_latency and target_residency for 32 * cluster state since, when all CPUs in a cluster hit it, the cluster 35 * There is no notion of cluster states in the menu governor, so CPUs 36 * have to define CPU states where possibly the cluster will be shutdown 38 * at random times; however the cluster state provides target_residency 39 * values as if all CPUs in a cluster enter the state at once; this is 41 * or in the MCPM back-ends. 46 * current cluster operating point. It is the time it takes to get the CPU 47 * up and running when the CPU is powered up on cluster wake-up from shutdown. [all …]
|
H A D | cpuidle-tegra.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2010-2013, NVIDIA Corporation. 15 #define pr_fmt(fmt) "tegra-cpuidle: " fmt 68 while (retries--) { in tegra_cpuidle_wait_for_secondary_cpus_parking() 74 * shutdown in order to power-off CPU's cluster safely. in tegra_cpuidle_wait_for_secondary_cpus_parking() 76 * it takes about 40-150us in average and over 1000us in in tegra_cpuidle_wait_for_secondary_cpus_parking() 85 } while (timeout_us--); in tegra_cpuidle_wait_for_secondary_cpus_parking() 94 return -ETIMEDOUT; in tegra_cpuidle_wait_for_secondary_cpus_parking() 134 if (err && err != -ENOSYS) in tegra_cpuidle_c7_enter() 146 * pending SGI state across CPU cluster PM. Abort and retry in tegra_cpuidle_coupled_barrier() [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | tegra186-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/dma-mapping.h> 13 #include <soc/tegra/bpmp-abi.h> 28 /* CPU0 - A57 Cluster */ 33 /* CPU1 - Denver Cluster */ 38 /* CPU2 - Denver Cluster */ 43 /* CPU3 - A57 Cluster */ 48 /* CPU4 - A57 Cluster */ 53 /* CPU5 - A57 Cluster */ 75 unsigned int cluster = data->cpus[policy->cpu].bpmp_cluster_id; in tegra186_cpufreq_init() local [all …]
|
H A D | vexpress-spc-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2013 - 2019 ARM Ltd. 45 #define ACTUAL_FREQ(cluster, freq) ((cluster == A7_CLUSTER) ? freq << 1 : freq) argument 46 #define VIRT_FREQ(cluster, freq) ((cluster == A7_CLUSTER) ? freq >> 1 : freq) argument 71 static unsigned int find_cluster_maxfreq(int cluster) in find_cluster_maxfreq() argument 79 if (cluster == per_cpu(physical_cluster, j) && in find_cluster_maxfreq() 138 ret = -EIO; in ve_spc_cpufreq_set_rate() 154 /* Recalc freq for old cluster when switching clusters */ in ve_spc_cpufreq_set_rate() 156 /* Switch cluster */ in ve_spc_cpufreq_set_rate() 161 /* Set freq of old cluster if there are cpus left on it */ in ve_spc_cpufreq_set_rate() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/watchdog/ |
H A D | samsung-wdt.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/watchdog/samsung-wdt.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 20 - samsung,s3c2410-wdt # for S3C2410 21 - samsung,s3c6410-wdt # for S3C6410, S5PV210 and Exynos4 22 - samsung,exynos5250-wdt # for Exynos5250 23 - samsung,exynos5420-wdt # for Exynos5420 24 - samsung,exynos7-wdt # for Exynos7 [all …]
|
/openbmc/qemu/block/ |
H A D | qcow2-refcount.c | 4 * Copyright (c) 2004-2006 Fabrice Bellard 26 #include "block/block-io.h" 43 static uint64_t get_refcount_ro0(const void *refcount_array, uint64_t index); 44 static uint64_t get_refcount_ro1(const void *refcount_array, uint64_t index); 45 static uint64_t get_refcount_ro2(const void *refcount_array, uint64_t index); 46 static uint64_t get_refcount_ro3(const void *refcount_array, uint64_t index); 47 static uint64_t get_refcount_ro4(const void *refcount_array, uint64_t index); 48 static uint64_t get_refcount_ro5(const void *refcount_array, uint64_t index); 49 static uint64_t get_refcount_ro6(const void *refcount_array, uint64_t index); 51 static void set_refcount_ro0(void *refcount_array, uint64_t index, [all …]
|
H A D | qed-cluster.c | 2 * QEMU Enhanced Disk Format Cluster functions 11 * See the COPYING.LIB file in the top-level directory. 23 * @index: First cluster index 25 * @offset: Set to first cluster offset 32 unsigned int index, in qed_count_contiguous_clusters() argument 36 unsigned int end = MIN(index + n, s->table_nelems); in qed_count_contiguous_clusters() 37 uint64_t last = table->offsets[index]; in qed_count_contiguous_clusters() 42 for (i = index + 1; i < end; i++) { in qed_count_contiguous_clusters() 45 if (!qed_offset_is_unalloc_cluster(table->offsets[i])) { in qed_count_contiguous_clusters() 50 if (!qed_offset_is_zero_cluster(table->offsets[i])) { in qed_count_contiguous_clusters() [all …]
|
H A D | qed.h | 11 * See the COPYING.LIB file in the top-level directory. 23 * +--------+----------+----------+----------+-----+ 25 * +--------+----------+----------+----------+-----+ 27 * There is a 2-level pagetable for cluster allocation: 29 * +----------+ 31 * +----------+ 32 * ,------' | '------. 33 * +----------+ | +----------+ 35 * +----------+ +----------+ 36 * ,------' | '------. [all …]
|
H A D | vvfat.c | 30 #include "block/block-io.h" 41 #include "qemu/error-report.h" 55 /* MAYBE TODO: write block-visofs.c */ 73 * https://jdebp.eu/FGA/volume-boot-block-oem-name-field.html 91 array->pointer = NULL; in array_init() 92 array->size=0; in array_init() 93 array->next=0; in array_init() 94 array->item_size=item_size; in array_init() 99 g_free(array->pointer); in array_free() 100 array->size=array->next=0; in array_free() [all …]
|
H A D | qed.c | 11 * See the COPYING.LIB file in the top-level directory. 20 #include "qemu/main-loop.h" 26 #include "sysemu/block-backend.h" 28 #include "qapi/qobject-input-visitor.h" 29 #include "qapi/qapi-visit-block-core.h" 41 if (le32_to_cpu(header->magic) != QED_MAGIC) { in bdrv_qed_probe() 59 cpu->magic = le32_to_cpu(le->magic); in qed_header_le_to_cpu() 60 cpu->cluster_size = le32_to_cpu(le->cluster_size); in qed_header_le_to_cpu() 61 cpu->table_size = le32_to_cpu(le->table_size); in qed_header_le_to_cpu() 62 cpu->header_size = le32_to_cpu(le->header_size); in qed_header_le_to_cpu() [all …]
|
/openbmc/linux/include/linux/ |
H A D | swap.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #include <linux/page-flags.h> 29 #define SWAP_FLAG_DISCARD_ONCE 0x20000 /* discard swap area at swapon-time */ 30 #define SWAP_FLAG_DISCARD_PAGES 0x40000 /* discard page-clusters after use */ 39 return current->flags & PF_KSWAPD; in current_is_kswapd() 47 * on 32-bit-pgoff_t architectures. And that assumes that the architecture packs 118 ((1 << MAX_SWAPFILES_SHIFT) - SWP_DEVICE_NUM - \ 119 SWP_MIGRATION_NUM - SWP_HWPOISON_NUM - \ 125 * swap area format, the second part of the union adds - in the 126 * old reserved area - some extra information. Note that the first [all …]
|
/openbmc/qemu/tests/image-fuzzer/qcow2/ |
H A D | layout.py | 159 free_space = self.cluster_size - self.ext_offset - \ 162 # in the first cluster, then it's placed in the very end of the first 163 # cluster. 168 self.cluster_size - len(backing_file_name) 186 # Calculation of the free space available in the first cluster 189 (self.cluster_size - 1)) - \ 191 free_space = high_border - self.ext_offset 197 ext_padding_len = 7 - (ext_data_len - 1) % 8 221 (self.cluster_size - 1)) - \ 223 free_space = high_border - self.ext_offset [all …]
|
/openbmc/qemu/docs/interop/ |
H A D | qed_spec.txt | 5 +----------+----------+----------+-----+ 7 +----------+----------+----------+-----+ 9 …cluster begins with the '''header'''. The header contains information about where regular cluster… 11 …cluster size. If the file size is not a multiple, extra information after the last cluster may no… 13 All fields are little-endian. 25 uint64_t autoclear_features; /* self-resetting feature bits */ 40 …bits enabled must not be opened. File format changes that are not backwards-compatible must use '… 41 …ned safely. The unknown features are simply ignored and represent backwards-compatible changes to… 42 …nown bits. This allows for backwards-compatible changes to the file format which degrade graceful… 45 …me_size'' describe a string in (byte offset, byte size) form. It is not NUL-terminated and has no… [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | free-space-cache.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/error-injection.h> 18 #include "free-space-cache.h" 20 #include "disk-io.h" 23 #include "space-info.h" 24 #include "delalloc-space.h" 25 #include "block-group.h" 28 #include "inode-item.h" 30 #include "file-item.h" 65 while ((node = rb_last(&ctl->free_space_offset)) != NULL) { in __btrfs_remove_free_space_cache() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/cpufreq/ |
H A D | apple,cluster-cpufreq.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/cpufreq/apple,cluster-cpufreq.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Apple SoC cluster cpufreq device 10 - Hector Martin <marcan@marcan.st> 13 Apple SoCs (e.g. M1) have a per-cpu-cluster DVFS controller that is part of 14 the cluster management register block. This binding uses the standard 15 operating-points-v2 table to define the CPU performance states, with the 16 opp-level property specifying the hardware p-state index for that level. [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/ |
H A D | cpu.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Copyright 2014-2015 Freescale Semiconductor, Inc. 22 #include <fsl-mc/fsl_mc.h> 86 /* For IFC Region #1, only the first 4MB is cache-enabled */ 93 CONFIG_SYS_FSL_IFC_SIZE1 - CONFIG_SYS_FSL_IFC_SIZE1_1, 114 CONFIG_SYS_FLASH_BASE - CONFIG_SYS_FSL_IFC_BASE2, 227 /* For QBMAN portal, only the first 64MB is cache-enabled */ 235 CONFIG_SYS_FSL_QBMAN_SIZE - CONFIG_SYS_FSL_QBMAN_SIZE_1, 368 svr = gur_in32(&gur->svr); in cpu_name() 395 * levels of translation tables here to cover 40-bit address space. [all …]
|
/openbmc/qemu/scripts/simplebench/ |
H A D | bench_write_req.py | 3 # Test to compare performance of write requests for two qemu-img binary files. 40 '''Run qemu-img and return its output''' 47 sys.stderr.write('qemu-img received signal %i: %s\n' 48 % (-exitcode, ' '.join(list(args)))) 57 the 'qemu-img bench' command and makes series of write requests on the 61 qemu_img -- path to qemu_img executable file 62 image_name -- QCOW2 image name to create 63 block_size -- size of a block to write to clusters 64 block_offset -- offset of the block in clusters 65 cluster_size -- size of the image cluster [all …]
|
/openbmc/linux/Documentation/admin-guide/perf/ |
H A D | hisi-pmu.rst | 10 The HiSilicon SoC encapsulates multiple CPU and IO dies. Each CPU cluster 12 called Super CPU cluster (SCCL) and is made up of 6 CCLs. Each SCCL has 13 two HHAs (0 - 1) and four DDRCs (0 - 3), respectively. 16 ------------------------------- 28 name will appear in event listing as hisi_sccl<sccl-id>_module<index-id>. 29 where "sccl-id" is the identifier of the SCCL and "index-id" is the index of 32 e.g. hisi_sccl3_l3c0/rd_hit_cpipe is READ_HIT_CPIPE event of L3C index #0 in 35 e.g. hisi_sccl1_hha0/rx_operations is RX_OPERATIONS event of HHA index #0 in 45 ------------------------------------------ 47 ------------------------------------------ [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/adreno/ |
H A D | a6xx_gpu_state.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. */ 99 list_add_tail(&obj->node, &a6xx_state->objs); in state_kcalloc() 100 return &obj->data; in state_kcalloc() 114 * Allocate 1MB for the crashdumper scratch region - 8k for the script and 118 #define A6XX_CD_DATA_SIZE (SZ_1M - 8192) 123 dumper->ptr = msm_gem_kernel_new(gpu->dev, in a6xx_crashdumper_init() 124 SZ_1M, MSM_BO_WC, gpu->aspace, in a6xx_crashdumper_init() 125 &dumper->bo, &dumper->iova); in a6xx_crashdumper_init() 127 if (!IS_ERR(dumper->ptr)) in a6xx_crashdumper_init() [all …]
|
/openbmc/linux/arch/arm/common/ |
H A D | mcpm_head.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * arch/arm/common/mcpm_head.S -- kernel entry point for multi-cluster PM 6 * Copyright: (C) 2012-2013 Linaro Limited 8 * Refer to Documentation/arch/arm/cluster-pm-race-avoidance.rst 18 .arch armv7-a 28 1903: .asciz " cluster" 56 ubfx r10, r0, #8, #8 @ r10 = cluster 58 mla r4, r3, r10, r9 @ r4 = canonical CPU index 88 mla r8, r0, r10, r8 @ r8 = sync cluster base 96 @ At this point, the cluster cannot unexpectedly enter the GOING_DOWN [all …]
|
/openbmc/linux/fs/f2fs/ |
H A D | compress.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/backing-dev.h> 31 if (likely(size <= sbi->page_array_slab_size)) in page_array_alloc() 32 return f2fs_kmem_cache_alloc(sbi->page_array_slab, in page_array_alloc() 45 if (likely(size <= sbi->page_array_slab_size)) in page_array_free() 46 kmem_cache_free(sbi->page_array_slab, pages); in page_array_free() 61 static unsigned int offset_in_cluster(struct compress_ctx *cc, pgoff_t index) in offset_in_cluster() argument 63 return index & (cc->cluster_size - 1); in offset_in_cluster() 66 static pgoff_t cluster_idx(struct compress_ctx *cc, pgoff_t index) in cluster_idx() argument 68 return index >> cc->log_cluster_size; in cluster_idx() [all …]
|
/openbmc/linux/fs/ext4/ |
H A D | ext4_extents.h | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com 13 * With AGGRESSIVE_TEST defined, the capacity of index/leaf blocks 14 * becomes very small, so index split, in-depth growing and 44 * For non-inode extent blocks, ext4_extent_tail 49 * This is the extent tail on-disk structure. 60 * This is the extent on-disk structure. 71 * This is index on-disk structure. 75 __le32 ei_block; /* index covers logical blocks from 'block' */ 77 * level. leaf or next index could be there */ [all …]
|