Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/acpi Redistributors with virtual LPI support ha...



details:   https://anonhg.NetBSD.org/src/rev/22edf90f270b
branches:  trunk
changeset: 454249:22edf90f270b
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Sep 12 09:02:36 2019 +0000

description:
Redistributors with virtual LPI support have larger register spaces. Take
this into consideration when scanning LPI regions.

diffstat:

 sys/arch/arm/acpi/gicv3_acpi.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 1bcc5a20fae2 -r 22edf90f270b sys/arch/arm/acpi/gicv3_acpi.c
--- a/sys/arch/arm/acpi/gicv3_acpi.c    Thu Sep 12 07:38:19 2019 +0000
+++ b/sys/arch/arm/acpi/gicv3_acpi.c    Thu Sep 12 09:02:36 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gicv3_acpi.c,v 1.3 2018/11/12 12:56:05 jmcneill Exp $ */
+/* $NetBSD: gicv3_acpi.c,v 1.4 2019/09/12 09:02:36 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 #define        _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gicv3_acpi.c,v 1.3 2018/11/12 12:56:05 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gicv3_acpi.c,v 1.4 2019/09/12 09:02:36 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -200,6 +200,10 @@
                const uint32_t typer = bus_space_read_4(sc->sc_gic.sc_bst, sc->sc_gic.sc_bsh_r[redist], GICR_TYPER);
                if (typer & GICR_TYPER_Last)
                        break;
+
+               /* If the redistributor supports virtual LPIs, skip the VLPI register region */
+               if (typer & GICR_TYPER_VLPIS)
+                       off += GICR_SIZE;
        }
 
        return AE_OK;



Home | Main Index | Thread Index | Old Index