Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp608746pxy; Thu, 22 Apr 2021 09:16:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyimealkRt57Bwng/FKzcx0AXX6Rh/NiZtzEgfYQCDpwck2ododdNWfE2BM4wTe4r7xgROC X-Received: by 2002:a17:906:9bd3:: with SMTP id de19mr4084190ejc.329.1619108169351; Thu, 22 Apr 2021 09:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619108169; cv=none; d=google.com; s=arc-20160816; b=PD1qBXFFOKVkddBaGRKeTYs69B/CrlO3TApW8r6dC4BVdAhLPAVlLjwd5fExdGlcx1 sBRzsHoP1DXC58OBIXPaPyzgRgqGeh9lzfVyd89NcHiNzEHG4JqyvjD5UemoMJmfmARS btad1UbFR9USR+VYtDNwG49f/ClwVPzpu9ZHiCUinsKnBUfvEZKOMmT3TpXNb+pIlTI6 nIvc/SEMulB9wyfNLNAALtZpWKZhHvxfHsqL3R0FUEsD7kMPi34NNQYzyhGHeRUXnegz vbMHa+CTSSEYWRqfkGziy5dlHtdw/PyhkMXGSgebWoVezVipTDvqsrbpDlf4MjExmQNs 7dxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=unBNzfR/BPMqNhQLgs7hiR+1u6JHAky3xdrg8Qk4UQ0=; b=gG9mnF4z1kS6Nm+d8qs6nVdhUdhBZKnd2OmMCBuY+5BWNUI+rtbDChL97YtOoy2yxF Xkynj0wJoLv/lEMCOVkHYzIs4dSizQjXI8EtRxEGHHElXl6oHD1gl9w02SowSpkDBvuN kxQRzsecJBUUUqNMjysVRm5jNwkRWTNLyWQcB5W72Cv/GkuB5dd7bI8uG1xEiUEPjjxE r5Z60siDVyDse3GqCimvj4EdZzeN6fEqzNskcFIhkiOzJY0AH7AZ1K+U31Y084uGnIW7 3/rG+dEAwK7Cx8q3jOqzy5E5X/iK0hKnRcKKQ6N3AuQK3uvhv0Xzo3c3mQdxqdeCfytx HorA== 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 s13si2801108edc.150.2021.04.22.09.15.45; Thu, 22 Apr 2021 09:16:09 -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 S237829AbhDVQNs (ORCPT + 99 others); Thu, 22 Apr 2021 12:13:48 -0400 Received: from mx.socionext.com ([202.248.49.38]:8022 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237663AbhDVQNp (ORCPT ); Thu, 22 Apr 2021 12:13:45 -0400 Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 23 Apr 2021 01:13:10 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 41E27205902A; Fri, 23 Apr 2021 01:13:10 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Fri, 23 Apr 2021 01:13:10 +0900 Received: from yuzu2.css.socionext.com (yuzu2 [172.31.9.57]) by kinkan2.css.socionext.com (Postfix) with ESMTP id A76A8B1D40; Fri, 23 Apr 2021 01:13:09 +0900 (JST) Received: from [10.212.21.208] (unknown [10.212.21.208]) by yuzu2.css.socionext.com (Postfix) with ESMTP id 05A6B6270; Fri, 23 Apr 2021 01:13:08 +0900 (JST) Subject: Re: [PATCH v10 3/3] PCI: uniphier: Add misc interrupt handler to invoke PME and AER To: Bjorn Helgaas Cc: Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Marc Zyngier , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jassi Brar , Masami Hiramatsu References: <20210414194654.GA2526782@bjorn-Precision-5520> From: Kunihiko Hayashi Message-ID: <53a0792c-3bb8-723a-f5b0-7ef59533fad5@socionext.com> Date: Fri, 23 Apr 2021 01:13:08 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20210414194654.GA2526782@bjorn-Precision-5520> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On 2021/04/15 4:46, Bjorn Helgaas wrote: > On Sat, Apr 10, 2021 at 01:22:18AM +0900, Kunihiko Hayashi wrote: >> This patch adds misc interrupt handler to detect and invoke PME/AER event. >> >> In UniPhier PCIe controller, PME/AER signals are assigned to the same >> signal as MSI by the internal logic. These signals should be detected by >> the internal register, however, DWC MSI handler can't handle these signals. >> >> DWC MSI handler calls .msi_host_isr() callback function, that detects >> PME/AER signals using the internal register and invokes the interrupt >> with PME/AER vIRQ numbers. >> >> These vIRQ numbers is obtained by uniphier_pcie_port_get_irq() function, >> that finds the device that matches PME/AER from the devices associated >> with Root Port, and returns its vIRQ number. > > Why do you use the term "vIRQ"? What exactly is a vIRQ? It seems no > different than the simple "irq" as stored in pci_dev.irq or > pcie_device.irq and passed to generic_handle_irq(). "virq" is also > used in the patch, so if you change one, please change the other as > well. Indeed, I used "virq" in contrast to "hwirq", but that seems wrong. This interrupt number is equivarent to pci_dev.irq, so I'll fix it. Thank you, --- Best Regards Kunihiko Hayashi