/openbmc/linux/Documentation/admin-guide/mm/ |
H A D | userfaultfd.rst | 8 Userfaults allow the implementation of on-demand paging from userland 12 For example userfaults allows a proper and more optimal implementation 18 Userspace creates a new userfaultfd, initializes it, and registers one or more 20 region(s) result in a message being delivered to the userfaultfd, notifying 26 1) ``read/POLLIN`` protocol to notify a userland thread of the faults 38 Vmas are not suitable for page- (or hugepage) granular fault tracking 43 passed using unix domain sockets to a manager process, so the same 44 manager process could handle the userfaults of a multitude of 48 is a corner case that would currently return ``-EBUSY``). 53 Creating a userfaultfd [all …]
|
/openbmc/qemu/include/sysemu/ |
H A D | runstate.h | 4 #include "qapi/qapi-types-run-state.h" 45 * In a "live" state, the vcpu clock is ticking, and the runstate notifiers 58 * @step_pending: whether any of the CPUs is about to be single-stepped by gdb 63 * vm_resume: If @state is a live state, start the vm and set the state, 77 /* Always keep QEMU_WAKEUP_REASON_NONE = 0 */
|
/openbmc/qemu/docs/devel/migration/ |
H A D | dirty-limit.rst | 4 The dirty limit, short for dirty page rate upper limit, is a new capability 5 introduced in the 8.1 QEMU release that uses a new algorithm based on the KVM 6 dirty ring to throttle down the guest during live migration. 12 ------------------------------------------------------------------------------ 13 main --------------> throttle thread ------------> PREPARE(1) <-------- 17 -\ CALCULATE(2) | 21 \ SET PENALTY(3) ----- 22 -\ | 25 -> virtual CPU thread -------> ACCEPT PENALTY(4) 26 ------------------------------------------------------------------------------ [all …]
|
/openbmc/qemu/docs/ |
H A D | rdma.txt | 2 RDMA Live Migration Specification, Version # 1 31 data copies by bypassing the host networking stack. In particular, a TCP-based 32 migration, under certain types of memory-bound workloads, may take a more 34 memory tracked during each live migration iteration round cannot keep pace 38 over Converged Ethernet) as well as Infiniband-based. This implementation of 47 for a working build of QEMU to run successfully using RDMA Migration. 56 of RDMA migration may in fact be harmful to co-located VMs or other 65 bulk-phase round of the migration and can be enabled for extremely 66 high-performance RDMA hardware using the following command: 69 $ migrate_set_capability rdma-pin-all on # disabled by default [all …]
|
/openbmc/linux/Documentation/filesystems/ext4/ |
H A D | allocators.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 --------------------------------- 7 generally a desirably quality of a filesystem. On a spinning disk, 9 that the head actuator and disk must perform to access a data block, 13 effect of concentrating writes on a single erase block, which can speed 17 The first tool that ext4 uses to combat fragmentation is the multi-block 18 allocator. When a file is first created, the block allocator 23 files) then the file data gets written out in a single multi-block 24 extent. A second related trick that ext4 uses is delayed allocation. 25 Under this scheme, when a file needs more blocks to absorb file writes, [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/soc/intel/ |
H A D | intel,hps-copy-engine.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/soc/intel/intel,hps-copy-engine.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Matthew Gerlach <matthew.gerlach@linux.intel.com> 15 a bootable image from host memory to HPS DDR. Additionally, there is a 17 well as a keep-a-live indication to the host. 21 const: intel,hps-copy-engine 23 '#dma-cells': 30 - compatible [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | maxlinear,gpy2xx.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andrew Lunn <andrew@lunn.ch> 11 - Michael Walle <michael@walle.cc> 14 - $ref: ethernet-phy.yaml# 17 maxlinear,use-broken-interrupts: 19 Interrupts are broken on some GPY2xx PHYs in that they keep the 20 interrupt line asserted for a random amount of time even after the 24 can live with the consequences, this property can be used to enable [all …]
|
/openbmc/linux/net/rxrpc/ |
H A D | peer_event.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include "ar-internal.h" 26 * Find the peer associated with a local error. 37 srx->transport_type = local->srx.transport_type; in rxrpc_lookup_peer_local_rcu() 38 srx->transport_len = local->srx.transport_len; in rxrpc_lookup_peer_local_rcu() 39 srx->transport.family = local->srx.transport.family; in rxrpc_lookup_peer_local_rcu() 44 switch (srx->transport.family) { in rxrpc_lookup_peer_local_rcu() 46 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_local_rcu() 47 srx->transport.family = AF_INET; in rxrpc_lookup_peer_local_rcu() 48 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_local_rcu() [all …]
|
/openbmc/openbmc/poky/meta/files/common-licenses/ |
H A D | Simple-2.0 | 5 ….0 (SimPL 2.0 for short) is a plain language implementation of GPL 2.0. The words are different, … 7 …han trademarks). You agree to the SimPL by copying, distributing, or making a derivative work of t… 11 Make derivative works of it (this is called a "Derived Work"); 13 If you distribute the software or a Derived Work, you must give back to the community by: 16 Providing the source code, build scripts, installation scripts, and interface definitions in a form… 21 …ing those called "consequential damages." (The state or country where you live may not allow you t… 23 You do not abide by the "give back to the community" terms (your licensees get to keep their rights… 26 You may do anything that you want with the SimPL text; it`s a license form to use in any way that y…
|
H A D | SimPL-2.0 | 5 ….0 (SimPL 2.0 for short) is a plain language implementation of GPL 2.0. The words are different, … 9 …han trademarks). You agree to the SimPL by copying, distributing, or making a derivative work of t… 13 - Use the software for any purpose; 14 - Make derivative works of it (this is called a "Derived Work"); 15 - Copy and distribute it and any Derived Work. 17 If you distribute the software or a Derived Work, you must give back to the community by: 19 - Prominently noting the date of any changes you make; 20 - Leaving other people's copyright notices, warranty disclaimers, and license terms in place; 21 - Providing the source code, build scripts, installation scripts, and interface definitions in a fo… 22 - Licensing it to everyone under SimPL, or substantially similar terms (such as GPL 2.0), without a… [all …]
|
/openbmc/openbmc/meta-arm/meta-arm/recipes-bsp/trusted-firmware-a/files/ |
H A D | 0001-Add-spmc_manifest-for-qemu.patch | 8 Upstream-Status: Inappropriate [other] 9 - The SPMC manifest is integration specific and should live at an 10 integration spcific place. The manifest file is processed by TF-A 11 and I am adding the patch to TF-A to keep things simple. 13 Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com> 14 --- 19 diff --git a/plat/qemu/fdts/optee_spmc_manifest.dts b/plat/qemu/fdts/optee_spmc_manifest.dts 22 --- /dev/null 24 @@ -0,0 +1,40 @@ 25 +/* SPDX-License-Identifier: BSD-3-Clause */ [all …]
|
/openbmc/linux/include/linux/ |
H A D | cache.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 * __read_mostly is used to keep rarely changing variables out of frequently 21 * best case multiple frequently read variables for a hot path will be next 23 * execute a critical path. We should be mindful and selective of its use. 24 * ie: if you're going to use it please supply a *good* justification in your 32 * __ro_after_init is used to mark things that are read-only after init (i.e. 33 * after mark_rodata_ro() has been called). These are effectively read-only, 34 * but may get written to during init, so can't live in .rodata (via "const"). 68 * These could be inter-node cacheline sizes/L3 cacheline 89 * Helper to add padding within a struct to ensure data fall into separate
|
/openbmc/linux/arch/mips/include/asm/fw/arc/ |
H A D | types.h | 24 /* The pointer types. Note that we're using a 64-bit compiler but all 25 pointer in the ARC structures are only 32-bit, so we need some disgusting 26 workarounds. Keep your vomit bag handy. */ 49 /* The pointer types. We're 64-bit and the firmware is also 64-bit, so 50 live is sane ... */
|
/openbmc/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_context_types.h | 2 * SPDX-License-Identifier: MIT 15 #include <linux/radix-tree.h> 34 * struct i915_gem_engines - A set of engines 59 * struct i915_gem_engines_iter - Iterator for an i915_gem_engines set 70 * enum i915_gem_engine_type - Describes the type of an i915_gem_proto_engine 76 /** @I915_GEM_ENGINE_TYPE_PHYSICAL: A single physical engine */ 79 /** @I915_GEM_ENGINE_TYPE_BALANCED: A load-balanced engine set */ 82 /** @I915_GEM_ENGINE_TYPE_PARALLEL: A parallel engine set */ 87 * struct i915_gem_proto_engine - prototype engine 89 * This struct describes an engine that a context may contain. Engines [all …]
|
/openbmc/linux/arch/sparc/vdso/ |
H A D | vdso-layout.lds.S | 3 * its virtual address, and with only one read-only segment. 20 * User/kernel shared data is before the vDSO. This may be a little 22 * non-allocatable things that dangle past the end of the PT_LOAD 23 * segment. Page size is 8192 for both 64-bit and 32-bit vdso binaries 26 vvar_start = . -8192; 52 * Ideally this would live in a C file: kept in here for 53 * compatibility with x86-64. 66 .eh_frame : { KEEP (*(.eh_frame)) } :text 70 * Text is well-separated from actual data: there's plenty of 90 * PT_LOAD segment, and set the flags explicitly to make segments read-only.
|
/openbmc/linux/fs/fscache/ |
H A D | cache.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* FS-Cache cache handling 22 * Allocate a cache cookie. 31 cache->name = kstrdup(name, GFP_KERNEL); in fscache_alloc_cache() 32 if (!cache->name) { in fscache_alloc_cache() 37 refcount_set(&cache->ref, 1); in fscache_alloc_cache() 38 INIT_LIST_HEAD(&cache->cache_link); in fscache_alloc_cache() 39 cache->debug_id = atomic_inc_return(&fscache_cache_debug_id); in fscache_alloc_cache() 50 success = __refcount_inc_not_zero(&cache->ref, &ref); in fscache_get_cache_maybe() 52 trace_fscache_cache(cache->debug_id, ref + 1, where); in fscache_get_cache_maybe() [all …]
|
/openbmc/openbmc/poky/meta/conf/ |
H A D | layer.conf | 1 # We have a conf and classes directory, add to BBPATH 3 # We have recipes-* directories, add to BBFILES 4 BBFILES += "${LAYERDIR}/recipes-*/*/*.bb" 17 BBLAYERS_LAYERINDEX_NAME_core = "openembedded-core" 19 # Set a variable to get to the top of the metadata location 22 # opkg-utils is for update-alternatives :( 24 sysvinit-inittab \ 25 busybox-inittab \ 26 shadow-securetty \ 27 opkg-arch-config \ [all …]
|
/openbmc/linux/kernel/module/ |
H A D | procfs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 * Always include a trailing , so userspace can differentiate in print_unload_info() 25 * between this and the old multi-field proc format. in print_unload_info() 27 list_for_each_entry(use, &mod->source_list, source_list) { in print_unload_info() 29 seq_printf(m, "%s,", use->source->name); in print_unload_info() 32 if (mod->init && !mod->exit) { in print_unload_info() 38 seq_puts(m, "-"); in print_unload_info() 44 seq_puts(m, " - -"); in print_unload_info() 48 /* Called by the /proc file system to return a list of modules. */ 70 size += mod->mem[type].size; in module_total_size() [all …]
|
/openbmc/docs/ |
H A D | anti-patterns.md | 1 # OpenBMC Anti-patterns 3 From [Wikipedia](https://en.wikipedia.org/wiki/Anti-pattern): 5 "An anti-pattern is a common response to a recurring problem that is usually 12 This page aims to document some of the anti-patterns that exist in OpenBMC to 13 ease the job of those reviewing code. If an anti-pattern is spotted, rather that 14 repeating the same explanations over and over, a link to this document can be 17 <!-- begin copy/paste on next line --> 19 ## Anti-pattern template [one line description] 23 (1 paragraph) Describe how to spot the anti-pattern. 27 (1 paragraph) Describe the negative effects of the anti-pattern. [all …]
|
/openbmc/linux/drivers/md/persistent-data/ |
H A D | dm-btree-internal.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #include "dm-btree.h" 13 /*----------------------------------------------------------------*/ 16 * We'll need 2 accessor functions for n->csum and n->blocknr 17 * to support dm-btree-spine.c in that case. 26 * Every btree node begins with this structure. Make sure it's a multiple 27 * of 8-bytes in size, otherwise the 64bit keys will be mis-aligned. 32 __le64 blocknr; /* Block this node is supposed to live in. */ 47 * Locks a block using the btree node validator. 59 * Spines keep track of the rolling locks. There are 2 variants, read-only [all …]
|
/openbmc/qemu/migration/ |
H A D | migration.h | 2 * QEMU live migration 10 * the COPYING file in the top-level directory. 17 #include "exec/cpu-common.h" 18 #include "hw/qdev-core.h" 19 #include "qapi/qapi-types-migration.h" 20 #include "qapi/qmp/json-writer.h" 24 #include "io/channel-buffer.h" 27 #include "postcopy-ram.h" 50 * 1<<6=64 pages -> 256K chunk when page size is 4K. This gives us 56 * 1<<18=256K pages -> 1G chunk when page size is 4K. This is the [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | migration-test.c | 4 * Copyright (c) 2016-2018 Red Hat, Inc. and/or its affiliates 5 * based on the vhost-user-test.c that is: 9 * See the COPYING file in the top-level directory. 24 #include "ppc-util.h" 26 #include "migration-helpers.h" 27 #include "tests/migration/migration-test.h" 29 # include "tests/unit/crypto-tls-psk-helpers.h" 31 # include "tests/unit/crypto-tls-x509-helpers.h" 52 * A further 1k is added to ensure we're not a multiple 66 #define ANALYZE_SCRIPT "scripts/analyze-migration.py" [all …]
|
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/ |
H A D | process_tree.py | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # You should have received a copy of the GNU General Public License 17 """ProcessTree encapsulates a process tree. The tree is built from log files 19 pruned and merged in order to be able to visualize it in a comprehensible 24 * idle processes that keep running during the last process sample 25 (which is a heuristic for a background processes) are removed, 26 * short-lived processes (i.e. processes that only live for the 32 concurrently -- thread heuristic) are merged together, 37 LOGGER_PROC = 'bootchart-colle' 61 self.duration = self.end_time - self.start_time [all …]
|
/openbmc/u-boot/include/dm/ |
H A D | test.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 13 * struct dm_test_cdata - configuration data for test instance 15 * @ping_add: Amonut to add each time we get a ping 24 * struct test_ops - Operations supported by the test device 30 * @return 0 if OK, -ve on error 65 * struct dm_test_priv - private data for the test devices 76 * struct dm_test_perdev_class_priv - private per-device data for test uclass 83 * struct dm_test_uclass_priv - private data for test uclass 90 * struct dm_test_parent_data - parent's information on each child 109 * struct dm_test_uclass_platda - uclass's information on each device [all …]
|
/openbmc/u-boot/include/linux/ |
H A D | compiler-gcc.h | 2 #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead." 20 * normal barrier(): while gcc behavior gets along with a normal 34 * This macro obfuscates arithmetic on a variable address so that gcc 42 * A miscompilation has been observed because of this on PPC. 46 * Versions of the ppc64 compiler before 4.1 had a bug where use of 63 #define __must_be_array(a) 0 argument 65 /* &a[0] degrades to a pointer: a different type from an array */ 66 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) argument 70 * Force always-inline if the user requests it so via the .config, 79 /* A lot of inline functions can cause havoc with function tracing */ [all …]
|