Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7303828ybi; Wed, 5 Jun 2019 15:08:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdXodmmYCpWSzN7cEChYM8uMmkdRgA0wGq2hym4Qw5V4quIpTvl8bLd7KWyMLbUd9SFFgx X-Received: by 2002:a63:c104:: with SMTP id w4mr59599pgf.125.1559772489526; Wed, 05 Jun 2019 15:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559772489; cv=none; d=google.com; s=arc-20160816; b=YmnelVUx3+A8lIlx1dlIFyV/FTxHg8qlorLoqP2cwGPgUp06O+sngSoe1hy2Ls9Bnm R5lEQqoE5+JgDE0xWt8T2Mv55FzWqFCZgs3uhLESlA/+Tjg4kPsIgS71s5R0/yuoBdIv uZMPPy1ggYZD1oUyhTj6dAOdbEPm5ggDNgA7TgnIHOnFWR3vqLXdzoDUAMTtt+VWCr/D V8LE79hnMw4ZgrWRrGxdjTu0AZj6NKMPkxM0r3KtiG1OgsYkhDHkOUooMr2Q9s9FxlE0 9RvywlkVe8+Yx5UGXqpgpPtQmA54Rgly1bjGqPN5T4SSRSOmP42+UgPSgvI3i4HS8imm 3uJQ== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=xl6sjkK1OO1l4c3JbDXhOKptwywvHgkrtczCINQbdvE=; b=CmsOEB4lIBrhzAZ+Ix12h1Y0RpNkzxgm9xlqYcS1BCeFrQfTkT+HzJMjY5hG40/4cX hk60654/JeleP+Sp5b0/H+xwnGwV27ShDt9x38JtRZH65JJbohDGOuJTbxCRFz0D2qws QA4C3tE9f3DwKzrCqb+EJsw3ehVwAB6YI15C3KvPoMU1WpbHYMHRH882NjLGfQd5vN7D uGUTBALPCp2/eJvBPZxIMvOD9Mab7L0kqniy9DMskvptQqsUu1NESRX/BtH1Hf5Ds6UY ovazCqScNVHNL8GTkrCrR50m0zJ8HCEQ4Do+cHGN6BrNTA7jUNVYnl/VSNhNe6/jzNrW lUFQ== 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 a22si146993pgw.60.2019.06.05.15.07.51; Wed, 05 Jun 2019 15:08:09 -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 S1726604AbfFEWGd (ORCPT + 99 others); Wed, 5 Jun 2019 18:06:33 -0400 Received: from gate.crashing.org ([63.228.1.57]:33861 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726502AbfFEWGc (ORCPT ); Wed, 5 Jun 2019 18:06:32 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x55M65x2023978; Wed, 5 Jun 2019 17:06:06 -0500 Message-ID: <54df139cc6cfef9202be6b945c968c3040591607.camel@kernel.crashing.org> Subject: Re: [PATCH v2 2/2] irqchip: al-fic: Introduce Amazon's Annapurna Labs Fabric Interrupt Controller Driver From: Benjamin Herrenschmidt To: Marc Zyngier , "Shenhar, Talel" , nicolas.ferre@microchip.com, jason@lakedaemon.net, mark.rutland@arm.com, mchehab+samsung@kernel.org, robh+dt@kernel.org, davem@davemloft.net, shawn.lin@rock-chips.com, tglx@linutronix.de, devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: dwmw@amazon.co.uk, jonnyc@amazon.com, hhhawa@amazon.com, ronenk@amazon.com, hanochu@amazon.com, barakw@amazon.com Date: Thu, 06 Jun 2019 08:06:05 +1000 In-Reply-To: <0915892c-0e53-8f53-e858-b1c3298a4d35@arm.com> 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> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). 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. Cheers, Ben.