From nobody Sun May 19 11:37:22 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=arm.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1654850083986342.21363106123647; Fri, 10 Jun 2022 01:34:43 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.345958.571685 (Exim 4.92) (envelope-from ) id 1nza60-0001ZI-Is; Fri, 10 Jun 2022 08:34:20 +0000 Received: by outflank-mailman (output) from mailman id 345958.571685; Fri, 10 Jun 2022 08:34:20 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nza60-0001Z7-Fr; Fri, 10 Jun 2022 08:34:20 +0000 Received: by outflank-mailman (input) for mailman id 345958; Fri, 10 Jun 2022 08:34:19 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nza5z-0001Ib-5j for xen-devel@lists.xenproject.org; Fri, 10 Jun 2022 08:34:19 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id 1dee1c74-e898-11ec-bd2c-47488cf2e6aa; Fri, 10 Jun 2022 10:34:17 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4D6B41576; Fri, 10 Jun 2022 01:34:17 -0700 (PDT) Received: from e129167.arm.com (unknown [10.57.4.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B28C03F73B; Fri, 10 Jun 2022 01:34:15 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 1dee1c74-e898-11ec-bd2c-47488cf2e6aa From: Michal Orzel To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk Subject: [PATCH 1/3] xen/arm: traps: Fix reference to invalid erratum ID Date: Fri, 10 Jun 2022 10:33:56 +0200 Message-Id: <20220610083358.101412-2-michal.orzel@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220610083358.101412-1-michal.orzel@arm.com> References: <20220610083358.101412-1-michal.orzel@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1654850086174100003 Content-Type: text/plain; charset="utf-8" The correct erratum ID should be 834220. Fixes: 0a7ba2936457 ("xen/arm: arm64: Add Cortex-A57 erratum 834220 workaro= und") Signed-off-by: Michal Orzel Acked-by: Julien Grall --- xen/arch/arm/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 43f30747cf..e989e742fd 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -1856,7 +1856,7 @@ static inline bool hpfar_is_valid(bool s1ptw, uint8_t= fsc) * 1. the stage 2 fault happen during a stage 1 page table walk * (the bit ESR_EL2.S1PTW is set) * 2. the fault was due to a translation fault and the processor - * does not carry erratum #8342220 + * does not carry erratum #834220 * * Note that technically HPFAR is valid for other cases, but they * are currently not supported by Xen. --=20 2.25.1 From nobody Sun May 19 11:37:22 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=arm.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1654850082894417.89825367715025; Fri, 10 Jun 2022 01:34:42 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.345959.571695 (Exim 4.92) (envelope-from ) id 1nza61-0001q1-SN; Fri, 10 Jun 2022 08:34:21 +0000 Received: by outflank-mailman (output) from mailman id 345959.571695; Fri, 10 Jun 2022 08:34:21 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nza61-0001ps-OP; Fri, 10 Jun 2022 08:34:21 +0000 Received: by outflank-mailman (input) for mailman id 345959; Fri, 10 Jun 2022 08:34:20 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nza60-0001Ib-5o for xen-devel@lists.xenproject.org; Fri, 10 Jun 2022 08:34:20 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id 1ed5fd43-e898-11ec-bd2c-47488cf2e6aa; Fri, 10 Jun 2022 10:34:19 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DD28115BF; Fri, 10 Jun 2022 01:34:18 -0700 (PDT) Received: from e129167.arm.com (unknown [10.57.4.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 95D1D3F73B; Fri, 10 Jun 2022 01:34:17 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 1ed5fd43-e898-11ec-bd2c-47488cf2e6aa From: Michal Orzel To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk Subject: [PATCH 2/3] xen/arm: gicv2: Rename gicv2_map_hwdown_extra_mappings Date: Fri, 10 Jun 2022 10:33:57 +0200 Message-Id: <20220610083358.101412-3-michal.orzel@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220610083358.101412-1-michal.orzel@arm.com> References: <20220610083358.101412-1-michal.orzel@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1654850084464100001 Content-Type: text/plain; charset="utf-8" ... to gicv2_map_hwdom_extra_mappings as the former clearly contains a typo. Fixes: 86b93e00c0b6 ("xen/arm: gicv2: Export GICv2m register frames to Dom0= by device tree") Signed-off-by: Michal Orzel Acked-by; Julien Grall --- xen/arch/arm/gic-v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/gic-v2.c b/xen/arch/arm/gic-v2.c index 2cc2f6bc18..bd773bcc67 100644 --- a/xen/arch/arm/gic-v2.c +++ b/xen/arch/arm/gic-v2.c @@ -679,7 +679,7 @@ static void gicv2_irq_set_affinity(struct irq_desc *des= c, const cpumask_t *cpu_m spin_unlock(&gicv2.lock); } =20 -static int gicv2_map_hwdown_extra_mappings(struct domain *d) +static int gicv2_map_hwdom_extra_mappings(struct domain *d) { const struct v2m_data *v2m_data; =20 @@ -1352,7 +1352,7 @@ const static struct gic_hw_operations gicv2_ops =3D { .make_hwdom_madt =3D gicv2_make_hwdom_madt, .get_hwdom_extra_madt_size =3D gicv2_get_hwdom_extra_madt_size, #endif - .map_hwdom_extra_mappings =3D gicv2_map_hwdown_extra_mappings, + .map_hwdom_extra_mappings =3D gicv2_map_hwdom_extra_mappings, .iomem_deny_access =3D gicv2_iomem_deny_access, .do_LPI =3D gicv2_do_LPI, }; --=20 2.25.1 From nobody Sun May 19 11:37:22 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=arm.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1654850086766685.8589129471496; Fri, 10 Jun 2022 01:34:46 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.345961.571707 (Exim 4.92) (envelope-from ) id 1nza67-0002Ec-5f; Fri, 10 Jun 2022 08:34:27 +0000 Received: by outflank-mailman (output) from mailman id 345961.571707; Fri, 10 Jun 2022 08:34:27 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nza67-0002EU-1y; Fri, 10 Jun 2022 08:34:27 +0000 Received: by outflank-mailman (input) for mailman id 345961; Fri, 10 Jun 2022 08:34:25 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nza65-0000uL-7j for xen-devel@lists.xenproject.org; Fri, 10 Jun 2022 08:34:25 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id 131201b3-e898-11ec-8179-c7c2a468b362; Fri, 10 Jun 2022 10:33:59 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4743212FC; Fri, 10 Jun 2022 01:34:21 -0700 (PDT) Received: from e129167.arm.com (unknown [10.57.4.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 251CD3F73B; Fri, 10 Jun 2022 01:34:18 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 131201b3-e898-11ec-8179-c7c2a468b362 From: Michal Orzel To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH 3/3] xen/console: Fix incorrect format tags for struct tm members Date: Fri, 10 Jun 2022 10:33:58 +0200 Message-Id: <20220610083358.101412-4-michal.orzel@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220610083358.101412-1-michal.orzel@arm.com> References: <20220610083358.101412-1-michal.orzel@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1654850088389100001 Content-Type: text/plain; charset="utf-8" All the members of struct tm are defined as integers but the format tags used in console driver for snprintf wrongly expect unsigned values. Fix the tags to expect integers. Signed-off-by: Michal Orzel Reviewed-by: Stefano Stabellini --- xen/drivers/char/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index f9937c5134..beb44fe06f 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -844,7 +844,7 @@ static void printk_start_of_line(const char *prefix) /* nothing */; else if ( mode =3D=3D TSM_DATE ) { - snprintf(tstr, sizeof(tstr), "[%04u-%02u-%02u %02u:%02u:%02u] = ", + snprintf(tstr, sizeof(tstr), "[%04d-%02d-%02d %02d:%02d:%02d] = ", 1900 + tm.tm_year, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); break; @@ -852,7 +852,7 @@ static void printk_start_of_line(const char *prefix) else { snprintf(tstr, sizeof(tstr), - "[%04u-%02u-%02u %02u:%02u:%02u.%03"PRIu64"] ", + "[%04d-%02d-%02d %02d:%02d:%02d.%03"PRIu64"] ", 1900 + tm.tm_year, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, nsec / 1000000); break; --=20 2.25.1