Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2775483pxj; Mon, 10 May 2021 10:26:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9l2BJEAhgsT6ZDXcdmLsoq29CZiVTYcMoy3d1nATvFaeo4iCECWDv2xeLZxyR44rpBagC X-Received: by 2002:a92:c846:: with SMTP id b6mr18297147ilq.68.1620667587679; Mon, 10 May 2021 10:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620667587; cv=none; d=google.com; s=arc-20160816; b=zfcbBCQXixGRidJJc6T0qQLpOiBV1NSzqUh1SC5k/esp8bM7VBPdQkY+Yhxy9Be3k3 ViCghP0Gkn4edvqdE+ZjFyVQ9eSMhij584Ai1R5zxDUx3fho5hHm81ubrlevi1H0lNXa w1wSLj356rEQr06r1mUMHyztvV+1s/TzIJkJw+56a4ysh0K4gdqhSZQFxUWGNBsaRTGA p4pkpMds60IVwbi1qgua3KyU8MtONKKdIOjxSzGaDTvlIvoi8bxcKCEJl67FAq8uGDIh gMWOeuciYVIgtmsgetc2mpe6rdRNMer+BTYs4gbK4C3qo+vAbqPHvy2gzLq9Zv4vk1LT 26Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=9SXuLvWg3KjN+JqmbvmLSLywnYwrjuAJqCkQskXCj0c=; b=XOZu40ZaeErNqZwzH+46DVi3w3Moi1qTvDGVJCeS1sOVMaC7VwFWZOuXa43YRNV3/M +awmi7r9nnbmwLD5TLc1UDTWdqbKNPTFwGGTFIW3KnT/BlyaryKrQWIW/fKt+RLQfSGm ItaIJFGE376mTpqTM081IfEYzFhprvKfwKhabkHrdACAKmc13I4D15ZTVmsfCqpYPviS 9AXwUzFYscsYWNYSL00nkq9wZ3XRuw5p0AlaVqzRHWxmn27MvyCeer3q1Z08gM2v/A2y EOAqBSwVO0m3Td5balimmP5QiAK0ExrtKS87xSAIasNqg2Ehd0CgY0ABkSdy4HAYpY/q b2kQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si16769622ill.50.2021.05.10.10.26.15; Mon, 10 May 2021 10:26:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232592AbhEJRZ6 (ORCPT + 99 others); Mon, 10 May 2021 13:25:58 -0400 Received: from mail-oo1-f49.google.com ([209.85.161.49]:42809 "EHLO mail-oo1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232812AbhEJRZz (ORCPT ); Mon, 10 May 2021 13:25:55 -0400 Received: by mail-oo1-f49.google.com with SMTP id w6-20020a4a9d060000b02901f9175244e7so3623255ooj.9; Mon, 10 May 2021 10:24:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9SXuLvWg3KjN+JqmbvmLSLywnYwrjuAJqCkQskXCj0c=; b=aR/9/s78mR5UrX+gr0APivX7j3pL1Yg4d20QWgnXxLge7UpwhKXOHBgPpYJUerhbXP nsDi8ugvHIHftDAzkztdg+ybgqxH40asdbNPZsQOeyw5uba+kZUJVGEHo625bQrhyF7A PseN6L9FxA9ou7G+z9DNDCHiXplUKcmK89LIu81nm2GcxgYze/xwTucB9WyaVy6TX/0k VTHpsRCq2NLpW6zLYW7Duny4NqmiYI3OFWLoddfAMOigAWx/IrzdmqzvytNIQBaZNdr+ fjLuNFNHRGFqC6W2ddz0b0LLrp/OA71gXSrvQ53trwH5PmUD4j37IBji2GxVpJpWydCd rO+w== X-Gm-Message-State: AOAM532P5QhTWjMaPzN74AjsfDuRLiFDP5b7BRShUQ2F98lalIu8d5Md scLZz2duDBHkuogX6yRAD0taNliBn5Z8m+lZxNc= X-Received: by 2002:a4a:ab83:: with SMTP id m3mr6209836oon.2.1620667489272; Mon, 10 May 2021 10:24:49 -0700 (PDT) MIME-Version: 1.0 References: <20210426023941.729334-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210426023941.729334-4-sathyanarayanan.kuppuswamy@linux.intel.com> <97e14cdc-ea98-18b8-0c89-db52440a7716@linux.intel.com> <4fa40e7a-bcb2-db0f-8dc5-28728b14377d@linux.intel.com> <20210510172237.GU4032392@tassilo.jf.intel.com> In-Reply-To: <20210510172237.GU4032392@tassilo.jf.intel.com> From: "Rafael J. Wysocki" Date: Mon, 10 May 2021 19:24:38 +0200 Message-ID: Subject: Re: [PATCH v3 3/3] x86/acpi, x86/boot: Add multiprocessor wake-up support To: Andi Kleen Cc: "Kuppuswamy, Sathyanarayanan" , "Rafael J. Wysocki" , Rafael J Wysocki , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Peter Zijlstra , Len Brown , Robert Moore , Erik Kaneda , ACPI Devel Maling List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , Linux Kernel Mailing List , "the arch/x86 maintainers" , Sean Christopherson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 7:22 PM Andi Kleen wrote: > > On Mon, May 10, 2021 at 10:10:24AM -0700, Kuppuswamy, Sathyanarayanan wrote: > > > > > > On 5/10/21 9:55 AM, Rafael J. Wysocki wrote: > > > I'm not sure how my comment regarding the fact that for a given CPU > > > this function is only usable once has been addressed. > > > > > > While it may not be a practical concern in the use case that you are > > > after (TDX), this is a generic mechanism and it needs to cover other > > > possible usage scenarios. > > > > For the same CPU, if we try to use mailbox again, firmware will not > > respond to it. So the command will timeout and return error. > > Right because the firmware code doesn't run anymore. > > The only possibility would be for Linux to put back some code that spins > and waits again, but that would be quite pointless and wasteful. The wakeup function can return an error when it is called for the second time on the same CPU.