Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3571933pxj; Tue, 11 May 2021 07:25:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw01SspHJTQRf5qqE/lhjYJtby38iGzkoGFMt1qaOMsgjc9vDPFQHDKIn3209dWc+eNKuCH X-Received: by 2002:a17:906:e28c:: with SMTP id gg12mr31992643ejb.483.1620743113829; Tue, 11 May 2021 07:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620743113; cv=none; d=google.com; s=arc-20160816; b=XOue/JfNgjDB/M8nZL2E6pxvLfQx8KXxfE95oySpBo6bG0LnSqgDf4dy85C9h2NuH9 Xd9gHaIpvOHh4vPsHg8d/+uL+DliGvUImpD4wDnahXT+7sWgJJqaOPy9ZoTgVw1b8YuO TNNwNTHHCE/8AH2Zd/XQRdL527PSLGtMUjTGHE/ErWnXYIaL+TA4wijwBLGLQr+anqAJ BAdmNsT5sEuf25Xbi0z++AeTpGRfgij6d7RdcjxdJUBkG+a0Le7IjPD6f1PuB5vDMyXW CoryZBpW+TiNUkyIrzajfyClXgkdmmHNNg40zu/q7xQPZ6yzmjcv8OsKTkTVbrgj4jEs ozDA== 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=o9RHciGCOQ4OdS30lWv6gdzpynUH0CEfSGJK89DLKkE=; b=Vs4xPWkrW1QwUgCNz04qQsPBQNAUX8gepfPciy8me4Q6HLdz71B5jY5e2014YNEhxn q+xDt+1rDIiTWjiUr/vtPmVT6g6sq1O1ZU+napPRYzx8shPy3xWN97nW0Cb9EEJS1w/r fOeTGOq+nSb4+FVJTyEmsHRBqjGNHv0mZeQ11wQkdgGSGs/nUbpGhlfdOaUKbwqOWIOt ogSjAAggCRcm4MkboZhGFOj9pOa5r59/PDLqWn3J9SOwJImLmj8NCA15k4E8k1pqsEK2 kv99/oa4eYW70npcu55iyWWW0VFTr38yE6Iaf5iL1vWdVfP2c5hIwdX3PDCLkFbr/2Xn 4eJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bZgbdH94; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="a+n3CeL/"; 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 p31si84757edb.415.2021.05.11.07.24.49; Tue, 11 May 2021 07:25:13 -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=bZgbdH94; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="a+n3CeL/"; 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 S231713AbhEKOZF (ORCPT + 99 others); Tue, 11 May 2021 10:25:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231154AbhEKOZE (ORCPT ); Tue, 11 May 2021 10:25:04 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE85DC061574 for ; Tue, 11 May 2021 07:23:57 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1620743034; 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=o9RHciGCOQ4OdS30lWv6gdzpynUH0CEfSGJK89DLKkE=; b=bZgbdH94XMR0JuLoYg940MWH3lvjdcF+rpL6uK/mu8+G82IXWb8zAxp7rtww13YfxLAQzY 4dLHA/5TtRaH2k15hfuYmeLArzUSmldDeeEWrrgAE/I6L/2L7hQlYsL9SVoPPOo8pZEoQD QRhh1ExuIEO0Sm0/OEFDWTfPkyL5hYArPsmgmZLZJ4mFYQ7qmiVn5GiFynTRTmW+ABvBPW msamn4iu4kIu1EtfUpT8briAZILSD8bcBGu06Qkw80D+RXneiIxPNIQ8QayidCxHNmf5lg F/ealklKzZR8LqWdVizrzRvHbvViqgiqFqa0vglcyT0psPPCUnUEwgZEZ8Cslw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1620743034; 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=o9RHciGCOQ4OdS30lWv6gdzpynUH0CEfSGJK89DLKkE=; b=a+n3CeL/m8p4Cfdt6pUVmGOUTaW49dVJIeXZFEvLZ1Y13kcW1l6wibsKOjyFqyiCkk4GZ3 XYXW0J9nN2WcelCw== To: "H. Peter Anvin" , Ingo Molnar , Borislav Petkov , Andy Lutomirski Cc: Steve Wahl , Mike Travis , Dimitri Sivanich , Russ Anderson , Linux Kernel Mailing List , "H. Peter Anvin \(Intel\)" Subject: Re: [PATCH 5/6] x86/irq: WARN_ONCE() if irq_move_cleanup is called on a pending interrupt In-Reply-To: <20210511005531.1065536-6-hpa@zytor.com> References: <20210511005531.1065536-1-hpa@zytor.com> <20210511005531.1065536-6-hpa@zytor.com> Date: Tue, 11 May 2021 16:23:53 +0200 Message-ID: <87im3pfix2.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10 2021 at 17:55, H. Peter Anvin wrote: > From: "H. Peter Anvin (Intel)" > > The current IRQ vector allocation code should be "clean" and never > issue a IRQ_MOVE_CLEANUP_VECTOR IPI for an interrupt that could still > be pending. This should make it possible to move it to the "normal" > system IRQ vector range. This should probably be a three-step process: > > 1. Introduce this WARN_ONCE() on this event ever occurring. > 2. Move the IRQ_MOVE_CLEANUP_VECTOR to the sysvec range. > 3. Remove the self-IPI hack. Actually 2+3 must be combined because _if_ this ever happens then the self-IPI loops forever. Thanks, tglx