From patchwork Mon Mar 12 08:16:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 131368 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp456370ljb; Mon, 12 Mar 2018 01:16:56 -0700 (PDT) X-Google-Smtp-Source: AG47ELvKarlkzrQO/8XB8McE46fc1gixqj+hTOrE7b/a0yyuRLNbE6N1qjgUO/OBIwwMwc6UapCb X-Received: by 10.98.65.72 with SMTP id o69mr7111658pfa.97.1520842616029; Mon, 12 Mar 2018 01:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520842616; cv=none; d=google.com; s=arc-20160816; b=zorSWOqDRphS9djFD1+jTB1fHVtJFLTR+9qqIZ4FCF3dExE6JnbnE+ryyYUeqQnOxJ Y7/44sZzZBjSjIFsusF7GRHTfpd2ogHRgSKHAdpe0FiPo06e4ctq0y4ge24OfibZ27O5 XacnaR37uASvUAh7yFODYqhY+gJylEg5pxRr7eJ+YNApL2F811Qpd1dO6jjXg781VoEh 0n6V6F4AqUnRRnIf9HHX7L7/8+OwWNazG6jBXgDObyLOFRi1H3FSK/YS4dVat2f6nGCp sdXGp6Hmu34lXdKBeDEzEOpKDV45mFKBcVZnXxoS8B3NuvFGxVEtGQ19XhIOx64+OpUl LeqA== 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=5Fplo8ktY+fXjLAhxXTkJHwdh15uaGPKHiL+LhZJmzk=; b=nNG5oQt+h6Dl/56IKGpaR3k7JN7Lrbso71ccDhcyFPwVG3Dc7oMeawgCDSalnCnc/5 y8dRn+vAfQYimWJdroLJQBVJ6MLougF2kO2IpxwpfqI2oWaf5SDC6oaYd+f+tS4ByAsV DJP35w69jPQ3y+ijGwpETdmfA/o2fZqHgnoZL6RKYL+jz0fqYniFQY2onfTQZPqoP2XS 781hk6fv23uIZTx8HX09aDjImkIarfqmViuzRhkSNIV8kGrN4f7rwgiaudB2wj0hIW0I OTMTYjyx5DEk8Ovq82XjswnLychzNVwax/bG6O665QhulDlR+PtdVpXp3v0QeKb8UXU0 8JOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eXlO0qWI; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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. [198.145.21.10]) by mx.google.com with ESMTPS id f9-v6si5708473pli.445.2018.03.12.01.16.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Mar 2018 01:16:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eXlO0qWI; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 0501122603B07; Mon, 12 Mar 2018 01:10:35 -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:c01::242; helo=mail-pl0-x242.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl0-x242.google.com (mail-pl0-x242.google.com [IPv6:2607:f8b0:400e:c01::242]) (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 47711223DB100 for ; Mon, 12 Mar 2018 01:10:34 -0700 (PDT) Received: by mail-pl0-x242.google.com with SMTP id 61-v6so8915671plf.3 for ; Mon, 12 Mar 2018 01:16:54 -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=Sb6P1Gi031jyLtilPjVSVctdhCNfte1EYLGSRBhLJcw=; b=eXlO0qWIFcYShtwxEoXbffEKPIy9Vl2iMoNUBMbNlmgBk44mTBWAsoGUPDEMFdh5z3 e95GnkrwDMPYA7tbrAT0AN/XdwmpgSius16aRbWKvZuPZNMljj9x7kFHhetO8wsRI0uA oy2yZaPEwazv+PnWJ63Kr70kbe9ykYEy0PTtE= 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=Sb6P1Gi031jyLtilPjVSVctdhCNfte1EYLGSRBhLJcw=; b=OIixiIMk61414MtKvet2rS3jg15J/A+2mcPKNJTOesh0bCHAWzL4Z8yhfzl9CHFUkY yz9+lrCTxnvKhjXZv3nyCrj73bJRiROiJOXnbqUvRbNWZMZqjeP8fupEKez5QACQOC8M 00U8YWpnq2aK0ZdCvD6LEClSgtMBXKqp9f5UsfMSTpgcIDcHIuT7AeRl5AJPJQFf1M5H EWVDjpvDGt58e5TvsX8STAVk2vpNPHxYo1IK8CHJMO7qpVX40sSU2F1ccejLDTF7m/T9 xA+Pzjt1eBK/fGJ+js7YkZGl8uBnyiYrSts1iv4RLxjDCVq7ojUi+tGy7z7w/yPqn9Mx QwJA== X-Gm-Message-State: AElRT7F+K8PQxS6eFvBcjs3FMe9/vWf/hzceZd6YbZG4COQ8QrN9e9bj f/xwNuneheNVM4eNm19uV7Ny21YUrVg= X-Received: by 2002:a17:902:4103:: with SMTP id e3-v6mr7356811pld.172.1520842614290; Mon, 12 Mar 2018 01:16:54 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.76]) by smtp.gmail.com with ESMTPSA id q81sm16560512pfl.188.2018.03.12.01.16.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Mar 2018 01:16:53 -0700 (PDT) From: Heyi Guo To: edk2-devel@lists.01.org Date: Mon, 12 Mar 2018 16:16:16 +0800 Message-Id: <1520842578-95453-2-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 1/3] Hisilicon/D0x: Set ACPI GTDT always-on flag 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: Heyi Guo , Leif Lindholm , Jason Zhang , Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: Jason Zhang Timer is always working on Hisilicon D0x, even system enters WFI/WFE, and there is no other low power status, so we set "always-on" flag in ACPI GTDT. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jason Zhang Signed-off-by: Heyi Guo Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Graeme Gregory --- Silicon/Hisilicon/Hi1610/Hi1610AcpiTables/Gtdt.aslc | 3 ++- Silicon/Hisilicon/Hi1616/D05AcpiTables/Gtdt.aslc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) -- 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/Hi1610/Hi1610AcpiTables/Gtdt.aslc b/Silicon/Hisilicon/Hi1610/Hi1610AcpiTables/Gtdt.aslc index 4c1050ae83b9..3feb99e88c88 100644 --- a/Silicon/Hisilicon/Hi1610/Hi1610AcpiTables/Gtdt.aslc +++ b/Silicon/Hisilicon/Hi1610/Hi1610AcpiTables/Gtdt.aslc @@ -40,8 +40,9 @@ #define GTDT_TIMER_LEVEL_TRIGGERED 0 #define GTDT_TIMER_ACTIVE_LOW EFI_ACPI_6_1_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY #define GTDT_TIMER_ACTIVE_HIGH 0 +#define GTDT_TIMER_ALWAYS_ON_CAPABILITY EFI_ACPI_6_1_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY -#define GTDT_GTIMER_FLAGS (GTDT_TIMER_ACTIVE_LOW | GTDT_TIMER_LEVEL_TRIGGERED) +#define GTDT_GTIMER_FLAGS (GTDT_TIMER_ALWAYS_ON_CAPABILITY | GTDT_TIMER_ACTIVE_LOW | GTDT_TIMER_LEVEL_TRIGGERED) #pragma pack (1) diff --git a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Gtdt.aslc b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Gtdt.aslc index 16e2c6a972ba..2a9d209c00f0 100644 --- a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Gtdt.aslc +++ b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Gtdt.aslc @@ -28,7 +28,7 @@ #define GTDT_TIMER_ACTIVE_HIGH 0 #define GTDT_TIMER_ALWAYS_ON_CAPABILITY EFI_ACPI_6_1_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY -#define GTDT_GTIMER_FLAGS (GTDT_TIMER_ACTIVE_LOW | GTDT_TIMER_LEVEL_TRIGGERED) +#define GTDT_GTIMER_FLAGS (GTDT_TIMER_ALWAYS_ON_CAPABILITY | GTDT_TIMER_ACTIVE_LOW | GTDT_TIMER_LEVEL_TRIGGERED) #pragma pack (1)