linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/3] mmc: block: Fix tuning (by avoiding it) for RPMB
@ 2016-05-04 11:38 Adrian Hunter
  2016-05-04 11:38 ` [PATCH V2 1/3] mmc: core: Add a facility to "pause" re-tuning Adrian Hunter
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Adrian Hunter @ 2016-05-04 11:38 UTC (permalink / raw)
  To: Ulf Hansson; +Cc: linux-mmc, Tomas Winkler

Hi

The RPMB partition only allows certain commands.  In particular,
the tuning command (CMD21) is not allowed -  refer JEDEC eMMC
standard v5.1 section 6.2.2 Command restrictions.

That means commands will begin failing if re-tuning is needed
while switched to the RPMB partition.

As we discussed here:

	http://marc.info/?l=linux-mmc&m=146218765801869

this patch set takes a new approach which is:

	Re-tune before switching to the RPMB partition
	Don't allow re-tuning while switched to RPMB
	Switch back from the RPMB partition immediately

I gave it a brief test with a HS400 eMMC and using mmc utils
to access RPMB.  Despite all the partition switches and
re-tuning in between, all RPMB operations were successful.


Changes in V2:

	New approach entirely


Adrian Hunter (3):
      mmc: core: Add a facility to "pause" re-tuning
      mmc: block: Always switch back to main area after RPMB access
      mmc: block: Pause re-tuning while switched to the RPMB partition

 drivers/mmc/card/block.c | 19 ++++++++++++++++++-
 drivers/mmc/core/host.c  | 22 ++++++++++++++++++++++
 include/linux/mmc/host.h |  4 ++++
 3 files changed, 44 insertions(+), 1 deletion(-)


Regards
Adrian

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

end of thread, other threads:[~2016-05-18  6:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-04 11:38 [PATCH V2 0/3] mmc: block: Fix tuning (by avoiding it) for RPMB Adrian Hunter
2016-05-04 11:38 ` [PATCH V2 1/3] mmc: core: Add a facility to "pause" re-tuning Adrian Hunter
2016-05-10 12:24   ` Ulf Hansson
2016-05-10 13:03     ` Adrian Hunter
2016-05-11  6:48       ` Ulf Hansson
2016-05-11  9:00         ` Adrian Hunter
2016-05-12  6:14           ` Adrian Hunter
2016-05-12 13:20             ` Ulf Hansson
2016-05-12 13:19               ` Adrian Hunter
2016-05-16 12:35                 ` [PATCH V3 " Adrian Hunter
2016-05-17 15:06                   ` Ulf Hansson
2016-05-18  6:44                     ` Adrian Hunter
2016-05-04 11:38 ` [PATCH V2 2/3] mmc: block: Always switch back to main area after RPMB access Adrian Hunter
2016-05-04 11:38 ` [PATCH V2 3/3] mmc: block: Pause re-tuning while switched to the RPMB partition Adrian Hunter
2016-05-04 11:54 ` [PATCH V2 0/3] mmc: block: Fix tuning (by avoiding it) for RPMB Winkler, Tomas
2016-05-10 10:28 ` Ulf Hansson

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