From patchwork Mon Mar 12 08:16:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 131369 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp456533ljb; Mon, 12 Mar 2018 01:17:10 -0700 (PDT) X-Google-Smtp-Source: AG47ELu/fEo6OqJmwD6SfSiChqoUVKOMpSzgVucgo8S25FojE43usQLMZpQOHB6L/zlukiTs/q4l X-Received: by 2002:a17:902:6ecd:: with SMTP id l13-v6mr7283918pln.374.1520842630487; Mon, 12 Mar 2018 01:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520842630; cv=none; d=google.com; s=arc-20160816; b=jz1A3E5pow8aPzCHTNF9GR50mnVxXWXjMeI1r1TLIGaVRXOYrwcG0HyeQVl6XXHnT7 AD94RA0H4R00RJXUh5QNHCSbhXWtTHUq6brtI5VHrm4DbHkBjTPyH3XePh+q/GZGJ61M VqCI6qqznDGDJECVZykNyng+EB2lWYbzKibKwrsP69fydrQyG1FrtEeTJUpr3/U/nYMw LKDF0/ry6x10X2OUkzjRSlSWwFffTOu7zZTzwTNFpA0n+WSPHtO6DDaM9pbp4R83OdUK QDxXzWRwV+s2NiYQ/j3WnjuC8YlycswX6ECXEUI1/xhgwpKvFfOo2Mv74+ggozP10QNW B0YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=3MnI+wEXHXilJWVImVbkUzbp37NxH0K+3LvaomwsYnA=; b=qFJfhYelmNCPC+twSQfvChWBmFV7WMr8OU0cXtayAWtKGH8Z1hxDU56Vgb06v3iHR8 F8M2sUI90atwhpO3ErCapgnNmwHf8DT1xQBRwe2ILYZImop7hPy411xvaNVRYXimqmbM vDA7vqoEkYFHIP2QcpfuInKFZgvKU7Z/79hggdNnhAs7o0AodzhO6qaui5E7kR32uxV1 mN+9SBsmBCX8+D2bkzPPhb3NBdJZRJ7M0pIE9DpWSoS5/ELEBrZ3OgEGKDa519U618do 6kXinnNzCcI0xC1wrSryx9NwNaiU8bcdj40tYlWKDekQCsokHeUV9qTWfUYzHsfJYvpd U9wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DW/6udmd; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id t74si5408880pfk.160.2018.03.12.01.17.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Mar 2018 01:17:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DW/6udmd; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 739FF22603B01; Mon, 12 Mar 2018 01:10:49 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c00::244; helo=mail-pf0-x244.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 877DA223DB100 for ; Mon, 12 Mar 2018 01:10:47 -0700 (PDT) Received: by mail-pf0-x244.google.com with SMTP id j2so4021903pff.10 for ; Mon, 12 Mar 2018 01:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=s2ygcDtyjRulqW3GZCvVM3WJgh9okvTFb4aJuQZhkR8=; b=DW/6udmd4RCkM60Q3zCLlDDhpv+UPK1rh+6O38EV3tbZ6DTt6MKEoxFlV+FHiIGrHd KYmDMDjdiVevXgdvVlrV5BbY0Z6h7/f4sl8KaWdmJF42tuMmK6HVlvzqlPPXJ05ozcSh 4BZHPtzxxsx3mAqxtACIpTLlMD8tJq7TBaRYI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=s2ygcDtyjRulqW3GZCvVM3WJgh9okvTFb4aJuQZhkR8=; b=fJ7NJnwQEBMGRtEujb/1FSs96fLcPso2WYwIdAj5ZbNNxHK4eIT03ns3wy91aLPcNX S28Mvw/WicdpBicx9YVAMFk0u4/mi+dVmMA+opRliUS+inIPhrDZ/gLyliNPrGe3bKRT SNI3TqVWPWt/XofIFmnpCRk7pnhhurkYinFoAJHM/6DvpikhtPk5JKCot1ZIh1A1ETVC sDOZixNoHJzUketZgdnlGjxKRe+6FPsAbkaLQxl/THLan3aPpS9kShhV5f5dQRU4v6YE CmZQMmcxYsGEVctgtQWIHf6PruYs7CvVKtErtiAcecn6/h1AVl/KI6BBqPoGPR+WFoED FuiQ== X-Gm-Message-State: AElRT7G9yi4WYgHS5RRAHcVA1yimd0KA8lu0p3bxc8vfm/f6C/tX8Q5f hiw3+xOsVBrC9DTuJIm3sgJFAe+ULY8= X-Received: by 10.99.121.5 with SMTP id u5mr5923413pgc.444.1520842627642; Mon, 12 Mar 2018 01:17:07 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.76]) by smtp.gmail.com with ESMTPSA id q81sm16560512pfl.188.2018.03.12.01.17.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Mar 2018 01:17:07 -0700 (PDT) From: Heyi Guo To: edk2-devel@lists.01.org Date: Mon, 12 Mar 2018 16:16:17 +0800 Message-Id: <1520842578-95453-3-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520842578-95453-1-git-send-email-heyi.guo@linaro.org> References: <1520842578-95453-1-git-send-email-heyi.guo@linaro.org> Subject: [edk2] [edk2-platforms PATCH v2 2/3] Hisilicon: disable GICv3 legacy mode X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Haojian Zhuang , Heyi Guo , Leif Lindholm , gongchengya , Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: gongchengya Hi1616 GIC does not fully support GICv2 legacy mode, and SBSA watchdog interrupts 400 and 496 cannot be signaled to CPU, so we switch to pure GICv3 mode. For other Hisilicon platforms, we suppose they don't need V2 legacy mode either if they have GICv3. D03 also works for this patch. If the platforms only have GICv2, this change will have no impact on them. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: gongchengya Signed-off-by: Heyi Guo Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Haojian Zhuang --- Silicon/Hisilicon/Hisilicon.dsc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Silicon/Hisilicon/Hisilicon.dsc.inc b/Silicon/Hisilicon/Hisilicon.dsc.inc index b196322a20e2..f8d5f0b270b3 100644 --- a/Silicon/Hisilicon/Hisilicon.dsc.inc +++ b/Silicon/Hisilicon/Hisilicon.dsc.inc @@ -249,7 +249,7 @@ [PcdsFeatureFlag.common] gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE - gArmTokenSpaceGuid.PcdArmGicV3WithV2Legacy|TRUE + gArmTokenSpaceGuid.PcdArmGicV3WithV2Legacy|FALSE [PcdsFixedAtBuild.common] gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|44