Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3220644ybb; Mon, 13 Apr 2020 03:24:55 -0700 (PDT) X-Google-Smtp-Source: APiQypIVD//Z6jCgZSTvDCj9067A36DC0Fwdj4zEk4VVNIds+KAlInAK22QgmGez41XVqT6//YKR X-Received: by 2002:a50:af02:: with SMTP id g2mr15841375edd.69.1586773495275; Mon, 13 Apr 2020 03:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586773495; cv=none; d=google.com; s=arc-20160816; b=uyzGGjNaAbvr43CdWIF0zlN1kkcSefWrkLHpPTOIIS+V3jQJgpyJFV1Xlrt0KK6rPA PnRCDk7WYYmQd+jupHqKpNs/yBztNcd+N0svmSumxw+KY0JrTacmRTZFH1QHrBSLOmNP +nOsdfL9uqJdnY5eRSqu1ctYjukVPwKtEVZqFsLQV0m8/9y4DnED/98Vb5o6InkS5btW iooWGsbNaNVVuigRwDBkusQUzhOvEBGAPVrhZEbJOZ1K6r8Ox1lJtflb5/E+0d8V4/Ee h3DvWKTJLe2chkdC/grf+TUg2YuUUzjpzZBdgQvG7pJQx2wgXNp1vqTbsKUDB3mpDFZt lm3w== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=44uWwUjMyF5Db1li+/hUZJmO8U4y17xbM04MF0Gj90Y=; b=hmHGhbEVPiCtE0jUkBhHJ3EHat8tEE/c/n08DVDJ7FwNuejXD6gjpKC13DIYnNtTCI LfBGweBr2cwPfBYpHKBOUkYklmUIbc34BvHMrAut1/w4KyHWrTj+A4k3UQWYV0koaCjm NDNpXidyUVbRmiKpoZJt/ivo1vjxo5LLu6CyeVJ1D5H52ayfmRwmUF8xgAqe2be1gTNA ZcinVl1weRGwlKeRFXLpl2i7lXz2Y7Y/wComcTx/lG5eSdJAtHQvj0l7tIZwsPXRz5Kb gSwbjBwxSY5gSE/GJN+1I1JmqLov+NHIwcp7qH25t7vxky35OZAC/cT1qNsiddP7AVOo PAwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b="AMnJ/aA1"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si6191629ejz.509.2020.04.13.03.24.31; Mon, 13 Apr 2020 03:24:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b="AMnJ/aA1"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728201AbgDMJOn (ORCPT + 99 others); Mon, 13 Apr 2020 05:14:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727798AbgDMJOm (ORCPT ); Mon, 13 Apr 2020 05:14:42 -0400 Received: from mail-vk1-xa44.google.com (mail-vk1-xa44.google.com [IPv6:2607:f8b0:4864:20::a44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20BD7C014CDB for ; Mon, 13 Apr 2020 02:06:03 -0700 (PDT) Received: by mail-vk1-xa44.google.com with SMTP id v129so2079325vkf.10 for ; Mon, 13 Apr 2020 02:06:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=44uWwUjMyF5Db1li+/hUZJmO8U4y17xbM04MF0Gj90Y=; b=AMnJ/aA1k+bYzw4UOmmYxHr+2daJ7cdrFGGTDPJvXALak1hy3U/vrjZs48XuiyfLIJ rqsmyPT8E5/dgO+CeWGTkx/QRdJ+dY//ei8U7TSYV3TeC+g4i5jcJXREzzKKCuxw9k4H a1RKTE0bAY7oq/DnE+0iWAJt933EETTDjgXA7wm+UsCWcXv0yXzHQ18B0r509lB/l9In MXBKIQ2utYzYSXKghta2zn5qo1uVM5mly8MMD+Y/2G44SgSdPEqODnr4iH1UHO+c5kWU OX5+kzrrsLnp8IqtbemFiWXpcyc+7Lng/8osQluiXeyYs9mc843gjbnbZJ+/mwgcKzjo JQkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=44uWwUjMyF5Db1li+/hUZJmO8U4y17xbM04MF0Gj90Y=; b=QUzlAxvb41KrRmrqlb3o7XkrhUNvntLu3F4VeBiy6TBS08Ek7xjiGzaoRxNvpStFYB aX1RvvvNfSiYcZ2qV04wnGxv+2Braq9Vf9pxyVZiF4jSNJ5BE1axiK6qW3BQ7ezxENyp idZgtWm4fA88uwiM1PVSnhovKJJcBGa1mFnfE0150Y0JKV8AkzIarCdzdv+Zqe8bt7k2 ZbKztU5vDza9XLGPbDERrFawKisAUjQskoewsvljmOg/W0ckcEJngGMBAAtHgoEZCeZM k93wvUApE8HmV71GIu+8qLe19VNRhbbTk7l//7R1Ew6oy06u7dopD34u/Wp5ZqSjGzrj uV3g== X-Gm-Message-State: AGi0Pua0OhALr5vFDeIoD32fJzAc/6IuiqK81L5z29VyfDmrmCFiCp4L fLNekODIkMZI3PFCAWm/yV3L8KDhQTlDzWwAVypvHQ== X-Received: by 2002:a1f:3056:: with SMTP id w83mr5389723vkw.56.1586768762080; Mon, 13 Apr 2020 02:06:02 -0700 (PDT) MIME-Version: 1.0 References: <20200402103447.GD1886416@kuha.fi.intel.com> In-Reply-To: From: Jian-Hong Pan Date: Mon, 13 Apr 2020 17:05:17 +0800 Message-ID: Subject: Re: [BUG] i2c_nvidia_gpu takes long time and makes system suspend & resume failed with NVIDIA cards To: Ajay Gupta Cc: Heikki Krogerus , "linux-i2c@vger.kernel.org" , Linux Kernel , "linux-usb@vger.kernel.org" , Linux Upstreaming Team Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ajay Gupta =E6=96=BC 2020=E5=B9=B44=E6=9C=883=E6=97=A5 = =E9=80=B1=E4=BA=94 =E4=B8=8A=E5=8D=884:59=E5=AF=AB=E9=81=93=EF=BC=9A > > Hi Jian > > > -----Original Message----- > > From: Heikki Krogerus > > Sent: Thursday, April 2, 2020 3:35 AM > > To: Jian-Hong Pan ; Ajay Gupta > > > > Cc: linux-i2c@vger.kernel.org; Linux Kernel ; > > linux-usb@vger.kernel.org; Linux Upstreaming Team > > Subject: Re: [BUG] i2c_nvidia_gpu takes long time and makes system > > suspend & resume failed with NVIDIA cards > > > > External email: Use caution opening links or attachments > > > > > > Hi, > > > > On Thu, Apr 02, 2020 at 06:22:14PM +0800, Jian-Hong Pan wrote: > > > Hi, > > > > > > We got some machines like Acer desktop equipped with NVIDIA GTX 1660 > > > card, Acer Predator PH315-52 equipped with NVIDIA GeForce RTX 2060 > > > Mobile and ASUS UX581LV equipped with NNVIDIA GeForce RTX 2060. > > > We found them take long time (more than 50 seconds) to resume after > > > suspend. During the resuming time, the screen is blank. And check > > > the dmesg, found the error during resume: > > > > > > [ 28.060831] PM: suspend entry (deep) > > > [ 28.144260] Filesystems sync: 0.083 seconds > > > [ 28.150219] Freezing user space processes ... > > > [ 48.153282] Freezing of tasks failed after 20.003 seconds (1 tasks > > > refusing to freeze, wq_busy=3D0): > > > [ 48.153447] systemd-udevd D13440 382 330 0x80004124 > > > [ 48.153457] Call Trace: > > > [ 48.153504] ? __schedule+0x272/0x5a0 > > > [ 48.153558] ? hrtimer_start_range_ns+0x18c/0x2c0 > > > [ 48.153622] schedule+0x45/0xb0 > > > [ 48.153668] schedule_hrtimeout_range_clock+0x8f/0x100 > > > [ 48.153738] ? hrtimer_init_sleeper+0x80/0x80 > > > [ 48.153798] usleep_range+0x5a/0x80 > > > [ 48.153850] gpu_i2c_check_status.isra.0+0x3a/0xa0 [i2c_nvidia_gpu= ] > > > [ 48.153933] gpu_i2c_master_xfer+0x155/0x20e [i2c_nvidia_gpu] > > > [ 48.154012] __i2c_transfer+0x163/0x4c0 > > > [ 48.154067] i2c_transfer+0x6e/0xc0 > > > [ 48.154120] ccg_read+0x11f/0x170 [ucsi_ccg] > > > [ 48.154182] get_fw_info+0x17/0x50 [ucsi_ccg] > > > [ 48.154242] ucsi_ccg_probe+0xf4/0x200 [ucsi_ccg] > > > [ 48.154312] ? ucsi_ccg_init+0xe0/0xe0 [ucsi_ccg] > > > [ 48.154377] i2c_device_probe+0x113/0x210 > > > [ 48.154435] really_probe+0xdf/0x280 > > > [ 48.154487] driver_probe_device+0x4b/0xc0 > > > [ 48.154545] device_driver_attach+0x4e/0x60 > > > [ 48.154604] __driver_attach+0x44/0xb0 > > > [ 48.154657] ? device_driver_attach+0x60/0x60 > > > [ 48.154717] bus_for_each_dev+0x6c/0xb0 > > > [ 48.154772] bus_add_driver+0x172/0x1c0 > > > [ 48.154824] driver_register+0x67/0xb0 > > > [ 48.154877] i2c_register_driver+0x39/0x70 > > > [ 48.154932] ? 0xffffffffc00ac000 > > > [ 48.154978] do_one_initcall+0x3e/0x1d0 > > > [ 48.155032] ? free_vmap_area_noflush+0x8d/0xe0 > > > [ 48.155093] ? _cond_resched+0x10/0x20 > > > [ 48.155145] ? kmem_cache_alloc_trace+0x3a/0x1b0 > > > [ 48.155208] do_init_module+0x56/0x200 > > > [ 48.155260] load_module+0x21fe/0x24e0 > > > [ 48.155322] ? __do_sys_finit_module+0xbf/0xe0 > > > [ 48.155381] __do_sys_finit_module+0xbf/0xe0 > > > [ 48.155441] do_syscall_64+0x3d/0x130 > > > [ 48.156841] entry_SYSCALL_64_after_hwframe+0x44/0xa9 > > > [ 48.158074] RIP: 0033:0x7fba3b4bc2a9 > > > [ 48.158707] Code: Bad RIP value. > > > [ 48.158990] RSP: 002b:00007ffe1da3a6d8 EFLAGS: 00000246 ORIG_RAX: > > > 0000000000000139 > > > [ 48.159259] RAX: ffffffffffffffda RBX: 000055ca6922c470 RCX: > > 00007fba3b4bc2a9 > > > [ 48.159566] RDX: 0000000000000000 RSI: 00007fba3b3c0cad RDI: > > 0000000000000010 > > > [ 48.159842] RBP: 00007fba3b3c0cad R08: 0000000000000000 R09: > > 0000000000000000 > > > [ 48.160117] R10: 0000000000000010 R11: 0000000000000246 R12: > > 0000000000000000 > > > [ 48.160412] R13: 000055ca6922f940 R14: 0000000000020000 R15: > > 000055ca6922c470 > > > > > > I have filed this to bugzilla and more detail: > > > https://bugzilla.kernel.org/show_bug.cgi?id=3D206653 > > > > > > Any comment will be appreciated. > > > > You are using an outdated kernel, 5.4.0. Please make sure that you can > > reproduce the issue with mainline, or at least with the longterm 5.4.x. > > > > Ajay, based on the backtrace, the issue seems to be starting from your = I2C > > driver. Please take a look at this. > > I have replied to Bugzilla > https://bugzilla.kernel.org/show_bug.cgi?id=3D206653#c5 Thanks for both your reply! I have commented the test result at https://bugzilla.kernel.org/show_bug.cgi?id=3D206653#c6 Jian-Hong Pan > Thanks > > nvpuclic > > > > thanks, > > > > -- > > heikki