Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4850919imm; Tue, 26 Jun 2018 01:24:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLkh4H8ty/W5FUZR5SM8Y0zK4nTmXm1l5U7vG9aFEV8GpYS+4hEHN1acf+FW74cq62lmUc5 X-Received: by 2002:a17:902:5a3:: with SMTP id f32-v6mr577297plf.109.1530001493282; Tue, 26 Jun 2018 01:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530001493; cv=none; d=google.com; s=arc-20160816; b=v4Oa6xAWP4lySyra5pZwN7kaNW8rOO6ai0fUiw8WbuFJ1oRMgdeqvoVdhUlaw6TwyY /HY/Oe+XIT24/l7c+nXBg9eP3pf2jgujS+Wt0NyI+l4PYn9cfNOPJ9GX5knZIObzYl2I nxtSDp5Dr5CpzZ3biv+qBVdqLI08iO0jL+lpmf52EvWh4gi2bYqyQqoqg7isSDlx5J8y ZP4OrdqheiCquBhP3+FvE6+mT6s8LH3y2PQo8vMTqhNy/awqGukVR0PODLnMau+rV2sh lZO/JHZIux2ux+LeNRhOQR9n9d/Ym5SYDZAWY8YKUkuokkpGuVmT5dzwPhjcOV5ikzfo 5vOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Zl1MyQvAvFga0p4WVYjlh16Ub/LItSPL+P/0mS1OBtU=; b=d3HFBNC2MBXlaG2P1NXdqgzUaFElZEN0p/NwOmhMRnI78CxAA43XYnYFd6dcvYpAcG LGrfDhhU4zaPQ4Gx51XuYQYnAxcCYvcOZ7JMthZD2AJgl30hNbOveV+wV47zrDewUXBP qWACmHzssb1YVBCvvNBo/Lr3Fh+zODNIj+af81o+NawExl3VBOcqlmQ8BWT+/HFakd2g XbTYXJxtuu85dQur/+7uvGGIhOAAxfRQwz3NBqN+DoCCCm8pvDpfOXi0X75kjNM46hPi AeUZBOpLleEnTWAAQ+nHfSh7brYgJjMbrOTOoFR8/ETYH/UO8IfuoXRGbod0/uV19QzF oy3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=CfIaoJ+k; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d64-v6si1136050pfc.31.2018.06.26.01.24.38; Tue, 26 Jun 2018 01:24:53 -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=fail header.i=@gmail.com header.s=20161025 header.b=CfIaoJ+k; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933432AbeFZIX2 (ORCPT + 99 others); Tue, 26 Jun 2018 04:23:28 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:43277 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932206AbeFZIXZ (ORCPT ); Tue, 26 Jun 2018 04:23:25 -0400 Received: by mail-ot0-f193.google.com with SMTP id i19-v6so18101204otk.10; Tue, 26 Jun 2018 01:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Zl1MyQvAvFga0p4WVYjlh16Ub/LItSPL+P/0mS1OBtU=; b=CfIaoJ+k53b30jHEWFZ2QNp4BVmlh43XacQYtpU/9QHDTRMeBEj8wVZLoKZ02OjWFB IlQHpLg24KB88yFsg16ynvz9pNt/6undfxqx/o/CMQTVKE2MHnsKL4jjTXzMvlmpYpqA QCOe4YjC44Y7DxgFWpG/okENWDQZGoBuH3Gmj//l2AXvfIxYCreJEKrIWTM3BA82lpa4 8m6aKtUMUxduPZy4IR0k6hB91uN9tIm4iT9zAKUpfd+hE++B1KqOYQYUTX2bioJOflkD p9DICJ1Jw6T5r0tMW4O7rT5gKiKEwIedDOFBTSbNHacYwQ+unOAoDoYU510MEyWKZiab AoDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Zl1MyQvAvFga0p4WVYjlh16Ub/LItSPL+P/0mS1OBtU=; b=msQ4N3MEJTw98LEs7/6sFnjbZDlJU0Rz+DijjrD/sy0aMlC4mvj+uE2AUmZpYtJn1T ObkdbMHPvvjGcYwApm9ZqEPsdzzL4pbcnvb8Dd3ZuYUriRppOKh1c72QdIVwCp++CsUL 1NmJev56CEegNapQnp7/ZDdQZhxd3DzjTa/2NOx5bHqPWPqFCtp0idWe1ErNzEecZF10 epPxm6Ilm8FNUppD+ctz7s+QXJyDD/XsD0p3/m0w25JKWXEsu0myOeL0OmBkEOHB2byK VyZ9rkwNIqPtKdwHhiUS4Tl7e1OPKsLjIWsouD9esmHgMDHl4r+VwSvMtvpWm+hxkQHT mVQg== X-Gm-Message-State: APt69E2895nNAqe8RcXhkoFNdy7QJXtqgsZQvFwyvImlO9EhqC5cj2u3 htYkIcfyXPEH89GP/U1oOoHDwt/5H0Z8sVhPazY= X-Received: by 2002:a9d:7105:: with SMTP id n5-v6mr243106otj.305.1530001404562; Tue, 26 Jun 2018 01:23:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1429:0:0:0:0:0 with HTTP; Tue, 26 Jun 2018 01:23:24 -0700 (PDT) In-Reply-To: <20180625232633.GB191076@bhelgaas-glaptop.roam.corp.google.com> References: <20180620211349.GB108993@bhelgaas-glaptop.roam.corp.google.com> <20180625232633.GB191076@bhelgaas-glaptop.roam.corp.google.com> From: "Rafael J. Wysocki" Date: Tue, 26 Jun 2018 10:23:24 +0200 X-Google-Sender-Auth: s11WtU2mXMLrmjyMie8M65jDv5s Message-ID: Subject: Re: Fwd: [Bug 199879] New: Very basic the Pci device is not resumed from suspend mode To: Bjorn Helgaas Cc: Rafal , Linux PCI , Linux Kernel Mailing List , Linux PM list , "Rafael J. Wysocki" , Huang Ying , Martin Mares Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 26, 2018 at 1:26 AM, Bjorn Helgaas wrote: > [+cc Rafael, Huang, Martin] > > On Wed, Jun 20, 2018 at 04:13:49PM -0500, Bjorn Helgaas wrote: >> [+to Rafal] >> >> Sorry, I'm an idiot and forgot to include Rafal, the submitter, when I >> forwarded this report to the mailing lists. >> >> I suspect that the config accessors used by lspci should temporarily >> wake up devices that are asleep, instead of reporting 0xff data (or if >> that's not feasible, maybe we should add a comment in the kernel and a >> note in the lspci man page). > > The lspci output you attached > (https://bugzilla.kernel.org/attachment.cgi?id=276771) shows this: > > 01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 745M] (rev ff) (prog-if ff) > !!! Unknown header type 7f > > I think that means the config reads are returning ~0 data (0xff), > probably because the device is powered off and the config reads don't > work. > > But I don't understand that because both proc_bus_pci_read() (for > reads vis /proc) and pci_read_config() (for reads via /sys) call > pci_config_pm_runtime_get(), and I thought that would wake up the > device so we could read config space. That's correct, it should. > Is it the intended behavior that lspci will show this sort of invalid > data sometimes? I don't really think so. > It's pretty confusing to users. Or is there > something wrong with the pci_config_pm_runtime_get() path in those > config accessors? It looks like in this particular case the device does not resume or we don't wait for long enough for it to resume. Or the write returns all ones for a different reason. >> On Wed, May 30, 2018 at 07:41:35AM -0700, Bjorn Helgaas wrote: >> > [+cc linux-pci, linux-kernel, linux-pm] >> > >> > I'm not sure I understand the problem yet, so please correct me if I'm wrong: >> > >> > - Your system has both Nvidia and Intel graphics devices >> > >> > - When you use Intel graphics, lspci, lshw, and /proc/bus/pci for >> > the Nvidia device show invalid data (0xff) after suspend/resume >> > >> > - When you use Nvidia graphics, suspend/resume doesn't work (instead >> > of resuming, you just get a blank screen) >> > >> > Can you attach the output of "sudo lspci -vv" to the bugzilla, please? >> > >> > ---------- Forwarded message --------- >> > From: >> > Date: Tue, May 29, 2018 at 1:29 PM >> > Subject: [Bug 199879] New: Very basic the Pci device is not resumed >> > from suspend mode >> > To: >> > >> > >> > https://bugzilla.kernel.org/show_bug.cgi?id=199879 >> > >> > Bug ID: 199879 >> > Summary: Very basic the Pci device is not resumed from suspend >> > mode >> > Product: Drivers >> > Version: 2.5 >> > Kernel Version: kernel-4.15.17 >> > Hardware: x86-64 >> > OS: Linux >> > Tree: Mainline >> > Status: NEW >> > Severity: high >> > Priority: P1 >> > Component: PCI >> > Assignee: drivers_pci@kernel-bugs.osdl.org >> > Reporter: uzg@wp.pl >> > Regression: No >> > >> > Hi, I have problem with very basic device. Device pci-e not resume from >> > suspend. Only sleep. >> > >> > I have a problem with anyone interested in it, because everyone thinks it is >> > the fault of the device drivers themselves. But this is not a problem. >> > >> > This device is a basic device. I've already installed drivers on various >> > hardware and it has always been ok, but not this time. >> > >> > I'm an electronics technician. After diagnosing what I managed, in my opinion >> > the device remains asleep. >> > >> > Where does my application come from? >> > I have multiuser mode and I do not use this device. After suspend lspci and >> > lshw show normal data. Normal data is in /proc/bus/pci/... >> > Next suspend and resume, and... >> > lspci see hardware, but is error >> > lshw see hardware as undefined device >> > data in /proc/bus/pci/... is only 0xFF >> > Hardware sleep, not work, not ready. This is bug. >> > >> > But since the problem concerns the graphics card in the configuration with the >> > second default Intel card, everyone thinks that this is another driver problem >> > as always and nobody wants to take a look at it :( >> > >> > The problem is easy to recognize. On the internet, I've seen a lot of >> > unresolved problems in which I could see exactly what I found. >> > >> > My hardware is Lenovo with NVidia and Intel Graphics. Problem is with NVidia. I >> > tested Z710 and Z50-70. The first symptom of the problem is lspci in multiuser >> > mode (or when is XServer with intel graphics). After suspend NVidia have e.g >> > "rev. A1", after resume is "rev. FF". Next symptom lshw and /proc/bus/pci/... >> > When system started with normal NVidia driver, system not resume and halt, only >> > black screen. >> > >> > There are many examples on the Internet with unsolved problems e.g >> > https://www.lwks.com/index.php?option=com_kunena&func=view&catid=21&id=124374&Itemid=81 >> > >> > -- >> > You are receiving this mail because: >> > You are watching the assignee of the bug.