linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Doubt on mmc erase command
@ 2015-02-10 16:30 Sheetal
  2015-10-13  8:44 ` Ritesh Harjani
  0 siblings, 1 reply; 3+ messages in thread
From: Sheetal @ 2015-02-10 16:30 UTC (permalink / raw)
  To: linux-mmc

Hello,

I'm trying to send ERASE Command to the emmc by deleting a file on one 
of the emmc partitions and then doing a sync, But I'm noticing that even 
this will not issue the erase command to emmc.

I did trace the code on, from where this erase command is issued, but my 
trace ended at an ioctl call "do_vfs_ioctl()" more specific 
"SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned 
long, arg)" system call definition does a call to do_vfs_ioctl.

Please help me understand how to initiate this from userspace.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Doubt on mmc erase command
  2015-02-10 16:30 Doubt on mmc erase command Sheetal
@ 2015-10-13  8:44 ` Ritesh Harjani
  2015-10-13  9:23   ` Sheetal
  0 siblings, 1 reply; 3+ messages in thread
From: Ritesh Harjani @ 2015-10-13  8:44 UTC (permalink / raw)
  To: Sheetal; +Cc: linux-mmc

Hi Sheetal,

Try enabling mmc trace events to check what is the cmd you are getting
to confirm erase going through.
You shoud get cmd 35/36/38 if erase is going through in case of emmc.

-Ritesh






On Tue, Feb 10, 2015 at 10:00 PM, Sheetal <sheetal.tigadoli@gmail.com> wrote:
> Hello,
>
> I'm trying to send ERASE Command to the emmc by deleting a file on one of
> the emmc partitions and then doing a sync, But I'm noticing that even this
> will not issue the erase command to emmc.
>
> I did trace the code on, from where this erase command is issued, but my
> trace ended at an ioctl call "do_vfs_ioctl()" more specific
> "SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long,
> arg)" system call definition does a call to do_vfs_ioctl.
>
> Please help me understand how to initiate this from userspace.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Doubt on mmc erase command
  2015-10-13  8:44 ` Ritesh Harjani
@ 2015-10-13  9:23   ` Sheetal
  0 siblings, 0 replies; 3+ messages in thread
From: Sheetal @ 2015-10-13  9:23 UTC (permalink / raw)
  To: Ritesh Harjani; +Cc: linux-mmc

Hello Ritesh Harjani,

Thanks for the info Ritesh, I'll try out your pointer to mmc trace 
events next time i run into eMMC issue

In the current case, I found out that in case of file deletion, only the 
file's metadata(such as entry in inode table, inode_bitmap and other 
filesystem parameters) is freed and it won't invoke the ERASE command 
seq explicitly(atleast in case of EXT4 it doesn't send ERASE CMD).
I think only in case of formatting(mkfs) of the partition or the whole 
eMMC, ERASE command is issued.

Thanks
Sheetal

On Tuesday 13 October 2015 02:14 PM, Ritesh Harjani wrote:
> Hi Sheetal,
>
> Try enabling mmc trace events to check what is the cmd you are getting
> to confirm erase going through.
> You shoud get cmd 35/36/38 if erase is going through in case of emmc.
>
> -Ritesh
>
>
>
>
>
>
> On Tue, Feb 10, 2015 at 10:00 PM, Sheetal <sheetal.tigadoli@gmail.com> wrote:
>> Hello,
>>
>> I'm trying to send ERASE Command to the emmc by deleting a file on one of
>> the emmc partitions and then doing a sync, But I'm noticing that even this
>> will not issue the erase command to emmc.
>>
>> I did trace the code on, from where this erase command is issued, but my
>> trace ended at an ioctl call "do_vfs_ioctl()" more specific
>> "SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long,
>> arg)" system call definition does a call to do_vfs_ioctl.
>>
>> Please help me understand how to initiate this from userspace.
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-13  9:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-10 16:30 Doubt on mmc erase command Sheetal
2015-10-13  8:44 ` Ritesh Harjani
2015-10-13  9:23   ` Sheetal

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).