Skip to contentSkip to conversation

gta02 machine stuck during boot

PATCH RESEND New Denis 'GNUtoo' Carikli 1 participant 2 messages Mar 27, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 gta02 machine stuck during boot

Hi,
Without the patch(the patch was not made by me) that will follow,
my gta02 machine is stuck at the end of this log, without any reaction:

Uncompressing Linux... done, booting the kernel.

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.3.0-next-20120327 (gnutoo@trisquel) (gcc version 4.6.3 20111117 (prerelease) (GCC) ) #271 Wed Mar 28 00:48:08 CEST 2012
[    0.000000] CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: GTA02
[    0.000000] Ignoring tag cmdline (using the default kernel command line)
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] CPU S3C2442B (id 0x32440aab)
[    0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics
[    0.000000] S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
[    0.000000] CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c0401d38, node_mem_map c0453000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttySAC2,115200 init=/sbin/init ro  mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(qi),0x00040000(depr-ub-env),0x00800000(kernel),0x000a0000(depr),0x00040000(identity-ext2),0x0f6a0000(rootfs)  rootfstype=ubifs  ubi.mtd=6,2048  root=ubi0:om-gta02-rootfs init=/bin/ash loglevel=8
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 125480k/125480k available, 5592k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03b3600   (3758 kB)
[    0.000000]       .init : 0xc03b4000 - 0xc03d6000   ( 136 kB)
[    0.000000]       .data : 0xc03d6000 - 0xc0402440   ( 178 kB)
[    0.000000]        .bss : 0xc0402464 - 0xc045270c   ( 321 kB)
[    0.000000] NR_IRQS:99
[    0.000000] irq: clearing pending ext status 000b02f0
[    0.000000] irq: clearing pending ext status 000902d0
[    0.000000] irq: clearing subpending status 000001c0
[    0.000000] irq: clearing subpending status 00000080
[    0.000000] timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
[    0.000000] sched_clock: 32 bits at 200 Hz, resolution 5000000ns, wraps every 4294967291ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
[    0.040000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.040000] Initializing cgroup subsys cpuacct
[    0.040000] Initializing cgroup subsys devices
[    0.040000] Initializing cgroup subsys freezer
[    0.040000] CPU: Testing write buffer coherency: ok
[    0.040000] Setting up static identity map for 0x302d26f8 - 0x302d2774
[    0.045000] devtmpfs: initialized
[    0.045000] gpiochip_add: registered GPIOs 0 to 23 on device: GPIOA
[    0.045000] gpiochip_add: registered GPIOs 32 to 47 on device: GPIOB
[    0.050000] gpiochip_add: registered GPIOs 64 to 79 on device: GPIOC
[    0.050000] gpiochip_add: registered GPIOs 96 to 111 on device: GPIOD
[    0.050000] gpiochip_add: registered GPIOs 128 to 143 on device: GPIOE
[    0.050000] gpiochip_add: registered GPIOs 160 to 167 on device: GPIOF
[    0.050000] gpiochip_add: registered GPIOs 192 to 207 on device: GPIOG
[    0.050000] gpiochip_add: registered GPIOs 224 to 234 on device: GPIOH
[    0.050000] gpiochip_add: registered GPIOs 256 to 271 on device: GPIOJ
[    0.050000] dummy: 
[    0.050000] NET: Registered protocol family 16
[    0.055000] S3C Power Management, Copyright 2004 Simtec Electronics
[    0.055000] S3C2442: Initialising architecture
[    0.055000] S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics
[    0.055000] DMA channel 0 at c8804000, irq 33
[    0.055000] DMA channel 1 at c8804040, irq 34
[    0.055000] DMA channel 2 at c8804080, irq 35
[    0.055000] DMA channel 3 at c88040c0, irq 36
[    0.055000] S3C244X: Clock Support, DVS off
[    0.065000] bio: create slab <bio-0> at 0
[    0.065000] s3c-i2c s3c2440-i2c: slave address 0x10
[    0.065000] s3c-i2c s3c2440-i2c: bus frequency set to 97 KHz
[    0.075000] pcf50633 0-0073: Probed device version 19 variant 132
[    0.095000] wake enabled for irq 53
[    0.095000] auto: 3300 mV normal 
[    0.110000] down1: 1300 <--> 1600 mV at 1300 mV normal 
[    0.110000] down1: Voltage range but no REGULATOR_CHANGE_VOLTAGE
[    0.110000] down2: 1800 mV normal 
[    0.110000] ldo1: 3300 mV normal 
[    0.115000] ldo2: 3300 mV normal 
[    0.115000] ldo3: 3000 mV normal 
[    0.115000] ldo4: 3200 mV normal 
[    0.120000] ldo5: 3000 mV normal 
[    0.120000] ldo6: 3000 mV normal 
[    0.120000] hcldo: 2000 <--> 3300 mV at 3000 mV normal 
[    0.125000] memldo: 1800 mV normal 
[    0.125000] s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
[    0.125000] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.170000] NET: Registered protocol family 2
[    0.170000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.175000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.175000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.175000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.175000] TCP: reno registered
[    0.175000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.175000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.175000] NET: Registered protocol family 1
[    0.175000] s3c-adc s3c24xx-adc: operating without regulator "vdd" .
[    0.175000] platform s3c24xx-adc: Driver s3c-adc requests probe deferral
[    0.180000] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.180000] msgmni has been set to 245
[    0.185000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.185000] io scheduler noop registered
[    0.185000] io scheduler deadline registered (default)
[    0.190000] s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440
[    0.190000] s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440
[    0.190000] s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440

Denis.

#1 lore raw

PATCH 1/1 s3c24xx: Fix level irqs on external interrupts.

From: Lars-Peter Clausen <[email protected]>

Although the external interrupts support level and edge triggered irqs their handler is currently always set to handle_edge_irq().
While being technically wrong for a level triggered irq to be handled by handle_edge_irq() it will cause serious problems in combination with a oneshot irq. handle_edge_irq() will unmask the irq immediately and as a result the irq will be triggered again before the threaded irq handler had a chance to run and clear the irq source.

Thus level triggered irqs should be handled by handle_level_irq. According to the specs the irq controller will remember if an irq has been triggered while it had been masked and will issue it when the irq gets unmasked. Thus it is sufficient to use handle_level_irq() for edge triggered irqs as well. Hence handle_level_irq() can always be used for external interrupts.

---
 arch/arm/plat-s3c24xx/irq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/plat-s3c24xx/irq.c +2 -2
index bc42c04..a429996 100644
@@ -625,14 +625,14 @@ void __init s3c24xx_init_irq(void)
 	for (irqno = IRQ_EINT0; irqno <= IRQ_EINT3; irqno++) {
 		irqdbf("registering irq %d (ext int)\n", irqno);
 		irq_set_chip_and_handler(irqno, &s3c_irq_eint0t4,
-					 handle_edge_irq);
+					 handle_level_irq);
 		set_irq_flags(irqno, IRQF_VALID);
 	}
 
 	for (irqno = IRQ_EINT4; irqno <= IRQ_EINT23; irqno++) {
 		irqdbf("registering irq %d (extended s3c irq)\n", irqno);
 		irq_set_chip_and_handler(irqno, &s3c_irqext_chip,
-					 handle_edge_irq);
+					 handle_level_irq);
 		set_irq_flags(irqno, IRQF_VALID);
 	}
 
Signature · 1 line
1.7.4.1