Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2082716pxb; Wed, 2 Feb 2022 21:24:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnEN+hCb3Lcx4F1OTXh0Luqir2X0LmUMgHpcPAdfhONC4I/h++HeeNfKBfzGBj9ZoskNpA X-Received: by 2002:a17:907:c19:: with SMTP id ga25mr29792268ejc.606.1643865889994; Wed, 02 Feb 2022 21:24:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643865889; cv=none; d=google.com; s=arc-20160816; b=PgtU8I7xtHzwl+xoKVPj1pbGnmNdw5qXhVlwn4q+SOqXnD/eWUX2BQJa/SIU9iLkfU /yyXWtMISM0LFjyFRHzsly99uiW2Q4P8uvkwhUTuXCI6F51WvQyNfe9gmZ3Fw8KHTrdu RWOv5esTdodLhFKb72NwCrFJBrv3LcG2jIstkgGjLGUyCicA9SXqZMhXRaJV8BnwM+JQ t3AWn0HyWUBHRnfmDDDyvJwfaRxasYSQDq6LDExs1zIeHxlGYjV0RnGYE00XZQ15KJvT 0EW4ueZ2WiIFuuMe72N5Gjpt9eyQFyrGsCx0GZAEsw2dYvEr8u9+4C8/W9f4UB8eth07 JFsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=CnVhxuQNiuLxyEPpR8LKMZWkFZDdyALcra2Vy026Tzk=; b=0REQYo0CvGwACAuv+mzOrOQAU/ahnb12wYQoBcp3hBU7FooTF6TfjpE6Prf9sRcqxl COFyO3jUdNPnyyt6zkgeD9Q6lAAbdHTSw4G42Xf5akuUpPKG3TtCwJZxK1bf9sQTFUxq jgcvaLYS1COkP4WnrY2lM0QhyNZVxFwon56ltKcoxk4XtPiEXPW+nlKB76ksLKwSiAB+ Q53tSY3XcbcniT3NlvydOu1eacgib2FbQ1oBe7CGtiB+2GQElcopCkGpIHxaYq8doGvO jJPfkUl+4FmbI3bC0L29cUeHAGE8u98NsA6fcGEfh8694+x7wf5u/rW1vyf13+QBgSma mlBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fyjbHTID; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12si14692387edb.140.2022.02.02.21.24.22; Wed, 02 Feb 2022 21:24:49 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fyjbHTID; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243766AbiBBNaM (ORCPT + 99 others); Wed, 2 Feb 2022 08:30:12 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:43270 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbiBBNaL (ORCPT ); Wed, 2 Feb 2022 08:30:11 -0500 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 8932461781 for ; Wed, 2 Feb 2022 13:30:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3607C004E1; Wed, 2 Feb 2022 13:30:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643808610; bh=QUmAN7TauO102tkxWVNy0kAyLcZR5AmCzj3n4PKFOtU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fyjbHTIDx52d/77Mee2Xf1XJ0t+xmmTXJsZnuVJMDJC/LkFVZM2yGjCHEMdytgN6w HeO1x5S2kVot3f128+z/ktpeo1dWHgm39B/dLca8hQy2e/IhWaE8yHQ9gSXwCUjKvS g8OnwjaEAajghSg7SKjauEAVilYj0/4bb0XuszxR9AvBiT59yvVxGiAbjcA92Ih7N8 oePHCKbOi6C/QELF21qdBe6/kruSUaqtaXjS2D4dpTlpv+zNX0Y6uKeNxZvicUcqH2 SZh95ayxY0iSjKzomqjk8kp/FlBZBuYVBRhQZAosyb7BPfnD05VtSnbjniu22LwKdM 7tnn6z4Qf2VVg== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) 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 1nFFi4-004uTk-Q2; Wed, 02 Feb 2022 13:30:09 +0000 MIME-Version: 1.0 Date: Wed, 02 Feb 2022 13:30:08 +0000 From: Marc Zyngier To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , kernel-team@android.com, Steev Klimaszewski Subject: Re: [PATCH] irqchip/gic-v3-its: Skip HP notifier when no ITS is registered In-Reply-To: <87pmo5o2j7.mognet@arm.com> References: <20220202103454.2480465-1-maz@kernel.org> <87pmo5o2j7.mognet@arm.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: maz@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: valentin.schneider@arm.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, kernel-team@android.com, steev@kali.org 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 On 2022-02-02 12:50, Valentin Schneider wrote: > On 02/02/22 10:34, Marc Zyngier wrote: >> We have some systems out there that have both LPI support and an >> ITS, but that don't expose the ITS in their firmware tables >> (either because it is broken or because they run under a hypervisor >> that hides it...). >> > > Huh :) Yeah. Got to love these WoA machines where EL2 hides most of the useful HW, but also can't be bothered to consistently emulate the registers they trap (cue the bug that was causing the SMMUv2 driver to explode on store of xzr to an MMIO register). Bah. > >> Is such a configuration, we still register the HP notifier to free >> the allocated tables if needed, resulting in a warning as there is >> no memory to free (nothing was allocated the first place). >> > > Right, so list_empty(&its_nodes) means no ->pend_page, but still having > the > HP notifier means we hit the WARN_ON(!pend_page). > >> Fix it by keying the HP notifier on the presence of at least one >> sucessfully probed ITS. >> > > That looks fine to me. > > Reviewed-by: Valentin Schneider Thanks, M. -- Jazz is not dead. It just smells funny...