/Linux-v5.15/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 …]
|
/Linux-v5.15/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 …]
|
D | irq-gic-v3-its.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013-2017 ARM Limited, All Rights Reserved. 14 #include <linux/dma-iommu.h> 34 #include <linux/irqchip/arm-gic-v3.h> 35 #include <linux/irqchip/arm-gic-v4.h> 40 #include "irq-gic-common.h" 63 * Collection structure - just an ID, and a redistributor address to 73 * The ITS_BASER structure - contains memory information, cached 86 * The ITS structure - contains most of the infrastructure, with the 87 * top-level MSI domain, the command queue, the collections, and the [all …]
|
/Linux-v5.15/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 …]
|
/Linux-v5.15/drivers/virt/acrn/ |
D | mm.c | 1 // SPDX-License-Identifier: GPL-2.0 18 static int modify_region(struct acrn_vm *vm, struct vm_memory_region_op *region) in modify_region() argument 25 return -ENOMEM; in modify_region() 27 regions->vmid = vm->vmid; in modify_region() 28 regions->regions_num = 1; in modify_region() 29 regions->regions_gpa = virt_to_phys(region); in modify_region() 34 "Failed to set memory region for VM[%u]!\n", vm->vmid); in modify_region() 41 * acrn_mm_region_add() - Set up the EPT mapping of a memory region. 42 * @vm: User VM. 43 * @user_gpa: A GPA of User VM. [all …]
|
D | acrn_drv.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 * struct vm_memory_region_op - Hypervisor memory operation 28 * @user_vm_pa: Physical address of User VM to be mapped. 29 * @service_vm_pa: Physical address of Service VM to be mapped. 33 * to manage the EPT mappings of a single memory region of the User VM. Several 46 * struct vm_memory_region_batch - A batch of vm_memory_region_op. 47 * @vmid: A User VM ID. 53 * multiple memory regions of a User VM. A &struct vm_memory_region_batch 65 * struct vm_memory_mapping - Memory map between a User VM and the Service VM 66 * @pages: Pages in Service VM kernel. [all …]
|
/Linux-v5.15/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 vmx = vcpu_alloc_vmx(vm, &vmx_pages_gva); in main() 86 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main() 87 run = vcpu_state(vm, VCPU_ID); in main() 90 vm_userspace_mem_region_add(vm, VM_MEM_SRC_ANONYMOUS, in main() 97 * Add an identity map for GVA range [0xc0000000, 0xc0002000). This in main() [all …]
|
D | mmu_role_test.c | 1 // SPDX-License-Identifier: GPL-2.0 21 GUEST_ASSERT(regs->error_code == 0x9); in guest_pf_handler() 29 struct kvm_vm *vm; in mmu_role_test() local 33 /* Create VM */ in mmu_role_test() 34 vm = vm_create_default(VCPU_ID, 0, guest_code); in mmu_role_test() 35 run = vcpu_state(vm, VCPU_ID); in mmu_role_test() 37 /* Map 1gb page without a backing memlot. */ in mmu_role_test() 38 __virt_pg_map(vm, MMIO_GPA, MMIO_GPA, X86_PAGE_SIZE_1G); in mmu_role_test() 40 r = _vcpu_run(vm, VCPU_ID); in mmu_role_test() 44 TEST_ASSERT(run->exit_reason == KVM_EXIT_MMIO, in mmu_role_test() [all …]
|
/Linux-v5.15/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 …]
|
/Linux-v5.15/arch/arm/mm/ |
D | mmu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1995-2005 Russell King 34 #include <asm/mach/map.h> 46 * zero-initialized data and COW. 52 * The pmd table for the upper-most set of pages. 143 int i, selected = -1; in early_cachepolicy() 154 if (selected == -1) in early_cachepolicy() 238 [MT_DEVICE_NONSHARED] = { /* ARMv6 non-shared device */ 434 pr_warn("Forcing write-allocate cache policy for SMP\n"); in build_mem_type_table() 445 * Pre-ARMv5 CPUs don't have TEX bits. Pre-ARMv6 CPUs or those in build_mem_type_table() [all …]
|
D | ioremap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Re-map IO memory to kernel address space so that we can access it. 17 * Because the ARM only has a 32-bit address space we can't address the 18 * whole of the (physical) PCI space at once. PCI huge-mode addressing 41 #include <asm/mach/map.h> 52 struct vm_struct *vm; in find_static_vm_paddr() local 55 vm = &svm->vm; in find_static_vm_paddr() 56 if (!(vm->flags & VM_ARM_STATIC_MAPPING)) in find_static_vm_paddr() 58 if ((vm->flags & VM_ARM_MTYPE_MASK) != VM_ARM_MTYPE(mtype)) in find_static_vm_paddr() 61 if (vm->phys_addr > paddr || in find_static_vm_paddr() [all …]
|
/Linux-v5.15/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 …]
|
/Linux-v5.15/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 */ 67 * vPE and vLPI operations using vpe->col_idx. 76 /* Unique (system-wide) VPE identifier */ 88 * @vm: Pointer to the GICv4 notion of a VM 95 struct its_vm *vm; member 117 struct its_vlpi_map *map; member 131 int its_alloc_vcpu_irqs(struct its_vm *vm); 132 void its_free_vcpu_irqs(struct its_vm *vm); [all …]
|
/Linux-v5.15/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 …]
|
D | i915_gem_coherency.c | 2 * SPDX-License-Identifier: MIT 27 void *map; in cpu_set() local 31 i915_gem_object_lock(ctx->obj, NULL); in cpu_set() 32 err = i915_gem_object_prepare_write(ctx->obj, &needs_clflush); in cpu_set() 36 page = i915_gem_object_get_page(ctx->obj, offset >> PAGE_SHIFT); in cpu_set() 37 map = kmap_atomic(page); in cpu_set() 38 cpu = map + offset_in_page(offset); in cpu_set() 48 kunmap_atomic(map); in cpu_set() 49 i915_gem_object_finish_access(ctx->obj); in cpu_set() 52 i915_gem_object_unlock(ctx->obj); in cpu_set() [all …]
|
/Linux-v5.15/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 45 #include "pgalloc-track.h" 48 static unsigned int __ro_after_init ioremap_max_page_shift = BITS_PER_LONG - 1; 94 llist_for_each_safe(llnode, t, llist_del_all(&p->list)) in free_work() 110 return -ENOMEM; in vmap_pte_range() 143 if ((end - addr) != PMD_SIZE) in vmap_try_huge_pmd() 167 return -ENOMEM; in vmap_pmd_range() 178 return -ENOMEM; in vmap_pmd_range() 179 } while (pmd++, phys_addr += (next - addr), addr = next, addr != end); in vmap_pmd_range() [all …]
|
/Linux-v5.15/drivers/gpu/drm/lima/ |
D | lima_gem.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 2 /* Copyright 2017-2019 Qiang Yu <yuq825@gmail.com> */ 8 #include <linux/dma-mapping.h> 20 int lima_heap_alloc(struct lima_bo *bo, struct lima_vm *vm) in lima_heap_alloc() argument 23 struct address_space *mapping = bo->base.base.filp->f_mapping; in lima_heap_alloc() 24 struct device *dev = bo->base.base.dev->dev; in lima_heap_alloc() 25 size_t old_size = bo->heap_size; in lima_heap_alloc() 26 size_t new_size = bo->heap_size ? bo->heap_size * 2 : in lima_heap_alloc() 31 if (bo->heap_size >= bo->base.base.size) in lima_heap_alloc() 32 return -ENOSPC; in lima_heap_alloc() [all …]
|
D | lima_sched.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 2 /* Copyright 2017-2019 Qiang Yu <yuq825@gmail.com> */ 4 #include <linux/dma-buf-map.h> 34 return -ENOMEM; in lima_sched_slab_init() 43 if (!--lima_fence_slab_refcnt) { in lima_sched_slab_fini() 63 return f->pipe->base.name; in lima_fence_get_timeline_name() 78 call_rcu(&f->base.rcu, lima_fence_release_rcu); in lima_fence_release() 95 fence->pipe = pipe; in lima_fence_create() 96 dma_fence_init(&fence->base, &lima_fence_ops, &pipe->fence_lock, in lima_fence_create() 97 pipe->fence_context, ++pipe->fence_seqno); in lima_fence_create() [all …]
|
/Linux-v5.15/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 …]
|
/Linux-v5.15/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_page(vm); 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_page(vm); in vcpu_alloc_vmx() 85 vmx->vmxon_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx() [all …]
|
/Linux-v5.15/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
|
/Linux-v5.15/tools/testing/selftests/kvm/ |
D | memslot_perf_test.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * A memslot-related performance benchmark. 36 #define MEM_TEST_SIZE (MEM_SIZE - 4096) 48 #define MEM_TEST_MAP_SIZE (MEM_SIZE_MAP - 4096) 50 static_assert(MEM_SIZE_MAP % 4096 == 0, "invalid map test region size"); 51 static_assert(MEM_TEST_MAP_SIZE % 4096 == 0, "invalid map test region size"); 52 static_assert(MEM_TEST_MAP_SIZE_PAGES % 2 == 0, "invalid map test region size"); 53 static_assert(MEM_TEST_MAP_SIZE_PAGES > 2, "invalid map test region size"); 62 #define MEM_TEST_UNMAP_CHUNK_PAGES (2U << (20 - 12)) 92 struct kvm_vm *vm; member [all …]
|
/Linux-v5.15/drivers/gpu/drm/omapdrm/ |
D | omap_encoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ 22 /* The encoder and connector both map to same dssdev.. the encoder 24 * of the hw, and the connector handles the 'read-only' parts, like 44 static void omap_encoder_update_videomode_flags(struct videomode *vm, in omap_encoder_update_videomode_flags() argument 47 if (!(vm->flags & (DISPLAY_FLAGS_DE_LOW | in omap_encoder_update_videomode_flags() 50 vm->flags |= DISPLAY_FLAGS_DE_LOW; in omap_encoder_update_videomode_flags() 52 vm->flags |= DISPLAY_FLAGS_DE_HIGH; in omap_encoder_update_videomode_flags() 55 if (!(vm->flags & (DISPLAY_FLAGS_PIXDATA_POSEDGE | in omap_encoder_update_videomode_flags() 58 vm->flags |= DISPLAY_FLAGS_PIXDATA_POSEDGE; in omap_encoder_update_videomode_flags() [all …]
|
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_amdkfd_gpuvm.c | 2 * Copyright 2014-2018 Advanced Micro Devices, Inc. 22 #include <linux/dma-buf.h> 36 /* Userptr restore delay, just long enough to allow consecutive VM 59 #define domain_string(domain) domain_bit_to_string[ffs(domain)-1] 74 list_for_each_entry(entry, &mem->attachments, list) in kfd_mem_is_attached() 75 if (entry->bo_va->base.vm == avm) in kfd_mem_is_attached() 82 * System (TTM + userptr) memory - 15/16th System RAM 83 * TTM memory - 3/8th System RAM 91 mem = si.freeram - si.freehigh; in amdgpu_amdkfd_gpuvm_init_mem_limits() 95 kfd_mem_limit.max_system_mem_limit = mem - (mem >> 4); in amdgpu_amdkfd_gpuvm_init_mem_limits() [all …]
|
/Linux-v5.15/drivers/misc/habanalabs/common/ |
D | memory.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright 2016-2019 HabanaLabs, Ltd. 17 /* use small pages for supporting non-pow2 (32M/40M/48M) DRAM phys page sizes */ 31 * two chunks - one to return as result and a remainder to stay in the list. 44 * alloc_device_memory() - allocate device memory. 50 * - Allocate the requested size rounded up to 'dram_page_size' pages. 51 * - Return unique handle for later map/unmap/free. 56 struct hl_device *hdev = ctx->hdev; in alloc_device_memory() 57 struct hl_vm *vm = &hdev->vm; in alloc_device_memory() local 65 page_size = hdev->asic_prop.dram_page_size; in alloc_device_memory() [all …]
|