Linux Kernel Mailing List | 1 Jul 2005 08:12

[PATCH] ARM: Acornfb: Don't claim IRQ fbcon for cursor

tree cb8cc0057d37afbf6684f74eab2b0efbc686648b
parent cfb0810eab39d1162f45b73fc96f45ab1cbcbe8b
author Russell King <rmk <at> dyn-67.arm.linux.org.uk> Thu, 30 Jun 2005 16:30:07 +0100
committer Russell King <rmk+kernel <at> arm.linux.org.uk> Thu, 30 Jun 2005 16:30:07 +0100

[PATCH] ARM: Acornfb: Don't claim IRQ fbcon for cursor

The generic fbcon code tries to register and use the vsync IRQ for
ARM platforms with acornfb, but forgets to disable its own cursor
timer.  The result is a flickering flashing cursor.

Remove the code from the fbcon core to register this platform
private interrupt.

Signed-off-by: Russell King <rmk+kernel <at> arm.linux.org.uk>

 drivers/video/console/fbcon.c |    8 +-------
 1 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c
 <at>  <at>  -142,7 +142,6  <at>  <at>  static int fbcon_set_origin(struct vc_da
 #define CURSOR_DRAW_DELAY		(1)

 /* # VBL ints between cursor state changes */
-#define ARM_CURSOR_BLINK_RATE		(10)
 #define ATARI_CURSOR_BLINK_RATE		(42)
 #define MAC_CURSOR_BLINK_RATE		(32)
 #define DEFAULT_CURSOR_BLINK_RATE	(20)
(Continue reading)

Linux Kernel Mailing List | 1 Jul 2005 08:11

[PATCH] ARM: Don't try to send a signal to pid0

tree bbe5ec68ab0a4483324bd4e231cb6fb2358d23ab
parent 9b4311eedb17fa88f02e4876cd6aa9a08e383cd6
author Russell King <rmk <at> dyn-67.arm.linux.org.uk> Thu, 30 Jun 2005 11:06:49 +0100
committer Russell King <rmk+kernel <at> arm.linux.org.uk> Thu, 30 Jun 2005 11:06:49 +0100

[PATCH] ARM: Don't try to send a signal to pid0

If we receive an unrecognised abort during boot, don't try to
send a signal to pid0, but instead report the current state.
This leads to less confusing debug reports.

Signed-off-by: Russell King <rmk+kernel <at> arm.linux.org.uk>

 arch/arm/kernel/traps.c  |   12 +------
 arch/arm/mm/fault.c      |   75 +++++++++++++++++++++++++----------------------
 include/asm-arm/system.h |    4 +-
 3 files changed, 45 insertions(+), 46 deletions(-)

diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
--- a/arch/arm/kernel/traps.c
+++ b/arch/arm/kernel/traps.c
 <at>  <at>  -230,16 +230,8  <at>  <at>  NORET_TYPE void die(const char *str, str
 	do_exit(SIGSEGV);
 }

-void die_if_kernel(const char *str, struct pt_regs *regs, int err)
-{
-	if (user_mode(regs))
-    		return;
-
(Continue reading)

Linux Kernel Mailing List | 1 Jul 2005 08:12

[PATCH] ARM: 2777/1: Fix broken comment arch/arm/mm/proc-arm1020.S

tree a0c0442cf4cd8e14ea53a193d4e9522b46cef75c
parent 41359dca9442b0c664336e3fcf3aaf70b6507b1d
author Catalin Marinas <catalin.marinas <at> arm.com> Thu, 30 Jun 2005 17:04:13 +0100
committer Russell King <rmk+kernel <at> arm.linux.org.uk> Thu, 30 Jun 2005 17:04:13 +0100

[PATCH] ARM: 2777/1: Fix broken comment arch/arm/mm/proc-arm1020.S

Patch from Catalin Marinas

This patch fixes a broken comment in the proc-arm1020.S file which
prevents the file compilation

Signed-off-by: Catalin Marinas <catalin.marinas <at> arm.com>
Signed-off-by: Russell King <rmk+kernel <at> arm.linux.org.uk>

 arch/arm/mm/proc-arm1020.S |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mm/proc-arm1020.S b/arch/arm/mm/proc-arm1020.S
--- a/arch/arm/mm/proc-arm1020.S
+++ b/arch/arm/mm/proc-arm1020.S
 <at>  <at>  -445,7 +445,7  <at>  <at>  __arm1020_setup:
 	/*
 	 *  R
 	 * .RVI ZFRS BLDP WCAM
-	 * .0.1 1001 ..11 0101	/* FIXME: why no V bit? */
+	 * .0.1 1001 ..11 0101	FIXME: why no V bit?
 	 */
 	.type	arm1020_cr1_clear, #object
 	.type	arm1020_cr1_set, #object
(Continue reading)

Linux Kernel Mailing List | 1 Jul 2005 08:12

[PATCH] ARM: 2779/1: Fix the V bit setting for the ARM1020x CPUs

tree 80cd0d34086e3cb8c1781e317b49c84ad6c97841
parent c28a814f25d48f193565003223df0ae617796892
author Catalin Marinas <catalin.marinas <at> arm.com> Thu, 30 Jun 2005 17:04:14 +0100
committer Russell King <rmk+kernel <at> arm.linux.org.uk> Thu, 30 Jun 2005 17:04:14 +0100

[PATCH] ARM: 2779/1: Fix the V bit setting for the ARM1020x CPUs

Patch from Catalin Marinas

This patch fixes the V bit setting for the ARM1020x processors. At
reset, this bit is automatically set to the value of the HIVECSINIT
input signal which just happened to be 1 but it is not mandatory.

Signed-off-by: Catalin Marinas <catalin.marinas <at> arm.com>
Signed-off-by: Russell King <rmk+kernel <at> arm.linux.org.uk>

 arch/arm/mm/proc-arm1020.S  |    4 ++--
 arch/arm/mm/proc-arm1020e.S |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mm/proc-arm1020.S b/arch/arm/mm/proc-arm1020.S
--- a/arch/arm/mm/proc-arm1020.S
+++ b/arch/arm/mm/proc-arm1020.S
 <at>  <at>  -445,14 +445,14  <at>  <at>  __arm1020_setup:
 	/*
 	 *  R
 	 * .RVI ZFRS BLDP WCAM
-	 * .0.1 1001 ..11 0101	FIXME: why no V bit?
+	 * .011 1001 ..11 0101
 	 */
(Continue reading)

Linux Kernel Mailing List | 1 Jul 2005 08:12

[PATCH] ARM: 2780/1: AFS partition length calculation fix

tree 1edbf084b3e08fc0623431278f5dc0fda67ef634
parent abaf48a05a8f097654e746af2a5afb2ab95861a1
author Catalin Marinas <catalin.marinas <at> arm.com> Thu, 30 Jun 2005 23:01:09 +0100
committer Russell King <rmk+kernel <at> arm.linux.org.uk> Thu, 30 Jun 2005 23:01:09 +0100

[PATCH] ARM: 2780/1: AFS partition length calculation fix

Patch from Catalin Marinas

This patch calculates the AFS partition length by expanding the image
length information to the nearest erase block boundary. This
eliminates the problems with JFFS2 erasing the footer.

Signed-off-by: Catalin Marinas <catalin.marinas <at> arm.com>
Signed-off-by: Russell King <rmk+kernel <at> arm.linux.org.uk>

 drivers/mtd/afs.c |   16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/drivers/mtd/afs.c b/drivers/mtd/afs.c
--- a/drivers/mtd/afs.c
+++ b/drivers/mtd/afs.c
 <at>  <at>  -219,7 +219,7  <at>  <at>  static int parse_afs_partitions(struct m
 	 */
 	for (idx = off = 0; off < mtd->size; off += mtd->erasesize) {
 		struct image_info_struct iis;
-		u_int iis_ptr, img_ptr, size;
+		u_int iis_ptr, img_ptr;

 		/* Read the footer. */
(Continue reading)

Linux Kernel Mailing List | 1 Jul 2005 08:12

[PATCH] ARM: 2778/1: Add -mno-thumb-interwork to CFLAGS_ABI

tree 52df77b65b4e51836830e7710f1027f6a72778c2
parent c19cb1df809dcf343dd1eb6fe60d53639dafcb8c
author Catalin Marinas <catalin.marinas <at> arm.com> Thu, 30 Jun 2005 17:04:14 +0100
committer Russell King <rmk+kernel <at> arm.linux.org.uk> Thu, 30 Jun 2005 17:04:14 +0100

[PATCH] ARM: 2778/1: Add -mno-thumb-interwork to CFLAGS_ABI

Patch from Catalin Marinas

The new EABI gcc adds -mthumb-interwork by default, even if
-mabi=apcs-gnu is passed. This causes a warning for every compiled C
file when -march=armv4 is used. The patch adds -mno-thumb-interwork
if the option is supported. This is also useful since we don't need
any ARM/Thumb interworking in the kernel

Signed-off-by: Catalin Marinas <catalin.marinas <at> arm.com>
Signed-off-by: Russell King <rmk+kernel <at> arm.linux.org.uk>

 arch/arm/Makefile |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
 <at>  <at>  -56,7 +56,7  <at>  <at>  tune-$(CONFIG_CPU_XSCALE)	:=$(call cc-op
 tune-$(CONFIG_CPU_V6)		:=-mtune=strongarm

 # Need -Uarm for gcc < 3.x
-CFLAGS_ABI	:=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
+CFLAGS_ABI	:=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,)
(Continue reading)

Linux Kernel Mailing List | 1 Jul 2005 08:12

[PATCH] Serial: Fix small CONFIG_SERIAL_8250_NR_UARTS

tree 823fa555fe7c419c4cbc0616fff5b6dadd4d81fa
parent 9b4311eedb17fa88f02e4876cd6aa9a08e383cd6
author Russell King <rmk <at> dyn-67.arm.linux.org.uk> Thu, 30 Jun 2005 22:41:22 +0100
committer Russell King <rmk+kernel <at> arm.linux.org.uk> Thu, 30 Jun 2005 22:41:22 +0100

[PATCH] Serial: Fix small CONFIG_SERIAL_8250_NR_UARTS

If CONFIG_SERIAL_8250_NR_UARTS is smaller than the array size in
asm/serial.h, we trampled on memory which wasn't ours.  Take our
big boots away by limiting the number of ports initialised to the
smaller of ...NR_UARTS and the array size.

Signed-off-by: Russell King <rmk+kernel <at> arm.linux.org.uk>

 drivers/serial/8250.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
 <at>  <at>  -2061,7 +2061,8  <at>  <at>  static void __init serial8250_isa_init_p
 		up->port.ops = &serial8250_pops;
 	}

-	for (i = 0, up = serial8250_ports; i < ARRAY_SIZE(old_serial_port);
+	for (i = 0, up = serial8250_ports;
+	     i < ARRAY_SIZE(old_serial_port) && i < UART_NR;
 	     i++, up++) {
 		up->port.iobase   = old_serial_port[i].port;
 		up->port.irq      = irq_canonicalize(old_serial_port[i].irq);
(Continue reading)

Linux Kernel Mailing List | 1 Jul 2005 14:09

[PATCH] fatfs sectioning fix

tree f7c88505374a9b5e14a8d35800ebd7aa846a7cc1
parent eaf05be039cf5adfba5b1846452ce89646110fdb
author Andrew Morton <akpm <at> osdl.org> Fri, 01 Jul 2005 12:13:14 -0700
committer Linus Torvalds <torvalds <at> ppc970.osdl.org> Fri, 01 Jul 2005 12:29:48 -0700

[PATCH] fatfs sectioning fix

Fixup for the recent slab leak fix

Cc: Pekka Enberg <penberg <at> cs.helsinki.fi>
Cc: OGAWA Hirofumi <hirofumi <at> mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 fs/fat/cache.c |    2 +-
 fs/fat/inode.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/fat/cache.c b/fs/fat/cache.c
--- a/fs/fat/cache.c
+++ b/fs/fat/cache.c
 <at>  <at>  -56,7 +56,7  <at>  <at>  int __init fat_cache_init(void)
 	return 0;
 }

-void __exit fat_cache_destroy(void)
+void fat_cache_destroy(void)
 {
 	if (kmem_cache_destroy(fat_cache_cachep))
 		printk(KERN_INFO "fat_cache: not all structures were freed\n");
(Continue reading)

Linux Kernel Mailing List | 1 Jul 2005 14:09

[PATCH] alpha smp fix

tree da81bed900c4a80f53379feb2de477fc4047792c
parent 62351cc38d3eaf3de0327054dd6ebc039f4da80d
author Ivan Kokshaysky <ink <at> jurassic.park.msu.ru> Thu, 30 Jun 2005 20:02:18 +0400
committer Linus Torvalds <torvalds <at> ppc970.osdl.org> Fri, 01 Jul 2005 12:29:48 -0700

[PATCH] alpha smp fix

As usual, the reason of this breakage is quite silly: in do_entIF, we
are checking for PS == 0 to see whether it was a kernel BUG() or
userspace trap.

It works, unless BUG() happens in interrupt - PS is not 0 in kernel mode
due to non-zero IPL, and the things get messed up horribly then.  In
this particular case it was BUG_ON(!irqs_disabled()) triggered in
run_posix_cpu_timers(), so we ended up shooting "current" with the
bursts of one SIGTRAP and three SIGILLs on every timer tick.  ;-)

 arch/alpha/kernel/traps.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/alpha/kernel/traps.c b/arch/alpha/kernel/traps.c
--- a/arch/alpha/kernel/traps.c
+++ b/arch/alpha/kernel/traps.c
 <at>  <at>  -240,7 +240,7  <at>  <at>  do_entIF(unsigned long type, struct pt_r
 	siginfo_t info;
 	int signo, code;

-	if (regs->ps == 0) {
+	if ((regs->ps & ~IPL_MAX) == 0) {
 		if (type == 1) {
(Continue reading)

Linux Kernel Mailing List | 1 Jul 2005 22:06

[PATCH] alpha smp fix (part #2)

tree 18e85e7f3656b7a009096cd55788d2c150cddadd
parent ef6689eff4b58273fed9e54293a3da983b321e9a
author Ivan Kokshaysky <ink <at> jurassic.park.msu.ru> Fri, 01 Jul 2005 16:46:26 +0400
committer Linus Torvalds <torvalds <at> ppc970.osdl.org> Fri, 01 Jul 2005 22:20:23 -0700

[PATCH] alpha smp fix (part #2)

This fixes the bug that caused BUG_ON(!irqs_disabled()) to trigger in
run_posix_cpu_timers() on alpha/smp.  We didn't disable interrupts
properly before calling smp_percpu_timer_interrupt().

We *do* disable interrupts everywhere except this unfortunate
smp_percpu_timer_interrupt().  Fixed thus.

Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 arch/alpha/kernel/irq_alpha.c |    2 ++
 1 files changed, 2 insertions(+)

diff --git a/arch/alpha/kernel/irq_alpha.c b/arch/alpha/kernel/irq_alpha.c
--- a/arch/alpha/kernel/irq_alpha.c
+++ b/arch/alpha/kernel/irq_alpha.c
 <at>  <at>  -55,6 +55,8  <at>  <at>  do_entInt(unsigned long type, unsigned l
 #ifdef CONFIG_SMP
 	  {
 		long cpu;
+
+		local_irq_disable();
 		smp_percpu_timer_interrupt(regs);
 		cpu = smp_processor_id();
(Continue reading)


Gmane