Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757461Ab2K0ANt (ORCPT ); Mon, 26 Nov 2012 19:13:49 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:47060 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756713Ab2K0ANs (ORCPT ); Mon, 26 Nov 2012 19:13:48 -0500 MIME-Version: 1.0 In-Reply-To: <20121126202601.625213E0A04@localhost> References: <1349076922-25874-1-git-send-email-linus.walleij@stericsson.com> <20121126202601.625213E0A04@localhost> Date: Tue, 27 Nov 2012 01:13:47 +0100 Message-ID: Subject: Re: [PATCH 2/4 v2] irqdomain: augment add_simple() to allocate descs From: Linus Walleij To: Grant Likely Cc: Linus Walleij , linux-kernel@vger.kernel.org, Rob Herring , Thomas Gleixner , Anmar Oueja , Paul Mundt , Russell King , Lee Jones Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1782 Lines: 44 On Mon, Nov 26, 2012 at 9:26 PM, Grant Likely wrote: >> + if (irq_base < 0) { >> + WARN(1, "Cannot allocate irq_descs @ IRQ%d, assuming pre-allocated\n", >> + first_irq); >> + irq_base = first_irq; > > As I just commented on the previous version, WARN() is probably too > verbose (and scary). Make it an informational. So the discussion began with me removing exactly that kind of WARN() from arch/arm/common/gic.c: http://marc.info/?l=linux-arm-kernel&m=134860088710574&w=2 Which was NACKed by Rob: http://marc.info/?l=linux-arm-kernel&m=134860136515611&w=2 Who prefered to leave it in to encourage platforms to get fixed. This code just follows exactly that pattern. I'm happy to patch out *both* (or rather patch gic.c to use irq_domain_add_simple()) because I never quite liked it in the first place. > However, I see another problem. What is the requested range straddles > the boundary between reserved and non-reserved IRQs? It would be good to > give some information about which irq range was requested and maybe > report which ones were available.... or check to see if the request is > inside or partially inside the reserved region? Right now the usual symptom of that is that the system hangs. Do you mean we should probe around a bit with irq_get_next_irq() to figure out more precisely what the problem is, or did you have something more elegant in mind? Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/