Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7728278ybi; Thu, 6 Jun 2019 00:08:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlDokeCJ8Mh534y1U1GkWOapypMKKI6hu8NLmNCifNCkofgQrhM4GOLYp2c773PJqDOblw X-Received: by 2002:a62:2805:: with SMTP id o5mr50948920pfo.256.1559804892455; Thu, 06 Jun 2019 00:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559804892; cv=none; d=google.com; s=arc-20160816; b=p/dfhJ4G2XyKtgdV22R0/1YutD0TKiltBAa0L4WBcL1w3hwCD/9yb+/LnvTNPTU7tP 5mUU+YT1nhQUbtZ1eRimHfl5YVfZqK03pxDH4akLdXwwydJ3a/tkgAqgSon21rF2/8g/ X3l41zjXLqzMz1orOsFgWXCokBK7cVT6XuLS3r/yu1z0RNuPKTWnuQp/AZh0WZ48Niqx v1obOtrD6ZVwK+/X8uQBzOAiU9N5+ocyXjbB21wY1Zcxkm4puFGhar6d1UNtTdVx460m klxapns/vwnlNEAuslelg7+W7OlciiONXlO7qHgw4AQlqb5a+vAQXQbe7BHCqC9sSo0s satg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=4JwiH2cw/7RA4Oi11GJD2rlNyj5KjwNU4wT8L4AKoII=; b=BCQDIPfRzVvo9Eop5+Fe+BnjHFK6NXn06jVeuhUDew86icri5QA8DZXHu51fXf2fU6 C4qxuyPbaDx/fFvntWHVa0ZSr2QncKmymHWcD7cdPmhRzJSWKP+cvpQ+yS2Huh4hJAGx 8Zjjk9/0vSph+Rf4AlfZalIbuVAb3eiTIyrEa0GKW3/SLdJyrA0egYlscTQwtXYTXNA8 Ou/x67pjrdqey6SNkBfYVyyLnpPIN+WmWe+d+vjv8tME2Z69rF4ahBXtWazcsskGY7wJ 36KPwqT+aZClwk2rrPxbxWKPoKS3NOb23gLY4LhaQpNXoHjSeM2L3qOfeh0QyPol9N3W uaqw== 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 m25si1243999pgv.481.2019.06.06.00.07.55; Thu, 06 Jun 2019 00:08:12 -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 S1726744AbfFFHFq (ORCPT + 99 others); Thu, 6 Jun 2019 03:05:46 -0400 Received: from foss.arm.com ([217.140.101.70]:41530 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbfFFHFp (ORCPT ); Thu, 6 Jun 2019 03:05:45 -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 DF821374; Thu, 6 Jun 2019 00:05:44 -0700 (PDT) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 72C133F246; Thu, 6 Jun 2019 00:05:39 -0700 (PDT) Date: Thu, 06 Jun 2019 08:05:37 +0100 Message-ID: <86pnnrgpmm.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Benjamin Herrenschmidt Cc: "Shenhar, Talel" , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v2 2/2] irqchip: al-fic: Introduce Amazon's Annapurna Labs Fabric Interrupt Controller Driver In-Reply-To: <54df139cc6cfef9202be6b945c968c3040591607.camel@kernel.crashing.org> References: <1559731921-14023-1-git-send-email-talel@amazon.com> <1559731921-14023-3-git-send-email-talel@amazon.com> <553d06a4-a6b6-816f-b110-6ef7f300dde4@amazon.com> <0915892c-0e53-8f53-e858-b1c3298a4d35@arm.com> <54df139cc6cfef9202be6b945c968c3040591607.camel@kernel.crashing.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 05 Jun 2019 23:06:05 +0100, Benjamin Herrenschmidt wrote: > > On Wed, 2019-06-05 at 16:12 +0100, Marc Zyngier wrote: > > > Those error messages are control path messages. if we return the same > > > error value from here and from the previous error, how can we > > > differentiate between the two error cases by looking at the log? > > > > > > Having informative printouts seems like a good idea for bad > > > configuration cases as such, wouldn't you agree? > > > > I completely disagree. The kernel log isn't a dumping ground for this > > kind of pretty useless information. Furthermore, the irq subsystem will > > also shout at you when it gets an error, so no need to add insult to injury. > > > > If you really want to keep them around, turn them into pr_debug. > > I disagree Marc. This is a rather bad error which indicates that the > device-tree is probably incorrect (or the HW was wired in a way that > cannot work). But surely that's something you'll spot pretty quickly. Also, you get a splat from the irq subsystem already, telling you that things went wrong (see __irq_set_trigger). At that stage, you can enable debugging and figure it out. What I'm trying to avoid is the kernel becoming a (pretty bad) validation tool for DTS files. > Basically a given FIC can either be entirely level sensitive or > entirely edge sensitive. This catches cases where the DT has routed > a mixed of both to the same FIC. Definitely worth barfing loudly > about rather than trying to understand subtle odd misbehaviours of > the device in the field. Then, in the interest of not producing incorrect DTs, could the edge/level property be encoded in the FIC description itself, rather than in the interrupt specifiers of the individual devices? It would sidestep the problem altogether. You can still put the wrong one in the FIC node, but it then becomes even more obvious what is going on... Thanks, M. -- Jazz is not dead, it just smells funny.