data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
metadata
dict
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> int mcrfs(u32 *ccr, u32 crfD, u32 crfS) { u32 value, clear; #ifdef DEBUG printk("%s: %p (%08x) %d %d\n", __func__, ccr, *ccr, crfD, crfS); #end...
arch/powerpc/math-emu/mcrfs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> int mffs(u32 *frD) { frD[1] = __FPU_FPSCR; #ifdef DEBUG printk("%s: frD %p: %08x.%08x\n", __func__, frD, frD[0], frD[1]); #endif return 0; }
arch/powerpc/math-emu/mffs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> int mtfsb0(int crbD) { if ((crbD != 1) && (crbD != 2)) __FPU_FPSCR &= ~(1 << (31 - crbD)); #ifdef DEBUG printk("%s: %d %08lx\n", __func__, cr...
arch/powerpc/math-emu/mtfsb0.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> int mtfsb1(int crbD) { if ((crbD != 1) && (crbD != 2)) __FPU_FPSCR |= (1 << (31 - crbD)); #ifdef DEBUG printk("%s: %d %08lx\n", __func__, crb...
arch/powerpc/math-emu/mtfsb1.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> int mtfsf(unsigned int FM, u32 *frB) { u32 mask; u32 fpscr; if (likely(FM == 1)) mask = 0x0f; else if (likely(FM == 0xff)) mask = ~0; el...
arch/powerpc/math-emu/mtfsf.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> int mtfsfi(unsigned int crfD, unsigned int IMM) { u32 mask = 0xf; if (!crfD) mask = 9; __FPU_FPSCR &= ~(mask << ((7 - crfD) << 2)); __FPU_...
arch/powerpc/math-emu/mtfsfi.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> int stfd(void *frS, void *ea) { #if 0 #ifdef DEBUG printk("%s: S %p, ea %p: ", __func__, frS, ea); dump_double(frS); printk("\n"); #endif #endif if (copy_to_user(ea, frS, sizeof(double))) return -EFA...
arch/powerpc/math-emu/stfd.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> int stfiwx(u32 *frS, void *ea) { #ifdef DEBUG printk("%s: %p %p\n", __func__, frS, ea); #endif if (copy_to_user(ea, &frS[1], sizeof(frS[1]))) return -EFAULT; return 0; }
arch/powerpc/math-emu/stfiwx.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int stfs(void *frS, void *ea) { FP_DECL_D(A); FP_DECL_S(R); FP_DECL_EX; float f; #i...
arch/powerpc/math-emu/stfs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* This has so very few changes over libgcc2's __udivmoddi4 it isn't funny. */ #include <math-emu/soft-fp.h> #undef count_leading_zeros #define count_leading_zeros __FP_CLZ void _fp_udivmodti4(_FP_W_TYPE q[2], _FP_W_TYPE r[2], _FP_W_TYPE n1, _FP_W_TYPE n0, _FP_W_...
arch/powerpc/math-emu/udivmodti4.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later #include <linux/highmem.h> #include <linux/kprobes.h> /** * flush_coherent_icache() - if a CPU has a coherent icache, flush it * Return true if the cache was flushed, false otherwise */ static inline bool flush_coherent_icache(void) { /* * For a snooping icache, we s...
arch/powerpc/mm/cacheflush.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * CoProcessor (SPU/AFU) mm fault handler * * (C) Copyright IBM Deutschland Entwicklung GmbH 2007 * * Author: Arnd Bergmann <arndb@de.ibm.com> * Author: Jeremy Kerr <jk@ozlabs.org> */ #include <linux/sched.h> #include <linux/mm.h> #include <linux/export.h> #include ...
arch/powerpc/mm/copro_fault.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PowerPC version derived from arch/arm/mm/consistent.c * Copyright (C) 2001 Dan Malek (dmalek@jlc.net) * * Copyright (C) 2000 Russell King */ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/types.h> #include <linux/highmem.h> #include <linux/dma...
arch/powerpc/mm/dma-noncoherent.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Dynamic reconfiguration memory support * * Copyright 2017 IBM Corporation */ #define pr_fmt(fmt) "drmem: " fmt #include <linux/kernel.h> #include <linux/of.h> #include <linux/of_fdt.h> #include <linux/memblock.h> #include <linux/slab.h> #include <asm/drmem.h> sta...
arch/powerpc/mm/drmem.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Derived from "arch/i386/mm/fault.c" * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds * * Modified by Cort Dougan and Paul Mackerras. * * Modified for PPC64 by Dave Enge...
arch/powerpc/mm/fault.c
null
null
null
null
null
source
linux
/* * PPC Huge TLB Page Support for Kernel. * * Copyright (C) 2003 David Gibson, IBM Corporation. * Copyright (C) 2011 Becky Bruce, Freescale Semiconductor * * Based on the IA-32 version: * Copyright (C) 2002, Rohit Seth <rohit.seth@intel.com> */ #include <linux/mm.h> #include <linux/io.h> #include <linux/slab....
arch/powerpc/mm/hugetlbpage.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * and Cort Dougan (PReP) (cort@cs.nmt.edu) * Copyright (C) 1996 Paul Mackerras * * Derived from "arch/i386/mm...
arch/powerpc/mm/init-common.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * and Cort Dougan (PReP) (cort@cs.nmt.edu) * Copyright (C) 1996 Paul Mackerras * PPC44x/36-bit changes by Matt...
arch/powerpc/mm/init_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * and Cort Dougan (PReP) (cort@cs.nmt.edu) * Copyright (C) 1996 Paul Mackerras * * Derived from "arch/i386/mm...
arch/powerpc/mm/init_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later #include <linux/io.h> #include <linux/slab.h> #include <linux/mmzone.h> #include <linux/vmalloc.h> unsigned long ioremap_bot; EXPORT_SYMBOL(ioremap_bot); void __iomem *ioremap(phys_addr_t addr, unsigned long size) { pgprot_t prot = pgprot_noncached(PAGE_KERNEL); void *c...
arch/powerpc/mm/ioremap.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later #include <linux/io.h> #include <linux/slab.h> #include <linux/vmalloc.h> #include <mm/mmu_decl.h> void __iomem *ioremap_wt(phys_addr_t addr, unsigned long size) { pgprot_t prot = pgprot_cached_wthru(PAGE_KERNEL); return __ioremap_caller(addr, size, prot, __builtin_retu...
arch/powerpc/mm/ioremap_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later #include <linux/io.h> #include <linux/slab.h> #include <linux/vmalloc.h> void __iomem *__ioremap_caller(phys_addr_t addr, unsigned long size, pgprot_t prot, void *caller) { phys_addr_t paligned, offset; void __iomem *ret; int err; /* We don't support the 4K ...
arch/powerpc/mm/ioremap_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/uaccess.h> #include <linux/kernel.h> #include <asm/disassemble.h> #include <asm/inst.h> #include <asm/ppc-opcode.h> bool copy_from_kernel_nofault_allowed(const void *unsafe_src, size_t size) { return is_kernel_addr((unsigned long)unsafe_src); }
arch/powerpc/mm/maccess.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * and Cort Dougan (PReP) (cort@cs.nmt.edu) * Copyright (C) 1996 Paul Mackerras * PPC44x/36-bit changes by Matt...
arch/powerpc/mm/mem.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Common implementation of switch_mm_irqs_off * * Copyright IBM Corp. 2017 */ #include <linux/mm.h> #include <linux/cpu.h> #include <linux/sched/mm.h> #include <asm/mmu_context.h> #include <asm/pgalloc.h> #if defined(CONFIG_PPC32) static inline void switch_mm_pgd...
arch/powerpc/mm/mmu_context.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Declarations of procedures and variables shared between files * in arch/ppc/mm/. * * Derived from arch/ppc/mm/init.c: * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * and Co...
arch/powerpc/mm/mmu_decl.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * pSeries NUMA support * * Copyright (C) 2002 Anton Blanchard <anton@au.ibm.com>, IBM */ #define pr_fmt(fmt) "numa: " fmt #include <linux/threads.h> #include <linux/memblock.h> #include <linux/init.h> #include <linux/mm.h> #include <linux/mmzone.h> #include <linux/ex...
arch/powerpc/mm/numa.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * MMU-generic set_memory implementation for powerpc * * Copyright 2019-2021, IBM Corporation. */ #include <linux/mm.h> #include <linux/vmalloc.h> #include <linux/set_memory.h> #include <asm/mmu.h> #include <asm/page.h> #include <asm/pgtable.h> #include <mm/mmu_decl.h> sta...
arch/powerpc/mm/pageattr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Handling Page Tables through page fragments * */ #include <linux/kernel.h> #include <linux/gfp.h> #include <linux/mm.h> #include <linux/percpu.h> #include <linux/hardirq.h> #include <linux/hugetlb.h> #include <asm/pgalloc.h> #include <asm/tlbflush.h> #include <asm/tlb.h> ...
arch/powerpc/mm/pgtable-frag.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains common routines for dealing with free of page tables * Along with common page table handling code * * Derived from arch/powerpc/mm/tlb_64.c: * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (Powe...
arch/powerpc/mm/pgtable.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains the routines setting up the linux page tables. * -- paulus * * Derived from arch/ppc/mm/init.c: * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * and Cort Do...
arch/powerpc/mm/pgtable_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains pgtable related functions for 64-bit machines. * * Derived from arch/ppc64/mm/init.c * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@samba.org) * and Cort Dougan (PReP) (cor...
arch/powerpc/mm/pgtable_64.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * Rewritten by Cort Dougan (cort@cs.nmt.edu) for PReP * Copyright (C) 1996 Cort Dougan <cort@cs.nmt.edu> * Adapted for Power Macintosh by Paul Mackerras. * Low-level exception ha...
arch/powerpc/mm/book3s32/hash_low.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later #include <asm/kup.h> #include <asm/smp.h> void setup_kuap(bool disabled) { if (!disabled) { update_user_segments(mfsr(0) | SR_KS); isync(); /* Context sync required after mtsr() */ init_mm.context.sr0 |= SR_KS; current->thread.sr0 |= SR_KS; } if (smp_pro...
arch/powerpc/mm/book3s32/kuap.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains the routines for handling the MMU on those * PowerPC implementations where the MMU substantially follows the * architecture specification. This includes the 6xx, 7xx, 7xxx, * and 8260 implementations but excludes the 8xx and 4xx. * -- paulus *...
arch/powerpc/mm/book3s32/mmu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains the routines for handling the MMU on those * PowerPC implementations where the MMU substantially follows the * architecture specification. This includes the 6xx, 7xx, 7xxx, * and 8260 implementations but excludes the 8xx and 4xx. * -- paulus *...
arch/powerpc/mm/book3s32/mmu_context.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains low-level assembler routines for managing * the PowerPC 603 tlb invalidation. */ #include <asm/page.h> #include <asm/ppc_asm.h> #include <asm/asm-offsets.h> /* * Flush an entry from the TLB */ #ifdef CONFIG_SMP _GLOBAL(_tlbie) lwz r8,TASK...
arch/powerpc/mm/book3s32/nohash_low.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains the routines for TLB flushing. * On machines where the MMU uses a hash table to store virtual to * physical translations, these routines flush entries from the * hash table also. * -- paulus * * Derived from arch/ppc/mm/init.c: * Copyrigh...
arch/powerpc/mm/book3s32/tlb.c
null
null
null
null
null
source
linux
/* * Copyright IBM Corporation, 2015 * Author Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> * * under the terms of version 2 of the GNU Lesser General Public License * as published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, but * */ #include <linux/mm...
arch/powerpc/mm/book3s64/hash_4k.c
null
null
null
null
null
source
linux
/* * Copyright IBM Corporation, 2015 * Author Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> * * under the terms of version 2 of the GNU Lesser General Public License * as published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, but * */ #include <linux/mm...
arch/powerpc/mm/book3s64/hash_64k.c
null
null
null
null
null
source
linux
/* * Copyright IBM Corporation, 2013 * Author Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> * * under the terms of version 2.1 of the GNU Lesser General Public License * as published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, but * */ /* * PPC64 THP ...
arch/powerpc/mm/book3s64/hash_hugepage.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * native hashtable management. * * SMP scalability work: * Copyright (C) 2001 Anton Blanchard <anton@au.ibm.com>, IBM */ #undef DEBUG_LOW #include <linux/spinlock.h> #include <linux/bitops.h> #include <linux/of.h> #include <linux/processor.h> #include <linux/thr...
arch/powerpc/mm/book3s64/hash_native.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2005, Paul Mackerras, IBM Corporation. * Copyright 2009, Benjamin Herrenschmidt, IBM Corporation. * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation. */ #include <linux/sched.h> #include <linux/mm_types.h> #include <linux/mm.h> #include <linux/page_...
arch/powerpc/mm/book3s64/hash_pgtable.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains the routines for flushing entries from the * TLB and MMU hash table. * * Derived from arch/ppc64/mm/init.c: * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * ...
arch/powerpc/mm/book3s64/hash_tlb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC64 port by Mike Corrigan and Dave Engebretsen * {mikejc|engebret}@us.ibm.com * * Copyright (c) 2000 Mike Corrigan <mikejc@us.ibm.com> * * SMP scalability work: * Copyright (C) 2001 Anton Blanchard <anton@au.ibm.com>, IBM * * Module name: htab....
arch/powerpc/mm/book3s64/hash_utils.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * PPC64 Huge TLB Page Support for hash based MMUs (POWER4 and later) * * Copyright (C) 2003 David Gibson, IBM Corporation. * * Based on the IA-32 version: * Copyright (C) 2002, Rohit Seth <rohit.seth@intel.com> */ #include <linux/mm.h> #include <linux/hugetlb.h> #include <...
arch/powerpc/mm/book3s64/hugetlbpage.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H #define ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H #include <linux/jump_label.h> extern bool stress_slb_enabled; DECLARE_STATIC_KEY_FALSE(stress_slb_key); static inline bool stress_slb(void) { return static_branch_unlikely(&stress...
arch/powerpc/mm/book3s64/internal.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * IOMMU helpers in MMU context. * * Copyright (C) 2015 IBM Corp. <aik@ozlabs.ru> */ #include <linux/sched/signal.h> #include <linux/slab.h> #include <linux/rculist.h> #include <linux/vmalloc.h> #include <linux/mutex.h> #include <linux/migrate.h> #include <linux/hug...
arch/powerpc/mm/book3s64/iommu_api.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * MMU context allocation for 64-bit kernels. * * Copyright (C) 2004 Anton Blanchard, IBM Corp. <anton@samba.org> */ #include <linux/sched.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/types.h> #include <linux/mm.h> ...
arch/powerpc/mm/book3s64/mmu_context.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation. */ #include <linux/sched.h> #include <linux/mm_types.h> #include <linux/memblock.h> #include <linux/memremap.h> #include <linux/pkeys.h> #include <linux/debugfs.h> #include <linux/proc_fs.h> #include <linux/page...
arch/powerpc/mm/book3s64/pgtable.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ /* * PowerPC Memory Protection Keys management * * Copyright 2017, Ram Pai, IBM Corporation. */ #include <asm/mman.h> #include <asm/mmu_context.h> #include <asm/mmu.h> #include <asm/setup.h> #include <asm/smp.h> #include <asm/firmware.h> #include <linux/pkeys.h> #include <linu...
arch/powerpc/mm/book3s64/pkeys.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/mm.h> #include <linux/hugetlb.h> #include <linux/security.h> #include <asm/cacheflush.h> #include <asm/machdep.h> #include <asm/mman.h> #include <asm/tlb.h> void radix__flush_hugetlb_page(struct vm_area_struct *vma, unsigned long vmaddr) { int psize; struct hstate ...
arch/powerpc/mm/book3s64/radix_hugetlbpage.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Page table handling routines for radix page table. * * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation. */ #define pr_fmt(fmt) "radix-mmu: " fmt #include <linux/io.h> #include <linux/kernel.h> #include <linux/sched/mm.h> #include <linux/memblock.h> #include...
arch/powerpc/mm/book3s64/radix_pgtable.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * TLB flush routines for radix kernels. * * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation. */ #include <linux/mm.h> #include <linux/hugetlb.h> #include <linux/memblock.h> #include <linux/mmu_context.h> #include <linux/sched/mm.h> #include <linux/debugfs.h> ...
arch/powerpc/mm/book3s64/radix_tlb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC64 SLB support. * * Copyright (C) 2004 David Gibson <dwg@au.ibm.com>, IBM * Based on earlier code written by: * Dave Engebretsen and Mike Corrigan {engebret|mikejc}@us.ibm.com * Copyright (c) 2001 Dave Engebretsen * Copyright (C) 2002 Anton Blanchard <a...
arch/powerpc/mm/book3s64/slb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * address space "slices" (meta-segments) support * * Copyright (C) 2007 Benjamin Herrenschmidt, IBM Corporation. * * Based on hugetlb implementation * * Copyright (C) 2003 David Gibson, IBM Corporation. */ #undef DEBUG #include <linux/kernel.h> #include <linux/m...
arch/powerpc/mm/book3s64/slice.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2007-2008 Paul Mackerras, IBM Corp. */ #include <linux/errno.h> #include <linux/kernel.h> #include <linux/gfp.h> #include <linux/types.h> #include <linux/pagewalk.h> #include <linux/hugetlb.h> #include <linux/syscalls.h> #include <linux/pgtable.h> #include...
arch/powerpc/mm/book3s64/subpage_prot.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file is for defining trace points and trace related helpers. */ #ifdef CONFIG_TRANSPARENT_HUGEPAGE #include <trace/events/thp.h> #endif
arch/powerpc/mm/book3s64/trace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #define DISABLE_BRANCH_PROFILING #include <linux/kasan.h> #include <linux/memblock.h> #include <linux/hugetlb.h> #include <asm/pgalloc.h> static int __init kasan_init_shadow_8M(unsigned long k_start, unsigned long k_end, void *block) { pmd_t *pmd = pmd_off_k(k_start); unsigned ...
arch/powerpc/mm/kasan/8xx.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #define DISABLE_BRANCH_PROFILING #include <linux/kasan.h> #include <linux/memblock.h> #include <mm/mmu_decl.h> int __init kasan_init_region(void *start, size_t size) { unsigned long k_start = (unsigned long)kasan_mem_to_shadow(start); unsigned long k_end = (unsigned long)kasan_m...
arch/powerpc/mm/kasan/book3s_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #define DISABLE_BRANCH_PROFILING #include <linux/kasan.h> #include <linux/printk.h> #include <linux/memblock.h> #include <linux/sched/task.h> #include <asm/pgalloc.h> #include <asm/text-patching.h> #include <mm/mmu_decl.h> static pgprot_t __init kasan_prot_ro(void) { if (early_mm...
arch/powerpc/mm/kasan/init_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * KASAN for 64-bit Book3e powerpc * * Copyright 2022, Christophe Leroy, CS GROUP France */ #define DISABLE_BRANCH_PROFILING #include <linux/kasan.h> #include <linux/printk.h> #include <linux/memblock.h> #include <linux/set_memory.h> #include <asm/pgalloc.h> static inline b...
arch/powerpc/mm/kasan/init_book3e_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * KASAN for 64-bit Book3S powerpc * * Copyright 2019-2022, Daniel Axtens, IBM Corporation. */ /* * ppc64 turns on virtual memory late in boot, after calling into generic code * like the device-tree parser, so it uses this in conjunction with a hook in * outline mode to avo...
arch/powerpc/mm/kasan/init_book3s_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Modifications by Matt Porter (mporter@mvista.com) to support * PPC44x Book E processors. * * This file contains the routines for initializing the MMU * on the 4xx series of chips. * -- paulus * * Derived from arch/ppc/mm/init.c: * Copyright (C) 1995-1996 G...
arch/powerpc/mm/nohash/44x.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains the routines for initializing the MMU * on the 8xx series of chips. * -- christophe * * Derived from arch/powerpc/mm/40x_mmu.c: */ #include <linux/memblock.h> #include <linux/hugetlb.h> #include <asm/fixmap.h> #include <asm/pgalloc.h> #incl...
arch/powerpc/mm/nohash/8xx.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2005, Paul Mackerras, IBM Corporation. * Copyright 2009, Benjamin Herrenschmidt, IBM Corporation. * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation. */ #include <linux/sched.h> #include <linux/memblock.h> #include <asm/pgalloc.h> #include <asm/tlb....
arch/powerpc/mm/nohash/book3e_pgtable.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Modifications by Kumar Gala (galak@kernel.crashing.org) to support * E500 Book E processors. * * Copyright 2004,2010 Freescale Semiconductor, Inc. * * This file contains the routines for initializing the MMU * on the 4xx series of chips. * -- paulus * * Deri...
arch/powerpc/mm/nohash/e500.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * PPC Huge TLB Page Support for Book3E MMU * * Copyright (C) 2009 David Gibson, IBM Corporation. * Copyright (C) 2011 Becky Bruce, Freescale Semiconductor * */ #include <linux/mm.h> #include <linux/hugetlb.h> #include <asm/mmu.h> #ifdef CONFIG_PPC64 #include <asm/paca.h> ...
arch/powerpc/mm/nohash/e500_hugetlbpage.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only // // Copyright (C) 2019 Jason Yan <yanaijie@huawei.com> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/types.h> #include <linux/mm.h> #include <linux/swap.h> #include <linux/stddef.h> #include <linux/init.h> #include <linux/delay.h...
arch/powerpc/mm/nohash/kaslr_booke.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains the routines for initializing kernel userspace protection */ #include <linux/export.h> #include <linux/init.h> #include <linux/printk.h> #include <linux/smp.h> #include <asm/kup.h> #include <asm/smp.h> #ifdef CONFIG_PPC_KUAP void setup_kuap(bool ...
arch/powerpc/mm/nohash/kup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains the routines for handling the MMU on those * PowerPC implementations where the MMU is not using the hash * table, such as 8xx, 4xx, BookE's etc... * * Copyright 2008 Ben Herrenschmidt <benh@kernel.crashing.org> * IBM Corp. * * ...
arch/powerpc/mm/nohash/mmu_context.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains the routines for TLB flushing. * On machines where the MMU does not use a hash table to store virtual to * physical translations (ie, SW loaded TLBs or Book3E compilant processors, * this does -not- include 603 however which shares the implementat...
arch/powerpc/mm/nohash/tlb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2008,2009 Ben Herrenschmidt <benh@kernel.crashing.org> * IBM Corp. * * Derived from arch/ppc/mm/init.c: * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.a...
arch/powerpc/mm/nohash/tlb_64e.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains low-level functions for performing various * types of TLB invalidations on various processors with no hash * table. * * This file implements the following functions for all no-hash * processors. Some aren't implemented for some variants. Some...
arch/powerpc/mm/nohash/tlb_low.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Low level TLB miss handlers for Book3E * * Copyright (C) 2008-2009 * Ben. Herrenschmidt (benh@kernel.crashing.org), IBM Corp. */ #include <linux/pgtable.h> #include <asm/processor.h> #include <asm/reg.h> #include <asm/page.h> #include <asm/mmu.h> #includ...
arch/powerpc/mm/nohash/tlb_low_64e.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * From split of dump_linuxpagetables.c * Copyright 2016, Rashmica Gupta, IBM Corp. * */ #include <linux/kernel.h> #include <linux/pgtable.h> #include "ptdump.h" static const struct flag_info flag_array[] = { { #ifdef CONFIG_PPC_16K_PAGES .mask = _PAGE_HUGE, .val = _PAGE...
arch/powerpc/mm/ptdump/8xx.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2018, Christophe Leroy CS S.I. * <christophe.leroy@c-s.fr> * * This dumps the content of BATS */ #include <linux/pgtable.h> #include <linux/debugfs.h> #include <asm/cpu_has_feature.h> #include "ptdump.h" static void bat_show_603(struct seq_file *m, int idx, u3...
arch/powerpc/mm/ptdump/bats.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * From split of dump_linuxpagetables.c * Copyright 2016, Rashmica Gupta, IBM Corp. * */ #include <linux/kernel.h> #include <linux/pgtable.h> #include "ptdump.h" static const struct flag_info flag_array[] = { { .mask = _PAGE_PRIVILEGED, .val = 0, .set = "user", .clea...
arch/powerpc/mm/ptdump/book3s64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2016, Rashmica Gupta, IBM Corp. * * This traverses the kernel virtual memory and dumps the pages that are in * the hash pagetable, along with their flags to * /sys/kernel/debug/kernel_hash_pagetable. * * If radix is enabled then there is no hash page table ...
arch/powerpc/mm/ptdump/hashpagetable.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2016, Rashmica Gupta, IBM Corp. * * This traverses the kernel pagetables and dumps the * information about the used sections of memory to * /sys/kernel/debug/kernel_pagetables. * * Derived from the arm64 implementation: * Copyright (c) 2014, The Linux Foun...
arch/powerpc/mm/ptdump/ptdump.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/types.h> #include <linux/seq_file.h> struct flag_info { u64 mask; u64 val; const char *set; const char *clear; bool is_val; int shift; }; struct ptdump_pg_level { const struct flag_info *flag; char name[4]; size_t num; u64 mask; }; extern struct pt...
arch/powerpc/mm/ptdump/ptdump.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2018, Christophe Leroy CS S.I. * <christophe.leroy@c-s.fr> * * This dumps the content of Segment Registers */ #include <linux/debugfs.h> static void seg_show(struct seq_file *m, int i) { u32 val = mfsr(i << 28); seq_printf(m, "0x%01x0000000-0x%01xfffffff ", ...
arch/powerpc/mm/ptdump/segment_regs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * From split of dump_linuxpagetables.c * Copyright 2016, Rashmica Gupta, IBM Corp. * */ #include <linux/kernel.h> #include <linux/pgtable.h> #include "ptdump.h" static const struct flag_info flag_array[] = { { .mask = _PAGE_READ, .val = 0, .set = " ", .clear = "r", ...
arch/powerpc/mm/ptdump/shared.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * bpf_jit.h: BPF JIT compiler for PPC * * Copyright 2011 Matt Evans <matt@ozlabs.org>, IBM Corporation * 2016 Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> */ #ifndef _BPF_JIT_H #define _BPF_JIT_H #ifndef __ASSEMBLER__ #include <asm/types.h> #include <asm/pp...
arch/powerpc/net/bpf_jit.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * eBPF JIT compiler * * Copyright 2016 Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> * IBM Corporation * * Based on the powerpc classic BPF JIT compiler by Matt Evans */ #include <linux/moduleloader.h> #include <asm/cacheflush.h> #include <asm/asm-compat.h> #inclu...
arch/powerpc/net/bpf_jit_comp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * eBPF JIT compiler for PPC32 * * Copyright 2020 Christophe Leroy <christophe.leroy@csgroup.eu> * CS GROUP France * * Based on PPC64 eBPF JIT compiler by Naveen N. Rao */ #include <linux/moduleloader.h> #include <asm/cacheflush.h> #include <asm/asm-compat.h> #includ...
arch/powerpc/net/bpf_jit_comp32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * bpf_jit_comp64.c: eBPF JIT compiler * * Copyright 2016 Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> * IBM Corporation * * Based on the powerpc classic BPF JIT compiler by Matt Evans */ #include <linux/moduleloader.h> #include <asm/cacheflush.h> #include <asm/as...
arch/powerpc/net/bpf_jit_comp64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Performance event support - PPC 8xx * * Copyright 2016 Christophe Leroy, CS Systemes d'Information */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/perf_event.h> #include <linux/percpu.h> #include <linux/hardirq.h> #include <asm/pmc.h> #include...
arch/powerpc/perf/8xx-pmu.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Basic assembly code to read BHRB entries * * Copyright 2013 Anshuman Khandual, IBM Corporation. */ #include <asm/ppc_asm.h> #include <asm/ppc-opcode.h> .text .balign 8 /* r3 = n (where n = [0-31]) * The maximum number of BHRB entries supported with PPC_MFBH...
arch/powerpc/perf/bhrb.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Performance counter callchain support - powerpc architecture code * * Copyright © 2009 Paul Mackerras, IBM Corporation. */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/perf_event.h> #include <linux/percpu.h> #include <linux/uaccess.h> #include ...
arch/powerpc/perf/callchain.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _POWERPC_PERF_CALLCHAIN_H #define _POWERPC_PERF_CALLCHAIN_H void perf_callchain_user_64(struct perf_callchain_entry_ctx *entry, struct pt_regs *regs); void perf_callchain_user_32(struct perf_callchain_entry_ctx *entry, struct pt_regs *regs); static...
arch/powerpc/perf/callchain.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Performance counter callchain support - powerpc architecture code * * Copyright © 2009 Paul Mackerras, IBM Corporation. */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/perf_event.h> #include <linux/percpu.h> #include <linux/uaccess.h> #include ...
arch/powerpc/perf/callchain_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Performance counter callchain support - powerpc architecture code * * Copyright © 2009 Paul Mackerras, IBM Corporation. */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/perf_event.h> #include <linux/percpu.h> #include <linux/uaccess.h> #include ...
arch/powerpc/perf/callchain_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Performance event support - powerpc architecture code * * Copyright 2008-2009 Paul Mackerras, IBM Corporation. */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/sched/clock.h> #include <linux/perf_event.h> #include <linux/percpu.h> #include <linu...
arch/powerpc/perf/core-book3s.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Performance event support - Freescale Embedded Performance Monitor * * Copyright 2008-2009 Paul Mackerras, IBM Corporation. * Copyright 2010 Freescale Semiconductor, Inc. */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/perf_event.h> #include <...
arch/powerpc/perf/core-fsl-emb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Performance counter support for e500 family processors. * * Copyright 2008-2009 Paul Mackerras, IBM Corporation. * Copyright 2010 Freescale Semiconductor, Inc. */ #include <linux/string.h> #include <linux/perf_event.h> #include <asm/reg.h> #include <asm/cputable.h>...
arch/powerpc/perf/e500-pmu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Performance counter support for e6500 family processors. * * Author: Priyanka Jain, Priyanka.Jain@freescale.com * Based on e500-pmu.c * Copyright 2013 Freescale Semiconductor, Inc. * Copyright 2008-2009 Paul Mackerras, IBM Corporation. */ #include <linux/string....
arch/powerpc/perf/e6500-pmu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ // // Copyright 2019 Madhavan Srinivasan, IBM Corporation. #define pr_fmt(fmt) "generic-compat-pmu: " fmt #include "isa207-common.h" /* * Raw event encoding: * * 60 56 52 48 44 40 36 32 * | - - - - | - - - - | - - - - | ...
arch/powerpc/perf/generic-compat-pmu.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef LINUX_POWERPC_PERF_HV_24X7_CATALOG_H_ #define LINUX_POWERPC_PERF_HV_24X7_CATALOG_H_ #include <linux/types.h> /* From document "24x7 Event and Group Catalog Formats Proposal" v0.15 */ struct hv_24x7_catalog_page_0 { #define HV_24X7_CATALOG_MAGIC 0x32347837 /* "24x7" in A...
arch/powerpc/perf/hv-24x7-catalog.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * DOMAIN(name, num, index_kind, is_physical) * * @name: An all caps token, suitable for use in generating an enum * member and appending to an event name in sysfs. * * @num: The number corresponding to the domain as given in * documentation. We assume the catalog doma...
arch/powerpc/perf/hv-24x7-domains.h
null
null
null
null
null