<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/kernel/resource.c, branch v2.6.12.2</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v2.6.12.2</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v2.6.12.2'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2005-04-16T22:25:58Z</updated>
<entry>
<title>[PATCH] pci enumeration on ixp2000: overflow in kernel/resource.c</title>
<updated>2005-04-16T22:25:58Z</updated>
<author>
<name>Lennert Buytenhek</name>
<email>buytenh@wantstofly.org</email>
</author>
<published>2005-04-16T22:25:58Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=b52402c783d8c16b11f146a244bb21086a94bf84'/>
<id>urn:sha1:b52402c783d8c16b11f146a244bb21086a94bf84</id>
<content type='text'>
IXP2000 (ARM-based) platforms use a separate 'struct resource' for PCI MEM
space.  Resource allocation for PCI BARs always fails because the 'root'
resource (the IXP2000 PCI MEM resource) always has the entire address space
(00000000-ffffffff) free, and find_resource() calculates the size of that
range as ffffffff-00000000+1=0, so all allocations fail because it thinks
there is no space.

(akpm: pls. double-check)

Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Make lots of things static</title>
<updated>2005-03-12T00:40:56Z</updated>
<author>
<name>Adrian Bunk</name>
<email>bunk@stusta.de</email>
</author>
<published>2005-03-12T00:40:56Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=9d340cb7c38e0872b742890d76190cc3ac3cfd50'/>
<id>urn:sha1:9d340cb7c38e0872b742890d76190cc3ac3cfd50</id>
<content type='text'>
This is a megarollup of ~60 patches which give various things static scope.

Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Lock initializer cleanup (Core)</title>
<updated>2005-01-08T06:09:06Z</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2005-01-08T06:09:06Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=44b7f61e2868c2d4895c93b0d3382389a7a66f6b'/>
<id>urn:sha1:44b7f61e2868c2d4895c93b0d3382389a7a66f6b</id>
<content type='text'>
Kernel core files converted to use the new lock initializers.

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Acked-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>Lock-annotate some kernel functions as an example of how it works.</title>
<updated>2004-10-31T00:51:14Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2004-10-31T00:51:14Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a4b13f2f90699df3585504798e20419535579a87'/>
<id>urn:sha1:a4b13f2f90699df3585504798e20419535579a87</id>
<content type='text'>
In particular, a function that is called with a lock held, and
releases it only to re-acquire it needs to be annotated as such,
since otherwise sparse will complain about an unexpected unlock,
even though "globally" the lock is constant over the call.
</content>
</entry>
<entry>
<title>Fix "insert_resource()" nesting bug</title>
<updated>2004-08-27T12:29:11Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2004-08-27T12:29:11Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=3c5a76a16ef66867d3ce56e928c6a3e0f64e4087'/>
<id>urn:sha1:3c5a76a16ef66867d3ce56e928c6a3e0f64e4087</id>
<content type='text'>
It used to create totally impossible resource trees in some
circumstances where it was asked to insert a conflicting
resource. We never noticed, because it wasn't used that much.

Make it return the proper error instead.
</content>
</entry>
<entry>
<title>[PATCH] insert_resource fix</title>
<updated>2004-06-15T13:19:55Z</updated>
<author>
<name>John Rose</name>
<email>johnrose@austin.ibm.com</email>
</author>
<published>2004-06-15T13:19:55Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=d860a0ad215965ab03fe497889fe2e1a4ede3765'/>
<id>urn:sha1:d860a0ad215965ab03fe497889fe2e1a4ede3765</id>
<content type='text'>
I noticed that insert_resource() incorrectly handles the case of an
existing parent resource with the same ending address as a newly added
child.  This results in incorrect nesting, like the following:

	# cat /proc/ioports
	&lt;snip&gt;
	002f0000-002fffff : PCI Bus #48
	  00200000-002fffff : /pci@800000020000003
	&lt;/snip&gt;

Signed-off-by: John Rose &lt;johnrose@austin.ibm.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] PCI: insert_resource can succeed and return an error</title>
<updated>2004-03-19T06:07:09Z</updated>
<author>
<name>Matthew Wilcox</name>
<email>willy@debian.org</email>
</author>
<published>2004-03-19T06:07:09Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=78b21ca0370b83c647652aaee242c56512743f7e'/>
<id>urn:sha1:78b21ca0370b83c647652aaee242c56512743f7e</id>
<content type='text'>
If we start again, we can return an error even if we were successful.
Reset the result to 0 before beginning again.  Why don't we use a
tailcall here?
</content>
</entry>
<entry>
<title>[PATCH] Make insert_resource work for alder IOAPIC resources</title>
<updated>2004-02-24T12:03:10Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@osdl.org</email>
</author>
<published>2004-02-24T12:03:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=79468292661ac5df1bdfe69d42d6e93d192ce55a'/>
<id>urn:sha1:79468292661ac5df1bdfe69d42d6e93d192ce55a</id>
<content type='text'>
From: James Bottomley &lt;James.Bottomley@SteelEye.com&gt;

This is a necessary precursor patch for getting the Intel Alder motherboard
working (it has a PCI device corresponding to the IO-APIC which has to be
forcibly inserted into the machine's reserved memory region).

Eric Biederman was going to come up with a more comprehensive fix, but in
the meantime, this is the minimum necessary to get insert_resource to work
when the covering region is larger than the resource being inserted.
</content>
</entry>
<entry>
<title>[PATCH] Fix __release_region() race</title>
<updated>2004-02-18T12:56:48Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@osdl.org</email>
</author>
<published>2004-02-18T12:56:48Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=43630c2cf39121fef7c8e49dff028b320870c80b'/>
<id>urn:sha1:43630c2cf39121fef7c8e49dff028b320870c80b</id>
<content type='text'>
From: MAEDA Naoaki &lt;maeda.naoaki@jp.fujitsu.com&gt;

I am testing PCI hot-plug in 2.6.2 kernel, but sometimes a struct resource
tree in kernel/resource.c was broken if multiple hot-plug requests are
issued at the same time.

The reason is lots of drivers call release_region() on hot removal, and
__release_region(), which is invoked by release_region() macro, changes the
tree without holding a writer lock for resource_lock.

I think __release_region() must hold a writer lock as well as
__request_region() does.

A following patch fixes the issue in my environment.
</content>
</entry>
<entry>
<title>[PATCH] adjust_resource()</title>
<updated>2004-02-06T07:07:04Z</updated>
<author>
<name>Matthew Wilcox</name>
<email>willy@debian.org</email>
</author>
<published>2004-02-06T07:07:04Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5558ae34e874f7f50920f70d1cd97cbb07e91a93'/>
<id>urn:sha1:5558ae34e874f7f50920f70d1cd97cbb07e91a93</id>
<content type='text'>
I need this to cope with some devices on PA-RISC and Russell also needs
something like it for PCMCIA.
</content>
</entry>
</feed>
