linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sheetal <sheetal.tigadoli@gmail.com>
To: Ritesh Harjani <ritesh.list@gmail.com>
Cc: linux-mmc <linux-mmc@vger.kernel.org>
Subject: Re: Doubt on mmc erase command
Date: Tue, 13 Oct 2015 14:53:13 +0530	[thread overview]
Message-ID: <561CCD81.8070004@gmail.com> (raw)
In-Reply-To: <CALk7dXpgag3QETKXF44eOHPsyp_uUgmU3TcYfvnJLZFB=3VQVQ@mail.gmail.com>

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


      reply	other threads:[~2015-10-13  9:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=561CCD81.8070004@gmail.com \
    --to=sheetal.tigadoli@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ritesh.list@gmail.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;
as well as URLs for NNTP newsgroup(s).