<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/kernel/printk.c, branch v2.6.19</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.19</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.19'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2006-11-03T20:27:58Z</updated>
<entry>
<title>[PATCH] Add printk_timed_ratelimit()</title>
<updated>2006-11-03T20:27:58Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@osdl.org</email>
</author>
<published>2006-11-03T06:07:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f46c483357c2d87606bbefb511321e3efd4baae0'/>
<id>urn:sha1:f46c483357c2d87606bbefb511321e3efd4baae0</id>
<content type='text'>
printk_ratelimit() has global state which makes it not useful for callers
which wish to perform ratelimiting at a particular frequency.

Add a printk_timed_ratelimit() which utilises caller-provided state storage to
permit more flexibility.

This function can in fact be used for things other than printk ratelimiting
and is perhaps poorly named.

Cc: Ulrich Drepper &lt;drepper@redhat.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Cc: Rusty Russell &lt;rusty@rustcorp.com.au&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] lockdep: fix printk recursion logic</title>
<updated>2006-10-11T18:14:24Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2006-10-11T08:22:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=256a6b41365e17cebe5c2fc91ddff716c9aa055a'/>
<id>urn:sha1:256a6b41365e17cebe5c2fc91ddff716c9aa055a</id>
<content type='text'>
Bug reported and fixed by Tilman Schmidt &lt;tilman@imap.cc&gt;: if lockdep is
enabled then log messages make it to /var/log/messages belatedly.  The
reason is a missed wakeup of klogd.

Initially there was only a lockdep_internal() protection against lockdep
recursion within vprintk() - it grew the 'outer' lockdep_off()/on()
protection only later on.  But that lockdep_off() made the
release_console_sem() within vprintk() always happen under the
lockdep_internal() condition, causing the bug.

The right solution to remove the inner protection against recursion here -
the outer one is enough.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Tilman Schmidt &lt;tilman@imap.cc&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] PM: make it possible to disable console suspending</title>
<updated>2006-09-26T15:49:03Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rjw@sisk.pl</email>
</author>
<published>2006-09-26T06:32:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c8eb8b4025175f967af0ba8e933f23aa9954dc35'/>
<id>urn:sha1:c8eb8b4025175f967af0ba8e933f23aa9954dc35</id>
<content type='text'>
Change suspend_console() so that it waits for all consoles to flush the
remaining messages and make it possible to switch the console suspending off
with the help of a Kconfig option.

Signed-off-by: Rafael J. Wysocki &lt;rjw@sisk.pl&gt;
Acked-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Cc: Stefan Seyfried &lt;seife@suse.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] vt: printk: Fix framebuffer console triggering might_sleep assertion</title>
<updated>2006-08-06T15:57:47Z</updated>
<author>
<name>Antonino A. Daplas</name>
<email>adaplas@gmail.com</email>
</author>
<published>2006-08-05T19:14:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=78944e549d36673eb6265a2411574e79c28e23dc'/>
<id>urn:sha1:78944e549d36673eb6265a2411574e79c28e23dc</id>
<content type='text'>
Reported by: Dave Jones

Whilst printk'ing to both console and serial console, I got this...
(2.6.18rc1)

BUG: sleeping function called from invalid context at kernel/sched.c:4438
in_atomic():0, irqs_disabled():1

Call Trace:
 [&lt;ffffffff80271db8&gt;] show_trace+0xaa/0x23d
 [&lt;ffffffff80271f60&gt;] dump_stack+0x15/0x17
 [&lt;ffffffff8020b9f8&gt;] __might_sleep+0xb2/0xb4
 [&lt;ffffffff8029232e&gt;] __cond_resched+0x15/0x55
 [&lt;ffffffff80267eb8&gt;] cond_resched+0x3b/0x42
 [&lt;ffffffff80268c64&gt;] console_conditional_schedule+0x12/0x14
 [&lt;ffffffff80368159&gt;] fbcon_redraw+0xf6/0x160
 [&lt;ffffffff80369c58&gt;] fbcon_scroll+0x5d9/0xb52
 [&lt;ffffffff803a43c4&gt;] scrup+0x6b/0xd6
 [&lt;ffffffff803a4453&gt;] lf+0x24/0x44
 [&lt;ffffffff803a7ff8&gt;] vt_console_print+0x166/0x23d
 [&lt;ffffffff80295528&gt;] __call_console_drivers+0x65/0x76
 [&lt;ffffffff80295597&gt;] _call_console_drivers+0x5e/0x62
 [&lt;ffffffff80217e3f&gt;] release_console_sem+0x14b/0x232
 [&lt;ffffffff8036acd6&gt;] fb_flashcursor+0x279/0x2a6
 [&lt;ffffffff80251e3f&gt;] run_workqueue+0xa8/0xfb
 [&lt;ffffffff8024e5e0&gt;] worker_thread+0xef/0x122
 [&lt;ffffffff8023660f&gt;] kthread+0x100/0x136
 [&lt;ffffffff8026419e&gt;] child_rip+0x8/0x12

This can occur when release_console_sem() is called but the log
buffer still has contents that need to be flushed. The console drivers
are called while the console_may_schedule flag is still true. The
might_sleep() is triggered when fbcon calls console_conditional_schedule().

Fix by setting console_may_schedule to zero earlier, before the call to the
console drivers.

Signed-off-by: Antonino Daplas &lt;adaplas@pol.net&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] kernel/printk.c: EXPORT_SYMBOL_UNUSED</title>
<updated>2006-07-10T20:24:17Z</updated>
<author>
<name>Adrian Bunk</name>
<email>bunk@stusta.de</email>
</author>
<published>2006-07-10T11:44:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c0fc84d2e5bb4a9e3ae470812a00cccba85a48b8'/>
<id>urn:sha1:c0fc84d2e5bb4a9e3ae470812a00cccba85a48b8</id>
<content type='text'>
This patch marks unused exports as EXPORT_SYMBOL_UNUSED.

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] lockdep: do not recurse in printk</title>
<updated>2006-07-03T22:27:05Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2006-07-03T07:24:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a0f1ccfd8d37457a6d8a9e01acebeefcdfcc306e'/>
<id>urn:sha1:a0f1ccfd8d37457a6d8a9e01acebeefcdfcc306e</id>
<content type='text'>
Make printk()-ing from within the lock validation code safer by using the
lockdep-recursion counter.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Arjan van de Ven &lt;arjan@linux.intel.com&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>Remove obsolete #include &lt;linux/config.h&gt;</title>
<updated>2006-06-30T17:25:36Z</updated>
<author>
<name>Jörn Engel</name>
<email>joern@wohnheim.fh-wedel.de</email>
</author>
<published>2006-06-30T17:25:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6ab3d5624e172c553004ecc862bfeac16d9d68b7'/>
<id>urn:sha1:6ab3d5624e172c553004ecc862bfeac16d9d68b7</id>
<content type='text'>
Signed-off-by: Jörn Engel &lt;joern@wohnheim.fh-wedel.de&gt;
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
</content>
</entry>
<entry>
<title>[PATCH] printk time parameter</title>
<updated>2006-06-25T17:01:13Z</updated>
<author>
<name>Jan Engelhardt</name>
<email>jengelh@linux01.gwdg.de</email>
</author>
<published>2006-06-25T12:48:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3b9c04106b70e46803c69d13d5da32f6129fa76d'/>
<id>urn:sha1:3b9c04106b70e46803c69d13d5da32f6129fa76d</id>
<content type='text'>
Currently, enabling/disabling printk timestamps is only possible through
reboot (bootparam) or recompile.  I normally do not run with timestamps
(since syslog handles that in a good manner), but for measuring small
kernel delays (e.g.  irq probing - see parport thread) I needed subsecond
precision, but then again, just for some minutes rather than all kernel
messages to come.  The following patch adds a module_param() with which the
timestamps can be en-/disabled in a live system through
/sys/modules/printk/parameters/printk_time.

Signed-off-by: Jan Engelhardt &lt;jengelh@gmx.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] Make printk work for really early debugging</title>
<updated>2006-06-25T17:01:05Z</updated>
<author>
<name>Michael Ellerman</name>
<email>michael@ellerman.id.au</email>
</author>
<published>2006-06-25T12:47:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=76a8ad293912cd2f01eca075d80cd0ddec30c627'/>
<id>urn:sha1:76a8ad293912cd2f01eca075d80cd0ddec30c627</id>
<content type='text'>
Currently printk is no use for early debugging because it refuses to
actually print anything to the console unless
cpu_online(smp_processor_id()) is true.

The stated explanation is that console drivers may require per-cpu
resources, or otherwise barf, because the system is not yet setup
correctly.  Fair enough.

However some console drivers might be quite happy running early during
boot, in fact we have one, and so it'd be nice if printk understood that.

So I added a flag (which I would have called CON_BOOT, but that's taken)
called CON_ANYTIME, which indicates that a console is happy to be called
anytime, even if the cpu is not yet online.

Tested on a Power 5 machine, with both a CON_ANYTIME driver and a bogus
console driver that BUG()s if called while offline.  No problems AFAICT.
Built for i386 UP &amp; SMP.

Signed-off-by: Michael Ellerman &lt;michael@ellerman.id.au&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>Add support for suspending and resuming the whole console subsystem</title>
<updated>2006-06-20T01:16:01Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2006-06-20T01:16:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=557240b48e2dc4f6fa878afc3fc767ad745ca7ed'/>
<id>urn:sha1:557240b48e2dc4f6fa878afc3fc767ad745ca7ed</id>
<content type='text'>
Trying to suspend/resume with console messages flying all around is
doomed to failure, when the devices that the messages are trying to
go to are being shut down.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
