| /kernel/linux/linux-4.19/drivers/irqchip/ |
| D | irq-gic-v4.c | 24 #include <linux/irqchip/arm-gic-v4.h> 36 * agnostic actually means KVM-specific - what were you thinking?). 41 * - Any guest-visible VLPI is backed by a Linux interrupt (and a 47 * - Enabling/disabling a VLPI is done by issuing mask/unmask calls. 49 * - Guest INT/CLEAR commands are implemented through 52 * - The *bizarre* stuff (mapping/unmapping an interrupt to a VLPI, or 56 * confines the crap to a single location. And map/unmap really is 72 * interrupts which are delivered when a VLPI targeting a non-running 81 * - VMs (or rather the VM abstraction that matters to the GIC) 86 * - mask/unmask do what is expected on the doorbell interrupt. [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/hwmon/ |
| D | moortec,mr75203.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rahul Tanwar <rtanwar@maxlinear.com> 18 - description: PVT common registers 19 - description: PVT temprature sensor registers 20 - description: PVT process detector registers 21 - description: PVT voltage monitor registers 23 reg-names: 25 - const: common [all …]
|
| /kernel/linux/linux-5.10/drivers/irqchip/ |
| D | irq-gic-v4.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/irqchip/arm-gic-v4.h> 25 * agnostic actually means KVM-specific - what were you thinking?). 30 * - Any guest-visible VLPI is backed by a Linux interrupt (and a 36 * - Enabling/disabling a VLPI is done by issuing mask/unmask calls. 38 * - Guest INT/CLEAR commands are implemented through 41 * - The *bizarre* stuff (mapping/unmapping an interrupt to a VLPI, or 45 * confines the crap to a single location. And map/unmap really is 61 * interrupts which are delivered when a VLPI targeting a non-running 70 * - VMs (or rather the VM abstraction that matters to the GIC) [all …]
|
| /kernel/linux/linux-4.19/tools/testing/selftests/vm/ |
| D | compaction_test.c | 1 // SPDX-License-Identifier: GPL-2.0 24 void *map; member 31 char *cmd = "cat /proc/meminfo | grep -i memfree | grep -o '[0-9]*'"; in read_memory_info() 36 return -1; in read_memory_info() 42 cmd = "cat /proc/meminfo | grep -i hugepagesize | grep -o '[0-9]*'"; in read_memory_info() 47 return -1; in read_memory_info() 61 fd = open("/proc/sys/vm/compact_unevictable_allowed", in prereq() 65 "/proc/sys/vm/compact_unevictable_allowed\n"); in prereq() 66 return -1; in prereq() 71 "/proc/sys/vm/compact_unevictable_allowed\n"); in prereq() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
| D | compaction_test.c | 1 // SPDX-License-Identifier: GPL-2.0 25 void *map; member 32 char *cmd = "cat /proc/meminfo | grep -i memfree | grep -o '[0-9]*'"; in read_memory_info() 37 return -1; in read_memory_info() 43 cmd = "cat /proc/meminfo | grep -i hugepagesize | grep -o '[0-9]*'"; in read_memory_info() 48 return -1; in read_memory_info() 62 fd = open("/proc/sys/vm/compact_unevictable_allowed", in prereq() 66 "/proc/sys/vm/compact_unevictable_allowed\n"); in prereq() 67 return -1; in prereq() 72 "/proc/sys/vm/compact_unevictable_allowed\n"); in prereq() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/ |
| D | vmx_dirty_log_test.c | 1 // SPDX-License-Identifier: GPL-2.0 55 GUEST_ASSERT(vmx->vmcs_gpa); in l1_guest_code() 76 struct kvm_vm *vm; in main() local 83 /* Create VM */ in main() 84 vm = vm_create_default(VCPU_ID, 0, l1_guest_code); in main() 85 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main() 86 vmx = vcpu_alloc_vmx(vm, &vmx_pages_gva); in main() 87 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main() 88 run = vcpu_state(vm, VCPU_ID); in main() 91 vm_userspace_mem_region_add(vm, VM_MEM_SRC_ANONYMOUS, in main() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
| D | i915_vma.c | 42 if (vma->vm != rcu_access_pointer(ctx->vm)) { in assert_vma() 43 pr_err("VMA created with wrong VM\n"); in assert_vma() 47 if (vma->size != obj->base.size) { in assert_vma() 49 vma->size, obj->base.size); in assert_vma() 53 if (vma->ggtt_view.type != I915_GGTT_VIEW_NORMAL) { in assert_vma() 55 vma->ggtt_view.type); in assert_vma() 64 struct i915_address_space *vm, in checked_vma_instance() argument 70 vma = i915_vma_instance(obj, vm, view); in checked_vma_instance() 75 if (vma->vm != vm) { in checked_vma_instance() 76 pr_err("VMA's vm [%p] does not match request [%p]\n", in checked_vma_instance() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mm/ |
| D | mmu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1995-2005 Russell King 35 #include <asm/mach/map.h> 47 * zero-initialized data and COW. 53 * The pmd table for the upper-most set of pages. 144 int i, selected = -1; in early_cachepolicy() 155 if (selected == -1) in early_cachepolicy() 239 [MT_DEVICE_NONSHARED] = { /* ARMv6 non-shared device */ 436 pr_warn("Forcing write-allocate cache policy for SMP\n"); in build_mem_type_table() 447 * Pre-ARMv5 CPUs don't have TEX bits. Pre-ARMv6 CPUs or those in build_mem_type_table() [all …]
|
| /kernel/linux/linux-4.19/arch/arm/mm/ |
| D | mmu.c | 4 * Copyright (C) 1995-2005 Russell King 37 #include <asm/mach/map.h> 47 * zero-initialized data and COW. 53 * The pmd table for the upper-most set of pages. 161 int i, selected = -1; in early_cachepolicy() 172 if (selected == -1) in early_cachepolicy() 259 [MT_DEVICE_NONSHARED] = { /* ARMv6 non-shared device */ 461 pr_warn("Forcing write-allocate cache policy for SMP\n"); in build_mem_type_table() 472 * Pre-ARMv5 CPUs don't have TEX bits. Pre-ARMv6 CPUs or those in build_mem_type_table() 484 * "update-able on write" bit on ARM610). However, Xscale and in build_mem_type_table() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/i915/selftests/ |
| D | i915_gem_context.c | 39 const int gen = INTEL_GEN(vma->vm->i915); in gpu_fill_dw() 46 obj = i915_gem_object_create_internal(vma->vm->i915, size); in gpu_fill_dw() 56 GEM_BUG_ON(offset + (count - 1) * PAGE_SIZE > vma->node.size); in gpu_fill_dw() 57 offset += vma->node.start; in gpu_fill_dw() 85 vma = i915_vma_instance(obj, vma->vm, NULL); in gpu_fill_dw() 117 struct drm_i915_private *i915 = to_i915(obj->base.dev); in gpu_fill() 118 struct i915_address_space *vm = in gpu_fill() local 119 ctx->ppgtt ? &ctx->ppgtt->vm : &i915->ggtt.vm; in gpu_fill() 126 GEM_BUG_ON(obj->base.size > vm->total); in gpu_fill() 129 vma = i915_vma_instance(obj, vm, NULL); in gpu_fill() [all …]
|
| /kernel/linux/linux-4.19/mm/ |
| D | vmalloc.c | 6 * SMP-safe vmalloc/vfree/ioremap, Tigran Aivazian <tigran@veritas.com>, May 2000 26 #include <linux/radix-tree.h> 55 llist_for_each_safe(llnode, t, llist_del_all(&p->list)) in free_work() 147 return -ENOMEM; in vmap_pte_range() 152 return -EBUSY; in vmap_pte_range() 154 return -ENOMEM; in vmap_pte_range() 169 return -ENOMEM; in vmap_pmd_range() 173 return -ENOMEM; in vmap_pmd_range() 186 return -ENOMEM; in vmap_pud_range() 190 return -ENOMEM; in vmap_pud_range() [all …]
|
| /kernel/linux/linux-4.19/include/linux/irqchip/ |
| D | arm-gic-v4.h | 25 * ITSList mechanism to perform inter-ITS synchronization. 57 /* Unique (system-wide) VPE identifier */ 71 * @vm: Pointer to the GICv4 notion of a VM 78 struct its_vm *vm; member 98 struct its_vlpi_map *map; member 103 int its_alloc_vcpu_irqs(struct its_vm *vm); 104 void its_free_vcpu_irqs(struct its_vm *vm); 107 int its_map_vlpi(int irq, struct its_vlpi_map *map); 108 int its_get_vlpi(int irq, struct its_vlpi_map *map);
|
| /kernel/linux/linux-5.10/sound/pci/ctxfi/ |
| D | ctvmem.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 * Find or create vm block based on requested @size. 30 get_vm_block(struct ct_vm *vm, unsigned int size, struct ct_atc *atc) in get_vm_block() argument 36 if (size > vm->size) { in get_vm_block() 37 dev_err(atc->card->dev, in get_vm_block() 42 mutex_lock(&vm->lock); in get_vm_block() 43 list_for_each(pos, &vm->unused) { in get_vm_block() 45 if (entry->size >= size) in get_vm_block() 48 if (pos == &vm->unused) in get_vm_block() 51 if (entry->size == size) { in get_vm_block() [all …]
|
| /kernel/linux/linux-4.19/sound/pci/ctxfi/ |
| D | ctvmem.c | 29 * Find or create vm block based on requested @size. 33 get_vm_block(struct ct_vm *vm, unsigned int size, struct ct_atc *atc) in get_vm_block() argument 39 if (size > vm->size) { in get_vm_block() 40 dev_err(atc->card->dev, in get_vm_block() 45 mutex_lock(&vm->lock); in get_vm_block() 46 list_for_each(pos, &vm->unused) { in get_vm_block() 48 if (entry->size >= size) in get_vm_block() 51 if (pos == &vm->unused) in get_vm_block() 54 if (entry->size == size) { in get_vm_block() 55 /* Move the vm node from unused list to used list directly */ in get_vm_block() [all …]
|
| /kernel/linux/linux-5.10/include/linux/irqchip/ |
| D | arm-gic-v4.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 14 * ITSList mechanism to perform inter-ITS synchronization. 35 /* per-vPE VLPI tracking */ 65 * vPE and vLPI operations using vpe->col_idx. 74 /* Unique (system-wide) VPE identifier */ 86 * @vm: Pointer to the GICv4 notion of a VM 93 struct its_vm *vm; member 114 struct its_vlpi_map *map; member 128 int its_alloc_vcpu_irqs(struct its_vm *vm); 129 void its_free_vcpu_irqs(struct its_vm *vm); [all …]
|
| /kernel/linux/linux-5.10/mm/ |
| D | vmalloc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * SMP-safe vmalloc/vfree/ioremap, Tigran Aivazian <tigran@veritas.com>, May 2000 43 #include "pgalloc-track.h" 66 llist_for_each_safe(llnode, t, llist_del_all(&p->list)) in free_work() 157 * unmap_kernel_range_noflush - unmap kernel VM area 158 * @start: start of the VM area to unmap 159 * @size: size of the VM area to unmap 161 * Unmap PFN_UP(@size) pages at @addr. The VM area @addr and @size specify 166 * for calling flush_cache_vunmap() on to-be-mapped areas before calling this 205 return -ENOMEM; in vmap_pte_range() [all …]
|
| /kernel/linux/linux-4.19/Documentation/s390/ |
| D | monreader.txt | 2 Date : 2004-Nov-26 6 Linux API for read access to z/VM Monitor Records 13 usable from user space and allows read access to the z/VM Monitor Records 14 collected by the *MONITOR System Service of z/VM. 19 The z/VM guest on which you want to access this API needs to be configured in 23 This item will use the IUCV device driver to access the z/VM services, so you 24 need a kernel with IUCV support. You also need z/VM version 4.4 or 5.1. 28 location of the monitor DCSS with the Class E privileged CP command Q NSS MAP 31 See also "CP Command and Utility Reference" (SC24-6081-00) for more information 32 on the DEF STOR and Q NSS MAP commands, as well as "Saved Segments Planning [all …]
|
| /kernel/linux/linux-5.10/Documentation/s390/ |
| D | monreader.rst | 2 Linux API for read access to z/VM Monitor Records 5 Date : 2004-Nov-26 15 usable from user space and allows read access to the z/VM Monitor Records 16 collected by the `*MONITOR` System Service of z/VM. 21 The z/VM guest on which you want to access this API needs to be configured in 25 This item will use the IUCV device driver to access the z/VM services, so you 26 need a kernel with IUCV support. You also need z/VM version 4.4 or 5.1. 30 location of the monitor DCSS with the Class E privileged CP command Q NSS MAP 33 See also "CP Command and Utility Reference" (SC24-6081-00) for more information 34 on the DEF STOR and Q NSS MAP commands, as well as "Saved Segments Planning [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/ |
| D | i915_gem_context.c | 2 * SPDX-License-Identifier: MIT 33 return rcu_dereference_protected(ctx->vm, true); in ctx_vm() 45 int err = -ENODEV; in live_nop_switch() 55 if (!DRIVER_CAPS(i915)->has_logical_contexts) in live_nop_switch() 64 err = -ENOMEM; in live_nop_switch() 91 i915_request_await_dma_fence(this, &rq->fence); in live_nop_switch() 99 intel_gt_set_wedged(&i915->gt); in live_nop_switch() 101 err = -EIO; in live_nop_switch() 109 nctx, engine->name, ktime_to_ns(times[1] - times[0])); in live_nop_switch() 111 err = igt_live_test_begin(&t, i915, __func__, engine->name); in live_nop_switch() [all …]
|
| /kernel/linux/linux-4.19/Documentation/vm/ |
| D | overcommit-accounting.rst | 34 The overcommit policy is set via the sysctl ``vm.overcommit_memory``. 36 The overcommit amount can be set via ``vm.overcommit_ratio`` (percentage) 37 or ``vm.overcommit_kbytes`` (absolute value). 58 For a file backed map 59 | SHARED or READ-only - 0 cost (the file is the map not swap) 60 | PRIVATE WRITABLE - size of mapping per instance 62 For an anonymous or ``/dev/zero`` map 63 | SHARED - size of mapping 64 | PRIVATE READ-only - 0 cost (but of little use) 65 | PRIVATE WRITABLE - size of mapping per instance
|
| /kernel/linux/linux-5.10/Documentation/vm/ |
| D | overcommit-accounting.rst | 34 The overcommit policy is set via the sysctl ``vm.overcommit_memory``. 36 The overcommit amount can be set via ``vm.overcommit_ratio`` (percentage) 37 or ``vm.overcommit_kbytes`` (absolute value). 58 For a file backed map 59 | SHARED or READ-only - 0 cost (the file is the map not swap) 60 | PRIVATE WRITABLE - size of mapping per instance 62 For an anonymous or ``/dev/zero`` map 63 | SHARED - size of mapping 64 | PRIVATE READ-only - 0 cost (but of little use) 65 | PRIVATE WRITABLE - size of mapping per instance
|
| /kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/x86_64/ |
| D | vmx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 46 int vcpu_enable_evmcs(struct kvm_vm *vm, int vcpu_id) in vcpu_enable_evmcs() argument 55 vcpu_ioctl(vm, vcpu_id, KVM_ENABLE_CAP, &enable_evmcs_cap); in vcpu_enable_evmcs() 69 * vm - The VM to allocate guest-virtual addresses in. 72 * p_vmx_gva - The guest virtual address for the struct vmx_pages. 78 vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva) in vcpu_alloc_vmx() argument 80 vm_vaddr_t vmx_gva = vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx() 81 struct vmx_pages *vmx = addr_gva2hva(vm, vmx_gva); in vcpu_alloc_vmx() 84 vmx->vmxon = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx() 85 vmx->vmxon_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_amdkfd_gpuvm.c | 2 * Copyright 2014-2018 Advanced Micro Devices, Inc. 33 /* Special VM and GART address alignment needed for VI pre-Fiji due to 41 /* Userptr restore delay, just long enough to allow consecutive VM 70 #define domain_string(domain) domain_bit_to_string[ffs(domain)-1] 85 list_for_each_entry(entry, &mem->bo_va_list, bo_list) in check_if_add_bo_to_vm() 86 if (entry->bo_va->base.vm == avm) in check_if_add_bo_to_vm() 93 * System (kernel) memory - 3/8th System RAM 94 * Userptr memory - 3/4th System RAM 102 mem = si.totalram - si.totalhigh; in amdgpu_amdkfd_gpuvm_init_mem_limits() 106 kfd_mem_limit.max_system_mem_limit = (mem >> 1) - (mem >> 3); in amdgpu_amdkfd_gpuvm_init_mem_limits() [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/habanalabs/common/ |
| D | memory.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright 2016-2019 HabanaLabs, Ltd. 29 * two chunks - one to return as result and a remainder to stay in the list. 42 * alloc_device_memory - allocate device memory 49 * - Allocate the requested size rounded up to 2MB pages 50 * - Return unique handle 55 struct hl_device *hdev = ctx->hdev; in alloc_device_memory() 56 struct hl_vm *vm = &hdev->vm; in alloc_device_memory() local 64 page_size = hdev->asic_prop.dram_page_size; in alloc_device_memory() 66 num_pgs = (args->alloc.mem_size + (page_size - 1)) >> page_shift; in alloc_device_memory() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_amdkfd_gpuvm.c | 2 * Copyright 2014-2018 Advanced Micro Devices, Inc. 22 #include <linux/dma-buf.h> 37 /* Userptr restore delay, just long enough to allow consecutive VM 60 #define domain_string(domain) domain_bit_to_string[ffs(domain)-1] 75 list_for_each_entry(entry, &mem->bo_va_list, bo_list) in check_if_add_bo_to_vm() 76 if (entry->bo_va->base.vm == avm) in check_if_add_bo_to_vm() 83 * System (TTM + userptr) memory - 15/16th System RAM 84 * TTM memory - 3/8th System RAM 92 mem = si.totalram - si.totalhigh; in amdgpu_amdkfd_gpuvm_init_mem_limits() 96 kfd_mem_limit.max_system_mem_limit = mem - (mem >> 4); in amdgpu_amdkfd_gpuvm_init_mem_limits() [all …]
|