From patchwork Wed Aug 21 03:09:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 171901 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp381829ily; Tue, 20 Aug 2019 20:10:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyC/6cRjDVOrklWvmaL9YeHhYPql63kx+i70UK59+pKW7RXiS8XYibGKJngAc50YJw59WsY X-Received: by 2002:a50:e611:: with SMTP id y17mr17318903edm.66.1566357031693; Tue, 20 Aug 2019 20:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566357031; cv=none; d=google.com; s=arc-20160816; b=c871O9QZtU4ufmb3pB8cS56TJ9Bc4BT/edtHQ1/dJoLqeIq4H1VIzhsOJbXAhvIR8c c78kZRENedk21W1LzzvW/Eh+vA4c/04rUcCmE7gZhPvKI5sg7lVBpmbLck0VSz/Yokpd aiXH3Rv81Zvup3s2RfzgXQYKYVhi/zBtA8NaOV/wEo9UyjIL7y6q1PhpCCZmDknDp5l+ 3IGwP+1t16sIbzfYAT63rO7aP3Bcf4LimZW6rPrJvm7HG3gbcnfgnfWmyOisXYftiAfA wiPSbgSmOlGCns22bK3NB7xLaElVnaFIUdztcucs9joBsU+qVNKk+5VPufcfPhzsDgSc x9Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature; bh=4H0DNln+vkIfh3c16gEfBqSh6PiHJ/PVZ4BRLm+SFLI=; b=l+OQh3+eUU033LrgO5yDYcqIXr59zkw8pm6EOOKddWRpiApjKF/hmfFmuJQJWCflLe zkdbYUYTsWkwwKaU7NxytH4gJ3YU3X6mIK7wnZ3Klo2ruUbnPaQvMVQFGAaE8wNgSTht +RRne3LB+kUINfM3x5ixbhw1Thw5rtfanusoa0OUAsjTtDi4ydBNSNqjn4YyLRi/QaPP UOmFob+onrfNaKFrBity9pDpkrwMaTRyryz9S3JDXEWTvmWIrSDVL+0cSzQO5Odx742b 1eh48u2B2biRXxf6wHCLyEUhopOI2dxrkO0sjCRIJK5Dp0Ap94aw/iK4MaxihS5AX6lv BaPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TT6fjxKL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id jp14si9920653ejb.398.2019.08.20.20.10.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Aug 2019 20:10:31 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TT6fjxKL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:43626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0H14-0006ef-Gc for patch@linaro.org; Tue, 20 Aug 2019 23:10:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42998) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0H0Z-0006e2-CR for qemu-devel@nongnu.org; Tue, 20 Aug 2019 23:10:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0H0Y-0003Xd-Ed for qemu-devel@nongnu.org; Tue, 20 Aug 2019 23:09:59 -0400 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:43831) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0H0W-0003TI-2W; Tue, 20 Aug 2019 23:09:56 -0400 Received: by mail-pl1-x642.google.com with SMTP id 4so497448pld.10; Tue, 20 Aug 2019 20:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4H0DNln+vkIfh3c16gEfBqSh6PiHJ/PVZ4BRLm+SFLI=; b=TT6fjxKLXHGBiNm3kYcqos/P1+uUqIFmRu4wrlu18JrXhGnRoV8lgryOIU3JCIfWjr MB7a56PpHkyiku5ARARow/VTelXruvv38sklWPkLS3ulHGjm0WO80SURfsJ6grLlAMMy qLvS+C1OdiXemZjpskZGzu3kFkKmXdO6nchF99xMn6C1dG58CPgr/FubEzqc4jmWBmmN t49mbcth9vyPQJQadYqGvWD8T+9oJXAWu4Qun4Qv3HVP1L1c/AumnFKXRsHoadI4mXhI JHWl70AS2GqkQkDVxsfayogPQBR3Q5cfmY6+Lb+sdxC0k9lnNetOkjQH2sjKdEOKQx/j Cutw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=4H0DNln+vkIfh3c16gEfBqSh6PiHJ/PVZ4BRLm+SFLI=; b=ZPAkTAiUZ8BzI2Y7Scy3ryNhlaX3fAHdVabvdI/6tmNmRpL5OHJfllaH72byDF+hAP rryfHbDHNkJEKyDa8DKBx1PuRJdVjLJ6J1xc2uakJX0KmkNwrbPiv5yvCRkDj0jgnJUz G5zH9L5T9Hn3ajnfjNwnovhR2KzQMYVv4hncexjKV5ItEMzjYYX5vIiNEpuFI/adZqKF HHr3wdL+d1DZkNvMI0R9QI4txZMhhqu5UsaO8/CwDs96WJmgNsq8x/t+3bht05d2Emtl X5VqL2mgO4sy9X80233r8adXEIIA7wxENqOQ3OwjV5JEF3foUOZfjmGbXDR9h1CV8aqK fLvQ== X-Gm-Message-State: APjAAAV+j4+Md5ze9xgUW7ZMssBXGzC+mq9wp+TUi0FdKnF9hBxC4kRC oGXUy2UdGIYA7+FzHB0m8LA+2Uv0 X-Received: by 2002:a17:902:b604:: with SMTP id b4mr30612298pls.94.1566356993571; Tue, 20 Aug 2019 20:09:53 -0700 (PDT) Received: from voyager.ibm.com ([36.255.48.244]) by smtp.gmail.com with ESMTPSA id j10sm21335220pfn.188.2019.08.20.20.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 20:09:53 -0700 (PDT) From: Joel Stanley To: =?utf-8?q?C=C3=A9dric_Le_Goater?= , David Gibson Date: Wed, 21 Aug 2019 12:39:45 +0930 Message-Id: <20190821030945.473-1-joel@jms.id.au> X-Mailer: git-send-email 2.23.0.rc1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::642 Subject: [Qemu-devel] [PATCH v2] ppc/pnv: Set default ram size to 1.75GB X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This makes the powernv machine easier for end users as the default initrd address (1.5GB) is now within RAM. This uses less than 2GB of RAM to ensure 32 bit Qemu still works. Signed-off-by: Joel Stanley -- v2: Use INITRD defines, whcih come out to 1.75, instead of 2GB --- hw/ppc/pnv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.23.0.rc1 diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index d95086fbbd1e..5000db5faab5 100644 --- a/hw/ppc/pnv.c +++ b/hw/ppc/pnv.c @@ -1361,7 +1361,9 @@ static void pnv_machine_class_init(ObjectClass *oc, void *data) * storage */ mc->no_parallel = 1; mc->default_boot_order = NULL; - mc->default_ram_size = 1 * GiB; + /* RAM defaults to less than 2048 for 32-bit hosts, and large + * enough to fit the maximum initrd size at it's load address */ + mc->default_ram_size = INITRD_LOAD_ADDR + INITRD_MAX_SIZE; xic->icp_get = pnv_icp_get; xic->ics_get = pnv_ics_get; xic->ics_resend = pnv_ics_resend;