aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Rubin <dana.rubin@ravellosystems.com>2016-08-04 14:22:31 +0300
committerKevin O'Connor <kevin@koconnor.net>2016-08-05 15:10:11 -0400
commit8bc6d9f8e9bd1c211660f9ec91c237821d7f4089 (patch)
treecfb02c5d545bca96b87ba4da2f25e73535a7cce8
parent85037a91179c04f83e5a4bf5b5b6af8a70a9f517 (diff)
downloadseabios-8bc6d9f8e9bd1c211660f9ec91c237821d7f4089.tar.gz
seabios-8bc6d9f8e9bd1c211660f9ec91c237821d7f4089.tar.xz
seabios-8bc6d9f8e9bd1c211660f9ec91c237821d7f4089.zip
pvscsi: Use high memory for rings
Avoid using the scarce ZoneLow memory. This limits max number of pvscsi controllers. As driver runs in 32bit mode, use ZoneHigh allocation instead. Signed-off-by: Dana Rubin <dana.rubin@ravellosystems.com> Signed-off-by: Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>
-rw-r--r--src/hw/pvscsi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hw/pvscsi.c b/src/hw/pvscsi.c
index 7535493..cd4046c 100644
--- a/src/hw/pvscsi.c
+++ b/src/hw/pvscsi.c
@@ -167,18 +167,18 @@ pvscsi_init_rings(void *iobase, struct pvscsi_ring_dsc_s **ring_dsc)
{
struct PVSCSICmdDescSetupRings cmd = {0,};
- struct pvscsi_ring_dsc_s *dsc = memalign_low(PAGE_SIZE, sizeof(*dsc));
+ struct pvscsi_ring_dsc_s *dsc = memalign_high(PAGE_SIZE, sizeof(*dsc));
if (!dsc) {
warn_noalloc();
return;
}
dsc->ring_state =
- (struct PVSCSIRingsState *)memalign_low(PAGE_SIZE, PAGE_SIZE);
+ (struct PVSCSIRingsState *)memalign_high(PAGE_SIZE, PAGE_SIZE);
dsc->ring_reqs =
- (struct PVSCSIRingReqDesc *)memalign_low(PAGE_SIZE, PAGE_SIZE);
+ (struct PVSCSIRingReqDesc *)memalign_high(PAGE_SIZE, PAGE_SIZE);
dsc->ring_cmps =
- (struct PVSCSIRingCmpDesc *)memalign_low(PAGE_SIZE, PAGE_SIZE);
+ (struct PVSCSIRingCmpDesc *)memalign_high(PAGE_SIZE, PAGE_SIZE);
if (!dsc->ring_state || !dsc->ring_reqs || !dsc->ring_cmps) {
warn_noalloc();
return;