From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B19AAC77B7F for ; Fri, 19 May 2023 08:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+p1CBOezH4Po4gvQ+1jgCfmpNE2NGAf5HGmlU6oYpAc=; b=0UK8C6snK79By4 0Iv1gWnHYQpe3OXEEiULhVO5udT8CDKHcMp9IHk8sLVOEN2lSYUJOavHghRiMaitflexWXobImRY/ pv8n+JBr3Go/5xqx+FCXOXhUJWdrCm0uiZE1g/a4b7FIsVsLA4q0mXgGFxh7u1EcjasP4MB9qpPnW ciuYaenHIPzlVv8AOw5RTUQO0slZPfkKXKTkttBZcYbweFyPBc/9+V/EyaVLJSbM7hQImGPXTPNPG HrNPLnk3IynnRYRg25Z2xA0Zakj0f35Phy5hhu0CsK0cmX9zsjmmU7L4NlqInpiUym1rDwY6AUBJW N3XJmr/qurV8DWq4Bi/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzvlF-00FZeZ-1t; Fri, 19 May 2023 08:46:53 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzvlB-00FZdp-2b for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 08:46:51 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1F860654FF; Fri, 19 May 2023 08:46:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B389C433D2; Fri, 19 May 2023 08:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684486008; bh=1+vFu1w66KDdvKSmhCKgDf3+NlflV3f/KylBogyLtZA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eAPgyDZkkfi7AME2UlGyWvUsDZGIN7nB1jVJg2mfrc8IIwnUhF8KmkQtEqOnK5c8E 5RQWhptxAtp/caeHPNAfH0M8YP/rWKVXQbEbPAZXislGlnrqD2ibXrniKaC2ZRVR2j O5LlEwyVdGQheA4lmprtSSw642v7Lt2pnxoOfCX5KMLDQ5MiowMI55CiR+jzNFP1Vv KYbW0LxSxgmngc0E/1Vtji1CHI3XhDZRR8GsH7hqGLrwSHxdcV3U4eKV7Kdl0OnglF Q/DI/nFNQCUADdjNcRoay6VkSNXMoHbVsEjxvgnLDyjrvGQlVFjkk/QhvmWidoYVeg RhFMgobwoERlA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pzvl8-00GMgT-7g; Fri, 19 May 2023 09:46:46 +0100 Date: Fri, 19 May 2023 09:46:45 +0100 Message-ID: <86cz2wlnd6.wl-maz@kernel.org> From: Marc Zyngier To: Jean-Philippe Brucker Cc: oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Subject: Re: [PATCH 0/4] KVM: arm64: vgic: Locking fixes In-Reply-To: <20230518100914.2837292-1-jean-philippe@linaro.org> References: <20230518100914.2837292-1-jean-philippe@linaro.org> 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/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: jean-philippe@linaro.org, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230519_014649_883110_651EED4D X-CRM114-Status: GOOD ( 19.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 18 May 2023 11:09:14 +0100, Jean-Philippe Brucker wrote: > > Another fun locking puzzle, between the new config_lock and srcu. > Patch 1 attempts to fix it, and the other patches fix simpler issues. Thanks for that and for your excellent description of the problems. > I got these lockdep reports while running KVM QEMU on a TCG QEMU, but it > can also be triggered by running the vgic_irq kselftest on TCG QEMU. > Now, with the fix and lockdep enabled, vgic_irq hangs but I believe it's > an unrelated weirdness: if I introduce a separate lockdep warning for > some made up locks, then the test passes again. So I'm sending this out > now for discussion, and will investigate that one later. I've taken these patches for a spin, and I cannot reproduce this hang, though I'm running on actual HW and not QEMU. It would be really annoying if lockdep actively introduced issues... :-/ Any chance you could dig into this as you have a good reproducer? I'll try to setup a TGC environment on my end as well. Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel