Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp288399pxb; Tue, 12 Apr 2022 01:53:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfgrYWQa6MPPABJTEy2i5L699DHQl1LUoLefYI7Oh292go5nmTq1cKg1hsFK1VY/Jx6yvu X-Received: by 2002:a63:1f55:0:b0:382:65eb:3073 with SMTP id q21-20020a631f55000000b0038265eb3073mr30426820pgm.624.1649753610775; Tue, 12 Apr 2022 01:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649753610; cv=none; d=google.com; s=arc-20160816; b=Gb86sBLPgOHLuN+4pCx1AU7CSQmwRjUM1EyJ2zv50gG/2mldBq8QKPKbWbfeUTsHyT sqUa7XAPqKNebsklmKATUzmT417bG0bZbWvcQxLMkAjszJJyd27wlHffW3k0g1Nzl63f yDLZMqMzvMVlZDDS2c6mq8FdBU1kqT1Y6QHjy3nX/FU4NJKq80TxtSpijWKNTNRlVeuQ NpErvaVvtALD9dq5yvrRMMTjOuBxOZ6wlMH8lM6gP/q7+0ZVR84IB897jDAGPf3TEOXY 3WKFCl/Wh20xfopEQ7VNHdNHVgb+RD55pc/DTyy2K+WoP7tJRk/gZzfXO+DRIP4vOimp Zbag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:to:dkim-signature:dkim-signature:from; bh=FF23cSZ1l3Y5yPotVlxMxAKU+a4XmyD6dOumhinfpP4=; b=p5DNnDKs/qqnemLec3uHykLF/XixFqkiRfBXvZ78H/LQz5i3y1ns6PGRkngJOS7Hzy nnQoiiBVFuse12cDmme0WPy0RJddMnBzvNSAg98quKK66nkHSJ443npk08Hjd2ZRHgUU 5Q2uFj6gI9APh+M+fIYWZNQWPyrEaf5CPGbAyYRdQ2Unwc1HTfNM6cgBdb9J4BQVr+o/ iXCO1sx8LCc3PEuKmG7SCd+0w5jiWc8p8sPZh7un9rTuRzb0loCk9dDa105Pmm3JccfI w2hfRgZwS2YBbl7o/sivtH/g/x1jjwaSujZEt4grt/eYiZDfpOF9on3+vJTEXzl0AtMT bdyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=idd97FJ9; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a17090a1c1600b001c6cf2d1b0csi14102804pjs.126.2022.04.12.01.53.10; Tue, 12 Apr 2022 01:53:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=idd97FJ9; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240111AbiDJTmm (ORCPT + 99 others); Sun, 10 Apr 2022 15:42:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233614AbiDJTmk (ORCPT ); Sun, 10 Apr 2022 15:42:40 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59DF846B01 for ; Sun, 10 Apr 2022 12:40:27 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649619625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FF23cSZ1l3Y5yPotVlxMxAKU+a4XmyD6dOumhinfpP4=; b=idd97FJ9/26MIUh5k3HejD2ofr204yiAixCK4spN/qliyMrOa6rGE62+4KS6AeNDWjWyxx k6YDCQ12aTM01SMMOdxNo2x18c+Ls/r3ESbucvJR2znC+OF0/yAzvddxgJuhWgPKFFIxiD NBF14DLSCs1r9YAOWHnhyVNnZy3UKjBWqAsd+r2jBvJ+JQFUiDcOZqIVrAJnl1t4IsxZi8 8JrDGBhhDyt3zWn8B6WAKnq4zesXO17nafwjMk/v4A+ZfCWuenCVhEoOdWtcNWiZbHY4nm MMLlsVztvRvZsKG7dhTQbRKHrzQ2xI4+upZiTaf++ROuVcZBtqj1XEIbzveLNg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649619625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FF23cSZ1l3Y5yPotVlxMxAKU+a4XmyD6dOumhinfpP4=; b=8y1kmnj6ZiKZCLeRkGK8BKGrhxnktGpECq6XCPfHqYwBMflRJANvDz2bj8uChbHsJTZwiV QertNFdJdM2IJhBQ== To: Chen Lifu , linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] irq: print depth in __enable_irq WARNING In-Reply-To: <20220325013359.2691092-1-chenlifu@huawei.com> References: <20220325013359.2691092-1-chenlifu@huawei.com> Date: Sun, 10 Apr 2022 21:40:24 +0200 Message-ID: <87czhohglz.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Chen! On Fri, Mar 25 2022 at 09:33, Chen Lifu wrote: The subsystem prefix for the interrupt core is 'genirq' as you can easy check via 'git log kernel/irq/manage.c' > Since case 0 and 1 of desc->depth may print same warning messages as follows, > according to the messages, we do not know in which case the warning is generated. > This patch prints extra desc->depth in the warning messages to distinguish > these cases. This patch prints? The patch cannot print anything. Please read the patch submission notes in Documentation/process/ including the tip tree specific rules in Documentation/process/maintainer-tip.html > void __enable_irq(struct irq_desc *desc) > { > switch (desc->depth) { > case 0: > err_out: > - WARN(1, KERN_WARNING "Unbalanced enable for IRQ %d\n", > - irq_desc_get_irq(desc)); > + WARN(1, KERN_WARNING "depth %u: Unbalanced enable for IRQ %d\n", > + desc->depth, irq_desc_get_irq(desc)); If we change this then we really want separate messages which makes it clear what this is about. Something like: if (likely(depth == 1)) { if (WARN_ONCE(suspended, "Enable of suspended irq %d", irq)) return; .... return; } if (WARN_ONCE(!depth, "Unbalanced enable of irq %d", irq)) return; desc->depth--; Hmm? Thanks, tglx