Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Disable reusing graphics...



details:   https://anonhg.NetBSD.org/src/rev/57975850e339
branches:  trunk
changeset: 330966:57975850e339
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Jul 25 21:57:54 2014 +0000

description:
Disable reusing graphics stolen memory in i915drmkms for now.

Sometimes the GTT is located in graphics stolen memory, and who knows
what else the BIOS might have done with it.  Upstream has a patch to
sneak around the GTT, but disabling it altogether is simpler and
probably safer.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_gem_stolen.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r d60763cb5b16 -r 57975850e339 sys/external/bsd/drm2/dist/drm/i915/i915_gem_stolen.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem_stolen.c     Fri Jul 25 21:43:13 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem_stolen.c     Fri Jul 25 21:57:54 2014 +0000
@@ -65,9 +65,11 @@
         */
        base = 0;
        if (INTEL_INFO(dev)->gen >= 3) {
+#ifndef __NetBSD__             /* XXX disable this for now */
                /* Read Graphics Base of Stolen Memory directly */
                pci_read_config_dword(dev->pdev, 0x5c, &base);
                base &= ~((1<<20) - 1);
+#endif
        } else { /* GEN2 */
 #if 0
                /* Stolen is immediately above Top of Memory */



Home | Main Index | Thread Index | Old Index