Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8923882rwr; Thu, 11 May 2023 07:53:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6VFaO56WuHM9u6HSbsccpwBiNIQMcOuBtF0Gy49dCc7xaJcQbzVeLpYcm4dC1sPPyJX+Lb X-Received: by 2002:a05:6a20:c701:b0:ef:e589:28a3 with SMTP id hi1-20020a056a20c70100b000efe58928a3mr22987668pzb.16.1683816817371; Thu, 11 May 2023 07:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683816817; cv=none; d=google.com; s=arc-20160816; b=ht0J8DTzdk1JwMlcVp2S7sJmO/xcf9tThFRVKOFvg19XOsZTIfUDTpOVML7HEeASAM HFlMnqP9V2b+3ZqakoX+gAWRqaW4b5tgRvnrfEMBsMF1NBP/0lOFOvJuxx2B/tKM0/rx try7QrPuE07iaEHRWWbRCngGEcqTM8jeRWhzYgxM2GVOJ652SwkEzsW7bPci0GUwlQL/ DEdZNAWt3/GZe82TbBVmTo1N4QbRz89dGRqfTFDNiptErY2AJG3S9EKaa6JBvyuF6KH+ wXU78CdSljYEMdWws2/DDG9wW3gjd9aq7G7B4VgKyhxfYk3tzJnRylqYS0phwmN1w9sS hFQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=yIkRBYwMO/nBWbKYjljdJquNLiXA7GwyXm4VKZXzNw8=; b=a+tEGlvx0gJnlK7WBck9V2cfQO8c9vcbSjICe+K/oOb6oSBzV2SLjzpGYwWT2gqqbl mDruPOw85d46NTcsFlX3TCUCgxzgssY1DhGbswPNooxHrO8PvfTUzJ7R4cYb3BEOCdsm IhrnitLIuoU3vGKURCTSePtq+0P8D0czFoVKIdAjto+75VI7GyarRVneEvPPVMIss2dE 155/rr1B4E2V6LWr3tDLileVek+nsR/LH4sc4BsJNfZTMJS009jwQc8kvvOIhgPHjjue +jevF+mVJgRRMI5EsgR+i4mZy3JSriAXQKbVZg/RZnQgwSK4yZftdoUyxjOxyiPY5dQN y4QQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i63-20020a638742000000b005073e333addsi6977738pge.390.2023.05.11.07.53.25; Thu, 11 May 2023 07:53:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238362AbjEKOuS convert rfc822-to-8bit (ORCPT + 99 others); Thu, 11 May 2023 10:50:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238397AbjEKOtW (ORCPT ); Thu, 11 May 2023 10:49:22 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4257011D99; Thu, 11 May 2023 07:47:39 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1px7Zq-004C7A-Eu; Thu, 11 May 2023 16:47:30 +0200 Received: from p5b13addc.dip0.t-ipconnect.de ([91.19.173.220] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1px7Zq-0013pG-7p; Thu, 11 May 2023 16:47:30 +0200 Message-ID: <5f5ac2ac5c6e8cd2034e17282eec00b4c88f23b6.camel@physik.fu-berlin.de> Subject: Re: [PATCH] irqchip/jcore-aic: Fix missing allocation of IRQ descriptors From: John Paul Adrian Glaubitz To: Geert Uytterhoeven Cc: Thomas Gleixner , Marc Zyngier , Rich Felker , Jason Cooper , linux-kernel@vger.kernel.org, Linux-sh list Date: Thu, 11 May 2023 16:47:29 +0200 In-Reply-To: References: <20230510163343.43090-1-glaubitz@physik.fu-berlin.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.1 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 91.19.173.220 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Hi Geert! On Thu, 2023-05-11 at 16:35 +0200, Geert Uytterhoeven wrote: > Hi Adrian, > > On Wed, May 10, 2023 at 6:36 PM John Paul Adrian Glaubitz > wrote: > > The initialization function for the J-Core AIC aic_irq_of_init() is > > currently missing the call to irq_alloc_descs() which allocates and > > initializes all the IRQ descriptors. Add missing function call and > > return the error code from irq_alloc_descs() in case the allocation > > fails. > > > > Fixes: 981b58f66cfc ("irqchip/jcore-aic: Add J-Core AIC driver") > > Signed-off-by: John Paul Adrian Glaubitz > > Thanks for your patch! > > I am not an IRQ expert, so I'd like to leave the technical parts for > e.g. Marc. But I think you should add to the description that this > is based on a patch by Rich. Will do! Thanks for the suggestions! I read through the IRQ source code and checked what other architectures do and I think the first parameter should be "-1" not 0. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913