Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp713334ybz; Wed, 22 Apr 2020 06:42:05 -0700 (PDT) X-Google-Smtp-Source: APiQypJ/jO59TMD+FnmVGeClvGelYnFUbHohFxz2WeYDjA+o3nSlHwhCwa3SL6pOnxASo52IGYwu X-Received: by 2002:a50:a642:: with SMTP id d60mr23296936edc.351.1587562924864; Wed, 22 Apr 2020 06:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587562924; cv=none; d=google.com; s=arc-20160816; b=iQk4ohR3J1Ev35/jX9Xp+ENdo2lzeP06IepndRbBn5aAgsMhmaYCjJpNKElcFs7B3d eLKt+LLYVoqfykjvFPvJ2DbtFfVFF5uPR/MRwxu/LmW7lsj10iqWt4YglVwDUZEbgaO3 PjBSnWH01qxV8HmnuiclAcfY6O06gOXfLs1nf5h0jxNqXwOZiih6ir1JZ9GTVnA54rxp 5di8v1PthycDRQFw5p0mWq28aXNGg2iZ2ZHWTuGnUqitLQsSairQN2L+X8EcEOIof129 TErPYsA94xa7PvcwOeU0LW9565U8qEYyGn1zBx1DN1mByWsPsX6f0xRtdqPnNCId55pp U46Q== 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=BnarLNPnA1/R0wZBgGmEsfEPeXEVYC63VMJMyo6Q/N0=; b=o298/3s2lhwzIrZs8J/0a6AYUW9s1e/tY2M8scHsgrPvu4HII5qRVOCdIqUfRiHR4P UO06lKWH+qCBxjQ3WkBTuPgZ2ykuANfjKwvE3PXzF8oC0hVYY2UznE926h9xuwX70jjQ oPuTOUI6ha3X66Mn1IFmq5wPn4JXNZ3sN5/dpEvwK5T88CDLF/oWvSHsLJRhLcMfoUd1 db+LKRAPcHHsr/5tkeDd0mglqTP68zdutrInsl5mlx11pV3EyKkq7DCDuWFOqxnsfEGe N34dWvGlCTcCoMMcYhAyJtZ+e4eM8OVPPPPKtbP/SAb7dPTDO69Clt4cDBGd5+C+E4xi 4FaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DvxbfuLz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t24si3609732ejr.291.2020.04.22.06.41.40; Wed, 22 Apr 2020 06:42:04 -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=@gmail.com header.s=20161025 header.b=DvxbfuLz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725787AbgDVNkU (ORCPT + 99 others); Wed, 22 Apr 2020 09:40:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726762AbgDVNkT (ORCPT ); Wed, 22 Apr 2020 09:40:19 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE081C03C1A9; Wed, 22 Apr 2020 06:40:18 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id j14so1677298lfg.9; Wed, 22 Apr 2020 06:40:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BnarLNPnA1/R0wZBgGmEsfEPeXEVYC63VMJMyo6Q/N0=; b=DvxbfuLz0E9rL/vHF7c2ZbOblwrB5LvZqVLimIMCF348Ksh5frDPVO307ilu4QK1wo Yws05l4O3dfmb4X533m0ZstmboDE4Xvxpc4/Lei0y3vEoRSBvQUSRKc9RvWnBoOKAeov VA62jVXOicDRy979tfb6wK+UK3+P0Wvdjh+8Ff+p9K5OywcAwnICQD6rzjce06kXWJKR 6evrzh6rhUHV6dHOF8NBUhy4gnbBMBWeLN4ppUJ807L6d8hCn+JWsJyIP1DR4vfCWomQ MTFVxrfvl95+idj9WbmNm9RXjxfg9m4mdDYjOCk7vPcVzR4N/0JFnVtiSN9kK8GviPIA s1gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BnarLNPnA1/R0wZBgGmEsfEPeXEVYC63VMJMyo6Q/N0=; b=NuM8waEvJgbDGBHRb/9T/dpSdnpC9eeKkQb7gLIaXcGglkVflwH3m8kpUFBG6PAU2O 2YPYh5ghbDHYQrtNTFvBSW29S6z90IoZiSysLyZ2u3Nji2X06sW1M5T1RrvQAEspi9PF mZR3ukVuLu2fzGoiF93PmvDpElKmfeR9h5OtufsXZZIiXroPXMmDGuxftwoMx3d2VDMC mil6b2suqMQHmaNRuZGc4sLoFWuQK+e9acK276x4tyxKdZno1pPps7hG6rHVt1k32f9v GDMzXh6KCj9h/3xiauqC7ShQjzeYnyEBz+29a9agOFXXFAk1MbQHR0JjRD4bw1FzvGep VaBg== X-Gm-Message-State: AGi0PuapEAcqp6YIO0BsY42nYZZKy/W0sUJQ/t+OdFm4z4Irxujr56sF xY5cepytGkPzu22bjAJgY5HcBZI2 X-Received: by 2002:ac2:46e5:: with SMTP id q5mr17303997lfo.11.1587562816899; Wed, 22 Apr 2020 06:40:16 -0700 (PDT) Received: from [192.168.2.145] (ppp91-78-208-152.pppoe.mtu-net.ru. [91.78.208.152]) by smtp.googlemail.com with ESMTPSA id b9sm5172629lfp.27.2020.04.22.06.40.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Apr 2020 06:40:15 -0700 (PDT) Subject: Re: [PATCH v2 1/2] i2c: tegra: Better handle case where CPU0 is busy for a long time To: Jon Hunter , Thierry Reding , Laxman Dewangan , Wolfram Sang , Manikanta Maddireddy , Vidya Sagar Cc: linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org 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> <6f07e5c8-7916-7ea2-2fe7-d05f8f011471@nvidia.com> From: Dmitry Osipenko Message-ID: <77a31b2f-f525-ba9e-f1ae-2b474465bde4@gmail.com> Date: Wed, 22 Apr 2020 16:40:14 +0300 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: <6f07e5c8-7916-7ea2-2fe7-d05f8f011471@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 21.04.2020 22:42, Jon Hunter пишет: > > On 21/04/2020 16:08, Dmitry Osipenko wrote: >> 21.04.2020 17:40, Jon Hunter пишет: >>> >>> On 21/04/2020 14:25, Dmitry Osipenko wrote: >>>> 21.04.2020 12:49, Jon Hunter пишет: >>>> ... >>>>> I can try the above, but I agree it would be best to avoid messing with >>>>> 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. >> >> Perhaps the RPM's -EACCES is returned from here: >> >> https://elixir.free-electrons.com/linux/v5.7-rc2/source/drivers/base/power/runtime.c#L723 >> >> 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. >> >> 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. >> >> 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. 1. I now tried to check the pm_trace myself and found that it's available only on X86, my bad. 2. Jon, could you please clarify what exactly you were trying to test? 3. Is it only the Cardhu board that is affected by this problem? 4. Could you please try to add this to the kernel's cmdline and post the logs: tp_printk trace_event=rpm_suspend,rpm_resume,rpm_usage,rpm_idle,rpm_return_int