Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1n7BJ6-0006Fp-Fh for mharc-qemu-riscv@gnu.org; Tue, 11 Jan 2022 02:11:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7BJ2-0006Dr-68 for qemu-riscv@nongnu.org; Tue, 11 Jan 2022 02:10:57 -0500 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:55785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7BIy-00082c-3i for qemu-riscv@nongnu.org; Tue, 11 Jan 2022 02:10:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1641885052; x=1673421052; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KbA4NsaFTKCS2zH6cIeIsGpzB1o7JYDGM1FCOlrMKVw=; b=Ab6PlUiucxL+/86qdOMqvk8PB6niSkTCyMybfeLpY/KH+5jnRmCRMjB6 cFIA6Ek2lShYc7VekrWLPggfpqhVOCTzNJKvOXFHV8S4njw14O1H5xirq JWfUAzPums9IQwMq4zC6hgIlxNzvR2lqB5lY6cldr95rphO1ADsBfgRMV gPd86tqe2SBxUtTpDjWnIvCGtqzF/anKuP/HNUMEt5ubiI0uF+x0LxSZ7 QwykpGdyu5isR6zXC9HpsyySovKhji5v2RlzI2OdBZVXrN3PBpVV1MFUJ bsoodWALruEE6rxgNtj4OP6bJe1iXGSgNKI5rN3k21ognYI1ql0LE9hTG w==; X-IronPort-AV: E=Sophos;i="5.88,279,1635177600"; d="scan'208";a="191178598" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 11 Jan 2022 15:10:49 +0800 IronPort-SDR: wTAaWCIYD2xy35eWKMpr3R5kunO6jWI6EHsX0F0HSyXX7/cgSnnPeh3tYylhDSnmyx7tl2gKV8 IDq6SYD4rniyl6PI1WIxckg7mfLc/M9A0e7aT8f94AxIM4bbGz5fjhCwgI3NAUMI+27+xaXBHW Ec9+Npteo09DrZuC5GqXtkJERxxGN5UFgXNrj1eXGCdXTNxtOi4dvB5oUYADVAxLBhzU70Jg4V HswCielMsikcYvVGNaZUmaokQulC28BXAaxAcjtOnCj12+mKrb/tUQlB39HPCAvJPo8Sp4f8tT bdpjWVcjnQmMQ/0JR4jBXy/t Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2022 22:43:12 -0800 IronPort-SDR: UWJAe00cVlOx1lncr/70RDphec1HEjhq7G5fDziHTeH/Lu2SMEegJaLBi8nuowZPn7OM/FkLYY Y7Ux2XtymsMz7hknPcKRVAWl7qgG7Ke2qd2ZLu9u8nI/AmxD84EhyGRvYFhW6rXtsM/OvuEPZb ymC1SNYx0Vdg0x59zx16UWpohFW/yRnpNxYA9dw21/sm+nsb6JLvxSp9Z63GChyD/VdNq7m06Y uLDX55uvTrnP+Odro0t23ZpxvqsUZBotAAhOIJFdwvQnRsGzAH3rJ5z3oGlHlGjkRcqBNoPpJI YZk= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2022 23:10:49 -0800 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4JY20R6mg6z1VSkj for ; Mon, 10 Jan 2022 23:10:47 -0800 (PST) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:mime-version :x-mailer:message-id:date:subject:to:from; s=dkim; t=1641885046; x=1644477047; bh=KbA4NsaFTKCS2zH6cIeIsGpzB1o7JYDGM1FCOlrMKVw=; b= eaoILHEcYx02Hmp8+gCo50FViQE88jzhbUBBUw2xqr7IVhUfabxdzdhvrLg7dF1W N9QEARnNsW3/jyX0mnmmTNtnC8C5i8qtKwsYqFK9inF9gMuNbaSeb9qNRX/UAKRh gbQHnqky68B23EfFesJVuBl5/BGxc1L0TaOJ+bZR/lU6yBOSFhtrJIC/Q2KarYbR ZwdbHcxa6ouiUbFZ9la7NH9pM5Ug70KofUsjHVFYHVxMz4Ss/4lal0RNbc2wgrZu JxJEoktwPqWGqkKQWF66v3qEmBYLk3CabK82FYtJO9TP5JhHdo6UK68YsBsQ7Scx UScVrbf1FJxrmjahtUdnLQ== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ayP0aw2Qp4ek for ; Mon, 10 Jan 2022 23:10:46 -0800 (PST) Received: from toolbox.wdc.com (unknown [10.225.165.75]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4JY20L2CNBz1VSkV; Mon, 10 Jan 2022 23:10:41 -0800 (PST) From: Alistair Francis To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: bmeng.cn@gmail.com, palmer@dabbelt.com, alistair.francis@wdc.com, alistair23@gmail.com, wilfred.mallawa@wdc.com Subject: [PATCH v2 1/2] riscv: opentitan: fixup plic stride len Date: Tue, 11 Jan 2022 17:10:24 +1000 Message-Id: <20220111071025.4169189-1-alistair.francis@opensource.wdc.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=216.71.154.45; envelope-from=prvs=003f2f281=alistair.francis@opensource.wdc.com; helo=esa6.hgst.iphmx.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2022 07:10:59 -0000 From: Wilfred Mallawa The following change was made to rectify incorrectly set stride length on the PLIC [1]. Where it should be 32bit and not 24bit (0x18). This was discovered whilst attempting to fix a bug where a timer_interrupt was not serviced on TockOS-OpenTitan. [1] https://docs.opentitan.org/hw/top_earlgrey/ip_autogen/rv_plic/doc/ Signed-off-by: Wilfred Mallawa Reviewed-by: Alistair Francis Tested-by: Alistair Francis Reviewed-by: Bin Meng --- hw/riscv/opentitan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c index c531450b9f..5144845567 100644 --- a/hw/riscv/opentitan.c +++ b/hw/riscv/opentitan.c @@ -160,7 +160,7 @@ static void lowrisc_ibex_soc_realize(DeviceState *dev= _soc, Error **errp) qdev_prop_set_uint32(DEVICE(&s->plic), "priority-base", 0x00); qdev_prop_set_uint32(DEVICE(&s->plic), "pending-base", 0x1000); qdev_prop_set_uint32(DEVICE(&s->plic), "enable-base", 0x2000); - qdev_prop_set_uint32(DEVICE(&s->plic), "enable-stride", 0x18); + qdev_prop_set_uint32(DEVICE(&s->plic), "enable-stride", 32); qdev_prop_set_uint32(DEVICE(&s->plic), "context-base", 0x200000); qdev_prop_set_uint32(DEVICE(&s->plic), "context-stride", 8); qdev_prop_set_uint32(DEVICE(&s->plic), "aperture-size", memmap[IBEX_= DEV_PLIC].size); --=20 2.34.1