Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1355091ybi; Tue, 16 Jul 2019 13:40:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZfRsmMeoYuYIPYqjnN4JCFfTrEqpoQUD0ae/BKOpEeaCFAfB/yphmmCt902WiVrg0oKr4 X-Received: by 2002:a63:1e0b:: with SMTP id e11mr33861048pge.402.1563309641311; Tue, 16 Jul 2019 13:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563309641; cv=none; d=google.com; s=arc-20160816; b=XaEhowmpqcRVB232GywmVsUTG0OFOdZHawp+yaR79in+DkBjFH7cFzMjk0au8PTzzq e99m7ZpFDiTvIqjS/gq3PqyWx0YhqI6rJlG0QH4eHtjP7Qnl5BGjX9MiNlERwpc3loQe JKloHAKmkE6nOr+yWx/PM+LrWD+WEpdkAEpxLGmJvN5W3XjhlC5g8SRekxFmIcUI2n48 L9kr66PiP/PTPoMFk9iYUh7/07UuUKzQgKvKzzrrLyDr4g29tMHrGGZBONcE7cjNf/Gh MCKJZ9vV3e/B+lvKcMGmSks8xUyMJ0gAyq1TpJanxcbxP1IDo8AZrOgP1WoqRH9SEGga gVlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UXZgwS7HNQ6G9vjQF/5VR8zgfrRVXGtPIccMKEwI2e4=; b=BXNOblaQGqUlV91B3XQCNp0HpdhQeJDJ9p/CW8JQd+Llvwdgkj7xIZ8W9BGhp41xkO bmA0scgTwYs6zNSiEyjW8efuWn0jhDFRH58lp73Vb/YQesUIbWX0cxEwcmYFMjk9Xb8j qrW6MSDaQK/96kGGqsADDzJsoEXMmQIs0Dbe5N1jAzo3diugUfL087QzVc/q6nmnn+Hr sfelM0swhh9sHtlNMEUNLlKjRGdXNoIODBjJhaO6ZT7vUWKAPF9WVyL5ssc+dZ756mHv jFjsEGzLkOUnyeHIfA7N4/IWqd7sGpK0U7MLFU8JhqxXgTLSMIACWsUS1fgYqVWKae/Q 7e6A== 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 f59si19564688plb.107.2019.07.16.13.40.24; Tue, 16 Jul 2019 13:40:41 -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 S2388721AbfGPUjm (ORCPT + 99 others); Tue, 16 Jul 2019 16:39:42 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:42336 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728535AbfGPUjm (ORCPT ); Tue, 16 Jul 2019 16:39:42 -0400 Received: from cpe-2606-a000-111b-405a-0-0-0-162e.dyn6.twc.com ([2606:a000:111b:405a::162e] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1hnUEb-00043d-LC; Tue, 16 Jul 2019 16:39:39 -0400 Date: Tue, 16 Jul 2019 16:39:06 -0400 From: Neil Horman To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, djuran@redhat.com, Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org Subject: Re: [PATCH] x86: Add irq spillover warning Message-ID: <20190716203906.GC1498@hmswarspite.think-freely.org> References: <20190716135917.15525-1-nhorman@tuxdriver.com> <20190716160745.GB1498@hmswarspite.think-freely.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) X-Spam-Score: -2.9 (--) X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 16, 2019 at 09:05:30PM +0200, Thomas Gleixner wrote: > Neil, > > On Tue, 16 Jul 2019, Neil Horman wrote: > > On Tue, Jul 16, 2019 at 05:57:31PM +0200, Thomas Gleixner wrote: > > > On Tue, 16 Jul 2019, Neil Horman wrote: > > > > If a cpu has more than this number of interrupts affined to it, they > > > > will spill over to other cpus, which potentially may be outside of their > > > > affinity mask. > > > > > > Spill over? > > > > > > The kernel decides to pick a vector on a CPU outside of the affinity when > > > it runs out of vectors on the CPUs in the affinity mask. > > > > > Yes. > > > > > Please explain issues technically correct. > > > > > I don't know what you mean by this. I explained it above, and you clearly > > understood it. > > It took me a while to grok it. Simply because I first thought it's some > hardware issue. And of course after confusion settled I knew what it is, > but just because I know that code like the back of my hand. > > > > > Given that this might cause unexpected behavior on > > > > performance sensitive systems, warn the user should this condition occur > > > > so that corrective action can be taken > > > > > > > @@ -244,6 +244,14 @@ __visible unsigned int __irq_entry do_IRQ(struct pt_regs *regs) > > > > > > Why on earth warn in the interrupt delivery hotpath? Just because it's the > > > place which really needs extra instructions and extra cache lines on > > > performance sensitive systems, right? > > > > > Because theres already a check of the same variety in do_IRQ, but if the > > information is available outside the hotpath, I was unaware, and am happy to > > update this patch to refelct that. > > Which check are you referring to? > This one: if (desc != VECTOR_RETRIGGERED) { pr_emerg_ratelimited("%s: %d.%d No irq handler for vector\n", __func__, smp_processor_id(), vector); I figured it was already checking one condition, another wouldn't hurt too much, but no worries, I'm redoing this in activate_reserved now. Best Neil > Thanks, > > tglx >