intel_pm.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. /*
  2. * Copyright © 2012 Intel Corporation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice (including the next
  12. * paragraph) shall be included in all copies or substantial portions of the
  13. * Software.
  14. *
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  18. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  20. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  21. * IN THE SOFTWARE.
  22. *
  23. * Authors:
  24. * Eugeni Dodonov <eugeni.dodonov@intel.com>
  25. *
  26. */
  27. #include "i915_drv.h"
  28. #include "intel_drv.h"
  29. /* FBC, or Frame Buffer Compression, is a technique employed to compress the framebuffer contents in-memory, aiming at reducing the required bandwidth during in-memory transfers and, therefore, reduce the power packet.
  30. *
  31. * The benefits of FBC are mostly visible with solid backgrounds and variation-less patterns.
  32. *
  33. * FBC-related functionality can be enabled by the means of the i915.i915_enable_fbc parameter
  34. */
  35. void i8xx_disable_fbc(struct drm_device *dev)
  36. {
  37. struct drm_i915_private *dev_priv = dev->dev_private;
  38. u32 fbc_ctl;
  39. /* Disable compression */
  40. fbc_ctl = I915_READ(FBC_CONTROL);
  41. if ((fbc_ctl & FBC_CTL_EN) == 0)
  42. return;
  43. fbc_ctl &= ~FBC_CTL_EN;
  44. I915_WRITE(FBC_CONTROL, fbc_ctl);
  45. /* Wait for compressing bit to clear */
  46. if (wait_for((I915_READ(FBC_STATUS) & FBC_STAT_COMPRESSING) == 0, 10)) {
  47. DRM_DEBUG_KMS("FBC idle timed out\n");
  48. return;
  49. }
  50. DRM_DEBUG_KMS("disabled FBC\n");
  51. }
  52. void i8xx_enable_fbc(struct drm_crtc *crtc, unsigned long interval)
  53. {
  54. struct drm_device *dev = crtc->dev;
  55. struct drm_i915_private *dev_priv = dev->dev_private;
  56. struct drm_framebuffer *fb = crtc->fb;
  57. struct intel_framebuffer *intel_fb = to_intel_framebuffer(fb);
  58. struct drm_i915_gem_object *obj = intel_fb->obj;
  59. struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
  60. int cfb_pitch;
  61. int plane, i;
  62. u32 fbc_ctl, fbc_ctl2;
  63. cfb_pitch = dev_priv->cfb_size / FBC_LL_SIZE;
  64. if (fb->pitches[0] < cfb_pitch)
  65. cfb_pitch = fb->pitches[0];
  66. /* FBC_CTL wants 64B units */
  67. cfb_pitch = (cfb_pitch / 64) - 1;
  68. plane = intel_crtc->plane == 0 ? FBC_CTL_PLANEA : FBC_CTL_PLANEB;
  69. /* Clear old tags */
  70. for (i = 0; i < (FBC_LL_SIZE / 32) + 1; i++)
  71. I915_WRITE(FBC_TAG + (i * 4), 0);
  72. /* Set it up... */
  73. fbc_ctl2 = FBC_CTL_FENCE_DBL | FBC_CTL_IDLE_IMM | FBC_CTL_CPU_FENCE;
  74. fbc_ctl2 |= plane;
  75. I915_WRITE(FBC_CONTROL2, fbc_ctl2);
  76. I915_WRITE(FBC_FENCE_OFF, crtc->y);
  77. /* enable it... */
  78. fbc_ctl = FBC_CTL_EN | FBC_CTL_PERIODIC;
  79. if (IS_I945GM(dev))
  80. fbc_ctl |= FBC_CTL_C3_IDLE; /* 945 needs special SR handling */
  81. fbc_ctl |= (cfb_pitch & 0xff) << FBC_CTL_STRIDE_SHIFT;
  82. fbc_ctl |= (interval & 0x2fff) << FBC_CTL_INTERVAL_SHIFT;
  83. fbc_ctl |= obj->fence_reg;
  84. I915_WRITE(FBC_CONTROL, fbc_ctl);
  85. DRM_DEBUG_KMS("enabled FBC, pitch %d, yoff %d, plane %d, ",
  86. cfb_pitch, crtc->y, intel_crtc->plane);
  87. }
  88. bool i8xx_fbc_enabled(struct drm_device *dev)
  89. {
  90. struct drm_i915_private *dev_priv = dev->dev_private;
  91. return I915_READ(FBC_CONTROL) & FBC_CTL_EN;
  92. }
  93. void g4x_enable_fbc(struct drm_crtc *crtc, unsigned long interval)
  94. {
  95. struct drm_device *dev = crtc->dev;
  96. struct drm_i915_private *dev_priv = dev->dev_private;
  97. struct drm_framebuffer *fb = crtc->fb;
  98. struct intel_framebuffer *intel_fb = to_intel_framebuffer(fb);
  99. struct drm_i915_gem_object *obj = intel_fb->obj;
  100. struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
  101. int plane = intel_crtc->plane == 0 ? DPFC_CTL_PLANEA : DPFC_CTL_PLANEB;
  102. unsigned long stall_watermark = 200;
  103. u32 dpfc_ctl;
  104. dpfc_ctl = plane | DPFC_SR_EN | DPFC_CTL_LIMIT_1X;
  105. dpfc_ctl |= DPFC_CTL_FENCE_EN | obj->fence_reg;
  106. I915_WRITE(DPFC_CHICKEN, DPFC_HT_MODIFY);
  107. I915_WRITE(DPFC_RECOMP_CTL, DPFC_RECOMP_STALL_EN |
  108. (stall_watermark << DPFC_RECOMP_STALL_WM_SHIFT) |
  109. (interval << DPFC_RECOMP_TIMER_COUNT_SHIFT));
  110. I915_WRITE(DPFC_FENCE_YOFF, crtc->y);
  111. /* enable it... */
  112. I915_WRITE(DPFC_CONTROL, I915_READ(DPFC_CONTROL) | DPFC_CTL_EN);
  113. DRM_DEBUG_KMS("enabled fbc on plane %d\n", intel_crtc->plane);
  114. }
  115. void g4x_disable_fbc(struct drm_device *dev)
  116. {
  117. struct drm_i915_private *dev_priv = dev->dev_private;
  118. u32 dpfc_ctl;
  119. /* Disable compression */
  120. dpfc_ctl = I915_READ(DPFC_CONTROL);
  121. if (dpfc_ctl & DPFC_CTL_EN) {
  122. dpfc_ctl &= ~DPFC_CTL_EN;
  123. I915_WRITE(DPFC_CONTROL, dpfc_ctl);
  124. DRM_DEBUG_KMS("disabled FBC\n");
  125. }
  126. }
  127. bool g4x_fbc_enabled(struct drm_device *dev)
  128. {
  129. struct drm_i915_private *dev_priv = dev->dev_private;
  130. return I915_READ(DPFC_CONTROL) & DPFC_CTL_EN;
  131. }
  132. static void sandybridge_blit_fbc_update(struct drm_device *dev)
  133. {
  134. struct drm_i915_private *dev_priv = dev->dev_private;
  135. u32 blt_ecoskpd;
  136. /* Make sure blitter notifies FBC of writes */
  137. gen6_gt_force_wake_get(dev_priv);
  138. blt_ecoskpd = I915_READ(GEN6_BLITTER_ECOSKPD);
  139. blt_ecoskpd |= GEN6_BLITTER_FBC_NOTIFY <<
  140. GEN6_BLITTER_LOCK_SHIFT;
  141. I915_WRITE(GEN6_BLITTER_ECOSKPD, blt_ecoskpd);
  142. blt_ecoskpd |= GEN6_BLITTER_FBC_NOTIFY;
  143. I915_WRITE(GEN6_BLITTER_ECOSKPD, blt_ecoskpd);
  144. blt_ecoskpd &= ~(GEN6_BLITTER_FBC_NOTIFY <<
  145. GEN6_BLITTER_LOCK_SHIFT);
  146. I915_WRITE(GEN6_BLITTER_ECOSKPD, blt_ecoskpd);
  147. POSTING_READ(GEN6_BLITTER_ECOSKPD);
  148. gen6_gt_force_wake_put(dev_priv);
  149. }
  150. void ironlake_enable_fbc(struct drm_crtc *crtc, unsigned long interval)
  151. {
  152. struct drm_device *dev = crtc->dev;
  153. struct drm_i915_private *dev_priv = dev->dev_private;
  154. struct drm_framebuffer *fb = crtc->fb;
  155. struct intel_framebuffer *intel_fb = to_intel_framebuffer(fb);
  156. struct drm_i915_gem_object *obj = intel_fb->obj;
  157. struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
  158. int plane = intel_crtc->plane == 0 ? DPFC_CTL_PLANEA : DPFC_CTL_PLANEB;
  159. unsigned long stall_watermark = 200;
  160. u32 dpfc_ctl;
  161. dpfc_ctl = I915_READ(ILK_DPFC_CONTROL);
  162. dpfc_ctl &= DPFC_RESERVED;
  163. dpfc_ctl |= (plane | DPFC_CTL_LIMIT_1X);
  164. /* Set persistent mode for front-buffer rendering, ala X. */
  165. dpfc_ctl |= DPFC_CTL_PERSISTENT_MODE;
  166. dpfc_ctl |= (DPFC_CTL_FENCE_EN | obj->fence_reg);
  167. I915_WRITE(ILK_DPFC_CHICKEN, DPFC_HT_MODIFY);
  168. I915_WRITE(ILK_DPFC_RECOMP_CTL, DPFC_RECOMP_STALL_EN |
  169. (stall_watermark << DPFC_RECOMP_STALL_WM_SHIFT) |
  170. (interval << DPFC_RECOMP_TIMER_COUNT_SHIFT));
  171. I915_WRITE(ILK_DPFC_FENCE_YOFF, crtc->y);
  172. I915_WRITE(ILK_FBC_RT_BASE, obj->gtt_offset | ILK_FBC_RT_VALID);
  173. /* enable it... */
  174. I915_WRITE(ILK_DPFC_CONTROL, dpfc_ctl | DPFC_CTL_EN);
  175. if (IS_GEN6(dev)) {
  176. I915_WRITE(SNB_DPFC_CTL_SA,
  177. SNB_CPU_FENCE_ENABLE | obj->fence_reg);
  178. I915_WRITE(DPFC_CPU_FENCE_OFFSET, crtc->y);
  179. sandybridge_blit_fbc_update(dev);
  180. }
  181. DRM_DEBUG_KMS("enabled fbc on plane %d\n", intel_crtc->plane);
  182. }
  183. void ironlake_disable_fbc(struct drm_device *dev)
  184. {
  185. struct drm_i915_private *dev_priv = dev->dev_private;
  186. u32 dpfc_ctl;
  187. /* Disable compression */
  188. dpfc_ctl = I915_READ(ILK_DPFC_CONTROL);
  189. if (dpfc_ctl & DPFC_CTL_EN) {
  190. dpfc_ctl &= ~DPFC_CTL_EN;
  191. I915_WRITE(ILK_DPFC_CONTROL, dpfc_ctl);
  192. DRM_DEBUG_KMS("disabled FBC\n");
  193. }
  194. }
  195. bool ironlake_fbc_enabled(struct drm_device *dev)
  196. {
  197. struct drm_i915_private *dev_priv = dev->dev_private;
  198. return I915_READ(ILK_DPFC_CONTROL) & DPFC_CTL_EN;
  199. }
  200. bool intel_fbc_enabled(struct drm_device *dev)
  201. {
  202. struct drm_i915_private *dev_priv = dev->dev_private;
  203. if (!dev_priv->display.fbc_enabled)
  204. return false;
  205. return dev_priv->display.fbc_enabled(dev);
  206. }
  207. static void intel_fbc_work_fn(struct work_struct *__work)
  208. {
  209. struct intel_fbc_work *work =
  210. container_of(to_delayed_work(__work),
  211. struct intel_fbc_work, work);
  212. struct drm_device *dev = work->crtc->dev;
  213. struct drm_i915_private *dev_priv = dev->dev_private;
  214. mutex_lock(&dev->struct_mutex);
  215. if (work == dev_priv->fbc_work) {
  216. /* Double check that we haven't switched fb without cancelling
  217. * the prior work.
  218. */
  219. if (work->crtc->fb == work->fb) {
  220. dev_priv->display.enable_fbc(work->crtc,
  221. work->interval);
  222. dev_priv->cfb_plane = to_intel_crtc(work->crtc)->plane;
  223. dev_priv->cfb_fb = work->crtc->fb->base.id;
  224. dev_priv->cfb_y = work->crtc->y;
  225. }
  226. dev_priv->fbc_work = NULL;
  227. }
  228. mutex_unlock(&dev->struct_mutex);
  229. kfree(work);
  230. }
  231. static void intel_cancel_fbc_work(struct drm_i915_private *dev_priv)
  232. {
  233. if (dev_priv->fbc_work == NULL)
  234. return;
  235. DRM_DEBUG_KMS("cancelling pending FBC enable\n");
  236. /* Synchronisation is provided by struct_mutex and checking of
  237. * dev_priv->fbc_work, so we can perform the cancellation
  238. * entirely asynchronously.
  239. */
  240. if (cancel_delayed_work(&dev_priv->fbc_work->work))
  241. /* tasklet was killed before being run, clean up */
  242. kfree(dev_priv->fbc_work);
  243. /* Mark the work as no longer wanted so that if it does
  244. * wake-up (because the work was already running and waiting
  245. * for our mutex), it will discover that is no longer
  246. * necessary to run.
  247. */
  248. dev_priv->fbc_work = NULL;
  249. }
  250. void intel_enable_fbc(struct drm_crtc *crtc, unsigned long interval)
  251. {
  252. struct intel_fbc_work *work;
  253. struct drm_device *dev = crtc->dev;
  254. struct drm_i915_private *dev_priv = dev->dev_private;
  255. if (!dev_priv->display.enable_fbc)
  256. return;
  257. intel_cancel_fbc_work(dev_priv);
  258. work = kzalloc(sizeof *work, GFP_KERNEL);
  259. if (work == NULL) {
  260. dev_priv->display.enable_fbc(crtc, interval);
  261. return;
  262. }
  263. work->crtc = crtc;
  264. work->fb = crtc->fb;
  265. work->interval = interval;
  266. INIT_DELAYED_WORK(&work->work, intel_fbc_work_fn);
  267. dev_priv->fbc_work = work;
  268. DRM_DEBUG_KMS("scheduling delayed FBC enable\n");
  269. /* Delay the actual enabling to let pageflipping cease and the
  270. * display to settle before starting the compression. Note that
  271. * this delay also serves a second purpose: it allows for a
  272. * vblank to pass after disabling the FBC before we attempt
  273. * to modify the control registers.
  274. *
  275. * A more complicated solution would involve tracking vblanks
  276. * following the termination of the page-flipping sequence
  277. * and indeed performing the enable as a co-routine and not
  278. * waiting synchronously upon the vblank.
  279. */
  280. schedule_delayed_work(&work->work, msecs_to_jiffies(50));
  281. }
  282. void intel_disable_fbc(struct drm_device *dev)
  283. {
  284. struct drm_i915_private *dev_priv = dev->dev_private;
  285. intel_cancel_fbc_work(dev_priv);
  286. if (!dev_priv->display.disable_fbc)
  287. return;
  288. dev_priv->display.disable_fbc(dev);
  289. dev_priv->cfb_plane = -1;
  290. }
  291. /**
  292. * intel_update_fbc - enable/disable FBC as needed
  293. * @dev: the drm_device
  294. *
  295. * Set up the framebuffer compression hardware at mode set time. We
  296. * enable it if possible:
  297. * - plane A only (on pre-965)
  298. * - no pixel mulitply/line duplication
  299. * - no alpha buffer discard
  300. * - no dual wide
  301. * - framebuffer <= 2048 in width, 1536 in height
  302. *
  303. * We can't assume that any compression will take place (worst case),
  304. * so the compressed buffer has to be the same size as the uncompressed
  305. * one. It also must reside (along with the line length buffer) in
  306. * stolen memory.
  307. *
  308. * We need to enable/disable FBC on a global basis.
  309. */
  310. void intel_update_fbc(struct drm_device *dev)
  311. {
  312. struct drm_i915_private *dev_priv = dev->dev_private;
  313. struct drm_crtc *crtc = NULL, *tmp_crtc;
  314. struct intel_crtc *intel_crtc;
  315. struct drm_framebuffer *fb;
  316. struct intel_framebuffer *intel_fb;
  317. struct drm_i915_gem_object *obj;
  318. int enable_fbc;
  319. DRM_DEBUG_KMS("\n");
  320. if (!i915_powersave)
  321. return;
  322. if (!I915_HAS_FBC(dev))
  323. return;
  324. /*
  325. * If FBC is already on, we just have to verify that we can
  326. * keep it that way...
  327. * Need to disable if:
  328. * - more than one pipe is active
  329. * - changing FBC params (stride, fence, mode)
  330. * - new fb is too large to fit in compressed buffer
  331. * - going to an unsupported config (interlace, pixel multiply, etc.)
  332. */
  333. list_for_each_entry(tmp_crtc, &dev->mode_config.crtc_list, head) {
  334. if (tmp_crtc->enabled && tmp_crtc->fb) {
  335. if (crtc) {
  336. DRM_DEBUG_KMS("more than one pipe active, disabling compression\n");
  337. dev_priv->no_fbc_reason = FBC_MULTIPLE_PIPES;
  338. goto out_disable;
  339. }
  340. crtc = tmp_crtc;
  341. }
  342. }
  343. if (!crtc || crtc->fb == NULL) {
  344. DRM_DEBUG_KMS("no output, disabling\n");
  345. dev_priv->no_fbc_reason = FBC_NO_OUTPUT;
  346. goto out_disable;
  347. }
  348. intel_crtc = to_intel_crtc(crtc);
  349. fb = crtc->fb;
  350. intel_fb = to_intel_framebuffer(fb);
  351. obj = intel_fb->obj;
  352. enable_fbc = i915_enable_fbc;
  353. if (enable_fbc < 0) {
  354. DRM_DEBUG_KMS("fbc set to per-chip default\n");
  355. enable_fbc = 1;
  356. if (INTEL_INFO(dev)->gen <= 6)
  357. enable_fbc = 0;
  358. }
  359. if (!enable_fbc) {
  360. DRM_DEBUG_KMS("fbc disabled per module param\n");
  361. dev_priv->no_fbc_reason = FBC_MODULE_PARAM;
  362. goto out_disable;
  363. }
  364. if (intel_fb->obj->base.size > dev_priv->cfb_size) {
  365. DRM_DEBUG_KMS("framebuffer too large, disabling "
  366. "compression\n");
  367. dev_priv->no_fbc_reason = FBC_STOLEN_TOO_SMALL;
  368. goto out_disable;
  369. }
  370. if ((crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) ||
  371. (crtc->mode.flags & DRM_MODE_FLAG_DBLSCAN)) {
  372. DRM_DEBUG_KMS("mode incompatible with compression, "
  373. "disabling\n");
  374. dev_priv->no_fbc_reason = FBC_UNSUPPORTED_MODE;
  375. goto out_disable;
  376. }
  377. if ((crtc->mode.hdisplay > 2048) ||
  378. (crtc->mode.vdisplay > 1536)) {
  379. DRM_DEBUG_KMS("mode too large for compression, disabling\n");
  380. dev_priv->no_fbc_reason = FBC_MODE_TOO_LARGE;
  381. goto out_disable;
  382. }
  383. if ((IS_I915GM(dev) || IS_I945GM(dev)) && intel_crtc->plane != 0) {
  384. DRM_DEBUG_KMS("plane not 0, disabling compression\n");
  385. dev_priv->no_fbc_reason = FBC_BAD_PLANE;
  386. goto out_disable;
  387. }
  388. /* The use of a CPU fence is mandatory in order to detect writes
  389. * by the CPU to the scanout and trigger updates to the FBC.
  390. */
  391. if (obj->tiling_mode != I915_TILING_X ||
  392. obj->fence_reg == I915_FENCE_REG_NONE) {
  393. DRM_DEBUG_KMS("framebuffer not tiled or fenced, disabling compression\n");
  394. dev_priv->no_fbc_reason = FBC_NOT_TILED;
  395. goto out_disable;
  396. }
  397. /* If the kernel debugger is active, always disable compression */
  398. if (in_dbg_master())
  399. goto out_disable;
  400. /* If the scanout has not changed, don't modify the FBC settings.
  401. * Note that we make the fundamental assumption that the fb->obj
  402. * cannot be unpinned (and have its GTT offset and fence revoked)
  403. * without first being decoupled from the scanout and FBC disabled.
  404. */
  405. if (dev_priv->cfb_plane == intel_crtc->plane &&
  406. dev_priv->cfb_fb == fb->base.id &&
  407. dev_priv->cfb_y == crtc->y)
  408. return;
  409. if (intel_fbc_enabled(dev)) {
  410. /* We update FBC along two paths, after changing fb/crtc
  411. * configuration (modeswitching) and after page-flipping
  412. * finishes. For the latter, we know that not only did
  413. * we disable the FBC at the start of the page-flip
  414. * sequence, but also more than one vblank has passed.
  415. *
  416. * For the former case of modeswitching, it is possible
  417. * to switch between two FBC valid configurations
  418. * instantaneously so we do need to disable the FBC
  419. * before we can modify its control registers. We also
  420. * have to wait for the next vblank for that to take
  421. * effect. However, since we delay enabling FBC we can
  422. * assume that a vblank has passed since disabling and
  423. * that we can safely alter the registers in the deferred
  424. * callback.
  425. *
  426. * In the scenario that we go from a valid to invalid
  427. * and then back to valid FBC configuration we have
  428. * no strict enforcement that a vblank occurred since
  429. * disabling the FBC. However, along all current pipe
  430. * disabling paths we do need to wait for a vblank at
  431. * some point. And we wait before enabling FBC anyway.
  432. */
  433. DRM_DEBUG_KMS("disabling active FBC for update\n");
  434. intel_disable_fbc(dev);
  435. }
  436. intel_enable_fbc(crtc, 500);
  437. return;
  438. out_disable:
  439. /* Multiple disables should be harmless */
  440. if (intel_fbc_enabled(dev)) {
  441. DRM_DEBUG_KMS("unsupported config, disabling FBC\n");
  442. intel_disable_fbc(dev);
  443. }
  444. }