Re: [Nouveau] Bug Report on A1286 (Macbook Pro Mid 2012)
On Tue, Nov 29, 2016 at 11:31 PM, Lukas Wunnerwrote: > On Tue, Nov 29, 2016 at 05:42:51PM -0500, Evan Foss wrote: >> On Sun, Nov 27, 2016 at 4:13 AM, Lukas Wunner wrote: >> > On Sat, Nov 26, 2016 at 06:09:34AM +, Evan Foss wrote: >> >> I did some other bug reports here a while back. I am back again >> >> because I updated my kernel from 3.19.1 to linux-4.8.10-gentoo (if you >> >> want I can test the mainline too). On boot all my GPU's turn on. If I >> >> turn them off via >> >> echo "OFF"> /sys/kernel/debug/vgaswitcheroo/switch >> >> I can't turn them back on. They also do not turn on if I try to change >> >> GPU's. Trying to stop xdm locks the machine so I can't even turn it >> >> off. Suspend/resume still works. None of these problems existed in >> >> 3.19.1. I know you will need more info to track down the problem but I >> >> wanted to open with this. >> > >> > I have the same machine and it works for me. System sleep is only >> > supposed to work if both GPUs or ON upon suspend. Are you issuing >> > OFF while X11 is running? Does it work if X11 is stopped? >> >> 1. Boot with the intel GPU driving the screen. >> 2. In mate desktop turn off the nvidia gpu via echo "OFF" > >> /sys/kernel/.../switch >> 3. Try to do any of the following and the machine locks up turn on the >> nvidia GPU, suspend the machine, try to change gpus, stop X (via >> /etc/init.d/xdm stop) Correction suspend works but hibernate does not. >> Yes I issue OFF while it is running and it works perfectly to turn off >> the GPU's. I can tell because the machine gets a lot cooler. > > On my machine issuing ON or OFF or switching always works but I only > issue the commands on the console, without X11 running. Does that > work for you as well? I am using a console inside mate. xdm runs at startup. I tried 1. stopping xdm 2. turning off the nvidia gpu at the console 3. starting xdm and then each of the following stoping xdm, turning off the computer, both work. I don't care about changing GPU's with X running. That never worked but I used to be able to turn them on and off with out having to leave X. I don't understand why turning off a GPU that isn't generating any video is a feature that got removed? Is there something as a user/tester that I can do to help bring this back? I don't expect GPU switching with X running to work any time soon. > Manual power control via ON and OFF is a hack, it powers the GPU > up and down behind the PM core's back. It's a stopgap until > runtime PM works for muxed machines. That's the reason at least > for the lockup on resume, I know what causes this. (The PCI core > invalidates the saved_state of the device.) I don't know why > turning on the GPU or stopping X causes a lockup, presumably on > stopping X the card is accessed even though it's powered down. > > There are some half-baked patches for runtime PM on this branch: > https://github.com/l1k/linux/commits/mbp_switcheroo_runpm_wip > > Alas, a rework of vga_switcheroo audio handling is necessary to > bring up runtime PM for muxed machines properly: > https://www.mail-archive.com/nouveau@lists.freedesktop.org/msg24997.html I have only had trouble with the microphone input. > Rafael Wysocki's functional dependencies patches, which are a > prerequisite for this rework, are now queued for 4.10. I'll > probably look into this in December/January. > > Switching while X is running won't work anytime soon, I'm not > working on it and Dave Airlie has basically said that it has no > priority for him: > https://www.mail-archive.com/intel-gfx@lists.freedesktop.org/msg81981.html > > On the bright side, you got Thunderbolt when you updated to 4.8 and > in 4.11 it'll even power itself down when nothing is plugged in and > save you 1.7 Watts. ;-) Thanks I didn't know that. > Best regards, > > Lukas Thank you, Evan -- Home http://evanfoss.googlepages.com/ Work http://forge.abcd.harvard.edu/gf/project/epl_engineering/wiki/ -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v2 mQENBFYy4RYBCAC183JomLtbdAlcKiaPDoVHq52LDmVmH75aiEc69m7YxDt54/ai VtYCAobbGVIyn3Hlz3uhF6LnPl/6Lm1VdnCfpwu3KQhCO6ds10ow2C30X4ohCqOd hCVg5C+ILmQkEffFrFODy3ji+PYTF4pADvHCWsTMv0hf0llwFOJsBCK6cl02IffE JPqy4PjM1nZ9HpzT84JBaG/4OGvTZ8SQ2yFUl265jagvygPTf88H1xpZHH1r8dB1 stjUHLmPH8AOyDgKxFchgGeDc3p/vJtgDDIXAFfDXG0NSRovLmtaQdGxe47Zf/go bXiEM7YL2WqQe5zfEA919JxkEwlDKYniOSVzABEBAAG0N0V2YW4gRm9zcyAoVGhp cyBpcyBteSBwdWJsaWMga2V5LikgPGV2YW5mb3NzQGdtYWlsLmNvbT6JATkEEwEC ACMFAlYy4RYCGwMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAKCRCIpQTcE8nN bbBaCACAm8pU5lG1ev2Fsw68Axtcl57SJrYieqX96c3YuYH9JpqMqJRnd9nDKw9X tQuvuH7tUk0VbOaDqReOYJVI/4c5wb9AaOFp6K2DUcupq6XhgXpvz3HzoPwjAdIj XuQzdRUx5+innTJrSkGuBYW/CZ2zqEx4xfLlq4rO0hoTUMR8QVp2cCrkw6BT0m86 APIw/ZnjoxM8IEzr7MxfRIg3qpzrZk28rmhx+k78Jyk61UhwcCPGIm/pjUopTwYJ 3YBdRB2cYD2aN7A1JVf5cRmSQYooHBGpH0kYvomGk97PKqypVuJ7OpG9xM58wUcC qUVt9hKlePLzP8csYjt8onqI7qIIuQENBFYy4RYBCADlH8spG3WkCx62vB5mr5Z0
Re: [Nouveau] Bug Report on A1286 (Macbook Pro Mid 2012)
On Tue, Nov 29, 2016 at 05:42:51PM -0500, Evan Foss wrote: > On Sun, Nov 27, 2016 at 4:13 AM, Lukas Wunnerwrote: > > On Sat, Nov 26, 2016 at 06:09:34AM +, Evan Foss wrote: > >> I did some other bug reports here a while back. I am back again > >> because I updated my kernel from 3.19.1 to linux-4.8.10-gentoo (if you > >> want I can test the mainline too). On boot all my GPU's turn on. If I > >> turn them off via > >> echo "OFF"> /sys/kernel/debug/vgaswitcheroo/switch > >> I can't turn them back on. They also do not turn on if I try to change > >> GPU's. Trying to stop xdm locks the machine so I can't even turn it > >> off. Suspend/resume still works. None of these problems existed in > >> 3.19.1. I know you will need more info to track down the problem but I > >> wanted to open with this. > > > > I have the same machine and it works for me. System sleep is only > > supposed to work if both GPUs or ON upon suspend. Are you issuing > > OFF while X11 is running? Does it work if X11 is stopped? > > 1. Boot with the intel GPU driving the screen. > 2. In mate desktop turn off the nvidia gpu via echo "OFF" > > /sys/kernel/.../switch > 3. Try to do any of the following and the machine locks up turn on the > nvidia GPU, suspend the machine, try to change gpus, stop X (via > /etc/init.d/xdm stop) > > Yes I issue OFF while it is running and it works perfectly to turn off > the GPU's. I can tell because the machine gets a lot cooler. On my machine issuing ON or OFF or switching always works but I only issue the commands on the console, without X11 running. Does that work for you as well? Manual power control via ON and OFF is a hack, it powers the GPU up and down behind the PM core's back. It's a stopgap until runtime PM works for muxed machines. That's the reason at least for the lockup on resume, I know what causes this. (The PCI core invalidates the saved_state of the device.) I don't know why turning on the GPU or stopping X causes a lockup, presumably on stopping X the card is accessed even though it's powered down. There are some half-baked patches for runtime PM on this branch: https://github.com/l1k/linux/commits/mbp_switcheroo_runpm_wip Alas, a rework of vga_switcheroo audio handling is necessary to bring up runtime PM for muxed machines properly: https://www.mail-archive.com/nouveau@lists.freedesktop.org/msg24997.html Rafael Wysocki's functional dependencies patches, which are a prerequisite for this rework, are now queued for 4.10. I'll probably look into this in December/January. Switching while X is running won't work anytime soon, I'm not working on it and Dave Airlie has basically said that it has no priority for him: https://www.mail-archive.com/intel-gfx@lists.freedesktop.org/msg81981.html On the bright side, you got Thunderbolt when you updated to 4.8 and in 4.11 it'll even power itself down when nothing is plugged in and save you 1.7 Watts. ;-) Best regards, Lukas ___ Nouveau mailing list Nouveau@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/nouveau
Re: [Nouveau] Bug Report on A1286 (Macbook Pro Mid 2012)
On Sun, Nov 27, 2016 at 4:13 AM, Lukas Wunnerwrote: > On Sat, Nov 26, 2016 at 06:09:34AM +, Evan Foss wrote: >> I did some other bug reports here a while back. I am back again >> because I updated my kernel from 3.19.1 to linux-4.8.10-gentoo (if you >> want I can test the mainline too). On boot all my GPU's turn on. If I >> turn them off via >> echo "OFF"> /sys/kernel/debug/vgaswitcheroo/switch >> I can't turn them back on. They also do not turn on if I try to change >> GPU's. Trying to stop xdm locks the machine so I can't even turn it >> off. Suspend/resume still works. None of these problems existed in >> 3.19.1. I know you will need more info to track down the problem but I >> wanted to open with this. > > I have the same machine and it works for me. System sleep is only > supposed to work if both GPUs or ON upon suspend. Are you issuing > OFF while X11 is running? Does it work if X11 is stopped? 1. Boot with the intel GPU driving the screen. 2. In mate desktop turn off the nvidia gpu via echo "OFF" > /sys/kernel/.../switch 3. Try to do any of the following and the machine locks up turn on the nvidia GPU, suspend the machine, try to change gpus, stop X (via /etc/init.d/xdm stop) Yes I issue OFF while it is running and it works perfectly to turn off the GPU's. I can tell because the machine gets a lot cooler. > Best regards, > > Lukas -- Home http://evanfoss.googlepages.com/ Work http://forge.abcd.harvard.edu/gf/project/epl_engineering/wiki/ -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v2 mQENBFYy4RYBCAC183JomLtbdAlcKiaPDoVHq52LDmVmH75aiEc69m7YxDt54/ai VtYCAobbGVIyn3Hlz3uhF6LnPl/6Lm1VdnCfpwu3KQhCO6ds10ow2C30X4ohCqOd hCVg5C+ILmQkEffFrFODy3ji+PYTF4pADvHCWsTMv0hf0llwFOJsBCK6cl02IffE JPqy4PjM1nZ9HpzT84JBaG/4OGvTZ8SQ2yFUl265jagvygPTf88H1xpZHH1r8dB1 stjUHLmPH8AOyDgKxFchgGeDc3p/vJtgDDIXAFfDXG0NSRovLmtaQdGxe47Zf/go bXiEM7YL2WqQe5zfEA919JxkEwlDKYniOSVzABEBAAG0N0V2YW4gRm9zcyAoVGhp cyBpcyBteSBwdWJsaWMga2V5LikgPGV2YW5mb3NzQGdtYWlsLmNvbT6JATkEEwEC ACMFAlYy4RYCGwMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAKCRCIpQTcE8nN bbBaCACAm8pU5lG1ev2Fsw68Axtcl57SJrYieqX96c3YuYH9JpqMqJRnd9nDKw9X tQuvuH7tUk0VbOaDqReOYJVI/4c5wb9AaOFp6K2DUcupq6XhgXpvz3HzoPwjAdIj XuQzdRUx5+innTJrSkGuBYW/CZ2zqEx4xfLlq4rO0hoTUMR8QVp2cCrkw6BT0m86 APIw/ZnjoxM8IEzr7MxfRIg3qpzrZk28rmhx+k78Jyk61UhwcCPGIm/pjUopTwYJ 3YBdRB2cYD2aN7A1JVf5cRmSQYooHBGpH0kYvomGk97PKqypVuJ7OpG9xM58wUcC qUVt9hKlePLzP8csYjt8onqI7qIIuQENBFYy4RYBCADlH8spG3WkCx62vB5mr5Z0 SCDd/RcyA4A5y5EOj5KurQkrSWpgi9Ho1yKruMJ6blQR2qkc66KqH9pnXDm/ZI1M K/wdW3ngETxBmXoozzFMT89aEWIVR5/PFodWK1elekE9iJxACuR98Zg2QttTD3x8 A9w8VEyMLOXcDTrPFpHegMKswFBg5iuMulAdXAoGejWTI3n+qKFpabHm2Lfs6wjk 5rjucpTdeFK6UeWF1xAvNxXibuu5BlGwv53930qIXRwO/Gn2Rh5DXWxKU2fEIme/ xgQQmIsDeUoWbfybdjw/x7Q0LW4mINiLDQcGHHRQKFIxbAJCT3USPLGh5xwE9/Er ABEBAAGJAR8EGAECAAkFAlYy4RYCGwwACgkQiKUE3BPJzW0uYAf9Hf30n8tM3mR2 Zo6ESE0ivgdgjaJtAWrBUx7JzAzPjBnBOlNnu5Y9lVEqetvUPH6e3PvaHYUuaUU8 0HwxuKBW9nUprgV6uIu1DZmlcp+SxpbuCy7RDpNocRLNWWFMaYYzznmTgfnTgD4D gCq8Mf1mcfrluTkOAo+QNqbMfl1GISClopRqxVuAo59ewgMnFujwgd8w12BwWl24 CzqOs5HqcUslePj+LzcjSNgVCklYwKl+0dsb/fctMOCtHodwqm2CBJ+zydvNmYkD fxda/J91Z1xrah5ec++FL0L4vs+jCiIWJeupJFKlr1hCMZiiGH7W554loK5l4jv3 EY347EidAw== =Ta4p -END PGP PUBLIC KEY BLOCK- ___ Nouveau mailing list Nouveau@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/nouveau
Re: [Nouveau] Bug Report on A1286 (Macbook Pro Mid 2012)
On Sat, Nov 26, 2016 at 06:09:34AM +, Evan Foss wrote: > I did some other bug reports here a while back. I am back again > because I updated my kernel from 3.19.1 to linux-4.8.10-gentoo (if you > want I can test the mainline too). On boot all my GPU's turn on. If I > turn them off via > echo "OFF"> /sys/kernel/debug/vgaswitcheroo/switch > I can't turn them back on. They also do not turn on if I try to change > GPU's. Trying to stop xdm locks the machine so I can't even turn it > off. Suspend/resume still works. None of these problems existed in > 3.19.1. I know you will need more info to track down the problem but I > wanted to open with this. I have the same machine and it works for me. System sleep is only supposed to work if both GPUs or ON upon suspend. Are you issuing OFF while X11 is running? Does it work if X11 is stopped? Best regards, Lukas ___ Nouveau mailing list Nouveau@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/nouveau
[Nouveau] Bug Report on A1286 (Macbook Pro Mid 2012)
Hi Folks, I did some other bug reports here a while back. I am back again because I updated my kernel from 3.19.1 to linux-4.8.10-gentoo (if you want I can test the mainline too). On boot all my GPU's turn on. If I turn them off via echo "OFF"> /sys/kernel/debug/vgaswitcheroo/switch I can't turn them back on. They also do not turn on if I try to change GPU's. Trying to stop xdm locks the machine so I can't even turn it off. Suspend/resume still works. None of these problems existed in 3.19.1. I know you will need more info to track down the problem but I wanted to open with this. From my lspci 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 650M Mac Edition] (rev ff) Thanks, Evan -- Home http://evanfoss.googlepages.com/ Work http://forge.abcd.harvard.edu/gf/project/epl_engineering/wiki/ -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v2 mQENBFYy4RYBCAC183JomLtbdAlcKiaPDoVHq52LDmVmH75aiEc69m7YxDt54/ai VtYCAobbGVIyn3Hlz3uhF6LnPl/6Lm1VdnCfpwu3KQhCO6ds10ow2C30X4ohCqOd hCVg5C+ILmQkEffFrFODy3ji+PYTF4pADvHCWsTMv0hf0llwFOJsBCK6cl02IffE JPqy4PjM1nZ9HpzT84JBaG/4OGvTZ8SQ2yFUl265jagvygPTf88H1xpZHH1r8dB1 stjUHLmPH8AOyDgKxFchgGeDc3p/vJtgDDIXAFfDXG0NSRovLmtaQdGxe47Zf/go bXiEM7YL2WqQe5zfEA919JxkEwlDKYniOSVzAB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TkOAo+QNqbMfl1GISClopRqxVuAo59ewgMnFujwgd8w12BwWl24 CzqOs5HqcUslePj+LzcjSNgVCklYwKl+0dsb/fctMOCtHodwqm2CBJ+zydvNmYkD fxda/J91Z1xrah5ec++FL0L4vs+jCiIWJeupJFKlr1hCMZiiGH7W554loK5l4jv3 EY347EidAw== =Ta4p -END PGP PUBLIC KEY BLOCK- ___ Nouveau mailing list Nouveau@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/nouveau