tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Quirk WD_QUIRK_SPLIT_MOD15_WRITE



sys/dev/ata/wd.c has some very strange code for the
WD_QUIRK_SPLIT_MOD15_WRITE quirk.

The code splits in two any transfers where the 'sector_count % 15 == 1'.
It appears to do this by dividing the byte transfer size in two.
This is fine for 16 sector transfers (converts one 16k byte transfer
into two 8k transfers), but it next applies to 31 sector transfers and
I can't help thinking that the requests for 15.5 sectors aren't going
to be processed correctly!

Have I missed something?

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index