Re: [PATCH] sata_nv: fix ADMA ATAPI issues with memory over 4GB (v3)

Previous thread: [PATCH 2.6.24-rc3-mm1] IPC: consolidate sem_exit_ns(), msg_exit_ns and shm_exit_ns() by Pierre Peiffer on Friday, November 23, 2007 - 9:52 am. (5 messages)

Next thread: Re: [PATCH] sata_nv: fix ADMA ATAPI issues with memory over 4GB (v3) by Mark Lord on Friday, November 23, 2007 - 1:40 pm. (1 message)
From: Morrison, Tom
Date: Friday, November 23, 2007 - 10:30 am

I am hopeful that the sata_mv has this bug (I proved that the
problem I was experiencing was due to the sata_mv driver 
with 3.75Gig or more of memory)...
 
I am on vacation for a week or more ...or I'd tell you today
if it did have this bug!

________________________________

From: linux-ide-owner@vger.kernel.org on behalf of Mark Lord
Sent: Fri 11/23/2007 10:22 AM
To: Robert Hancock
Cc: linux-kernel; ide; Jeff Garzik; Tejun Heo
Subject: Re: [PATCH] sata_nv: fix ADMA ATAPI issues with memory over 4GB (v3)



...

Mmm.. I wonder how many other libata drivers have this exact same bug,
whether noticed yet or not ?

Cheers
-

From: Mark Lord
Date: Friday, November 23, 2007 - 10:46 am

..

Yeah, I kind of had your reports in mind when I asked that.  :)

On a related note, I now have lots of Marvell (sata_mv) hardware here,
and an Intel CPU/chipset box with physical RAM above the 4GB boundary.

Cheers
-

From: Robert Hancock
Date: Friday, November 23, 2007 - 5:13 pm

Based on a quick look at sata_mv it appears it sets a 64-bit DMA mask 
unconditionally, but for non-ATA_PROT_DMA commands (which includes all 
ATAPI), it just falls back to ata_qc_issue_prot which issues via the 
legacy SFF interface and can only handle 32-bit addressing. So yes, it 
appears to have a similar bug as sata_nv had.

Likely it needs a similar slave_config trick to change bounce limit 
depending on the connected device, unless there is really a way to issue 
ATAPI commands with this EDMA interface, as the TODO list in sata_mv.c 
suggests may be possible..

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/

-

From: Jeff Garzik
Date: Friday, November 23, 2007 - 5:20 pm

sata_mv doesn't do ATAPI at all...

	Jeff


-

From: Robert Hancock
Date: Friday, November 23, 2007 - 5:31 pm

Right.. missed that ATA_FLAG_NO_ATAPI. So these issues Tom is reporting 
are just with a normal SATA hard drive?

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/


-

From: Mark Lord
Date: Friday, November 23, 2007 - 7:48 pm

..

Not yet, anyway.  Stay tuned..
-

Previous thread: [PATCH 2.6.24-rc3-mm1] IPC: consolidate sem_exit_ns(), msg_exit_ns and shm_exit_ns() by Pierre Peiffer on Friday, November 23, 2007 - 9:52 am. (5 messages)

Next thread: Re