Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

ATA TRIM (Developers)

posted by RayeR(R) Homepage, CZ, 13.08.2017, 03:43

> Did you check these out as well?
> http://t13.org/Documents/UploadedDocuments/docs200...6-Data_Set_Management_Proposal_for_ATA-ACS2.doc
> http://t13.org/Documents/UploadedDocuments/docs2010/e09158r2-Trim_Clarifications.doc

I read it but nothing helpful... I found a call in Linux kernel source of libata-scsi.c:
tf->protocol = ATA_PROT_DMA;
tf->hob_feature = 0;
tf->feature = ATA_DSM_TRIM;
tf->hob_nsect = (size / 512) >> 8;
tf->nsect = size / 512;
tf->command = ATA_CMD_DSM;
so they use features15:0=0x0001 - I implemented also 16bit features for LBA48 and set it to 1 but still doesn't work.
I have a bad feeling that it seems the TRIM command is not allowed via PIO protocol but only DMA (aslo noted in ACS)
Table A.1 Command codes (sorted by command code) (part 1 of 5)
DATA SET MANAGEMENT cmd=06h O protocol=DM argument=48-bit
It's going much more complex I don't know how DMA protocol looks at all...yet

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

Back to the forum
Board view  Mix view
15112 Postings in 1359 Threads, 247 registered users, 12 users online (0 registered, 12 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum