freebsd-dev/sys/powerpc/mpc85xx
Konstantin Belousov cd85379104 Make MAXPHYS tunable. Bump MAXPHYS to 1M.
Replace MAXPHYS by runtime variable maxphys. It is initialized from
MAXPHYS by default, but can be also adjusted with the tunable kern.maxphys.

Make b_pages[] array in struct buf flexible.  Size b_pages[] for buffer
cache buffers exactly to atop(maxbcachebuf) (currently it is sized to
atop(MAXPHYS)), and b_pages[] for pbufs is sized to atop(maxphys) + 1.
The +1 for pbufs allow several pbuf consumers, among them vmapbuf(),
to use unaligned buffers still sized to maxphys, esp. when such
buffers come from userspace (*).  Overall, we save significant amount
of otherwise wasted memory in b_pages[] for buffer cache buffers,
while bumping MAXPHYS to desired high value.

Eliminate all direct uses of the MAXPHYS constant in kernel and driver
sources, except a place which initialize maxphys.  Some random (and
arguably weird) uses of MAXPHYS, e.g. in linuxolator, are converted
straight.  Some drivers, which use MAXPHYS to size embeded structures,
get private MAXPHYS-like constant; their convertion is out of scope
for this work.

Changes to cam/, dev/ahci, dev/ata, dev/mpr, dev/mpt, dev/mvs,
dev/siis, where either submitted by, or based on changes by mav.

Suggested by: mav (*)
Reviewed by:	imp, mav, imp, mckusick, scottl (intermediate versions)
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D27225
2020-11-28 12:12:51 +00:00
..
atpic.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
ds1553_bus_fdt.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
ds1553_core.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
ds1553_reg.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
fsl_diu.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
fsl_espi.c
fsl_sata.c Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
fsl_sata.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
i2c.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
isa.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
lbc.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
lbc.h sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mpc85xx_cache.c Only look for L2 cache controllers for mpc85xx_cache 2018-02-04 20:07:08 +00:00
mpc85xx_gpio.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
mpc85xx.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
mpc85xx.h Remove dead errata fixup code 2018-05-01 04:31:17 +00:00
pci_mpc85xx_pcib.c powerpc/mpc85xx: Set description for the MPC85xx RC bridge 2019-11-02 02:24:53 +00:00
pci_mpc85xx.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
platform_mpc85xx.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
qoriq_gpio.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00