Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp213515imm; Fri, 21 Sep 2018 13:01:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYtP1V6SpCcwGa3VA93knHURzTFTn4GEY5cyjfdwDUoxWfO3bBjA8EWq2tOn4D+1SjCE4ST X-Received: by 2002:a63:77ce:: with SMTP id s197-v6mr43277861pgc.172.1537560108915; Fri, 21 Sep 2018 13:01:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537560108; cv=none; d=google.com; s=arc-20160816; b=cIoiOla0klw+u6CX+2yhetEjhkM0xCHKMhy3JBoTwHZtQoK8rz6XAvvH9smqv8FEbt 2EJN83ty/htFQIpSDmxHRXl17uVXT0akZJ1y1mFUQt/40XiIwej/4leLU2DTqssU8yiG tz/NSGQ05ayUroxgIT4a1M1/BgQ6UlH7yVRf5y+/opLi61vvDLQJO75UazVktdHfXqbZ 8+CgvCNhO8CbnRNwQ3oEBr8j2T27+3KIJO6afwWwcelkLU75+We7zDHzGuAK2qVzWYb3 PsYd2e2FJsJOsh4ihXv2LrlKxOZq21UDrxfNNVWFdYZz8/Rnd7Ue772YMqXY9q+hR5un Lxnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=rIiQztTT/biQlzK21lO/9NFCWznKCFX9gp29UGPy+hI=; b=X8p3H/aWuL92NSFMkiJwwzQqOIJurDCZBi7M0ysTS6/7e9mOJrZDhaeSWTMGFs2sc4 BrOmKJ1vhp9s+5DehMfUwRSw899fl5SK/EKW3PT8CUdQlQiABxtv52pDv/vnn7Fadgdj yd74C+WlIlTKuvLOn8qIwtfENUzcSTR+QfrUpYJsd//qovNJv8ZXC6MUtfGNu5VvEw5M UuVHYJFS/LwvzB0TQVr4rRpeFITpZEOswZJOT9AYquGNCbo5PJopnpIdMVbgL2ZVa8fi no5wjbTV6JKA68RJTd4Pte5RXq6MH1u3TGYQKscxqyZkVGCL3yt/8H5JAzIm0pUs5/0Q fgqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si27814362pll.381.2018.09.21.13.01.33; Fri, 21 Sep 2018 13:01:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391542AbeIVBvY (ORCPT + 99 others); Fri, 21 Sep 2018 21:51:24 -0400 Received: from foss.arm.com ([217.140.101.70]:41350 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391279AbeIVBup (ORCPT ); Fri, 21 Sep 2018 21:50:45 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 35A35168F; Fri, 21 Sep 2018 13:00:21 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DCC813F73C; Fri, 21 Sep 2018 13:00:20 -0700 (PDT) From: Marc Zyngier To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Ard Biesheuvel , Jeremy Linton , Jeffrey Hugo , Thomas Gleixner , Jason Cooper Subject: [PATCH 07/10] irqchip/gic-v3-its: Use pre-programmed redistributor tables with kdump kernels Date: Fri, 21 Sep 2018 20:59:51 +0100 Message-Id: <20180921195954.21574-8-marc.zyngier@arm.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180921195954.21574-1-marc.zyngier@arm.com> References: <20180921195954.21574-1-marc.zyngier@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If using a kdump kernel, and that we cannot disable LPIs to install our own tables, let's switch to using the already allocated tables. This means that we'll change some of the initial kernel's memory, but at least we'll be able to have LPIs in this secondary kernel. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index e29ce9f2ac8a..0b3e76cdde26 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -1963,8 +1964,15 @@ static void its_free_pending_table(struct page *pt) free_pages((unsigned long)page_address(pt), get_order(LPI_PENDBASE_SZ)); } +/* + * Booting with kdump and LPIs enabled is generally fine. + */ static bool enabled_lpis_allowed(void) { + /* Allow a kdump kernel */ + if (is_kdump_kernel()) + return true; + return false; } -- 2.18.0