Re: [BUG] 2.6.21-rc7 hpt366 driver broken

From: Mike Mattie
Date: Mon Apr 16 2007 - 22:43:34 EST


--Sig_yz5FbF.F9xdDKHYmqRLL_EN
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Mon, 16 Apr 2007 18:21:12 -0700
Mike Mattie <codermattie@xxxxxxxxx> wrote:

> On Mon, 16 Apr 2007 16:36:13 +0200
> Adrian Bunk <bunk@xxxxxxxxx> wrote:
>=20
> > [ Cc's added, full bug report was in
> > http://lkml.org/lkml/2007/4/16/18 ]
> >=20
> > On Mon, Apr 16, 2007 at 04:38:22AM -0700, Mike Mattie wrote:
> > > On Sun, 15 Apr 2007 22:48:46 -0700
> > > Mike Mattie <codermattie@xxxxxxxxx> wrote:
> > >=20
> > > > Hello,
> > > >=20
> > > > I am testing the 2.6.21-rc7 kernel release. The IDE hpt366
> > > > driver is crashing hanging the boot. I have basically the same
> > > > config as 2.6.20.7 which works fine (except for netconsole
> > > > mentioned in a previous mail).
> > > >=20
> > > > here is the hand-copied info:
> > > >=20
> > > > * "unable to handle paging request" , null deref
> > > > * EIP @ init_chipset_hpt366
> > > >=20
> > >=20
> > > > I am running a git-bisect to see if I can resolve it to a
> > > > commit.
> > >=20
> > > This was identified as the first broken commit:
> > >=20
> > > commit 7b73ee05d0acb926923d43d78b61add776ea4bb1
> > > Author: Sergei Shtylyov <sshtylyov@xxxxxxxxxxxxx>
> > > Date: Wed Feb 7 18:18:16 2007 +0100
> > >=20
> > > hpt366: init code rewrite
> > >=20
> > > Reverting is conflicted so it will be a bit longer before I
> > > pin-point any other build-breaks.
> >=20
> > Thanks for your report.
> >=20
> > Can you use a digital camera for taking a photograph of the crash?
>=20
> I can later on tonight, by about 11PM west coast. I also saw
> some hex offsets after the function pointed to by EIP, is there
> a way to decode that to a line number ? I have debugging symbols
> enabled.
>=20
> I am also doing printk breadcrumbs to pin it down to a block
> or a line.

I have narrowed the crash with breadcrumbs down to these lines:


/*
* Only try the DPLL if we don't have a table for the PCI clock that
* we are running at for HPT370/A, always use it for anything newer...
*
* NOTE: Using the internal DPLL results in slow reads on 33 MHz PCI.
* We also don't like using the DPLL because this causes glitches
* on PRST-/SRST- when the state engine gets reset...
*/
if (info->chip_type >=3D HPT374 || info->settings[clock] =3D=3D NULL) {
u16 f_low, delta =3D pci_clk < 50 ? 2 : 4;
int adjust;

printk(KERN_INFO "inside the if\n");

/*
* Select 66 MHz DPLL clock only if UltraATA/133 mode is
* supported/enabled, use 50 MHz DPLL clock otherwise...
*/
if (info->max_mode =3D=3D 0x04) {
dpll_clk =3D 66;
clock =3D ATA_CLOCK_66MHZ;
} else if (dpll_clk) { /* HPT36x chips don't have DPLL */
dpll_clk =3D 50;
clock =3D ATA_CLOCK_50MHZ;
}

if (info->settings[clock] =3D=3D NULL) {
printk(KERN_ERR "%s: unknown bus timing!\n", name);
kfree(info);
return -EIO;
}

printk(KERN_INFO "select DPLL clock\n");

This is right around 1171 , (skewed by the crumbs I added). The last
message I receive is "inside if" , it dies before "select DPLL clock".

Without knowing much about the structs I am not sure what to print-out.
I will narrow it further, and maybe even compare against what the old
working kernel had for variable values. That would take some time though.

>=20
> > cu
> > Adrian
> >=20
> > --
> >=20
> > "Is there not promise of rain?" Ling Tan asked suddenly out
> > of the darkness. There had been need of rain for many days.
> > "Only a promise," Lao Er said.
> > Pearl S. Buck - Dragon Seed
> >=20

--Sig_yz5FbF.F9xdDKHYmqRLL_EN
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGJDRAdfRchrkBInkRAhJSAJ0ZbTEr0Oq66zoa2UYm/ZAqXAlS6wCgkEQ7
dbBKwqG1euN6f/ubztG1O30=
=TQXk
-----END PGP SIGNATURE-----

--Sig_yz5FbF.F9xdDKHYmqRLL_EN--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/