Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2410612ybc; Sun, 24 Nov 2019 20:49:59 -0800 (PST) X-Google-Smtp-Source: APXvYqw4kYlwBNsWbi68yPxek1ZTREHaygWtXWvx2/xlV3hoz+XuNz3/6+g46cSUvG+bIDLG+KMn X-Received: by 2002:a05:6402:2d6:: with SMTP id b22mr16519012edx.133.1574657399653; Sun, 24 Nov 2019 20:49:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574657399; cv=none; d=google.com; s=arc-20160816; b=QuhfnLapDgQ9EtcyY0gAVogK58VCqS7zt8UPg+nltW99fipebj4mn1HCxefVtLP7D6 7BoJsG4CID9iW9JDn8Ddbp4aXJrGZQwTozrAfVJ+j1ZBkZkDchoKMcGeol/gGVgW5uyM BBNE9jjruaU7vv+YchjwfuONnDDa07R5MFHlgouToKHvHx1Vnw2dK2lf8ARTOZL6/7Sl XS9GVNWIcyL6XZDJY/vDVUeYZld4cWTQKBjXKLZIcD6ZyWGAPDf1HfDKEy6Vumh3SSa3 8t7AFg467DHXOO0V801t77Xg9rXy3HA8ApLFW8ahBEcPigCS9h2cPe6b0477AISMCJRU 2Q4Q== 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=Wzx1jESaMfi6+oDwa4IY9LrI/AdCk7z8iODViWIr7tk=; b=u3cpuqr1QyaKkZR8JJgwlWgtTuqPfR+s3kHJkZg49RniDGzE+/nB8MJGwX6MUUR68A T4nhU1VNnVIeNUdLf/xZJtDfKl4vwqmnOTH9gxlBgr03NI8hGDeEAAHFozktRidyu+x6 0K4PLM2GHAbB1F2tktyYkU6i7m6jXuivrRLTOU3YFbf5v9iqbNg7DOEsU1tja1OkOjVO 2YnxCpJLkUN8ojdxIPewcpmnuJdDVImVBW03O75FHVS0Ak6ps18X0Y9SP51ATzAfgZSy 02OH7VG3l1b7tlPPWogyJ/rgrggmznSN6xyUMeUm52pyLmx2Wwa3S7Wy+kOKdto7jyq/ vTcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=O4ezwgD6; 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 s10si3723378ejr.19.2019.11.24.20.49.35; Sun, 24 Nov 2019 20:49:59 -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=O4ezwgD6; 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 S1727146AbfKYEqG (ORCPT + 99 others); Sun, 24 Nov 2019 23:46:06 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:47696 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726945AbfKYEqG (ORCPT ); Sun, 24 Nov 2019 23:46:06 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAP4juuR126494; Sun, 24 Nov 2019 22:45:56 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1574657156; bh=Wzx1jESaMfi6+oDwa4IY9LrI/AdCk7z8iODViWIr7tk=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=O4ezwgD6Wr303rSZXMHkP5aKut8btcoTFDtxsd4ebT9KgDV03PHtQrcckaptEDnVP 8NwNPgX8im44gJX9olkQVMEonvvo1+oNokC0uJnLos9msuHFb7sYOdWErGxO2jG4RM 1uBGFLMoOOgDJDhSUFz2bwJXE/+2aID8P+gondi0= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAP4juLS126096; Sun, 24 Nov 2019 22:45:56 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Sun, 24 Nov 2019 22:45:56 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE112.ent.ti.com (10.64.6.33) 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; Sun, 24 Nov 2019 22:45:56 -0600 Received: from [172.24.190.233] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAP4jpB7030847; Sun, 24 Nov 2019 22:45:52 -0600 Subject: Re: [PATCH 0/4] Add support to defer core initialization To: Vidya Sagar CC: Jingoo Han , "gustavo.pimentel@synopsys.com" , "lorenzo.pieralisi@arm.com" , "andrew.murray@arm.com" , "bhelgaas@google.com" , "thierry.reding@gmail.com" , "Jisheng.Zhang@synaptics.com" , "jonathanh@nvidia.com" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kthota@nvidia.com" , "mmaddireddy@nvidia.com" , "sagar.tv@gmail.com" References: <20191113090851.26345-1-vidyas@nvidia.com> <108c9f42-a595-515e-5ed6-e745a55efe70@nvidia.com> <550dd734-acd9-802a-f650-44c32b56b58a@nvidia.com> From: Kishon Vijay Abraham I Message-ID: <94d5381c-5c39-b040-00a1-8333b6c73423@ti.com> Date: Mon, 25 Nov 2019 10:15:11 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <550dd734-acd9-802a-f650-44c32b56b58a@nvidia.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit 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 25/11/19 10:03 AM, Vidya Sagar wrote: > On 11/18/2019 10:13 PM, Jingoo Han wrote: >> >> >> On 11/18/19, 1:55 AM, Vidya Sagar wrote: >>> >>> 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? >> >> You need a Ack from Kishon, because he made EP code. > Hi Kishon, > Could you please find time to review this series? I'll review it this week. Sorry for the delay. -Kishon