From: "Loren M. Lang" <lorenl@alzatex.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: "Loren M. Lang" <lorenl@alzatex.com>, linux-kernel@vger.kernel.org
Subject: Re: RocketPoint 1520 [hpt366] fails clock stabilization
Date: Fri, 30 Sep 2005 02:33:55 -0700 [thread overview]
Message-ID: <20050930093355.GB22233@alzatex.com> (raw)
In-Reply-To: <1128036611.9290.3.camel@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 2883 bytes --]
On Fri, Sep 30, 2005 at 12:30:11AM +0100, Alan Cox wrote:
> On Iau, 2005-09-29 at 03:33 -0700, Loren M. Lang wrote:
> > Please CC me as I'm not on the list.
> >
> > I just purchased a HighPoint Rocket 1520 SATA controller. There seems
> > to be no libata driver (yet), but there is an ide driver, hpt366. When
>
> Is this 302 or 302N based (what does lspci -vxx say about it ?)
$ lspci -vxx
0000:02:0c.0 RAID bus controller: Triones Technologies, Inc. HPT372A
(rev 02)
Subsystem: Triones Technologies, Inc.: Unknown device 0001
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 10
I/O ports at dfe0 [size=feaa0000]
I/O ports at dfac [size=4]
I/O ports at dfa0 [size=8]
I/O ports at dfa8 [size=4]
I/O ports at d400 [size=256]
Expansion ROM at 00020000 [disabled]
Capabilities: <available only to root>
00: 03 11 05 00 05 01 30 02 02 00 04 01 04 40 00 00
10: e1 df 00 00 ad df 00 00 a1 df 00 00 a9 df 00 00
20: 01 d4 00 00 00 00 00 00 00 00 00 00 03 11 01 00
30: 00 00 aa fe 60 00 00 00 00 00 00 00 0a 01 08 08
I booted FreeBSD 6.0 and it seemed to reconize the card and attached
hard drive ok. In the dmesg for freebsd, it mentioned 372N, if that
means anything. There is a patch, I discovered, which disables the
driver from marking a 372A chipset from being detected as a 372N chip.
When I applied the patch, it finally detected the sata driver ok and my
new sata drive as well. So my current hpt366 driver is as patched
below. I added a check for a NULL drvdata to prevent the driver from
seg faulting when it failed to detect my chip, and I disabled a check
for the 372N chipset.
--- drivers/ide/pci/hpt366.c.orig 2005-09-29 01:00:12.000000000
-0700
+++ drivers/ide/pci/hpt366.c 2005-09-30 02:28:47.000000000 -0700
@@ -1168,8 +1168,10 @@ static int __devinit init_hpt37x(struct
did = inb(dmabase + 0x22);
rid = inb(dmabase + 0x28);
+#if 0
if((did == 4 && rid == 6) || (did == 5 && rid > 1))
is_372n = 1;
+#endif
}
/*
@@ -1310,6 +1312,10 @@ static int __devinit init_hpt37x(struct
goto init_hpt37X_done;
}
}
+ if (!pci_get_drvdata(dev)) {
+ printk("No Clock Stabilization!!!");
+ return -1;
+ }
pll_recal:
if (adjust & 1)
pll -= (adjust >> 1);
--
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.
Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-09-30 9:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-29 10:33 Loren M. Lang
2005-09-29 23:30 ` Alan Cox
2005-09-30 9:33 ` Loren M. Lang [this message]
2005-09-30 11:34 ` Alan Cox
2005-10-01 15:26 ` Loren M. Lang
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=20050930093355.GB22233@alzatex.com \
--to=lorenl@alzatex.com \
--cc=alan@lxorguk.ukuu.org.uk \
--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®