<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sys/powerpc/mpc85xx, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-11-28T12:12:51Z</updated>
<entry>
<title>Make MAXPHYS tunable.  Bump MAXPHYS to 1M.</title>
<updated>2020-11-28T12:12:51Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-11-28T12:12:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=cd8537910406e68d4719136a5b0cf6d23bb1b23b'/>
<id>urn:sha1:cd8537910406e68d4719136a5b0cf6d23bb1b23b</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>powerpc: clean up empty lines in .c and .h files</title>
<updated>2020-09-01T21:20:08Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-09-01T21:20:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=b64b31338f702c25d4542248b1a2ee2420d4dae8'/>
<id>urn:sha1:b64b31338f702c25d4542248b1a2ee2420d4dae8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>powerpc/mpc85xx: Don't use the quantum cache in vmem for MPIC MSIs</title>
<updated>2020-06-10T04:04:59Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2020-06-10T04:04:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=76d5f5e22cdb9a71934bb01f8a67e3d67745607c'/>
<id>urn:sha1:76d5f5e22cdb9a71934bb01f8a67e3d67745607c</id>
<content type='text'>
The qcache is unnecessary for this purpose, it's only needed when there are
lots of concurrent allocations.

Reported by:	markj
</content>
</entry>
<entry>
<title>powerpc/mpc85xx: Partially revert r356640</title>
<updated>2020-01-13T23:09:00Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2020-01-13T23:09:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=a80e3de39b605c6ffdad05101c7b43d5ab900e20'/>
<id>urn:sha1:a80e3de39b605c6ffdad05101c7b43d5ab900e20</id>
<content type='text'>
The count block was correct before.  r356640 caused a read past the end of
the tuple.
</content>
</entry>
<entry>
<title>powerpc/mpc85xx: Fix localbus child reg property decoding</title>
<updated>2020-01-11T22:29:44Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2020-01-11T22:29:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=7d7671db00c62c709d32eb2969990462de3d6b7a'/>
<id>urn:sha1:7d7671db00c62c709d32eb2969990462de3d6b7a</id>
<content type='text'>
r302340, as an attempt to fix the localbus child handling post-rman change,
actually broke child resource allocation, due to typos in
fdt_lbc_reg_decode().  This went unnoticed because there aren't any drivers
currently in tree that use localbus.
</content>
</entry>
<entry>
<title>powerpc/mpc85xx: Clean up Freescale SATA driver a little</title>
<updated>2019-12-15T21:08:40Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2019-12-15T21:08:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=054802650063bea1cb817ef22a887c3116813ba9'/>
<id>urn:sha1:054802650063bea1cb817ef22a887c3116813ba9</id>
<content type='text'>
* Remove unused ATA_IN/OUT macros, they just clutter up the file.
* Fix some RID management bits for the channel memory resource.
</content>
</entry>
<entry>
<title>Use a void * argument to callout handlers instead of timeout_t casts.</title>
<updated>2019-12-05T18:47:29Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2019-12-05T18:47:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=65d2f9c12b22a774dda7e01577e0a8b88378a6ef'/>
<id>urn:sha1:65d2f9c12b22a774dda7e01577e0a8b88378a6ef</id>
<content type='text'>
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D22684
</content>
</entry>
<entry>
<title>powerpc/mpc85xx: Add MSI support for Freescale PowerPC SoCs</title>
<updated>2019-11-08T03:36:19Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2019-11-08T03:36:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=9e2b2d699636b8c82ae2af5b9a9c3bfe203866a9'/>
<id>urn:sha1:9e2b2d699636b8c82ae2af5b9a9c3bfe203866a9</id>
<content type='text'>
Freescale SoCs use a set of IRQs at the high end of the OpenPIC IRQ
list, not counted in the NIRQs of the Feature reporting register.  Some
SoCs include a MSI inbound window in the PCIe controller configuration
registers as well, but some don't.  Currently, this only handles the
SoCs *with* the MSI window.

There are 256 MSIs per MSI bank (32 per MSI IRQ, 8 IRQs per MSI bank).
The P5020 has 3 banks, yielding up to 768 MSIs; older SoCs have only one
bank.
</content>
</entry>
<entry>
<title>Add support for building Book-E kernels with clang/lld.</title>
<updated>2019-11-02T21:15:56Z</updated>
<author>
<name>Brandon Bergren</name>
<email>bdragon@FreeBSD.org</email>
</author>
<published>2019-11-02T21:15:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ab3f2a3861293dadee9fcafc315e7f87ee4e6396'/>
<id>urn:sha1:ab3f2a3861293dadee9fcafc315e7f87ee4e6396</id>
<content type='text'>
This involved several changes:

* Since lld does not like text relocations, replace SMP boot page text relocs
in booke/locore.S with position-independent math, and track the virtual base
in the SMP boot page header.

* As some SPRs are interpreted differently on clang due to the way it handles
platform-specific SPRs, switch m*dear and m*esr mnemonics out for regular
m*spr. Add both forms of SPR_DEAR to spr.h so the correct encoding is selected.

* Change some hardcoded 32 bit things in the boot page to be pointer-sized, and
fix alignment.

* Fix 64-bit build of booke/pmap.c when enabling pmap debugging.

Additionally, I took the opportunity to document how the SMP boot page works.

Approved by: jhibbits (mentor)
Differential Revision: https://reviews.freebsd.org/D21999
</content>
</entry>
<entry>
<title>powerpc/mpc85xx: Set description for the MPC85xx RC bridge</title>
<updated>2019-11-02T02:24:53Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2019-11-02T02:24:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=b144826d79367b7f743bb9f521da2aa3e83c913f'/>
<id>urn:sha1:b144826d79367b7f743bb9f521da2aa3e83c913f</id>
<content type='text'>
</content>
</entry>
</feed>
