Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4406189pxj; Tue, 25 May 2021 07:19:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz39FZIRSAub63piLiFYhtCzq53qaUeFtVWC2DaTfLL9HnNDc0AQ20HeM6X06XQ4yog679D X-Received: by 2002:a17:907:3f8a:: with SMTP id hr10mr28417318ejc.137.1621952375961; Tue, 25 May 2021 07:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621952375; cv=none; d=google.com; s=arc-20160816; b=BoZUAdzJ5aqqezL9asZSxRvtSJFXws0uNHu0wP116kYNeNphJcAJMXw8OtV9fvClGF ZE7TliJJmk8eL7n1CzuieLVigU06VkHSP/fa4aH+U5Pyomt7m2qzU9/f91kB8KP1CZMn uuuK4lo/nDV7tevTv30W4dNwSwA4ChJJUHH8CpbVKEYwGIBxw0gjd8UVfeUBi8p6t1Km NiswgqO3kZYiJY/lDSxPXv4oHKrQav2gZ48cuXGkWLkFfHa2jJVnuwxxt/kD4fDQEMZN Vc+Z+NaTBYQ8mIAsb+R+xufn1vUO3DKC6A5GdMkKko1tAH9rSY1dZqYWd3H5RHA2wKeN UqCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from:dkim-signature; bh=nlqULTQKgpp23k3zz821ZdlDSBodLG51nX7mC5euY1A=; b=lBA4ONEIVbPGbYONeBcbD1drUJiy6EVpDb0em1ny1FjHrH+6CDd/NxitoP7GlxXPDu x/oXIAQ6hdzQYUjyLVVhxP4YScw/5/8KCIJr1MEXEMJp4QJMq/13uVI7vgX0czuTJvwk j3QqewmKOBDgcLxvTP/42TS+GKWdo0Bo3kKMY0rlfZltFeX7T0BuJp4+2eUf4AGBfTB7 uAmD+QdGQRzLOCDp+VHBx1pk57j8Yg5S3/qYIdLYbaMywZmdovUQmWhIXR6Ja6Cmp9iV j3NqV+5GixKGre6UCar8R9H5pHr2ioUgzhZCgHqIMupWM7pwtbB2dPC6GnbKSdKO8nU8 F9kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bgTOBlUq; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si15848923eju.260.2021.05.25.07.19.12; Tue, 25 May 2021 07:19:35 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bgTOBlUq; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233762AbhEYOR2 (ORCPT + 99 others); Tue, 25 May 2021 10:17:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:43491 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233756AbhEYORZ (ORCPT ); Tue, 25 May 2021 10:17:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621952154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nlqULTQKgpp23k3zz821ZdlDSBodLG51nX7mC5euY1A=; b=bgTOBlUq8wjAAoWXAxN/yPI4xSeBSrqtRkXFeMR0Ws9hyrIH4lm5dsFRuLahOg8z6+o4IF dMFmAVUVivgI16Fej+hxUMgNNj2/0QWIaffuIMptSUP1IVF6oO3/0O4sTrQfOx+jAaJwxT kkedZNRRS/4HLfhvJ29QrBiLT6hBFXE= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-221-0-TFQmi6Ojml9VDPpZDUbQ-1; Tue, 25 May 2021 10:15:51 -0400 X-MC-Unique: 0-TFQmi6Ojml9VDPpZDUbQ-1 Received: by mail-qt1-f198.google.com with SMTP id h7-20020ac846c70000b0290231af0e7829so32348qto.7 for ; Tue, 25 May 2021 07:15:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=nlqULTQKgpp23k3zz821ZdlDSBodLG51nX7mC5euY1A=; b=JaeKPkpAHwXFCqR6ZRMZ18n04l9lNKfgdFPv4Ty6pTmZ9E/CeeXsnIrnjAEQVyBaVh ZhUTdvTCRg42gepLPCuKRTSajUwwEHOC9wJZvLIer3jwgUSCibuD9xyTi2gd4nyhcDq+ bGRWzGp444DdVr6o0XelJIcn3tvYPh2/Tk7Nh0iKxZWNS6H3Kjk1ySBKRp2iD0mEpIia t/hXy5U48pJbB3w2EVTJ76gk8vP6RWbDabg3BKR5dzoIBpYLv4mYeoW5lJzBV71XCUdr mjazQLuYyid7G9AaiHqKUR1q4lubgwYznPowWZVFBrKyBEnxExvKPa3OqubM01xXd4w9 LeuA== X-Gm-Message-State: AOAM533QFMwUMaDVbq/z+oCk4ELzunEuZcixXOZgLVpqK9b/3pK/urix iC1CDEwbn3H5TMRFsrrhp/zF15S6lNdHlG0W7wGP5yS3oldONtwAvcuVdVmYwWUlNXlVWCTAu+d GzTpJ18fw7TMY3OQjfjs3ErCA X-Received: by 2002:ac8:7757:: with SMTP id g23mr31954677qtu.46.1621952149697; Tue, 25 May 2021 07:15:49 -0700 (PDT) X-Received: by 2002:ac8:7757:: with SMTP id g23mr31954652qtu.46.1621952149414; Tue, 25 May 2021 07:15:49 -0700 (PDT) Received: from llong.remote.csb ([2601:191:8500:76c0::cdbc]) by smtp.gmail.com with ESMTPSA id i10sm13315446qko.68.2021.05.25.07.15.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 May 2021 07:15:48 -0700 (PDT) From: Waiman Long X-Google-Original-From: Waiman Long Subject: Re: [PATCH] LOCKDEP: use depends on LOCKDEP_SUPPORT instead of $ARCH list To: Randy Dunlap , Waiman Long , Ingo Molnar Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Johannes Berg , Jeff Dike , Richard Weinberger , Anton Ivanov , linux-um@lists.infradead.org References: <20210517034430.9569-1-rdunlap@infradead.org> <1284b997-b9da-769f-2d36-4d4232c7df88@redhat.com> <8a4ee5be-ad5c-ca06-dd1a-aa13ccc94906@redhat.com> <09243238-94ba-caca-441e-3fdac0154822@infradead.org> <3a0fb04c-c640-25db-7e7a-fbdd3b4defb5@redhat.com> <0213cd4e-e832-f768-106a-345e77ce2665@infradead.org> Message-ID: <38797295-8c65-814a-c550-298da324b988@redhat.com> Date: Tue, 25 May 2021 10:15:47 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <0213cd4e-e832-f768-106a-345e77ce2665@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/25/21 12:18 AM, Randy Dunlap wrote: > On 5/24/21 5:05 PM, Waiman Long wrote: >> On 5/24/21 5:41 PM, Randy Dunlap wrote: >>> On 5/24/21 2:31 PM, Randy Dunlap wrote: >>>> On 5/24/21 2:04 PM, Waiman Long wrote: >>>> >>>>> Is it possible to just get rid of the 2nd depends-on statement? >>>>> >>>>> The 2nd depends-on line was introduced by commit 7d37cb2c912d ("lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTER"): >>>> and I should have looked at that history too. Thanks. >>>> >>>> Yes, I agree, we can just delete that line... >>>> >>>> I'll send a v2 and copy the author of commit 7d37cb2c912d as well. >>> Hm, as I review that commit, I have to wonder if the previous 'select' >>> was correct (if we disregard the Kconfig warning).  If so, then >>> FRAME_POINTER is still wanted/needed for some arch-es. >>> >>> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug >>> index 2779c29d9981..417c3d3e521b 100644 >>> --- a/lib/Kconfig.debug >>> +++ b/lib/Kconfig.debug >>> @@ -1363,7 +1363,7 @@ config LOCKDEP >>>          bool >>>          depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT >>>          select STACKTRACE >>> -       select FRAME_POINTER if !MIPS && !PPC && !ARM && !S390 && !MICROBLAZE && !ARC && !X86 <<<<<<<<<<< >>> >> AFAICS, enabling FRAME_POINTER is a debugging aid as it enable more precise stacktrace. However, not all archs want to enable FRAME_POINTER because of LOCKDEP. Now you are just letting users decide if they want FRAME_POINTER or not. Maybe you can modify the help text to mention that. > LOCKDEP doesn't have any user help text. > > For FRAME_POINTER, when ARCH_WANT_FRAME_POINTERS + a few other conditions > is met, it seems that the FRAME_POINTER help text is good enough IMO. > > help > If you say Y here the resulting kernel image will be slightly > larger and slower, but it gives very useful debugging information > in case of kernel bugs. (precise oopses/stacktraces/warnings) > Right. I am fine with that. Thanks, Longman