mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: TAKADA Yoshihito <takada@mbf.nifty.com>
To: bzolnier@gmail.com
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: kernel 2.6.25 with ide driver cs5520 does not boot.
Date: Fri, 30 May 2008 14:01:40 +0900 (JST)	[thread overview]
Message-ID: <20080530.140140.193692749.takada@mbf.nifty.com> (raw)
In-Reply-To: <200805150028.04625.bzolnier@gmail.com>

From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: Re: kernel 2.6.25 with ide driver cs5520 does not boot.
Date: Thu, 15 May 2008 00:28:04 +0200

Hi. sorry, I'm too late.
I tested the patch to re-enable DMA. But, this patch has no effect. It cannot boot.
printk() message disappeared.

> On Wednesday 14 May 2008, Bartlomiej Zolnierkiewicz wrote:
> > On Friday 09 May 2008, TAKADA Yoshihito wrote:
> > > Hi.
> > > 
> > > From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> > > Subject: Re: kernel 2.6.25 with ide driver cs5520 does not boot.
> > > Date: Fri, 9 May 2008 11:27:53 +0200
> > > 
> > > > On Friday 09 May 2008, TAKADA Yoshihito wrote:
> > > > > Thanks for quick reply.
> > > > > 
> > > > > I tried 2.6.26rc1. It hangs same as 2.6.25.
> > > > > kernel 2.6.26rc1 with cs5520 cannot boot. cs5520 scans ide0 and ide1.
> > > > > It seems 2nd port DMA base issue was solved.
> > > > 
> > > > [...]
> > > > 
> > > > Thanks.
> > > > 
> > > > The following patch for 2.6.26-rc1 disables VDMA, please give it a try
> > > > (I haven't time to fully audit VDMA support yet but lets see if it is
> > > > the main source of the problems).
> > > 
> > > I applied the patch. But kernel was hung.
> > > And I attempt to kill IDE_HFLAG_CS5520. It cannot boot, oo.
> > > 
> > >   kill IDE_HFLAG_VDMA  : hang  
> > >   kill IDE_HFLAG_CS5520: hang
> > >   kill both flags      : boot
> > 
> > Thanks for investigating this - I forgot that currently VDMA and CS5520
> > host flags use the same bit (so it also needs to be fixed).
> > 
> > I'm going to send the following patch to Linus (please verify it):
> > 
> > From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> > Subject: [PATCH] cs5520: disable VDMA
> 
> [...]
> 
> Please also try 2.6.26-rc2 without the above patch but with the following
> patch applied instead - according to comments in OpenFirmware & pata_cs5520
> code 0x60 register contains bus-master enable bit, it could be that it was
> left disabled by BIOS and we need to explicitely enable it (if somebody has
> CX5510 or CX5520 datasheet please verify this + send me a copy if possible).
> 
> ---
>  drivers/ide/pci/cs5520.c |    8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> Index: b/drivers/ide/pci/cs5520.c
> ===================================================================
> --- a/drivers/ide/pci/cs5520.c
> +++ b/drivers/ide/pci/cs5520.c
> @@ -147,6 +147,7 @@ static int __devinit cs5520_init_one(str
>  {
>  	const struct ide_port_info *d = &cyrix_chipsets[id->driver_data];
>  	u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };
> +	u8 pcicfg;
>  
>  	ide_setup_pci_noise(dev, d);
>  
> @@ -163,6 +164,13 @@ static int __devinit cs5520_init_one(str
>  		return -ENODEV;
>  	}
>  
> +	pci_read_config_byte(dev, 0x60, &pcicfg);
> +
> +	if ((pcicfg & 0x40) == 0) {
> +		printk(KERN_WARNING "cs5520: DMA mode disabled. Enabling.\n");
> +		pci_write_config_byte(dev, 0x60, pcicfg | 0x40);
> +	}
> +
>  	/*
>  	 *	Now the chipset is configured we can let the core
>  	 *	do all the device setup for us
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

  reply	other threads:[~2008-05-30  5:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08  7:58 TAKADA Yoshihito
2008-05-08 13:07 ` Bartlomiej Zolnierkiewicz
2008-05-09  2:22   ` TAKADA Yoshihito
2008-05-09  9:27     ` Bartlomiej Zolnierkiewicz
2008-05-09 12:56       ` TAKADA Yoshihito
2008-05-14 20:44         ` Bartlomiej Zolnierkiewicz
2008-05-14 22:28           ` Bartlomiej Zolnierkiewicz
2008-05-30  5:01             ` TAKADA Yoshihito [this message]
2008-06-11 20:27               ` Bartlomiej Zolnierkiewicz
2008-05-18  4:37           ` TAKADA Yoshihito
2008-05-18 18:14             ` Bartlomiej Zolnierkiewicz

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=20080530.140140.193692749.takada@mbf.nifty.com \
    --to=takada@mbf.nifty.com \
    --cc=bzolnier@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®