From: Peter Wu <peter@lekensteyn.nl> To: Dave Airlie <airlied@redhat.com> Cc: nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Mika Westerberg <mika.westerberg@linux.intel.com>, Bjorn Helgaas <helgaas@kernel.org>, linux-pci@vger.kernel.org Subject: [PATCH v3 0/4] nouveau RPM fixes for Optimus (final) Date: Fri, 15 Jul 2016 15:12:14 +0200 [thread overview] Message-ID: <20160715131218.2416-1-peter@lekensteyn.nl> (raw) Hi, Here are two patches to fix an issue reported on kernel bugzilla (infinite loop due to unchecked function) and a more important fix to fix hanging Optimus machines when runtime PM is enabled (with pm/pci patches). These are the final patches targeting v4.8. Changes compared to v2[1]: collected R-b from Hans and Mika and fixed a minor comment style issue. I recommend it to be merged before the pci/pm patches[2], otherwise there is a window where newer Nvidia Optimus laptops might fail to runtime resume and/or lock up. Once the pci/pm branch is merged I will propose another patch to improve reliability[3]. Known issue with patch 4: when a Nvidia HDMI audio function is present, the bridge will not suspend and hence the Nvidia card will still be powered. Fixing this properly will require more work[4], until then you can kill the audio device and make runtime PM work properly: echo 1 > /sys/bus/pci/devices/0000:01:00.1/remove Kind regards, Peter [1]: https://lists.freedesktop.org/archives/nouveau/2016-July/025519.html [2]: https://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git/?h=pci/pm [3]: http://www.spinics.net/lists/linux-pci/msg52601.html [4]: https://lists.freedesktop.org/archives/dri-devel/2016-July/112759.html Peter Wu (4): drm/nouveau/acpi: ensure matching ACPI handle and supported functions drm/nouveau/acpi: return supported DSM functions drm/nouveau/acpi: check for function 0x1B before using it drm/nouveau/acpi: fix lockup with PCIe runtime PM drivers/gpu/drm/nouveau/nouveau_acpi.c | 105 +++++++++++++++++++++------------ 1 file changed, 68 insertions(+), 37 deletions(-) -- 2.9.0
WARNING: multiple messages have this Message-ID (diff)
From: Peter Wu <peter-VTkQYDcBqhK7DlmcbJSQ7g@public.gmane.org> To: Dave Airlie <airlied-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, Bjorn Helgaas <helgaas-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, Mika Westerberg <mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>, dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, linux-pci-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Subject: [PATCH v3 0/4] nouveau RPM fixes for Optimus (final) Date: Fri, 15 Jul 2016 15:12:14 +0200 [thread overview] Message-ID: <20160715131218.2416-1-peter@lekensteyn.nl> (raw) Hi, Here are two patches to fix an issue reported on kernel bugzilla (infinite loop due to unchecked function) and a more important fix to fix hanging Optimus machines when runtime PM is enabled (with pm/pci patches). These are the final patches targeting v4.8. Changes compared to v2[1]: collected R-b from Hans and Mika and fixed a minor comment style issue. I recommend it to be merged before the pci/pm patches[2], otherwise there is a window where newer Nvidia Optimus laptops might fail to runtime resume and/or lock up. Once the pci/pm branch is merged I will propose another patch to improve reliability[3]. Known issue with patch 4: when a Nvidia HDMI audio function is present, the bridge will not suspend and hence the Nvidia card will still be powered. Fixing this properly will require more work[4], until then you can kill the audio device and make runtime PM work properly: echo 1 > /sys/bus/pci/devices/0000:01:00.1/remove Kind regards, Peter [1]: https://lists.freedesktop.org/archives/nouveau/2016-July/025519.html [2]: https://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git/?h=pci/pm [3]: http://www.spinics.net/lists/linux-pci/msg52601.html [4]: https://lists.freedesktop.org/archives/dri-devel/2016-July/112759.html Peter Wu (4): drm/nouveau/acpi: ensure matching ACPI handle and supported functions drm/nouveau/acpi: return supported DSM functions drm/nouveau/acpi: check for function 0x1B before using it drm/nouveau/acpi: fix lockup with PCIe runtime PM drivers/gpu/drm/nouveau/nouveau_acpi.c | 105 +++++++++++++++++++++------------ 1 file changed, 68 insertions(+), 37 deletions(-) -- 2.9.0 _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/nouveau
next reply other threads:[~2016-07-15 13:12 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-07-15 13:12 Peter Wu [this message] 2016-07-15 13:12 ` [PATCH v3 0/4] nouveau RPM fixes for Optimus (final) Peter Wu 2016-07-15 13:12 ` [PATCH v3 4/4] drm/nouveau/acpi: fix lockup with PCIe runtime PM Peter Wu 2016-07-15 16:10 ` [Nouveau] [PATCH v3 0/4] nouveau RPM fixes for Optimus (final) Ilia Mirkin 2016-07-15 16:10 ` Ilia Mirkin 2016-07-15 16:27 ` [Nouveau] " Alex Deucher 2016-07-15 16:31 ` Ilia Mirkin 2016-07-15 16:40 ` Alex Deucher 2016-07-15 16:40 ` Alex Deucher 2016-07-15 16:42 ` Ilia Mirkin 2016-07-15 16:42 ` Ilia Mirkin 2016-07-15 16:36 ` [Nouveau] " Peter Wu 2016-07-15 16:41 ` Ilia Mirkin 2016-07-15 16:54 ` Peter Wu 2016-07-15 16:54 ` Peter Wu 2016-07-15 23:24 ` Peter Wu [not found] ` <20160715131218.2416-1-peter-VTkQYDcBqhK7DlmcbJSQ7g@public.gmane.org> 2016-07-15 13:12 ` [PATCH v3 1/4] drm/nouveau/acpi: ensure matching ACPI handle and supported functions Peter Wu 2016-07-15 13:12 ` [PATCH v3 2/4] drm/nouveau/acpi: return supported DSM functions Peter Wu 2016-07-15 13:12 ` [PATCH v3 3/4] drm/nouveau/acpi: check for function 0x1B before using it Peter Wu 2016-07-27 12:02 ` [PATCH v3 0/4] nouveau RPM fixes for Optimus (final) Peter Wu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20160715131218.2416-1-peter@lekensteyn.nl \ --to=peter@lekensteyn.nl \ --cc=airlied@redhat.com \ --cc=dri-devel@lists.freedesktop.org \ --cc=helgaas@kernel.org \ --cc=linux-pci@vger.kernel.org \ --cc=mika.westerberg@linux.intel.com \ --cc=nouveau@lists.freedesktop.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.