Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp835537lqs; Fri, 14 Jun 2024 07:06:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKjgGA7GVD6DfOnkI66pNfxCxv+2Ti+CFaNCQ9QC+nImlCtbNNurk/1A8hUGhxax0JJjV6E1zwNj98YQb7ASSDzSI2H+BIS9D8c0Aqww== X-Google-Smtp-Source: AGHT+IHJ0YgxVpjB1FkbOFaeU8DRmsJHu+LkXxz2l9c8JJmCJ21r+e6kh2rr1aUIVu4bqOO++3ff X-Received: by 2002:ac8:7d8c:0:b0:441:37a6:7c04 with SMTP id d75a77b69052e-44216b37e59mr29765411cf.55.1718374011204; Fri, 14 Jun 2024 07:06:51 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-441ef3d96d3si37391541cf.204.2024.06.14.07.06.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 07:06:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=efEEpRor; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-214991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A96591C216B1 for ; Fri, 14 Jun 2024 14:06:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E5E1BA33; Fri, 14 Jun 2024 14:06:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="efEEpRor" Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2076.outbound.protection.outlook.com [40.107.237.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6245E7464; Fri, 14 Jun 2024 14:06:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.76 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718374002; cv=fail; b=SPMVq+Hluawhtc/ro2cHBim+8YUpr0VDwbbfHraTV30sbdSPS1B3p1JU/A0TiFJqKnJBQG00clFoiRWliihobMGnBDm2/U/K0Hs9sKUG4yWzFAgJ5bLzE4zBvnWn/Sty6WTm8henSje/SS2VJaBMTe3z55xCQcjddRSTSGv7j5M= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718374002; c=relaxed/simple; bh=GVZztyhdyUTnpT12NHFMnS/oZrQHG8Xv6PNO0i++EPo=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=h4upteTDetfQ+ltV7u8KzoWxfJ/2I1yQIPfZdERqR1rUM2PVWLR6OEQCJ2JZnAFFtHO4HueuYI4ZVioVyJQt8UMSnWpOeE+Yku4PgnpxMUVMTs5kqqRLBAp2XYO/cwzIkESXbNdubIrkKt5dVJKSHKji349zYoAXNjzOR5/oNsA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=efEEpRor; arc=fail smtp.client-ip=40.107.237.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kbM6rEdfLGs49kD82BgP7j+LBZG8rH1hhL+M4vK83f7Ay5U/2SL7fzX1ctzVp1kmwN+lOwdd5ddge4PVkojx0ACKsc2GX0VJOE8Hz80sno4HC1d3jdAw9BoO5bONazNtGy/blAiLad9UASfT+juQfk0HlAuAU8cKkmcQHpKvH5JUmi7fijoL3IeQ9sUwOuSTicMh5P1MQsCvxeGvb6gadbLZsgvO8magWQIcOAIphgcsrsz2JOpxaJauu28eXdk7jLVcO7PheX4geQvNIODTr5bFgx2O67C7ElDHQfSx3chvfkeY0V/ZdmhqnsMWZbo3aRgLb4swC7dILMe60+QJ3g== 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=5RLh9Anf1ZfoOXtJF0X1Xz9qe+njWPaPngrM3HBY7po=; b=ATiaRU4H3RKT7ZPobbBRyUXOd1M0fHnKY7KoYWmaQf1GnAMbtcGSTU1DQ4BlS6ygUkFUh3b4j2tyCh0NnO/UqjOE7nve+L8ssiULPtMEVSQQSC53xKLrHUpX3d7yvAW2KRTGAmXthGsXhzVFUWav5nBKMvVValXwUSINV4XFuQxJrTa2fY3aNVgxzNiUCj0opb+dCGhwP9Jgo4NVhUWswKzWPLxmQaMVv52xZ6kYzF88RwU5u0QBfPFPZUUA9RSvKlifxtv9m2jJqc6j5BHUBOhF9PgSWZGtoXeuivvZRWrNmvkCDUcQmkTp3FWdHIYZrUUUhiyAp6K+B4TwDG5Jcw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5RLh9Anf1ZfoOXtJF0X1Xz9qe+njWPaPngrM3HBY7po=; b=efEEpRorLOkoeAIVomBode5gQBzT4qoYxOtoK+HcEHVL696nLJnAconGHvz1lICBh4zNyHm3SVSJOpd7AYkqfhkiLXolOTEBpCk+TvefHi8Ra/KltcQAf7Pix7/hZU38o23yL1/kxFn0KuJSif/0tIH1hLD3UQzIjXxBp86Gk7U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) by PH7PR12MB5805.namprd12.prod.outlook.com (2603:10b6:510:1d1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.26; Fri, 14 Jun 2024 14:06:33 +0000 Received: from BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::bf0:d462:345b:dc52]) by BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::bf0:d462:345b:dc52%6]) with mapi id 15.20.7677.024; Fri, 14 Jun 2024 14:06:32 +0000 Message-ID: <8efff872-7843-2025-dce2-a5dcdbf31143@amd.com> Date: Fri, 14 Jun 2024 09:06:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCHv11 18/19] x86/acpi: Add support for CPU offlining for ACPI MADT wakeup method To: Borislav Petkov , "Kirill A. Shutemov" Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "Rafael J. Wysocki" , Peter Zijlstra , Adrian Hunter , Kuppuswamy Sathyanarayanan , Elena Reshetova , Jun Nakajima , Rick Edgecombe , "Kalra, Ashish" , Sean Christopherson , "Huang, Kai" , Ard Biesheuvel , Baoquan He , "H. Peter Anvin" , "K. Y. Srinivasan" , Haiyang Zhang , kexec@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-acpi@vger.kernel.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, Tao Liu References: <20240528095522.509667-19-kirill.shutemov@linux.intel.com> <20240603083930.GNZl2BQk2lQ8WtcE4o@fat_crate.local> <20240610134020.GCZmcCRFxuObyv1W_d@fat_crate.local> <20240611194653.GGZmiprSNzK0JSJL17@fat_crate.local> <2kc27uzrsvpevtvos2harqj3bgfkizi5dhhxkigswlylpnogr5@lk6fi2okv53i> <20240612092943.GCZmlqh7O662JB-yGu@fat_crate.local> <20240613145636.GGZmsIpHn16R04QlaN@fat_crate.local> Content-Language: en-US From: Tom Lendacky In-Reply-To: <20240613145636.GGZmsIpHn16R04QlaN@fat_crate.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA0PR11CA0003.namprd11.prod.outlook.com (2603:10b6:806:d3::8) To BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5732:EE_|PH7PR12MB5805:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c11dd07-a9d3-487d-7b32-08dc8c7b31cc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|376011|7416011|1800799021; X-Microsoft-Antispam-Message-Info: =?utf-8?B?bzhmd0RoanVqR1F1TC9UWUw3OTNy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LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5732.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(366013)(376011)(7416011)(1800799021);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZlFQUHZwVStuSmR4b0VmMXBjZys4TXAwRUU0UFVKclh5NXV5WklJMWRxQjFR?= =?utf-8?B?K093bExKL09tUDA4bTE3ZHNKVHA4UUR0akQyV2NPUkZ6N1BYdE1Gd2szMW9Z?= =?utf-8?B?MjJPbzNNTnQzVk5qRGFPcmpBSVB5MEdlMTBJS3pPL1o4UEpyRlhPVmlWMTdT?= =?utf-8?B?Y1duNlFkbEFKU1ByRk4wcWRZNlFOc1E3ekgzalRCL3Y0Qjd0a2xzbFFwWEsx?= =?utf-8?B?Mll0a0tDUE1qVHZaY3R3RUhpK3QwNFh5bVpGT1dMOXVyNUhmb2pYOGdxNWhm?= =?utf-8?B?NjFXV3pIUnhKNktiTFo5Qk90ZlJyeWFHOTBkVVArbHdjdW1CbEpMMW9vMFFS?= =?utf-8?B?Z3NHakdzTWpUT2M5VGUyMHJQYW0wWk9aZUVDRmxRckxEUHBqZEhUeUtOTkFL?= =?utf-8?B?YThFbGNQSnpzRkdmckdBb3NKU1RUSmxMZlR6ZDlEcFI3Rkp2OVo1dENvTDg1?= =?utf-8?B?d1BwdHR6RTRlaHVpTHYvRGFaRnB4M0hreHFGaWZIMWt6bWxidnMvYU5kTzdh?= =?utf-8?B?VXRQdFdXWm1MWVlqbjZmQ1lyV0twSHB5SHpBRXlaRURHOHdXelFMSTBaOUpY?= =?utf-8?B?SzlMOEFRV0JLQmtRaXVDREFyQUplcUczZTVlV24xRmRqZ0VieTFLNVRPbi9Z?= =?utf-8?B?M0QzbUNLTG1NNndqN1orNlprczAxR0pGbXI0MUJFZ3VyVXJtU1VQZmNEZFZ5?= =?utf-8?B?OTcwT0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= =?utf-8?B?MkhYWGIrdkh6ZStJckZWT05yMEtEajVmMXlXUEVVOHhrdEZBTzIrZDRpa3RF?= =?utf-8?B?S0hFbW1mUnZPV29YVEgvSzFFK3d2YVRRVjlzMVdqaHNsUnJ0QzVGWjJwM2tm?= =?utf-8?B?dlNZd0RBRjVic2V2VFE2c1ZaeTdJelhSVmVnRjB6cHVTYms1T0JWRXJIcS9Y?= =?utf-8?B?eWdKaEJsdG0ySUcraWxFMmdQZEpyRkJlRGtBRkJhOHRyaWZjdkVPc2hIMlFq?= =?utf-8?B?V0dOQVQzYnR0K204Ukh1L25jNnNsL3R1SWVQRnVpT3RmanBWS2FtdVFHVlYr?= =?utf-8?B?VFgzYllMbXFRY096bEJpSXkzRFA5NE5nek42SGNDOU8rTmdtckNGWW4yN00v?= =?utf-8?B?YmYxQ1ZZT2JXSGU1TVU1Z3pLTlA1WUFBczI2Kzh1dWNMSWJ5RjlzMFNxK1VL?= =?utf-8?B?VlNJdVVNdHpBNjJOL0VQRVdSdks3bXZlQkVrdWNuOVZLSS9XQUxIYkE1aG9T?= =?utf-8?Q?/frAGsg28rE+8RL9Ej1A9lIaF?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c11dd07-a9d3-487d-7b32-08dc8c7b31cc X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2024 14:06:32.5614 (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: Zy+6Qy/Rpf+7zbB4ef6qGf0oK8kp/RSrKQxpBEFZazKmvyrVrwuK+LMezPuOuFTSmbWDHEkyFarxOAzCPwW2LQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5805 On 6/13/24 09:56, Borislav Petkov wrote: > On Thu, Jun 13, 2024 at 04:41:00PM +0300, Kirill A. Shutemov wrote: >> It is easy enough to do. See the patch below. > > Thanks, will have a look. > >> But I am not sure if I can justify it properly. If someone doesn't really >> need 5-level paging, disabling it at compile-time would save ~34K of >> kernel code with the configuration. >> >> Is it worth saving ~100 lines of code? > > Well, it goes both ways: is it worth saving ~34K kernel text and for that make > the code a lot less conditional, more readable, contain less ugly ifdeffery, Won't getting rid of the config option cause 5-level to be used by default on all platforms that support it? The no5lvl command line option would have to be used to get 4-level paging at that point. Thanks, Tom > ...? >