Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1557795pxb; Sun, 10 Jan 2021 02:32:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFYsGrga8zftzQJ8a7KGt3YHqj9lkMBJH5EdqdMpqcZ00ht+VmZpvE9gAGxJYqFoM1xQei X-Received: by 2002:a17:906:a011:: with SMTP id p17mr7541261ejy.30.1610274726408; Sun, 10 Jan 2021 02:32:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610274726; cv=none; d=google.com; s=arc-20160816; b=er3dgeEBbMYCkpd0b/01QSeEEaZ0wW+dh7XTk2n7nDkonTZGH5hbzDF0lFlG2Fy0By eP23UvCMDRkFq0M7VEtKvYFoEy4eASeI9c4JhRY13nKpkYoI3Bal1bl3lrnTV68vXhPf fADNx4a+hewNm9EB3afwhZ6ZsQbJQ+tAE+I97TwFg7L2gXJuSBXjwb8aI7ZVCiAoTNlE oR3uZNqVn5T7A4XnCRBwlanxN8giAagrjDogc9PMSxMlgmsY2UTbcRMjoGWAJrEBbRH5 ocb3TorLmgFAQpEM7yLkRNytC4PtYswFg9bsMyc1YEH/G24tkVrHmIcW1qG9zsZ2vigp qWOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=mJQwAz4yGauhyMhrutcMS61zHMr6Sabzfpt4nuGb92w=; b=oRofjxyRl6a2Qe1FSxPChFH7woXzxqxDKXpaCEICcYfcd7LlPJWN1B7Y2G+uCPfzvC Wg2REPnBg8DKJ7FucqprS+ihMYbx9Gux2K5DeCHkeWxA8BCRh30BKxGKtUBZ2BYcRAkZ FnMzArq8Vh2k1hR+yUOhGdQw7zuC5v5uCFeBGQlZ5/n038lmd52HapU8kpYJG12dcPqf Y/GnZqu/bDGg9nCZgUcg+OpK1mKUanq9eMcCrFlM4zPvGnd/OLgDfcyQwH9quoda/hYw lAkPQH+Rj6mCpicaskMT973aWDMINWVOc1y2HngY3vNt0HiSK4BoFWYaiAfc5XsrTxfO nIiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Kg+LZXTI; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de8si5746021edb.319.2021.01.10.02.31.43; Sun, 10 Jan 2021 02:32:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Kg+LZXTI; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726142AbhAJKaJ (ORCPT + 99 others); Sun, 10 Jan 2021 05:30:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbhAJKaI (ORCPT ); Sun, 10 Jan 2021 05:30:08 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ACFBC061786; Sun, 10 Jan 2021 02:29:28 -0800 (PST) Date: Sun, 10 Jan 2021 10:29:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1610274564; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mJQwAz4yGauhyMhrutcMS61zHMr6Sabzfpt4nuGb92w=; b=Kg+LZXTINDXiQCSW61SayPC+8qdrnrIEyhhHx6Sq9lvQ//sabBCG0DEoJjPbfoa2DvB3oy VGBnAS0EnkONgHTx5iLgtPxQozvLMzuhbxCmlzdH+x+AMnWSpM1BFkZoHvqZaeLhhCnTKz aeholSGx65+YzkN52unXQfLKgLj8CcFOV0dxM5VlIY+l8DQW5UaDMGcZl0pF52LUDB/F55 Eh6buWRNn+cBSONpihf0jBIipLPER+Ytd/Fv2JbC0YIGoitHMGGmkZIDZ/XeEwhKNXTdob ucc4kurmENHh5JH2lOH8AaG+hw1IVyYbbMWubRUxnn2/PmqP/uqOU8Oi1dIYTw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1610274564; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mJQwAz4yGauhyMhrutcMS61zHMr6Sabzfpt4nuGb92w=; b=YXEvQObSSXyegjgp6kltNp1vaATBuYc6ZxJqVJrzFA2MmISzrZHKq6mCmsbGYn/YEx4U+4 OOEfY77/XUpPQnCA== From: "irqchip-bot for Mathias Kresin" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/mips-cpu: Set IPI domain parent chip Cc: , Mathias Kresin , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20210107213603.1637781-1-dev@kresin.me> References: <20210107213603.1637781-1-dev@kresin.me> MIME-Version: 1.0 Message-ID: <161027456251.414.3026056291168643147.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam: Yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 599b3063adf4bf041a87a69244ee36aded0d878f Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/599b3063adf4bf041a87a69244ee36aded0d878f Author: Mathias Kresin AuthorDate: Thu, 07 Jan 2021 22:36:03 +01:00 Committer: Marc Zyngier CommitterDate: Sun, 10 Jan 2021 10:20:24 irqchip/mips-cpu: Set IPI domain parent chip Since commit 55567976629e ("genirq/irqdomain: Allow partial trimming of irq_data hierarchy") the irq_data chain is valided. The irq_domain_trim_hierarchy() function doesn't consider the irq + ipi domain hierarchy as valid, since the ipi domain has the irq domain set as parent, but the parent domain has no chip set. Hence the boot ends in a kernel panic. Set the chip for the parent domain as it is done in the mips gic irq driver, to have a valid irq_data chain. Fixes: 3838a547fda2 ("irqchip: mips-cpu: Introduce IPI IRQ domain support") Cc: # v5.10+ Signed-off-by: Mathias Kresin Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20210107213603.1637781-1-dev@kresin.me --- drivers/irqchip/irq-mips-cpu.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/irqchip/irq-mips-cpu.c b/drivers/irqchip/irq-mips-cpu.c index 95d4fd8..0bbb0b2 100644 --- a/drivers/irqchip/irq-mips-cpu.c +++ b/drivers/irqchip/irq-mips-cpu.c @@ -197,6 +197,13 @@ static int mips_cpu_ipi_alloc(struct irq_domain *domain, unsigned int virq, if (ret) return ret; + ret = irq_domain_set_hwirq_and_chip(domain->parent, virq + i, hwirq, + &mips_mt_cpu_irq_controller, + NULL); + + if (ret) + return ret; + ret = irq_set_irq_type(virq + i, IRQ_TYPE_LEVEL_HIGH); if (ret) return ret;