From mboxrd@z Thu Jan 1 00:00:00 1970 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.web11.11280.1687270218394932334 for ; Tue, 20 Jun 2023 07:10:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G6c875cp; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687270217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3cEDggF71eOGubXN4P0AkKw2sSKghdLajMhtIRHmAJ4=; b=G6c875cppEt/Z0AZCoRGcWynfTq2/b15aZYh6iQSPTgy3pgAaJqJRDGlzGlom248Sh3RAU GX4yF34+abZVuGS/7rysW1XTeUFwIRQKJjd0Ivzgag2/LvDU0aAJK0qbCwceoK+ohRKyzG ThWbHMHnb/NjodTWzwawyh/sa7JRD4A= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-203-RDBLGrrKNfWdlGqQ6IMdiw-1; Tue, 20 Jun 2023 10:09:49 -0400 X-MC-Unique: RDBLGrrKNfWdlGqQ6IMdiw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F331D3810D28; Tue, 20 Jun 2023 14:08:50 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.126]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B0801492B01; Tue, 20 Jun 2023 14:08:50 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 3C09F1803082; Tue, 20 Jun 2023 16:08:49 +0200 (CEST) Date: Tue, 20 Jun 2023 16:08:49 +0200 From: "Gerd Hoffmann" To: devel@edk2.groups.io, yuanhao.xie@intel.com Cc: Eric Dong , Ray Ni , Rahul Kumar , Tom Lendacky Subject: Re: [edk2-devel] [PATCH 1/5] UefiCpuPkg: Create MpHandOff to transfer info from PEI to DXE. Message-ID: References: <20230612133720.15501-1-yuanhao.xie@intel.com> <20230612133720.15501-2-yuanhao.xie@intel.com> MIME-Version: 1.0 In-Reply-To: <20230612133720.15501-2-yuanhao.xie@intel.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > +typedef struct { > + UINT32 ApicId; > + UINT32 Health; > + UINT64 StartupSignalAddress; > + UINT64 StartupProcedureAddress; > +} PROCESSOR_HAND_OFF; > + > +typedef struct { > + // > + // The ProcessorIndex indicates the range of processors. If it is set to 0, it signifies > + // processors from 0 to CpuCount - 1. Multiple instances in the HOB list describe > + // processors from ProcessorIndex to ProcessorIndex + CpuCount - 1. > + // > + UINT32 ProcessorIndex; > + UINT32 CpuCount; > + UINT32 WaitLoopExecutionMode; > + UINT32 StartupSignalValue; > + PROCESSOR_HAND_OFF Info[]; > +} MP_HAND_OFF; This works for ~2700 processors, with larger numbers you hit the hob size limit. Not a good idea IMHO, we already have systems that big. take care, Gerd