From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 908F0780091 for ; Tue, 7 Nov 2023 12:45:22 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=s+fk1RRr7/Q0iJaPW7orhI+ejn9b3E/hjMP/OUbCGJs=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1699361121; v=1; b=lkw4EKpZFYl38yIg0UDm8arBXrV5dL48LMJNjrgYyYc8TQ7BuAFnMtkhqbg5U8o4lGYoRTQN udhkGb99lS+63upfTmtNLqNzbUsMx1xu94IyE0QXYet/5kVSbS4EPLoM6APnNwQCbmt8UjUTPCQ d5HYiTMFLDMJHF6y0FSsan8w= X-Received: by 127.0.0.2 with SMTP id wYnjYY7687511xR75T6hb6Dx; Tue, 07 Nov 2023 04:45:21 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.9412.1699361120648337813 for ; Tue, 07 Nov 2023 04:45:20 -0800 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-504-AqYg-4_JMGeLoSG3NPnVkA-1; Tue, 07 Nov 2023 07:45:18 -0500 X-MC-Unique: AqYg-4_JMGeLoSG3NPnVkA-1 X-Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id B99961019C83; Tue, 7 Nov 2023 12:45:17 +0000 (UTC) X-Received: from [10.39.193.64] (unknown [10.39.193.64]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 509BC492BFA; Tue, 7 Nov 2023 12:45:17 +0000 (UTC) Message-ID: <42cdccba-beb2-9e99-20b7-973f0629f6f4@redhat.com> Date: Tue, 7 Nov 2023 13:45:16 +0100 MIME-Version: 1.0 Subject: Re: [edk2-devel] Use dynamic pcd in smm mode To: devel@edk2.groups.io, yoshinoyatoko@163.com References: <74c5f6c4.3480.18b656cafb8.Coremail.yoshinoyatoko@163.com> From: "Laszlo Ersek" In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 4xADqHNdAjWu9N5C2DKWgWuJx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=lkw4EKpZ; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io On 11/7/23 12:31, Yoshinoya wrote: > Hi, All: > Could dynamic PCD be used in smm driver code? >=20 > It seems pcd has pei/dxe drivers, but not have smm related infrastructur > drivers. Dynamic PCDs (or more generally, DXE protocols) can be used in the entry point functions of DXE_SMM_DRIVER modules, to my understanding. Dynamic PCDs can't be used in any SMM services (callbacks, protocol member functions, SMI handlers, etc) that those modules provide (i.e., dynamic PCDs can't be used after the entry point function has returned). I'm not sure about MM_STANDALONE modules. The PI spec probably explains the environment in which the entry points of those modules are invoked. Laszlo -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110848): https://edk2.groups.io/g/devel/message/110848 Mute This Topic: https://groups.io/mt/102440663/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/19134562= 12/xyzzy [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-