Message ID | 20210302100536.40376-1-Zhiqiang.Hou@nxp.com |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=YaxwXPHq; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DqXfy2kYCz9s1l for <incoming@patchwork.ozlabs.org>; Tue, 2 Mar 2021 20:59:54 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1FDE7824A4; Tue, 2 Mar 2021 10:59:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="YaxwXPHq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2CB0B82047; Tue, 2 Mar 2021 10:58:32 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on062d.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::62d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 20BCA80036 for <u-boot@lists.denx.de>; Tue, 2 Mar 2021 10:58:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=zhiqiang.hou@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RZp1haslcaeDl7f//jbk65y5pouu7tx0jz7WA2w/jG5HiRj2w3maUYMfhA/y09p5/JZUSL6AiKDfpwazLusrqvuni75FtzVAy9m6IgfQcn6TLwjNdqbOrvc6rOH6iZiW3oIh69C9bWuwiM+74lF890Z7hrscZyoI8Q0v8jlxUZnKC+N2ngIBvgmSh+HV1DBeOpw9BdJv8RN0U2lLUvTaUK8lgf+pIWxyf9SWftwN7Awba0Si7Fz/uYqOmutUf4lkMyLtsdMQf5DeS+1U9es1IMABNsCb7t+V/qzSNSiFkNqNDh6sCldjcUSYD0bWwFq81DQkbbKBMH4qcwP8HhdLRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sYWXtgIzZMmS8z2FMabboymy1jFLH+arMsc2tJRoK40=; b=NxHNxLpVO2Ex3RaV4vsFjeSgIxpF3G4MJiqWJEb8upZMOGrFsZ3i6nsFjWrZ6Seim8pilQe9Y6xCTvG9S2ezZCkuLaQqQP90+BdcUF8Ne4+oilKSdpUJVeyf2YYr8XTWp6tAkG7wFX+kY6AsC+sbYNQlOtTiAl/vDD3agg0obgTy2/NSXo3OSYpBHtyc71BK0wn45JNtn42y33VAINlLLm8fIEqxAWQ4jrYO/rEexaT9n0vXVWUWXGkTobyPFBMGgfMjkz09WiDoRDHPVf4KcLir+zGLi4QgMTidgRe8yH+PrpYARRJoBvajYDFRA+IKRUnRU/k4GJoCzrGoxZncTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sYWXtgIzZMmS8z2FMabboymy1jFLH+arMsc2tJRoK40=; b=YaxwXPHqIT7fq/YrkwUPNyXWUKjF9eu+AmEkH7yivk34lvLlT8qnRzPZ+Oegk2Bm9RfvnSobzqj2xexMLYSuFiCrN13akqi8jIt4enZJhfAls7KGb2YwDm0CZoEo4XyJETP5QmXBBxumE6xBBOxMamr0BTOWts67TYkXGiobUs0= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=nxp.com; Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) by HE1PR0401MB2650.eurprd04.prod.outlook.com (2603:10a6:3:82::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.23; Tue, 2 Mar 2021 09:58:20 +0000 Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::d9e4:fae5:834f:93e8]) by HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::d9e4:fae5:834f:93e8%7]) with mapi id 15.20.3890.029; Tue, 2 Mar 2021 09:58:20 +0000 From: Zhiqiang Hou <Zhiqiang.Hou@nxp.com> To: u-boot@lists.denx.de Cc: rayagonda.kokatanur@broadcom.com, sjg@chromium.org, priyanka.jain@nxp.com, Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Subject: [PATCH] arm64: gic-v3-its: Clear the Pending talbe before enabling LPIs Date: Tue, 2 Mar 2021 18:05:36 +0800 Message-Id: <20210302100536.40376-1-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-Originating-IP: [119.31.174.73] X-ClientProxiedBy: HK2PR06CA0015.apcprd06.prod.outlook.com (2603:1096:202:2e::27) To HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.73) by HK2PR06CA0015.apcprd06.prod.outlook.com (2603:1096:202:2e::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.20 via Frontend Transport; Tue, 2 Mar 2021 09:58:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ae591fa9-9838-4d3c-8392-08d8dd61b5a5 X-MS-TrafficTypeDiagnostic: HE1PR0401MB2650: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <HE1PR0401MB26504AB7B89FDAEC80B2254D84999@HE1PR0401MB2650.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h+Xk1+1QNpFQcrq+ez3hj6EqJjVNTzK5pJAkrptyMeJFLN8JgE6nT8eC+6B8iA3y6WVI4U0yeVu+a5/Q/bv4njphNv53z4uPQIksE9PuAGn44vuqVNciuy7B1UE+uuJdlukId5405QYUXSthndS9OUoHqJOm1KgU4tO83aYtOGgZAKb0hAW+fU+LUsz+H7RuGAwrnqhPkuQ3lnv/50iNxMCp1WJOLR7phxd/yePjRKjEzq9eFjQDyeFVLzCmka7J+VSqwbm22yWIJAzQ3xLdGpDm5jxK6OkAQqp9v7+8MpPYFN5dLUo87zTUPKTwfq2lfptWtWkwzfgeebTfncMX4mdT4oukbOGI9VOhZA58ISMHqGcH6dMWNPBgnw9kAZG/SXi6/2PLnXoIf+NiYflHguQHTPzXLyQRlPIFpfhgex8a8daKvMRNTtL9NIyjASBbMUDiyitdh9eY30Vs71llk+b8IDRyXTrD5w4yMm97FpZm19QWSB3r63zpKKnqgrnjGDEvTvIQr080Xq6JN4gixGCb8VWNIdIX4+glL+OiMju3+O161Artk1no26Gx71NSoxJqF+P0uQZIAIUrhZyqIA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0402MB3371.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(39860400002)(396003)(346002)(376002)(136003)(1076003)(83380400001)(956004)(478600001)(26005)(66476007)(6506007)(2616005)(6666004)(8936002)(8676002)(36756003)(66946007)(186003)(69590400012)(316002)(6486002)(66556008)(52116002)(2906002)(86362001)(16526019)(5660300002)(6512007)(4326008)(6916009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: emVO/Y1Q2mrVizerKD0ZQXpc8XE2/fgtKgkJcig6ZBZhLxBRa/b+2tWyI9TEXpnwW0pNK/9UrQn4k52yeyNYlYeU0vavWNBnN8tatI5LojBCni5a2b7z41xTkPV25bTjSOtrXWuncXVvmubJJo7pCt7ARL2y1uMLtWMGsgQ6pfI95GvJ9u/080QMrKndIqKMeaTIH1LTpMcPZmRtHr1ttrWJ67n36jcPQh9j6iqRMheUm3agzfrDwBQzuc5p0rCF9WdQakiyckPCMLx9Hku2PO68rArft19XL9I+m35L6zWBHCCjVGzi1F00lZScNdeHrv6lOmXetbavgSIDs5BXRApWxerRoRswexQN/XvHvYN/H6SjuvCIjsuOIltXbkT5yrxm3U18kLRQbgdCoyfs2Z+FUJBe9FuDyC6kgI1BwIgkqB106rqJAgvLsyMMyANsNZzmfHAUBij6IHS8FWgNL/jd2lVKVDIGw0IAJKeHByiFzBym2JqHc8NAjadbNL12ZDyeLkVR2TfIIZZX8oY7Rm1rBLSmBQgbF+Bu8marL428k8HvUSZrD4j47x+0cyBcmCqqiTPoqQtm0pSJvazN/+sR86HE+CXc/zOfI4/lmzJeyC8l74DA6goBykaIH9SobclxjiUA7T70dpZWWc3Tbin9qCXZzmW1ytNbmXe+nOh1sap6BdjD45JFH5rf7tlYfwygCuNLinVgbkLuCngQ9AX17s5xN5dOmYpBbe9OfsBEa3NmbtvivTwyhX7/uxnz2ROWO2SohBBH8fH3AI6HIDR3Pf1VH2pvRNWDfKLAGH4+Dz5F0AsLvJlLH/wxOnG6v0N2GE9rK0pBEWzpkG8eI+HeHmlboQnHPdWmFZfjQQsuXjSjKmqGhMwzOa08pN1/K5Eu4HZy9cGm1EQFpx90amJykEJGwViScyRu7Uu4rnmV0ameaZeaas/KjTwxPD1cjz77uzv9Uo2rhsrubRV2e3qrWV1feR0mXeBFB3ucIh4Nys06XV29CkUPcWdNFou6NxB0ENFVcV56NPjL5pMKaFqrbDtbPiY3q1wnVxYvfK/CgQQDJXWLLdzkDVM5szmd9GAcXOtvo6ETR2q4jdYobmardVnQKby6JhiwwzMuBc9DAIbjoWlsIrqYiiFJpAG3qu7br1sLAqN8qguCFUrDbdz/AuLKO0oeFkRESGoBmGyt6VR//M8TWRGdZXWldSYFEQLRT8moeuB4DhOWp9ppag1OKeLDdO63pv6z1BlPiGXT27t0RlLjPjXBx4j3OZ6lCD2R3Pbg2tznGCAsHIXsaiqyOGUiUP8F5F0iuoPBRCpXvJecEbE09XAbVgwyvShH X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae591fa9-9838-4d3c-8392-08d8dd61b5a5 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB3371.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2021 09:58:20.5392 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yK2UnYNW3c/Dj7rVRLezhiSUnpCOeY44bHmzWSLr0if7lleBt4Ue1v3NVYcbN+/2qxvuMcGPFf1+jsICTKcgCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2650 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
arm64: gic-v3-its: Clear the Pending talbe before enabling LPIs
|
expand
|
diff --git a/arch/arm/lib/gic-v3-its.c b/arch/arm/lib/gic-v3-its.c index f5a921b3d1..5620e67ce3 100644 --- a/arch/arm/lib/gic-v3-its.c +++ b/arch/arm/lib/gic-v3-its.c @@ -3,6 +3,7 @@ * Copyright 2019 Broadcom. */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <regmap.h> #include <syscon.h> @@ -161,6 +162,8 @@ int gic_lpi_tables_init(void) } redist_lpi_base = priv.lpi_base + LPI_PROPBASE_SZ; + memset((void *)redist_lpi_base, 0, priv.num_redist * LPI_PENDBASE_SZ); + flush_cache(redist_lpi_base, priv.num_redist * LPI_PENDBASE_SZ); pend_base = priv.gicr_base + GICR_PENDBASER; for (i = 0; i < priv.num_redist; i++) { @@ -168,7 +171,8 @@ int gic_lpi_tables_init(void) val = ((redist_lpi_base + (i * LPI_PENDBASE_SZ)) | GICR_PENDBASER_INNERSHAREABLE | - GICR_PENDBASER_RAWAWB); + GICR_PENDBASER_RAWAWB | + GICR_PENDBASER_PTZ); writeq(val, (uintptr_t)(pend_base + offset)); tmp = readq((uintptr_t)(pend_base + offset));