Skip to contentSkip to conversation

What does the code mean?

DISCUSSION 李金华 1 participant 1 message Nov 9, 2014

lore
Share & tools
lore

李金华

author
#0 lore raw

Hello,

These days I am reading nouveau source code,but I cannot understand this code!

Please look at http://codepad.org/61v3mXmq .

The function ‘nouveau_dsm_power_state’ said optimus is disabled in another function ‘nouveau_switcheroo_set_state’.

But in fact,the function ‘nouveau_switcheroo_set_state’ will return directly when optimus is detected!

Both of these functions won’t disable the nv card if optimus is detected?

I got it wrong or it’s a bug? Thanks for your help!

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau