From: Eric Nelson <eric@nelint.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 2/2] mmc: add support for block device cache
Date: Fri, 25 Mar 2016 17:11:38 -0700 [thread overview]
Message-ID: <56F5D3BA.8060204@nelint.com> (raw)
In-Reply-To: <56F03E1B.20501@nelint.com>
Hi all,
On 03/21/2016 11:31 AM, Eric Nelson wrote:
> On 03/20/2016 03:54 PM, Eric Nelson wrote:
>> On 03/20/2016 03:13 PM, Tom Rini wrote:
>>> On Sun, Mar 20, 2016 at 12:35:53PM -0700, Eric Nelson wrote:
>>>> On 03/17/2016 02:23 PM, Stephen Warren wrote:
>>>>> On 03/16/2016 03:40 PM, Eric Nelson wrote:
>>>>>> Signed-off-by: Eric Nelson <eric@nelint.com>
>>>>>
...
>> I'm seeing some build breakage on master surrounding the use
>> of DM though.
>>
Peng's patch made it clear that DM wasn't supported by fsl_esdhc.
>> If I select DM and BLK on top of nitrogen6q_defconfig, I get
>> lots of build errors.
>>
It's CONFIG_BLK that produces lots of issues, and from what
I can tell, it's only currently supported for sandbox.
Out of ignorance, I was conflating the two.
>> I want to get a V2 RFC patch out before digging through the
>> details of that.
>>
>
> I'm obviously not up to speed on the state of DM and I hadn't
> seen Simon's patch adding blk.h.
>
> The new blk_dread/write/erase functions do provide a convenient
> spot for checking cache, though they're not universally used yet.
>
> In particular, hooking up the cache there will lose visibility
> into things like the "mmc write" command.
>
> I'm also not sure of the current state of DM with respect to
> block drivers and wonder if a block cache should wait a cycle
> or two.
>
> Simon, I'd appreciate some feedback when you have a chance.
>
I think I have a better handle on this now.
I'm still a bit confused on what needs to be done in order
for CONFIG_BLK to work against real hardware.
From what I can tell, the some modules in cmd/ need to be
updated to use blk_dread/blk_dwrite/blk_derase and some kind
of re-structuring needs to occur in drivers/mmc to support
the "blk" uclass.
Does that sound about right?
Is somebody currently working on this?
Please advise,
Eric
next prev parent reply other threads:[~2016-03-26 0:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-16 18:42 [U-Boot] ext4 and caching Eric Nelson
2016-03-16 21:40 ` [U-Boot] [RFC PATCH 0/2] simple cache layer for block devices Eric Nelson
2016-03-16 21:40 ` [U-Boot] [RFC PATCH 1/2] add block device cache Eric Nelson
2016-03-17 21:16 ` Stephen Warren
2016-03-17 21:33 ` Eric Nelson
2016-03-17 21:41 ` Stephen Warren
2016-03-20 22:13 ` Tom Rini
2016-03-20 22:51 ` Eric Nelson
2016-03-16 21:40 ` [U-Boot] [RFC PATCH 2/2] mmc: add support for " Eric Nelson
2016-03-17 21:23 ` Stephen Warren
2016-03-20 19:35 ` Eric Nelson
2016-03-20 22:13 ` Tom Rini
2016-03-20 22:54 ` Eric Nelson
2016-03-21 18:31 ` Eric Nelson
2016-03-26 0:11 ` Eric Nelson [this message]
2016-04-09 17:55 ` Simon Glass
2016-04-10 14:31 ` Eric Nelson
2016-03-21 14:27 ` Eric Nelson
2016-03-19 15:42 ` [U-Boot] ext4 and caching Ioan Nicu
2016-03-20 15:02 ` Eric Nelson
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=56F5D3BA.8060204@nelint.com \
--to=eric@nelint.com \
--cc=u-boot@lists.denx.de \
/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