mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Parag Warudkar <parag.lkml@gmail.com>
To: Yinghai Lu <yinghai.lu@oracle.com>
Cc: Parag Warudkar <parag.lkml@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: MTRR allocation failure
Date: Fri, 9 Sep 2011 23:31:29 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.02.1109092327210.1672@parag-X220> (raw)
In-Reply-To: <CAE9FiQX5ZL5LbQtVfbKCvbJoPvkOhvmCtsvEXAJZU1+48R9_WQ@mail.gmail.com>



On Fri, 9 Sep 2011, Yinghai Lu wrote:
> 
> your BIOS create one new WP entry. so mtrr sanitizer is not triggered...
> 
> Maybe you can just delete first entry before you load drm?

Thank you! That fixes the issue for me.

If anyone else has extra/write-protect entry in /proc/mtrr that can be 
deleted - here is what you can drop in /etc/modprobe.d/drm.conf -

# Free up a mtrr entry for drm
install drm /sbin/fix-mtrr-local.sh && { /sbin/modprobe --ignore-install $CMDLINE_OPTS drm ; }

/sbin/fix-mtrr-local.sh

#modify the grep arg and disable= to your needs
#!/bin/sh

grep write-protect /proc/mtrr

if [ $? -eq 0 ]; then
echo "disable=0" > /proc/mtrr
fi
exit 0

      reply	other threads:[~2011-09-10  3:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-10  0:54 Parag Warudkar
2011-09-10  2:47 ` Yinghai Lu
2011-09-10  3:31   ` Parag Warudkar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.02.1109092327210.1672@parag-X220 \
    --to=parag.lkml@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yinghai.lu@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®