Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1137741ybi; Fri, 14 Jun 2019 09:13:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzF0ahmwUTNfpuTWjjXJfIGr+MnpmkvkdqycAwhbtuJu7OzEJDkUezXcPT96DSyJVBPEa2I X-Received: by 2002:a63:8bc7:: with SMTP id j190mr36373169pge.104.1560528830763; Fri, 14 Jun 2019 09:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560528830; cv=none; d=google.com; s=arc-20160816; b=FQ3Al7JGI8Dg5/RbtlZBq9VGkCLJaW4bijw5q0IbvPPumcGfxerx7Ss2n1lCHGHEVX 5MWnAkzaGJEc9Abu830qYCToVrn8o0l++X84C6s1vZEkMvp9yoXz/uCT+w7Zk1cinBRo spCyMg/at8KL3TMJY/PtBoL3j0OPq3itAdjuqgwqBZpGws5FvqSr4kRT0HleHXYwOQz/ Qi2yslw4KyXid9b2sc72NtH8pMSzDddrPE4ruF4lbdoAogMpL3LgTf5Wsxm1hM2L0OHB KW5GB2BxWLEtEm/Tjel0KIY5mhNCL5ZbU7HevJ+nGITsw54iWDqQkku7R1WcauMTJq/K Byrw== 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=U1G5/chSX76jJebfU8fFuPn83smOgYAa1oniljWF5KA=; b=TsZgPWmv7dLIf9uZ4Hk4zc8ZyEAqpo9+k5XQSQzu8a+5D5tIZJqiFbkqoYAzULg9qP nbKJsXEbzvBde8CuVtEkTxHJOFw8HMxlVfjfCwMDXFdLjCSSFNpP/Ku9vVFIsrN8K7XU mZR8z0wQpp+Ij1udMtvqXoMS/Yvsp2kyk8jPMxiVnetoTx5owL5wJhwz/xNe6Dwp+G9F maYhqYa9jcH4wu/EAV1XZl9y5YZ1Jd89xOe48LUwbRcuy/vwIoNne5gAcT3x7rQFLAWK YxFUJaaDT2/wBpXt0+nCFeeGiFR8QHdbmSYk6Ihzk4OwVMZPFE104tv6L/kWnP8YCvmR ISvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="fIxpnoH/"; 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 n11si2812353pgq.498.2019.06.14.09.13.33; Fri, 14 Jun 2019 09:13:50 -0700 (PDT) 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="fIxpnoH/"; 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 S1726230AbfFNQLM (ORCPT + 99 others); Fri, 14 Jun 2019 12:11:12 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:15947 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbfFNQLL (ORCPT ); Fri, 14 Jun 2019 12:11:11 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 14 Jun 2019 09:11:11 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Fri, 14 Jun 2019 09:11:11 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Fri, 14 Jun 2019 09:11:11 -0700 Received: from [10.19.65.14] (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 14 Jun 2019 16:11:08 +0000 Subject: Re: [PATCH V1 1/2] mailbox: tegra: hsp: add noirq resume To: Thierry Reding CC: Jassi Brar , Thierry Reding , Jonathan Hunter , , References: <1560515734-2085-1-git-send-email-bbiswas@nvidia.com> <20190614155041.GB26922@ulmo> From: Bitan Biswas Message-ID: Date: Fri, 14 Jun 2019 09:11:06 -0700 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: <20190614155041.GB26922@ulmo> X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL103.nvidia.com (172.20.187.11) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="windows-1252"; 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=1560528671; bh=U1G5/chSX76jJebfU8fFuPn83smOgYAa1oniljWF5KA=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=fIxpnoH/l3viomNBG2W4wQaHrLGYdOqN9YcNmewVeOORmayP7o7acSPqoFa7e6pIa Ow+MJQqvamONiC41Z07WVU6tbYmPgE3YfxdoICsYAgYWlsFW8u00yh0VVYalCGGlq3 Lpz5eCxD69SitQaADLBFti0VsYFqD76/qqN/G37Xvl31D2wvi0AUQHb91llpGNlXZk gIfop4oIYxLAN0lHn/lqc6lBo0g0436My9vGRTzPcLDRdNORHPd+m0OtrZlWHxpO2S WAh7eCHMAfjptYYZeMDhUmSLRM4hbNX+lLcgXGv7Ml2rV+yQ+LC8c84kG4uZ7XXERJ SRlBQIaUNluew== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/14/19 8:50 AM, Thierry Reding wrote: > On Fri, Jun 14, 2019 at 05:35:33AM -0700, Bitan Biswas wrote: >> Add noirq resume instead of resume callback for Tegra HSP. Tegra HSP >> resume needs tegra_hsp_doorbell_startup() call to fix timeout error for >> tegra_bpmp_transfer() during genpd resume noirq on jetson-tx2. > > s/jetson-tx2/Jetson TX2/? I shall replace the string "jetson-tx2" in commit description with "Jetson TX2". > >> >> Signed-off-by: Bitan Biswas >> --- >> drivers/mailbox/tegra-hsp.c | 12 ++++++++++-- >> 1 file changed, 10 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c >> index 91f1a0c..f147374 100644 >> --- a/drivers/mailbox/tegra-hsp.c >> +++ b/drivers/mailbox/tegra-hsp.c >> @@ -771,10 +771,16 @@ static int tegra_hsp_probe(struct platform_device *pdev) >> return 0; >> } >> >> -static int __maybe_unused tegra_hsp_resume(struct device *dev) >> +static int __maybe_unused tegra_hsp_noirq_resume(struct device *dev) > > Maybe call this tegra_hsp_resume_noirq() to match the naming of the > dev_pm_ops callback? I shall rename tegra_hsp_noirq_resume back to tegra_hsp_resume. > >> { >> struct tegra_hsp *hsp = dev_get_drvdata(dev); >> unsigned int i; >> + struct tegra_hsp_doorbell *db; >> + >> + list_for_each_entry(db, &hsp->doorbells, list) { >> + if (db && db->channel.chan) >> + tegra_hsp_doorbell_startup(db->channel.chan); >> + } >> >> for (i = 0; i < hsp->num_sm; i++) { >> struct tegra_hsp_mailbox *mb = &hsp->mailboxes[i]; >> @@ -786,7 +792,9 @@ static int __maybe_unused tegra_hsp_resume(struct device *dev) >> return 0; >> } >> >> -static SIMPLE_DEV_PM_OPS(tegra_hsp_pm_ops, NULL, tegra_hsp_resume); >> +static const struct dev_pm_ops tegra_hsp_pm_ops = { >> + .resume_noirq = tegra_hsp_noirq_resume, > > There seems to be two extra spaces before that =. Missed extra spaces. Shall fix. -Thanks, Bitan