README
------------------------------------------------------------------------------
This patchset is for the 4.x series of mips-sources.

Patchset Numbering Scheme
------------------------------------------------------------------------------

Machines In mainline/linux-mips
10xx	IP22 (SGI Indy, Indigo2 R4x00)
20xx	IP32 (SGI O2)
30xx	Cobalt Microserver (RaQ2/Qube2)
40xx	Generic Patches

Machines that require external patches to function completely
51xx	External Machine Generic (I.e, IOC3 for IP27/IP30/IP35)
52xx	IP27 (SGI Origin 200/200, Onyx2)
53xx	IP28 (SGI Indigo2 Impact R10000)
54xx	IP30 (SGI Octane)
55xx	IP35 (SGI Origin 300/350/3000, Fuel, Tezro)

Miscellaneous patches
60xx	Non-MIPS Patches
70xx	Fixes for -rc* ebuilds (or emergency fixes as needed)
80xx	Experimental Patches


Individual Patch Descriptions:
------------------------------------------------------------------------------

Patch:	2001_5.4-ip32-meth-cleanup.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Cleanup the IP32 MACE Ethernet (meth) driver some.  Re-write
	is pending.

Patch:	4001_5.4-all-add-byteorder-to-proc.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Adds a field to /proc/cpuinfo dictating the byte order
	(Big endian or Little endian).

Patch:	4002_5.4-all-early-printk-menu.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Change the early printk setting in menuconfig/nconfig to be a menu
	so that additional early printk drivers can be added later.

Patch:	4003_5.4-all-add-sgi-common.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Adds arch/mips/sgi-common as a location for drivers/shims shared
	between various SGI platforms.

Patch:	4004_5.4-all-add-impact-driver.patch
From:	Stanislaw Skowronek <skylark@unaligned.org>,
	Peter Fuerst <post@pfrst.de>, Johannes Dickgreber <tanzy@gmx.de>,
	Thomas Bogendoerfer <tbogendoerfer@suse.de>,
	Joshua Kinard <kumba@gentoo.org>
Desc:	Standalone Impact driver split off from the IP30 code so that IP28
	and others can use it.

Patch:	4005_5.4-all-add-impact_early.patch
From:	Stanislaw Skowronek <skylark@unaligned.org>,
	Joshua Kinard <kumba@gentoo.org>
Desc:	Standalone Impact Early Console Driver.

Patch:	4006_5.4-all-add-odyssey-driver.patch
From:	Stanislaw Skowronek <skylark@unaligned.org>,
	Johannes Dickgreber <tanzy@gmx.de>,
	Joshua Kinard <kumba@gentoo.org>
Desc:	Standalone Odyssey driver split off from the IP30 code so that future
	IP35 support can use it.

Patch:	4007_5.4-all-add-odyssey_early.patch
From:	Stanislaw Skowronek <skylark@unaligned.org>,
	Joshua Kinard <kumba@gentoo.org>
Desc:	Standalone Odyssey Early Console Driver.

Patch:	4008_5.4-all-usb-pci-quirks.patch
From:	Stanislaw Skowronek <skylark@unaligned.org>
Desc:	Adds a check to the USB pci-quirks.c file to make sure a PCI device
	is enabled before doing anything else.

Patch:	4009_5.4-r10000-split-family.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Split the R10000 CPU selection into separate entries for R10K and
	R12K/R14K/R16K.

Patch:	4010_5.4-all-add-platform-ifdefs.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Fix IP22/IP32 'Platform' files so they are not accidentally pulled
	in under other SGI platform builds (e.g., IP27, IP30).

Patch:	5101_5.4-all-BACK-TO-50.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Revert portions of the IP30, IOC3, XTALK, and MIPS PCI code back to
	what was in linux-5.0.x, as between linux-5.1 and linux-5.7, bits
	and pieces of IOC3 and MIPS core started changing to support IP30
	in mainline, but until everything is upstreamed, IP30 in-tree will
	be broken.  Rather than trying to fix or backport stuff, it is
	easier to revert to a known working state and use the existing IP30
	code (and IP27).

Patch:	5102_5.4-xtalk-types.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Replace several IRIX-era typedefs

Patch:	5103_5.4-xtalk-misc-cleanups.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Xtalk: Clean-up xtalk.h macros

Patch:	5104_5.4-xtalk-refactor.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Rewrite access structs in xwidget.h

Patch:	5105_5.4-bridge-rename-files.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Rename pci-ip27.c to pci-bridge.c

Patch:	5106_5.4-bridge-add-ip27-pcibr_h.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Add pcibr.h header for IP27

Patch:	5107_5.4-bridge-misc-cleanups.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Minor clean-ups to pci-legacy.c

Patch:	5108_5.4-bridge-add-pre_enable-hook.patch
From:	Stanislaw Skowronek <skylark@unaligned.org>
Desc:	Add BRIDGE 'pre_enable' hook

Patch:	5109_5.4-bridge-cleanup-bridge_h.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Clean-up bridge.h header file

Patch:	5110_5.4-bridge-overhaul-bridge_h.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Overhaul bridge.h header file

Patch:	5111_5.4-bridge-add-xbridge.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Add XBRIDGE revs and SWAP bit

Patch:	5112_5.4-bridge-update-ops-bridge_c.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Update ops-bridge.c

Patch:	5113_5.4-bridge-overhaul-pci-bridge_c.patch
From:	Joshua Kinard <kumba@gentoo.org>,
	Stanislaw Skowronek <skylark@unaligned.org>,
	Johannes Dickgreber <tanzy@gmx.de>
Desc:	Overhaul pci-bridge.c driver

Patch:	5114_5.4-bridge-update-ip27-code.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Update IRQ code to work with the new BRIDGE code

Patch:	5115_5.4-bridge-use-pci_probe_only.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Fix IP27 for the PCI_PROBE_ONLY case

Patch:	5116_5.4-ioc3eth-cleanup.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Various cleanups for the IOC3 Ethernet driver to ease the changes
	made by the IOC3 Metadriver patch.

Patch:	5117_5.4-ioc3-metadriver.patch
From:	Stanislaw Skowronek <skylark@unaligned.org>,
	Johannes Dickgreber <tanzy@gmx.de>, Joshua Kinard <kumba@gentoo.org>
Desc:	Re-write of the IOC3 platform driver for IP27 and IP30.

Patch:	5118_5.4-ip27-mega-update.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Significant rewrite/refactor of the IP27 code.  Not yet split up into
	individual patches.  The IP30 code is now branched off of this patch.

Patch:	5119_5.4-ip27-m48t35-ioc3.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Modifies the stock m48t35 RTC driver to support platform_data for IP27
	and the IOC3 metadriver.

Patch:	5120_5.4-qla1280-restore-sn2.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Reverts commit f877a786b1dd which removed SGI SN2 support.  This
	support provides hooks for the BRIDGE RRBs found on IP27 and IP30,
	so we want to add this back.

Patch:	5121_5.4-qla1280-mips-bridge-vchan.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Enable IP27 to use the "virtual channel" feature of BRIDGE/XBRIDGE
	on the QLA1280 driver.

Patch:	5122_5.0-acenic-generic-dma.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Use generic DMA functions.  This needs to be sent upstream, and was
	derived from similar changes to another driver.

Patch:	5123_5.0-acenic-set-64bit-coherent-mask.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Similar to qla1280, use 'dma_set_mask_and_coherent' instead of
	'dma_set_mask', which is needed for IP27/IP30 to init DMA on
	these cards.  Also needs to go upstream.

Patch:	5401_5.4-ip30-octane-support.patch
From:	Stanislaw Skowronek <skylark@unaligned.org>,
	Johannes Dickgreber <tanzy@gmx.de>, Joshua Kinard <kumba@gentoo.org>,
	J. Aaron Pendergrass <jpenderg@cs.oberlin.edu>
Desc:	Adds support for IP30 (SGI Octane) systems.

Patch:	5402_5.4-ip30-enable-bridge-vchan.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Enable IP30 to use the "virtual channel" feature of BRIDGE/XBRIDGE
	on the QLA1280 driver.

Patch:	6001_4.4-md-revert-resync-ac8fa4196d20.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Reverts commit ac8fa4196d20 (md: allow resync to go faster when there
	is competing IO.), which causes a massive slowdown on IP27 and IP30.

Patch:	6002_5.4-ds1685-1-simply-ioremapping-of-regs.patch
From:	Thomas Bogendoerfer <tbogendoerfer@suse.de>
Desc:	Simplify the register ioremapping by using the
	`devm_platform_ioremap_resource' method.

Patch:	6003_5.4-ds1685-2-remove-set-but-unused-vars.patch
From:	Alexandre Belloni <alexandre.belloni@bootlin.com>
Desc:	Remove several variables that are set but never used.

Patch:	6004_5.4-ds1685-3-fix-build-error-make-W-eq-1.patch
From:	Alexandre Belloni <alexandre.belloni@bootlin.com>
Desc:	Fix a kernel build error when 'W=1' is passed to make.

Patch:	6005_5.4-ds1685-4-fix-bank-switching-endless-loop.patch
From:	Thomas Bogendoerfer <tbogendoerfer@suse.de>
Desc:	Fix the bank switching calls to avoid an endless
	loop situation.

Patch:	6006_5.4-ds1685-5-fix-rtc-poweroff.patch
From:	Joshua Kinard <kumba@gentoo.org>
Desc:	Re-factor ds1685_rtc_poweroff() so that it actually powers
	the machine off.

Patch:	7001_5.4-fix-makefile-silent-mode-detection.patch
From:	Jan Palus <jpalus+gnu@fastmail.com>,
	Dmitry Goncharov <dgoncharov@users.sf.net>,
	Masahiro Yamada <masahiroy@kernel.org>,
	Paul D. Smith <psmith@gnu.org>
Desc:	Fix the kernel Makefile to not confuse a command-line variable
	that contains an 's' to imply silent mode.  Triggered by make-4.4 and
	up.  See GNU Make Bug #63818 and Linux commit 4bf73588165b.
