From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757876AbZDFSvo (ORCPT ); Mon, 6 Apr 2009 14:51:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755110AbZDFSvd (ORCPT ); Mon, 6 Apr 2009 14:51:33 -0400 Received: from mta-1.ms.rz.RWTH-Aachen.DE ([134.130.7.72]:41651 "EHLO mta-1.ms.rz.rwth-aachen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753664AbZDFSvc (ORCPT ); Mon, 6 Apr 2009 14:51:32 -0400 MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_DpmbSkla3uzpWmngqkkhEQ)" X-IronPort-AV: E=Sophos;i="4.39,331,1235948400"; d="scan'208";a="7476858" Message-id: <49DA4F19.3000007@nets.rwth-aachen.de> Date: Mon, 06 Apr 2009 20:51:05 +0200 From: Arnd Hannemann User-Agent: Thunderbird 2.0.0.21 (X11/20090319) To: Sergei Shtylyov Cc: Arnd Hannemann , LKML , "linux-ide@vger.kernel.org" Subject: Re: 2.6.29.1 BUG: unable to handle kernel NULL pointer dereference at (null) References: <49DA45C8.8070303@nets.rwth-aachen.de> <49DA4AB0.10505@ru.mvista.com> In-reply-to: <49DA4AB0.10505@ru.mvista.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --Boundary_(ID_DpmbSkla3uzpWmngqkkhEQ) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT Sergei Shtylyov schrieb: > Arnd Hannemann wrote: > > >> perhaps cs5536 is broken? >> > > Yes, it is. > > >> This is with one CF card present on ALIX 2c2: >> > > >> [ 2.857215] Uniform Multi-Platform E-IDE driver >> [ 2.871238] cs5536 0000:00:0f.2: IDE controller (0x1022:0x209a rev 0x01) >> [ 2.891486] cs5536 0000:00:0f.2: not 100% native mode: will probe >> irqs later >> [ 2.912718] BUG: unable to handle kernel NULL pointer dereference at >> (null) >> [ 2.933857] IP: [<(null)>] (null) >> [ 2.944014] *pde = 00000000 >> [ 2.952788] Oops: 0000 [#1] >> [ 2.956215] last sysfs file: >> [ 2.956215] Modules linked in: >> [ 2.956215] >> [ 2.956215] Pid: 1, comm: swapper Not tainted (2.6.29.1-ah #1) >> [ 2.956215] EIP: 0060:[<00000000>] EFLAGS: 00010246 CPU: 0 >> [ 2.956215] EIP is at 0x0 >> [ 2.956215] EAX: ce925400 EBX: ce925400 ECX: ce925400 EDX: c0372ebc >> [ 2.956215] ESI: c0372dec EDI: cf4aa858 EBP: cf416d14 ESP: cf416d04 >> [ 2.956215] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 >> [ 2.956215] Process swapper (pid: 1, ti=cf416000 task=cf41fb40 >> task.ti=cf416) >> [ 2.956215] Stack: >> [ 2.956215] c027815f ce925400 c0372dec 0000ff00 cf416d2c c0278722 >> cf4aa800 0 >> [ 2.956215] c0372dec ce92543c cf416d6c c0276a9e cf416d7c cf416e7c >> c0372dec 0 >> [ 2.956215] ce925400 00000000 c03e0c48 cf4aa8c0 01000005 c0372dec >> 00000000 0 >> [ 2.956215] Call Trace: >> [ 2.956215] [] ? ide_pci_check_simplex+0x4e/0x83 >> [ 2.956215] [] ? ide_hwif_setup_dma+0x63/0xcd >> [ 2.956215] [] ? ide_host_register+0x169/0x52f >> [ 2.956215] [] ? ide_pci_init_one+0xbe/0xd5 >> [ 2.956215] [] ? update_curr+0x60/0x93 >> [ 2.956215] [] ? idr_get_empty_slot+0x132/0x1f5 >> [ 2.956215] [] ? raw_pci_read+0x4c/0x57 >> [ 2.956215] [] ? pci_read+0x1d/0x23 >> [ 2.956215] [] ? pci_bus_read_config_dword+0x2c/0x44 >> [ 2.956215] [] ? cs5536_init_one+0x4f/0x54 >> [ 2.956215] [] ? local_pci_probe+0xe/0x10 >> [ 2.956215] [] ? pci_device_probe+0x4b/0x69 >> [ 2.956215] [] ? driver_probe_device+0x9b/0x112 >> [ 2.956215] [] ? __driver_attach+0x4c/0x6b >> [ 2.956215] [] ? bus_for_each_dev+0x36/0x57 >> [ 2.956215] [] ? driver_attach+0x14/0x16 >> [ 2.956215] [] ? __driver_attach+0x0/0x6b >> [ 2.956215] [] ? bus_add_driver+0x97/0x1a7 >> [ 2.956215] [] ? driver_register+0x71/0xcd >> [ 2.956215] [] ? __pci_register_driver+0x2e/0x5d >> [ 2.956215] [] ? cs5536_init+0x14/0x16 >> [ 2.956215] [] ? _stext+0x49/0x10b >> [ 2.956215] [] ? cs5536_init+0x0/0x16 >> [ 2.956215] [] ? proc_create_data+0x8a/0x8d >> [ 2.956215] [] ? register_irq_proc+0x6a/0x83 >> [ 2.956215] [] ? kernel_init+0x6d/0xbb >> [ 2.956215] [] ? kernel_init+0x0/0xbb >> [ 2.956215] [] ? kernel_thread_helper+0x7/0x10 >> [ 2.956215] Code: Bad EIP value. >> [ 2.956215] EIP: [<00000000>] 0x0 SS:ESP 0068:cf416d04 >> [ 3.638455] ---[ end trace f6947cc280ce4929 ]--- >> [ 3.652402] Kernel panic - not syncing: Attempted to kill init! >> > > The dma_sff_read_status() method isn't defined in the driver for some > reason. Try the attached patch please. > The patch didn't apply to 2.6.29.1, however the proposed change worked. Thanks for the quick answer! > >> Best regards, >> Arnd >> > > MBR, Sergei > Best regards, Arnd --Boundary_(ID_DpmbSkla3uzpWmngqkkhEQ) Content-type: text/x-patch; name=cs5536-define-dma_sff_read_status_2.6.29.1.patch Content-transfer-encoding: 7BIT Content-disposition: inline; filename=cs5536-define-dma_sff_read_status_2.6.29.1.patch --- linux-2.6.29.1.orig/drivers/ide/cs5536.c 2009-04-02 22:55:27.000000000 +0200 +++ linux-2.6.29.1/drivers/ide/cs5536.c 2009-04-06 20:41:15.000000000 +0200 @@ -237,6 +237,7 @@ .dma_test_irq = ide_dma_test_irq, .dma_lost_irq = ide_dma_lost_irq, .dma_timeout = ide_dma_timeout, + .dma_sff_read_status = ide_dma_sff_read_status, }; static const struct ide_port_info cs5536_info = { --Boundary_(ID_DpmbSkla3uzpWmngqkkhEQ)--