Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2485165ybc; Sun, 17 Nov 2019 22:59:35 -0800 (PST) X-Google-Smtp-Source: APXvYqydbVFGleX9XhhsqAC9V6QJVW+NrxCX2dhUvlDg061jzO6jmctaL0xok5RSdNfxmbnY6Yg2 X-Received: by 2002:a17:906:4e83:: with SMTP id v3mr24783090eju.246.1574060375712; Sun, 17 Nov 2019 22:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574060375; cv=none; d=google.com; s=arc-20160816; b=0DrV2HpV0iBWveDRF24zBncQ+IN/RdfI/XO0MpIyEpQ0JhhDZKS8ExknuBHnKnri87 ApoTC0qBtjJz0X0vyXMucw2eeEJKAfUsyZerwPvMJu5pNphUMVzEZXG5kCwXQGiCDoKl P1XCIrXCxR+95x7h68b0whOMFaG9oPhuL6Y7rtVnGJSOyXEg2mhIhR/wiUvuMI09Vdyj KRS/lHwIQK3L0NH7Wln+QgAn5VpNO5hwCcaQ84UXqe7EgdIuD7EEOfyo7ZHtpH9PdI0u L61Tk4+CPUn40vqfaB39qOq2fmDB1I898TyKU9kfugRqscGjJu5VSVixwjS6H/8Y4lFr +aMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=IJes9iG/B6AHc+jIWOW04FFs9oNl+rLxj6+oJvMhU3A=; b=0+TRNtOpS5STeFmg032m6ksYxEtBnX4EISYwgCw2tBm72NibSh3EmkAZWVz+cuGFG9 67yDBCWFGf8Eb0Uaj/LeXIWhIWTrA2do3zEugmxsQeFKJC08QknckTssIZjSbfjMtD/L rdISow3UgnwEWIvDovrLl3vu1BK8lXPqNV5Y7wRbaXUOKvrrNDTlZ86xFn9YHBDDB/Dq DyjGcmNbICOwoVbCuuN0M1FwtpdSlDoWaGIHoZFNbaisA4Z4MBNjiQTwnzztCEVRt6eB zESrWJYGnHN4lHWIaXmMviJkpdcuqSeqnlq57YX3wQSQWe5o5Y94xHDuUqqwtBzGH6QF d0ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=TCf95B17; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si6312305ejz.131.2019.11.17.22.59.11; Sun, 17 Nov 2019 22:59:35 -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=@nvidia.com header.s=n1 header.b=TCf95B17; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726967AbfKRGzu (ORCPT + 99 others); Mon, 18 Nov 2019 01:55:50 -0500 Received: from hqemgate16.nvidia.com ([216.228.121.65]:9841 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726455AbfKRGzt (ORCPT ); Mon, 18 Nov 2019 01:55:49 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sun, 17 Nov 2019 22:55:49 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Sun, 17 Nov 2019 22:55:48 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Sun, 17 Nov 2019 22:55:48 -0800 Received: from [10.25.74.243] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 18 Nov 2019 06:55:45 +0000 Subject: Re: [PATCH 0/4] Add support to defer core initialization To: , , , , , , CC: , , , , , , References: <20191113090851.26345-1-vidyas@nvidia.com> X-Nvconfidentiality: public From: Vidya Sagar Message-ID: <108c9f42-a595-515e-5ed6-e745a55efe70@nvidia.com> Date: Mon, 18 Nov 2019 12:25:42 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191113090851.26345-1-vidyas@nvidia.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1574060149; bh=IJes9iG/B6AHc+jIWOW04FFs9oNl+rLxj6+oJvMhU3A=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=TCf95B17/9wedEdemqTyTcvqMieaA6nyAgQ0eIQLr+blsEQ+VREEF8mH836Fo2Wdb 43KTqeR4t2XH4v5b7u9LM2d0tc89ULNbOpYOIOwHUKchdUexKU600jOrG9CO1T4HTY QMnNpH0z82TN2wkFk9SOsPiceFrtdMcgiTZ6KcLo22eYXlj2bGT8kNh9Vy07tj4ogH 8r8OYmiDHN/owMopJOtXmDAdUpYlEa8L5KJidyw6Nmhlrb1eFpCAOzOUT1f/SqOMaN btQRZ3h9sHo1bTCxx9tfnLNba8Yrm6D3kuNH8Hh7fxi0KtgCGJmBOa5qTmWT9HUpZH NkcXa90BsZoww== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/13/2019 2:38 PM, Vidya Sagar wrote: > EPC/DesignWare core endpoint subsystems assume that the core registers are > available always for SW to initialize. But, that may not be the case always. > For example, Tegra194 hardware has the core running on a clock that is derived > from reference clock that is coming into the endpoint system from host. > Hence core is made available asynchronously based on when host system is going > for enumeration of devices. To accommodate this kind of hardwares, support is > required to defer the core initialization until the respective platform driver > informs the EPC/DWC endpoint sub-systems that the core is indeed available for > initiaization. This patch series is attempting to add precisely that. > This series is based on Kishon's patch that adds notification mechanism > support from EPC to EPF @ http://patchwork.ozlabs.org/patch/1109884/ > > Vidya Sagar (4): > PCI: dwc: Add new feature to skip core initialization > PCI: endpoint: Add notification for core init completion > PCI: dwc: Add API to notify core initialization completion > PCI: pci-epf-test: Add support to defer core initialization > > .../pci/controller/dwc/pcie-designware-ep.c | 79 +++++++----- > drivers/pci/controller/dwc/pcie-designware.h | 11 ++ > drivers/pci/endpoint/functions/pci-epf-test.c | 114 ++++++++++++------ > drivers/pci/endpoint/pci-epc-core.c | 19 ++- > include/linux/pci-epc.h | 2 + > include/linux/pci-epf.h | 5 + > 6 files changed, 164 insertions(+), 66 deletions(-) > Hi Kishon / Gustavo / Jingoo, Could you please take a look at this patch series? - Vidya Sagar