Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1665338imm; Wed, 8 Aug 2018 23:17:37 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy/QlcNp2qEFKPdhgFOsQrPJ5mQWr4fj+lJSUyB0lG2dh6oF3WkbyLMlgOYvYOPsU8w6K3Q X-Received: by 2002:a63:bf43:: with SMTP id i3-v6mr813996pgo.342.1533795457222; Wed, 08 Aug 2018 23:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533795457; cv=none; d=google.com; s=arc-20160816; b=tVOiMVI+7t4okEc6+4RS7ISeCxjVibgGeobTl5gKHIV4U5FWUc4ylIOdnuV6W7+HY/ q7Z7QneUDvaSeH1ST6UYHdzzfEPKesmPhD/Yj4IcViXzyHzbwPMPqckOyiSqqtBghRlT yH6uLljg611KVYTKGexQlKGmuCbtQyzqIaz52G4DPq+M/kQN5CSQY7Tn9HZoba1Uwwuq cDqfCJ1PeqMDvMndCm9a4KtPOUcM0R3zlYfomAjT1zv6B8Cp0dgcykyqh7Myyiepn9TK Sd2sIkJ9RoHPKvBmHPiXlSKl7gQVcQO+YpWOgUPWPiFY5FaSydTwh3epRO/7z1UlnU3Y /9ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:organization:references:in-reply-to:date:cc:to:from :message-id:arc-authentication-results; bh=olSX931BYQBpDi+offyUTE9uJ5Y87QVicUUaQL0vsyQ=; b=MQoz0gu6+rp3SXBqL0xYnZN9sBWaNR4utBj5OQ4Qx4yS3txJy4zqlbUQXEEhmq3DU9 ImhgZcWPunOHEmz0SbW5JxZ7OlkT5YZv/DqzMKjDqG7Fn0pGZl8cJD0Aq3CURuPpMVMj cOAs1NZnyWMCGoUFA/L2lKQh8CQt1D9W9AwjCPkwdgHOIqtWpWYqW7JjNu/kXeDOch5B Yui2V86mTXxHx4DHyoJ0cUL6aNDoxTvR/otcZDV9JdOQZkjiRv8reLvy1hx+WGXgKiHY jWzR1nXpSPZ3TPiMgvKiUHgykET2i5v0zta/Low/moxZfn4fkoOpgRd1EBejQ7ckOcaW qGyw== 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 u7-v6si6720159pfb.227.2018.08.08.23.17.20; Wed, 08 Aug 2018 23:17:37 -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 S1728138AbeHIIjp (ORCPT + 99 others); Thu, 9 Aug 2018 04:39:45 -0400 Received: from baldur.buserror.net ([165.227.176.147]:60764 "EHLO baldur.buserror.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727417AbeHIIjo (ORCPT ); Thu, 9 Aug 2018 04:39:44 -0400 Received: from [2601:449:8400:7293:12bf:48ff:fe84:c9a0] by baldur.buserror.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fneAu-0003g2-QF; Thu, 09 Aug 2018 01:11:57 -0500 Message-ID: <5c1bcbd2c753f4224764c1932e5a9a99b4a604f5.camel@buserror.net> From: Scott Wood To: Bharat Bhushan , "benh@kernel.crashing.org" , "paulus@samba.org" , "mpe@ellerman.id.au" , "galak@kernel.crashing.org" , "mark.rutland@arm.com" , "kstewart@linuxfoundation.org" , "gregkh@linuxfoundation.org" , "devicetree@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Cc: "robh@kernel.org" , "keescook@chromium.org" , "tyreld@linux.vnet.ibm.com" , "joe@perches.com" Date: Thu, 09 Aug 2018 01:11:55 -0500 In-Reply-To: References: <1532684881-19310-1-git-send-email-Bharat.Bhushan@nxp.com> <1532684881-19310-6-git-send-email-Bharat.Bhushan@nxp.com> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2601:449:8400:7293:12bf:48ff:fe84:c9a0 X-SA-Exim-Rcpt-To: bharat.bhushan@nxp.com, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, galak@kernel.crashing.org, mark.rutland@arm.com, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, robh@kernel.org, keescook@chromium.org, tyreld@linux.vnet.ibm.com, joe@perches.com X-SA-Exim-Mail-From: oss@buserror.net X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on baldur.localdomain X-Spam-Level: X-Spam-Status: No, score=-17.5 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -15 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -1.5 GREYLIST_ISWHITE The incoming server has been whitelisted for this * recipient and sender Subject: Re: [RFC 5/5] powerpc/fsl: Add supported-irq-ranges for P2020 X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on baldur.buserror.net) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-08-09 at 03:28 +0000, Bharat Bhushan wrote: > > -----Original Message----- > > From: Scott Wood [mailto:oss@buserror.net] > > Sent: Wednesday, August 8, 2018 11:27 PM > > To: Bharat Bhushan ; > > benh@kernel.crashing.org; paulus@samba.org; mpe@ellerman.id.au; > > galak@kernel.crashing.org; mark.rutland@arm.com; > > kstewart@linuxfoundation.org; gregkh@linuxfoundation.org; > > devicetree@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; linux- > > kernel@vger.kernel.org > > Cc: robh@kernel.org; keescook@chromium.org; tyreld@linux.vnet.ibm.com; > > joe@perches.com > > Subject: Re: [RFC 5/5] powerpc/fsl: Add supported-irq-ranges for P2020 > > > > On Wed, 2018-08-08 at 06:28 +0000, Bharat Bhushan wrote: > > > > -----Original Message----- > > > > From: Scott Wood [mailto:oss@buserror.net] > > > > Sent: Wednesday, August 8, 2018 11:26 AM > > > > To: Bharat Bhushan ; > > > > benh@kernel.crashing.org; paulus@samba.org; mpe@ellerman.id.au; > > > > galak@kernel.crashing.org; mark.rutland@arm.com; > > > > kstewart@linuxfoundation.org; gregkh@linuxfoundation.org; > > > > devicetree@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; linux- > > > > kernel@vger.kernel.org > > > > Cc: robh@kernel.org; keescook@chromium.org; > > > > tyreld@linux.vnet.ibm.com; joe@perches.com > > > > Subject: Re: [RFC 5/5] powerpc/fsl: Add supported-irq-ranges for > > > > P2020 > > > > > > > > On Wed, 2018-08-08 at 03:44 +0000, Bharat Bhushan wrote: > > > > > > -----Original Message----- > > > > > > From: Scott Wood [mailto:oss@buserror.net] > > > > > > Sent: Wednesday, August 8, 2018 2:44 AM > > > > > > To: Bharat Bhushan ; > > > > > > benh@kernel.crashing.org; paulus@samba.org; mpe@ellerman.id.au; > > > > > > galak@kernel.crashing.org; mark.rutland@arm.com; > > > > > > kstewart@linuxfoundation.org; gregkh@linuxfoundation.org; > > > > > > devicetree@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; > > > > > > linux- kernel@vger.kernel.org > > > > > > Cc: robh@kernel.org; keescook@chromium.org; > > > > > > tyreld@linux.vnet.ibm.com; joe@perches.com > > > > > > Subject: Re: [RFC 5/5] powerpc/fsl: Add supported-irq-ranges for > > > > > > P2020 > > > > > > > > > > > > On Fri, 2018-07-27 at 15:18 +0530, Bharat Bhushan wrote: > > > > > > > MPIC on NXP (Freescale) P2020 supports following irq > > > > > > > ranges: > > > > > > > > 0 - 11 (External interrupt) > > > > > > > > 16 - 79 (Internal interrupt) > > > > > > > > 176 - 183 (Messaging interrupt) > > > > > > > > 224 - 231 (Shared message signaled interrupt) > > > > > > > > > > > > Why don't you convert to the 4-cell interrupt specifiers that > > > > > > make dealing with these ranges less error-prone? > > > > > > > > > > Ok , will do if we agree to have this series as per comment on > > > > > other patch. > > > > > > > > If you're concerned with errors, this would be a good things to do > > > > regardless. > > > > Actually, it seems that p2020si-post.dtsi already uses 4-cell > > > > interrupts. > > > > > > > > What is motivating this patchset? Is there something wrong in the > > > > existing dts files? > > > > > > There is no error in device tree. Main motivation is to improve code > > > for following reasons: > > > - While code study it was found that if a reserved irq-number used > > > then there are no check in driver. irq will be configured as correct > > > and interrupt will never fire. > > > > Again, a wrong interrupt number won't fire, whether an interrupt by that > > number exists or not. I wouldn't mind a sanity check in the driver if the > > programming model made it properly discoverable, but I don't think it's > > worth messing with device trees just for this (and even less so given that > > there don't seem to be new chips coming out that this would be relevant > > for). > > Fair enough, we can use MPIC version to define supported interrupts ranges. > Will that be acceptable. It's better than device tree changes but I'm not convinced it's worthwhile just to suppress some simulator warnings. If the warnings really bother you, you can use pic-no-reset in the device tree (assuming this isn't some new chip that you want to make sure doesn't fall over when the usual mpic init happens) and/or convince the hardware people to make the interface properly discoverable including discontiguous regions (if there *is* some new chip I haven't heard about). -Scott