* re: Initio 1623 driver question
@ 2008-08-19 18:22 Matthieu Helder
2008-08-20 4:20 ` Tejun Heo
0 siblings, 1 reply; 4+ messages in thread
From: Matthieu Helder @ 2008-08-19 18:22 UTC (permalink / raw)
To: teheo; +Cc: linux-ide
I've compiled and installed the 2.6.26.2 kernel.
Best regards,
Matthieu
Matthieu Helder wrote:
> Dear Tejun,
>
>
> I've experiencing a problem for which I searched many forums, but to no
> avail yet, so I decided to ask you.
> I'm trying to install two Western Digital sata disks (750 GB each) with
> a PCI sata-controller that uses the Initio 1623 chipset. Operating
> system is SuSe 11.
> The PC is an Compaq deskpro something with a Celeron and 512 MB of ram.
> It boots from a 10 GB ata disk.
>
> The problem is that the controller card seems to be recognized
> correctly, the kernel module gets loaded and all, but the two disks are
> not detected: sata link down.
> I'm using your sata_inic162x driver module, the version that contains
> lba48 support.
> Do you have any idea what can be the case? At least I have the
> impression that the BIOS doesn't support lba48, could that be it? Below
> you'll find the output of some (hopefully relevant) commands.
Can you please cc linux-ide@vger.kernel.org
<mailto:linux-ide@vger.kernel.org>? And can you try to roll
your own kernel 2.6.26.2 <http://2.6.26.2> for the system so that we can
try patches?
Maybe the reset timing is too aggressive.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Initio 1623 driver question
2008-08-19 18:22 Initio 1623 driver question Matthieu Helder
@ 2008-08-20 4:20 ` Tejun Heo
2008-08-20 20:32 ` Matthieu Helder
0 siblings, 1 reply; 4+ messages in thread
From: Tejun Heo @ 2008-08-20 4:20 UTC (permalink / raw)
To: Matthieu Helder; +Cc: linux-ide
[-- Attachment #1: Type: text/plain, Size: 175 bytes --]
Matthieu Helder wrote:
> I've compiled and installed the 2.6.26.2 kernel.
Can you please apply the attached patch and report the resulting
detection log?
Thanks.
--
tejun
[-- Attachment #2: inic-reset-debug.patch --]
[-- Type: text/x-patch, Size: 1360 bytes --]
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 9bef1a8..6670d4a 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -3451,6 +3451,7 @@ int sata_link_debounce(struct ata_link *link, const unsigned long *params,
/* DET stable? */
if (cur == last) {
+ ata_link_printk(link, "XXX debounce: DET stable %x\n", cur);
if (cur == 1 && time_before(jiffies, deadline))
continue;
if (time_after(jiffies,
@@ -3459,6 +3460,7 @@ int sata_link_debounce(struct ata_link *link, const unsigned long *params,
continue;
}
+ ata_link_printk(link, "XXX debounce: DET unstable %x\n", cur);
/* unstable, start over */
last = cur;
last_jiffies = jiffies;
diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c
index 3ead02f..a215c2a 100644
--- a/drivers/ata/sata_inic162x.c
+++ b/drivers/ata/sata_inic162x.c
@@ -615,7 +615,8 @@ static int inic_hardreset(struct ata_link *link, unsigned int *class,
struct ata_port *ap = link->ap;
void __iomem *port_base = inic_port_base(ap);
void __iomem *idma_ctl = port_base + PORT_IDMA_CTL;
- const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context);
+ //const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context);
+ const unsigned long *timing = sata_deb_timing_long;
int rc;
/* hammer it into sane state */
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: Initio 1623 driver question
2008-08-20 4:20 ` Tejun Heo
@ 2008-08-20 20:32 ` Matthieu Helder
2008-08-21 2:50 ` Tejun Heo
0 siblings, 1 reply; 4+ messages in thread
From: Matthieu Helder @ 2008-08-20 20:32 UTC (permalink / raw)
To: Tejun Heo; +Cc: linux-ide
The calls to ata_link_print() didn't contain the warning level. I've
added KERN_WARNING.
Could you please provide me with a way to build just the needed
modules? From a.o. the Linux Kernel Module Programming Guide I don't
succeed in building just the two kernel modules. The system builds all
configured modules, which takes rather a long time.
As soon as I have the requested log, I'll mail it to you. I assume I
have to look in /var/log/messages for it?
Kind regards,
Matthieu
On Wed, Aug 20, 2008 at 6:20 AM, Tejun Heo <teheo@novell.com> wrote:
>
> Matthieu Helder wrote:
> > I've compiled and installed the 2.6.26.2 kernel.
>
> Can you please apply the attached patch and report the resulting
> detection log?
>
> Thanks.
>
> --
> tejun
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Initio 1623 driver question
2008-08-20 20:32 ` Matthieu Helder
@ 2008-08-21 2:50 ` Tejun Heo
0 siblings, 0 replies; 4+ messages in thread
From: Tejun Heo @ 2008-08-21 2:50 UTC (permalink / raw)
To: Matthieu Helder; +Cc: linux-ide
Matthieu Helder wrote:
> The calls to ata_link_print() didn't contain the warning level. I've
> added KERN_WARNING.
Eh... Sorry, I build tested it but my eyes just flew over the warning
messages, it seems.
> Could you please provide me with a way to build just the needed
> modules? From a.o. the Linux Kernel Module Programming Guide I don't
> succeed in building just the two kernel modules. The system builds all
> configured modules, which takes rather a long time.
>
> As soon as I have the requested log, I'll mail it to you. I assume I
> have to look in /var/log/messages for it?
Well, once you rolled your own kernel, keep the build tree with you and
apply the patch on top of it and run make. It will build only what has
changed. If you wiped out the original build tree, copy the original
.config file and run "make drivers/ata/libata.ko
drivers/ata/sata_inic162x.ko". If it doesn't work, run make and let it
go through initial stages of building (maybe a few tens of secs) and
retry the module building. It usually does the trick.
--
tejun
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-21 2:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 18:22 Initio 1623 driver question Matthieu Helder
2008-08-20 4:20 ` Tejun Heo
2008-08-20 20:32 ` Matthieu Helder
2008-08-21 2:50 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).