From patchwork Wed Mar 7 06:55:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 130849 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp4845002lja; Tue, 6 Mar 2018 22:56:35 -0800 (PST) X-Google-Smtp-Source: AG47ELs5jWkgdqS7tqHVA93jljD8g+f4fJ2ewzWzEQCOZ0YBQW5CjTJQM4t1xidD5aPKY7thB9PI X-Received: by 2002:a17:902:7e0d:: with SMTP id b13-v6mr19179984plm.97.1520405795845; Tue, 06 Mar 2018 22:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520405795; cv=none; d=google.com; s=arc-20160816; b=fQx7Ug/8selVTQo1VWc9+92ClFNZNVtumUSr6UYKkcDU7USbvME5JBdlyHFTNFtwTq Z5edbLRWU/+7oTj+Fea2PPnSL472wUTDMSGwAs2yhkI4kZrXEd94n1hBHH8c0nIzM5mH QufgCWtAZjbaao2yMuwvFQn7vQQQdkP577c/M0wb2IAFEyMW+W9gJQ2cOChmj4ec3R3H HFRN9QqwrBrPHCWmiO8zMcCqUKRPgZMJO8layPI68BsIH0ngp4BEb1sAHww2fhIVSwHP lCDDJgKJHjn/CUMckFPYeynv4dksr6aG2iXFLpIgrb7oPVuV5+dpTzag2rckhOT1hNga jjBQ== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=5Fplo8ktY+fXjLAhxXTkJHwdh15uaGPKHiL+LhZJmzk=; b=NzL2HBkWCgPzDSdYMoM3uaTeYE5ghC1dq2JzkYacrmwFfVBqCGBW0WN2ZadJrKUxtj tecUwtxKJjoV6cLY8IzQrvJe6F53HHYjbXT+YK3+TJQ05OtEX+f4Wg0hFb+xlnUqn/sR ztgUxztcsgK9wfreG7Ru06cOxkRnryS0G6Okstm2ReJLDnlnoYcAX1sJMFQgB5vnfbGJ dO5KX8RUgVF18SSTUBHTdRlLZlqKviLHbK+sy5mtkLr8yd04s7O6n3M0zDMpUxweNK+H AdQAIBJRkVH5ldFuopgb1h9Mfu4JDLtlbUh2x/4Kw5OY+FxURWQkl5+vGOANjG61U3ni sTOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UZzudY4c; 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 q67si13424626pfj.146.2018.03.06.22.56.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 22:56:35 -0800 (PST) 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=UZzudY4c; 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 7698E224E6938; Tue, 6 Mar 2018 22:50:20 -0800 (PST) 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:c05::242; helo=mail-pg0-x242.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::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 4210222135D46 for ; Tue, 6 Mar 2018 22:50:17 -0800 (PST) Received: by mail-pg0-x242.google.com with SMTP id q27so558079pgn.8 for ; Tue, 06 Mar 2018 22:56:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Sb6P1Gi031jyLtilPjVSVctdhCNfte1EYLGSRBhLJcw=; b=UZzudY4cmDgNNqRt8z690bOFnVA5kBv6H0i6befX57xJMhvfy5IeB9QlHtgJEDNUVO 9fTzFpHv7ccdXjZKv2PnpE7taWtBuImevpInWXvjdCnZbbj66ZPf9q+PT738GN80PP1q xBmSGMvD3TJwT/bOCxBf60GKpbFI6qJQk8SRM= 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; bh=Sb6P1Gi031jyLtilPjVSVctdhCNfte1EYLGSRBhLJcw=; b=NaoBpOhlEXqYVpvZNvI3TftUei0aRLOrgMKbzim3p9tuq0noYoiFYDkcC7NvWxAtHR zU2w859g4Zo4UV06oLCEtKHXU/MJzmSbgZPHui0Vd8Z08uFci6A96TMdyiLUEnVdVyTS M7wdda375K6UCmUYEihV9M1jwfXtghB/NPQCxj1+WdjX/twPG4Ts5v0UHnPUQFrc9aHQ nK5h/UOj23OAfjX3xuf1sDfl8YS2O7wQa+7JL7E8h0PHKSSdezH4CF7sPBZK0l2dK/n0 p4dXYsMPX65m6L7uEIwvRnS4mPv/lgGcrr5n30tA3xEHkczTxv5MhPpNqpueT0x/X0Tn veww== X-Gm-Message-State: APf1xPApHqtb40w+uEABHGebodtqqx7GTBkgaGK+Lzfu0eX6JfdBozpu 3RMjdzIAOGsN1Jb+TD1XygUGaYEtiOg= X-Received: by 10.98.200.131 with SMTP id i3mr21747361pfk.40.1520405792462; Tue, 06 Mar 2018 22:56:32 -0800 (PST) Received: from localhost.localdomain ([45.56.152.76]) by smtp.gmail.com with ESMTPSA id m18sm28340291pgu.51.2018.03.06.22.56.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Mar 2018 22:56:31 -0800 (PST) From: Heyi Guo To: edk2-devel@lists.01.org Date: Wed, 7 Mar 2018 14:55:45 +0800 Message-Id: <1520405747-11023-1-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [edk2] [PATCH 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)