From patchwork Mon Aug 23 21:24:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 1519996 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=J2kB5KQr; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GtldL71Blz9ssP for ; Tue, 24 Aug 2021 07:25:10 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mIHRL-0008OL-FU; Mon, 23 Aug 2021 21:25:07 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mIHRG-0008O2-Qv for fwts-devel@lists.ubuntu.com; Mon, 23 Aug 2021 21:25:02 +0000 Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id A7BDD40316 for ; Mon, 23 Aug 2021 21:25:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1629753902; bh=hOkntuVPwGCeF98uSHYbySrLYptyqDmvjPSMKZswUgE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=J2kB5KQrN75bo1FLKbZ/TnFsWk/VHU0B4YgcLYgFwDq7JlyBtzYnZadKQIaQVL5hx 7yvKkPutI9k5LNl9cH3m+ZdPxktxun8CN0DuRfJsNJpAZk9CFbGu5/Mx1vNUSciHWM MXPw3LIvxdLfHrafXFa70MSQQ2PWRCl+EvQBuXRtYMroASO7dOqZOkkFj6/QEqeASt G4irw950X5a74dp6XgbfvuMgTXiFsUKwfQxOODGjjulDVRgUNhbJZ0dGd/F3+7SYb5 WSJQsIz8ptds4MtPLar7szNTCiooHGE/IWKYtyuvFRJ+8gNRBwIMUrFM/1/bcqrBvd hb9Tp3pHKRBsg== Received: by mail-pg1-f200.google.com with SMTP id z19-20020a631913000000b00252ede336caso3032081pgl.4 for ; Mon, 23 Aug 2021 14:25:02 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=hOkntuVPwGCeF98uSHYbySrLYptyqDmvjPSMKZswUgE=; b=YV96bRWg/bLdORB4i1dN8myUGD0uqlCziQ9LQZZZO3i8QiBnl7Jzy1c61Qf9g/YUtV plKsIyiwHwisNkiFQKGyJBbORZEIVZfGdmpVmYRjAkZb7Irizd+N9XNVeui4zmeF+d4K UizaFc7bzZupxGH3G/CGfWAwwNOi75WRFv9v013T4evbkQWBZaz+QxTPKB9AjUjL+6jR uDB1eIv4cD/KBdWaMg13sp65TLl7IZ3PvjjkMsKRsrgsqAsa3w7pUROgy8mt+DrQCdBq ILuzjmP1UnY73rk6DJLPsEoGN0HgeTg3fISIsKhNK0qR4KdH54i30p78PK9T7CHUau54 5k+g== X-Gm-Message-State: AOAM530o6bmUovW0gV+AA6fk2PJIgZ4U/pjg1y70evzT+3VP7C91733y sTk1vl4SGEx1cx5EHIB/89nqLWnMJezMlsrPLNOjoNaQfx9Q2PHVAeh5uTnTBuzIoF2jmhvtH8L O6bjcyT4jHHGuynIgml83DfnNAI7UReQmQymQ/iTK X-Received: by 2002:aa7:8d54:0:b029:3cd:6ce7:bec6 with SMTP id s20-20020aa78d540000b02903cd6ce7bec6mr35727938pfe.69.1629753900825; Mon, 23 Aug 2021 14:25:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGwR1MmMpnG7N9ZKXvwEnS84AOs69wcJPGmzQ5YF2t5g29R//hl5rto9FuhlATtUPVhFYAjg== X-Received: by 2002:aa7:8d54:0:b029:3cd:6ce7:bec6 with SMTP id s20-20020aa78d540000b02903cd6ce7bec6mr35727924pfe.69.1629753900550; Mon, 23 Aug 2021 14:25:00 -0700 (PDT) Received: from canonical.com (node-1w7jr9yebujeq5th4a1ypmemn.ipv6.telus.net. [2001:56a:78ed:fb00::48f]) by smtp.gmail.com with ESMTPSA id h20sm16574885pfc.32.2021.08.23.14.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 14:25:00 -0700 (PDT) From: Alex Hung To: fwts-devel@lists.ubuntu.com Subject: [PATCH] bios: smm: fix indentation Date: Mon, 23 Aug 2021 15:24:58 -0600 Message-Id: <20210823212458.2398774-1-alex.hung@canonical.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" Also remove incorrect claims in license header. Signed-off-by: Alex Hung Acked-by: Colin Ian King Acked-by: Ivan Hu --- src/bios/smm/smm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bios/smm/smm.c b/src/bios/smm/smm.c index 990c7bd4..24ca126e 100644 --- a/src/bios/smm/smm.c +++ b/src/bios/smm/smm.c @@ -1,8 +1,6 @@ /* * Copyright (C) 2021 Canonical * - * This code was originally part of the Linux-ready Firmware Developer Kit - * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 @@ -28,10 +26,10 @@ #define FWTS_INTEL_HOST_PATH "/sys/bus/pci/devices/0000:00:00.0/config" -#define FWTS_GGC 0x50 +#define FWTS_GGC 0x50 #define FWTS_TSEGMB 0xB8 #define FWTS_TOLUD 0xBC -#define FWTS_LOCK_FIELD 0x01 +#define FWTS_LOCK_FIELD 0x01 static int smm_init(fwts_framework *fw) {