summaryrefslogtreecommitdiffstats
path: root/platforms/astbmc
Commit message (Collapse)AuthorAgeFilesLines
...
* astbmc: Set romulus BMC type to OpenBMCSamuel Mendoza-Jonas2018-05-221-1/+1
| | | | | Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* OpenBMC: use 0x3a as OEM command for partial add eselStewart Smith2018-05-161-1/+1
| | | | | | | | | | | | It turns out this is the IBM way to do this and we (OPAL) were just never really told about the change. So, with the best public docs that are available being Hostboot source, let's make the change! See https://github.com/open-power/hostboot/blob/8e05a4399b/src/include/usr/ipmi/ipmiif.H#L115 Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* p9dsu: detect variant in init only if probe fails to found.Pridhiviraj Paidipeddi2018-05-111-2/+8
| | | | | | | | | | | | | Currently the slot table init happens twice in both probe and init functions due to the variant detection logic called with in-correct condition check. Fixes: d32ddea9 ("p9dsu: detect p9dsu variant even when hostboot doesn't tell us") Signed-off-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com> [stewart: renanem variant-detected to p9dsu-riser-detected] Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* ipmi: Add BMC firmware version to device treeVasant Hegde2018-05-091-0/+6
| | | | | | | | | | | | | | BMC Get device ID command gives BMC firmware version details. Lets add this to device tree. User space tools will use this information to display BMC version details. Stewart, I have added bmc information under /ibm,firmware-version node as its firmware version. But may be we should add new node (/bmc/firmware). So that we can keep BMC related information separately. Let me know your thoughts on this. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* p9dsu: timeout for variant detection, default to 2uessStewart Smith2018-05-081-6/+8
| | | | Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* p9dsu: detect p9dsu variant even when hostboot doesn't tell usStewart Smith2018-04-241-68/+80
| | | | | | | | | | | | | | | | | | | The SuperMicro BMC can tell us what riser type we have, which dictates the PCI slot tables. Usually, in an environment that a customer would experience, Hostboot will do the query with an SMC specific patch (not upstream as there's no platform specific code in hostboot) and skiboot knows what variant it is based on the compatible string. However, if you're using upstream hostboot, you only get the bare 'p9dsu' compatible type. We can work around this by asking the BMC ourselves and setting the slot table appropriately. We do this syncronously in platform init so that we don't start probing PCI before we setup the slot table. This adds a bit of funky logic in the p9dsu platform file, but on the whole makes things simpler. Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* p9dsu: add slot power limit.Jim Yuan2018-04-241-0/+27
| | | | | Signed-off-by: Jim Yuan <jim.yuan@supermicro.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* p9dsu: add pci slot table for Boston LC 1U/2U and Boston LA/ESS.Jim Yuan2018-04-241-7/+584
| | | | | | Signed-off-by: Jim Yuan <jim.yuan@supermicro.com> [stewart: remove trailing whitespace, incorrect BMC comment] Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* p9dsu HACK: fix system-vpd eepromOliver O'Halloran2018-04-241-0/+20
| | | | | Signed-off-by: Jim Yuan <jim.yuan@supermicro.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* p9dsu: change esel command from AMI to IBM 0x3a.Jim Yuan2018-04-241-1/+6
| | | | | Signed-off-by: Jim Yuan <jim.yuan@supermicro.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* slots: Add power limit supportOliver O'Halloran2018-04-112-0/+6
| | | | | | | | Add support for sourcing power limit information from either the DT slot heirachy or the slot table. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* romulus: Add a barebones slot tableOliver O'Halloran2018-04-111-0/+30
| | | | | | | | Add slot tables for romulus. Hopefully they won't be needed in THE FUTURE! Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* astbmc: Add more slot table helpersOliver O'Halloran2018-04-111-0/+27
| | | | | | | | Add some helper macros for the common case of a slot, or builtin device directly under a PHB or switch port. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* Revert "platforms/astbmc/slots.c: Allow comparison of bus numbers when ↵Stewart Smith2018-03-221-1/+1
| | | | | | | | | | | | | | | | | matching slots" This reverts commit bda7cc4d0354eb3f66629d410b2afc08c79f795f. Ben says: It's on purpose that we do NOT compare the bus numbers, they are always 0 in the slot table we do a hierarchical walk of the tree, matching only the devfn's along the way bcs the bus numbering isn't fixed this breaks all slot naming etc... stuff on anything using the "skiboot" slot tables (P8 opp typically) Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Add VESNIN platform supportArtem Senichev2018-03-142-1/+264
| | | | | Signed-off-by: Artem Senichev <a.senichev@yadro.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platforms: Add OpenCAPI platform data and device tree nodesAndrew Donnellan2018-03-011-0/+97
| | | | | | | | | | | | | | | | Add OpenCAPI platform data for the zaius and zz platforms, as well as the generic platform that's used for BML boots. Currently, all three platforms are identical, but that won't always be the case (e.g. Witherspoon). Additionally, for Zaius, hardcode link information and the I2C bus that's required to reset OpenCAPI devices, because this currently can't be extracted from HDAT. Eventually this will go away once Hostboot adds the relevant data in HDAT. A later patch will add this for ZZ once we've done more testing. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Reviewed-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* build: use thin archives rather than incremental linkingNicholas Piggin2018-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | This changes to build system to use thin archives rather than incremental linking for built-in.o, similar to recent change to Linux. built-in.o is renamed to built-in.a, and is created as a thin archive with no index, for speed and size. All built-in.a are aggregated into a skiboot.tmp.a which is a thin archive built with an index, making it suitable or linking. This is input into the final link. The advantags of build size and linker code placement flexibility are not as great with skiboot as a bigger project like Linux, but it's a conceptually better way to build, and is more compatible with link time optimisation in toolchains which might be interesting for skiboot particularly for size reductions. Size of build tree before this patch is 34.4MB, afterwards 23.1MB. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* witherspoon: Fix VPD EEPROM typeOliver O'Halloran2018-01-301-0/+20
| | | | | | | | | | | There are userspace tools that update the planar VPD via the sysfs interface. Currently we do not get correct information from hostboot about the exact type of the EEPROM so we need to manually fix it up here. This needs to be done as a platform specific fix since there is not standardised VPD EEPROM type. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Witherspoon: Remove old Witherspoon platform definitionAlistair Popple2018-01-141-356/+0
| | | | | | | | | | | | | | | | | | | | An old Witherspoon platform definition was added to aid the transition from versions of Hostboot which didn't have the correct NVLink HDAT information available and/or planar VPD. These system should now be updated so remove the possibly incorrect default assumption. This may disable NVLink on old out-dated systems but it can easily be restored with the appropriate FW and/or VPD updates. In any case there is a a 50% chance the existing default behaviour was incorrect as it only supports 6 GPU systems. Using an incorrect platform definition leads to undefined behaviour which is more difficult to detect/debug than not creating the NVLink devices so remove the possibly incorrect default behaviour. Signed-off-by: Alistair Popple <alistair@popple.id.au> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Reviewed-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* pci: Track peers of slotsRussell Currey2017-11-211-1/+4
| | | | | | | | | Witherspoon introduced a new concept where one physical slot is shared between two PHBs. Making a slot aware of its peer enables syncing between them where necessary. Signed-off-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platforms/astbmc: Make platform symbols consistentAndrew Donnellan2017-10-102-2/+2
| | | | | | | | | | | | The DECLARE_PLATFORM macro takes the supplied platform name and adds "_platform" to it when defining the platform struct. Remove the _platform from the platform name for zaius and romulus so we have "zaius_platform" rather than "zaius_platform_platform", for consistency's sake... Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* convert new witherspoon to dt helperOliver O'Halloran2017-09-151-1/+1
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* witherspoon: Deprecate manual npu creationOliver O'Halloran2017-09-151-4/+54
| | | | | | | | | | | In the future we will always create the npu nodes based on what's in the HDAT. For now we seperate witherspoon into an old and new platform where the old platform will assume a sequoia planar and create the relevant NPU nodes for that planar. If you have a redbud system this will be broken, but this should be fine for most cases. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platform/witherspoon: Add slot names to tableOliver O'Halloran2017-09-152-22/+68
| | | | | | | | | Add the other PCIe devices to the witherspoon slot tables. This provides a fall back for systems without IOSLOT information in the HDAT. This is mainly to allow DD1 systems to continue being useful. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* astbmc: Add methods for handing DT based slotsOliver O'Halloran2017-09-152-0/+49
| | | | | Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* core/pci-slots: Move slot-label construction to a helperOliver O'Halloran2017-09-151-32/+2
| | | | | | | | Move this out of the astbmc specific part into a generic helper. This allows us to use it more commonly. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* core/pcie-slots: Make dynamic slot creation genericOliver O'Halloran2017-09-151-62/+12
| | | | | | | | | | | astbmc has some code to handle devices that are behind a "slot" on a riser card that can't be added to the static slot tables for a system. We probably want to use this code outside the slot table handling so move it somewhere generic and rework it so slot table specifics aren't buried inside it. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platform/witherspoon: Remove PHB4_SHARED_SLOT_IDX_WITHERSPOON constantOliver O'Halloran2017-09-041-6/+4
| | | | | | | | | | | PHB4_SHARED_SLOT_IDX_WITHERSPOON is the index of the PHB which the shared slot is connected to rather than the index of the shared slot which the name suggests. This is confusing at best so this patch replaces the only usages of this macro with just the PHB number and a comment. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* DT: Add ibm,firmware-versions nodeVasant Hegde2017-09-041-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | In P8, hostboot provides mini device tree. It contains /ibm,firmware-versions node which has various firmware component version details. In P9, OPAL is building device tree. This patch adds support to parse VERSION section of PNOR and create "/ibm,firmware-versions" device tree node. Sample output: /sys/firmware/devicetree/base/ibm,firmware-versions # lsprop . occ "6a00709" skiboot "v5.7-rc1-p344fb62" buildroot "2017.02.2-7-g23118ce" capp-ucode "9c73e9f" petitboot "v1.4.3-p98b6d83" sbe "02021c6" open-power "witherspoon-v1.17-128-gf1b53c7-dirty" .... .... Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Mukesh Ojha <mukesh02@linux.vnet.ibm.com> Reviewed-by: Samuel Mendoza-Jonas <sam@mendozajonas.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platform/witherspoon: Enable eSEL loggingVasant Hegde2017-07-193-1/+7
| | | | | | | | | | | | OpenBMC stack added IPMI OEM extension to log eSEL events. Lets enable eSEL logging from OPAL side. See: https://github.com/openbmc/openpower-host-ipmi-oem/blob/d9296050bcece5c2eca5ede0932d944b0ced66c9/oemhandler.cpp#L142 (yes, that is the documentation) Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> [stewart@linux.vnet.ibm.com: remove pnor access request, add link to OpenBMC doc] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platforms/astbmc/witherspoon.c: Add NPU2 slot mappingsAlistair Popple2017-06-211-0/+272
| | | | | | | | | | For NVLink2 to function PCIe devices need to be associated with the right NVLinks. This association is supposed to be passed down to Skiboot via HDAT but those fields are still not correctly filled out. To work around this we add slot tables for the NVLinks similar to what we have for P8+. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platforms/astbmc/slots.c: Allow comparison of bus numbers when matching slotsAlistair Popple2017-06-211-1/+1
| | | | | | | | When matching devices on multiple down stream PLX busses we need to compare more than just the device-id of the PCIe BDFN, so increase the mask to do so. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platforms/astbmc: Don't validate model on palmettoGavin Shan2017-06-191-9/+2
| | | | | | | | | | | | | | | | The platform isn't compatible with palmetto until the root device-tree node's "model" property is NULL or "palmetto". However, we could have "TN71-BP012" for the property on palmetto. linux# cat /proc/device-tree/model TN71-BP012 This skips the validation on root device-tree node's "model" property on palmetto, meaning we check the "compatible" property only. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* phb4: Activate shared PCI slot on witherspoonFrederic Barrat2017-06-071-0/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Witherspoon systems come with a 'shared' PCI slot: physically, it looks like a x16 slot, but it's actually two x8 slots connected to two PHBs of two different chips. Taking advantage of it requires some logic on the PCI adapter. Only the Mellanox CX5 adapter is known to support it at the time of this writing. This patch enables support for the shared slot on witherspoon if a x16 adapter is detected. Each x8 slot has a presence bit, so both bits need to be set for the activation to take place. Slot sharing is activated through a gpio. Note that there's no easy way to be sure that the card is indeed a shared-slot compatible PCI adapter and not a normal x16 card. Plugging a normal x16 adapter on the shared slot should be avoided on witherspoon, as the link won't train on the second slot, resulting in a timeout and a longer boot time. Only the first slot is usable and the x16 adapter will end up using only half the lines. If the PCI card plugged on the physical slot is only x8 (or less), then the presence bit of the second slot is not set, so this patch does nothing. The x8 (or less) adapter should work like on any other physical slot. Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> [stewart@linux.vnet.ibm.com: re-org code, move into platform file] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platform: Add p9dsuJim Yuan2017-04-202-1/+56
| | | | | | | Add p9dsu platform (AKA Boston). Signed-off-by: Jim Yuan <jim.yuan@supermicro.com> Signed-off-by: Michael Neuling <mikey@neuling.org>
* zaius: Remove psi_set_external_irq_policy from platform initOliver O'Halloran2017-03-161-1/+0
| | | | | | | | | This function is specific to how Skiboot's P8 PSIHB driver. For P9 the PSIHB driver has been reworked completely and this doesn't do anything. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Acked-By: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platform: Add RomulusHank Chang2017-03-032-1/+56
| | | | | | Signed-off-by: Hank Chang <chhank@tw.ibm.com> Acked-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* astbmc/pnor: Use mbox-flash for flash accessesCyril Bur2017-02-231-17/+31
| | | | | | | | | If the BMC is MBOX protocol aware, request flash reads/writes over the MBOX regs. This inits the blocklevel for pnor access with mbox-flash. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* ast-bmc: Use the mbox driverCyril Bur2017-02-231-0/+42
| | | | | | | | | | | | The mbox registers are accessed via superIO, these need to be initialised. The mbox device node won't be present in the device tree hostboot passes us, so fixup the device tree. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platforms/astbmc: Support PCI slots for palmettoGavin Shan2017-02-231-0/+84
| | | | | | | This adds the PCI slots info for palmetto. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* ast: Account for differences between 2400 vs 2500Michael Neuling2017-02-221-10/+8
| | | | | | | | | | Currently astbmc_early_init() only applies to AST2400/POWER8. This fixes the code so it also applies to AST2500/POWER9 except for the PSI BAR fixup which is not needed on AST2500/POWER9. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* ast: Look for POWER9 LPC in ast_fixup_dt()Michael Neuling2017-02-221-0/+6
| | | | | | | Currently ast_fixup_dt() only applies for P8. This enables P9 also. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platform: Add witherspoonMichael Neuling2017-02-222-2/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +----------------------------------------------------------------------+ |ooooooooooooooooooooooooo=+++:++++::::~:::::::+==ooooooooooooooooooooo| |oooooooooooooooooooooo+++++++++++++:+:~...:++++:+==ooooooooooooooooooo| |oooooooooooooooooooo++++=++==+++::~~~~ .~~+++++++=oooooooooooooooooo| |oooooooooooooooooo+:++====+++::~..~~~~... .~:++++++++=oooooooooooooooo| |oooooooooooooooo=::++=+=++++:~~~:::::~~.. ~:++++++=++=ooooooooooooooo| |ooooooooooooooo=::+++++:++:::::+++:::~.....:++:+++++=++=oooooooooooooo| |oooooooooooooo+~::+:+:::::~::+++++++:~~:++::+++::++++===oooooooooooooo| |ooooooooooooo=:~:::::~:::::++++=+=+:::++++++:+++::++++====oooooooooooo| |ooooooooooooo:~::~::~~:::::++=+=++::+=++++++:++=:::++++===oooooooooooo| |oooooooooooo:~~~~~~~~~~:::+:++=+:++++++=+=+++++++:::+=+====ooooooooooo| |ooooooooooo+~~~~~~~~:~~:::++++::+=+++==+++++:::=+::::+=+===ooooooooooo| |oooooooooo=~~~:~~~~~~.~~:::++::++++++++++++++:++++::::+++==ooooooooooo| |oooooooooo:~.~~~~~.~..~~::::::+++++++++++++++:::++:::::=====oooooooooo| |ooooooooo+~..~:~....~.~~~~~~~~:+++++++::~~~~~::::++::::+==+=oooooo====| |oooooooo+~~.~:~~.~..~~::~... .~::+:+::~. ..~::::~::++=:+=o=o=====o| |ooooooo=~~..~:~~~ ~::~. .~~~:+++::~~:. .. .~:::~~~++=:+===oooooo=| |o=o==o=::~.~:::~~ :::+:~~~~~:::+:+=++:::::~~~:+++::~..:+=::+=====o==o| |=======~~.~::::: .~:++++++:::++++++++++++:++++++++:. .:++::+=o=======| |==o====~~~~~:::. .:::++++=+=+++:+++++++=+=+++++++: .~~+=:::=========| |ooo=oo=:~~~:~:: ..~~~:::+++++++++=+=++++++=++++:+:..~~~:+:~:===o=o=oo| |=o===o+:~~::~:.. ....~~~::+++++:~~:++::::++:+:+::+: .:::++~:+=ooooooo| |o=ooo=+:.::~~~. ... .~~~:::::+:::~~~:::++++::::::: ~::::=:~+=o=ooooo| |ooo=o+++:~~~~... .. .~~~::::+++++++++++++:::++:::: ~+:+:+~~:+o=oo=o=| |o=o=++==:~~..~. . ~~~:::::~~~:~~~~~:~~:::+::::~ .:::::+~.:+=o==o=o| |=o=+====:~..... ~~~:::+:::~:::::::+++:::::~ .+:~:++.~~+=oooooo| |====o==++:~.~~~... .~~~~:::+::::::+:+:+::::. :+:::+:.~:+=======| |o=====+=+=+~~~~... .~~:::::++++++++:+:::~ . .::++::~:::+==o====| |o==oo+=+=o=:::~~. .~..~~:++:++++++::~~..~...::+++++::+++=====o=| |=o====o=o=++::~. .~~~...~::::::::~...~~~~.~:+++++++++++==o==o=| |oo===oo=o=+:~~.... ~~~:~~~..........~~:::~~..:+++++++++===oooo=o| |=o===oo=+::~~~.. ~~~::~~~~~~~~~~~~:~~::~~~~~+++++++++====ooooo| |====++::~....... .. ~~:::~::::::~~~~~~~:~::::~.. .=+++=+=+====o=oo=| |==+:~~........ .. ...~:::::::::::::::~~::::::::~. .~+==++=++o===o=oo| |oo+.. ~~~~~:~::+::::::::::::::::::::::::~. ~:~~:=++=+==+==oooo| |=+:~~. .~~~:+::::+++:+::++::+:+:+:++:++:++:::~..+:.~::++++++++++==:| +----------------------------------------------------------------------+ Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* astbmc/p8dnu: Enable PCI slot's power supply on PEX8718 in hot-add pathGavin Shan2017-02-221-2/+4
| | | | | | | | | | | | | | | | | | This issue is reported from superMicro's "p8dnu" platform. PEX8718 is connected to PHB direct slot. We create dynamic PCI slots for its (2) downstream ports and all of them support surprise hotplug capability. The problem is power supply lost on hot-remove and it isn't turned on automatically on hot-add. It means the PCIe link behind the slot isn't up and the PCI adapter behind the slot can't be probed successfully. This fixes the issue by forcing to turn on the power supply on hardware when user (kernel) requests to do so, as we did for PEX9733. Reported-by: Hank Chang <hankmax0000@gmail.com> Signed-off-by: Gavin Shan <gwhsan@linux.vnet.ibm.com> Tested-by: Willie Liauw <williel@supermicro.com.tw> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* astbmc/p8dnu: Enable PCI slot's power supply on PEX9733 in hot-add pathGavin Shan2017-02-221-0/+13
| | | | | | | | | | | | | | | | | | | This issue is reported from superMicro's "p8dnu" platform. PEX9733 is connected to PHB direct slot. We create dynamic PCI slots for its (5) downstream ports and all of them support surprise hotplug capability. The problem is power supply lost on hot-remove and it isn't turned on automatically on hot-add. It means the PCIe link behind the slot isn't up and the PCI adapter behind the slot can't be probed successfully. This fixes the issue by forcing to turn on the power supply on hardware when user (kernel) requests to do so. Those PCI slots are identified by additional flag (PCI_SLOT_FLAG_FORCE_POWERON). Reported-by: Hank Chang <hankmax0000@gmail.com> Signed-off-by: Gavin Shan <gwhsan@linux.vnet.ibm.com> Tested-by: Willie Liauw <williel@supermicro.com.tw> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platforms/astbmc: Support SMC's P8DNUWillie Liauw2017-02-222-1/+361
| | | | | | | | | This supports superMicro's P8DNU platform. Signed-off-by: Willie Liauw <williel@supermicro.com.tw> Signed-off-by: Hank Chang <hankmax0000@gmail.com> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* uart: Fix Linux pass-through policyBenjamin Herrenschmidt2017-02-071-0/+3
| | | | | | | | This was broken on Rhesus. Also add an nvram way of overriding the policy Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* habanero/slottable: Remove Network Mezz(2, 0) from PHB1.ppaidipe@linux.vnet.ibm.com2017-02-021-5/+0
| | | | | | | | | | | | | | | With addition of latest callback of check_all_slot_table found below error message in habanero platform. [ 17.069198739,3] PCI: built-in device not found: Network Mezz (loc: 10) https://github.com/open-power/skiboot/issues/54 So PHB1 already having one Network Mezz(1,0) which is the only one there in the habanero platform design layout. check_all_slot_table found the additional Network Mezz(2,0) in slot table is in-correct. Fix this by removing it. Signed-off-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* platform: add zaiusOliver O'Halloran2017-01-162-1/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WMWWMMMMMMWWMWMWMMMMMMMMMWWWMWMMMWMMWWWMWWWWWMWWWWWWWWWWMMWW WWKKWWWMMW0kXWWWMMMMMMMMMK wWWK ONW xW WW WWWN WW WWl xWWWl KWMMMMMMMMMXkkx .WWX k kWX lWW WN WWN KWW MWl x XMWl O OMMMMMMMMMMMMk OMWK oWk kMX lWW WN WW xWWW MWl NK WWl XK WWWMMMMMMWWW WWWK oWk kMX lWW WN WW 0MMM WWl NW NWl XN WWWMMWMMWWW0 .WWWK oWk xMX lWW WN WWX WWM WWl NN NMl Ko kWWWWWNNNNNN KNNN0 lNx xWX lWW WN WWW dWW WWl K xNNc L xXXXXXXXXXXO XXXXO lNo dX0 cXX XX NNWW WW XXc xXXXc kO KXXXXXXXXX OXXXXO l0o dX0 :XX KK XXXX KN XXo:kKXXXXl 0K KXXXXXXXX0 KXO oXx xX XXd dXXx oXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXNNWWWWNNNXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXNNXK00NNWWNNWWWNXXXXXXXXXXXXXXXXXXXXXXX0o XXXXXXXXXXXXXXXXXNNXOOO0XNXNNNXNWWWNXXXXXXXXXXXXXXXXXXXXKdcc XXXXXXXXXXXXXXXXNNKOOOk00XkxXNWWNKNWNXXXXXXXXXXXXXXXXX0dcccc XXXXXXXXXXXKXXXNWX00OOOO0OdloodKK0KWWNXXXXXXXXXXXXXXkocccccc XXXXXXXXXXXk0XNNKOOOdollokxlokkOOxOXWNXXXXXXXXXXXXKocccccccc KXXXXXXXXXXdkNX00O0ko:. ,ccc,..cKK0NNNXXXXXXXXXXOlccccccccc 0kOXXXXXXXKlON00O00Oo, ,lo; 'x0KWNNXXXXXXXXXkccccccccccc XKxox0XXXX0OWKOOO000Oxllodxxkdlldk0XWNNNXXXXXXKdcccccccccccc XXX0dcdkxdkWWK0OO00K0xlooooxkOkk0O0XWNNNXXXXXKoccccccccccccc KXXXXkccccdKNNX0KKK00dlllllllokKWXKNWWWNXXXX0occcccccccccccc dOKXKl:::::ONKKKXdO000xoooooodOKWNXWWWWNOO0klccccccccccccccc cccll::::::cl;cKk :OKNXkxxxkk0KKNWNWWWWNxoollcldlccccccccccc :::::::c:::;;;;:x oXWN0XWWWWXXNWWWWNWNKkdxllllxOxooooooollc ::;:doooooc;;;' ' .0WWXNWWWWKNKKWWNdkkdddddcllokOkxxxxxdxxx ::;ldlllod:;:;. ,doOWNWWNXX.cW0dcclddddxoccloOOxdxxdxxkk ;;;cdooodl;::, . .,:d0O;, ;:.ccc:cddddxl:clxOkxxxxkkkx ;;;oxlolo;;::. .ccc:ldxdddccllOkxxkxxkkx ;;;oooddl,::;. .l:c:oxdddlc::oxoxkxoc:: ;;;ooddd:;::' .l:c;odxdd:;;cxxko;;;;; ;,;ollol;:;:. ;l;;:xoool;;;xxd:,,,,, Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Enthusiastically-acked-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* astbmc: Don't do P8 PSI or DT fixups on P9Oliver O'Halloran2017-01-161-4/+10
| | | | | | | | | | We do some P8 specific hacks on BMC platforms to work around Hostboot not initialising the PSI BAR and to fix some problems in the hostboot provided device tree. These shouldn't be done on P9. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud