Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp475542ybz; Tue, 21 Apr 2020 12:44:37 -0700 (PDT) X-Google-Smtp-Source: APiQypLjmmz/Xq7NfqiSKxBDmMWgStCBhfr8Aj39F3NrOj5HlX7OtJmu0p1alcpefukaSHbq1wO7 X-Received: by 2002:a17:906:15d4:: with SMTP id l20mr22484911ejd.91.1587498277588; Tue, 21 Apr 2020 12:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587498277; cv=none; d=google.com; s=arc-20160816; b=m1ZwnsGIXQJsZhUeY77Vy8mCpCc4FNpNecxtfW64NBRgRENecuMxCSXAMKBmWMPAjK YbB6QH5X4zGtXEoJUG3ydVcVf+2BlU+diW529g0ZhFboiVmWV7v5HfkMTeU1Cg/gpUOf 0J8k/JpekIMNh7l49bZ6b4C0k6ntABWhkl79yZ/ECPhKgxlLM/qTte44EGsEbbG8ceio 4obiF17gxHz3HAHN9aIRDhqY1Bqm6Wx9aC6N2mF5jvJblHooKeftDYJUx44hCLiAh0Re +/DiwpMMnatDLA74sygDyv6dxyDgVlyjAwwHIjo8aPnPP1YkAcMiLND/9TcD4OAnfkRo tJrg== 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=/6J0M2JR25SBCbaG9GKcmtfg56nuGtX/szS0WdPB7Dw=; b=tC8aoFCF9PsfUZoeaWlO4e+Z42p/S4GRHxKJc6RdBNygFHWkkbenghlE8Kb5iILJrK RJFCIYglZCUKFaWnske/714OlC00Jb7+qPlxbp8So98/wjM1F1UW57Qq6sf7/VWgH0iG eOJFCaBPmdmPPaQ6eAyNAXqA9cBkyCaaOErpjAOBlknhu5vaJrHtwek9d2+pMmBV/mUu etsRt+7iml/Izr82M50wyrjV1IwjtdyXcH30TeOZEj83CfyRpVvp/FSELfim8yCE7Ec+ BjUEiqkFQ394uNzKd2VqsJm5hlTSxjY5raPlOsikwQngSVmugJKillPmvYOV001KrhjA 4iwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=h3wxWueI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b26si1921867edr.228.2020.04.21.12.44.13; Tue, 21 Apr 2020 12:44:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=h3wxWueI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726056AbgDUTmq (ORCPT + 99 others); Tue, 21 Apr 2020 15:42:46 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:3074 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbgDUTmp (ORCPT ); Tue, 21 Apr 2020 15:42:45 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 21 Apr 2020 12:42:32 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 21 Apr 2020 12:42:45 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 21 Apr 2020 12:42:45 -0700 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 21 Apr 2020 19:42:45 +0000 Received: from [10.26.73.24] (10.124.1.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 21 Apr 2020 19:42:42 +0000 Subject: Re: [PATCH v2 1/2] i2c: tegra: Better handle case where CPU0 is busy for a long time To: Dmitry Osipenko , Thierry Reding , Laxman Dewangan , "Wolfram Sang" , Manikanta Maddireddy , Vidya Sagar CC: , , References: <20200324191217.1829-1-digetx@gmail.com> <20200324191217.1829-2-digetx@gmail.com> <1e259e22-c300-663a-e537-18d854e0f478@nvidia.com> <8cd085e1-f9fd-6ec0-9f7a-d5463f176a63@nvidia.com> From: Jon Hunter Message-ID: <6f07e5c8-7916-7ea2-2fe7-d05f8f011471@nvidia.com> Date: Tue, 21 Apr 2020 20:42:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To DRHQMAIL107.nvidia.com (10.27.9.16) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1587498152; bh=/6J0M2JR25SBCbaG9GKcmtfg56nuGtX/szS0WdPB7Dw=; 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=h3wxWueIYlEZ7hhNyhqUm9JbuIRN/F2x1dKrVbcl0sxRU+KCmbEgEJ9/C0uNdv0iS pwqWjkDCPp2MzEZHchdlI2jT9H2XwFGujBqGsex3PPsBqNa2s4GX+qOi9g4Hkmgm2Y FdZkMPLT76Ik3Irrq5SoVLHCRjwFtAYV1qZduaJyVoqL9PgRJOMv+QvjgxH5JAuuyg vD8hQ2JuivuFlKNSlBjlBQXC6s/irwY1cUDjOzrpMq5J+a2PLdMX1HLHOpiWbf/Z42 FArtF+dvmbMDhCTYfyQZNESjaKVuVappgpKmgrjqw/fXkKXzUqjvmV6UC3Ko9TcEnQ huJmuQbfQXoqQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/04/2020 16:08, Dmitry Osipenko wrote: > 21.04.2020 17:40, Jon Hunter =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> >> On 21/04/2020 14:25, Dmitry Osipenko wrote: >>> 21.04.2020 12:49, Jon Hunter =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>> ... >>>> I can try the above, but I agree it would be best to avoid messing wit= h >>>> the suspend levels if possible. >>> >>> Will be awesome if you could try it and report back the result. >>> >> >> I gave it a try but suspend still fails. >=20 > Perhaps the RPM's -EACCES is returned from here: >=20 > https://elixir.free-electrons.com/linux/v5.7-rc2/source/drivers/base/powe= r/runtime.c#L723 >=20 > Which suggests that I2C is accessed after being suspended. I guess the > PCIe driver suspends after the I2C and somehow my change affected the > suspension order, although not sure how. >=20 > Jon, could you please try to enable PM logging and post the log? Please > also post log of the working kernel version, so that we could compare > the PM sequence. >=20 > Something like this should enable the logging: "echo 1 > > /sys/power/pm_trace" + there is RPM tracing. Unfortunately, after enabling that I don't any output and so no help there. Jon --=20 nvpublic