From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D7C7C3567B for ; Mon, 24 Feb 2020 10:34:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F81020828 for ; Mon, 24 Feb 2020 10:34:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727240AbgBXKem (ORCPT ); Mon, 24 Feb 2020 05:34:42 -0500 Received: from foss.arm.com ([217.140.110.172]:35100 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbgBXKem (ORCPT ); Mon, 24 Feb 2020 05:34:42 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DE54230E; Mon, 24 Feb 2020 02:34:41 -0800 (PST) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 398503F703; Mon, 24 Feb 2020 02:34:41 -0800 (PST) Date: Mon, 24 Feb 2020 10:34:36 +0000 From: Lorenzo Pieralisi To: Kishon Vijay Abraham I Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/5] PCI: Endpoint: Miscellaneous improvements Message-ID: <20200224103436.GA8764@e121166-lin.cambridge.arm.com> References: <20200224095338.3758-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200224095338.3758-1-kishon@ti.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 24, 2020 at 03:23:33PM +0530, Kishon Vijay Abraham I wrote: > Changes from v2: > *) Added "Tested-by" tag from Vidya Sagar > *) Added stable fixes tag to "Fix for concurrent memory allocation in > OB address region" > > Changes from v1: > Rebased to Linux 5.6-rc1 and removed dependencies to my other series > to unblock [1] > > [1] -> http://lore.kernel.org/r/20200103100736.27627-1-vidyas@nvidia.com > > v1 of this patch series can be found @ > http://lore.kernel.org/r/20191231100331.6316-1-kishon@ti.com > > This series adds miscellaneous improvements to PCIe endpoint core. > 1) Protect concurrent access to memory allocation in pci-epc-mem > 2) Replace spinlock with mutex in pci-epc-core and also use > notification chain mechanism to notify EPC events to EPF driver. > 3) Since endpoint function device can be created by multiple > mechanisms (configfs, devicetree, etc..), allowing each of these > mechanisms to assign a function number would result in mutliple > endpoint function devices having the same function number. In order > to avoid this, let EPC core assign a function number to the > endpoint device. > > Kishon Vijay Abraham I (5): > PCI: endpoint: Use notification chain mechanism to notify EPC events > to EPF > PCI: endpoint: Replace spinlock with mutex > PCI: endpoint: Fix for concurrent memory allocation in OB address > region > PCI: endpoint: Protect concurrent access to pci_epf_ops with mutex > PCI: endpoint: Assign function number for each PF in EPC core > > drivers/pci/endpoint/functions/pci-epf-test.c | 13 +- > drivers/pci/endpoint/pci-ep-cfs.c | 27 +---- > drivers/pci/endpoint/pci-epc-core.c | 113 ++++++++---------- > drivers/pci/endpoint/pci-epc-mem.c | 10 +- > drivers/pci/endpoint/pci-epf-core.c | 33 ++--- > include/linux/pci-epc.h | 19 ++- > include/linux/pci-epf.h | 9 +- > 7 files changed, 108 insertions(+), 116 deletions(-) Applied to pci/endpoint for v5.7, thanks. Lorenzo