Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp153611ybb; Thu, 19 Mar 2020 13:25:31 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuC2lFz1mDUlj6AfUZ972cd6iTj1ZZ0BE183gtLyitIpv9fT543poo4PeO3g9ukOAZc10wW X-Received: by 2002:a9d:7cd9:: with SMTP id r25mr4024635otn.296.1584649531058; Thu, 19 Mar 2020 13:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584649531; cv=none; d=google.com; s=arc-20160816; b=oz9IkM9kJUuUvmcsEFCRWoQpRkk5nkR5UdcuhtZpUxoTeE3x2QMAChlfBfeGhVQ9F6 1EeCJQTzD4xoSHBFEoXpFuJitbJGSrQzp58NTUJpE6phL9L04Aaq1fv9FQaQxQ9J4Rn5 lV389BjNV/vX8SS5Y6e/46yLM+vegk//c8w+yYh44s+5AwQls8kuz780BeRxXT5SkPwb cAQb+jfEJ3ed6OyAsIndtCDOp1Ho4M2a2k2UU/nZpNLuHQHSrHIT4xJojcNr/5BLGcpi 2DnpW3nVNxjdGII1KL12puUaJIgt2wQ2k3mL7/g6lTziZh8JReoq6NhFSV1rq5lkyVMv rK7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uvQkY59qXbqmh2jA/0FCgGEES29MX9NxM3v9QbCaiJg=; b=TkVfGWItKHEM/pnxj8MlbqHrnyRHRMUz7BeaWQ4WhHRaK8wCQNU8EWEdGCityvoZK1 RNL75pYLLIHUkflDLKdA5077tPkFY14iq20vQnmv7ifQVI4FXyhjsDW0/hat3E7qT0Er pPkvdyLyw+kAPcwo2EfYJU/cic9pyxXgXPQE4tJ0Fq4yQZhM0jiau7uPF/UqQ87EUY0T AhP5rQ9V44sdKhx9D/RWUQyrqo9VS2KlDp7o/vFvhRDkWgBLvIsqVTOsUP/wY55W96tw 3lBM18dzbDFqanRWcvdW3YbrJEIKIo7US8lquOkZA7/4HI4AZdIGPBo+KDN2Wf10WBzl 9USQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BZCx6sdM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si1740334otk.154.2020.03.19.13.25.16; Thu, 19 Mar 2020 13:25:31 -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; dkim=pass header.i=@chromium.org header.s=google header.b=BZCx6sdM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726934AbgCSUYy (ORCPT + 99 others); Thu, 19 Mar 2020 16:24:54 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:33736 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbgCSUYx (ORCPT ); Thu, 19 Mar 2020 16:24:53 -0400 Received: by mail-lf1-f67.google.com with SMTP id c20so2777724lfb.0 for ; Thu, 19 Mar 2020 13:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uvQkY59qXbqmh2jA/0FCgGEES29MX9NxM3v9QbCaiJg=; b=BZCx6sdMC/lZySAftdRcfeiiSq2uZA9YVpplNcpG2p8J9RhJnbGmiUdzWYXMmfV1pt qRp5YBrSnlyF9mvpiq75rGA2Teb1lRawyJ+HHOPY9yq0q29xhakmwe+xEq4Izg4v9vsZ ilCqAnpC4TIwbvbJyaI81jwVNVrb1D6HsAIrU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uvQkY59qXbqmh2jA/0FCgGEES29MX9NxM3v9QbCaiJg=; b=alk6x9jRIMNo5AUw8kQ8+NaFAsfDmVZ6tsziAelW4QRhNoMlcRJquoFxWJhhpl35qQ vw/Hf0xuIlYtqIevJTDY9fCFlNymppq86bAVjsUqKcRUbXZhfbCmYi/lKDT7T+c9rUH8 A9Tt5ukzSJSw/+a21+qbzXyVtMmO5vjJJkZoMdrObEyUZY5NMe2fsfQ6yAZC3O4+nj1J uNzv153if/NIYy0KR7AEIJ8L29dQB01FklN1qVXF4T3XfLsozjqyhA3QB23OlJ6vefL5 zt+mRahTcibs4jnrBgSlvryRJ8mVQnlUocf25GppZD182pD7wLvFApaHgbqcWh4KfJaz PGaA== X-Gm-Message-State: ANhLgQ1XQ+/snv2JmnOhD09o43RQk+HkznD4qyHQB6CbbC+oy7X8OhgR zGc//aIPGKSnHVw7aVzlZU7EICN8FwE= X-Received: by 2002:a19:6e0f:: with SMTP id j15mr3172145lfc.76.1584649490626; Thu, 19 Mar 2020 13:24:50 -0700 (PDT) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com. [209.85.167.42]) by smtp.gmail.com with ESMTPSA id f8sm2115514ljc.86.2020.03.19.13.24.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Mar 2020 13:24:50 -0700 (PDT) Received: by mail-lf1-f42.google.com with SMTP id s1so2763918lfd.3 for ; Thu, 19 Mar 2020 13:24:49 -0700 (PDT) X-Received: by 2002:a19:c748:: with SMTP id x69mr3099253lff.196.1584649489074; Thu, 19 Mar 2020 13:24:49 -0700 (PDT) MIME-Version: 1.0 References: <806c51fa-992b-33ac-61a9-00a606f82edb@linux.intel.com> In-Reply-To: <806c51fa-992b-33ac-61a9-00a606f82edb@linux.intel.com> From: Evan Green Date: Thu, 19 Mar 2020 13:24:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: MSI interrupt for xhci still lost on 5.6-rc6 after cpu hotplug To: Mathias Nyman Cc: x86@kernel.org, linux-pci , Thomas Gleixner , LKML , Bjorn Helgaas , "Ghorai, Sukumar" , "Amara, Madhusudanarao" , "Nandamuri, Srikanth" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 18, 2020 at 12:23 PM Mathias Nyman wrote: > > Hi > > I can reproduce the lost MSI interrupt issue on 5.6-rc6 which includes > the "Plug non-maskable MSI affinity race" patch. > > I can see this on a couple platforms, I'm running a script that first generates > a lot of usb traffic, and then in a busyloop sets irq affinity and turns off > and on cpus: > > for i in 1 3 5 7; do > echo "1" > /sys/devices/system/cpu/cpu$i/online > done > echo "A" > "/proc/irq/*/smp_affinity" > echo "A" > "/proc/irq/*/smp_affinity" > echo "F" > "/proc/irq/*/smp_affinity" > for i in 1 3 5 7; do > echo "0" > /sys/devices/system/cpu/cpu$i/online > done > > I added some very simple debugging but I don't really know what to look for. > xhci interrupts (122) just stop after a setting msi affinity, it survived many > similar msi_set_affinity() calls before this. > > I'm not that familiar with the inner workings of this, but I'll be happy to > help out with adding debugging and testing patches. How quickly are you able to reproduce this when you run your script? Does reverting Thomas' patch make it repro faster? Can you send the output of lspci -vvv for the xhci device? -Evan