Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1596625lqt; Wed, 20 Mar 2024 08:31:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6lKswo3gTf6pKAVW9yIEWFDibfmzz7jW2dB4z5ksp6QF7H0oXmQGtRz7t8Vyny5XnHQmrbj3rIUnKiB/Ct+3biQ/7bCWsI0FVmJmmxA== X-Google-Smtp-Source: AGHT+IHsUgE7AsVjpotzghNazg+MP3X24tkTMusAftlbHGHRGzWsx+a4Eb9r3bNZ/GpWaJfaATN0 X-Received: by 2002:ac8:578c:0:b0:431:5a3:16be with SMTP id v12-20020ac8578c000000b0043105a316bemr2264785qta.19.1710948676478; Wed, 20 Mar 2024 08:31:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710948676; cv=pass; d=google.com; s=arc-20160816; b=IuJMlN9kxnaKKyJ26AixvD1cJ3pnLMNISMzIg3jbiCIy/UfxZVoz6fCENOh+4Dq38g gWMtAuehFf5XmOi2UOcqC9VJqpYQWqO6n2P/CVI37R3IWGHVw/t+n+EEzfStrtFOk3yT awqZ2kSbeYV8XnlaSSc8666OK3XwEFf09LodRZ8HuY3ni74BONzhb3SoDHbHO6ZmCEH6 Ee8msimixN3sUhpF6+/3J9dt/Yim5uFaYPYZW9F/9SJOP3FvLSt3q3kP82UEfj69h91b 0kc4t2Q5K5aj/jFSJRxWL+s9TwS3SKGen+MKXVyceysJFs62/mMb2pn0/xIaFNAUytkH g8Cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=7ODmn6QhjYNwUQWyDrbXcrHjO+RhMB3bR+hRtwZO/XY=; fh=1+Axs5/EhnwVRQKh9zrLxx6jHA9xc6WoN5DUI40r8Iw=; b=NH21CfDits1onth67iE70HUew+5GEuJUVJnlz1UniTh39aixnzWRl5FnE0Q+frMXyx YtAMQ/9gA2RNFb/w5fTjUU/aj9tjLQwEh4L1P0sssm8thLr8mZcenEmUbAcuYsA4boLW JHW5j0xD+2igrpxQxoVA7EXeaUz3GzKgFl+btfm5E59MOrX/k6mHRLWBd9/Zk6Z9aa/W h3WUr9VQVP3HSb51w0eSlzpBtfJDHXMqD18QBUBLLx4y1mStUKn7f4JYWrczK0xmawHz cgiOH6uT4s59QKABtlB4sqsIrC9dSFFGIh9omYhTd8Qxptw8H5Si0eYVZhql9jI0jPJ/ lbDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BJ1LsM5U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-109102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109102-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v14-20020a05622a188e00b0042edf0fdcfbsi14428969qtc.362.2024.03.20.08.31.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 08:31:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109102-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=@kernel.org header.s=k20201202 header.b=BJ1LsM5U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-109102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109102-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 35DE11C22541 for ; Wed, 20 Mar 2024 15:31:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60F4752F7D; Wed, 20 Mar 2024 15:31:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BJ1LsM5U" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 883C4524AA for ; Wed, 20 Mar 2024 15:31:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710948672; cv=none; b=Yxfk9X13b/8oZ9UsG2ImawQ8Ygyn6YwgnNB6pt9J1ldBRulCsnB05L9RPD67NXmfrDv6rM5miPnzMmCkxFi8ch8jqU2cDZjq5wnD6wTuupA3ZYrtZH9AMEjtrn02jjYt+tL8YcJwPjlvTgksrKnS4HmkcTs7ycql/UabMdz5zTU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710948672; c=relaxed/simple; bh=DuChraJXAL4NIGvlfbTG7149olXv38OG7LqUQoDJ9co=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=q0ByqnjN+0Ew/6NVY8n+TLL/4aDHIrZZbv4RW98kv0HsoLRFVXVkfo63SVMKjtaNio5zzePRahl7+iYBAmZcdUTrYuiv2mViV8cuhR1WTzg/QxwntkHmgsxYmGbwfEuIlbyPewRY/E7RHKVcZ7XwaL/CPT8XUisX+CrwkGddHWI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BJ1LsM5U; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF6D3C433A6 for ; Wed, 20 Mar 2024 15:31:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710948671; bh=DuChraJXAL4NIGvlfbTG7149olXv38OG7LqUQoDJ9co=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BJ1LsM5UzFFYVovh1Z0/3+jEsCK9ZPdkvzH9TpRNLL3csInnK8WTg0ZuM3Y9xQjTS w3+fNMRXHMxYFFl12DnI2Zcil/QDbQq0ao3wxAfsYaOgPiDQQLh3NqmBMWOVoYbvc7 AXCo2lgLs1ep8NnYtUUGSswAMQxjr/P6Qkn1c1BWfNa/ClTQg/hbzGvFgSAzxn5E7s yaUC/OH0K/nbuDZRSS5sOgpRh5x6THj2se3KAQ/2X6GPmfWR/PyvzofljLGGWVP4v6 ZdNbcOOeCfFAYPdLnM9wsPIhLyReCtoUkC0DeLYcwE5dy92g33BKJd7AyizmyOpDxQ 3kJEp3lqEqpwg== Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-513e89d0816so4502184e87.0 for ; Wed, 20 Mar 2024 08:31:10 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWLlYIrlwvQCDMViIWr0a8JsteFc9ZcOcDWfwj0Qjy4w58FBvdDvu11YXGFWUX2MXSbvvEnf58C9bUtJzb0dyqMxsIv3m+uIvHMntTf X-Gm-Message-State: AOJu0YxuZswtjVzFf1YOJ/a9ox2BDcZqfPTa4lJcLfy4bgQxZvwk6uzY sIatD1T64USbNhVWoIPJKUnI1Tgxv3QLDvhkZqPMzdNlbdZwhdRKMEi8mZlXATurxzGnPvKopVB xrh/ZhXbQ7dOGuXZ+V6p9X7HGNQ4= X-Received: by 2002:a19:ca04:0:b0:513:d640:ff15 with SMTP id a4-20020a19ca04000000b00513d640ff15mr3930070lfg.28.1710948669647; Wed, 20 Mar 2024 08:31:09 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240204122003.53795-1-masahiroy@kernel.org> In-Reply-To: <20240204122003.53795-1-masahiroy@kernel.org> From: Masahiro Yamada Date: Thu, 21 Mar 2024 00:30:33 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86: select ARCH_WANT_FRAME_POINTERS again when UNWINDER_FRAME_POINTER=y To: x86@kernel.org Cc: Josh Poimboeuf , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ping? On Sun, Feb 4, 2024 at 9:20=E2=80=AFPM Masahiro Yamada wrote: > > It took me some time to understand the purpose of the tricky code at > the end of arch/x86/Kconfig.debug. > > Without it, the following would be shown: > > WARNING: unmet direct dependencies detected for FRAME_POINTER > > because commit 81d387190039 ("x86/kconfig: Consolidate unwinders into > multiple choice selection") removed 'select ARCH_WANT_FRAME_POINTERS'. > > The correct and more straightforward approach should have been to move > it where 'select FRAME_POINTER' is located. > > Several architectures properly handle the conditional selection of > ARCH_WANT_FRAME_POINTERS. For example, 'config UNWINDER_FRAME_POINTER' > in arch/arm/Kconfig.debug. > > Signed-off-by: Masahiro Yamada > --- > > arch/x86/Kconfig.debug | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug > index c5d614d28a75..74777a97e394 100644 > --- a/arch/x86/Kconfig.debug > +++ b/arch/x86/Kconfig.debug > @@ -248,6 +248,7 @@ config UNWINDER_ORC > > config UNWINDER_FRAME_POINTER > bool "Frame pointer unwinder" > + select ARCH_WANT_FRAME_POINTERS > select FRAME_POINTER > help > This option enables the frame pointer unwinder for unwinding ke= rnel > @@ -271,7 +272,3 @@ config UNWINDER_GUESS > overhead. > > endchoice > - > -config FRAME_POINTER > - depends on !UNWINDER_ORC && !UNWINDER_GUESS > - bool > -- > 2.40.1 > --=20 Best Regards Masahiro Yamada