Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3431056rwb; Tue, 8 Nov 2022 04:37:16 -0800 (PST) X-Google-Smtp-Source: AMsMyM6c54VkQzZjQLgyGAjR1Ts852u1tT1YAtjNUkNd/TBbQ14tLvrHij7OPIN4L306dy8/u+Yf X-Received: by 2002:a17:907:9602:b0:780:8c9f:f99a with SMTP id gb2-20020a170907960200b007808c9ff99amr53875900ejc.465.1667911035900; Tue, 08 Nov 2022 04:37:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667911035; cv=none; d=google.com; s=arc-20160816; b=bqF+c/gW4ypCIKt0HLbCd/GofXqm92Q/HWKy5Z13ZPBZmEh1cbjcXucJcOf7HW4Svj yERnFpL/OcveDYIObZHjm+JPDW/toTeuEmReHLmXZRhDaIVtdnrkxNHQ2gPK829cLE2G 9Z6FncktV4PvO8zhS2/I88JfMs8kr+8XKwEU0dx6FeBV+rA1wzxQF1it7iEP9JtIncA+ QtS6F7dmKljBfgHTaizZOC28FiPOkUG+Gn5B/G276a83CAadR5y9W/ujz/M13jtn1PSh /1XiwnZkvSU7rU3Lz5y9C74B9dx/wu8eFE+TPPCkkciUC03YwM6T/0QpdyzJZzKplhOi r6zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SGI9zJafSo+dT15R0+N5O4QPZGOTZV+sWCo0eHtQqjw=; b=fl6jRL+DI4TGu4w1+VQ1emSj4HVs8Pio69TntQw8zBMEkByaaLQqyu6fBYT4/grx4E hC3QZjYPvgfgOZcBnZtiFjA8qgD8t0ymti2Y0ZiUrxOpnHyNFGjruqQJ7eHH+35nlGqI A0YRQt2Q9ChZ17cEbynybHIyQp4rs1xjNpXTo5xpnKXv9e0Wx/VnOmYaN5WhGj9rtX29 5cey3RTs6xnrRU7OJv2MZnfugBcQTEKZFo0Kh6luI78ygoSOOx2Pt579kn4zay3mZ56Q B45uHHZqoJtEfwZpdlNiHF40mH0YuOLmBipSVOj1iVNC6tM/Slkzv3R+Vg0368GAvakv ZWBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AS4fZ0Z7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb12-20020a170907960c00b007add6be8c86si13207214ejc.762.2022.11.08.04.36.54; Tue, 08 Nov 2022 04:37:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AS4fZ0Z7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233970AbiKHMO6 (ORCPT + 89 others); Tue, 8 Nov 2022 07:14:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233971AbiKHMOw (ORCPT ); Tue, 8 Nov 2022 07:14:52 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9202D3E09E for ; Tue, 8 Nov 2022 04:14:48 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id m6so13682818pfb.0 for ; Tue, 08 Nov 2022 04:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=SGI9zJafSo+dT15R0+N5O4QPZGOTZV+sWCo0eHtQqjw=; b=AS4fZ0Z7h9A3PzUkADaZKLSWmUHkX5WwU3/AoS+QyE8gcmEd5ivuv1r4W074jUR7qw /7BPoRPtUC2STKq+oD4AapwtFGUFQdIJ3SnPKJLTFEMbfmvHerd2gBbR1HphxonSlulM vrUctbIFYaTlOBkFi7RdU+MjGsnzbu9BLFQYPgXNReTXOkFIARm1D7bCCFx1QCXNX+KP W++CvkdOBoZZuer7udcfa+SeoRwSlfadRuuM0OcAZIqUo2yuEHWE0+AHse9Z792DRtig nyaECi0pbg08VYfhrBnXqQDimEnLxPgKr5yGQ+jWJtX7sHwh+kaR8SKWC/q3g1HICJgi ws6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SGI9zJafSo+dT15R0+N5O4QPZGOTZV+sWCo0eHtQqjw=; b=Aj7p9R9UWh4sxLkQyl8zzY34hN2sgWMXjf6Sx5lxB//EGtM8VY9xz7HZtigMJLlY8l Ku3dmL4XVYezfussb5r3IO/0nN7ljOG0Ds/pk8IaWK5rzBaC9m0q/GP7BhNRa7Zyd9QS SW0B5BTrUTyRXLCwcWOcXMdWUM8FMsoboDsH3gP8hXLQNoqUuUAlwIemQeUuF7HfgHW8 8jC7Cyzat2G4sWwcFJkZFjOVBoAKFrYGuYifgN9aX2/m1ROO0SpaS+HWuT/2K8zqRP5Z 3R5o4b6bOnW3grLbYcW8/1KmgGyfLZWIZ3M4dy9bdVMztwSq60rOLJc+fnyFeG2rdk4/ WThA== X-Gm-Message-State: ACrzQf2UvZ0E2Rf+sW0tsL0Q3fROtGS6tKBApNHTNlbj5x8jwCf8ERbM jPvh21LZWVzQcdwbBnaOKCJQ X-Received: by 2002:a63:5a63:0:b0:42f:e143:80d4 with SMTP id k35-20020a635a63000000b0042fe14380d4mr48808447pgm.456.1667909687929; Tue, 08 Nov 2022 04:14:47 -0800 (PST) Received: from thinkpad ([117.207.25.46]) by smtp.gmail.com with ESMTPSA id f5-20020a655505000000b00434760ee36asm5619378pgr.16.2022.11.08.04.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 04:14:46 -0800 (PST) Date: Tue, 8 Nov 2022 17:44:40 +0530 From: Manivannan Sadhasivam To: Bjorn Helgaas Cc: kishon@kernel.org, lpieralisi@kernel.org, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kw@linux.com, robh@kernel.org, vidyas@nvidia.com, vigneshr@ti.com Subject: Re: [PATCH v4 0/5] PCI: endpoint: Rework the EPC to EPF notification Message-ID: <20221108121440.GA29115@thinkpad> References: <20221025145101.116393-1-manivannan.sadhasivam@linaro.org> <20221107202853.GA416802@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221107202853.GA416802@bhelgaas> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 07, 2022 at 02:28:53PM -0600, Bjorn Helgaas wrote: > On Tue, Oct 25, 2022 at 08:20:56PM +0530, Manivannan Sadhasivam wrote: > > Hello, > > > > During the review of the patch that fixes DBI access in PCI EP, Rob > > suggested [1] using a fixed interface for passing the events from EPC to > > EPF instead of the in-kernel notifiers. > > > Manivannan Sadhasivam (5): > > PCI: dra7xx: Use threaded IRQ handler for "dra7xx-pcie-main" IRQ > > PCI: tegra194: Move dw_pcie_ep_linkup() to threaded IRQ handler > > PCI: endpoint: Use a separate lock for protecting epc->pci_epf list > > PCI: endpoint: Use callback mechanism for passing events from EPC to > > EPF > > PCI: endpoint: Use link_up() callback in place of LINK_UP notifier > > > > drivers/pci/controller/dwc/pci-dra7xx.c | 2 +- > > drivers/pci/controller/dwc/pcie-tegra194.c | 9 ++++- > > drivers/pci/endpoint/functions/pci-epf-test.c | 38 ++++++------------- > > drivers/pci/endpoint/pci-epc-core.c | 32 ++++++++++++---- > > include/linux/pci-epc.h | 10 +---- > > include/linux/pci-epf.h | 19 ++++++---- > > 6 files changed, 59 insertions(+), 51 deletions(-) > > Doesn't apply cleanly on v6.1-rc1. Does it depend on something else? Yes, this patch: https://lore.kernel.org/linux-pci/20220825090101.20474-1-hayashi.kunihiko@socionext.com/ Since this patch is already merged by Lorenzo, I based this series on top of that. If that's not required, I can send a new version without that patch. Let me know. Thanks, Mani -- மணிவண்ணன் சதாசிவம்