Nvidia GT640M Gentoo 3.10.-7-gentoo-r1 Challenges

I have spent weeks trying to get this working. I am on kernel 3.10.7-gentoo-r1 with bbswitch and bumblebee installed. I am getting the following when trying to do an optirun

[ 4415.955994] bbswitch: enabling discrete graphics
[ 4416.364499] pci 0000:01:00.0: power state changed by ACPI to D0
[ 4416.398870] nvidia: module license ‘NVIDIA’ taints kernel.
[ 4416.398871] Disabling lock debugging due to kernel taint
[ 4416.406076] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
[ 4416.406286] [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 1
[ 4416.406293] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 331.20 Wed Oct 30 17:43:35 PDT 2013
[ 4416.415277] nvidia 0000:01:00.0: irq 46 for MSI/MSI-X
[ 4429.443311] NVRM: GPU at 0000:01:00.0 has fallen off the bus.
[ 4429.443317] NVRM: os_pci_init_handle: invalid context!
[ 4429.443318] NVRM: os_pci_init_handle: invalid context!
[ 4429.443322] NVRM: GPU at 0000:01:00.0 has fallen off the bus.
[ 4429.443323] NVRM: os_pci_init_handle: invalid context!
[ 4429.443324] NVRM: os_pci_init_handle: invalid context!
[ 4429.462716] NVRM: RmInitAdapter failed! (0x25:0x28:1157)
[ 4429.462722] NVRM: rm_init_adapter failed for device bearing minor number 0
[ 4429.462739] NVRM: nvidia_frontend_open: minor 0, module->open() failed, error -5
[ 4429.462966] NVRM: request_irq() failed (-22)
[ 4429.462968] NVRM: nvidia_frontend_open: minor 0, module->open() failed, error -22

I am on the latest driver release 331.20.

My blacklist contains the following.
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
blacklist nvidia

Any help would be greatly appreciated.

Thanks,
-Andy

nvidia-bug-report.log.gz (36.3 KB)

I just attached a bug report for this.

Just wanted to say I am having the same problem with Debian testing.