From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Andrew Morton <akpm@osdl.org>, Steve Fox <drfickle@us.ibm.com>,
pbadari@gmail.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.16-rc6-mm2
Date: Tue, 13 Jun 2006 18:10:23 +0400 [thread overview]
Message-ID: <448EC74F.30104@ru.mvista.com> (raw)
In-Reply-To: <20060613065443.7f302319.akpm@osdl.org>
Hello.
Andrew Morton wrote:
> On Mon, 12 Jun 2006 17:09:52 -0500
> Steve Fox <drfickle@us.ibm.com> wrote:
>>On Fri, 09 Jun 2006 21:40:24 -0700, Andrew Morton wrote:
>>>ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc6/2.6.17-rc6-mm2/
>>Boot fails on a ppc64 machine.
>>
>>[snip]
>>Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
>>ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
>>AMD8111: IDE controller at PCI slot 0000:00:04.1
>>AMD8111: chipset revision 3
>>AMD8111: 0000:00:04.1 (rev 03) UDMA133 controller
>>AMD8111: 100% native mode on irq 32
>> ide0: BM-DMA at 0x7c00-0x7c07<3>AMD8111: -- Error, unable to allocate DMA table.
>> ide1: BM-DMA at 0x7c08-0x7c0f<3>AMD8111: -- Error, unable to allocate DMA table.
>>hda: TOSHIBA MK4019GAXB, ATA DISK drive
>>Unable to handle kernel paging request for data at address 0x00000000
>>Faulting instruction address: 0xc000000000301240
>>cpu 0x1: Vector: 300 (Data Access) at [c000000002a13600]
>> pc: c000000000301240: .ide_config_drive_speed+0x228/0x624
>> lr: c0000000002f6c34: .amd_set_drive+0x7c/0x538
>> sp: c000000002a13880
>> msr: 8000000000009032
>> dar: 0
>> dsisr: 40000000
>> current = 0xc00000000ffd6820
>> paca = 0xc000000000590080
>> pid = 1, comm = idle
> Thanks. Reverting the below might fix it.
Frankly speaking, I don't see how that can be possible. I haven't touched
any *real* checks in ide_allocate_dma_engine(), so it should fail regardless
of my patch. I'd rather supposed that pci_alloc_consistent() had failed...
> From: Sergei Shtylylov <sshtylyov@ru.mvista.com>
> Release the DMA engine for the custom mapping IDE drivers also (for
> example, siimage.c does allocate it in both I/O-mapped and custom-mapped
> modes). Remove useless code from the error path of
> ide_allocate_dma_engine().
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
> Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
> Signed-off-by: Andrew Morton <akpm@osdl.org>
> ---
> drivers/ide/ide-dma.c | 16 +++++++---------
> 1 files changed, 7 insertions(+), 9 deletions(-)
> diff -puN drivers/ide/ide-dma.c~ide-always-release-dma-engine drivers/ide/ide-dma.c
> --- devel/drivers/ide/ide-dma.c~ide-always-release-dma-engine 2006-05-11 15:19:36.000000000 -0700
> +++ devel-akpm/drivers/ide/ide-dma.c 2006-05-11 15:19:36.000000000 -0700
> @@ -808,15 +808,14 @@ static int ide_release_iomio_dma(ide_hwi
> /*
> * Needed for allowing full modular support of ide-driver
> */
> -int ide_release_dma (ide_hwif_t *hwif)
> +int ide_release_dma(ide_hwif_t *hwif)
> {
> + ide_release_dma_engine(hwif);
> +
> if (hwif->mmio == 2)
> return 1;
> - if (hwif->chipset == ide_etrax100)
> - return 1;
> -
> - ide_release_dma_engine(hwif);
> - return ide_release_iomio_dma(hwif);
> + else
> + return ide_release_iomio_dma(hwif);
> }
>
> static int ide_allocate_dma_engine(ide_hwif_t *hwif)
> @@ -828,10 +827,9 @@ static int ide_allocate_dma_engine(ide_h
> if (hwif->dmatable_cpu)
> return 0;
>
> - printk(KERN_ERR "%s: -- Error, unable to allocate%s DMA table(s).\n",
> - hwif->cds->name, !hwif->dmatable_cpu ? " CPU" : "");
> + printk(KERN_ERR "%s: -- Error, unable to allocate DMA table.\n",
> + hwif->cds->name);
>
> - ide_release_dma_engine(hwif);
> return 1;
> }
MBR, Sergei
next prev parent reply other threads:[~2006-06-13 14:11 UTC|newest]
Thread overview: 82+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-10 4:40 2.6.16-rc6-mm2 Andrew Morton
2006-06-10 10:23 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-10 16:24 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-10 16:43 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-10 16:51 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-10 17:03 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-10 18:04 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-10 18:14 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-10 18:31 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-10 18:35 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-12 11:05 ` 2.6.16-rc6-mm2 Ingo Molnar
2006-06-12 11:48 ` 2.6.16-rc6-mm2 Ingo Molnar
2006-06-12 12:14 ` 2.6.16-rc6-mm2 Andi Kleen
2006-06-12 13:07 ` 2.6.16-rc6-mm2 Ingo Molnar
2006-06-12 13:41 ` 2.6.16-rc6-mm2 Andi Kleen
2006-06-13 3:28 ` 2.6.16-rc6-mm2 Keith Owens
2006-06-13 4:56 ` 2.6.16-rc6-mm2 Andi Kleen
2006-06-13 5:08 ` 2.6.16-rc6-mm2 Keith Owens
2006-06-13 5:18 ` 2.6.16-rc6-mm2 Andi Kleen
2006-06-13 5:43 ` 2.6.16-rc6-mm2 Nick Piggin
2006-06-13 5:48 ` 2.6.16-rc6-mm2 Andi Kleen
2006-06-13 11:45 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-13 12:41 ` 2.6.16-rc6-mm2 Keith Owens
2006-06-12 16:37 ` broken local_t on i386 Christoph Lameter
2006-06-12 16:48 ` Andi Kleen
2006-06-12 16:54 ` Christoph Lameter
2006-06-12 17:06 ` Andi Kleen
2006-06-12 17:11 ` Christoph Lameter
2006-06-12 17:29 ` Andi Kleen
2006-06-12 18:14 ` Lee Revell
2006-06-12 18:46 ` Alan Cox
2006-06-12 18:27 ` Christoph Lameter
2006-06-12 17:35 ` Andi Kleen
2006-06-12 18:42 ` Christoph Lameter
2006-06-12 17:55 ` Andi Kleen
2006-06-12 18:59 ` Christoph Lameter
2006-06-12 18:11 ` Andi Kleen
2006-06-12 19:15 ` Christoph Lameter
2006-06-13 3:36 ` Andi Kleen
2006-06-12 20:12 ` Alan Cox
2006-06-13 4:02 ` Andi Kleen
2006-06-12 13:50 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-12 14:20 ` 2.6.16-rc6-mm2 Ingo Molnar
2006-06-12 14:57 ` 2.6.16-rc6-mm2 Michal Piotrowski
[not found] ` <6bffcb0e0606101126v55cc20dbk275d8aa7fdcb0f1a@mail.gmail.com>
2006-06-10 18:36 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-10 19:08 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-10 16:58 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-10 14:56 ` 2.6.16-rc6-mm2 Martin J. Bligh
2006-06-10 16:43 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-10 16:18 ` 2.6.16-rc6-mm2 Dominik Karall
2006-06-10 16:25 ` 2.6.16-rc6-mm2 Michal Piotrowski
2006-06-10 17:42 ` 2.6.16-rc6-mm2 Dominik Karall
2006-06-10 18:43 ` 2.6.16-rc6-mm2 Rafael J. Wysocki
2006-06-11 10:17 ` 2.6.16-rc6-mm2 Jan Engelhardt
2006-06-11 10:58 ` 2.6.16-rc6-mm2 Rafael J. Wysocki
2006-06-12 16:56 ` 2.6.16-rc6-mm2 Zan Lynx
2006-06-12 17:35 ` 2.6.16-rc6-mm2 Cedric Le Goater
2006-06-12 22:16 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-13 0:24 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-14 21:56 ` 2.6.16-rc6-mm2 Trond Myklebust
2006-06-13 7:22 ` 2.6.16-rc6-mm2 Cedric Le Goater
2006-06-13 17:54 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-13 19:35 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-13 20:22 ` 2.6.16-rc6-mm2 Cedric Le Goater
2006-06-13 21:13 ` 2.6.16-rc6-mm2 Christoph Lameter
2006-06-13 21:50 ` 2.6.16-rc6-mm2 Cedric Le Goater
2006-06-12 18:19 ` 2.6.16-rc6-mm2 Badari Pulavarty
2006-06-13 13:54 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-13 17:04 ` 2.6.16-rc6-mm2 Badari Pulavarty
2006-06-12 22:09 ` 2.6.16-rc6-mm2 Steve Fox
2006-06-13 13:54 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-13 14:10 ` Sergei Shtylyov [this message]
2006-06-13 19:01 ` 2.6.16-rc6-mm2 Steve Fox
2006-06-13 21:43 ` 2.6.16-rc6-mm2 Andrew Morton
2006-06-13 21:51 ` 2.6.16-rc6-mm2 Badari Pulavarty
2006-06-13 22:36 ` 2.6.16-rc6-mm2 Steve Fox
-- strict thread matches above, loose matches on Subject: below --
2006-03-18 12:40 2.6.16-rc6-mm2 Andrew Morton
2006-03-18 20:21 ` 2.6.16-rc6-mm2 Rafael J. Wysocki
2006-03-18 20:54 ` 2.6.16-rc6-mm2 Andrew Morton
2006-03-18 21:24 ` 2.6.16-rc6-mm2 Rafael J. Wysocki
2006-03-22 8:41 ` 2.6.16-rc6-mm2 J.A. Magallon
2006-03-22 8:48 ` 2.6.16-rc6-mm2 Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=448EC74F.30104@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=akpm@osdl.org \
--cc=drfickle@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pbadari@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox