aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/arm64-dagcombiner-convergence.ll
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2026-09-13 17:25:12 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2026-09-13 17:25:12 +0000
commita6b40d746b4b727b308f2437b41f8032b921a8e5 (patch)
tree46522ccba43034258cfe39be61bbef3f5c2de44c /test/CodeGen/AArch64/arm64-dagcombiner-convergence.ll
parentf49dc19881d853b26dd675127f579f923dc87de2 (diff)
LinuxKPI: Add dma_length field to struct scatterlistHEADmain
On Linux `dma_length` field of `struct scatterlist` is present on the arches where DMA mapping code is able to coalesce adjacent segments of physical address space. It contains total length of coalesced segments while `length` field contains non-coalesced length of each segment. On other arches `dma_length` is aliased to `length` field with `sg_dma_len` macro. As FreeBSD does not merge scatterlist segments it do not have `dma_length` field. It is appered that at least i915kms driver depends on existence of `dma_length` field. Add the field and disable it by default. To enable add to Makefile .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" || \\ ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "powerpc" CFLAGS+= -DCONFIG_NEED_SG_DMA_LENGTH .endif Reported by: Ryan Fahy Reviewed by: bz MFC after: 1 month GHI: https://github.com/freebsd/drm-kmod/issues/315 Differential Revision: https://reviews.freebsd.org/D59630
Diffstat (limited to 'test/CodeGen/AArch64/arm64-dagcombiner-convergence.ll')
0 files changed, 0 insertions, 0 deletions