From: Christoph Hellwig <hch@infradead.org>
To: Luugi Marsan <luugi.marsan@amd.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] Workaround for SB600 SATA ODD issue
Date: Sat, 4 Nov 2006 12:52:45 +0000 [thread overview]
Message-ID: <20061104125245.GB5787@infradead.org> (raw)
In-Reply-To: <20061103190004.9ED8DCBD48@localhost.localdomain>
On Fri, Nov 03, 2006 at 02:00:04PM -0500, Luugi Marsan wrote:
> From: conke.hu@amd.com
>
> There was an ASIC bug in the SB600 SATA controller of low revision (<=13) and CD burning may hang (only SATA ODD has this issue, and SATA HDD works well). The patch provides a workaround for this issue.
Please make the code ahear to Documentation/CodingStyle (aka the style
used everywhere else in ahci.c..)
Something like:
static int ahci_check_atapi_dma(struct ata_queued_cmd *qc)
{
struct pci_dev *pdev = to_pci_dev(qc->ap->host->dev);
/*
* Walkaround for ATI/AMD SB600 SATA ODD isue.
*/
if (pdev->vendor = PCI_VENDOR_ID_ATI && pdev->device == 0x4380) {
struct ahci_host_priv *priv = qc->ap->host->private_data;
if (priv->rev < 14) {
u32 rq_len = qc->scsicmd->request_bufflen;
u32 low_8k = rq_len & 0x1fff;
if ((rq_len & 0xffffe000) && low_8k && low_8k < 512)
return 1;
}
}
return 0;
}
next prev parent reply other threads:[~2006-11-04 12:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-03 19:00 Luugi Marsan
2006-11-04 12:52 ` Christoph Hellwig [this message]
2006-11-04 17:36 ` Arjan van de Ven
2006-11-04 18:35 ` Christoph Hellwig
2006-11-05 12:45 ` Conke Hu
2006-11-06 12:14 ` Tejun Heo
2006-11-08 13:30 ` Jeff Garzik
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=20061104125245.GB5787@infradead.org \
--to=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luugi.marsan@amd.com \
/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®