Message ID | 5618424968508dacfe02164dd0618bd0d865b8f7.1535565338.git.alistair.francis@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 587811709 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 29 Aug 2018 17:58:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47D9F2B942 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 29 Aug 2018 17:58:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B9232B947; Wed, 29 Aug 2018 17:58:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BEC772B942 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 29 Aug 2018 17:58:54 +0000 (UTC) Received: from localhost ([::1]:44336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1fv4k2-00053b-3e for patchwork-qemu-devel@patchwork.kernel.org; Wed, 29 Aug 2018 13:58:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <prvs=7726cd878=Alistair.Francis@wdc.com>) id 1fv4iZ-0002fB-7c for qemu-devel@nongnu.org; Wed, 29 Aug 2018 13:57:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <prvs=7726cd878=Alistair.Francis@wdc.com>) id 1fv4iT-0004Zy-J6 for qemu-devel@nongnu.org; Wed, 29 Aug 2018 13:57:23 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:58850) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <prvs=7726cd878=Alistair.Francis@wdc.com>) id 1fv4iR-0004WC-Td for qemu-devel@nongnu.org; Wed, 29 Aug 2018 13:57:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1535565435; x=1567101435; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=/iT0dh2+iHqkQuObrnPjnA7nDr9xBfZA62hc1eUcqg8=; b=jnmA2foLheghXFVZeErzM9AvQm0gtFobI3cPSrRjF9i3Lrs7Ty/p1nkV ze93ZQLBtp/Gd896kfYJ8sLFNd/QhyA6frJdpcPI8bUMPgwtR/H/K/USj P+NzEF4lgp01ojgZlXN1DJAU2NTvPwf9xLwbbUg7APDNvfmxUiF3A5lqd nKXinTe8ycm3MBlzMecxdONpHVMSEtHL/LDXCNO87lL14VyI+kPF2uzK3 RXlUxshCUEN1kJnhmU6gWVhFuFYe8XN55VMochpViyngrtMLQ2BdFI8g/ zmnPV02AqO29peatRv46pLkQ/tYaWe0CnvjsNDl+ccbViOiO0a9/xTV5Q w==; X-IronPort-AV: E=Sophos;i="5.53,304,1531756800"; d="scan'208";a="192756219" Received: from mail-cys01nam02lp0048.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.48]) by ob1.hgst.iphmx.com with ESMTP; 30 Aug 2018 01:57:12 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7mLaikaDCPZ00CpYBTV3rzV5jSeoe1OlN9JKlu76Wvc=; b=SLkVaO+lVTYr5qXIFmV19svHgC9ABDaD9ydSYeISjZrSigZvGb7FMNPiiDxXUqSsVQpeWSLg0/mFlXIbjcs0HgjpO4DKrFVXVx6Hht4k6JgPARbeY6C3zwErnjNEaT6Bw46+tPyDJrNCYhdCit/eFMH9s35fpVKGaDCWkc7Dkxg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Alistair.Francis@wdc.com; Received: from risc6-mainframe.int.fusionio.com (199.255.44.250) by BN6PR04MB0389.namprd04.prod.outlook.com (2603:10b6:404:91::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.15; Wed, 29 Aug 2018 17:57:10 +0000 From: Alistair Francis <alistair.francis@wdc.com> To: qemu-devel@nongnu.org, mjc@sifive.com Date: Wed, 29 Aug 2018 10:57:02 -0700 Message-Id: <5618424968508dacfe02164dd0618bd0d865b8f7.1535565338.git.alistair.francis@wdc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <cover.1535565338.git.alistair.francis@wdc.com> References: <cover.1535565338.git.alistair.francis@wdc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [199.255.44.250] X-ClientProxiedBy: BYAPR04CA0036.namprd04.prod.outlook.com (2603:10b6:a03:40::49) To BN6PR04MB0389.namprd04.prod.outlook.com (2603:10b6:404:91::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f11e44e1-5e99-46e2-013f-08d60dd8d838 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:BN6PR04MB0389; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0389; 3:/BN33gupbm/T4S/RvztTzAs0fcQVbIMPpUz3Ao6QND0LmM4nMdAb3DsjFWtHeggRyqJzmIi9994yDl3+mUrB3JYRrNfvLg7khr9IxmEiy6CYjjLAYHxD0g3DDD3OyrHFXEJ9+oJEi1oxwVroz3fAIob8XPtmpTBTqsDgslq4oQbtgAWHaUuUEU7gI76e5hpWd/OuiCNpZ/jsg37u6pjnGF/sPDPbhqfR4DcVh9TZC+0LMR17Z+cn9lOH9ZpGe65u; 25:rX/aCJyutPzzyGxVm2yur2MoM4ceNvK+caF1ZH5pml9XHI1vL2i6gTJqVykAJtM/op6Ffu3Js/a7Slobwc6u60I0AvX+SG8dnFS9oWIXDr0gblRgKWvyPe0PLedOpK7rTnyC9mS6AfuZoxVV+Cn5xDEfnziGEppB4fDOPBIWzhvtGMbmEaW0wvp8s204DF8946HVd4NACAlxBEW8ZDBpIBwLROhA0aMBLBr12ESBFrodaTyOvL+VzHbLO9PrMlxFIoHRqMVNoOJGkfAjN6/09GuocsWJnLpxfnXkOtVICeRrgU8lvJ0RBEoPxhjTOmE0PYAi0QhFDDkoCFoVgjducg==; 31:TkOOTEAITNWA4QNjPRG/NrN91EtBhvz7Sd1yar43DgP3b6+Ux1v5kcaQHv8skM7j5Zm0gMtvb/37RMb3ukhJtZjEZEf7kU8RoKWtwu9a1OZ8IvPMo1pl9z5dQxccqvreVxhcs+7dnfy7okut2mOWTMvj4pxkpmCUnLREnov/XsHt+ahq8hfnRWaeXp/OYsTdyieoZg/7VWw79EMi20PEoEHDwwbi98AFMUva7DHrcYI= X-MS-TrafficTypeDiagnostic: BN6PR04MB0389: WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0389; 20:UNtxu/AqOJcLWh5xOgsCpqjG4Y0nV2hT6vWFFeXCQiDKt+ceV9RQagkYGpt5LJ6ZymuMJnFakB0q+noRE02l6yKKDp4orKMZjDnjp72YT+1DrL/PAjVpw88tHmetIA7VL/fNsf7nbRZMveNawrQ3kdFUiha20L7I7meDwG6CMRZtb52/9jKF4VKhFXp/e4yWu7ueRY0MUqIeuSP0WExxWw5ob0Bi0b+Y0tVnCcDnWU/NBgervfHFIW7EPv+nC5HMNRcXNaRRqVNo/4zrgFq9W00UNZzTwkzASNJZhsz4qwJaVhSdUD8Tc8G2F3tziU0mO1arWKJW6RGYxr6tFb4lPvw4/kbBLq0Q3yX0JBZDsAVDRA5rUiSs2MXGmBb9IEgEoKZ+rcUDCWKFv4AyR9nGFtYjQ9XaTmU4iOjUY/Q0s3sP6yUY8zhMX34HxW8hdWKE8MtPSnHlV4kn+JOHED0LiMG93a3v2o5+NXrVao2O5y7kkyuEW5QCQmIXD+Xde6gM; 4:QzEN7369o32uX/BncBoso4Zbhd/db2qpQuF1CQYRsPN864tdrcUYmIv9KgXpL5SPla/o8cDraWsVToLZhs1rDX6/oZl5Ru05hN84l8ygwGXFfAcDxsatQ1Re+pBuWoo4RS+E8l1od6Okb/up83qgoOJmPggGwPsvimFY8onDK2tCZ332Uqns1JmPLpnaTOjdbhO4l5IIMm7FHI0n7F5rVHMMwW4xGkX8qY/4N0/tFi+ErLQ3Ng4RLhnozEkuH9niZor2AltxDYmSdJptp6GxFg== X-Microsoft-Antispam-PRVS: <BN6PR04MB0389D177BBD087A00FC75BC990090@BN6PR04MB0389.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231311)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:BN6PR04MB0389; BCL:0; PCL:0; RULEID:; SRVR:BN6PR04MB0389; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39860400002)(366004)(396003)(376002)(346002)(136003)(189003)(199004)(956004)(81156014)(8676002)(81166006)(6506007)(5660300001)(68736007)(386003)(66066001)(118296001)(25786009)(4326008)(446003)(39060400002)(106356001)(486006)(47776003)(16526019)(26005)(2616005)(11346002)(44832011)(76176011)(105586002)(478600001)(86362001)(51416003)(2906002)(186003)(316002)(6666003)(476003)(36756003)(3846002)(6116002)(16586007)(305945005)(53936002)(6486002)(48376002)(50226002)(7736002)(8936002)(6512007)(97736004)(52116002)(72206003)(50466002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR04MB0389; H:risc6-mainframe.int.fusionio.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR04MB0389; 23:M3v7dd9YwSaczwqzMVTefaQ7z65KFFEB/GNtE/FU5?= BWQ2iR9pvNATXnEwQWXpaew5pJQcH4Tyy03rRyrpbEsGd5pQybt2ghtw4tKqKizF7Oark8Vqu4D6UG9TMtpotKGXZyfoW4Rz3lRgbwqhTfSSrQ38Oyq3D32htVvcYas+5rThnh9SjP64ZIJfQ7ieo4q+xnpIazF9bDtARbmEOodoimYbb4SErgFGqUZjObryvoaJIAuaWsWbUi2stjooM+xG5IqwBWbKN8LkuriQtaECQztndkgl+iUULO4UHYAJnH4UT8lGuAylUAIfz8a/9UGUq9+qEtvcsfkZE3UGK3xClzqf9tiMhogMcelr3l5yy0zcxjzxVWJrEIXGDJAN1j0vIOh+CYcoRd+ibqqj6iCC2HNRjjieueH98PqZdWS9857L/LpIQUEKp1JVLaGKZOVcINjo2Q387oRiNJjdjQaIOYXv55CxYvZFWMFJ9ZDifWO7vZIZRBuA/+0hLahYDIIDOzxxhkXEuH5h4xGggPSHx/Ut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ObXNY2sHCAv/G7c89d3AyUlXbBtaSQ= X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0389; 6:ecHZm4awG4BssKBqxoGUvHLFRSkMbNqZg3cJiV4Nfhth2YugmTihu+snD5eImKsxrRjBe/6THPzlS+AVDJQDbKEZyAsLXLwDb1uHWifUGInLVoSEiWmKJC1EELorZyP5OsWTwOZL80gKPtOCRP98LutpYYNWqwAtIerodkwhNzP+PxSRXnBVd1md7CGHKGKmlWk/FuogqIMV/SC4txFLZ06ij4V2AzfkZRNliepfsO9T7W0OM6IZ5oOuSv7CyD/p0siqKilEYATcg/kokCBA2TogjQkfGmztaMTFLKWFO69kRAQa7zdoNwrTPpDymFuuJWDyhSaU9h/QAYffokWV7AE0FW2VuGENDsR5Zf46Txo9t5WseRGyQ8osyRx+3WIgm9L30coZlw/gdASiTuqxbKWVhqfw8Bqv9tgrpYkNkZ6DM7BX/mzsFBW33mGWrteJK56p5MEabZXE/VmXuH/Kug==; 5:um884OegEgTG1gstrIcSFJz1qII3QCtHB/ih/xcDUKf4I9AQfwhX+uRJbbzx1H6T+Lds3wioP6C/ygNE7A1AmfxjIEurdu1rjDpdtRslR2za3BAQTNaQISImEUdjmASfasHENx/QZG8MW5U0+j4Nt8HyZpvB0B1DAQHDaCcXJgA=; 7:MoNprxazJyVo02cx5DQjOqAdKbLqxX+nRxAymBuxllwOVlZM/fKyovdR8ewoOh873+LJ82hf1P0zBIiwcdKmDzV018lN0VrVDB4webRU2uQnGHNLgFqJPZMbvZdbzDA760cqC/suE6VnRLhaMBjOoYe33UrPo5vdXpQchE1XWDoLnNw2PDEDKS9o62vwKTn01HPY476aU2vOQgFdRY5tUBUDBDwxD1q8b4gMig4pcYe3lmx6kPipRikPd7sC3zmd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 17:57:10.7276 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f11e44e1-5e99-46e2-013f-08d60dd8d838 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0389 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 68.232.141.245 Subject: [Qemu-devel] [PATCH v4 5/7] riscv: Enable VGA and PCIE_VGA X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: alistair23@gmail.com, alistair.francis@wdc.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Connect a PCIe host and graphics support to RISC-V
|
expand
|
diff --git a/default-configs/riscv32-softmmu.mak b/default-configs/riscv32-softmmu.mak index 2c943e2669..fcefa68f1e 100644 --- a/default-configs/riscv32-softmmu.mak +++ b/default-configs/riscv32-softmmu.mak @@ -8,3 +8,6 @@ CONFIG_CADENCE=y CONFIG_PCI=y CONFIG_PCI_GENERIC=y + +CONFIG_VGA=y +CONFIG_VGA_PCI=y diff --git a/default-configs/riscv64-softmmu.mak b/default-configs/riscv64-softmmu.mak index 2c943e2669..fcefa68f1e 100644 --- a/default-configs/riscv64-softmmu.mak +++ b/default-configs/riscv64-softmmu.mak @@ -8,3 +8,6 @@ CONFIG_CADENCE=y CONFIG_PCI=y CONFIG_PCI_GENERIC=y + +CONFIG_VGA=y +CONFIG_VGA_PCI=y diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 9bdeea38f2..d360d66e42 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -437,8 +437,8 @@ static void riscv_virt_board_init(MachineState *machine) } gpex_pcie_init(system_memory, 0, memmap[VIRT_PCIE].base, - memmap[VIRT_PCIE].size, 0x40000000, 0x20000000, - qdev_get_gpio_in(DEVICE(s->plic), PCIE_IRQ), true); + memmap[VIRT_PCIE].size, 0x40000000, 0x20000000, + qdev_get_gpio_in(DEVICE(s->plic), PCIE_IRQ), true); serial_mm_init(system_memory, memmap[VIRT_UART0].base, 0, qdev_get_gpio_in(DEVICE(s->plic), UART0_IRQ), 399193,
Enable compile support for VGA devices. This allows the user to conenct a display by adding '-device bochs-display -display sdl' to their command line argument. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> --- default-configs/riscv32-softmmu.mak | 3 +++ default-configs/riscv64-softmmu.mak | 3 +++ hw/riscv/virt.c | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-)