From patchwork Mon Jan 3 23:00:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislaw Gruszka X-Patchwork-Id: 77353 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 923AFB6EED for ; Tue, 4 Jan 2011 10:00:35 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750716Ab1ACXAe (ORCPT ); Mon, 3 Jan 2011 18:00:34 -0500 Received: from mx3.wp.pl ([212.77.101.7]:53397 "EHLO mx3.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750701Ab1ACXAd (ORCPT ); Mon, 3 Jan 2011 18:00:33 -0500 Received: (wp-smtpd smtp.wp.pl 14198 invoked from network); 4 Jan 2011 00:00:30 +0100 Received: from aaim151.neoplus.adsl.tpnet.pl (HELO localhost) (stf_xl@[83.4.220.151]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with AES128-SHA encrypted SMTP for ; 4 Jan 2011 00:00:30 +0100 Date: Tue, 4 Jan 2011 00:00:28 +0100 From: Stanislaw Gruszka To: Russell Whitaker Cc: linux-ide@vger.kernel.org Subject: Re: 2.6.35.9 bug shown in dmesg (fwd) Message-ID: <20110103230028.GA1456@localhost.localdomain> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [sdMk] Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Hi On Thu, Dec 30, 2010 at 12:57:41PM -0800, Russell Whitaker wrote: > Since sending the email below found some more info: > > Tried several kernels from 2.6.32.16 up - same problem. > > If I build kernel using "ATA/ATAPI/MFM/RLL=y" and right choices in > sub-menu (and fstab with hd...) There is no problem. > > Making change to "serial ATA (prod) and parallel ATA (experimental)=y" > the computer crashes during boot-up about 1/3 of the time. > > Hardware: > Tyan mb s2466 Tiger MPX (2 cpu) > 2 segate hd on primary ide > > If you send me a patch, will try it and let you know what happens. BUG is from amd76xrom MTD driver, there is some resources conflict. Below patch should fix oops in simple_map_write(), but not the conflict. Please apply it to confirm oops fix and to show us contents of /proc/iomem on ATA/ATAPI/MFM/RLL and on experimental parallel ATA for compare. Stanislaw --- From 8bcfe30f1c52b1fe61b2885731421ab5998f0629 Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Mon, 3 Jan 2011 23:32:34 +0100 Subject: [PATCH] amd76xrom: fix oops at boot when resources are not available For some unknown reason resources needed by amd76xrom driver can not be available. Instead of return error, driver crash the kernel with messages like below. Patch fix that. amd76xrom" amd76xrom_init_one(): Unable to register resource 0x00000000ffc00000-0x00000000ffffffff - kernel bug? BUG: unable to handle kernel paging request at f862aaa0 IP: [] simple_map_write+0x82/0xbb [map_funcs] *pde = 36ad2067 *pte = 00000000 Oops: 0002 [#1] SMP last sysfs file: /sys/devices/pci0000:00/0000:00:07.1/host0/target0:0:1/0:0:1:0/block/sdb/removable Modules linked in: rtc_core thermal_sys jedec_probe serio_raw rtc_lib snd_ca0106 snd_rawmidi snd_seq_device snd_ac97_codec cfi_probe hwmon gen_probe cfi_util amd76xrom(+) ac97_bus snd_pcm snd_timer container mtd amd_rng snd amd_k7_agp chipreg map_funcs +snd_page_alloc agpgart button Pid: 690, comm: modprobe Not tainted 2.6.35.9-smp #1 S2466 TIGER MPX/Unknown EIP: 0060:[] EFLAGS: 00010212 CPU: 1 EIP is at simple_map_write+0x82/0xbb [map_funcs] EAX: 000000aa EBX: 00000020 ECX: 00000008 EDX: 000000aa ESI: f6869a48 EDI: f862aaa0 EBP: f6869a74 ESP: f6869a48 DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 Process modprobe (pid: 690, ti=f6868000 task=f738ecb0 task.ti=f6868000) Stack: 000000aa 000000aa 000000aa 000000aa 000000aa 000000aa 000000aa 000000aa <0> 00000008 f6869b84 f6869a9c f6869d90 f8159ad4 000000aa 000000aa 000000aa <0> 000000aa 000000aa 000000aa 000000aa 000000aa 000aaaa0 00000000 00000004 Call Trace: [] ? cfi_qry_mode_on+0xc74/0x1130 [cfi_util] [] ? jedec_probe_chip+0x6fc/0x1394 [jedec_probe] [] ? cfi_probe_chip+0x41/0x48c [cfi_probe] [] ? mtd_do_chip_probe+0xaa/0x358 [gen_probe] [] ? cfi_probe+0xd/0x10 [cfi_probe] [] ? do_map_probe+0x24/0x73 [chipreg] [] ? init_amd76xrom+0x21a/0x3d2 [amd76xrom] [] ? do_one_initcall+0x2d/0x180 [] ? init_amd76xrom+0x0/0x3d2 [amd76xrom] [] ? sys_init_module+0x9b/0x1e0 [] ? sys_write+0x3d/0x70 [] ? syscall_call+0x7/0xb Code: 7f 17 f0 83 04 24 00 8b 5d f4 8b 75 f8 8b 7d fc 89 ec 5d c3 90 8d 74 26 00 01 cf 81 fb ff 01 00 00 77 2e 89 d9 c1 e9 02 8d 75 d4 a5 89 d9 83 e1 03 74 02 f3 a4 eb ca 90 01 cf 88 07 eb c3 66 EIP: [] simple_map_write+0x82/0xbb [map_funcs] SS:ESP 0068:f6869a48 CR2: 00000000f862aaa0 Reported-by: Russell Whitaker Signed-off-by: Stanislaw Gruszka --- drivers/mtd/maps/amd76xrom.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/maps/amd76xrom.c b/drivers/mtd/maps/amd76xrom.c index 19fe92d..370509a 100644 --- a/drivers/mtd/maps/amd76xrom.c +++ b/drivers/mtd/maps/amd76xrom.c @@ -154,6 +154,7 @@ static int __devinit amd76xrom_init_one (struct pci_dev *pdev, __func__, (unsigned long long)window->rsrc.start, (unsigned long long)window->rsrc.end); + return -EBUSY; }