Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1169088iob; Sat, 14 May 2022 01:37:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdsHkM6pWYRS/96+tLiRhHq/4w75xrwyEZu81AEntoy2SviAtCMkr0WSYb/zltovVfFP1V X-Received: by 2002:a05:6402:3508:b0:428:3fcc:a1cd with SMTP id b8-20020a056402350800b004283fcca1cdmr2691788edd.178.1652517436925; Sat, 14 May 2022 01:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652517436; cv=none; d=google.com; s=arc-20160816; b=e3fU6vUubToSEab7kOq/+GIqcTToq/ofHljF6dJ4J/5ES0x287PbNxO4nBCWK7CtZO iu1P6UMxHu7933D5FwQr9k45lwkiNo4oDAKbIZZAb85fYzDCy0x1nK3ix66AEhbBv+/r Yixngn5qeZ7rRyzUMziy+ugTR+rPU0ubKECG7S+Z0TtnNYGSVrXpv0z+w1C86nqyz3uL BoMc91lG1ziHVnUXq/qnB/k5QI86yKaMMcNXlUszGr2u3gNNLqfL6jGHU2DOBQKwcfpJ HdpV1TCbGD2tt8dwhijRl4aAsUYFT3bD16fdBkWV3slOOhPON+EaL9KQdbZfHskDE87P 1zFg== 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=UHF9WVJF89fHPJq0+8oiweP3wjgNVxTMSM/vRu60nYc=; b=eFOYONRWViQuB1L6Yp27Tiy76MtTP0q49CuKqUguA+Zb7W4SCh9E0fB1XTcoSfVMG8 Wf9+MSlEx7YYFVnafhXfp76jw+fu9kqyo4eSp/Lyx9xthCb9mMfjnnqlZMVE8Rvn1kuQ CO8fy5DcSt98IgANcVaOznjK6SqedQv/BRaGp0HvjGeJ7AiG7nrWd89M4TAIzUdy9f77 7TTcyME5ZPs74c9dz0F3oEQoeeQ8Zblbtil8GW7drplf+3JuWGJYaNsRF0u9QH2oPQgC IILy3JYYrrH5H2iJsrUkukohZun3s2KActcNJP86KgMaX8sGc89+dUT8lenULb4uQJci 2ApA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Tm0Wc2Hr; 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 dp10-20020a170906c14a00b006e8038543c4si4553284ejc.887.2022.05.14.01.36.50; Sat, 14 May 2022 01:37:16 -0700 (PDT) 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=Tm0Wc2Hr; 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 S229892AbiENIPb (ORCPT + 99 others); Sat, 14 May 2022 04:15:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbiENIP3 (ORCPT ); Sat, 14 May 2022 04:15:29 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A608297 for ; Sat, 14 May 2022 01:15:27 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1652516125; 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=UHF9WVJF89fHPJq0+8oiweP3wjgNVxTMSM/vRu60nYc=; b=Tm0Wc2HrL4EoLv6k4cC472VP8Biprl05MvetpUZPEzW0ctnc4AfNAc9GzrCaDwbUR7asay k9meZSHbxU07Wx7caJes3ehRYibTz13rBlObuMSuFk7ZgN3LUGwEFHSwzQDAbs76ml91Iv TfrRfjYmgQ6VlChzQQtCqbE57X4yHCjEY/nFJ+u//Q0QW7b86PnnHZ0bks5Z5KNxstDgFB 8ieqdzZXwb8nQd54BAROxS5Y0qPLEeda5doQcCE+EFzABk7gxmFkNcD+FzEZp8aT5/YOg/ zBTpa9/aRp4PQD0V/GvzjQhFx5s/3qzmVoPUo4/nyL1Yd+fdRZVYofcuJu1UWQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1652516125; 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=UHF9WVJF89fHPJq0+8oiweP3wjgNVxTMSM/vRu60nYc=; b=DQ1ba3l4HOXe/g0FH1Hxfxmq/Jov5eLSl+952ajCcfZuyexUDsvo3a6HGCEtaOgGvBGZVv W7XCCMG7O6GU1PCg== To: Ricardo Neri Cc: x86@kernel.org, Tony Luck , Andi Kleen , Stephane Eranian , Andrew Morton , Joerg Roedel , Suravee Suthikulpanit , David Woodhouse , Lu Baolu , Nicholas Piggin , "Ravi V. Shankar" , Ricardo Neri , iommu@lists.linux-foundation.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 05/29] x86/apic/vector: Do not allocate vectors for NMIs In-Reply-To: <20220513234542.GC9074@ranerica-svr.sc.intel.com> References: <20220506000008.30892-1-ricardo.neri-calderon@linux.intel.com> <20220506000008.30892-6-ricardo.neri-calderon@linux.intel.com> <87zgjufjrf.ffs@tglx> <20220513180320.GA22683@ranerica-svr.sc.intel.com> <87v8u9rwce.ffs@tglx> <20220513234542.GC9074@ranerica-svr.sc.intel.com> Date: Sat, 14 May 2022 10:15:24 +0200 Message-ID: <87sfpcsf6r.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 13 2022 at 16:45, Ricardo Neri wrote: > On Fri, May 13, 2022 at 10:50:09PM +0200, Thomas Gleixner wrote: >> > Also, if lapic_nmi_controller.irq_set_affinity() is NULL, then irq_chips >> > INTEL-IR, AMD-IR, those using msi_domain_set_affinity() need to check for NULL. >> > They currently unconditionally call the parent irq_chip's irq_set_affinity(). >> > I see that there is a irq_chip_set_affinity_parent() function. Perhaps it can >> > be used for this check? >> >> Yes, this lacks obviously a NMI specific set_affinity callback and this >> can be very trivial and does not have any of the complexity of interrupt >> affinity assignment. First online CPU in the mask with a fallback to any >> online CPU. > > Why would we need a fallback to any online CPU? Shouldn't it fail if it cannot > find an online CPU in the mask? Might as well fail. Let me think about it. >> I did not claim that this is complete. This was for illustration. > > In the reworked patch, may I add a Co-developed-by with your name and your SOB? Suggested-by is good enough. Thanks, tglx