Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp888560pxb; Wed, 27 Oct 2021 14:31:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmbbTFXQ1BsU/4+LWe4V491K43+gCSkExwFuT8MmcCWJUUPOWOz/AuVgj1U9EZSYdLwVWm X-Received: by 2002:a17:907:3f04:: with SMTP id hq4mr131378ejc.202.1635370266437; Wed, 27 Oct 2021 14:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370266; cv=none; d=google.com; s=arc-20160816; b=I3H0QiAPPBXTWL4jUJF3SHzkHXdqGQiWXnwnE5pj610TySdYwwuBPgkVLyNUToqRRk 0d6HTiVh6MzpaKjavbV/+qD9kHffVkbuynfZnhRrYXdkcQ3x7/OLSS2yv1J6VCS9s6nW DFlM3LJKWIBRH5Wb9Y3NxSdLC8k1vVPoT4QjXmquzY6eB5/pOYWizLhzl3nAqGnq2juT RLVHoSsZgE2voKapvifHX4ooAb8a88DfUvKdGQL5B7NW+CXyP/lG/F83LMlQpbENO24+ GMTQXCkCf+O8YFglrIxATgJwxnYXqAqjAoGdCbhCZRYyJnT1xYGMnafDF/FLvzdIsBAH a77A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=lmiQC+Bc28vtzHIFkzSMt15377rkL3VpxhJAKF2zg48=; b=JvLnUCSxvd1Tnei3nUc0A9vBsh1PBYbxVZpXPWRfvOmfq4+GZtRV9bBGt8akkljI48 iGcolvunvPkWQ90bXuAMUz91GPKNXBGqF2vQzBhofK9maMKDNghNDUx9trbtKQGQGq3r o7HXHTcq31NZsT2pmKuCI67+3V7tlm6t1jI3RvzClvWxtwKDKXx9U5mr30GCqU+SFAhp YrDkEmVpQz0xCpr4OYa9EzM5lRZ2Wbkd96Kns5i4IAFPu2cU1LzzOZAPuSbJqKqUq5MG HJjilcJXjKsrWDthEMx+SDSWodc3wmYxgrEtMSX83e8IeJp3/jarzcCOwZvKUNbJjHMk wWJg== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si1164648eda.208.2021.10.27.14.30.42; Wed, 27 Oct 2021 14:31:06 -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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242710AbhJ0PRi (ORCPT + 97 others); Wed, 27 Oct 2021 11:17:38 -0400 Received: from foss.arm.com ([217.140.110.172]:44402 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233978AbhJ0PRi (ORCPT ); Wed, 27 Oct 2021 11:17:38 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 70E81ED1; Wed, 27 Oct 2021 08:15:12 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.196.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1F8CD3F70D; Wed, 27 Oct 2021 08:15:11 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Will Deacon , Mark Rutland , Marc Zyngier , Thomas Gleixner , Sebastian Andrzej Siewior , Ard Biesheuvel Subject: [PATCH v2 0/3] irqchip/gic-v3-its: Fix LPI pending table handling vs PREEMPT_RT Date: Wed, 27 Oct 2021 16:15:03 +0100 Message-Id: <20211027151506.2085066-1-valentin.schneider@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, This is my take at fixing [1]. Reading about the LPI tables situation was entertaining. Tested against kexec on an Ampere eMAG. Seems to be working fine atop 5.15-rc6. On the other hand, I can only issue one kexec from 5.15-rc6-rt12 - if I then issue another one on the new kernel, I get tasks hanging. That is true even without my patches and without CONFIG_PREEMPT_RT. [1]: http://lore.kernel.org/r/20210810134127.1394269-3-valentin.schneider@arm.com Revisions ========= v1 -> v2 ++++++++ o Ditched RDIST_FLAGS renaming; moved to "RD_LOCAL" prefix for new flags (Marc) o Simplified cpuhp callback logic: body now runs at most once per CPU o Changed cpuhp callback installation to happen *after* the BP has invoked its_cpu_init(); the BP cpuhp state is immediately set to CPUHP_ONLINE, so cpuhp state alone doesn't guarantee its_cpu_init() has been run. Cheers, Valentin Valentin Schneider (3): irqchip/gic-v3-its: Give the percpu rdist struct its own flags field irqchip/gic-v3-its: Postpone LPI pending table freeing and memreserve irqchip/gic-v3-its: Limit memreserve cpuhp state lifetime drivers/irqchip/irq-gic-v3-its.c | 82 +++++++++++++++++++++++++++--- drivers/irqchip/irq-gic-v3.c | 1 + include/linux/irqchip/arm-gic-v3.h | 4 +- 3 files changed, 79 insertions(+), 8 deletions(-) -- 2.25.1