From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=40.107.70.56; helo=nam04-sn1-obe.outbound.protection.outlook.com; envelope-from=leo.duran@amd.com; receiver=edk2-devel@lists.01.org Received: from NAM04-SN1-obe.outbound.protection.outlook.com (mail-eopbgr700056.outbound.protection.outlook.com [40.107.70.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B12D3210C0CC0 for ; Wed, 13 Jun 2018 13:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OufJbzMxVSnvxLWuw5KrIMrE9VR3cOFlDV6D+fuACxI=; b=X7K6TDYh4Cl8kyKHIdpV02bB97+PsXwPyX6hUk6YwGudDXId/NlZN+DUlPnqh9A5wlXirJgOGmU4+l/3ZQXzSPchajDZEv3KiGe1rk5Xg5+r4r2phxC88bgd2lJMDyNqsuosSanlIIX4kD3DIjIw3XUIyZScvLUwA6ppEav4IMI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by BN6PR12MB1811.namprd12.prod.outlook.com (2603:10b6:404:107::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Wed, 13 Jun 2018 20:11:25 +0000 From: Leo Duran To: edk2-devel@lists.01.org Date: Wed, 13 Jun 2018 15:11:13 -0500 Message-Id: <1528920674-24912-1-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN4PR0501CA0008.namprd05.prod.outlook.com (2603:10b6:803:40::21) To BN6PR12MB1811.namprd12.prod.outlook.com (2603:10b6:404:107::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: df51c559-e9bf-4757-3d5f-08d5d169d73a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN6PR12MB1811; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1811; 3:G7+VIIerDxT2xl/XL8/Cvkjp3HMVmVqeqpvLuB1IdcEDJOFRDRCgEgyD8IRCSZqXTigE+jMkjgLK1+my8VxA8sIcDeNp5khFXG8XKf9JzCC9ojqOV+j+3x1NxtyHVHgFNYWTrZpTc+yaTfxPyR/09L1NME6x16A/kAJLoBr9Rf6ro7TgXANOW9YR5iLt0mF6bxsza8cxd6TICRQIAGIYWOTRONp9CWkKcuY60U9/A2PqBJRhFrY06B3VNJNc4pCl; 25:kBvPQr01ULyCxc1SxOuX0yS7yTkAvdINtK9i6sL5WYJWy+u+bTgfuUiWBWJTBCfS2Pyl+VcS0kR5LImAA4XiPfbqAsBsXzjwd1zg6CNoBlBw7uVu81tuENQpk417aJKXzeR4I2SYyb41dswT/e+JrLwpXTzYGeHT70iZBcpqKgpezZ2V+fGXqTv0nqYgwUxW8Tr22qygLliXYqU+KdYjcIAtsDkzopqraq9LdJbSzWfAIuVPPAP6lx2045fQSiZVMYNg8HIHui3I8vaMNdsXyM4JFdgGcYvH+FN2d03CKARIMGDdOk3Dib3yYZha5imh7izTQfl1Qq04jwdoqCNuog==; 31:vV6jEA0iKxIh7lZVwuvkfUmNQhBMYfBZdyqNATKY3+RQhCgMjfy5e9Y4343oRMU4uhuR7u3sQo1ir+dy4F1NaedmYLms0QyLF5my9Xa3GSx6OlG78lqNnWs0BPB2qlpT0nGtaBZhHjyTwejCYcHpqSfAxi/UybD/smfv7OhMcYrrxZkYcsZzTEzex/ZiBMOw81yOm2jQGle39eRGe2pz9Hmdk7kJ5/3dgAv7v31+3CQ= X-MS-TrafficTypeDiagnostic: BN6PR12MB1811: X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1811; 20:7vLZNhJqjdadKn48EqFmpa0dxte36M+iUb1Vl4WJHgtyrysNa38obaLQULWwCNXH5UWhYl8faGfd6FctbvJBiAlJARnbyOh6hmgLVROJk9dqCovVjTWIJNpclQ9xbij/W5BUDMOqX/fdAxKvnaHZC90ee7XoLmDWJPZXC2iZ6W47JX+WPG5t2aLZ0gVstCZmsvnNnf8i+Llb3LT3ISrYQa9j3fYiifuvba6QG5wuzfGoaw+HUpPxt4vuGDSPdFOJ7TBDxwTw2VdIjk62cvvjY55Nt2PrbFEQfybZrDpVGhv3m4mToP70bSkuG2jNRVDwXuNyG3CspNrrXdEMVJX0neFYKi4ZfE9+Dijn3k7RrXVqed7hyL+V789eAHZ31ncAe3LrgbD9N6EOiKKJQcmTxICMunBFaAatOTSOJFlLRN0yRS5TesTYfTq4hkwktc/pLbPzsTPPDUf0E3xE9NXj/7TGM3bekP1HFqAm8SRH+lVsWXMSgdgaCRNdELgdstYC; 4:vYSw7oC14A+pGa2CIvWc1lTMXX6queaNYXDVE9bV3QWCIHKKfucLYT+qkLf0LivclGPkqsqqV7BYW0yd8ZrkDgGD6cAQ8rqDN5fvZaHU94qqrucTOoJCTEGvkIqbcin/hNRH7riErfe58eFxbg39KtqLoWFJlEcyLrSpQfeYLbdvC/nfXIFh+W2qaXLjNUutS4/mZrpaE+wRFL2AXHrANfQrUk51XQM7MolpT7Fl/AwiTvhMb5scNCZKYOB6h4QUpxHRYy9OtkOgCC+olqNWvAaKsYbBo5ZWAQZdgM9XrgdM6W+dXKz7o5CmH1sSMV+7AZozy0PS4GYonN9B9Wz5x81crhTu6mb40PDPO17s9Z8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(162533806227266)(278021516957215); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231254)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201703011903075)(201702281528075)(20161123555045)(201703061421075)(6072148)(201708071742011)(7699016); SRVR:BN6PR12MB1811; BCL:0; PCL:0; RULEID:; SRVR:BN6PR12MB1811; X-Forefront-PRVS: 07025866F6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7966004)(39380400002)(39860400002)(346002)(366004)(376002)(396003)(199004)(189003)(5660300001)(44832011)(486006)(476003)(956004)(2616005)(25786009)(508600001)(966005)(105586002)(106356001)(6306002)(53936002)(2361001)(4326008)(53416004)(2906002)(6916009)(50226002)(2351001)(6666003)(51416003)(97736004)(66066001)(47776003)(81156014)(7696005)(81166006)(8936002)(48376002)(386003)(50466002)(68736007)(16586007)(36756003)(52116002)(305945005)(6116002)(3846002)(7736002)(26005)(1857600001)(16526019)(6486002)(86362001)(316002)(186003)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1811; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR12MB1811; 23:VNUl+CmAwqnQ/8nUWxcl3qZ0qo7wxTRNRok8ePjbE?= =?us-ascii?Q?tZYdL0BdVZV3wNYUc/NbFZInWiVxeYxix4eOrmBb6QAIXt1Nx4VIfJcNllU+?= =?us-ascii?Q?SB/vQcuTyQH/kqQsNF6CKlQpy9pL48353On+pA8hHWVlVxnns+nnAFtAF1cF?= =?us-ascii?Q?NABOW9VKih38FoUjITYfBeEQom8xeftGiiYTgbt+kF3Sou1VNZoae5cpV3rg?= =?us-ascii?Q?1a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Q7RecsEPaqMi3bSxj0yuE2AnK2RwJQBOix2U=; 24:8ICT6ziSoLxoIoAc4iDi+fe4sWRM94xHmHIYrw0J7kNLFkZyh56uVDle0eDxfFhRAFKBonphZmfE+3noPUaaNR+U/8mgjQZnJvZjccaKllU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1811; 7:Fa+4yShb4Nkb5e1QJnXzhq9dstNTWOuVqR5sfsJBucHIN8JluY1EQe1O3T9u3LOekdhzOVCt0j6hH+6obJcz9GJcshxBkSQh3P8oaZm9pw6wFYikrgAha54o2LUbTSvUC1flwcbaxsZDVJdCyNyMYa3SqQKlBof9D264O3FweYtemkvz9ndY7k/NUUAWtJOkp2Y4GqRd0+FWKodhueCiI203VgziZpqoJHx6iUegGNp2DeNUlaI7/q0plwj4BzxZ; 20:X9iS5wS0nWSxmhcfP5juBjLTquSX5Mb8M+6mEE1kZLIwBqbd6nU/rN9DJDXxz2ehX/cIXC47RsXUp0DRRG+bwiU5K1KIksUFWZSdMY/U4qHOahhB/JspAWgLFv6vl3W+60u+g8NfjeJCNUzsKa4Ke9/nbkj+NvwwWLS4JKZd5PyaBvXdWnjNNA6SJHnH76pck7WJ46rxbL1B+ak5ld3xyocxCLDGijo0NMBGgGM2fcf2j8hk1Vr7g/mRb65t9G1p X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2018 20:11:25.3450 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: df51c559-e9bf-4757-3d5f-08d5d169d73a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1811 Subject: [PATCH] UefiCpuPkg/LocalApicLib: Exclude second SendIpi on AMD X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2018 20:11:28 -0000 Content-Type: text/plain This patch is related to the patch-set discussed here: https://www.mail-archive.com/edk2-devel@lists.01.org/msg27020.html The GetProcessorLocationByApicId portion of that patch-set was pushed, but the SendIpi issue was defered based on questions Jeff raised here: https://www.mail-archive.com/edk2-devel@lists.01.org/msg27195.html In any event, I do not have public documents explictly describing that a) second SendIpi is not required on AMD processors, or that b) only a single SendIpi is required on AMD processors. However, as stated in the commit log: On AMD processors the second SendIpi in the SendInitSipiSipi and SendInitSipiSipiAllExcludingSelf routines is not required, and may cause undesired side-effects during MP initialization. Leo Duran (1): UefiCpuPkg/LocalApicLib: Exclude second SendIpi sequence on AMD processors. UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c | 12 ++++++++---- UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) -- 2.7.4