From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mx.groups.io with SMTP id smtpd.web11.1916.1687809598856164287 for ; Mon, 26 Jun 2023 12:59:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mTDgbq8k; spf=pass (domain: gmail.com, ip: 209.85.210.176, mailfrom: kuqin12@gmail.com) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6687466137bso1782693b3a.0 for ; Mon, 26 Jun 2023 12:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687809598; x=1690401598; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CUjHDw5b8bBldciIqp5b/ON1qgLhCdnqjz1IQtMBc8A=; b=mTDgbq8kAtj+kThPhxS/dbb12Jwzeh2yamb24Q1RjcSijAldGGOAJxulAytjwS1ROe xJ7S7vyfqYbOS4Y/3ZDIBtXyfGXTdliwPOKcXrwH12Es6flGcE37rxF1OqLHSd0yXqy1 6VOx8obSYXjS6iFWjQdNxqV2omXitiyuIQ/OwpCmb6SAkFJB+2O8odsMAGXNRwfSBs3s zN/4cuGI9C0JxI8v5/kin201VkFQSkTreelAkox6xIBV2q42tQtWHLh+g/wzL6/kJ5bj OkOtBHfcwW80aKUtMs5sioDrL4kzInY4hoOOLpfSwP5zGRMnhdjkKBoIn3HeVS96Nl+X FL1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687809598; x=1690401598; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CUjHDw5b8bBldciIqp5b/ON1qgLhCdnqjz1IQtMBc8A=; b=T7G5qKcbxunxs4KXWMgxxpF3tBzOT3LYJecVWqr49yJpssgDNqR1W7EGvR5rXKa1tc H91nJA3Td6LfQcGcMpj4WI7nO4djmj9pYLfEBpSaB44n6b+pB5qUntDIyvdDQ49QFm6S DdxqmYd+6G0hylXq37bi6sn1vr+/8JmV/O6G0iyqFHy2gzL0XezlimZTWRd7Se0T2NqE c3K9Ql1mqoSZBVd1wo1sKNh4Wr/85jIqP3ERbAudf9tyTUGZhWpmVeZ0ZNeCsQfouoGW tJZqwF5UfcgxNC4Xn6XozeIZNCUN3sqMwXfMVgQKqE/og0bxRDj/rX4pm/wy4oIy04zM 3XYQ== X-Gm-Message-State: AC+VfDxRAe8Ykyo+efVRS3nigSNY7nWZeQa+qsZnYK7w6roLqXv6bWVZ uPXs8VOWsOkxTf3NLoxP50LmtBvXj68= X-Google-Smtp-Source: ACHHUZ5eIFGTATpVN0Rc2T3pyHiIc1fSRwKZLP9txKPfrVp2f5fTOMo+9FEhKCIAs7k8BRu2Om9PFQ== X-Received: by 2002:a05:6a00:23c6:b0:668:79c4:a65a with SMTP id g6-20020a056a0023c600b0066879c4a65amr20729784pfc.32.1687809598018; Mon, 26 Jun 2023 12:59:58 -0700 (PDT) Return-Path: Received: from MININT-0U7P5GU.redmond.corp.microsoft.com ([2001:4898:80e8:1:3ddb:b5a5:d301:15a6]) by smtp.gmail.com with ESMTPSA id j18-20020a62e912000000b00666add7f047sm4122755pfh.207.2023.06.26.12.59.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 12:59:57 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Hao A Wu , Liming Gao , Jian J Wang , Leif Lindholm , Ard Biesheuvel , Sami Mujawar Subject: [PATCH v2 0/2] Support MM based variable services in PEI for ARM Date: Mon, 26 Jun 2023 12:59:50 -0700 Message-ID: <20230626195953.1807-1-kuqin12@gmail.com> X-Mailer: git-send-email 2.41.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4464 This patch series is a follow-up of previous submission: https://edk2.groups.io/g/devel/message/105954 The main changes between v1 and v2 patches are: - Adjusted input "CommSize" verification from MmCommunicationPei=0D - Added more debug prints for error returns - Removed unused PCD from MmVariablePei The change was verified on QEMU based ARM sbsa platform and proprietary hardware platform. Patch v2 branch: https://github.com/kuqin12/edk2/tree/arm_var_pei_v2 Cc: Hao A Wu Cc: Liming Gao Cc: Jian J Wang Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Sami Mujawar Kun Qin (2): ArmPkg: MmCommunicationPei: Introduce MM communicate in PEI MdeModulePkg: Variable: Introduce MM based variable read service in PEI ArmPkg/Drivers/MmCommunicationPei/MmCommunicationPei.c | 212 ++++= +++++++ MdeModulePkg/Universal/Variable/MmVariablePei/MmVariablePei.c | 381 ++++= ++++++++++++++++ ArmPkg/ArmPkg.dsc | 2 + ArmPkg/Drivers/MmCommunicationPei/MmCommunicationPei.h | 76 ++++ ArmPkg/Drivers/MmCommunicationPei/MmCommunicationPei.inf | 41 +++ MdeModulePkg/MdeModulePkg.dsc | 1 + MdeModulePkg/Universal/Variable/MmVariablePei/MmVariablePei.h | 134 ++++= +++ MdeModulePkg/Universal/Variable/MmVariablePei/MmVariablePei.inf | 40 ++ 8 files changed, 887 insertions(+) create mode 100644 ArmPkg/Drivers/MmCommunicationPei/MmCommunicationPei.c create mode 100644 MdeModulePkg/Universal/Variable/MmVariablePei/MmVariabl= ePei.c create mode 100644 ArmPkg/Drivers/MmCommunicationPei/MmCommunicationPei.h create mode 100644 ArmPkg/Drivers/MmCommunicationPei/MmCommunicationPei.inf create mode 100644 MdeModulePkg/Universal/Variable/MmVariablePei/MmVariabl= ePei.h create mode 100644 MdeModulePkg/Universal/Variable/MmVariablePei/MmVariabl= ePei.inf --=20 2.41.0.windows.1