<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/usr.sbin/memcontrol, branch stable/6</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F6</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F6'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2005-03-29T20:17:47Z</updated>
<entry>
<title>Correct formatting of pointers in the listing by using "0x%" PRIx64 instead of</title>
<updated>2005-03-29T20:17:47Z</updated>
<author>
<name>Eric Anholt</name>
<email>anholt@FreeBSD.org</email>
</author>
<published>2005-03-29T20:17:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=50f39947dec886e964aedf712b237714c8c6e852'/>
<id>urn:sha1:50f39947dec886e964aedf712b237714c8c6e852</id>
<content type='text'>
"%" PRIu64 "x".
</content>
</entry>
<entry>
<title>WARNS=6 cleanup.  This includes:</title>
<updated>2005-01-07T12:06:30Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2005-01-07T12:06:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1a842e25009c03c07d0787eaf0de57771ac7e43a'/>
<id>urn:sha1:1a842e25009c03c07d0787eaf0de57771ac7e43a</id>
<content type='text'>
	- Apply __unused on unused parameters
	- Use const where suitable
	- Use PRIu64 instead of the deprecated %q
	- Bump WARNS to 6
</content>
</entry>
<entry>
<title>mdoc(7) police: markup fixes.</title>
<updated>2002-11-27T15:31:08Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2002-11-27T15:31:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c041c1e0d9c869cd212eb1fa95c82e05cbc7fd41'/>
<id>urn:sha1:c041c1e0d9c869cd212eb1fa95c82e05cbc7fd41</id>
<content type='text'>
Approved by:	re
</content>
</entry>
<entry>
<title>Some BIOSs are using MTRR values that are only documented under NDA</title>
<updated>2002-09-15T15:07:55Z</updated>
<author>
<name>David Malone</name>
<email>dwmalone@FreeBSD.org</email>
</author>
<published>2002-09-15T15:07:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=93f39ea88a7456358256c4a72ba4ee43ba266155'/>
<id>urn:sha1:93f39ea88a7456358256c4a72ba4ee43ba266155</id>
<content type='text'>
to control the mapping of things like the ACPI and APM into memory.

The problem is that starting X changes these values, so if something
was using the bits of BIOS mapped into memory (say ACPI or APM),
then next time they access this memory the machine would hang.

This patch refuse to change MTRR values it doesn't understand,
unless a new "force" option is given. This means X doesn't change
them by accident but someone can override that if they really want
to.

PR:		28418
Tested by:	Christopher Masto &lt;chris@netmonger.net&gt;,
		David Bushong &lt;david@bushong.net&gt;,
		Santos &lt;casd@myrealbox.com&gt;
MFC after:	1 week
</content>
</entry>
<entry>
<title>The .Nm utility</title>
<updated>2002-07-14T14:47:15Z</updated>
<author>
<name>Philippe Charnier</name>
<email>charnier@FreeBSD.org</email>
</author>
<published>2002-07-14T14:47:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=490d5836b5ab0c76675986696b1637fff97dfae2'/>
<id>urn:sha1:490d5836b5ab0c76675986696b1637fff97dfae2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make the MTRR code a bit more defensive - this should help people</title>
<updated>2002-04-14T20:19:13Z</updated>
<author>
<name>David Malone</name>
<email>dwmalone@FreeBSD.org</email>
</author>
<published>2002-04-14T20:19:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b0f4bb511e9932d15818cbd17638b6de2b28b0b6'/>
<id>urn:sha1:b0f4bb511e9932d15818cbd17638b6de2b28b0b6</id>
<content type='text'>
trying to run X on some Athlon systems where the BIOS does odd things
(mines an ASUS A7A266, but it seems to also help on other systems).

Here's a description of the problem and my fix:

        The problem with the old MTRR code is that it only expects
        to find documented values in the bytes of MTRR registers.
        To convert the MTRR byte into a FreeBSD "Memory Range Type"
        (mrt) it uses the byte value and looks it up in an array.
        If the value is not in range then the mrt value ends up
        containing random junk.

        This isn't an immediate problem. The mrt value is only used
        later when rewriting the MTRR registers. When we finally
        go to write a value back again, the function i686_mtrrtype()
        searches for the junk value and returns -1 when it fails
        to find it. This is converted to a byte (0xff) and written
        back to the register, causing a GPF as 0xff is an illegal
        value for a MTRR byte.

	To work around this problem I've added a new mrt flag
	MDF_UNKNOWN.  We set this when we read a MTRR byte which
	we do not understand.  If we try to convert a MDF_UNKNOWN
	back into a MTRR value, then the new function, i686_mrt2mtrr,
	just returns the old value of the MTRR byte. This leaves
	the memory range type unchanged.

I have seen one side effect of the fix, which is that ACPI calls
after X has been run seem to hang my machine. As running X would
previously panic the machine, this is still an improvement ;-)

I'd like to MFC this before the 4.6 code freeze - please let me
know if it causes any problems.

PR:		28418, 25958
Tested by:	jkh, Christopher Masto &lt;chris@netmonger.net&gt;
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Perform a major cleanup of the usr.sbin Makefiles.</title>
<updated>2001-07-20T06:20:32Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2001-07-20T06:20:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=90e655ea4e3750a48b8b350adb823f0ace818f21'/>
<id>urn:sha1:90e655ea4e3750a48b8b350adb823f0ace818f21</id>
<content type='text'>
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
</content>
</entry>
<entry>
<title>Remove whitespace at EOL.</title>
<updated>2001-07-15T08:06:20Z</updated>
<author>
<name>Dima Dorfman</name>
<email>dd@FreeBSD.org</email>
</author>
<published>2001-07-15T08:06:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f247324df75b7f55b48b92acb3b42a5ae2deac8a'/>
<id>urn:sha1:f247324df75b7f55b48b92acb3b42a5ae2deac8a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mdoc(7) police: removed HISTORY info from the .Os call.</title>
<updated>2001-07-10T15:12:08Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-07-10T15:12:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a4c37c816b1d54b942c13def13eeb2098cb02c03'/>
<id>urn:sha1:a4c37c816b1d54b942c13def13eeb2098cb02c03</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Nuke unused variables.</title>
<updated>2001-06-24T23:41:57Z</updated>
<author>
<name>Dima Dorfman</name>
<email>dd@FreeBSD.org</email>
</author>
<published>2001-06-24T23:41:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7309915e7aa1ef9d23384c680701051238d5e0d0'/>
<id>urn:sha1:7309915e7aa1ef9d23384c680701051238d5e0d0</id>
<content type='text'>
</content>
</entry>
</feed>
