From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44D38C04E69 for ; Wed, 9 Aug 2023 13:50:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231972AbjHINul (ORCPT ); Wed, 9 Aug 2023 09:50:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232228AbjHINug (ORCPT ); Wed, 9 Aug 2023 09:50:36 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3669C1BF2; Wed, 9 Aug 2023 06:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Yst4B8hD/79MvOiF+5jRhmcwmW6MZ3WcmPh0i3Qo7GI=; b=eEvJyL8PbwGPUTKsMVl0u6B/Y6 +4+5cPPONCvyflJvBQ+VaTti1/aTTC5G7U+ozCA9csJzELMe6OL4WlAqRGEVnkfego00LlkCIqqTA UQuODJmsDl/TcSiyo8n9z5FWWAkIzRefYv4nnqN8C2996h4bPvuHBYdXgq5NR4PEoZ3zi7jQY0c3e iLdY3UY3GroItDuiZ8RLxGENTD2EZnyRLmjsSczT7J2HuPPLdRwqBT8/Xh8iSIF1BjXBhi7p2eVO0 WNn1Pd91X6VW8usw7Pdxnt9vfmIOXKSLpcOVmeCNsl4fgqWQs4ItOOg0MJUl35BbQoNk0hiIVCYHo JjecXlpg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qTjZG-006Vfb-Dx; Wed, 09 Aug 2023 13:49:42 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 1438C30003A; Wed, 9 Aug 2023 15:49:42 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id F340D20208EAB; Wed, 9 Aug 2023 15:49:41 +0200 (CEST) Date: Wed, 9 Aug 2023 15:49:41 +0200 From: Peter Zijlstra To: Mihai Carabas Cc: Joao Martins , Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Paolo Bonzini , Wanpeng Li , Vitaly Kuznetsov , "Rafael J. Wysocki" , Daniel Lezcano , Andrew Morton , Kees Cook , Petr Mladek , Ard Biesheuvel , Sami Tolvanen , Nicholas Piggin , Juerg Haefliger , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Arnd Bergmann , Ankur Arora , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 5/7] arm64: Select ARCH_HAS_CPU_RELAX Message-ID: <20230809134941.GN212435@hirez.programming.kicks-ass.net> References: <1691581193-8416-1-git-send-email-mihai.carabas@oracle.com> <1691581193-8416-6-git-send-email-mihai.carabas@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1691581193-8416-6-git-send-email-mihai.carabas@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 09, 2023 at 02:39:39PM +0300, Mihai Carabas wrote: > From: Joao Martins > > cpu_relax() is necessary to allow cpuidle poll-state to be used, > so select it from ARM64 kconfig. > > Signed-off-by: Joao Martins > Signed-off-by: Mihai Carabas > --- > arch/arm64/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 87ade6549790..7c47617b5722 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -105,6 +105,7 @@ config ARM64 > select ARCH_WANT_LD_ORPHAN_WARN > select ARCH_WANTS_NO_INSTR > select ARCH_WANTS_THP_SWAP if ARM64_4K_PAGES > + select ARCH_HAS_CPU_RELAX > select ARCH_HAS_UBSAN_SANITIZE_ALL > select ARM_AMBA > select ARM_ARCH_TIMER Uh what ?! cpu_relax() is assumed present on all archs, no?