From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartlomiej Zolnierkiewicz Subject: Re: Kernel Panic 2.6.29.6 AMD Geode (in CS5536 IDE ?) Date: Mon, 4 May 2009 10:47:33 +0200 Message-ID: <200905041047.33781.bzolnier@gmail.com> References: <6849c8890905040053jdf71a23u746706b2b7cc798e@mail.gmail.com> <20090504080951.GA21501@liondog.tnic> Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-qy0-f196.google.com ([209.85.221.196]:41538 "EHLO mail-qy0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752042AbZEDInj convert rfc822-to-8bit (ORCPT ); Mon, 4 May 2009 04:43:39 -0400 In-Reply-To: <20090504080951.GA21501@liondog.tnic> Content-Disposition: inline Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: petkovbb@gmail.com Cc: TJ , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org On Monday 04 May 2009 10:09:51 Borislav Petkov wrote: > (adding Bart, linux-ide to CC) >=20 > On Mon, May 04, 2009 at 09:53:34AM +0200, TJ wrote: > > Hi, > >=20 > > I'm not on the mailing list, so please cc me. If needed I can provi= de > > further information. > >=20 > > I am trying to build purpose built 2.6.29.2 kernel for my ALIX.2 > > [http://www.pcengines.ch/alix2d2.htm] instead of the generic all > > modular 2.6.26 kernel in Debian. > > The idea being is to have a slimmer kernel, no initrd*, and to incl= ude > > ALIX specific features that the Debian kernel does not have. > >=20 > > (*support is enabled, but everything needed for boot should be buil= t-in) > >=20 > > It is not my first kernel build, I tend to do this for all my > > machines. Although it is the first time I have tried to build for t= his > > system. > >=20 > > My build environment is as follows: > > The host is a 64bit Debian (testing) MacBook pro. However I have a > > 100% 32bit Debian (stable) chroot install, which I also used for th= is. > > I explicitly set ARCH=3Di386 otherwise my 64bit CPU is detected. Th= is is > > in effect a cross build, but not for an alien architecture and usin= g > > the normal host gcc. > > (gcc (Debian 4.3.2-1.1) 4.3.2) > >=20 > > sudo chroot /blah > > cd /usr/src/linux-source > > make ARCH=3Di386 clean > > make ARCH=3Di386 menuconfig > > make-kpkg --us -uc --arch i386 binary-arch > >=20 > > scp, install the package and then boot. > >=20 > > (console seems to be repeated because it is given via grub and comp= lied in) > >=20 > > [Linux-bzImage, setup=3D0x2e00, size=3D0x1b0010] > > Probing EDD (edd=3Doff to disable)... ok > > Linux version 2.6.29 (2.6.29) (root@vorchan) (gcc version 4.3.2 > > (Debian 4.3.2-1.1) ) #1 Fri May 1 19:19:04 CEST 2009 > > KERNEL supported cpus: > > Intel GenuineIntel > > AMD AuthenticAMD > > NSC Geode by NSC > > Cyrix CyrixInstead > > Centaur CentaurHauls > > Transmeta GenuineTMx86 > > Transmeta TransmetaCPU > > UMC UMC UMC UMC > > PAT not supported by CPU. > > BIOS-provided physical RAM map: > > BIOS-e820: 0000000000000000 - 00000000000a0000 (usable) > > BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) > > BIOS-e820: 0000000000100000 - 0000000010000000 (usable) > > BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved) > > DMI not present or invalid. > > last_pfn =3D 0x10000 max_arch_pfn =3D 0x100000 > > Scanning 1 areas for low memory corruption > > modified physical RAM map: > > modified: 0000000000000000 - 0000000000001000 (usable) > > modified: 0000000000001000 - 0000000000010000 (reserved) > > modified: 0000000000010000 - 0000000000091000 (usable) > > modified: 00000000000f0000 - 0000000000100000 (reserved) > > modified: 0000000000100000 - 0000000010000000 (usable) > > modified: 00000000fff00000 - 0000000100000000 (reserved) > > ACPI Error (tbxfroot-0219): A valid RSDP was not found [20081204] > > 0MB HIGHMEM available. > > 256MB LOWMEM available. > > mapped low ram: 0 - 10000000 > > low ram: 00000000 - 10000000 > > bootmap 00010000 - 00012000 > > (6 early reservations) =3D=3D> bootmem [0000000000 - 0010000000] > > #0 [0000000000 - 0000001000] BIOS data page =3D=3D> [0000000000= - > > 0000001000] > > #1 [0000200000 - 000058c8f8] TEXT DATA BSS =3D=3D> [0000200000= - > > 000058c8f8] > > #2 [000058d000 - 0000590000] INIT_PG_TABLE =3D=3D> [000058d000= - > > 0000590000] > > #3 [000009f000 - 0000100000] BIOS reserved =3D=3D> [000009f000= - > > 0000100000] > > #4 [0000010000 - 0000010000] PGTABLE > > #5 [0000010000 - 0000012000] BOOTMAP =3D=3D> [0000010000= - > > 0000012000] > > Zone PFN ranges: > > DMA 0x00000000 -> 0x00001000 > > Normal 0x00001000 -> 0x00010000 > > HighMem 0x00010000 -> 0x00010000 > > Movable zone start PFN for each node > > early_node_map[3] active PFN ranges > > 0: 0x00000000 -> 0x00000001 > > 0: 0x00000010 -> 0x00000091 > > 0: 0x00000100 -> 0x00010000 > > No local APIC present or hardware disabled > > PM: Registered nosave memory: 0000000000001000 - 0000000000010000 > > PM: Registered nosave memory: 0000000000091000 - 00000000000f0000 > > PM: Registered nosave memory: 00000000000f0000 - 0000000000100000 > > Allocating PCI resources starting at 20000000 (gap: 10000000:eff000= 00) > > Built 1 zonelists in Zone order, mobility grouping on. Total pages= : > > 64898 > > Kernel command line: console=3DttyS0,38400 > > BOOT_IMAGE=3D/boot/vmlinuz-2.6.29 root=3D/dev/hda2 ro console=3Dtty= S0,38400 > > Initializing CPU#0 > > PID hash table entries: 1024 (order: 10, 4096 bytes) > > Fast TSC calibration using PIT > > Detected 498.050 MHz processor. > > console [ttyS0] enabled > > Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) > > Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) > > Memory: 255536k/262144k available (2129k kernel code, 5924k reserve= d, > > 878k data, 300k init, 0k highmem) > > virtual kernel memory layout: > > fixmap : 0xfffac000 - 0xfffff000 ( 332 kB) > > pkmap : 0xff800000 - 0xffc00000 (4096 kB) > > vmalloc : 0xd0800000 - 0xff7fe000 ( 751 MB) > > lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) > > .init : 0xc04f4000 - 0xc053f000 ( 300 kB) > > .data : 0xc0414513 - 0xc04f00d8 ( 878 kB) > > .text : 0xc0200000 - 0xc0414513 (2129 kB) > > Checking if this processor honours the WP bit even in supervisor > > mode...Ok. > > SLUB: Genslabs=3D12, HWalign=3D32, Order=3D0-3, MinObjects=3D0, CPU= s=3D1, > > Nodes=3D1 > > Calibrating delay loop (skipped), value calculated using timer > > frequency.. 996.10 BogoMIPS (lpj=3D1992200) > > Mount-cache hash table entries: 512 > > CPU: L1 I Cache: 64K (32 bytes/line), D cache 64K (32 bytes/line) > > CPU: L2 Cache: 128K (32 bytes/line) > > CPU: Geode(TM) Integrated Processor by AMD PCS stepping 02 > > Checking 'hlt' instruction... OK. > > Freeing SMP alternatives: 0k freed > > net_namespace: 940 bytes > > regulator: core version 0.5 > > NET: Registered protocol family 16 > > geode-mfgpt: 8 MFGPT timers available. > > geode-mfgpt: Registered timer 0 > > mfgpt-timer: Registering MFGPT timer 0 as a clock event, using IRQ= 7 > > EISA bus registered > > PCI: PCI BIOS revision 2.10 entry at 0xfced9, last bus=3D0 > > PCI: Using configuration type 1 for base access > > bio: create slab at 0 > > ACPI: Interpreter disabled. > > SCSI subsystem initialized > > usbcore: registered new interface driver usbfs > > usbcore: registered new interface driver hub > > usbcore: registered new device driver usb > > PCI: Probing PCI hardware > > pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold > > pci 0000:00:09.0: PME# disabled > > pci 0000:00:0b.0: PME# supported from D0 D1 D2 D3hot D3cold > > pci 0000:00:0b.0: PME# disabled > > pci 0000:00:0f.4: PME# supported from D0 D3hot D3cold > > pci 0000:00:0f.4: PME# disabled > > pci 0000:00:0f.5: PME# supported from D0 D3hot D3cold > > pci 0000:00:0f.5: PME# disabled > > pnp: PnP ACPI: disabled > > NET: Registered protocol family 2 > > IP route cache hash table entries: 2048 (order: 1, 8192 bytes) > > TCP established hash table entries: 8192 (order: 4, 65536 bytes) > > TCP bind hash table entries: 8192 (order: 3, 32768 bytes) > > TCP: Hash tables configured (established 8192 bind 8192) > > TCP reno registered > > NET: Registered protocol family 1 > > platform rtc_cmos: registered platform RTC device (no PNP device > > found) > > Scanning for low memory corruption every 60 seconds > > squashfs: version 4.0 (2009/01/31) Phillip Lougher > > JFFS2 version 2.2. (NAND) (SUMMARY) =EF=BF=BD=C2=A9 2001-2006 Red = Hat, Inc. > > msgmni has been set to 499 > > alg: No test for stdrng (krng) > > io scheduler noop registered > > io scheduler deadline registered (default) > > AMD Geode RNG detected > > Hangcheck: starting hangcheck timer 0.9.0 (tick is 180 seconds, mar= gin > > is 60 seconds). > > Hangcheck: Using get_cycles(). > > Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled > > =EF=BF=BDserial8250: ttyS0 at I/O 0x3f8 (irq =3D 4) is a NS16550A > > serial8250: ttyS1 at I/O 0x2f8 (irq =3D 3) is a NS16550A > > loop: module loaded > > via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker > > eth0: VIA Rhine III (Management Adapter) at 0xe0000000, > > 00:0d:b9:18:2d:0c, IRQ 10. > > eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Li= nk c5e1. > > eth1: VIA Rhine III (Management Adapter) at 0xe0040000, > > 00:0d:b9:18:2d:0d, IRQ 15. > > eth1: MII PHY found at address 1, status 0x7849 advertising 05e1 Li= nk 0000. > > Uniform Multi-Platform E-IDE driver > > cs5536 0000:00:0f.2: IDE controller (0x1022:0x209a rev 0x01) > > cs5536 0000:00:0f.2: not 100% native mode: will probe irqs later > > BUG: unable to handle kernel NULL pointer dereference at (null) > > IP: [<(null)>] (null) > > *pde =3D 00000000 > > Oops: 0000 [#1] > > last sysfs file: > > Modules linked in: > >=20 > > Pid: 1, comm: swapper Not tainted (2.6.29 #1) > > EIP: 0060:[<00000000>] EFLAGS: 00010246 CPU: 0 > > EIP is at 0x0 > > EAX: cf948000 EBX: cf948000 ECX: cf948000 EDX: c042d248 > > ESI: c042d178 EDI: cf819c58 EBP: cf819c00 ESP: cf81dd5c > > DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 > > Process swapper (pid: 1, ti=3Dcf81c000 task=3Dcf81a000 task.ti=3Dcf= 81c000) > > Stack: > > c035faab cf948000 c042d178 0000ff00 c03602bf cf948000 00000000 cf9= 4803c > > c042d178 c035e4fd cf81deb4 cf83ac00 cf948000 00000000 cf819cc0 018= 19c00 > > 00000000 cf819c00 cf83ac00 c042d178 c036024a 00000000 000001f0 000= 001f1 > > Call Trace: > > [] ide_pci_check_simplex+0x4a/0x7b > > [] ide_hwif_setup_dma+0x5b/0xc4 > > [] ide_host_register+0x150/0x50b > > [] ide_pci_init_one+0xa2/0xbc > > [] idr_get_empty_slot+0x14d/0x234 > > [] ida_get_new_above+0xbb/0x172 > > [] raw_pci_read+0x4d/0x55 > > [] pci_read+0x1c/0x21 > > [] pci_bus_read_config_dword+0x28/0x3f > > [] cs5536_init_one+0x4b/0x4e > > [] local_pci_probe+0xb/0xc > > [] pci_device_probe+0x44/0x66 > > [] driver_probe_device+0x98/0x126 > > [] __driver_attach+0x49/0x67 > > [] bus_for_each_dev+0x31/0x56 > > [] driver_attach+0x11/0x13 > > [] __driver_attach+0x0/0x67 > > [] bus_add_driver+0x91/0x1a1 > > [] cs5536_init+0x0/0x11 > > [] driver_register+0x7d/0xd3 > > [] cs5536_init+0x0/0x11 > > [] __pci_register_driver+0x2b/0x57 > > [] _stext+0x43/0x107 > > [] create_proc_entry+0x73/0x85 > > [] register_irq_proc+0x61/0x7a > > [] kernel_init+0x6f/0xbb > > [] kernel_init+0x0/0xbb > > [] kernel_thread_helper+0x7/0x10 > > Code: Bad EIP value. > > EIP: [<00000000>] 0x0 SS:ESP 0068:cf81dd5c > > ---[ end trace 1ed52fe562beb9cc ]--- > > Kernel panic - not syncing: Attempted to kill init! > >=20 > >=20 > > I have tried to tweak the config some more since I captured that du= mp, > > but they all die before reaching init as above. > > I've attached my latest config, which still gives the same error bu= t > > is not the exact one for the dump above. > >=20 > > Would be grateful for help, advice or a patch. If you need anything > > further from me please let me know. This problem is already fixed in Linus' tree -- somebody just needs to port it to 2.6.29 and then post it to stable@kernel.org for inclusion. =46rom 15da90b516e9da92cc1d90001e640fd6707d0e27 Mon Sep 17 00:00:00 200= 1 =46rom: Sergei Shtylyov Date: Sat, 18 Apr 2009 17:42:20 +0200 Subject: [PATCH] cs5536: define dma_sff_read_status() method The driver somehow got merged with the initializer for the dma_sff_read= _status() method missing which caused kernel panic on bootup. This should fix the kernel.org bug #13026... Signed-off-by: Sergei Shtylyov Reported-by: Arnd Hannemann Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/ide/cs5536.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/ide/cs5536.c b/drivers/ide/cs5536.c index 353a35b..0332a95 100644 --- a/drivers/ide/cs5536.c +++ b/drivers/ide/cs5536.c @@ -236,6 +236,7 @@ static const struct ide_dma_ops cs5536_dma_ops =3D = { .dma_test_irq =3D ide_dma_test_irq, .dma_lost_irq =3D ide_dma_lost_irq, .dma_timer_expiry =3D ide_dma_sff_timer_expiry, + .dma_sff_read_status =3D ide_dma_sff_read_status, }; =20 static const struct ide_port_info cs5536_info =3D { --=20 1.6.0.6