From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::444; helo=mail-wr1-x444.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (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 2D2242119AC0C for ; Tue, 11 Dec 2018 10:35:38 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id p4so15160691wrt.7 for ; Tue, 11 Dec 2018 10:35:38 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=0juioVc74NmguxM/+AlicgtK/08nEAsVvfbtNMeZ7c0=; b=MGjUYBMRzKAPd5oAnSvsoFqBo/vhamI5BuI5v+KoujTUOzeT03o4gpTiebPs6KqKwv 3/V5hQSYHhH0fDfWAflfNkZrMsRAvAr3ZriG4IVIiScuzywcFUQCb37GELX9yNP5NJJT PJoi2UFvMeUf511h/wsTl2zTQntrnWpWFAYzc= 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:mime-version:content-transfer-encoding; bh=0juioVc74NmguxM/+AlicgtK/08nEAsVvfbtNMeZ7c0=; b=qd1WpcDToxyaGucz1ngDGDPZKvDJsXwlqE2OvpUMfl0/xy2b+Y85Ykmsu4Fz5JzQ7f YI2VtzILsyvxYzMXrHKJdWxZ+35k496YZSdYH5PXK3D7xMi33q2hLIo0qC+XxlM7khYI m5LO0cyzZPreOZOY3UpOZekcPfgTqvbgM9w/gac6AOuKBLFcXEiffTyJ0GE0t1J7iIYB 3wK/7bymkIif5ZQkjRIt+yVhUYh7gxaBxt9f+F2UbX625Nsuuw/ckSFwUMcb5zlhytN8 kZAQglpKCa9jnH9xb2Q6Ypd1RPPMuO6/hUgeDuGXj6ylbIvE8LCODzDP3kN8J0qwPXGb lR4Q== X-Gm-Message-State: AA+aEWbKvyXFXImdc4FU0BiNzaUFfe3icx/LgcU8JqLtgocX4BGMSfLT HDN6GRcbMv37ZGTTnAPtSJTA0t5RFw3z6A== X-Google-Smtp-Source: AFSGD/WKIW2QJ0EcWZyL0nlXS3G+1XFoVDRqfM2uQUJXzxltOyqtLIH+Pvkf8074NJ0sJ8mPs/i9CA== X-Received: by 2002:adf:ffca:: with SMTP id x10mr15380408wrs.289.1544553336479; Tue, 11 Dec 2018 10:35:36 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:8c3:6b9d:cbc9:58c6]) by smtp.gmail.com with ESMTPSA id h131sm1026688wmd.17.2018.12.11.10.35.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Dec 2018 10:35:35 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, alan@softiron.co.uk, Ard Biesheuvel Date: Tue, 11 Dec 2018 19:35:14 +0100 Message-Id: <20181211183514.20948-12-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181211183514.20948-1-ard.biesheuvel@linaro.org> References: <20181211183514.20948-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Subject: [PATCH edk2-platforms 11/11] Silicon/AMD/Styx/AcpiPlatformDxe: disable KCS on pre-B1 silicon X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2018 18:35:38 -0000 Content-Transfer-Encoding: 8bit Align the ACPI platform driver with the DT patching code, which only enables the IPMI/KCS device node on B1 silicon (or later). Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c b/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c index 9b1428fc00eb..259a708b7c2c 100644 --- a/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c +++ b/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c @@ -172,7 +172,8 @@ InstallSystemDescriptionTables ( break; case SIGNATURE_64 ('S', 't', 'y', 'x', 'K', 'c', 's', ' '): - if (!FixedPcdGetBool (PcdEnableKcs)) { + if (!FixedPcdGetBool (PcdEnableKcs) || + (CpuId & STYX_SOC_VERSION_MASK) < STYX_SOC_VERSION_B1) { continue; } -- 2.19.2