aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Currey <ruscur@russell.cc>2018-02-05 15:00:07 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-02-20 00:09:22 -0600
commitac8a62b09c6343b9f992450dffa448e3bb416c53 (patch)
tree0790d0eb9ccb2451da26756b99006684508cd5ee
parent0bb960f82ef3c0670406e25b525a6173e319a88e (diff)
downloadskiboot-ac8a62b09c6343b9f992450dffa448e3bb416c53.zip
skiboot-ac8a62b09c6343b9f992450dffa448e3bb416c53.tar.gz
skiboot-ac8a62b09c6343b9f992450dffa448e3bb416c53.tar.bz2
phb4: Fix TCE page size
The page sizes for TCEs on P9 were inaccurate and just copied from PHB3, so correct them. Signed-off-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hw/phb4.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/phb4.c b/hw/phb4.c
index f4b8f40..7f9de33 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -1504,11 +1504,11 @@ static int64_t phb4_map_pe_dma_window(struct phb *phb,
case 0x10000: /* 64K */
data64 = SETFIELD(IODA3_TVT_IO_PSIZE, data64, 5);
break;
- case 0x1000000: /* 16M */
- data64 = SETFIELD(IODA3_TVT_IO_PSIZE, data64, 13);
+ case 0x200000: /* 2M */
+ data64 = SETFIELD(IODA3_TVT_IO_PSIZE, data64, 10);
break;
- case 0x10000000: /* 256M */
- data64 = SETFIELD(IODA3_TVT_IO_PSIZE, data64, 17);
+ case 0x40000000: /* 1G */
+ data64 = SETFIELD(IODA3_TVT_IO_PSIZE, data64, 19);
break;
default:
return OPAL_PARAMETER;