1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Nouveau Companion 41

KoalaBR

Published on 11 December 2008
Written by KoalaBR
Page 2 of 4 - 4 Comments

Next came a mmiotrace of an NVidia blob suspend / resume cycle. The register writes were then compared to what Nouveau wrote. The result was: 32 registers were different, but why was still unknown. Further prodding from mjg59 revealed that there was a "...need to restore some of the ramdac and crtc registers in order to restore the correct screen associations...". Failing to do so let Nouveau detect a wrong output type (like a CRT instead of a laptop display).

Further hacking allowed mjg59 to get the backlight on, but still Nouveau wouldn't display anything else than a black screen. Of course, Nouveau claimed that it detected the display correctly and was using it (details here).

More debugging and discussion ensued with mjg59 finally getting it right. Nouveau did not set PTIMER_NUMERATOR and PTIMER_DENOMINATOR. Setting those gave mjg59 a picture, that is, the display came up. However, still no output, no working text or graphics mode (details here).

More testing showed a merge problem on mjg59's side which resulted in incorrect TMDS register writes. Correcting that allowed "nv" to get the card into a fully working state. (Yes, indeed "nv" not Nouveau. "nv" is sometimes a bit better getting a slightly messed up card into a working state).

Additionally, mjg59 later started working on generic thermal code into which driver like Nouveau would hook into (details here). A few days later and hwmon could read temperatures from NVidia cards through that code (details here), although it was a very rough first version.

Hanno had problems with his NV17 based computer, which prompted malc0 to offer him a patch which resulted in success. Marcheu was interested as to why the patch still was not in mainline, to which malc0 said that it contained some ugly hacks which needed refinement.

In came bkaindl and pestered malc0 about suspend to disk support for NV4x. Macl0 admitted having stopped working on it, as he had other things with higher priority on his to-do list. So bkaindl discussed possible solutions with malc0 while comparing the patch to the (then) current code for NV4x. When he spotted a difference he changed the code to work similar to the NV3x code path and was successful! However, testing the same changes with malc0's laptop did not work at all, which sent them both back to the drawing board.

Moondrake (our local PPC coder and tester) checked the patch with his Powerbook and it worked, too. Well, kind of, as he said:

"malc0: your suspend stuff is amazing. [...] except for having to do hacks for doing the post in the DDX, remembering to setup bigendian mode and some panel hacks to turn on the backlight, the patches worked out of the box"

With this, one goal of writing an nv_bios kernel module to handle suspending NVidia cards was reached.

Latest Linux Hardware Reviews
  1. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. 7-Way Linux Desktop Gaming Comparison On Ubuntu 14.10
  2. Intel P-State vs. CPUFreq Benchmarks On The i7-5960X
  3. RadeonSI GLAMOR Benchmarks With X.Org Server 1.16
  4. RadeonSI Gallium3D vs. Catalyst At 4K UHD On Linux
Latest Linux News
  1. FreeBSD 10.1 Has The New VT Driver, Hardware Improvements
  2. AntiMicro 2.6 Yields Greater Compatibility For Gamepads On Linux
  3. OpenGL 3.3 / GLSL 3.30 Lands For Intel Sandy Bridge On Mesa
  4. AMD's RadeonSI Gallium3D Driver Sees Some Improvements
  5. Mesa 10.3 Released With The Latest Open-Source GPU Driver Improvements
  6. GNOME 3.13.92 Officially Released
  7. Wine 1.7.27 Is Still Working Towards Direct2D Support
  8. Wasteland 2 Officially Launched Today, Including For Linux Gamers
  9. Tropico 5 Launches On Steam For Linux
  10. The Intel Core i7 5960X Continues Running Great On Linux
Latest Forum Discussions
  1. X.Org Women Outreach Program Only Turns Up Two Applicants So Far
  2. Glamor now enabled in Debian radeonsi
  3. SSD seems slow
  4. New stress testing utility for GPU's
  5. New Group Calls For Boycotting Systemd
  6. It's Now Possible To Play Netflix Natively On Linux Without Wine Plug-Ins
  7. Stop grabbing my keyboard :(
  8. ASRock AM1H-ITX: One Of The Best AM1 Mini-ITX Motherboards