Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1357186 > unrolled thread

NVMEM usage question

Started byEddie Huang <eddie.huang@mediatek.com>
First post2016-03-14 13:10 +0100
Last post2016-03-17 17:20 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  NVMEM usage question Eddie Huang <eddie.huang@mediatek.com> - 2016-03-14 13:10 +0100
    Re: NVMEM usage question Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-03-16 08:00 +0100
    Re: NVMEM usage question Henrique de Moraes Holschuh <hmh@hmh.eng.br> - 2016-03-17 17:20 +0100

#1357186 — NVMEM usage question

FromEddie Huang <eddie.huang@mediatek.com>
Date2016-03-14 13:10 +0100
SubjectNVMEM usage question
Message-ID<rcztU-3yx-23@gated-at.bofh.it>
Hi,

Mediatek PMIC chip have some spare registers used to store information.
The value of these registers will exist until user unplug battery or
battery depletion. One of our usage example is store battery utilization
in these spare registers. We want to implement NVMEM driver to
read/write sparse registers, but binding document describe NVMEM is for
"Non-volatile memory", and for hardware like eeprom, efuse. Since the
usage here is some kind of "battery backup memory", but not real
non-volatile memory, is NVMEM driver suitable for this case ?

Eddie

[toc] | [next] | [standalone]


#1358556

FromSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Date2016-03-16 08:00 +0100
Message-ID<rddB0-588-1@gated-at.bofh.it>
In reply to#1357186

On 14/03/16 12:01, Eddie Huang wrote:
> Hi,
>
> Mediatek PMIC chip have some spare registers used to store information.
> The value of these registers will exist until user unplug battery or
> battery depletion. One of our usage example is store battery utilization
> in these spare registers. We want to implement NVMEM driver to
> read/write sparse registers, but binding document describe NVMEM is for
> "Non-volatile memory", and for hardware like eeprom, efuse. Since the
> usage here is some kind of "battery backup memory", but not real
> non-volatile memory, is NVMEM driver suitable for this case ?

If this battery usage information can be retrieved after full power 
cycle, then there should be some sort of non volatile memory involved.

If that's the case then you can use the nvmem.

--srini


>
> Eddie
>
>

[toc] | [prev] | [next] | [standalone]


#1359994

FromHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Date2016-03-17 17:20 +0100
Message-ID<rdIOu-1e4-11@gated-at.bofh.it>
In reply to#1357186
On Mon, 14 Mar 2016, Eddie Huang wrote:
> 
> Mediatek PMIC chip have some spare registers used to store information.
> The value of these registers will exist until user unplug battery or
> battery depletion. One of our usage example is store battery utilization

i.e. like battery-backed raid caches.

> in these spare registers. We want to implement NVMEM driver to
> read/write sparse registers, but binding document describe NVMEM is for
> "Non-volatile memory", and for hardware like eeprom, efuse. Since the

Users will expect nvmem to not go away on battery drain, so I don't think it
would be the best fit, semantically speaking.

Unless this is common enough that it would make sense to have a generic
quasi-non-volatile profile for nvmem, and publish that constraint to
userspace in a standard way...

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web