Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1553465ybj; Fri, 8 May 2020 04:10:14 -0700 (PDT) X-Google-Smtp-Source: APiQypLZOjiYoM2IZkeLGXm6y9PSlEOBprXFkbeWWdA9DdF4RIK8kkz42ipsaFC9Ir95pYGxVBtK X-Received: by 2002:a17:906:13d1:: with SMTP id g17mr1435754ejc.162.1588936214600; Fri, 08 May 2020 04:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588936214; cv=none; d=google.com; s=arc-20160816; b=LxB+JMrPepGTN88G6MjpKDX+v3ZL+sKC2tFdSDR4RNQlZ1SIjIKbgfuS8kxROPzQaQ r4dFtI7jvSLMrvHD8M8tYcYHxdEFWQKGrqDJOrawCMzPsBYXt/HVMex483qrpPuSaInh HuLgCVbfw/HN2O3We7vHLSRsLU4z0CW3/3lsEz7L2d8ckhwsNjz7ALc6miyCrbBo9DHc zwm5RkkOjWvQJy7B8TcmgX1302+qPF61hEzr3MLSR6dyGjX2FNo+CW0r1hbOp3PwlOzw U3y5B4s3fDiUKODMWMtpq+EvwuHdTsO6g9hphTg2eoH2UGPsRrXdFv8MQrm0BPo+e2pZ JxKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from; bh=0RcFushYe80wtDd81cyikFXDzXqUD9+jRRtgKZSSM0Y=; b=nb8oe91Dmurx01OTjkjJ3Ttmcv2yd3XXuOTv6NNf1JWQhmne2h0M2yjp/2jHt3qEaU 9LLs6smdpOhwhnHJrH11VKE4J8VClXwS1vgSbzzSe2TR0wHlspYrWI+1C25shmtgkuuV K2cVxGOBRk2Gu7Wdr0kQznPnumqzk4wkn47EG/ZelBqmuJy8rsIYWlR6pCNbaOA4yX+F x6PYDYTH5jzoEUK8d5e9MgcnfAzwaea+6tCfNh86lgstlHbMwYGDLtwY7AgVrgZTcJpi VDfnnZeRSW764fO/5QiPKyditrWDE4sOibD8YS74/WlhWTXD2jNkzPsGP33py966M7E0 tmUg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si694910ejh.219.2020.05.08.04.09.40; Fri, 08 May 2020 04:10:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726922AbgEHLEr (ORCPT + 99 others); Fri, 8 May 2020 07:04:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726598AbgEHLEr (ORCPT ); Fri, 8 May 2020 07:04:47 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C59BAC05BD43; Fri, 8 May 2020 04:04:46 -0700 (PDT) Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jX0nt-0003Gx-Pc; Fri, 08 May 2020 13:04:29 +0200 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 18DC8101175; Fri, 8 May 2020 13:04:29 +0200 (CEST) From: Thomas Gleixner To: "Raj\, Ashok" Cc: "Raj\, Ashok" , Evan Green , Mathias Nyman , x86@kernel.org, linux-pci , LKML , Bjorn Helgaas , "Ghorai\, Sukumar" , "Amara\, Madhusudanarao" , "Nandamuri\, Srikanth" , Ashok Raj Subject: Re: MSI interrupt for xhci still lost on 5.6-rc6 after cpu hotplug In-Reply-To: <20200508005528.GB61703@otc-nc-03> Date: Fri, 08 May 2020 13:04:29 +0200 Message-ID: <87368almbm.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ashok, "Raj, Ashok" writes: >> But as this last one is the migration thread, aka stomp machine, I >> assume this is a hotplug operation. Which means the CPU cannot handle >> interrupts anymore. In that case we check the old vector on the >> unplugged CPU in fixup_irqs() and do the retrigger from there. >> Can you please add tracing to that one as well? > > New tracelog attached. It just happened once. Correct and it worked as expected. migration/3-24 [003] d..1 275.665751: msi_set_affinity: quirk[1] new vector allocated, new apic = 4 vector = 36 this apic = 6 migration/3-24 [003] d..1 275.665776: msi_set_affinity: Redirect to new vector 36 on old apic 6 migration/3-24 [003] d..1 275.665789: msi_set_affinity: Transition to new target apic 4 vector 36 migration/3-24 [003] d..1 275.665790: msi_set_affinity: Update Done [IRR 0]: irq 123 Nvec 36 Napic 4 migration/3-24 [003] d..1 275.666792: fixup_irqs: retrigger vector 33 irq 123 So looking at your trace further down, the problem is not the last one. It dies already before that: <...>-14 [001] d..1 284.901587: msi_set_affinity: quirk[1] new vector allocated, new apic = 6 vector = 33 this apic = 2 <...>-14 [001] d..1 284.901604: msi_set_affinity: Direct Update: irq 123 Ovec=33 Oapic 2 Nvec 33 Napic 6 Here, the interrupts stop coming in and that's just a regular direct update, i.e. same vector, different CPU. The update below is updating a dead device already. migration/3-24 [003] d..1 284.924960: msi_set_affinity: quirk[1] new vector allocated, new apic = 4 vector = 36 this apic = 6 migration/3-24 [003] d..1 284.924987: msi_set_affinity: Redirect to new vector 36 on old apic 6 migration/3-24 [003] d..1 284.924999: msi_set_affinity: Transition to new target apic 4 vector 36 migration/3-24 [003] d..1 284.925000: msi_set_affinity: Update Done [IRR 0]: irq 123 Nvec 36 Napic 4 TBH, I can't see anything what's wrong here from the kernel side and as this is new silicon and you're the only ones reporting this it seems that this is something which is specific to that particular hardware. Have you talked to the hardware people about this? Thanks, tglx