Skip to content

Globally defining phys_addr_t

Jeremy Fitzhardinge linux-mips linux-um lkml 1 version Applied

Status from this message: i've applied your patchset to tip/core/resources:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3add phys_addr_t for holding physical addressesarch/powerpc/Kconfig arch/powerpc/include/asm/types.h arch/x86/Kconfig +4 more+15 -100 replies
2/3make PFN_PHYS explicitly return phys_addr_tarch/m32r/mm/discontig.c include/asm-x86/xen/page.h include/linux/pfn.h+9 -50 replies
3/3redefine resource_size_t as phys_addr_tarch/powerpc/platforms/Kconfig.cputype arch/powerpc/sysdev/ppc4xx_pci.c arch/x86/Kconfig +3 more+13 -262 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Globally defining phys_addr_t

Hi Ingo,

This is a repost of a little 3-patch series which Andrew has been carrying in -mm. It cleans up the definition of phys_addr_t to make it kernel-wide rather than x86-specific, and fixes up PFN_PHYS() to use it to avoid address truncation.

We currently have a few workarounds for this problem in the tree, but Alex found another bug caused by PFN_PHYS(), so it's probably better if you bring these patches into tip.git for now.

PowerPC also defines a phys_addr_t with the same meaning as x86; the powerpc arch maintainers are happy with these patches.

The third patch in the series is not necessary to fix any bug, but it removes the separate definition of resource_size_t to define it in terms of phys_addr_t. I include it for competeness.

Thanks,
J