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 B7B4CAC1AF8 for ; Tue, 12 Dec 2023 19:28:03 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=E5r7flNOptMmdvnKuWnavNVjwgaNAMH008xFM5n/6nU=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:Subject:To:Cc: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=1702409282; v=1; b=eLaoMHyG6g8zlEOdzJ76sGf6XGKRirV4bsnLIq+fTLGIXAHJRgB4pzkQKdQO1na5V82QiMNP gpOE2wDtBgYoQt3EEaZUonigdmz7/WY4kPWpmnZmvKjZC53KdAeyXvtsNitnR/fYh6U2gOzV05r CKpMmLv8c7IaFY2TG1sSpo14= X-Received: by 127.0.0.2 with SMTP id 1vPDYY7687511xnwXykuod6s; Tue, 12 Dec 2023 11:28:02 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.5472.1702409281384645585 for ; Tue, 12 Dec 2023 11:28:01 -0800 X-Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-607-HiHhYYUKOJW4R6S84kwm4Q-1; Tue, 12 Dec 2023 14:27:58 -0500 X-MC-Unique: HiHhYYUKOJW4R6S84kwm4Q-1 X-Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (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 1A67A381D4C8; Tue, 12 Dec 2023 19:27:56 +0000 (UTC) X-Received: from [10.39.192.120] (unknown [10.39.192.120]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9FCED2166B33; Tue, 12 Dec 2023 19:27:53 +0000 (UTC) Message-ID: <31fe77d5-c9a5-f41d-53c9-d7863d8449f2@redhat.com> Date: Tue, 12 Dec 2023 20:27:52 +0100 MIME-Version: 1.0 Subject: Re: [edk2-devel] [PATCH v3 1/6] UefiCpuPkg/PiSmmCpuDxeSmm: Optimize Semaphore Sync between BSP and AP To: devel@edk2.groups.io, jiaxin.wu@intel.com Cc: Eric Dong , Ray Ni , Zeng Star , Rahul Kumar , Gerd Hoffmann References: <20231206100122.8028-1-jiaxin.wu@intel.com> <20231206100122.8028-2-jiaxin.wu@intel.com> From: "Laszlo Ersek" In-Reply-To: <20231206100122.8028-2-jiaxin.wu@intel.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 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: vmFwiStEfnmvZGDioiFcpETUx7686176AA= 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=eLaoMHyG; 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 12/6/23 11:01, Wu, Jiaxin wrote: > This patch is to define 3 new functions (WaitForBsp & ReleaseBsp & > ReleaseOneAp) used for the semaphore sync between BSP & AP. With the > change, BSP and AP Sync flow will be easy understand as below: > BSP: ReleaseAllAPs or ReleaseOneAp --> AP: WaitForBsp > BSP: WaitForAllAPs <-- AP: ReleaseBsp >=20 > Cc: Laszlo Ersek > Cc: Eric Dong > Cc: Ray Ni > Cc: Zeng Star > Cc: Rahul Kumar > Cc: Gerd Hoffmann > Signed-off-by: Jiaxin Wu > --- > UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 72 ++++++++++++++++++++++++++++-= ------ > 1 file changed, 58 insertions(+), 14 deletions(-) Reviewed-by: Laszlo Ersek -=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 (#112454): https://edk2.groups.io/g/devel/message/112454 Mute This Topic: https://groups.io/mt/103010163/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-