drm/i915: Sync intel_pm.c with Linux 3.8.13

* Add a workaround for a hardware issue making the GPU get stuck at
  some particular frequency

* Add initialization code to enable Haswell power wells

* Little fixes and adjustements for various GPUs up to Haswell