Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4007149ybz; Mon, 4 May 2020 13:57:51 -0700 (PDT) X-Google-Smtp-Source: APiQypIFPpPigL3C9ysbs3hflG92NOtCa3hw5grQ7WFZmPmr35RoVl9ShqxbMWKEy1RTMfJHSrpr X-Received: by 2002:aa7:db41:: with SMTP id n1mr16527575edt.314.1588625871052; Mon, 04 May 2020 13:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588625871; cv=none; d=google.com; s=arc-20160816; b=qL48PBfU3ZGXqmalnOjzrFpSQCJ8JmZTv5P8yMMUYhlZxnvY5wORiwlMDnYh27gfCx 3Ykt9wXLsanXbAenbiWSzfRkPKffMbuZXRzFFrFn52M8xckmJgpKKgnONcTIH0wKG8WX ZhBGv9WCrsshD+0Lw73Ce8JGWPQ/kYpzFsNLEi2GbwFKam4W/75DzK78+67m9EEpf3Lc jmai/HRj4PgfzH5uyOQfqXWMSF6OJiX2Ip9FIs2OwRbZUUom6bd01SgqPMnTznvlcah2 6+nUq5c7BlPKK5Di7ARjagFyR7VzMo1ZfghWjoC/K6nGbLRyr2hRMndWFs8lHzOny2WD gj/w== 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=462DgipZWXKeW4Bkk/lkob1uYe6oS0tY/vxkgckhdAs=; b=h+mxibJ4SjsekyRp3F5IQB0jDhxxLZrhMtqHIIgEsLIY9VTw20a71SD0jxBgrIfBQT WhcbfNDf3YltLCfbsuT/XNEq0r0U9pQSVFqdGTNy3HFBakLEKiy2ogw1arnHdjYvZ3V9 5aNslcJ+B9tdGeFyaRRb+pJL70ZehPPguYegNNyCRHdvLNdFkYb+74vDfNJyZemIVwxS SQ0Ix64QZGk73g5fhbZU0v4LswxesRuQSdYkzAIKcmKytVm34MVHhcObKOc6NRLC97cf 987El5iiLxJrQ0ad45agzMrc7cHHKkqjWPhR2Hi2QrnS/MeCXbAtryDAQo83YKQ8166r 2scQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nmMiqcYX; 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 l16si73424edv.378.2020.05.04.13.57.27; Mon, 04 May 2020 13:57:51 -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=nmMiqcYX; 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 S1727029AbgEDUzQ (ORCPT + 99 others); Mon, 4 May 2020 16:55:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbgEDUzO (ORCPT ); Mon, 4 May 2020 16:55:14 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0794C061A0E; Mon, 4 May 2020 13:55:13 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id f18so11123762lja.13; Mon, 04 May 2020 13:55:13 -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=462DgipZWXKeW4Bkk/lkob1uYe6oS0tY/vxkgckhdAs=; b=nmMiqcYXUxCNHMDY6rNZt9nIYFpn2LDdh2oaJxnLzASlADJ0Cw/j9O0qUHGMl2UuhI LJrjCIpzTTHe3DXJ/pNHR4b0xtq7qFRqiHQH3OINqLF1LFr9GnqSC5TJMGbHAZ+YgxW9 nOnD+BKcuKIxzcWasFjMZuqKav4AdXBLt4dv6Vm0XKHQwaEb+vtvtrZN73Ti8jkSCTLv E59AWMLh9sCK3ztS1zQ5eUAsYD08+NRj9XAC7KYK3Ty/cd6iMH5jQyYU002YuhBGrdiT lXVPuZnejmUaYhQN3rHqMQITYdHbpM+4dK1WXBTugNco17bbD4Lh9wYFEG6YhtJxpaY6 FRIA== 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=462DgipZWXKeW4Bkk/lkob1uYe6oS0tY/vxkgckhdAs=; b=k5eudCUNv/kTPSCf4DavZxTZaAspYwWgdo2P+Vbibfh3RP1Ok5EIl/2m4zK6TRQYPq /U1urkFXIEuurNkaxxYImPEPw+aFoMrsMIiLhAgEzfv64wKZqpk7V+nyVBAq3omMErS6 yHPzUeDCvMNFv/79RafFcWtNhvPc+zNsqQ1Dh6WOHoU+SegvXj8xjcYezbhwhn1cu739 22B/qG9UYgYaWIGxnBAcMe6X00J7oV0/m6mTXHQb3YJTizx3ehDIUXBgElAy/7FHiEWW ILHUN854PN4kERZ/Vv/vHCP6NSReRDJzGNbLYiqpkMs7YaWDmLTqqV6zPrHh/KLEqaLT IGMA== X-Gm-Message-State: AGi0PuYjdNG7UVHepalXP9Lkm3jRdEetaT9ncskjRbleDKmWIdF47ttu wvr0xfLvg9HOVn6IEkaNyGIFWNLT X-Received: by 2002:a2e:90c9:: with SMTP id o9mr10732090ljg.187.1588625711974; Mon, 04 May 2020 13:55:11 -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 v19sm62346lfa.54.2020.05.04.13.55.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 May 2020 13:55:11 -0700 (PDT) Subject: Re: [PATCH v2 1/2] i2c: tegra: Better handle case where CPU0 is busy for a long time To: Thierry Reding Cc: Wolfram Sang , Jon Hunter , Laxman Dewangan , Manikanta Maddireddy , Vidya Sagar , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <79f6560e-dbb5-0ae1-49f8-cf1cd95396ec@nvidia.com> <20200427074837.GC3451400@ulmo> <20200427103851.GB24446@kunai> <20200427141922.GD3464906@ulmo> <20200427153106.GA8113@kunai> <20200504154226.GA614153@ulmo> From: Dmitry Osipenko Message-ID: Date: Mon, 4 May 2020 23:55:09 +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: <20200504154226.GA614153@ulmo> 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 04.05.2020 18:42, Thierry Reding пишет: > On Sat, May 02, 2020 at 05:40:35PM +0300, Dmitry Osipenko wrote: >> 27.04.2020 18:31, Wolfram Sang пишет: >>> >>>> Yes, that bug should be fixed anyway. But that doesn't justify breaking >>>> suspend/resume completely, which *is* a regression. >>>> >>>> Look, I'm not saying that we should drop this patch altogether. All I'm >>>> saying is that we should postpone it so that we can: a) get suspend and >>>> resume working again (and by doing so make sure no other suspend/resume >>>> regressions silently creep in, because that always seems to happen when >>>> you're not looking) and b) fix any preexisting issues without possibly >>>> scrambling the result with this perhaps unrelated fix. >>>> >>>> So, again, I think the safest road forward is to back this one out for >>>> now, fix whatever this other bug is and once suspend/resume is working >>>> properly again we can revisit this patch based on a known-good baseline. >>> >>> I am with you here. I want to add that the proper fix should be >>> developed without thinking too much about stable in the first place. >>> *When* we have a proper working fix, then we can think about making it >>> "more" suitable for backporting. Yet, it may also be a result that older >>> kernels need a different solution. Or have no solution at all, in case >>> they can't do atomic_transfers and this is needed. >>> >>> D'accord? >>> >> >> I saw that you submitted the revert of the patches for 5.7, hopefully it >> won't result in putting the PCIe driver problem into the back burner. >> I'll try not to forget about these patches to resubmit them later on, >> once the problem will be resolved :) > > I can put these two patches into a local development branch to keep > track of them. From what I said earlier, it looks like it would be fine > to apply these if we also make that runtime PM change (i.e. drop force > runtime PM and instead manually invoke runtime PM callbacks, which seems > to be in line with what the PM maintainers suggest, as pointed out > elsewhere in this thread). > > How about if I put all of that into a branch and push it to linux-next > so that we can get some broader testing? I've already run it through our > internal test system, which, while not perfect, is the broadest system I > am aware of, and all tests came back positive. Will be great. > I'm not exactly sure I see a real issue with the PCIe driver after those > patches are applied. The regulator errors are gone (presumably because > the regulators now do get turned off properly) and I don't observe any > other issues. That's probably because this I2C patch removed the "completion done after timeout" message. You may try to re-add the message, it should pop up on the PCIe driver's suspension. The IRQF_NO_SUSPEND flag should fix it. My assumption was that it should be always fine handle interrupt after timeout, and thus, the message isn't really needed. But this wasn't a correct assumption as we see now, so it should be better to keep the message for the debugging purposes, maybe turn it into dev_info_once().