Received: by 10.192.165.148 with SMTP id m20csp663712imm; Wed, 2 May 2018 06:54:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqmie0htBU6QdpuqMJs1UPz6DXhnjN9r9zORB/79jlLfPKjncS8sic0S1o7wrXr8RJ8OJtg X-Received: by 2002:a17:902:598d:: with SMTP id p13-v6mr20254870pli.191.1525269293433; Wed, 02 May 2018 06:54:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525269293; cv=none; d=google.com; s=arc-20160816; b=Ivp7F444xMiDEwekbNyyiiVBnavJ9OmhYi85/LDch3lbsYg/R8sJhs+76Gt7rMEYKW A6i54JDjt5krHXkl9yIYsh7xCfXpgw0pqvsNONCGB86K/984Cy/pbRYil3GlvDBDaghM 3+GVYjVLkpwMoQhDSQ7jWJPMo/fCVPdLbw3KaINZ+vlZbVelysD1+ew3tKLfk022m9bd vrktAZPNbEBU9X8j2SqDPgwzUTUB5x6iYD+Jp6PleW5KQK5aiHjLWZoZxTCDql05LZEH HKJv6ynH/wsBpAXBtsYmfWO55QWJdVSBK5zqyUgJyN/ju2KsVkTsPLzSI6cfxOccEPd6 Ag0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=9wH9k1ftuHoN3tDC46JMD+SZD9Rt3Ct0MgBwoByFexA=; b=Mm+ayLwpECokJN6uvJdtY3mQ8osf2d/HwCtJFyvfLf1PrrkwcpxgHzy9sdtXhTamNT ZByrCxK2P7h1dTLeiFZAGxSIR+clq2ORdoZdV5T5HAH8P1jgWNMAK/md8xuXEDto8As/ Jvok24C4Uf0LCEiiCs69XLsEJok7iBqcL4ZB6WOMebmS6+epIeuLpdSI7HmbFjXGGsYq eeLxFp5vnpkqKD9BuYu9wSme2blhIo2Ey3ujkrWz4owc2ST0qgPc9Ra0lZCr3PpKHbMp 25DsEWzh6d+mgYqJdRrfwbkYEKsU2sZW21NAg3NasLebsCptACfllFn+u9O/l8pOKy6n 2beA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t144-v6si9546054pgb.94.2018.05.02.06.54.39; Wed, 02 May 2018 06:54:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751391AbeEBNws (ORCPT + 99 others); Wed, 2 May 2018 09:52:48 -0400 Received: from foss.arm.com ([217.140.101.70]:59062 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750921AbeEBNwr (ORCPT ); Wed, 2 May 2018 09:52:47 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E65921435; Wed, 2 May 2018 06:52:46 -0700 (PDT) Received: from [10.1.210.88] (e110467-lin.cambridge.arm.com [10.1.210.88]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CEE9F3F587; Wed, 2 May 2018 06:52:44 -0700 (PDT) Subject: Re: [PATCH v2 21/27] coresight: Convert driver messages to dev_dbg To: Kim Phillips , Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, mike.leach@linaro.org, robert.walker@arm.com, mark.rutland@arm.com, will.deacon@arm.com, sudeep.holla@arm.com, frowand.list@gmail.com, robh@kernel.org, john.horley@arm.com References: <1525165857-11096-1-git-send-email-suzuki.poulose@arm.com> <1525165857-11096-22-git-send-email-suzuki.poulose@arm.com> <20180501225503.a55fb963795afb40163f3763@arm.com> From: Robin Murphy Message-ID: Date: Wed, 2 May 2018 14:52:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180501225503.a55fb963795afb40163f3763@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/05/18 04:55, Kim Phillips wrote: > On Tue, 1 May 2018 10:10:51 +0100 > Suzuki K Poulose wrote: > >> Convert component enable/disable messages from dev_info to dev_dbg. >> This is required to prevent LOCKDEP splats when operating in perf >> mode where we could be called with locks held to enable a coresight > > Can we see the splats? Doesn't lockdep turn itself off if it starts > triggering too many splats? Without some very careful and robust reasoning for why the condition being reported by lockdep could not actually occur in practice, "avoiding the splats" is far, far less important than "avoiding the potential deadlock that they are reporting". >> path. If someone wants to really see the messages, they can always >> enable it at runtime via dynamic_debug. > > Won't the splats still occur when the messages are enabled with > dynamic_debug? > > So in effect this patch only tries to mitigate the splats, all the > while making things harder for regular users that now have to recompile > their kernels, in exchange for a very small convenience for kernel > developers that happen to see a splat or two with DEBUG_LOCKDEP set? FWIW, if "regular users" means people running distro kernels, then chances are that they probably have DYNAMIC_DEBUG set already (100% of my local sample of 2 - Ubuntu x86_64 and Arch aarch64 - certainly do). Either way, though, this particular log spam really does only look vaguely useful to people debugging the coresight stack itself, so anyone going out of their way to turn it on has surely already gone beyond regular use (even if they're just reproducing an issue with additional logging at the request of kernel developers, rather than debugging it themselves). Reducing the scope for possible deadlock from the general case to just debugging scenarios is certainly not a bad thing, but as you say I think we need a closer look at the underlying issue to know whether even dev_dbg() is wise. Robin.