Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1891085ybl; Thu, 9 Jan 2020 03:27:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzYQ6EcmoT8fCF2gJmTJN0XBsr6J0kn67rt+TWeHyAq0hec1uTDR8ND/ZEGsgxlitsoO+km X-Received: by 2002:a9d:51ca:: with SMTP id d10mr7857832oth.76.1578569253149; Thu, 09 Jan 2020 03:27:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578569253; cv=none; d=google.com; s=arc-20160816; b=U/DwoxX+B6ZAWgb6ymiCdveNYzh6hA4vonFljEaxI8x+pE0/tCaKhHU2Xb/9W7N0Ra afxxw135eeTEH0OnGGZ9w7W1S//mkItCyd5HCzdJH2QtZABYpbLxBBcZz8yj/nZjMoS+ lPHBmDLF+w9iHjS2saTdrrkE/rjcrfw0BohgxkJXMMS7t00E82NcNz43S8ti1fMILp64 SrZizqza1ZVMqk9LbhN5eKck8vBHxAG1za7xcZ0A6oUqO+xfAFYpwiBRlbPz0XJ0I1uB 3GY9CQdojfI2h2VQv3roRdHLpmLyYQpuX7nZ0w8LGw2vYZ8UaMvt/EndLRTwYx1uhA0E kQrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=dD1YFWbC0Y7B9niXQWfTUrQg3FwDw851xh9FQ221VB4=; b=0Qcn8W2T248plqaI7WoW4jxKkQ0bYo5g4lcdnZtXpcgspwtCgc+k2G07YinO+vCLAL CkGkoxwLF+3gB5IakR8M91yRBs4l+uZJ2PUOaQqvAxxRuS2ctDPr2iFy+yJK8EZF8t8u WtKPsukUDMzqOHqOrNR6o8ydl9PMYO0pY4CXgO/PQhGNhBVsnT1FrNGC+iGnywvAwU9a F7PHx+sHPkZdurTQcaHjZvVRFNldLFJ9DZQ/m9W7iMAu9VzDlxG7Z63ISCgokq+4n1yi mYCDFgOszHF+UJ4tOUzT51GtkibDE4g1bNeKJkDCVU9otoYYPGyjvzoCbvSBo93fyRh4 wo7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SnN5SH8X; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si3598986ois.221.2020.01.09.03.27.21; Thu, 09 Jan 2020 03:27:33 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=SnN5SH8X; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730069AbgAIKR1 (ORCPT + 99 others); Thu, 9 Jan 2020 05:17:27 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:52376 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728862AbgAIKR1 (ORCPT ); Thu, 9 Jan 2020 05:17:27 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 009AHE2v100029; Thu, 9 Jan 2020 04:17:14 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1578565034; bh=dD1YFWbC0Y7B9niXQWfTUrQg3FwDw851xh9FQ221VB4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=SnN5SH8XX4JhKyx1d11va8cV5XIYCpZYj8XzJ34POQo+nTFWbMTuOZOHeNfFdwhz5 pyYIZDxSVOIwZ/nZd4dChG2ylyd/1gAuzC+YBCStLALcCyGMzOlwy487aA4bm/tQIy F/GMlX1I+jzhBTqKrl1AB8Uu9x2lObjqwmyaDjWU= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 009AHDkc039244 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 9 Jan 2020 04:17:14 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 9 Jan 2020 04:17:13 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 9 Jan 2020 04:17:13 -0600 Received: from [10.24.69.159] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 009AH9k0024424; Thu, 9 Jan 2020 04:17:10 -0600 Subject: Re: [PATCH 0/4] Redesign MSI-X support in PCIe Endpoint Core To: Bjorn Helgaas , Gustavo Pimentel , Xiaowei Bao CC: Lorenzo Pieralisi , Andrew Murray , Murali Karicheri , Jingoo Han , , , References: <20191211224636.GA122332@google.com> From: Kishon Vijay Abraham I Message-ID: Date: Thu, 9 Jan 2020 15:49:17 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20191211224636.GA122332@google.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 12/12/19 4:16 AM, Bjorn Helgaas wrote: > On Wed, Dec 11, 2019 at 06:16:04PM +0530, Kishon Vijay Abraham I wrote: >> Existing MSI-X support in Endpoint core has limitations: >> 1) MSIX table (which is mapped to a BAR) is not allocated by >> anyone. Ideally this should be allocated by endpoint >> function driver. >> 2) Endpoint controller can choose any random BARs for MSIX >> table (irrespective of whether the endpoint function driver >> has allocated memory for it or not) >> >> In order to avoid these limitations, pci_epc_set_msix() is >> modified to include BAR Indicator register (BIR) configuration >> and MSIX table offset as arguments. This series also fixed MSIX >> support in dwc driver and add MSI-X support in Cadence PCIe driver. >> >> The previous version of Cadence EP MSI-X support is @ [1]. >> This series is created on top of [2] >> >> [1] -> https://patchwork.ozlabs.org/patch/971160/ >> [2] -> http://lore.kernel.org/r/20191209092147.22901-1-kishon@ti.com >> >> Alan Douglas (1): >> PCI: cadence: Add MSI-X support to Endpoint driver >> >> Kishon Vijay Abraham I (3): >> PCI: endpoint: Fix ->set_msix() to take BIR and offset as arguments >> PCI: dwc: Fix dw_pcie_ep_raise_msix_irq() to get correct MSIX table >> address >> PCI: keystone: Add AM654 PCIe Endpoint to raise MSIX interrupt > > Trivial nits: > > - There's a mix of "MSI-X" and "MSIX" in the subjects, commit logs, > and comments. I prefer "MSI-X" to match usage in the spec. > > - "Fixes:" tags need not include "commit". It doesn't *hurt* > anything, but it takes up space that could be used for the > subject. > > - Commit references typically use a 12-char SHA1. Again, doesn't > hurt anything. I'll fix all this in my next revision. Xiaowei, Gustavo, The issues we discussed in [1] should be fixed with this series. Can you help test this in your platforms? [1] -> https://lkml.org/lkml/2019/11/6/678 Thanks Kishon >