Re: MTRR allocation failure

From: Parag Warudkar
Date: Fri Sep 09 2011 - 23:31:52 EST




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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/