From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH RESEND] video:cache:fix: Buffer alignment and dcache flush for lcd subsystem
Date: Sun, 6 Jan 2013 23:54:44 +0100 [thread overview]
Message-ID: <20130106235444.35f81aa2@crub> (raw)
In-Reply-To: <CAPnjgZ3tfvRJO-16ncwE43hPptdMEtOmPEK7pfeLkrMn-rVrgw@mail.gmail.com>
Hi Simon, Lukasz,
On Sun, 6 Jan 2013 07:47:58 -0800
Simon Glass <sjg@chromium.org> wrote:
...
> >> > diff --git a/common/cmd_bmp.c b/common/cmd_bmp.c
> >> > index 5a52edd..57f3eb5 100644
> >> > --- a/common/cmd_bmp.c
> >> > +++ b/common/cmd_bmp.c
> >> > @@ -55,7 +55,7 @@ bmp_image_t *gunzip_bmp(unsigned long addr,
> >> > unsigned long *lenp)
> >> > * Decompress bmp image
> >> > */
> >> > len = CONFIG_SYS_VIDEO_LOGO_MAX_SIZE;
> >> > - dst = malloc(CONFIG_SYS_VIDEO_LOGO_MAX_SIZE);
> >> > + dst = memalign(CONFIG_SYS_CACHELINE_SIZE, len);
> >>
> >> Why do you need to align this one? It is just returned to the caller,
> >> isn't it?
> >
> > Yes, it is returned to the caller, but afterwards lcd_display_bitmap
> > takes this pointer (and thereof probably unaligned buffer) and works on
> > it. (At least in the case of trats the bmp is gzipped).
>
> OK, so it is directly used as a frame buffer?
the allocated area isn't directly used as a frame buffer, it is
a buffer for bmp image which will be processed by lcd_display_bitmap().
The latter looks at the image header/palette and fills the
frame buffer (lcd_base) with the image data. This image buffer can
be unaligned I think.
Thanks,
Anatolij
prev parent reply other threads:[~2013-01-06 22:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-08 15:10 [U-Boot] [PATCH 1/2] video:cache:fix: Buffer alignment and dcache flush for lcd subsystem Lukasz Majewski
2012-08-08 15:10 ` [U-Boot] [PATCH 2/2] video:trats:logo: Make tizen_hd_logo cache line aligned Lukasz Majewski
2012-08-08 15:24 ` [U-Boot] [PATCH 1/2] video:cache:fix: Buffer alignment and dcache flush for lcd subsystem Mike Frysinger
2012-08-09 7:14 ` Lukasz Majewski
2013-01-02 16:25 ` [U-Boot] [PATCH RESEND] " Lukasz Majewski
2013-01-05 1:25 ` Simon Glass
2013-01-06 8:03 ` Lukasz Majewski
2013-01-06 15:47 ` Simon Glass
2013-01-06 20:21 ` Wolfgang Denk
2013-01-06 21:38 ` Simon Glass
2013-01-06 23:40 ` Wolfgang Denk
2013-01-06 23:09 ` Anatolij Gustschin
2013-01-06 22:54 ` Anatolij Gustschin [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=20130106235444.35f81aa2@crub \
--to=agust@denx.de \
--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