From: Tejun Heo <htejun@gmail.com>
To: Jure Pe??ar <pegasus@nerv.eu.org>
Cc: linux-ide@vger.kernel.org, albertl@mail.com
Subject: Re: gigabyte iRam not seen by linux
Date: Sat, 11 Mar 2006 12:31:43 +0900 [thread overview]
Message-ID: <20060311033143.GA12866@htj.dyndns.org> (raw)
In-Reply-To: <20060311034630.4c12cf83.pegasus@nerv.eu.org>
Hello, Jure.
First of all, please, don't drop To/Cc.
On Sat, Mar 11, 2006 at 03:46:30AM +0100, Jure Pe??ar wrote:
>
> > Tejun Heo wrote:
> > > After booting with such kernel, please post the result of dmesg.
>
> This is the relevant part of dmesg with 2.6.16-rc5:
>
> SCSI subsystem initialized
> libata version 1.20 loaded.
> sata_nv 0000:00:0e.0: version 0.8
> ACPI: PCI Interrupt Link [LSA0] enabled at IRQ 23
> GSI 16 sharing vector 0xB1 and IRQ 16
> ACPI: PCI Interrupt 0000:00:0e.0[A] -> Link [LSA0] -> GSI 23 (level, low) -> IRQ 16
> PCI: Setting latency timer of device 0000:00:0e.0 to 64
> ata_device_add: ENTER
> ata_host_add: ENTER
> ata_port_start: prd alloc, virt ffff81007a0c1000, dma 7a0c1000
> ata1: SATA max UDMA/133 cmd 0xE800 ctl 0xE482 bmdma 0xE000 irq 16
> ata_host_add: ENTER
> ata_port_start: prd alloc, virt ffff81007a740000, dma 7a740000
> ata2: SATA max UDMA/133 cmd 0xE400 ctl 0xE082 bmdma 0xE008 irq 16
> ata_device_add: probe begin
> ata_device_add: ata1: probe begin
> ata1: SATA link up 1.5 Gbps (SStatus 113)
> ata_bus_reset: ENTER, host 1, port 0
> ata_bus_softreset: ata1: bus reset via SRST
> ata_bus_reset: EXIT
> ata_dev_identify: ENTER/EXIT (host 1, dev 0) -- nodev
> ata_dev_identify: ENTER/EXIT (host 1, dev 1) -- nodev
Seems like iRam isn't reporting proper class signature.
> ata_device_add: ata1: probe end
> scsi0 : sata_nv
> ata_device_add: ata2: probe begin
> ata2: SATA link down (SStatus 0)
> ata_device_add: ata2: probe end
>
>
> On Sat, 11 Mar 2006 10:02:37 +0800
> Albert Lee <albertcc@tw.ibm.com> wrote:
>
> >
> > This pseudo SATA drive looks interesting. There is a SATA connector
> > on the PCI adapter. At the first glance, I thought it is a new
> > SATA adapter, but it is not.
> > (http://www6.tomshardware.com/2005/09/07/can_gigabyte/page2.html)
>
> PCI just provides the power to charge the battery. The memory controller and sata interface is implemented in the fpga. It's entirely possible that gigabyte did take some shortcuts here ... at least that's my understanding of the info above :)
> But if the bios and windows see the device and know how to use it ...
Can you apply the following patch and try again?
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 5f1d758..c6b0a9f 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -827,7 +827,9 @@ unsigned int ata_dev_classify(const stru
}
DPRINTK("unknown device\n");
- return ATA_DEV_UNKNOWN;
+ /*return ATA_DEV_UNKNOWN;*/
+ DPRINTK("XXX faking ATA_DEV_ATA\n");
+ return ATA_DEV_ATA;
}
/**
@@ -862,6 +864,10 @@ static u8 ata_dev_try_classify(struct at
ap->ops->tf_read(ap, &tf);
err = tf.feature;
+ DPRINTK("dev=%d, TF %02x %02x:%02x:%02x:%02x:%02x %02x %02x\n",
+ device, tf.ctl, tf.feature, tf.nsect,
+ tf.lbal, tf.lbam, tf.lbah, tf.device, tf.command);
+
dev->class = ATA_DEV_NONE;
/* see if device passed diags */
@@ -2134,6 +2140,8 @@ void ata_bus_reset(struct ata_port *ap)
if (dev1)
devmask |= (1 << 1);
+ DPRINTK("devmask=0x%x\n", devmask);
+
/* select device 0 again */
ap->ops->dev_select(ap, 0);
next prev parent reply other threads:[~2006-03-11 3:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-10 0:36 gigabyte iRam not seen by linux Jure Pečar
2006-03-10 17:51 ` Tejun Heo
2006-03-11 2:02 ` Albert Lee
2006-03-11 2:46 ` Jure Pečar
2006-03-11 3:31 ` Tejun Heo [this message]
2006-03-11 8:20 ` Jure Pečar
2006-03-11 8:58 ` Tejun Heo
2006-03-11 16:12 ` Eric D. Mudama
2006-03-11 16:33 ` Tejun Heo
2006-03-11 16:43 ` Jure Pečar
-- strict thread matches above, loose matches on Subject: below --
2006-03-15 19:34 Bryan Fink
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=20060311033143.GA12866@htj.dyndns.org \
--to=htejun@gmail.com \
--cc=albertl@mail.com \
--cc=linux-ide@vger.kernel.org \
--cc=pegasus@nerv.eu.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;
as well as URLs for NNTP newsgroup(s).