Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4410964pxt; Wed, 11 Aug 2021 05:35:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN5CDjv96GLYYbg1HD9M49I8J+A81nTnLWx4/8ikx/CMxPBV11l9HoWn/eRQWIQyB6quzC X-Received: by 2002:a17:907:7790:: with SMTP id ky16mr3478300ejc.318.1628685335163; Wed, 11 Aug 2021 05:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628685335; cv=none; d=google.com; s=arc-20160816; b=GLCx5j4E79omGF3W4vsVbc227wk1rLbjds3tYGIRTPHdDZuP1SauJ2ltpDIn+sBBQx UPhsjtfb4ai4ntbYRnHMPYpAZVYbuCFChq1Bp4fHWcAX1S92eT3LZAi71ePcddxIXSOy 6weMn/XLqwzk+UuFfR07nOnPy405LoQnenXGI8a7jeJ1nP+gq9zU/NbkC483Rz7w1W8T ow76sEH8tpOQJHuUL9MQI4Ve/kBA6BDlYA27nAdbHHr4Dp7xZ/wAQ4gIUp3T95WX5gvE hamWcjyHg1nC1HGloqgZBtI+4dMVggfKtgu2HtJPDFrm3MqjsyW1namY6NZxhQvszMqk Dm8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=b3CyKvJaEwwphnaIVpCFl46BS2WMQuydG6Z8cqn8/sI=; b=qfvn1aIKz27B5W0OxJ1EZXBiBKY9gIIYMiJUIWZ+47iWgEtSEdDjmtB4O9z/g5rXV+ JMQ8GYGdj/LBxg8jQ+LXyH3W79MLjZyRYBKSp8JtpFOh6nM9xeWEc5Bg0GPwBksHyns8 AUfcIin++xyzgSF+kLH4oZbQl1hI/+tzlQ5FAV8MsMUL++kJax1inpOHmgLb4qeRVqw0 uv1YTUdRnl6ONPXcy0XM4Rlw1++L3PAWsvvKtu6Zey4O4NgJ1Wsr1icgnAc0s3DW8SIQ iP1i+YRODmSL4oS2pDkft3PtaJGjUbYhOsoBD3s+ZzJcG9NhaF4KGlHVH7KaVOT2gnyf L/8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Mk2d2aB9; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n24si11942269ejl.173.2021.08.11.05.35.10; Wed, 11 Aug 2021 05:35:35 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Mk2d2aB9; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229737AbhHKMcC (ORCPT + 99 others); Wed, 11 Aug 2021 08:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229776AbhHKMb6 (ORCPT ); Wed, 11 Aug 2021 08:31:58 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2303FC029836; Wed, 11 Aug 2021 05:28:23 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1628684901; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b3CyKvJaEwwphnaIVpCFl46BS2WMQuydG6Z8cqn8/sI=; b=Mk2d2aB9aImBYcA7SGIdR5B8V+7ToAlmLvva2lilX9fJ15PIGwsH/DLzqlnV4UQXoPynFX Cx89eyTyx9YI2H3S/Xfu+pal8SPg1YqSchb2ycdhLt6Vmc3AjiF6MeqE99nPYqPW4BIGOg BgGeWH+mvdf63Y8NG/IOASWAPzhBMlXFo/O8pxwjKcsng7W2MKhEyc0sys9on3bEWYcHSE WOe34U+S0ZEy7Wx9rgbMzewFNOZEn0xb+qJHYBD7sXVInmTTUJGxyt5BiNkhmUJkWBFgYz eXN2yqUd6g1GMpNNG662I5P9OIzrDgk4y6y/U3cuoDiNJYqX6WmqD5KfGRYn0w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1628684901; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b3CyKvJaEwwphnaIVpCFl46BS2WMQuydG6Z8cqn8/sI=; b=BSsIIwvRVuLmwPE6k7Z6GJb6pkJ7BpmY7Pcu7PKjdASNEOJUJQAoxA6q7STVlkNzYavErX zGQZmCIPdaNWZUCQ== To: Marc Zyngier , Valentin Schneider Cc: linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, Will Deacon , Mark Rutland , Sebastian Andrzej Siewior , Mel Gorman , Ard Biesheuvel Subject: Re: [SPLAT 2/3] irqchip/gic-v3-its: Sleeping spinlocks down gic_reserve_range() In-Reply-To: <87y2989xhh.wl-maz@kernel.org> References: <20210810134127.1394269-1-valentin.schneider@arm.com> <20210810134127.1394269-3-valentin.schneider@arm.com> <87y2989xhh.wl-maz@kernel.org> Date: Wed, 11 Aug 2021 14:28:21 +0200 Message-ID: <87a6lop3mi.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 11 2021 at 09:50, Marc Zyngier wrote: > On Tue, 10 Aug 2021 14:41:26 +0100, > Valentin Schneider wrote: > The issue is that although the redistributor tables have been > allocated ahead of time (outside of any cpuhp callback), they cannot > be programmed into the RDs until the corresponding CPUs have been > brought up (the registers may not be accessible). > > For the same reason, we don't know whether we can free them (because > there is already a table programmed there) or have to reserve them > with an efi_mem_reserve_persistent() call. efi_mem_reserve_iomem() > uses GFP_ATOMIC for its allocation, but this is not sufficient for RT > anymore. > > We could postpone the reservation of the memory to a later point (it > is only useful for kexec), but it isn't clear where that point is. The > CPU is not quite up yet, and we can't easily IPI the boot CPU to do > the reserve call. Right, but don't you know about the need for reservation _before_ bringing the CPU up? Thanks, tglx