Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4004469pxv; Mon, 5 Jul 2021 11:03:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw63qTxnQPLGXnqFsmiiDGuvuLBcqvKA4qAzvTZTDDf2REm3BxlmTOQGpSMilgPevc16tb3 X-Received: by 2002:a5d:9f11:: with SMTP id q17mr12173426iot.62.1625508209830; Mon, 05 Jul 2021 11:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625508209; cv=none; d=google.com; s=arc-20160816; b=Kz2T4zu3/TEFhrpllnyfWz9QNy/mwpHYNCiiEc8E0EmOUOoWvMr332XSDu8lsEx0if AT1IGJ1IbWfpnyZ+DCGp/+2Fejkje2LGwIEz1Bz3+ho9/+E63CHi7bj05hxBGf9nCovq uqMrH5ScW9Lyb3Lr2z1CpzhUQY4aFhn825s6+8Bux7Harp0SG321KHQfC8ocCXwV0naa kR43uDts8iKW+JHI6jCxBk7DLDjtXvfnFYo6XQv+KMbwoxfoFKAbbatYrK7mmiWpStWK BEDofB8F/2wctsv5uZooHEpulgUZs/uEli2iCtKVTrkBOaGCJoMV9LIq73fRn09mSyVp B2yA== 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:references:in-reply-to :subject:cc:to:from:message-id:date; bh=/8Negux51PqqrSMmXb8Xp2AYfJ2C1JNrd8hu3HZ6IOk=; b=HBMotYKBRVA97AA0WBdJZ59CFeIIzlFIxRhD4SN0x9mc2oiMjc0k6wYVkar0xRRHKl /3cIT9tMMyIwsn4GyrLEBl1Ree4R2akkrTcschJn7QFmihzWzu7Lv94Qj8JMrHdlY2Dt 8hzSONJQSW8Z48NrGk5aVExZliiweVVSpqtay2+xtitf0KUBAUXIV+pa+WQ1Jmn9Z0lr ze5Ry1vSyf80nO24fl79HChMQ0ANRFE+nXdlm2ObdpzbqmA1RqYRX9rVr1fj5N5ngLzi lW///lvbzeue2oim0vhqZs4unhR08zOVSMJ3JzY15jmO1eEk68NZOKvWZFwKmQnpl6Vz PPBg== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x11si8470845jap.86.2021.07.05.11.03.17; Mon, 05 Jul 2021 11:03:29 -0700 (PDT) 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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbhGESES (ORCPT + 99 others); Mon, 5 Jul 2021 14:04:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:43520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229713AbhGESER (ORCPT ); Mon, 5 Jul 2021 14:04:17 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9657F61261; Mon, 5 Jul 2021 18:01:40 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1m0SuY-00BZ5S-Gv; Mon, 05 Jul 2021 19:01:38 +0100 Date: Mon, 05 Jul 2021 19:01:38 +0100 Message-ID: <87h7h88wsd.wl-maz@kernel.org> From: Marc Zyngier To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de Subject: Re: [irqchip: irq/irqchip-next] irqdomain: Protect the linear revmap with RCU In-Reply-To: <20210705172352.GA56304@roeck-us.net> References: <162341967699.19906.3242958007782554792.tip-bot2@tip-bot2> <20210705172352.GA56304@roeck-us.net> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: linux@roeck-us.net, linux-kernel@vger.kernel.org, tglx@linutronix.de X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guenter, On Mon, 05 Jul 2021 18:23:52 +0100, Guenter Roeck wrote: > > Hi, > > On Fri, Jun 11, 2021 at 01:54:36PM -0000, irqchip-bot for Marc Zyngier wrote: > > The following commit has been merged into the irq/irqchip-next branch of irqchip: > > > > Commit-ID: d4a45c68dc81f9117ceaff9f058d5fae674181b9 > > Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/d4a45c68dc81f9117ceaff9f058d5fae674181b9 > > Author: Marc Zyngier > > AuthorDate: Mon, 05 Apr 2021 12:57:27 +01:00 > > Committer: Marc Zyngier > > CommitterDate: Thu, 10 Jun 2021 13:09:18 +01:00 > > > > irqdomain: Protect the linear revmap with RCU > > > > It is pretty odd that the radix tree uses RCU while the linear > > portion doesn't, leading to potential surprises for the users, > > depending on how the irqdomain has been created. > > > > Fix this by moving the update of the linear revmap under > > the mutex, and the lookup under the RCU read-side lock. > > > > The mutex name is updated to reflect that it doesn't only > > cover the radix-tree anymore. > > > > Signed-off-by: Marc Zyngier > > This patch results in various RCU warnings when booting mipsel images > in qemu. I can not revert the patch due to subsequent changes, so I > don't know if a simple revert fixes the problem. Log messages and > bisect log see below. Thanks for the heads up. Do you have a config file I can use to reproduce this? The QEMU invocation runes would certainly help too. It strikes me that in drivers/irqchip/irq-mips-cpu.c, plat_irq_dispatch() now uses the irqdomain resolution before irq_enter() took place. That's certainly a latent bug. I'll fix that regardless, but I'd like to make sure this is what you are seeing too. Thanks, M. -- Without deviation from the norm, progress is not possible.