Home
last modified time | relevance | path

Searched full:unaligned (Results 1 – 25 of 1449) sorted by relevance

12345678910>>...58

/linux-6.12.1/Documentation/core-api/
Dunaligned-memory-access.rst2 Unaligned Memory Accesses
15 unaligned accesses, why you need to write code that doesn't cause them,
19 The definition of an unaligned access
22 Unaligned memory accesses occur when you try to read N bytes of data starting
25 reading 4 bytes of data from address 0x10005 would be an unaligned memory
52 Why unaligned access is bad
55 The effects of performing an unaligned memory access vary from architecture
59 - Some architectures are able to perform unaligned memory accesses
61 - Some architectures raise processor exceptions when unaligned accesses
62 happen. The exception handler is able to correct the unaligned access,
[all …]
/linux-6.12.1/tools/perf/pmu-events/arch/powerpc/power10/
Dothers.json45 …scription": "Load instructions in LD0 port that are either unaligned, or treated as unaligned and …
50 …scription": "Load instructions in LD1 port that are either unaligned, or treated as unaligned and …
55 …cription": "Store instructions in ST0 port that are either unaligned, or treated as unaligned and …
60 …cription": "Store instructions in ST1 port that are either unaligned, or treated as unaligned and …
/linux-6.12.1/Documentation/arch/arm/
Dmem_alignment.rst14 unaligned memory access in general. If those access are predictable, you
15 are better to use the macros provided by include/linux/unaligned.h. The
20 trap to SIGBUS any code performing unaligned access (good for debugging bad
27 real bad - it changes the behaviour of all unaligned instructions in user
36 0 A user process performing an unaligned memory access
42 performing the unaligned access. This is of course
47 performing the unaligned access.
59 information on unaligned access occurrences plus the current mode of
/linux-6.12.1/tools/perf/pmu-events/arch/arm64/arm/neoverse-n1/
Dspec_operation.json16 …"PublicDescription": "Counts unaligned memory read operations issued by the CPU. This event counts…
20 …"PublicDescription": "Counts unaligned memory write operations issued by the CPU. This event count…
24 …"PublicDescription": "Counts unaligned memory operations issued by the CPU. This event counts unal…
/linux-6.12.1/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/
Dspec_operation.json20 …"PublicDescription": "Counts unaligned memory read operations issued by the CPU. This event counts…
24 …"PublicDescription": "Counts unaligned memory write operations issued by the CPU. This event count…
28 …"PublicDescription": "Counts unaligned memory operations issued by the CPU. This event counts unal…
/linux-6.12.1/tools/perf/pmu-events/arch/arm64/arm/neoverse-v1/
Dspec_operation.json20 …"PublicDescription": "Counts unaligned memory read operations issued by the CPU. This event counts…
24 …"PublicDescription": "Counts unaligned memory write operations issued by the CPU. This event count…
28 …"PublicDescription": "Counts unaligned memory operations issued by the CPU. This event counts unal…
/linux-6.12.1/include/rdma/
Dib_hdrs.h10 #include <linux/unaligned.h>
49 __be64 vaddr; /* potentially unaligned */
55 __be64 vaddr; /* potentially unaligned */
57 __be64 swap_data; /* potentially unaligned */
58 __be64 compare_data; /* potentially unaligned */
74 __be64 atomic_ack_eth; /* potentially unaligned */
108 /* accessors for unaligned __be64 items */
/linux-6.12.1/arch/riscv/kernel/
Dunaligned_access_speed.c15 #include "copy-unaligned.h"
42 /* Make an unaligned destination buffer. */ in check_unaligned_access()
91 pr_warn("cpu%d: rdtime lacks granularity needed to measure unaligned access speed\n", in check_unaligned_access()
101 …pr_info("cpu%d: Ratio of byte access time to unaligned word access is %d.%02d, unaligned accesses … in check_unaligned_access()
161 * result of unaligned access speed for all CPUs will be available. in set_unaligned_access_static_branches()
216 /* Measure unaligned access speed on all CPUs present at boot in parallel. */
/linux-6.12.1/tools/testing/selftests/powerpc/ptrace/
Dptrace-hwbreak.c46 __u8 b[B_LEN]; /* double word unaligned */
175 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, WO test */ in test_workload()
178 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, RO test */ in test_workload()
181 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, RW test */ in test_workload()
187 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, DAR OUTSIDE, RW test */ in test_workload()
202 /* PPC_PTRACE_SETHWDEBUG 2, MODE_RANGE, DW UNALIGNED, RO test */ in test_workload()
438 char *name2 = "PPC_PTRACE_SETHWDEBUG 2, MODE_RANGE, DW UNALIGNED"; in test_multi_sethwdebug_range()
452 /* PPC_PTRACE_SETHWDEBUG 2, MODE_RANGE, DW UNALIGNED, RO test */ in test_multi_sethwdebug_range()
500 char *name = "PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED"; in test_sethwdebug_range_unaligned()
504 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, WO test */ in test_sethwdebug_range_unaligned()
[all …]
/linux-6.12.1/arch/hexagon/lib/
Dio.c24 panic("unaligned pointer to readsw"); in __raw_readsw()
44 panic("unaligned pointer to writesw"); in __raw_writesw()
60 panic("unaligned pointer to readsl"); in __raw_readsl()
75 panic("unaligned pointer to writesl"); in __raw_writesl()
/linux-6.12.1/arch/riscv/
DKconfig793 prompt "Unaligned Accesses Support"
796 This determines the level of support for unaligned accesses. This
802 bool "Probe for hardware unaligned access support"
806 speed of unaligned accesses. This probing will dynamically determine
807 the speed of unaligned accesses on the underlying system. If unaligned
809 system, the kernel will emulate the unaligned accesses to preserve the
813 bool "Emulate unaligned access where system support is missing"
816 If unaligned memory accesses trap into the kernel as they are not
817 supported by the system, the kernel will emulate the unaligned
819 unaligned accesses, the unaligned accesses are assumed to be slow.
[all …]
/linux-6.12.1/net/xdp/
Dxsk_buff_pool.c58 bool unaligned = umem->flags & XDP_UMEM_UNALIGNED_CHUNK_FLAG; in xp_create_and_assign_umem() local
63 entries = unaligned ? umem->chunks : 0; in xp_create_and_assign_umem()
83 pool->unaligned = unaligned; in xp_create_and_assign_umem()
106 if (pool->unaligned) in xp_create_and_assign_umem()
415 if (!pool->unaligned) { in xp_init_dma_info()
469 if (pool->unaligned) in xp_dma_map()
519 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in __xp_alloc()
529 if (pool->unaligned) { in __xp_alloc()
586 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in xp_alloc_new_from_fq()
594 if (pool->unaligned) { in xp_alloc_new_from_fq()
[all …]
/linux-6.12.1/tools/usb/
Dhcd-tests.sh117 echo "test 21: control writes, unaligned"
132 echo "test 17: $COUNT transfers, unaligned DMA map by core"
135 echo "test 19: $COUNT transfers, unaligned DMA map by usb_alloc_coherent"
193 echo "test 18: $COUNT transfers, unaligned DMA map by core"
196 echo "test 20: $COUNT transfers, unaligned DMA map by usb_alloc_coherent"
228 echo "test 23: $COUNT transfers, unaligned"
/linux-6.12.1/arch/mips/kernel/
Dunaligned.c2 * Handle unaligned accesses by emulation.
17 * Putting data to unaligned addresses is a bad practice even on Intel where
92 #include <asm/unaligned-emul.h>
340 * would blow up, so for now we don't handle unaligned 64-bit in emulate_load_store_insn()
363 * would blow up, so for now we don't handle unaligned 64-bit in emulate_load_store_insn()
418 * would blow up, so for now we don't handle unaligned 64-bit in emulate_load_store_insn()
444 die_if_kernel("Unaligned FP access in kernel code", regs); in emulate_load_store_insn()
592 die_if_kernel("Unhandled kernel unaligned access", regs); in emulate_load_store_insn()
598 die_if_kernel("Unhandled kernel unaligned access", regs); in emulate_load_store_insn()
605 ("Unhandled kernel unaligned access or invalid instruction", regs); in emulate_load_store_insn()
[all …]
/linux-6.12.1/arch/alpha/kernel/
Dtraps.c25 #include <linux/unaligned.h>
355 * to handle floating-point regs), user-mode unaligned accesses are
359 * on a gp-register unaligned load/store, something is _very_ wrong
369 } unaligned[2]; variable
385 unaligned[0].count++; in do_entUna()
386 unaligned[0].va = (unsigned long) va; in do_entUna()
387 unaligned[0].pc = pc; in do_entUna()
389 /* We don't want to use the generic get/put unaligned macros as in do_entUna()
518 printk("Bad unaligned kernel access at %016lx: %p %lx %lu\n", in do_entUna()
529 printk("Forwarding unaligned exception at %lx (%lx)\n", in do_entUna()
[all …]
/linux-6.12.1/arch/sparc/kernel/
Dunaligned_32.c3 * unaligned.c: Unaligned load/store trap handling with special
60 printk("Impossible unaligned trap. insn=%08x\n", insn); in decode_access_size()
61 die_if_kernel("Byte sized unaligned access?!?!", current->thread.kregs); in decode_access_size()
246 printk("Unsupported unaligned load/store trap for kernel at <%08lx>.\n", in kernel_unaligned_trap()
248 unaligned_panic("Wheee. Kernel does fpu/atomic unaligned load/store."); in kernel_unaligned_trap()
267 panic("Impossible kernel unaligned trap."); in kernel_unaligned_trap()
/linux-6.12.1/arch/mips/loongson64/
Dcop2-ex.c26 #include <asm/unaligned-emul.h>
193 die_if_kernel("Unaligned FP access in kernel code", regs); in loongson_cu2_call()
209 die_if_kernel("Unaligned FP access in kernel code", regs); in loongson_cu2_call()
276 die_if_kernel("Unaligned FP access in kernel code", regs); in loongson_cu2_call()
294 die_if_kernel("Unaligned FP access in kernel code", regs); in loongson_cu2_call()
325 die_if_kernel("Unhandled kernel unaligned access", regs); in loongson_cu2_call()
331 die_if_kernel("Unhandled kernel unaligned access", regs); in loongson_cu2_call()
/linux-6.12.1/arch/arc/lib/
Dstrchr-700.S41 breq r7,0,.Loop ; For speed, we want this branch to be unaligned.
45 breq r12,0,.Loop ; For speed, we want this branch to be unaligned.
51 ; /* We require this code address to be unaligned for speed... */
67 breq r7,0,.Loop /* ... so that this branch is unaligned. */
/linux-6.12.1/arch/parisc/kernel/
Dunaligned.c3 * Unaligned memory access handler
15 #include <linux/unaligned.h>
18 #include "unaligned.h"
40 /* skip LDB - never unaligned (index) */
48 /* skip LDB - never unaligned (short) */
56 /* skip STB - never unaligned */
60 /* skip STBY - never unaligned */
61 /* skip STDBY - never unaligned */
390 printk(KERN_WARNING "%s(%d): unaligned access to " RFMT in handle_unaligned()
406 pr_warn("Kernel: unaligned access to " RFMT " in %pS " in handle_unaligned()
[all …]
/linux-6.12.1/arch/arc/kernel/
Dunaligned.c15 #include "unaligned.h"
196 * Handle an unaligned access
210 pr_warn_once("%s(%d) made unaligned access which was emulated" in misaligned_fixup()
214 " echo 0 > /proc/sys/kernel/ignore-unaligned-usertrap\n", in misaligned_fixup()
218 pr_warn("%s(%d): unaligned access to/from 0x%lx by PC: 0x%lx\n", in misaligned_fixup()
229 /* ldb/stb should not have unaligned exception */ in misaligned_fixup()
/linux-6.12.1/Documentation/devicetree/bindings/pci/
Dti-pci.txt36 - ti,syscon-unaligned-access: phandle to the syscon DT node. The 1st argument
39 for setting the bit to enable unaligned
54 - ti,syscon-unaligned-access: phandle to the syscon DT node. The 1st argument
57 for setting the bit to enable unaligned
/linux-6.12.1/arch/microblaze/include/asm/
Dflat.h11 #include <linux/unaligned.h>
23 * relocated. rp is a potentially unaligned pointer to the
52 * unaligned.
/linux-6.12.1/fs/nfsd/
Dblocklayoutxdr.c153 dprintk("%s: unaligned offset 0x%llx\n", in nfsd4_block_decode_layoutupdate()
159 dprintk("%s: unaligned length 0x%llx\n", in nfsd4_block_decode_layoutupdate()
165 dprintk("%s: unaligned disk offset 0x%llx\n", in nfsd4_block_decode_layoutupdate()
218 dprintk("%s: unaligned offset 0x%llx\n", __func__, val); in nfsd4_scsi_decode_layoutupdate()
225 dprintk("%s: unaligned length 0x%llx\n", __func__, val); in nfsd4_scsi_decode_layoutupdate()
/linux-6.12.1/arch/xtensa/include/asm/
Duaccess.h89 * unaligned exception and an MMU-related exception (unaligned
94 * Unaligned exception occurs.
95 * Unaligned exception handler tries to make aligned accesses.
100 * The kernel currently prohibits user unaligned accesses. We use the
101 * __check_align_* macros to check for unaligned addresses before
/linux-6.12.1/tools/perf/pmu-events/arch/arm64/
Drecommended.json195 "PublicDescription": "Unaligned access, read",
198 "BriefDescription": "Unaligned access, read"
201 "PublicDescription": "Unaligned access, write",
204 "BriefDescription": "Unaligned access, write"
207 "PublicDescription": "Unaligned access",
210 "BriefDescription": "Unaligned access"

12345678910>>...58