Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5684367rwb; Wed, 7 Sep 2022 06:38:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR7cBbTYqXOeDxNm5QGOQb+n0JVSO1Jr2nf66iBUtuTVaXObMy1d9+tqvnluTHvprGeTboop X-Received: by 2002:a17:906:794f:b0:745:4d49:139a with SMTP id l15-20020a170906794f00b007454d49139amr2347067ejo.468.1662557922659; Wed, 07 Sep 2022 06:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662557922; cv=none; d=google.com; s=arc-20160816; b=rS5hEU42VZUkc97ptY1Hg1TRXxPxuKfKiQ01dnDuTKio2akempJzDhj6Ynau8rgm+S R7SPQs/XVBzcKfBtjRB+W533HlwInTPDYo0ARznbXJ+FQrZHXxRbaU2OJm0HLjnT06rm E+NhBVeytLwdtbWWhG6KwxPwc5Vu36bUVRsRltPsUxc3HmaBhQ8PbSu9Dyo1UjLRZVIg R3Tys+LZgrCP3VEqWUThNR9zLTLrfT3Kp4mz4z3iR4ZL4nhxyFJC+qI25kWPJltSiCyD dvNqsUEm91rNe4dY+QOUJhy15WvsxdZS/VQgjruEdgvvb4DJcuhnyk6QQXwgdYtDuvFT qEDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ywmWpv7fT3Ae+Mat3rSH0tsudFkPzJHp2bfjXh8R6cQ=; b=GTQEa0qA9wPunIytMaFEi1jXAOhXi4maAoC5lHHC50UKkFhwccsHmdqXpnUVMMRAVl /u97lC7qs9ngLa3qKKclvjgPQu3+j8bh+1glxjlXi9pE7CguOOBcJxAb+TQlgDY97Lt3 XU0HQ0rQG/z9Ir6i9osqGyJhmFGeX+96JLBjvkjaQib0+mjxsCUXsiHUm8vRZhvwZM3c IRb/9zv4w7T3/Q7EiRP6L4dV40a68QbhwvIwSmaz9dwUjr2Wk7sQI+1OldI1HggZLh+a y62pLiWPtDThrk+2KR70epzXRHbrR6S24xpbkPxCKFHzyMQjzWgn13MtJuWPM5sbkYmT clgQ== 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 xf11-20020a17090731cb00b0073d68e6a8a8si11050142ejb.422.2022.09.07.06.38.17; Wed, 07 Sep 2022 06:38:42 -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 S229718AbiIGNP6 (ORCPT + 99 others); Wed, 7 Sep 2022 09:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbiIGNPg (ORCPT ); Wed, 7 Sep 2022 09:15:36 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8AF087B1DF; Wed, 7 Sep 2022 06:15:15 -0700 (PDT) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1oVutd-0000YC-01; Wed, 07 Sep 2022 15:15:13 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id BEA7BC0EC6; Wed, 7 Sep 2022 15:08:48 +0200 (CEST) Date: Wed, 7 Sep 2022 15:08:48 +0200 From: Thomas Bogendoerfer To: Alexander A Sverdlin Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: OCTEON: irq: Fix octeon_irq_force_ciu_mapping() Message-ID: <20220907130848.GB17817@alpha.franken.de> References: <20220906095943.60296-1-alexander.sverdlin@nokia.com> <20220906095943.60296-3-alexander.sverdlin@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220906095943.60296-3-alexander.sverdlin@nokia.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE,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 On Tue, Sep 06, 2022 at 11:59:43AM +0200, Alexander A Sverdlin wrote: > From: Alexander Sverdlin > > For irq_domain_associate() to work the virq descriptor has to be > pre-allocated in advance. Otherwise the following happens: > > WARNING: CPU: 0 PID: 0 at .../kernel/irq/irqdomain.c:527 irq_domain_associate+0x298/0x2e8 > error: virq128 is not allocated > Modules linked in: > CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.78-... #1 > ... > Call Trace: > [] show_stack+0x9c/0x130 > [] dump_stack+0x90/0xd0 > [] __warn+0x118/0x130 > [] warn_slowpath_fmt+0x4c/0x70 > [] irq_domain_associate+0x298/0x2e8 > [] octeon_irq_init_ciu+0x4c8/0x53c > [] of_irq_init+0x1e0/0x388 > [] init_IRQ+0x4c/0xf4 > [] start_kernel+0x404/0x698 > > Use irq_alloc_desc_at() to avoid the above problem. > > Signed-off-by: Alexander Sverdlin > --- > arch/mips/cavium-octeon/octeon-irq.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) applied to mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]