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 83B4F7803CD for ; Mon, 6 Nov 2023 23:15:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=gVU29GRA2EJQLPUbzBK6miQ4B5N3j/NZhXv9N6LOlSA=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Message-ID:Date:User-Agent:Subject:To:Cc:References:From:Autocrypt:In-Reply-To:MIME-Version: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=1699312557; v=1; b=cPqxmjDVu5vutc8FcWy/ZRQdPfl8fgXudN2xVUgZZvtsAOHuraRNZQ/bSLBazxa3c0kmO2gi xberycBvejFXWdzxPWUptXaEtGfWmNemSuhYuJq2ARZJKFl+xUolMr04VpVe9ieEZ/yGMlGDxqO 73Qx584OQIl4HHhJdfYavDn0= X-Received: by 127.0.0.2 with SMTP id UfFcYY7687511xGEc4plekoE; Mon, 06 Nov 2023 15:15:57 -0800 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.72]) by mx.groups.io with SMTP id smtpd.web11.71743.1699312556235724800 for ; Mon, 06 Nov 2023 15:15:56 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F8TjsqrGInJlm9JBtioFVU9yvzyns/v3MTwOrYp+xJ2j3wFAIB+eF3iK0nJ7chHu491MBXE9VTjZ5CW50vanZ5CzVGzdcfQwGpWOj58gR65KPpqbBDIBX76GvunmKLlI2hnncs1KrjJkNhubtrzO/STNauGyjC7wSzMwrZbHWvzowOKgd0yOrhD5evzHvygdgR0ozhbXh5BZN6Hi3E2UvpRk63yMBb0beh3KtcWwhh4uZ7/oUiK6zrUtpAovamkciDfe+MMqnJ5JNsnieMXvPgOel6tT+Z/kR8T4tM9JUe6Dck3+eCiHdt0IXapfVn+L5Bvv3Wkoo1xIfg6jIJ3cmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dqd3kfcjJqHNVgmjZwco7V4uEBmD2uyvADqTDCMMuYc=; b=gJetSqlH2ekrmOT7/u00HeCX4IZt1qPVFA+Os2XvEtxrIDrIMG2IhA7CZ3HIH6a5xPz04WbswQUEDIxSJNMAzeMcIVjbRjt+BCSZRA7wfDcWkp+N0iYXE77Q7hoh2EScTbsIBaMpUaLvmn6vrbKl7SimgZfq3cQ40VaTueywx9rir/rh/fQ95NXiROI+arCmoQDm8vswhrxq8hmRmqeTbRhBMG6g94J97smNxseZuzjYw8WdV/qqooOJ8CqZ6Ug984TcvdJBo9Le5cj1Sg8bAxt/XUg3sgZMuYiZIt2HU3NxWv4RSG0B4S5MgYUXy+cN01hEcjOiUY2PuqsamFu6pQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none X-Received: from BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) by SA1PR12MB8920.namprd12.prod.outlook.com (2603:10b6:806:38e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Mon, 6 Nov 2023 23:15:54 +0000 X-Received: from BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::e16e:d7f1:94ad:3021]) by BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::e16e:d7f1:94ad:3021%7]) with mapi id 15.20.6954.028; Mon, 6 Nov 2023 23:15:54 +0000 Message-ID: <26becea4-2ad8-4773-ab3d-5ad98ff48759@amd.com> Date: Mon, 6 Nov 2023 17:15:51 -0600 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH 1/2] UefiCpuPkg/MpInitLib: Use AsmCpuidEx() for CPUID_EXTENDED_TOPOLOGY leaf To: devel@edk2.groups.io, "Kinney, Michael D" , "Gao, Liming" , "Liu, Zhiguang" Cc: Eric Dong , Ray Ni , Rahul Kumar , Gerd Hoffmann , Ard Biesheuvel , Michael Roth References: <17952A20A9E21541.12603@groups.io> From: "Lendacky, Thomas via groups.io" Autocrypt: addr=thomas.lendacky@amd.com; keydata= xsFNBFaNZYkBEADxg5OW/ajpUG7zgnUQPsMqWPjeAxtu4YH3lCUjWWcbUgc2qDGAijsLTFv1 kEbaJdblwYs28z3chM7QkfCGMSM29JWR1fSwPH18WyAA84YtxfPD8bfb1Exwo0CRw1RLRScn 6aJhsZJFLKyVeaPO1eequEsFQurRhLyAfgaH9iazmOVZZmxsGiNRJkQv4YnM2rZYi+4vWnxN 1ebHf4S1puN0xzQsULhG3rUyV2uIsqBFtlxZ8/r9MwOJ2mvyTXHzHdJBViOalZAUo7VFt3Fb aNkR5OR65eTL0ViQiRgFfPDBgkFCSlaxZvc7qSOcrhol160bK87qn0SbYLfplwiXZY/b/+ez 0zBtIt+uhZJ38HnOLWdda/8kuLX3qhGL5aNz1AeqcE5TW4D8v9ndYeAXFhQI7kbOhr0ruUpA udREH98EmVJsADuq0RBcIEkojnme4wVDoFt1EG93YOnqMuif76YGEl3iv9tYcESEeLNruDN6 LDbE8blkR3151tdg8IkgREJ+dK+q0p9UsGfdd+H7pni6Jjcxz8mjKCx6wAuzvArA0Ciq+Scg hfIgoiYQegZjh2vF2lCUzWWatXJoy7IzeAB5LDl/E9vz72cVD8CwQZoEx4PCsHslVpW6A/6U NRAz6ShU77jkoYoI4hoGC7qZcwy84mmJqRygFnb8dOjHI1KxqQAR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JG7Ef6OrdvlRC3hTk5BDgphAV/+8g7BuGF+ 6irTe/qtb/1CMFFtcqDorjI3hkc10N0jzPOsjS8bhpwKeUwGsgvXWGEqwlEDs2rswfAU/tGZ 7L30CgQ9itbxnlaOz1LkKOTuuxx4A+MDMCHbUMAAP9Eoh/L1ZU0z71xDyJ53WPBd9Izfr9wJ 1NhFSLKvfA== In-Reply-To: <17952A20A9E21541.12603@groups.io> X-ClientProxiedBy: DM6PR04CA0004.namprd04.prod.outlook.com (2603:10b6:5:334::9) To BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5732:EE_|SA1PR12MB8920:EE_ X-MS-Office365-Filtering-Correlation-Id: b0984eea-6a54-4449-a49e-08dbdf1e52cc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: egyXd1iksZOR1TuGJ9ZjSioUPCD2XsayZ2LvUQMVy4c/f25KpzLIAkgHqrIMxbEK9SCzmlJscU2AASClQozgmkTv30xPcu4bz3iROsI5Zg1gQHvSuM9aWO1qwmTSEWoOY7SojdCu50FUYJLtO/GLbRhK9huTjDwW2a9rcJRD+qTSErUuHI7U8ALXkjyrVZejcoe13gQU3YKnJ8o15T+6VOa8MO7D8ajzG4AthXZgN4BTtShdwQz785sSx/Mpr/FMRC5Ku6qwq64h8BUOgtAcXqiW89P6CJ7GWlLuvFZ95MjSX189v4syDsIE8m0D38KtKumWZzmCvjmOGJLNoHZnqfnbuyT0juJVRGafJoRwAqY8JyGpoElkAgYD8je0ugOC5cYcwFojcnv6xK5e+QslQ6gIwCbOghpS92IzNRxLZ2GnnY+Gp2wa62TFttTkIzj3+Eb7dUWPy7lweSCMciDpKHtO2+xq+KQKE+TEkuoOANqYF7vv/YNtANa+KQaT8Pyih2Cl361zU8ATmdSzeLgdUmNHR2x44SwFhEEgbwyuVZyXf4Y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XJlSy9ONmZXVUJQcGo0aGdpTnpwL2gxKzQ3eGZGM1gxZVhq?= =?utf-8?B?SlM1dS9yNUE3NEFaaTMySGpYWGZGOVlWb2ZrblF5L0ZMTzl1cStpUE80SFBO?= =?utf-8?B?VUE1T3FVUUNISk4zK014M2ZVMDhqUDJodnJrNWFIQTZaRXZCSklDQ3VjUVB1?= =?utf-8?B?aCtpQnpHbUJMMjNqNDZVcDNpR1FqNENjcGVoNUEwNkVKeVE1V3ZuUDRCSk1S?= =?utf-8?B?enlOamRwUzFjTmYwU0JXWFVSalhUTHFzZjlYL0xYNjNqOUExWXFFa25UWlY4?= =?utf-8?B?YThjT1FnVXhvQzc4MWdWSVBWTjAzcEs5d0JJMnJFcU9hSE5idG9BTENXVlk0?= =?utf-8?B?VXkvdWRHbDdUTWo2MS8vWTZNOG1LQkxLN2VaMk84NlB4R3pIUjFHQVIvdTdW?= =?utf-8?B?N1VRT0RFVWZjUGh3akV6Njhaa1JCUVF0N0gxTlFBVGl5NGpSTWduQzB2Z3Nx?= =?utf-8?Q?yihaW4q7ocq7RgUeI3RkDeeeG?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0984eea-6a54-4449-a49e-08dbdf1e52cc X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2023 23:15:53.5517 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tlxd5VPuO+6rTwagUeqj3HebNxCgayhyTtaXn086plvVGwXOoZJwBuFVgB+G0U6r7FdeSvQZRjMM3MaDlqm9YQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB8920 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,thomas.lendacky@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Ro06eCVZjmmcd4mYxy5YFilgx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed 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=cPqxmjDV; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=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/6/23 16:45, Lendacky, Thomas via groups.io wrote: > The CPUID_EXTENDED_TOPOLOGY CPUID leaf takes a subleaf as input when > returning CPUID information. However, the AsmCpuid() function does not > zero out ECX before the CPUID instruction, so the input leaf is used as > the sub-leaf for the CPUID request and returns erroneous/invalid CPUID > data, since the intent of the request was to get data related to sub-leaf > 0. Instead, use AsmCpuidEx() for the CPUID_EXTENDED_TOPOLOGY leaf. Alternatively, the AsmCpuid() function could be changed to XOR ECX before= =20 invoking the CPUID instruction. This would ensure that the 0 sub-leaf is=20 returned for any CPUID leaves that support sub-leaves. Thoughts? Adding some additional maintainers for their thoughts, too. Thanks, Tom >=20 > Fixes: d4d7c9ad5fe5 ("UefiCpuPkg/MpInitLib: use BSP to do extended ...") > Signed-off-by: Tom Lendacky > --- > UefiCpuPkg/Library/MpInitLib/AmdSev.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) >=20 > diff --git a/UefiCpuPkg/Library/MpInitLib/AmdSev.c b/UefiCpuPkg/Library/M= pInitLib/AmdSev.c > index bda4960f6fd3..d34f9513e002 100644 > --- a/UefiCpuPkg/Library/MpInitLib/AmdSev.c > +++ b/UefiCpuPkg/Library/MpInitLib/AmdSev.c > @@ -256,7 +256,14 @@ FillExchangeInfoDataSevEs ( > if (StdRangeMax >=3D CPUID_EXTENDED_TOPOLOGY) { > CPUID_EXTENDED_TOPOLOGY_EBX ExtTopoEbx; > =20 > - AsmCpuid (CPUID_EXTENDED_TOPOLOGY, NULL, &ExtTopoEbx.Uint32, NULL, N= ULL); > + AsmCpuidEx ( > + CPUID_EXTENDED_TOPOLOGY, > + 0, > + NULL, > + &ExtTopoEbx.Uint32, > + NULL, > + NULL > + ); > ExchangeInfo->ExtTopoAvail =3D !!ExtTopoEbx.Bits.LogicalProcessors; > } > } -=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 (#110771): https://edk2.groups.io/g/devel/message/110771 Mute This Topic: https://groups.io/mt/102432782/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-