summaryrefslogtreecommitdiffstats
path: root/hw/nx-rng.c
Commit message (Collapse)AuthorAgeFilesLines
* NX: Print read xscom config failures.Pridhiviraj Paidipeddi2017-11-301-5/+18
| | | | | | | | | Currently in NX, only write xscom config failures are tracing. Add trace statements for read xscom config failures too. No functional changes. Signed-off-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* hw/nx: Fix NX BAR assignmentsOliver O'Halloran2017-11-301-2/+24
| | | | | | | | | | | | | | | The NX rng BAR is used by each core to source random numbers for the DARN instruction. Currently we configure each core to use the NX rng of the chip that it exists on. Unfortunately, the NX can be deconfigured by hostboot and in this case we need to use the NX of a different chip. This patch moves the BAR assignments for the NX into the normal nx-rng init path. This lets us check if the normal (chip local) NX is active when configuring which NX a core should use so that we can fallback gracefully. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* hw/nx*: Remove extraneous space characterOliver O'Halloran2017-08-211-1/+1
| | | | | | | | "ibm, power9-nx" should be "ibm,power9-nx" and the mismatch was causing nuisance errors at boot. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* nx: PR_INFO that NX RNG and Crypto not yet supported on POWER9Stewart Smith2017-08-011-0/+4
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* tree-wide: use dt_add_property_u64s() where we canOliver O'Halloran2016-12-211-2/+1
| | | | | | | | | | | | A few places (mostly old code) were using: add_property_cells(hi32(number), lo32(number)); This patch converts them to use the helper rather than doing it manually. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* sparse: fix constant is so big it's long in hw/nx-rng.cStewart Smith2015-11-101-1/+1
| | | | | | hw/nx-rng.c:73:29: warning: constant 0x400000000 is so big it is long Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Add NX P7+ supportDan Streetman2015-03-171-10/+9
| | | | | | | | | | | Add NX config register values for P7+. Remove "P8" from all register defines, where the define is common to P7+ and P8. For values new to P8 (specifically 842 prefeching), only enable on P8. This should correctly setup the NX coprocessors on P7+ systems. Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* add nx-842 coproc supportDan Streetman2015-02-191-0/+99
Add support for the 842 hw memory compression engine in the NX Coprocessor. This moves the existing RNG support into its own nx-rng.c file, adds 842 support in a nx-842.c file, and creates a nx-crypto.c file to configure and disable the crypto engines (which are not supported yet). New nodes are created for each 842 engine found. This does not actually process any of the data or drive the 842 engines, it only configures registers to set up and enable/disable the engines appropriately, and creates new nodes so the OS can drive the 842 engines. Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud