10de:0647 [MacBookPro5,2] Fails to boot into 12.04 desktop

Bug #546393 reported by Christopher "cv"
122
This bug affects 22 people
Affects Status Importance Assigned to Milestone
Nouveau Xorg driver
Fix Released
Critical
Nominated for Trunk by Frank
linux (Ubuntu)
Invalid
High
Unassigned

Bug Description

Unable to boot into the Ubuntu 10.04 beta1 Live-CD. Therefore also unable to install the OS. When nothing is set in the modes menu and no button is pressed then one can't even see the new Ubuntu Plymouth theme. The only thing one sees is a blinking cursor and it doesn't boot at all. If one presses F6 in the options menu and choose "nomodeset" then one does see the Ubuntu Plymouth theme but the laptop fails to boot and stops at the point there the b43 Wireless module gets loaded. The Wireless module seem not to be suppoted nativley. This would not be such a Critical issue HOWEVER only in this case the boot process HALTS. There is at this moment no know way to resume the boot to contine with the install. The option noload=b43 does not give any different solace. We repeated this procedure and the point where it stops is always the same:
"b43-phy0 ERROR: FOUND UNSUPPORTED PHY (Analog 8, Type 4, Revision4)"

Also using various boot options like: acpi=off noapic nolapic gave no different behaviour.
Attached are two 2 screenshots and a movie (post #3 and post #12) demonstrating the problem.

WORKAROUND: I may boot into the live environment of Trusty using both kernel parameters: acpi=off nomodeset

---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: cv 1513 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'NVidia'/'HDA NVidia at 0xdf480000 irq 20'
   Mixer name : 'Realtek ALC889A'
   Components : 'HDA:10ec0885,106b4600,00100103'
   Controls : 36
   Simple ctrls : 20
CheckboxSubmission: 57388072f927f9d98d4a0d5e9bab5d7c
CheckboxSystem: 7e42599bda39ea7ff8b528272b6ef52b
DistroRelease: Ubuntu 10.04
HibernationDevice: RESUME=UUID=05fb757e-479a-45d9-96ee-ef89a9eec76c
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
MachineType: Apple Inc. MacBookPro5,2
NonfreeKernelModules: wl nvidia
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-19-generic root=UUID=df469aef-e891-4ddc-9fea-456eea1cfa74 ro splash quiet splash
ProcEnviron:
 LANGUAGE=de:en
 LANG=de_DE.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
Regression: No
RelatedPackageVersions: linux-firmware 1.33
Reproducible: Yes
RfKill:
 0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
Tags: lucid graphics needs-upstream-testing
Uname: Linux 2.6.32-19-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 05/04/09
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP52.88Z.008E.B05.0905042202
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-F2268EC8
dmi.board.vendor: Apple Inc.
dmi.chassis.asset.tag: Asset Tag#
dmi.chassis.type: 8
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F2268EC8
dmi.modalias: dmi:bvnAppleInc.:bvrMBP52.88Z.008E.B05.0905042202:bd05/04/09:svnAppleInc.:pnMacBookPro5,2:pvr1.0:rvnAppleInc.:rnMac-F2268EC8:rvr:cvnAppleInc.:ct8:cvrMac-F2268EC8:
dmi.product.name: MacBookPro5,2
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

---
ApportVersion: 2.12.7-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 2802 F.... pulseaudio
CasperVersion: 1.336ubuntu1
CurrentDesktop: Unity
DistroRelease: Ubuntu 14.04
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.
LiveMediaBuild: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64+mac (20140103)
MachineType: Apple Inc. MacBookPro5,2
MarkForUpload: True
Package: linux (not installed)
ProcFB:

ProcKernelCmdLine: file=/cdrom/preseed/username.seed boot=casper initrd=/casper/initrd.lz quiet splash -- acpi=off nomodeset
ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
RelatedPackageVersions:
 linux-restricted-modules-3.12.0-7-generic N/A
 linux-backports-modules-3.12.0-7-generic N/A
 linux-firmware 1.118
RfKill:
 0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
Tags: trusty
Uname: Linux 3.12.0-7-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 05/04/09
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP52.88Z.008E.B05.0905042202
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-F2268EC8
dmi.board.vendor: Apple Inc.
dmi.chassis.asset.tag: Asset Tag#
dmi.chassis.type: 8
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F2268EC8
dmi.modalias: dmi:bvnAppleInc.:bvrMBP52.88Z.008E.B05.0905042202:bd05/04/09:svnAppleInc.:pnMacBookPro5,2:pvr1.0:rvnAppleInc.:rnMac-F2268EC8:rvr:cvnAppleInc.:ct8:cvrMac-F2268EC8:
dmi.product.name: MacBookPro5,2
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Christopher "cv" (vchristopher) wrote :
Revision history for this message
Christopher "cv" (vchristopher) wrote :
description: updated
description: updated
description: updated
summary: - MacBook Pro 5,2 fails to boot into 10.04 beta1
+ MacBook Pro 5,2 fails to boot into 10.04 beta1 desktop
Revision history for this message
Christopher "cv" (vchristopher) wrote : Re: MacBook Pro 5,2 fails to boot into 10.04 beta1 desktop

Movie with nomodeset + console output http://hanfi.net/ubuntu/mbp.mov

affects: ubuntu → linux (Ubuntu)
Revision history for this message
Cor Driehuis (cor3huis) wrote :

Exact same issue with same MacBookPro Type. Haveing a 500GB SATA HD + 8GB RAM using Lucid Beta 1 64Bit. Another Linux e.g http://www.sysresccd.org/ CD boots just fine on this macine. OSX works fine, just as Windows 7 64 Bit. Using rEFIt 0.14 (http://refit.sourceforge.net/) but even the LiveCD option does not boot.

Disabled videodrive nomodeset, hangs at Wireless driver PHY.

Will investigate other options, boot parameters or what else I think might lead to success in the meantime...

Note that I've installed Linux, OSX , Windows, FreeBSD etc on MANY systems, so the issue is likely not my fault.

Revision history for this message
Christopher "cv" (vchristopher) wrote :

In Ubuntu 9.10 the "ERROR: FOUND UNSUPPORTED PHY" was the same message but it managed to boot the Live CD which is not the case in 10.04.
It seems also to have some problems with a "usb device on port 2" of course I had NO usb devices plugged in at this time.

The only way to get Lucid working at the moment is to install karmic koala(9.10) and then do the "update-manager -d" command. This will update the system to Lucid but sound will not work because it didn't work in Karmic either.
( https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/462098 )
Also if you try to install the proprietary Nvidia driver with the "Hardware Driver" section in the menu of Ubuntu, it will fail to install. So if you upgrade from Karmic to Lucid you have a) No sound and b) no 3D proprietary Nvidia driver.

I really hope this problem gets fixed, so that the MacBook Pro will be able to boot into the Lucid desktop.

Revision history for this message
Christopher "cv" (vchristopher) wrote :

If you upgrade from Karmic to Lucid you need to use the Super Grub Disc to boot into Lucid by the way.
rEFIt will not work.

Revision history for this message
Cor Driehuis (cor3huis) wrote :

Thanks will remember when needed, BTW this bug is not about not an upgrade, no feedback since there is no 10.04 release as of this moment, but about a fresh install Beta1, yup a real BETA with severe bugs ;). FYI just tried a fresh install of Ubuntu 9.10 64Bit Karmic Koala, could start the installation in graphical mode without problems, it just worked.

Revision history for this message
Cor Driehuis (cor3huis) wrote :

Thanks for you time CV. You wrote in post #5

> Lucid but sound will not work because it didn't work in Karmic either.
That is not the case see the thread you mentioned yourselves ;)
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/462098

Get sound working by installing the newest (not yet in the repos) linux kernel 2.6.32 following these instructions:
http://www.ramoonus.nl/2009/12/03/linux-kernel-2-6-32-installation-guide-for-ubuntu-linux/

Hpe it helps you.

Also, no doubt NVidea will work sooon, will try later today, but first the Karmic Koala + Upgrade and see where we can go from there...

CV wrote in # "rEFIt will not work." has to be seen in the contects of his post, to get GRUB-EFI to work in 64Bit take bootx64.efi and some tweaking I bet. "Beta " the best time of your life >:-). Any sensible helpfull results will be posted here, however the original issue remains, at least till beta 2.

Revision history for this message
Cor Driehuis (cor3huis) wrote :

BTW a lot about EFI n GRUB here
http://ubuntuforums.org/showthread.php?t=995704

Revision history for this message
Christopher "cv" (vchristopher) wrote :

Thanks,
maybe someone could change the status to "confirmed" and the importance to "high" if not even "critical" ?

Revision history for this message
Rainer Rohde (rainer-rohde) wrote :

I have the same issue as well (macbook pro 5,2, 17")

I think that the 2nd issue (after disabling nouveau and continue to boot) might be a FOSS wireless driver for the mac's broadcom NIC, which fails to load. These issues are similar for both i386 and amd64 variants.

My workaround was, as already described, to install Karmic and upgrade from there, installing the restricted drivers for the nvidia and broadcom cards; to make it boot I had to install grub2 into the partition my Lucid was on, in my case /dev/sda4.

And I agree with "cv" - this issue should be raised to 'high' or 'critical' as this is a complete show-stopper for those macbook users curious to try Lucid. And, considering how *nice* Lucid really is, that would be a real shame. :)

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Christopher "cv" (vchristopher) wrote :

Here is the same video as in my post #3 in ogg/.ogv format: http://hanfi.net/ubuntu/mbp.ogv (this video can be played on Ubuntu without any additional codecs)

Revision history for this message
Christopher "cv" (vchristopher) wrote :

I have great news regarding the "no sound issue".

This is how it currently works:

1. Installing Ubuntu 9.10
2. "update-manager -d" in console
3. Updating the fresh Lucid beta with all the new updates
4. Having 2.6.32.17 kernel installed automatically through the updates
5. Booting up the latest "Super Grub Disc" version 1.30(latest version) and choosing "Load grub.cfg even if mbr is broken" from the menu
6. Done! Sound works for the first time and everything else seems ok!

(this bug is about the Live-CD wish still fails) ;-)

Revision history for this message
Christopher "cv" (vchristopher) wrote :

I'm happy to add that the proprietary Nvidia driver (current, from the Hardware Driver menu) installed with no problems and now Nvidia driver AND sound both work. Amazing.

Let's hope Live CD gets fixed too.

Revision history for this message
Cor Driehuis (cor3huis) wrote :

I know the below writen information is not 100% related to the orignal bug but still very relevant

..to give people hope on enjoying Ubuntu 10.04 on their MacBookPro (5,2)

I write this in the case the final 10.04 release CD would still not work.
Then there still would be a path to 10.04 via upgrading a fully working 9.10

On Karmic 9.10, I'm a happy camper now since,

* Wifi via restricted STA drivers works well
* Videocard Nvidia Driver 185.x works well, albeit restricted *<:o)
* Magic Mouse Basic works, needs tweaking, had no time yet. See
http://github.com/entrope/linux-magicmouse
* Bluetooth thus also works... ;)
* Sound works well, I've adjusted the Ubuntu wiki instructions
* iSight camera, a quick test showed picture, for testing I instaled
  cheese (sudo apt-get install cheese)

The related page for all of this Karmic goodness is
https://help.ubuntu.com/community/MacBookPro5-1_5-2/Karmic

BTW this helpful guy with great SEO links for EFI boot issues
http://www.rickycampbell.com/booting-windows-linux-and-osx-on-your-mac-without-using-grublilo-to-boot-windows/

Now I will see if we can upgrade to Lucid Lynx 10.04 Beta 1, a bold move...

So far, the original bug remains...well... bugging us. Cannot install Ubuntu Lucid Lynx 10.04 Beta 1 direct booted from CD on latest Modern MAC Powerbook Pro 5,2 :-( IMHO indeed critical.

tags: added: b34-phy0 b43 broken error phy pipe terminated unreadahead unsupported usb wireless
description: updated
description: updated
tags: added: b43-phy0
removed: b34-phy0
Revision history for this message
Christopher "cv" (vchristopher) wrote :

As of Saturday night 11pm "update-manager -d" in a fresh Karmic Koala install (9.10) will NO LONGER result into a working 10.04 system. The 10.04 system will not boot anymore, not even with the super grub disc.

Also I tried the "Daily-Live" CD on Saturday afternoon which still fails to boot into the 10.04 Desktop.

If you have a working 10.04 Install right now then don't update or your system will not boot anymore since there is a serious bug right now which turns the system unbootable.

Cor Driehuis (cor3huis)
tags: added: 10.04 beta1 cd install lynx macbookpro unable
removed: book
Revision history for this message
Mikalv (mikalv) wrote :

I got a MacBookPro5,5
Boot ROM Version: MBP55.00AC.B03

And the same problem seems to be here.. I can't boot from a usb disk, or cdrom..

Revision history for this message
Christopher "cv" (vchristopher) wrote :

Ohh same problem on 5,5? This is getting worse.

summary: - MacBook Pro 5,2 fails to boot into 10.04 beta1 desktop
+ MacBook Pro 5,2 / 5,5 fails to boot into 10.04 beta1 desktop
Revision history for this message
Julian Suarez (juliansuarezlopera) wrote : Re: MacBook Pro 5,2 / 5,5 fails to boot into 10.04 beta1 desktop

Hi, I have a macbook Pro 5,1 and I also have the same problem, which is strange since I was able to boot the Live CD in karmic.
I've tried the LiveCD and also a live USB in conjunction with rEFIt....but no luck

summary: - MacBook Pro 5,2 / 5,5 fails to boot into 10.04 beta1 desktop
+ MacBook Pro 5,1 / 5,2 / 5,5 fails to boot into 10.04 beta1 desktop
Revision history for this message
Kenzu (jlindeberg) wrote : Re: MacBook Pro 5,1 / 5,2 / 5,5 fails to boot into 10.04 beta1 desktop

Hi, I have the same problem on a macbook pro 5,3 :-(

Revision history for this message
Christopher "cv" (vchristopher) wrote : Re: MacBook Pro 5,1 / 5,2 / 5,3 / 5,5 fails to boot into 10.04 beta1 desktop

Anyone of the true heroes should finally
just raise the importance to critical since all 5,x MacBook Pro's seem to have this problem. Ubuntu will loose 1000's of users if this is bit fixed in beta 2.

summary: - MacBook Pro 5,1 / 5,2 / 5,5 fails to boot into 10.04 beta1 desktop
+ MacBook Pro 5,1 / 5,2 / 5,3 / 5,5 fails to boot into 10.04 beta1 desktop
Revision history for this message
Christopher "cv" (vchristopher) wrote :

bit=not (I'm typing on a iPhone) ;-)

Revision history for this message
Julian Suarez (juliansuarezlopera) wrote :

has anyone tried using the alternate-install cd?? does it work or does it hang like the live cd?

Revision history for this message
Christopher "cv" (vchristopher) wrote :

I tried it, it doesn't wotrk. Nothing does work at the moment, NOTHING...

Revision history for this message
Christopher "cv" (vchristopher) wrote :

The installation using the alternative CD works but it hangs on the boot. I also tried the current live CD daily and daily-live. Both bot working. I also tried the DVD, not working too.
"update-manager -d" in Karmic not working too but I will try this tonight again...

Revision history for this message
Julian Suarez (juliansuarezlopera) wrote :

so how do we get someone to pay attention to this bug? it's affecting all recent macbook pro users, and because of the similarities with the macbook I bet it is affecting that too, so I think there's a lot of people affected with this bug so we should try to get it noticed

Revision history for this message
Christopher "cv" (vchristopher) wrote :

Spam the mailing lists is my first idea what comes to mind. But I`m not going to do that, somebody else has to ruin his name ,-)

Revision history for this message
Cor Driehuis (cor3huis) wrote :

Trying to stop the driver from loading would be a first step to unravel the mistery, however adding the following bootline (F6)

noload=b43,b43-pci-bridge,ssb,b43legacy,b44 debug

Did not help :(. It could be that I'm using the wrong module name (b43 etc.) but since we cannot boot we must find the modulename via goin through kernal source ... sigh

NOTE the original bug still should be solved ofcourse. This info is soly ment to help solving the bug in the first place.

Cor Driehuis (cor3huis)
description: updated
Revision history for this message
Christopher "cv" (vchristopher) wrote :

I can happily add that updating a fresh Karmic Koala install using the "update-manager -d" command results in a working Lucid Lynx again. (describted in post #13), so this is the only way to get a Lucid Lynx working at the moment.

Revision history for this message
Julian Suarez (juliansuarezlopera) wrote :

Hi I have just found this thread that might give us a workaround to install Lucid using the LiveCD http://ubuntuforums.org/showthread.php?t=1442133&highlight=install+lucid+lynx+on+macbook+pro

Revision history for this message
Christopher "cv" (vchristopher) wrote :

Thanks, I'll try that.

Revision history for this message
Christopher "cv" (vchristopher) wrote : Re: MacBook Pro 5,1 / 5,2 / 5,3 / 5,5 fails to boot into 10.04 desktop

Thanks Cor Driehuis for updating the description, I didn't know everybody can do that ;-)

summary: - MacBook Pro 5,1 / 5,2 / 5,3 / 5,5 fails to boot into 10.04 beta1 desktop
+ MacBook Pro 5,1 / 5,2 / 5,3 / 5,5 fails to boot into 10.04 desktop
Revision history for this message
Christopher "cv" (vchristopher) wrote :

Following the forum in post #30 it seems that nouveau is the actual problem which would make sence since nouveau was NOT included in Karmic Koala 9.10

Changed in nouveau:
status: New → Confirmed
Revision history for this message
Christopher "cv" (vchristopher) wrote :

I can confirm that adding "nouveau.noaccel=1 blacklist=vga16fb" (without the ") after the quite splash in the Live CD works.
It will boot and installation works.
After that you have to install the nvidia driver and then you have to reboot.
 NOTE, IMPORTANT: the second time you report after you installed the nvidia driver, the boot will fail, you need to add this time "nouveau.noaccel=0" (NOT 1) and after that you dont have to add anything else and it will always work.
If you have any questions about this or if you would like to have this in a movie, feel free to ask me.

tags: added: noveau
removed: b43-phy0
tags: added: nouveau
removed: noveau
Changed in linux (Ubuntu):
importance: Undecided → High
Revision history for this message
Cor Driehuis (cor3huis) wrote :

BIG thanks for Christopher V. for the tips that at least made progress possible and for Chris Halse Rogers for the Undecided → High change. Now lets find some other Beta bug and report as best as we can!

Revision history for this message
Chris Halse Rogers (raof) wrote :

It looks like there might be a couple of problems here - one vga16fb related, which *might* be fixed by a change we've made in a more recent daily LiveCD, one related to nouveau's acceleration.

It would be helpful if someone could describe the behaviour of a recent livecd with “blacklist=vga16fb” and *without* “quiet splash”. Does the livecd boot? If it doesn't, how far does it get? Do you get graphical corruption?

If it boots all the way with corruption, or you can get to a VT (with blacklist=vga16fb), could *one* person please run “apport-collect 546393”

Revision history for this message
Cor Driehuis (cor3huis) wrote :

Post #36 the: "recent livecd" meaning a daily build CD of after 20100402 ?

Revision history for this message
Christopher "cv" (vchristopher) wrote :

I will try the daily-live CD tomorrow and tell you if it works without "quite splash" and with "blacklist=vga16fb", I will also post a movie online to show the bug in a better way if it boots at all.
I don't understand how this "apport-collect 546393" thing works or where to type this so this could maybe someone else please do.

Revision history for this message
Christopher "cv" (vchristopher) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Christopher "cv" (vchristopher) wrote : AplayDevices.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ArecordDevices.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : BootDmesg.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : IwConfig.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : Lspci.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : Lsusb.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : PciMultimedia.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ProcModules.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : UdevDb.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : UdevLog.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : WifiSyslog.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : Re: MacBook Pro 5,1 / 5,2 / 5,3 / 5,5 fails to boot into 10.04 desktop

Ok apport-collect command done (as seen above). I'll try current the Daily-Live CD now (3rd of april, night)

Revision history for this message
Christopher "cv" (vchristopher) wrote :

I like to add that the above apport-collect was done on a successful boot with 3D Nvidia graphics working afterwards. (sometimes the Nvidia driver can't load and I need to select "Run Ubuntu in low-graphics mode", this happends around 30% of all boots)

I also tried the Daily Live CD from 3rd of April 2010 and adding "blacklist=vga16fb" and nothing else results into a nouveau pramin flush and the boot is NOT successful.

Here is the video from a few minutes ago:

http://hanfi.net/ubuntu/daily-live-3rd-april.ogv

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

I just booted latest kubuntu daily lucid_desktop_amd64.iso from the hard disk (using a custom entry for grub2) with the extra option "blacklist=vga16fb" and... heck, it boot so fast(er) :-) And the .iso is so much faster than my kubuntu 9.10 box.

* Sound works, volume up/down and display brightness up/down function keys as well.
* Ethernet (I am writing from within kubuntu lucid right now). I guess installing mactel-support will roll the rest.
* Bluetooth detects devices, pairing works -and it works FAST, the way it should (did not test further than this) :D

I don't more time to spend on this. But I though I'll let you know...

Regards

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

( Sorry for the typos above... )

off-topic: is there a way, in case everything (or most things) work(s) well, to just adopt the .iso with any configurations made on it, and install/use it (something like a dist-upgrade from karmic)?

It c/w-ould be then a "recommended" way for macbook(pro) owners before upgrading to lucid.

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

+ installed pommed and the keyboard backlight works (and it works so fast... the same for display brightness/ volume --- I can't believe it).

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

OK, I know that I probably do not add new informatio to developers but I can't hide my enthousiasm. This is the BEST experience using (k)ubuntu on the MBP (5,1).

I attached the external display and was (mentally) prepaired to fight a bit to get it working without restarting X. And what happens? A dialog popped-up and informed me about... a new connection or display (or whatever, doesn't matter). External display hotplugging works!

Excellent! Congratulations and Thank you for your efforts.

Revision history for this message
Christopher "cv" (vchristopher) wrote :

1. Nobody is using kubuntu
2. None of this is about the bug

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

Mea Culpa - Sorry Christopher. I thought it's the same thing when talking about "booting" at least.

Revision history for this message
Christopher "cv" (vchristopher) wrote :

I don't mind, let's talk about ice cream ;-)

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

( I admit that I have found the wrong place to post this stuff. But I would like to add that "1. Nobody is using kubuntu" is just not true. )

My (mis-)understanding was that 10.04 fails to boot MBP5,1 = fails to boot the kernel. I used the option "nouveau.noaccel=1 blacklist=vga16fb" to boot latest Kubuntu and it worked. I thought it would be useful to let others know so I added this here (+ a lot more due to my excitement about the upcoming release).

Anyway, IIUC, the bottom line is (besides the "blacklist=vga16fb" issue):
"nouveau" provides no _stable_ 3D acceleration in its current state [*] and it wont be ready when Lucid comes out". The solution would be to load "nouveau" with the option "nouveau.noaccel=1" for the machines that wear the respective graphic card(s).

Right?

---
[*] "Any 3-D functionality that might exist is still unsupported. Do not ask for instructions to try it." from <http://nouveau.freedesktop.org/wiki/>

Revision history for this message
Christopher "cv" (vchristopher) wrote :

yes I wrote that in post #34. nouveau is the problem

Revision history for this message
Cor Driehuis (cor3huis) wrote :

See also https://bugs.launchpad.net/ubuntu/+source/linux/+bug/553471
Easter monday, so a little spare time left to spend on investigation the defect, sigh...

Did not see any codechange yet in e.g.
http://tomoyo.sourceforge.jp/cgi-bin/lxr/source/drivers/gpu/drm/nouveau/nv50_instmem.c

Revision history for this message
Chris Irwin (chrisirwin) wrote :

Hi, I reported bug 553471 that Cor linked above.

By specifying "nomodeset xforcevesa" on the kernel command line I am able to get to a basic, non-accelerated desktop. I've been doing this with the AMD64 daily livecd.

Revision history for this message
Christopher "cv" (vchristopher) wrote :

Ok so "nouveau.noaccel=1 blacklist=vga16fb" and "nomodeset xforcevesa" both works...

...I wonder if they both give the same result...

Revision history for this message
Chris Halse Rogers (raof) wrote :

They don't give the same result. One will be using the nouveau drivers, just without acceleration, the other will be using VESA.

@Νίκος Αλεξανδρής: Can you boot with *only* “blacklist=vga16fb”, or do you also need to add “nouveau.noaccel=1” before it works correctly?

Revision history for this message
Chris Halse Rogers (raof) wrote :

From discussion in #nouveau it seems we may need to get efifb to properly initialise the cards before nouveau loads:

10:38 <marcheu> yeah try the efifb + handoff
10:39 <marcheu> there are EFI issues
10:39 <marcheu> right now you probably want to make apple use efifb
10:40 <RAOF> Instead of nouveau?
10:40 <marcheu> use efifb+ handoff
10:40 <marcheu> to nouveau

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

@Chris HR:

Please accept my apologies for _not_ being accurate in post #58. Of course I have to use the "nouveau.noaccel=1" as well. I thought that I (sort of) corrected this in post #65 where I mention that I use "nouveau.noaccel=1 blacklist=vga16fb".

Kindest regards, Nikos

---
PS Thank you for all of your efforts Chris

Revision history for this message
Christopher "cv" (vchristopher) wrote :

@Chris Halse Rogers: For "blacklist=vga16fb" *only* check post #57

Revision history for this message
Cor Driehuis (cor3huis) wrote :

Finally installed Lucid Lynx Beta 1 on MacBookPro. More details in the post on the forum most relevant thread
http://ubuntuforums.org/showthread.php?p=9083630

...after all this is a bugtracker, not a forum ;)

Revision history for this message
Christopher "cv" (vchristopher) wrote :

I'm a little bit confused. Didn't I mention in post #34 already that the installation works if these 2 options are added? ;-)

The original bug still exists kind of since the boot CD still isnt loading without this knownledge

Revision history for this message
In , Christopher "cv" (vchristopher) wrote :

Hello, I like to raise attention on this very important bug over here:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/546393

The Ubuntu Lucid Beta 1 onwards is unable to boot into the desktop because the nouveau driver has a "pramin flush timeout" (check the video in post #12).

Since Ubuntu is the most popular Linux distribution, this bug is very important, since all MacBook Pro 5,x Models are unable to boot into the desktop because nouveau is unable to load.

Further testing found out that adding "nouveau.noaccel=1 blacklist=vga16fb" as kernel options helps booting the system.

Maybe you could fix this bug and enable nouveau.noaccel=1 as a standard if the 9600M GT nVidia card is detected.

Any other fix would be nice too, this is very important.

Thanks.

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

What I don't understand, if I understand correctly what I read in nouveau's wiki [*], is why are we trying to look for something that does not exist yet. There is no support for 3D yet.

Hence, this is not a bug. We have to: (a) wait till some dev writes the code or (b) code it ourselfes.

Since I am no real programmer and can be of little help in coding this, I just can test whenever a 3D-code will be available. Correct me if I am wrong.

---
[*] from <http://nouveau.freedesktop.org/wiki/>:
"Any 3-D functionality that might exist is still unsupported. Do not ask for instructions to try it. But you can read GalliumHowto in case you are brave enough."

Revision history for this message
Christopher "cv" (vchristopher) wrote :

WE DON'T LOOK FOR 3D SUPPORT.

This bug is about the Lucid Beta1 not booting.

Revision history for this message
Christopher "cv" (vchristopher) wrote :

Just read the description, this bug was filled because all 5.x MacBook Pro Models are unable to boot into the desktop.

Now we know how it works using "nouveau.noaccel=1 blacklist=vga16fb" but we didn't know this before.

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

You write that you (plural) don't look for 3D support while this is the *real* problem (and you test various things to see if you can get accelerated graphics [posts # .. .. .. ] ) since the nouveau driver is just not ready yet. If "we" just want to "boot" then switch back to the old way (like in Karmic) where driver X ( I don't know which exactly) is used. It seems simple enough till the nouveau driver works fine.

Are there other reasons to stick with the nouveau driver?

---
( You can avoid CAPITAL LETTERS Christopher. They appear offensive... but if they make you feel GREAT ans SMART then go ahead. )

Revision history for this message
Chris Irwin (chrisirwin) wrote :

Νίκος Αλεξανδρής, the nouveau driver works fine on most nvidia hardware I have thrown at it, just not the mbp5,x series. I consider it ready for use (at the very least, ready to replace "nv"). This is a bug with that driver with this particular adapter. Furthermore, nvidia has officially discontinued the old "nv" driver. New nvidia cards will *not* be supported by it, and it is effectively dead as nobody outside nvidia supports it as far as anybody i've spoken to can tell. Shipping with nv on a LTS is somewhat short problematic, I assume.

Also, while we are talking about accelerated graphics, we are not talking about 3D graphics. The graphics driver can accelerate lots of non-3D drawing functions all without needing OpenGL/mesa/gallium. The nouveau driver as shipped with Lucid does not have any 3D capability, but does support other handy acceleration methods (eg. xrender)

The problem in this bug is the Lucid hangs during boot with a particular piece of hardware (said graphics adapters in macbookpro5,X units). Ideally the nouveau could be patched to work with it. Failing that, blacklisting these cards so they can fall back to either nv (or vesa, depending on support) would suffice. The Hanging during boot makes a very non-optimal out-of-the-box experience.

Revision history for this message
Christopher "cv" (vchristopher) wrote :

"The Hanging during boot makes a very non-optimal out-of-the-box experience" <- that's the bug.

I don't mind if I use nouveau or not.

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

Thank you for your time and the detailed explanations Chris Ir.

Nikos

Revision history for this message
Cor Driehuis (cor3huis) wrote :

The bug "unable to boot into the Ubuntu 10.04 beta1 Live-CD". Therefore also unable to install the OS is ofcourse still existing regardless everyones tips to get someting of the boot to work. At least could now send various other defects of Luxid Beta1 running on the acbook Pro

Thanks to everyone confirming the bug on various MacBook's.

I could not agree more with what others already mentioned: The Hanging during boot makes a very non-optimal out-of-the-box experience.

Any developer with possibility to fix this, I beg you to do so before the Final release of Lucid Lynx 10.04

If I could fix it alone I would, but even then I cannot release a fixed "official" CD of Lucid Lynx therefore I only can add help on the forum.

http://ubuntuforums.org/showthread.php?p=9083630

Revision history for this message
In , Chris Halse Rogers (raof) wrote :

It's worth noting that this does not seem to prevent all macbooks from booting - the last comment on https://bugs.freedesktop.org/show_bug.cgi?id=18638 suggests that nouveau works for at least one macbook user.

Revision history for this message
Christopher "cv" (vchristopher) wrote :
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Chris Halse Rogers (raof) wrote :

Upstream thinks that this should be fixable by loading efifb first, to set things up for nouveau.

Could you please try booting *without* “nouveau.noaccel=1” or “quiet splash” and *with* “video=efifb”? So, replacing “quiet splash” with “video=efifb”? This should cause efifb to be loaded, which might initialise things enough that nouveau will work.

You shouldn't need to add “blacklist=vga16fb”, but if it doesn't work the first time please try adding the blacklist.

If this doesn't work, we'll resolve it by disabling acceleration in nouveau for your systems.

Revision history for this message
Chris Irwin (chrisirwin) wrote :

Chris. I tried booting the current daily livecd. "video=efifb" does not work with or without "blacklist=vga16fb". Note that, at least in my case, I am not booting from EFI mode. I am using grub-pc via the bios compat mode.

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

"video=efifb" does not work for me either.

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

(note: I too use grub-pc and not efi mode)

Revision history for this message
Chris Halse Rogers (raof) wrote :

Hm. Is anyone who is experiencing this bug running in EFI mode? There are some reports of recent macbook pros running nouveau successfully; maybe EFI mode works.

Revision history for this message
Chris Irwin (chrisirwin) wrote :

Chris Halse Rogers: That may be, but the Live CD does not support EFI, nor does a default install. Post-install, one would have to manually install grub-efi-${efi-arch}. I have briefly attempted this, but only have only managed to create an unbootable system.

Revision history for this message
Cor Driehuis (cor3huis) wrote :

Starting with Option key pressed, so one can boot from CD with replacing “quiet splash” with “video=efifb”
halted the install with the same "[drm] nouveau 0000:02:00.0 PRAMIN flush timeout" message.

Note that above I can see nouveau_channel_alloc: initialized FIFO 1. My impression is that Nouveau is well on it's way being finished and the develi is in the details.

Anyhow I love to give more sensible info since I did manage via a looooong road to get Lucid on my system, I thefore can make all kinds of dumps, for hardware info and what not. Chris Halse Rogers of post #89, what commands 'n scripts would you like me to run that would be helpful for the team to fix the bug?

Revision history for this message
Cor Driehuis (cor3huis) wrote :

Can get into EFI shell and do e.g. a devtree, dmpstore or drvdiag of anyhelp?

Revision history for this message
In , Christopher "cv" (vchristopher) wrote :

Yes that's cause he is using Fedora, I'm talking about Ubuntu.

I also had no problems on fedora half a year ago, they seem to use extra code for MacBook Pro detection.

Revision history for this message
Rainer Rohde (rainer-rohde) wrote :

Just to chime in: I tried to boot from the daily live built 20100406 and it still is a complete show stopper for me on MBP 5,2. "nomodset" and "vga=efifb" don't really help here either, as the whole boot process eventually hangs solid.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Christopher "cv" (vchristopher) wrote :

I use beta 2 right now (installed it a few minutes ago).

1. video=efifb does notresult into a working desktop (pramin flush) <- this has been said before.

2. blacklist=vga16fb does not need to be added

3. adding nouveau.noaccel=1 is enough and will result into a working system

4. installing the nvidia driver with the "hardware driver" program will result into an "error" but actually it installed the driver successfully and the "error" doesn't exist.

5. nvidia driver will boot successful next boot and the nouveau.noaccel=1 option does NOT need to be added.

6. everything else works. ;-)

Revision history for this message
Chris Halse Rogers (raof) wrote :

There's a test-kernel building in the nouveau ppa ( https://edge.launchpad.net/~xorg-edgers/+archive/nouveau/ ) which should quirk off acceleration for affected MacBook Pros. Once it has built could you please test that this kernel successfully boots *without* the nouveau.noaccel=1 kernel option?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Seeed (nielsfranke) wrote :

I installed beta 2, on a MBP 5,3. I was able to start the LiveCD with "nouveau.noaccel=1 blacklist=vga16fb".
But after the installation I always get the PRAMIN flush timeout error, even if i add "nouveau.noaccel=1".

Revision history for this message
Christopher "cv" (vchristopher) wrote :

I'm also unable to boot my system anymore with or without noveau.noaccel=1 thanks to the new xorg updates which I installed earlier. Therefor I'm not able to test the new kernel. I simply can't boot the system at all.

Revision history for this message
Christopher "cv" (vchristopher) wrote :

I installed a fresh beta2 just a few minutes ago and I'm totally unable to boot it. No idea why it worked yesterday...(where I also installed a fresh beta2)

That means that I install beta 1 now again.

Revision history for this message
Christopher "cv" (vchristopher) wrote :

I'm also unable to boot form beta 1, no idea, my MacBook Pro seems to be broken for ever...

Please somebody else try the kernel from post #95 and tell Chris Halse Rogers if this works without the nouveau.noaccel=1 option or not.

Revision history for this message
In , Ricardo Salveti (rsalveti) wrote :

Created attachment 34863
PRAMIN flush timout stack

Just tested with latest GIT revision available at Linus' tree (0eddb519b9127c73d53db4bf3ec1d45b13f844d1). That's after merging the latest drm/nouveau code, and I'm still facing this issue.

Probably this bug is only happening with MacBook Pro version.

My system:
 * MacBook Pro 5,1
 * Booting with normal bios mode (grub)
 * 02:00.0 VGA compatible controller [0300]: nVidia Corporation G96 [GeForce 9600M GT] [10de:0647] (rev a1) (prog-if 00 [VGA controller])

Tested with nomodeset but I ended up in another bug (acpi related).

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

I got lucid lynx beta using "nosplash nouveau.noaccel=1 vga=711" (...using Kubuntu though :-). I've installed but have some issues:

  - X wont autostart (need to "startx")
  - automount does not work (might be an KDE bug !?)
  - random crashes of various apps

(More in the Kubuntu-forum: <http://kubuntuforums.net/forums/index.php?topic=3110960.msg224899#msg224899>)

@Chris Halse R (+ note to self): not sure if I have the time to spend to try-out the "nouveau" stuff. Well, maybe yes... tomorrow!?

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

ohh... those typos: I ve installed Beta2 and _not_ Beta1.

Cheers!

Revision history for this message
Seeed (nielsfranke) wrote :

"nosplash nouveau.noaccel=1 vga=711" did not do the trick on my Ubuntu beta 2.

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

@Seeed:

I am sorry to read that. I really did not have to do anything else than that. What do you see? Text flowing upwads I guess for some seconds... or not? Does the boot process just hang?

(...did you verify the integrity of your Live 10.04 CD Beta2?)

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

@Seeed: there is also the parameter "quiet". Could you retry booting using all of the above parameters I've described _and_ removing "quiet" and see at which point it hangs?

Revision history for this message
Seeed (nielsfranke) wrote :

@Νίκος Αλεξανδρής:
What I see is the same error I get, with all the other parameters I tried:

"b43-phy0 ERROR: FOUND UNSUPPORTED PHY (Analog 8, Type 4, Revision4)"
"[drm] nouveau 0000:02:00.0 PRAMIN flush timeout"

I also removed the "quiet" parameter and everything seems to be working normal until I get the error above.
Checked the integrity of my disk and it seems to be fine.

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

@Seeed: can't help you out - sorry.

Lucid has still blocker bugs. I can't mount devices for example. Anyhow, I'll try out the latest nouveau stuff given above and then I'll get back to Karmic since I lost lot of time. Need to continue my work.

Revision history for this message
Christopher "cv" (vchristopher) wrote :

@ seeed good band
@seed 2nd time: you need to add the nouveau.noaccel=1 in the same line where quite splash is written.
Sounds unbelievable that you got a pramin flush timeout with nouveau.noaccel=1 because then this option fails for you which is even worse than the bug discussed here

Revision history for this message
Christopher "cv" (vchristopher) wrote :

@Chris Halse Rogers: After using the alternative i386 beta2 CD I was able to get a working system again.

Your special nouveau kernel Chris Halse Rogers, was not working for me and failed to boot with no options. I also tried nouveau.noaccel=1 which failed too(second screenshot).

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

@Chris HR: It didn't work for me also. I am now back in Karmic since I have no more free time currently.

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

@Seeed: Did you check the options for "safe graphics" or similar in the Live CD (pre-)Boot dialog? There must be an entry about this "vga=...".

Hmmm... now that I see I used "vga=771" and not "vga=711". But this might be of minor importance.

Revision history for this message
Seeed (nielsfranke) wrote :

@Christopher "cv": You were right. When i put the parameter in the same line with quite splash i can boot and login in text mode. "startx" gets me to the desktop, but many apps crash and networkmanager does not seem to work either.

Revision history for this message
Morgan Collett (morgan) wrote :

I can't help with testing the kernel, but I had the problem in this bug report when I upgraded from a daily alternate image a few days after Beta 1.

I fixed my system by booting the recovery mode with "nomodeset" appended to the grub boot command, and then ran the manual nvidia install shown in the known issues for http://www.ubuntu.com/testing/lucid/alpha2 - the bit about Jockey not supporting the Nvidia alternates system. I then rebooted and the nvidia kernel module failed to load, but the vesa fallback worked. I then reinstalled nvidia-common and it worked, fixing the nvidia driver.

Hope that helps as a workaround, I don't know if it will still work at this point.

Revision history for this message
Christopher "cv" (vchristopher) wrote :

Thanks, I got a working 2.6.32.19 kernel atm but this seems to be a nice trick if it really works.

Revision history for this message
Cor Driehuis (cor3huis) wrote :

Chris Halse Rogers in post #95 I'm willing to get masochistic and test the kernel 2.6.32-20.29~nouveauquirk. As I understand there is already n newer kernel https://edge.launchpad.net/ubuntu/lucid/+source/linux/2.6.32-20.30

1) Does this mean this also has this fix? and no need to thest the above OR
2) For short, if I understand correctly, I need to:
    - Add your PPA via: sudo add-apt-repository ppa:xorg-edgers/nouveau
    - Install the kernel via e.g. Synaptic (I'm on 64Bit hope it is there also)
    - disable my blacklist.conf line I've added "Blacklist nouveau"
    - Un-install my NVidea 1.9x restricted driver
    - Reboot and choose the correct new kernel in the grep menu
    - cross my fingers and hope it boot up without any additional boot parameters
    - Report my finding here...

 Correct?

Revision history for this message
Christopher "cv" (vchristopher) wrote :

@Cor: 1) Νίκος Αλεξανδρής and me tried this already and it's not working. He deleted the kernel from his ppa. The 2.6.32.20 in the official Lucid repositories has nothing to do with this.
2) correct

Revision history for this message
Chris Halse Rogers (raof) wrote :

@Cor: The nouveauquirk package is still in the PPA. Yes, you'll need to manually install the kernel, because the new 2.6.32-20 kernel has superseded it.

This will also be in an upcoming kernel upload if you don't want to manually install the kernel.

Your steps in (2) seem correct.

To the others:
I'm not sure where using “vga=...” is coming from. It's my understanding that the kernel no longer recognises those settings; instead, it's video= and kms drivers. Perhaps a dmesg from when you're booting like that would be helpful? I'd like to work out why disabling acceleration is no longer working for you.

Revision history for this message
Alex Murray (alexmurray) wrote :

Confirming that for my MacBook Pro 5,1 I can only successfully boot the beta 2 livecd with the options nouveau.noaccel=1 blacklist-vga16fb otherwise the boot hangs. Trying with nomodeset also doesn't work for me.

Revision history for this message
Andy Whitcroft (apw) wrote :

Ok, I've pulled in a bunch of Chris' patches to disable acceleration out of the box for these cards. Could those of you affected please test the kernel at the URL below and report back here. The kernels are at the URL below. Thanks:

    http://people.canonical.com/~apw/raof-nv-accel-lucid/

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 2.6.32-21.31

---------------
linux (2.6.32-21.31) lucid; urgency=low

  [ Andy Whitcroft ]

  * allow modules.builtin to be optional
  * d-i: add mpt2sas to the message-modules udeb
    - LP: #530361

  [ Christopher James Halse Rogers ]

  * SAUCE: Nouveau: Add quirk framework to disable acceleration
    - LP: #544088, #546393
  * SAUCE: Nouveau: Disable acceleration on MacBook Pros
    - LP: #546393
  * SAUCE: Nouveau: Disable acceleration on GeForce3 cards
    - LP: #544088
  * SAUCE: Nouveau: Disable acceleration on 6100 cards
    - LP: #542950

  [ Stefan Bader ]

  * SAUCE: dma-mapping: Remove WARN_ON in dma_free_coherent
    - LP: #458201

  [ Surbhi Palande ]

  * SAUCE: sync before umount to reduce time taken by ext4 umount
    - LP: #543617

  [ Upstream Kernel Changes ]

  * tipc: Fix oops on send prior to entering networked mode (v3)
    - CVE-2010-1187
  * KVM: x86 emulator: Add Virtual-8086 mode of emulation
    - LP: #561425
  * KVM: x86 emulator: fix memory access during x86 emulation
    - LP: #561425
  * KVM: x86 emulator: Check IOPL level during io instruction emulation
    - LP: #561425
  * KVM: x86 emulator: Fix popf emulation
    - LP: #561425
  * KVM: Fix segment descriptor loading
    - LP: #561425
  * KVM: VMX: Update instruction length on intercepted BP
    - LP: #561425
  * KVM: VMX: Use macros instead of hex value on cr0 initialization
    - LP: #561425
  * KVM: SVM: Reset cr0 properly on vcpu reset
    - LP: #561425
  * KVM: VMX: Disable unrestricted guest when EPT disabled
    - LP: #561425
  * KVM: x86: disable paravirt mmu reporting
    - LP: #561425
  * AppArmor: Fix put of unassigned ns if aa_unpack fails
  * AppArmor: Fix refcount bug when exec fails
    - LP: #562063
  * AppArmor: Take refcount on cxt->profile to ensure it remains a valid
    reference
    - LP: #367499
  * AppArmor: fix typo in scrubbing environment variable warning
    - LP: #562060
  * AppArmor: fix regression by setting default to mediate deleted files
    - LP: #562056
  * AppArmor: fix refcount order bug that can trigger during replacement
    - LP: #367499
  * AppArmor: Make sure to unmap aliases for vmalloced dfas before they are
    live
    - LP: #529288
  * AppArmor: address performance regression of replaced profile
    - LP: #549428
  * AppArmor: make the global side the correct type
    - LP: #562047
  * AppArmor: use the kernel shared workqueue to free vmalloc'ed dfas
  * sky2: add register definitions for new chips
    - LP: #537168
  * sky2: 88E8059 support
    - LP: #537168
  * net: Fix Yukon-2 Optima TCP offload setup
    - LP: #537168
  * net: Add missing TST_CFG_WRITE bits around sky2_pci_write
    - LP: #537168
  * sky2: print Optima chip name
    - LP: #537168
  * (Upstream) dell-laptop: defer dell_rfkill_update to worker thread
    - LP: #555261
  * drm/nv40: add LVDS table quirk for Dell Latitude D620
    - LP: #539730
 -- Andy Whitcroft <email address hidden> Tue, 13 Apr 2010 18:50:58 +0100

Changed in linux (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Christopher "cv" (vchristopher) wrote :

OMG, this is the most beautiful day of my life.

I'm looking forward to the 2.6.31 kernel and will come back to this place in anger if it isn't working ;-)

Changed in nouveau:
status: Confirmed → Fix Released
Revision history for this message
Christopher "cv" (vchristopher) wrote :

*2.6.32.-21.31

Revision history for this message
Christopher "cv" (vchristopher) wrote :

@Andy Whitcroft I booted your kernel from post #118 with no problems! Works for me!

I did normal quite splash with no additional options. Great.

Revision history for this message
Cor Driehuis (cor3huis) wrote :

Just wanted to start testing the ppa:xorg-edgers/nouveau but decided to read the status of bug first. Now a new question arose.

Q: Does this mean the daily build of the CD image of 20100414 will contain the patch and we should be be able to normally boot from this CD now?

Revision history for this message
Cor Driehuis (cor3huis) wrote :

YES! I've tested the new kernel Linux 2.6.32-21-generic #31~raofnvaccel201004131332 SMP Tue Apr 13 13:06:14 UTC 2010 x86_64 GNU/Linux. from http://people.canonical.com/~apw/raof-nv-accel-lucid/

Note that I removed the blacklist.conf entry for nouveau and also removed the restricted Nvidia video drivers beforehand

GREAT, indeed I could boot normally, see below for a part of the log. THANKS to eveyone to help to let Apple macbookpro owners the option to "Switch Again" ;) to Linux. Now I can continue to perform more beta testing on Lucid Lynx 10.04.

I used the normal boot line, NO additional parameters added, happy happy!

...
[ 16.490396] nouveau 0000:02:00.0: power state changed by ACPI to D0
[ 16.490412] nouveau 0000:02:00.0: PCI INT A -> Link[Z003] -> GSI 23 (level, low) -> IRQ 23
[ 16.490423] nouveau 0000:02:00.0: setting latency timer to 64
[ 16.492570] [drm] nouveau 0000:02:00.0: Detected an NV50 generation card (0x096380c1)
[ 16.493554] [drm] nouveau 0000:02:00.0: Detected MacBook Pro 9600GT chip. Disabling acceleration
[ 16.493561] [drm] nouveau 0000:02:00.0: Attempting to load BIOS image from PRAMIN
[ 16.570987] [drm] nouveau 0000:02:00.0: ... appears to be valid
[ 16.570989] [drm] nouveau 0000:02:00.0: BIT BIOS found
[ 16.570991] [drm] nouveau 0000:02:00.0: Bios version 62.94.78.00
[ 16.570993] [drm] nouveau 0000:02:00.0: TMDS table revision 2.0 not currently supported
[ 16.570995] [drm] nouveau 0000:02:00.0: Found Display Configuration Block version 4.0
[ 16.570998] [drm] nouveau 0000:02:00.0: DCB connector table: VHER 0x40 5 16 4
...

Revision history for this message
Cor Driehuis (cor3huis) wrote :

BTW Can not install NVidia restricted drivers anymore via Administration -> Hardware drivers
Not in 2.6.32-21-generic and also not in 2.6.32-20-generic anymore. Also STA wifi drivers install does not work anymore...

Revision history for this message
Cor Driehuis (cor3huis) wrote :

Reinstalling the headers via the DEB here from http://people.canonical.com/~apw/raof-nv-accel-lucid/ solved my issue. Could now re-install NVidia restricted video drivers and also the STA restricted for Wifi.

For short, if this nouveau fix goes into the Lucid Lynx RC1 installing straight from CD will be possible again on a Macbookpro.

Ofcourse there will be lots of other issues no doubt, but we can then help solving these in the future and help improving the relevant MacBookPro Lucid Wiki pages.

THX to all of you giving input in this bug and anyone giving their energy to Linux opensource development!

Andy Whitcroft (apw)
Changed in linux (Ubuntu Lucid):
status: New → Fix Released
importance: Undecided → High
Changed in linux (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Brad Crittenden (bac) wrote :

Attempting to install 10.10 Desktop Beta 1 to a MBP5,1 led to the symptoms shown in this bug for lucid: attempting to install or boot to the live CD yielded a black screen with blinking cursor.

Using the work-around (nouveau.noaccel=1 blacklist=vga16fb) allowed the live CD to boot. I then switched to the nVidia driver and the system boots fine.

Revision history for this message
Andy Whitcroft (apw) wrote :

@Brad -- would you be able to boot test the kernels below (without the nvidia binary driver) if this works we can try and get these patches into the final release CDs. Kernels are at the URL below:

    http://people.canonical.com/~apw/lp546393-maverick/

Please report back here. Thanks.

Revision history for this message
Andy Whitcroft (apw) wrote :

@Brad -- any chance of some testing of those kernels. We have a very small window to get this fix into the final kernel else it will miss the release.

Revision history for this message
Brad Crittenden (bac) wrote :

@Andy, I installed:

linux-headers-2.6.35-22-generic_2.6.35-22.32lp546393v201009161446_i386.deb
linux-image-2.6.35-22-generic_2.6.35-22.32lp546393v201009161446_i386.deb

And then disabled the nVidia driver and rebooted. It booted with the nouveau driver just fine.

Thanks!

Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: none → ubuntu-10.10
assignee: nobody → Andy Whitcroft (apw)
status: Confirmed → In Progress
Revision history for this message
Christopher "cv" (vchristopher) wrote :

Thank you Andy and Brad, you are heroes!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 2.6.35-22.33

---------------
linux (2.6.35-22.33) maverick; urgency=low

  [ Andy Whitcroft ]

  * Revert "SAUCE: Add support for Intellimouse Mode in ALPS touchpad on
    Dell E2 series Laptops"
    - LP: #641320

  [ Brian Rogers ]

  * SAUCE: ir-core: Fix null dereferences in the protocols sysfs interface
    - LP: #624701

  [ Christopher James Halse Rogers ]

  * SAUCE: Nouveau: Add quirk framework to disable acceleration
    - LP: #544088, #546393
  * SAUCE: Nouveau: Disable acceleration on MacBook Pros
    - LP: #546393

  [ John Johansen ]

  * Revert "SAUCE: AppArmor: allow newer tools to load policy on older
    kernels"
  * SAUCE: AppArmor: allow newer tools to load policy on older kernels
    - LP: #639758

  [ Mathieu J. Poirier ]

  * SAUCE: Adding vdd_sdi regulator supply to OMAP3EVM

  [ Upstream Kernel Changes ]

  * ALSA: HDA: Enable internal speaker on Dell M101z
    - LP: #640254
 -- Leann Ogasawara <email address hidden> Fri, 17 Sep 2010 13:21:28 -0700

Changed in linux (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
In , Dev-gw08 (dev-gw08) wrote :

Is this still an issue with recent nouveau code? Does Ubuntu still needs the noaccel hack to get the MacBooks running?

Revision history for this message
In , Alex Murray (alexmurray) wrote :

The latest development version of Ubuntu (and hence I assume nouveau) still has this bug - under Ubuntu Natty Alpha 3 I still need nouveau.noaccel=1 to boot without hanging with a PRAMIN flush timeout on my MacBook Pro 5,1.

Any other info which is required to try and sort out this bug - would be great to be able to get acceleration on my machine....

Revision history for this message
In , Alex Murray (alexmurray) wrote :

I can also confirm the latest Fedora Alpha 15 LiveCD does not boot either without nouveau.noaccel=1 - boot locks up with PRAMIN flush timeout as well. Any chance this bug can get some attention?

Revision history for this message
In , Alex Murray (alexmurray) wrote :

Nouveau still hard-locks with PRAMIN flush timeout on the MacBook Pro 5,1 with NVIDIA 9600M GT in both Ubuntu Natty final and Fedora 15 Final - the only way to work-around it is to add nouveau.noaccel=1 to the kernel command line. This is a pretty long standing bug - any chance of some attention? I'd be happy to try and help debug it, I just don't know where to start....

Revision history for this message
Christopher "cv" (vchristopher) wrote :

Sadly the bug still exists again, after it was fixed in Lucid, it came back in Natty.

Source: https://bugs.freedesktop.org/show_bug.cgi?id=27501

Changed in nouveau:
status: Fix Released → Confirmed
Changed in linux (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Alex Murray (alexmurray) wrote :

Yep I can confirm that the only way to succesfully boot Natty with Nouveau on my MBP5,1 is to add nouveau.noaccel=1 to the kernel command line.

Revision history for this message
In , Emil-l-velikov (emil-l-velikov) wrote :

Hi Alex

It may be worth grabbing a mmiotrace [1][2] of the blob

Thanks

[1] http://nouveau.freedesktop.org/wiki/MmioTrace
[2] https://wiki.ubuntu.com/X/MMIOTracing

Revision history for this message
In , Alex Murray (alexmurray) wrote :

Created attachment 48817
mmiotrace of module load of binary nvidia driver on MacBookPro 5,1 (9600M GT)

Simply modprobing nouveau is enough to hang my machine, so attached is an mmiotrace of the nvidia driver which does not hang it - hopefully this helps.

Revision history for this message
In , Skeggsb (skeggsb) wrote :

Can you get a mmiotrace that includes starting X? The binary driver doesn't really do anything at modprobe time, unlike nouveau.

Revision history for this message
In , Alex Murray (alexmurray) wrote :

Yep, will get it for you later tonight - also I've attached a couple[1][2] captures of the dmesg output to the corresponding fedora version of this bug[3] if its any help.

[1] https://bugzilla.redhat.com/attachment.cgi?id=511713
[2] https://bugzilla.redhat.com/attachment.cgi?id=511715
[3] https://bugzilla.redhat.com/show_bug.cgi?id=679583

Revision history for this message
In , Alex Murray (alexmurray) wrote :

I've put a gzipped mmiotrace of nvidia module load then xinit in my dropbox [1] - let me know if I can do anything else. Thanks again for looking at this Ben, I really appreciate it.

[1] http://www.dropbox.com/s/f09sque4l92maqm/mmiotrace.log.gz

Revision history for this message
In , Viktor-basso-s (viktor-basso-s) wrote :

Hello

I cant add much, but i am having the same problem with MacBook Pro 5,3.
Running 2.6.38-11-generic, and the 3.1 RC3 kernel compiled from git

Have gone back and fourth adding x-updates and xorg-edgers PPAs without any luck

Revision history for this message
In , Rolf Offermanns (rolf-offermanns) wrote :

Same here: MacBook Pro (5,2) Ubuntu 11.10 alpha 3 and Fedora 16 alpha.

nouveau.noaccel=1 boots on Ubuntu for me, not tried that on Fedora yet. But nomodeset works for both, although I am not able to resume from suspend then (might be bug #38350).

Revision history for this message
In , Tomodachi (tomodachi) wrote :

I'm using my macbook pro 5.1 with Ubuntu OneIric
(it has two cards 9600GT and a 9400 card)

With nouveau.

I'm booting of the 9400 card though in efi. Disabling the 9600GT card.
If you just want to a working graphical environment maybe that would be a work around until this has been fixed

Revision history for this message
In , Rmueller83 (rmueller83) wrote :

I have the same issue booting Arch Linux via EFI on a Macbook Pro 5,2 with Kernel version 3.2.4.

Mateusz, how did you disable the 9600GT?

summary: - MacBook Pro 5,1 / 5,2 / 5,3 / 5,5 fails to boot into 10.04 desktop
+ MacBook Pro 5,1 / 5,2 / 5,3 / 5,5 fails to boot into 12.04 desktop
Revision history for this message
In , joanandk (macgyver031-web) wrote :

> Mateusz, how did you disable the 9600GT?
I am not Mateusz, but I have succeeded in getting nouveau working without any parameters working by deactivating 9600M GT with gpupwr and loading nouveau afterwards.

Otherwise my system crashes and the last message which is send to my central syslog-server is:

2012-02-16 10:23:00 kernel [drm] nouveau 0000:02:00.0: PRAMIN flush timeout
2012-02-16 10:23:00 kernel [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x04000000 - Ch 1
2012-02-16 10:23:00 kernel [drm] nouveau 0000:02:00.0: PRAMIN flush timeout
2012-02-16 10:23:00 kernel [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x04000000 - Ch 1
2012-02-16 10:23:00 kernel [drm] Cannot find any crtc or sizes - going 1024x768
2012-02-16 10:23:00 kernel No connectors reported connected with modes
2012-02-16 10:23:00 kernel [drm] No driver support for vblank timestamp query.
2012-02-16 10:23:00 kernel [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
2012-02-16 10:23:00 kernel [drm] nouveau 0000:02:00.0: PRAMIN flush timeout
2012-02-16 10:23:00 kernel [drm] nouveau 0000:02:00.0: 512 MiB GART (aperture)
2012-02-16 10:23:00 kernel [drm] nouveau 0000:02:00.0: Detected 256MiB VRAM
2012-02-16 10:23:00 kernel [TTM] Initializing pool allocator.

Revision history for this message
In , joanandk (macgyver031-web) wrote :

I now have found out that using Kernel-3.2.6, and starting with elilo (grub2 with efi has similar result) having both Adapters working, on has to use the parameters noaccel=1 and nofbaccel=1 so that the driver is loaded. It will find both adapters, the screen will be scrambled in console (I have not started X, because I need the acceleration, or the driver will be of no use).

So to sum up:
Either you want 9400M with acceleration then:
use gpupwr to disable the 9600M GT and load nouveau without any parameters. The console will be visible then and one can use X.

Or (I have no idea why someone would need this, but for the sake of documentation):
load nouveau with noaccel=1 and nofbaccel=1.

So for the moment it looks like acceleration-code for 9600M GT seems to be broken, as well as vga_switcheroo.

Revision history for this message
In , Rmueller83 (rmueller83) wrote :

Thanks! Blacklisting the nouveau module during bootup and afterwards running gpupwr and modprobing the module works for me.

In the Ubuntu docs there are some "outb" commands for grub which should switch the GPU: https://help.ubuntu.com/community/UEFIBooting
But my grub rejects these outb commands as unknown.

Changed in linux (Ubuntu):
status: Confirmed → In Progress
status: In Progress → Fix Committed
status: Fix Committed → Confirmed
Revision history for this message
In , Shea-1 (shea-1) wrote :

FWIW, I'm seeing this bug as well. Using Linux 3.3, both when EFI booting (through the EFI boot stub) and when BIOS booting. I have a MBP 5,5. I'm currently using fbdev for X, I'll try some of the workarounds here to see if a non-accelerated nouveau works at least.

Revision history for this message
In , Shea-1 (shea-1) wrote :

(In reply to comment #20)
> FWIW, I'm seeing this bug as well. Using Linux 3.3, both when EFI booting
> (through the EFI boot stub) and when BIOS booting. I have a MBP 5,5. I'm
> currently using fbdev for X, I'll try some of the workarounds here to see if a
> non-accelerated nouveau works at least.

Sorry, I have a 5,3 not a 5,5

Revision history for this message
Tomodachi (tomodachi) wrote : Re: MacBook Pro 5,1 / 5,2 / 5,3 / 5,5 fails to boot into 12.04 desktop

Im surprised to see MBP5.1 users having problems with booting into Ubuntu.
ive run ubuntu successfully for the last three releases when using the proprietary nvidia driver

What usually messed things up for me was what card was selected in OSX as the active card.
toggling this might be what gets you booted (my macbook has the 9600 and the 9400 nvidia card) into the installation.

Also , i run my macbook in efi mode nowdays, all works fine except that one needs to add a more up to date backlight module

adding this to grub console will disable your 9600 card before booting into your os and hence save battery.

outb 0x728 2
outb 0x710 2
outb 0x740 2
outb 0x750 0

Revision history for this message
Alex Murray (alexmurray) wrote :

@Tomodachi - if you note, the bug refers to the nouveau driver, not the binary one - with the nouveau driver it fails to successfully boot UNLESS acceleration is disabled - ie. it only boot successfully if you add:

nouveau.noaccel=1

to the kernel command line

The second issue is then that Xorg may pick to use the wrong card (ie the one which the display is not connected to - but this can be controlled by either disabling say the 9600 card as you do, or by specifying which card to use via its PCI device id in the device section of xorg.conf with something like:

BusID "PCI:3:0:0" # this selects the 9400M

Revision history for this message
Rainer Rohde (rainer-rohde) wrote :

How exactly can I find out if my MBP 5,2 has two video cards? I was not aware of this...

Revision history for this message
Alex Murray (alexmurray) wrote :

If it definitely is a MacBook Pro (emphasis on the Pro) then it does (a lower powered 9400M and a higher powered 9600M GT - you should be able to see both under OSX which boot via native EFI) - however by default Ubuntu will boot via BIOS emulation in which case the 9400M is automatically disabled by the Apple EFI firmware or some such - BUT if you boot Ubuntu via EFI then it should see both cards.

Revision history for this message
Troy Dack (troy-d) wrote :

I´ve just managed to get the 12.04 LiveCD to boot into a GUI on my MacBook Pro 5,2

/sys/class/dmi/id/bios_vendor:Apple Inc.
/sys/class/dmi/id/bios_version: MBP52.88Z.008E.B05.0905042202
/sys/class/dmi/id/bios_date:05/04/09
/sys/class/dmi/id/sys_vendor:Apple Inc.
/sys/class/dmi/id/product_name:MacBookPro5,2
/sys/class/dmi/id/product_version:1.0
/sys/class/dmi/id/board_vendor:Apple Inc.
/sys/class/dmi/id/board_name:Mac-F2268EC8
/sys/class/dmi/id/board_asset_tag:Base Board Asset Tag#
/sys/class/dmi/id/chassis_vendor:Apple Inc.
/sys/class/dmi/id/chassis_type:8
/sys/class/dmi/id/chassis_version:Mac-F2268EC8

I had to add the following to the grub menu entry prior to booting:

 outb 0x728 1
 outb 0x710 2
 outb 0x740 2
 outb 0x750 0
 set gfxpayload=keep
 linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash nouveau.noaccel=1 --

I also made sure that the Power Saving settings in OS X were set to ¨Performance¨.

The screen initially goes black before eventually flickering and then showing the gui desktop. Adding blacklist=vga16fb or nomodeset, either together or individually on the kernel line resulted in X not starting and being dropped to a console.

FWIW this is being posted from the LiveCD (USB) during installation after installing the Broadcom restricted drivers and connecting to a WiFi network (802.11n WPA2 encrypted).

I´ll let you know how things go after the reboot...

Revision history for this message
Troy Dack (troy-d) wrote :

System rebooted OK, had to add same options to grub to get GUI to display. Once up and running installed the restricted NVidia drivers and rebooted.

Booted to GUI with no additional options added to grub, NVidia splash screen displayed briefly then default desktop.

Now to get rEFIt back as the boot loader so I can boot into OS X again .... :(

Revision history for this message
In , U-jotn-x (u-jotn-x) wrote :

Is there some kind of tracing or debugging people experiencing this problem can do to help? It seems that the "full" mmiotrace of the blob loading mentioned above has succumbed to bitrot.

Revision history for this message
In , Marcin Slusarz (marcin-slusarz) wrote :

Does it work with nouveau.force_post=1 in kernel command line, by any chance?

Revision history for this message
In , U-jotn-x (u-jotn-x) wrote :

force_post=1 caused the screen to blank out (which isn't normally what happens), but the system still appeared to hang in basically the same way as without that option.

Revision history for this message
In , Jamie Macdonald (jamie-alban) wrote :

On my Macbook Pro 5,2 (early 2009) with 9400M and 9600M GT, I also have this bug. nouveau freezes the computer after kernel module load with no extra parameters.

Using nouveau.noaaccel=1, It boots with scrambled console to graphical openbox session with artifacts at the top of the screen, but openbox is not functional (I can only waive my cursor around).

Here: http://pastebin.com/4yhXK0Rt is output of dmesg after booting to commandline with nouveau.noaccel=1

Here: http://ge.tt/8Cn0b0m/v/0 is an mmiotrace & dmesg & lspci from starting openbox session with the nvidia blob.

Revision history for this message
In , Ilia Mirkin (imirkin) wrote :

*** Bug 58556 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ilia Mirkin (imirkin) wrote :

You guys are probably all aware of this, but it seems like one solution is to have the bootloader kill the NV96 card on boot, if you're using grub2:

https://help.ubuntu.com/community/UEFIBooting#Selecting_the_graphic_card
http://askubuntu.com/questions/149921/how-to-add-a-command-permanently-to-grub2

One could also make an early quirk that does this as well based on a DMI match. I wrote up a quick patch to do that, but it's completely untested (see below). I doubt it'd be upstream-appropriate though, as it would kill the possibility of using the second card entirely.

diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 230c8ea..8cb7665 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -1357,6 +1357,12 @@ static int __init dmi_ignore_irq0_timer_override(const struct dmi_system_id *d)
        return 0;
 }

+static int __init disable_macbook_second_video(const struct dmi_system_id *d)
+{
+ outb(0, 0x750);
+ return 0;
+}
+
 /*
  * If your system is blacklisted here, but you find that acpi=force
  * works for you, please contact <email address hidden>
@@ -1432,6 +1438,15 @@ static struct dmi_system_id __initdata acpi_dmi_table[] = {
                     DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 360"),
                     },
         },
+ {
+ .callback = disable_macbook_second_video,
+ .ident = "Apple MacBook5",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "MacBook5"),
+ },
+ },
+
        {}
 };

Revision history for this message
penalvch (penalvch) wrote :

Christopher "cv", this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available (not the daily folder) following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.13-rc4

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

tags: added: needs-upstream-testing
removed: 10.04 b43 beta beta1 broken cd error install lynx mac macbookpro mbp nouveau phy pipe terminated unable unreadahead unsupported usb wireless
Changed in linux (Ubuntu):
assignee: Andy Whitcroft (apw) → nobody
milestone: ubuntu-10.10 → none
status: Confirmed → Incomplete
summary: - MacBook Pro 5,1 / 5,2 / 5,3 / 5,5 fails to boot into 12.04 desktop
+ 10de:0647 [MacBookPro5,2] Fails to boot into 12.04 desktop
Revision history for this message
Christopher "cv" (vchristopher) wrote : AlsaInfo.txt

apport information

tags: added: trusty
description: updated
Revision history for this message
Christopher "cv" (vchristopher) wrote : BootDmesg.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : CRDA.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : Lspci.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : Lsusb.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ProcEnviron.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ProcModules.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : PulseList.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : UdevDb.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : UdevLog.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : WifiSyslog.txt

apport information

description: updated
Revision history for this message
Christopher "cv" (vchristopher) wrote : AlsaInfo.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : BootDmesg.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : CRDA.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : Dependencies.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : Lspci.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : Lsusb.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ProcEnviron.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : ProcModules.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : PulseList.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : UdevDb.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : UdevLog.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote : WifiSyslog.txt

apport information

Revision history for this message
Christopher "cv" (vchristopher) wrote :

The bug is still present and nothing has changed. I can not install any current ubuntu but I tried the daily live cd as you suggested. The current kernel i tried in the live cd is

ubuntu@ubuntu:~$ uname -a
Linux ubuntu 3.12.0-7-generic #15-Ubuntu SMP Sun Dec 8 23:39:27 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

I repeat: the bug is exactly the same as it was 3 years ago.

If I type in "acpi=off" AND "nomodeset" in the command promnt on boot up of the live CD it will boot up, otherwise it will fail. Excatly the same behaviour as 3 years ago.

tags: added: does-not-need-any-more-upstream-testing kernel-bug-exists-upstream kernel-bug-exists-upstream-v3.12.0-7 mac macbookpro mbp nouveau
removed: needs-upstream-testing
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
penalvch (penalvch)
tags: added: needs-upstrema-testing
removed: does-not-need-any-more-upstream-testing kernel-bug-exists-upstream-v3.12.0-7 mac macbookpro mbp nouveau
description: updated
description: updated
Revision history for this message
penalvch (penalvch) wrote :

Christopher "vc", thank you for testing Trusty. Could you please answer the following questions:
1) Given that you may boot into the Trusty live environment via a WORKAROUND, are you able to install it?
2) If you cannot install it, could you please provide the information necessary to debug the problem via https://wiki.ubuntu.com/DebuggingUbiquity ?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
penalvch (penalvch)
tags: added: latest-bios-b05
Revision history for this message
Christopher "cv" (vchristopher) wrote :

I can install it. I have Ubuntu running right now on the Mac Book Pro. It's the Noveau driver. After the first boot, I can install the official NVIDIA driver and no more problems.

Revision history for this message
penalvch (penalvch) wrote :

Christopher "cv", thank you for your response. Could you please attach Trusty logs for the failure boot without WORKAROUNDs via https://wiki.ubuntu.com/DebuggingUbiquity ?

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

I've made some progress on this bug, enabling Nouveau to be loaded with acceleration enabled. However, X is **absolutely not** usable: complete garbage screen, lots of Nouveau errors, only action available is power down the computer (or reboot). But for using Nouveau with acceleration in console mode, it works fine.

There are (at least) two main problems:

* 9400M acceleration is broken (resulting in Nouveau locking up on boot);
* it seems there is a lockup when starting a working X with both cards enabled.

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

Created attachment 106246
Temporary patch for 9400M GT acceleration

Could you please test this patch along with Ilia's one? It should fix acceleration on the 9400M GT, allowing you to boot without nouveau.noaccel=1 and to launch X.

I'll need to refine the patch a bit as it introduces some errors on the 9600M.
Another patch may be mandatory to get both cards to get along: for now, the laptop seems to be hitting an infinite loop when launching X with both cards enabled.

Revision history for this message
In , Rolf Offermanns (rolf-offermanns) wrote :

Pierre, the patch works for me (MacBookPro5,2). I had to modify Ilia's patch to have "MacBookPro5" in the DMI_MATCH instead of "MacBook5" and now I can boot into a KDE5 session with the nouveau driver. I checked the xorg log file and verified that it is indeed using hardware accelaration.

I used a fresh git clone of Linus tree for the test.

Let me know if you need further information.

Thanks,
Rolf

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

Awesome! Thanks for testing Rolf! I tested it on my laptop, but as it sometimes behaves in a strange way, I preferred to get confirmation by at least someone else. :)

I'll see later today if I can get both cards to get along without locking up the GPU. Otherwise I'll try to get the patch into 3.17 (not sure if it's still possible).

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

*** Bug 26546 has been marked as a duplicate of this bug. ***

Revision history for this message
In , joanandk (macgyver031-web) wrote :

I confirm that the patch works, screen is NOT scrambled.
Unsing my ancient gpupwr-programm to deactivate 9600M, I am able to start xorg-x11 + fluxbox with accleration.

Pierre, thank you very much.

I have seen that vga-switcheroo does not get started, probably due to the 9600M fallen off the bus.

I cannot await your fix for 9600M with acceleration.

BR.

(In reply to comment #29)
> Created attachment 106246 [details] [review]
> Temporary patch for 9400M GT acceleration
>
> Could you please test this patch along with Ilia's one? It should fix
> acceleration on the 9400M GT, allowing you to boot without nouveau.noaccel=1
> and to launch X.
>
> I'll need to refine the patch a bit as it introduces some errors on the
> 9600M.
> Another patch may be mandatory to get both cards to get along: for now, the
> laptop seems to be hitting an infinite loop when launching X with both cards
> enabled.

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

Created attachment 106803
Option for disabling acceleration for given chipset

Rather than completely disabling the discrete card, disabling the acceleration on that card also works. Use nouveau.chipsetnoaccel=0x96 in this case to disable acceleration on the 9600M GT.

Revision history for this message
In , Ilia Mirkin (imirkin) wrote :

(In reply to comment #34)
> Created attachment 106803 [details] [review]
> Option for disabling acceleration for given chipset
>
> Rather than completely disabling the discrete card, disabling the
> acceleration on that card also works. Use nouveau.chipsetnoaccel=0x96 in
> this case to disable acceleration on the 9600M GT.

How about changing noaccel instead to optionally be able to take a list of pci addresses? (Or even just one to start...) I think that would have a much higher chance of being accepted upstream.

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

Created attachment 106804
Fix acceleration on 9400M

This is the minimalistic version of the previous patch.

I'll send the patches to the list, and hopefully they can still be merged into 3.17.

Revision history for this message
In , joanandk (macgyver031-web) wrote :

Hi Pierre,
Both patches seems to work (tested 1x on 3.17.rc6).

Xorg-x11 starts with fluxbox, messages show that 9600 is unacclerated and 9400 is acclerated. There is are two errors in your patch "option for disabling accleration for given chipset":
* The entries DRM_DEBUG_DRIVER are not available on 3.17.rc6, but it works either way.
* In the kernel < 3.17 it should be "if (nouveau_noaccel || !nouveau_fifo(device) /*XXX*/)" not only "if (nouveau_noaccel)"

Terminating xorg-x11 crashed, probably because I switched off discrete graphichs adapter after starting xorg. Someone else should check.

Further testing is in queue.

The previous patch you have sent: It solved a problem I had in the past: System kernel panics if the lid is closed during startup!

Thanks.

Do you think that acceleration for 9600M will be possible sometime?

BR.

(In reply to comment #36)
> This is the minimalistic version of the previous patch.

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

(In reply to comment #37)
> Hi Pierre,
> Both patches seems to work (tested 1x on 3.17.rc6).
>
> Xorg-x11 starts with fluxbox, messages show that 9600 is unacclerated and
> 9400 is acclerated. There is are two errors in your patch "option for
> disabling accleration for given chipset":
> * The entries DRM_DEBUG_DRIVER are not available on 3.17.rc6, but it works
> either way.
> * In the kernel < 3.17 it should be "if (nouveau_noaccel ||
> !nouveau_fifo(device) /*XXX*/)" not only "if (nouveau_noaccel)"
>
> Terminating xorg-x11 crashed, probably because I switched off discrete
> graphichs adapter after starting xorg. Someone else should check.
>
> Further testing is in queue.
>
> The previous patch you have sent: It solved a problem I had in the past:
> System kernel panics if the lid is closed during startup!
>
> Thanks.
>
> Do you think that acceleration for 9600M will be possible sometime?
>
> BR.
>
> (In reply to comment #36)
> > This is the minimalistic version of the previous patch.

Hi Joanand,

I based my patches on the linux-3.18 branch of Nouveau's repo, which is more up-to-date than 3.17-rc6: this explains the "if (nouveau_noaccel)" at least.

Great for the kernel panic! I noticed that using the patches, screen resumes correctly when resuming the computer, rather than staying completely black.

Well, I'll work 9600M Gt acceleration, but I can't say if I'll succeed, nor when. ;)

Best regards

Revision history for this message
In , Gurutonic (gurutonic) wrote :

Pierre,

I have tested your patch with the 9400M in my macbookpro 5,2. The card boots correctly with acceleration enabled, and loads GDM. GDM looks completely correct, but hangs on login with a cursor on a grey screen. It's possible that LXDE, KDE, or some other DE might work, but gnome-shell never loads. I will try slim/lxde when I get a chance.

At this point I can switch back to VT where I notice some nouveau errors in dmesg. Killing GDM (and x11 with it) produces a kernel panic.

Next I booted with the 9600GT with acceleration disabled. The display looks correct with efifb, but loading nouveau scrambles the VT.

Thank you for your efforts!

Revision history for this message
In , Gurutonic (gurutonic) wrote :

Created attachment 106977
dmesg 9400 w/ accel + gdm

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

Hi Thomas,

(In reply to comment #39)
> Pierre,
>
> I have tested your patch with the 9400M in my macbookpro 5,2. The card boots
> correctly with acceleration enabled, and loads GDM. GDM looks completely
> correct, but hangs on login with a cursor on a grey screen. It's possible
> that LXDE, KDE, or some other DE might work, but gnome-shell never loads. I
> will try slim/lxde when I get a chance.

Oh... I didn't test with Gnome or KDE, as I'm using Awesome (which works fine). Maybe if you deactivate composing it will be better (as a temporary solution)?
I'm working on improving the patch: at the moment, it turns some bits on (enabling some features?), but the blob also writes some things (feature configuration?) before turning each bit on. So maybe finding what those things are and implementing them will fix the errors.
>
> At this point I can switch back to VT where I notice some nouveau errors in
> dmesg. Killing GDM (and x11 with it) produces a kernel panic.
>
> Next I booted with the 9600GT with acceleration disabled. The display looks
> correct with efifb, but loading nouveau scrambles the VT.

I have seen it once or twice too, but not at each boot.
On a similar note, I sometime get PDISP errors about an unknown method when loading Nouveau, but as it rarely happen, I haven't tried to fix it yet. I'll have a look at both errors later on.
>
> Thank you for your efforts!

Thanks for testing! :)

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

Created attachment 107262
Fix acceleration on 9400M v2

Here is an updated version of the patch.

Thomas,
Do you still get screen corruption with it? (I can't reliably reproduce the screen corruption unfortunately.)
GDM seems to work fine on my laptop with only 9400M having acceleration enabled. I'll try with 9600M GT acceleration enabled too. :/

Revision history for this message
In , Gurutonic (gurutonic) wrote :

(In reply to Pierre Moreau from comment #42)
> Created attachment 107262 [details] [review]
> Fix acceleration on 9400M v2
>
> Here is an updated version of the patch.
>
> Thomas,
> Do you still get screen corruption with it? (I can't reliably reproduce the
> screen corruption unfortunately.)
> GDM seems to work fine on my laptop with only 9400M having acceleration
> enabled. I'll try with 9600M GT acceleration enabled too. :/

Hi Pierre,

I've applied your v2 patch and the results are similar. The 9400M works correctly. GDM loads fine, but it won't start a gnome-shell session. However, SLIM works correctly and is able to load both gnome-shell and Awesome. I'm writing this from gnome-shell now, and performance is good. I haven't had any screen corruption with the 9400M. I'll use this configuration for now and report any issues I encounter.

The 9600M GT (acceleration disabled) still has corruption in VT as before, but this time the screen blanks when X is loaded.

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

(In reply to thomas from comment #43)
> (In reply to Pierre Moreau from comment #42)
> > Created attachment 107262 [details] [review] [review]
> > Fix acceleration on 9400M v2
> >
> > Here is an updated version of the patch.
> >
> > Thomas,
> > Do you still get screen corruption with it? (I can't reliably reproduce the
> > screen corruption unfortunately.)
> > GDM seems to work fine on my laptop with only 9400M having acceleration
> > enabled. I'll try with 9600M GT acceleration enabled too. :/
>
> Hi Pierre,
>
> I've applied your v2 patch and the results are similar. The 9400M works
> correctly. GDM loads fine, but it won't start a gnome-shell session.
> However, SLIM works correctly and is able to load both gnome-shell and
> Awesome. I'm writing this from gnome-shell now, and performance is good. I
> haven't had any screen corruption with the 9400M. I'll use this
> configuration for now and report any issues I encounter.
>
> The 9600M GT (acceleration disabled) still has corruption in VT as before,
> but this time the screen blanks when X is loaded.

Hi Thomas,

Good to hear you can use gnome-shell! :)

By
> I haven't had any screen corruption with the 9400M.
do you mean with the 9600M GT completely disabled?

When using the 9600M GT without acceleration, do you have screen corruption in VT each time? If so, could you try to modify the patch a bit, like:
- removing the write to 0x100c1c;
- if removing the write doesn't work, changing the offset applied to priv->r100c08 maybe testing all 4-multiples should do it, from 0 to 28.

Revision history for this message
In , Gurutonic (gurutonic) wrote :

(In reply to Pierre Moreau from comment #44)
>
> Hi Thomas,
>
> Good to hear you can use gnome-shell! :)
>
> By
> > I haven't had any screen corruption with the 9400M.
> do you mean with the 9600M GT completely disabled?
>

I use the efi stub loader with refind bootloader. Refind doesn't have an option to use outb as in grub. I have set OSX preferences to "battery saving", so that the firmware sets up the 9400 initially, but the 9600 is still technically enabled. It shows up in lspci, etc. Whenever I test the 9600, I change the setting in OSX back to "performance". So yes, with both cards enabled, the 9400 works without corruption.

> When using the 9600M GT without acceleration, do you have screen corruption
> in VT each time? If so, could you try to modify the patch a bit, like:
> - removing the write to 0x100c1c;
> - if removing the write doesn't work, changing the offset applied to
> priv->r100c08 maybe testing all 4-multiples should do it, from 0 to 28.

I've only tested the 9600 about 10 times, but I've always had corruption. I will try your changes and see if it makes a difference.

Revision history for this message
In , Gurutonic (gurutonic) wrote :

(In reply to thomas from comment #45)
> (In reply to Pierre Moreau from comment #44)
> > When using the 9600M GT without acceleration, do you have screen corruption
> > in VT each time? If so, could you try to modify the patch a bit, like:
> > - removing the write to 0x100c1c;
> > - if removing the write doesn't work, changing the offset applied to
> > priv->r100c08 maybe testing all 4-multiples should do it, from 0 to 28.
>
> I've only tested the 9600 about 10 times, but I've always had corruption. I
> will try your changes and see if it makes a difference.

No change, unfortunately. I first removed the write, then tried each of the offsets.

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

(In reply to thomas from comment #46)
> (In reply to thomas from comment #45)
> > (In reply to Pierre Moreau from comment #44)
> > > When using the 9600M GT without acceleration, do you have screen corruption
> > > in VT each time? If so, could you try to modify the patch a bit, like:
> > > - removing the write to 0x100c1c;
> > > - if removing the write doesn't work, changing the offset applied to
> > > priv->r100c08 maybe testing all 4-multiples should do it, from 0 to 28.
> >
> > I've only tested the 9600 about 10 times, but I've always had corruption. I
> > will try your changes and see if it makes a difference.
>
> No change, unfortunately. I first removed the write, then tried each of the
> offsets.

After switching to "Higher Performances" in OS X, I understand what you were explaining to me about having both cards enabled but having corrupted screen only in one case. With that in mind, tweaking the patch can't fix the corruption as we are modifying things on the 9400M but it's the 9600M GT which is responsible for displaying; I suggest opening another bug report for that.

I'll continue working on this patch and find how to use 0x100c1c before switching to the 9600M GT.

Some side notes about what is wrong with the 9600M GT:
- screen corruption when using it to drive the display
- interrupt 0x04000000 + lockup when starting X with acceleration on for 9400M and 9600M GT, and the 9400M is driving the screen
- when powering it down using vgaswitcheroo:
  * if accel isn't enabled:
    E[ PDISP][0000:02:00.0][0xc000887d][ffff880137b94400] fini: 0x490e0008
    E[ PDISP][0000:02:00.0][0xc000887d][ffff880137b94400] failed suspend, -16
  * if accel is enabled:
    flush timeout + (interrupt 0x04000000 iirc) + lockup

Revision history for this message
In , Ratchanan Srirattanamet (peat-new) wrote :

Will Pierre Moreau's patch be merged? This patch fix acceleration on system with only 9400M too. Symptom is X can start but gets locked up when I run glxgears for a while. System is Ubuntu 14.10 with Linux 3.17 compiled from git. After apply this patch, the symptom disappear.

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

(In reply to Ratchanan Srirattanamet from comment #48)
> Will Pierre Moreau's patch be merged? This patch fix acceleration on system
> with only 9400M too. Symptom is X can start but gets locked up when I run
> glxgears for a while. System is Ubuntu 14.10 with Linux 3.17 compiled from
> git. After apply this patch, the symptom disappear.

Hi Ratchanan,

My patch wasn't merged into 3.17 as it was a bit too short before the release, plus it didn't had time to be properly tested on other machines to check if it didn't introduce some regressions; I'll use the extra time to reverse-engineer the registers I modify. However it should be able to go into 3.18 if reverse-engineering goes well.

Revision history for this message
In , joanandk (macgyver031-web) wrote :

Hi Pierre,
My Macbook Pro 5,1 died two weeks ago. The screen backlight flickered and after reboot there was no screen at all.
An attempt to find the dead chip was unsuccessful (fuse is ok) so I think after 6 years of MacBook is to move on.
It has been a fun and frustrating time with *unsupported* hardware.

I cannot be able to contribute to this project (as a tester).

Thank you so much for the support and good luck.

Revision history for this message
In , 6-j-p (6-j-p) wrote :

(In reply to Pierre Moreau from comment #49)

> My patch wasn't merged into 3.17 as it was a bit too short before the
> release, plus it didn't had time to be properly tested on other machines to
> check if it didn't introduce some regressions; I'll use the extra time to
> reverse-engineer the registers I modify. However it should be able to go
> into 3.18 if reverse-engineering goes well.

I would LOVE to see a fix for this merged into 3.18. Please let me know if I can help at all. I have a MacBook Pro 5,1 that exhibits this bug.

Revision history for this message
l3iggs (l3iggs) wrote :

This is a particularly nasty bug since basically all flavors of Linux on a large subset of Macbook Pros are unable to boot *out of the box* and require fiddling with kernel boot parameters in grub.cfg to allow the system to limp along until they can install the binary Nvidia drivers.

I have a MacBook Pro 5,1 which has two GPUs: GeForce 9600M GT and GeForce 9400M.

I was hoping this thing would be fixed by now and I attempted to boot the latest vivacious vixen (or whatever) nightly build ISO (with linux 3.18 rc5) to check if it was fixed. It's not.

Here is a kernel debug log I've collected when the nouveau module is loaded into linux v 3.18 rc5 on my system: http://hastebin.com/qusumotusi.m

Hopefully this will help one of you clever devils track down this bug and get a fix merged before the 3.18 merge window closes!

Revision history for this message
In , 6-j-p (6-j-p) wrote :

I have a MacBook Pro 5,1 which has two GPUs: GeForce 9600M GT and GeForce 9400M.

Here is what happens when I 'insmod nouveau' while running Linux 3.18 rc5 on my system: http://hastebin.com/qusumotusi.m

I hope that helps!

Revision history for this message
penalvch (penalvch) wrote :

l3iggs, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into the default Ubuntu kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
https://wiki.ubuntu.com/Kernel/Policies/DuplicateBugs
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

As well, please do not announce in this report you created a new bug report.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

Hi,

@Joanand
Sorry for not fixing the issue before your MBP died... I hope your next laptop will have better support.

@l3iggs
The RE revealed nothing interesting. I'll try again when I can manage to spare some time. I asked the Nvidia guys about it, it should help getting a better patch.
I guess you set 'Better Performances' in Mac OS before getting that dmesg. In that case the 9600M GT is driving the screen, and with acceleration enabled causes this issue (you can try without acceleration, but you'll get another issue ;) ). You should fill a bug report for that issue.

Revision history for this message
In , 6-j-p (6-j-p) wrote :

(In reply to Pierre Moreau from comment #53)
> @l3iggs
> The RE revealed nothing interesting. I'll try again when I can manage to
> spare some time. I asked the Nvidia guys about it, it should help getting a
> better patch.
Great, thank you for your effort here! I'm more than happy to test anything you come up with and provide any feed back I can.
> I guess you set 'Better Performances' in Mac OS before getting that dmesg.
> In that case the 9600M GT is driving the screen, and with acceleration
> enabled causes this issue (you can try without acceleration, but you'll get
> another issue ;) ). You should fill a bug report for that issue.
I actually haven't installed OSX on this machine in years. I assume it's in high performance mode. I've actually been trying to switch over to the low power GPU in my testing here with no success. So I'm not having too much success with many of the workarounds & patches posted in this thread. Am I correct in understanding that you think I should start another bug report with this trace? Does that mean this bug report is only concerned with issues when running from the 9400M then?

I'll keep trying to produce some more info relevant to this bug by working on getting switched over to my 9400M.

Does anyone know if it's possible to switch from "9600M GT mode" to "9400M mode" without using OSX? I've tried several of the mysterious outb grub directives. "outb 0x750 0" turns my screen off (I assume that's shutting off the 9600M GT) but I can't seem to enable/switch to the 9400M to get the screen back on.

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

(In reply to l3iggs from comment #54)
> (In reply to Pierre Moreau from comment #53)
> > @l3iggs
> > The RE revealed nothing interesting. I'll try again when I can manage to
> > spare some time. I asked the Nvidia guys about it, it should help getting a
> > better patch.
> Great, thank you for your effort here! I'm more than happy to test anything
> you come up with and provide any feed back I can.
> > I guess you set 'Better Performances' in Mac OS before getting that dmesg.
> > In that case the 9600M GT is driving the screen, and with acceleration
> > enabled causes this issue (you can try without acceleration, but you'll get
> > another issue ;) ). You should fill a bug report for that issue.
> I actually haven't installed OSX on this machine in years. I assume it's in
> high performance mode. I've actually been trying to switch over to the low
> power GPU in my testing here with no success. So I'm not having too much
> success with many of the workarounds & patches posted in this thread. Am I
> correct in understanding that you think I should start another bug report
> with this trace? Does that mean this bug report is only concerned with
> issues when running from the 9400M then?

I just opened a bug report for it: #86537. Everyone here has at least the 9400M, but nor necessarily the 9600M GT, and as both issues are different, it seems better to focus this one on the 9400M and open another one for the other card, rather than vice-versa.

>
> I'll keep trying to produce some more info relevant to this bug by working
> on getting switched over to my 9400M.
>
> Does anyone know if it's possible to switch from "9600M GT mode" to "9400M
> mode" without using OSX? I've tried several of the mysterious outb grub
> directives. "outb 0x750 0" turns my screen off (I assume that's shutting off
> the 9600M GT) but I can't seem to enable/switch to the 9400M to get the
> screen back on.

The gmux is probably configured differently. You can have a look at this utility https://gfx.io/ code, as it can switch from integrated to discrete, and back.

Revision history for this message
In , 6-j-p (6-j-p) wrote :

Created attachment 109963
9400M dmesg

What follows is my partially working workaround for my 9400M in my MacBook Pro 5,1. For my fully working workaround for my 9600M GT see https://bugs.freedesktop.org/show_bug.cgi?id=86537

The following was tested with a kernel 3.18-rc6 (without applying any of the patches here):

(1) Append 'modprobe.blacklist=nouveau' to the kernel boot parameters
This allows the system to boot.
(2) Once booted, as root, reset the 9400M GPU: 'echo 1 > /sys/bus/pci/devices/0000:03:00.0/reset'
(3) 'echo 1 > /sys/bus/pci/devices/0000:03:00.0/rescan'
(4) 'echo 1 > /sys/bus/pci/devices/0000:02:00.0/remove'
This completely removes the 9600M GT GPU from the system so nouveau does not use in when we load the module in the next step.
(5) 'modprobe nouveau'

where
0000:03:00.0 is the PCI address of my 9400M
and
0000:02:00.0 is the PCI address of my 9600M GT.

Nouveau seemingly loads fine for the 9400M, however I find myself unable to actually use my 9400M GPU for anything (while repeating the same above steps for my 9600M GT works fine). For example, starting gdm with the 9400M does nothing. I believe this is because the 9400M GPU is not "connected" to any display (since it was not selected in OSX). I've attached dmesg logs for loading nouveau for each of the GPUs in my laptop here. Notice that for the working 9600M GT, the log shows:
nouveau [ DRM] allocated 1440x900 fb: 0x70000, bo ffff88014750d400
1449x900 is the native resolution of my laptop's display.

while for the non-working 9400M, the log shows:
nouveau 0000:03:00.0: No connectors reported connected with modes
[drm] Cannot find any crtc or sizes - going 1024x768
nouveau [ DRM] allocated 1024x768 fb: 0x50000, bo ffff88014715a400

I think I'm pretty close to having a universal working solution for both GPUs here. Does anyone know how I can "connect" my 9400M GPU with my display?

I've tried fiddling a bit with xrandr after loading nouveau for the 9400M, but it seems to always report no displays found.

Revision history for this message
In , 6-j-p (6-j-p) wrote :

Created attachment 109964
9600M GT dmesg

Attaching dmesg for 'modprobe nouveau' for 9600M GT

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

Created attachment 110350
[Patch] Fix acceleration on 9400M v4

This should be the final verson of this patch, thanks to answers given by the Nvidia guys.

Please check that you can use the NVAC with acceleration. If you want to start X or power off the NV96 (if you have one), you will either need to deactivate acceleration for it (noaccel=0000:02:00.0) or use the trick describe by l3iggs **before** loading Nouveau.

Revision history for this message
In , 6-j-p (6-j-p) wrote :

(In reply to Pierre Moreau from comment #58)
> Created attachment 110350 [details] [review]
> [Patch] Fix acceleration on 9400M v4
>
> This should be the final verson of this patch, thanks to answers given by
> the Nvidia guys.
>
> Please check that you can use the NVAC with acceleration. If you want to
> start X or power off the NV96 (if you have one), you will either need to
> deactivate acceleration for it (noaccel=0000:02:00.0) or use the trick
> describe by l3iggs **before** loading Nouveau.

Thanks very much for your work on this Pierre (and thanks to your Nvidia contacts too). With your previous patch, my NVAC was able to start a fully accelerated gnome session via X, although it was very unstable and was quite unusable (however, weston seemed to work fine for me with that patch). With this latest patch, things seem quite stable. I'm writing this from a google-chrome browser in gnome-shell/X and generally things seem to be working so far.

~l3iggs

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

Created attachment 110376
[Patch v4.5] Enable non-isometric poller

Sorry, there is a new version of the patch to test.
The fix is still the same, but it integrates better with the rest of the code. It still works on my laptop but it is best to have some more reports.

Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

Patch was merged. I'll close the bug report once a version containing the patch is released.

Revision history for this message
kirby reyes (kirbyreyes121) wrote :

<email address hidden>

Changed in linux (Ubuntu):
assignee: nobody → kirby reyes (kirbyreyes121)
status: Incomplete → Confirmed
Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

Patch is now present in 3.19-rc4, closing this bug report as solved.

For those who have the NV96 along the NVAC, you need to use l3iggs technique and reset+rescan (echo 1 > /sys/bus/pci/devices/0000:02:00.0/{reset,rescan}) the NV96 **before** loading Nouveau to avoid a hang when starting X and another hang when trying to power off the NV96.

Mathew Hodson (mhodson)
Changed in nouveau:
importance: Undecided → Unknown
status: Confirmed → Unknown
Mathew Hodson (mhodson)
tags: added: needs-upstream-testing
removed: needs-upstrema-testing
Changed in linux (Ubuntu):
assignee: kirby reyes (kirbyreyes121) → nobody
Revision history for this message
Mathew Hodson (mhodson) wrote :

There was a patch merged upstream, and the upstream bug was marked fixed. This needs to be tested again.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Mathew Hodson (mhodson)
affects: linux (Fedora) → linux
Mathew Hodson (mhodson)
tags: removed: kernel-bug-exists-upstream
Revision history for this message
Mathew Hodson (mhodson) wrote :

Could you please test the latest upstream kernel available (not the daily folder) following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.13-rc4

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed.

Mathew Hodson (mhodson)
Changed in linux:
status: New → Incomplete
Revision history for this message
In , Pierre-morrow (pierre-morrow) wrote :

For those with a dual card setup (NVAC + NV96), you should follow bug 86537 if you want updates on fixing the NV96. Unfortunately there hasn't been much progress, apart from finding that changing some register's value makes it work (most likely by disabling some things, so it is not a valid fix).

Changed in nouveau:
importance: Unknown → Critical
status: Unknown → Fix Released
Mathew Hodson (mhodson)
no longer affects: linux (Ubuntu Lucid)
affects: linux → ubuntu
no longer affects: ubuntu
Revision history for this message
Mathew Hodson (mhodson) wrote :

Upstream bug indicates that this issue doesn't occur anymore.

affects: linux (Ubuntu) → xserver-xorg-video-nouveau (Ubuntu)
Changed in xserver-xorg-video-nouveau (Ubuntu):
status: Incomplete → Invalid
affects: xserver-xorg-video-nouveau (Ubuntu) → linux (Ubuntu)
To post a comment you must log in.