Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp944791pxk; Fri, 25 Sep 2020 01:55:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpUDb2pMcbV2/wLTHD13fBUKQ8bhjHlbfHp8B0+a6I9uk8HYpZVboCUX/9nIvqHr+uOCp4 X-Received: by 2002:a17:906:311a:: with SMTP id 26mr1635918ejx.226.1601024135732; Fri, 25 Sep 2020 01:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601024135; cv=none; d=google.com; s=arc-20160816; b=0ABSyczLmQZdRD9cvnRsbWYOFA7t3F8NB4Eb9LzxV2xKWau6X7zr/NH7fX4FKB+HSO qttn6nTdHrzQPvGBj5N9cWxrFjerhFKORNqCQLvh1NtgpIA1bj1Uq9MHo7CkaM3qk4fl ZPOhJ8Jprq1M0SrOmCP3LPPHpdDVzuPm/N42vVpHmTdljtudsodktlVynUNid/TPORJr VV57E1L2xOQ6LRVO96VK+83eKDOlbsp8x2QdMiWj/T5oJF0krd2DxYBPbNw6G9zqiv2V 7clrM8lq1DVB8kQCQAnJRFO/dP7WZkouFKN1cvgWSj6BDo5nL2kE0e8Yz1R6BwV1zzN4 P6ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=fWA/VvBZqbohPm2n/wszG6Dx2YqT5L4FZiRaNfHoaCY=; b=bLsoV2/z6APqMmVx4rc8xovyOjA0NGxKpNd+BKmA4+c7D52ITAFk+Ufy3GecYkM+zw Bd98+FrE1Pl/k+qIaIXfgnGcbB9yYHNlLy7I6E+rQNrZwGbCIMzT1XOp8V1nqD/h3cnO gjA8MpSFb72ZEGbnJqJxF1rEo0toy8/nS0o4zSMtNO59Plt1WS7bfYJRPP3/2FyRUvcy PwftQweOFBGD85p667U6pQqw/Rqopo9sGs6hKsEQOPXTvQNK1aQ4NQCuJ3ubtqoINyD2 rrz1V1ATKXN+H8FGPk+gZcu2DNMG/0fyIbI2eYmwfQ9U4cX5jVXAArSFePWtL3SBuIgc lV0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=fEA++s28; 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=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fy26si1351233ejb.319.2020.09.25.01.55.12; Fri, 25 Sep 2020 01:55:35 -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=@nvidia.com header.s=n1 header.b=fEA++s28; 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=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727324AbgIYIyE (ORCPT + 99 others); Fri, 25 Sep 2020 04:54:04 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:16576 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726990AbgIYIyE (ORCPT ); Fri, 25 Sep 2020 04:54:04 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 25 Sep 2020 01:52:27 -0700 Received: from [10.26.74.254] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 25 Sep 2020 08:53:48 +0000 Subject: Re: [PATCH v2 0/5] PCI: dwc: improve msi handling To: Jisheng Zhang , Kishon Vijay Abraham I , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Jingoo Han , Kukjin Kim , Krzysztof Kozlowski , Richard Zhu , Lucas Stach , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , "Yue Wang" , Kevin Hilman , "Neil Armstrong" , Jerome Brunet , Martin Blumenstingl , Jesper Nilsson , Gustavo Pimentel , Xiaowei Song , Binghui Wang , Andy Gross , Bjorn Andersson , Stanimir Varbanov , Pratyush Anand , Thierry Reding , Kunihiko Hayashi , Masahiro Yamada CC: , , , , , , , , , Vidya Sagar References: <20200924190421.549cb8fc@xhacker.debian> From: Jon Hunter Message-ID: Date: Fri, 25 Sep 2020 09:53:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200924190421.549cb8fc@xhacker.debian> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601023947; bh=fWA/VvBZqbohPm2n/wszG6Dx2YqT5L4FZiRaNfHoaCY=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding:X-Originating-IP:X-ClientProxiedBy; b=fEA++s28b/AQ7mzCLkLzYFRlJF2BG2COMVrHmZ9Cjc9p5TbBFqA5BOrVtJltGemIH oSNwCyvZoGvaq8JWbamivR4JiDHJ/fbHitkOBJUyOKk7fhFokWkA1SANddNTwBcXbB rJtZyjOJgzSgh4jh1o7XcmqvLXAzSBHYcicmtJ9h9TR22K1MmS7jVQdifrj4pS6LSh CZ5NHyDgIi28TtEhytLl0KvjvjNJQH8L1ZdjBKU9CMVcbwGoJxuinK8SOz6YpIuAxo hXWH5k1Il3WIy1HCnjUYcvviC2GDIwIFEgHTYvXo7Sko+a01zKS96FQk+ozLWpbU2o blYdOUWHAkYjw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/09/2020 12:05, Jisheng Zhang wrote: > Improve the msi code: > 1. Add proper error handling. > 2. Move dw_pcie_msi_init() from each users to designware host to solve > msi page leakage in resume path. Apologies if this is slightly off topic, but I have been meaning to ask about MSIs and PCI. On Tegra194 which uses the DWC PCI driver, whenever we hotplug CPUs we see the following warnings ... [ 79.068351] WARNING KERN IRQ70: set affinity failed(-22). [ 79.068362] WARNING KERN IRQ71: set affinity failed(-22). These interrupts are the MSIs ... 70: 0 0 0 0 0 0 0 0 PCI-MSI 134217728 Edge PCIe PME, aerdrv 71: 0 0 0 0 0 0 0 0 PCI-MSI 134742016 Edge ahci[0001:01:00.0] This caused because ... static int dw_pci_msi_set_affinity(struct irq_data *d, const struct cpumask *mask, bool force) { return -EINVAL; } Now the above is not unique to the DWC PCI host driver, it appears that most PCIe drivers also do the same. However, I am curious if there is any way to avoid the above warnings given that setting the affinity does not appear to be supported in anyway AFAICT. Cheers Jon -- nvpublic