Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4359116pxb; Sat, 5 Feb 2022 10:58:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJygp5mQA9/vvG2iqZrPR04hGdyJci0WdUjZ1mMHTJYzREaz6HEFgVBwWuJO+imrFqqow31F X-Received: by 2002:a63:8649:: with SMTP id x70mr3786009pgd.564.1644087520841; Sat, 05 Feb 2022 10:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644087520; cv=none; d=google.com; s=arc-20160816; b=BW3gAceiF+OHXnWAqGTCR4gYAV/3UQgJiXokBwdTwn2LPy1RvmhoYYP2XSoOfVNUx9 C67+z5UrZ7pXMCfEFR7YXsoubEicC2OzW2DeGzElkKNtkaQ5zYB3bShUXuDz7oKVG0ZB X8LcYN2r6Gd/8Wji6JDtz6sj+x5Y6vGOHIn84EcawEmik9JCvbu2QCF9I+95xgEEGudl HOXEdmy3nE5/uI5GJXSohYxHoyJvCWvz60IiyqU5C7dTCOpIvRz6+RWX+x1mAigFYKMZ Y0JZEMT5L0cvwpLcGFdOPGeyoZUA++njCnGOGDo1q6h7PbMOD2xE6lOSTgDWHlgrBdfU fxcA== 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=spmioq/DvRD9SjqstyVhDvpbJBBDNB3IdHCwD7XgX0w=; b=JCMU040/KTBBFe3GcR2B2/xNRoJLMRBoGMuyGaXpbvHxOpgZEPXJDYcHJ+qsV6C0f4 HsOB+tigzAJ19BNh9fkwVQhOsIGkhPC8BMNxnctpZ/meKDrZBS6Ok+860hOmw9RXy+m4 RK02fAN7BwR5MkaKPOKk1anfU63Ya7hezPtG7Nk2kYYqHmjDtMVcDrzF+AmSQcOmJXs+ NS2F45mEGAZd4jCFSJAnuznzxNr3RaD4YhOTd0DFItutjvUEmIrDEk3h4gTSaURtn+w8 QzBoTfZbXlyGIXUk+I86gNVD3xlmhTnr68PyMu9J3Y1H7ySzgFm20CXMotzoNN1y5Iue lWCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="spqa/T1x"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z184si5332572pgz.213.2022.02.05.10.58.29; Sat, 05 Feb 2022 10:58:40 -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=@linutronix.de header.s=2020 header.b="spqa/T1x"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232750AbiBBKqW (ORCPT + 99 others); Wed, 2 Feb 2022 05:46:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232486AbiBBKqV (ORCPT ); Wed, 2 Feb 2022 05:46:21 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7502CC061714 for ; Wed, 2 Feb 2022 02:46:21 -0800 (PST) Date: Wed, 02 Feb 2022 10:46:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1643798778; 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=spmioq/DvRD9SjqstyVhDvpbJBBDNB3IdHCwD7XgX0w=; b=spqa/T1xdyOgDZFRF84tR9Y4kh2OELrkTJucZcgwSluj1YJZeeGAaTC2+2Q8LAwwKHo/+l +a4BFNoLChBwQZeG7L8wGTw+s6e45epF45970uQiwmn9WF2UEOi29VCcpcGVmI9w4cNYGw fmo8pj2eJVRVa9dkR5PPptY7kWOsb/afyKTZ/mxyQYW75dAjgQ+89rcHeZpowcCMhNrvnM VYvi/KIn7m2HWjOtX5VTYoElLrhX1vQEFAEEmf7FxflQJy/HhVCfIS1bc9Cqf5nzG3rt7P hXoA7/4R0y4KnR6E0EHXkiaPW9UQpGWiKmot+opGHxzBeJD4ad0dasl0rcLW/g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1643798778; 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=spmioq/DvRD9SjqstyVhDvpbJBBDNB3IdHCwD7XgX0w=; b=xOrTs/+ANNqBOQMINODsaHAsPU0n/Fv6Jt3FtfkV6MvcgrFuEGEzYesuhNhXw+EIsxxCbO ygHnntGekeAbN5DQ== From: "irqchip-bot for Marc Zyngier" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-fixes] irqchip/gic-v3-its: Skip HP notifier when no ITS is registered Cc: Steev Klimaszewski , Marc Zyngier , Valentin Schneider , tglx@linutronix.de In-Reply-To: <20220202103454.2480465-1-maz@kernel.org> References: <20220202103454.2480465-1-maz@kernel.org> MIME-Version: 1.0 Message-ID: <164379877697.16921.16506772484261500072.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-fixes branch of irqchip: Commit-ID: eba1e44beef88aa722f07755f79f604cd5d92290 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/eba1e44beef88aa722f07755f79f604cd5d92290 Author: Marc Zyngier AuthorDate: Wed, 02 Feb 2022 10:34:54 Committer: Marc Zyngier CommitterDate: Wed, 02 Feb 2022 10:43:10 irqchip/gic-v3-its: Skip HP notifier when no ITS is registered 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...). 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). Fix it by keying the HP notifier on the presence of at least one sucessfully probed ITS. Fixes: d23bc2bc1d63 ("irqchip/gic-v3-its: Postpone LPI pending table freeing and memreserve") Reported-by: Steev Klimaszewski Tested-by: Steev Klimaszewski Signed-off-by: Marc Zyngier Cc: Valentin Schneider Link: https://lore.kernel.org/r/20220202103454.2480465-1-maz@kernel.org --- drivers/irqchip/irq-gic-v3-its.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 9e93ff2..cd77297 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -5517,6 +5517,9 @@ int __init its_lpi_memreserve_init(void) if (!efi_enabled(EFI_CONFIG_TABLES)) return 0; + if (list_empty(&its_nodes)) + return 0; + gic_rdists->cpuhp_memreserve_state = CPUHP_INVALID; state = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "irqchip/arm/gicv3/memreserve:online",