From: Michael Trimarchi <michael@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [RFC PATCH 2/2] video: meson: Use reserving memory function without kernel linear mapping
Date: Wed, 19 Feb 2020 19:43:42 +0100 [thread overview]
Message-ID: <20200219184342.15974-3-michael@amarulasolutions.com> (raw)
In-Reply-To: <20200219184342.15974-1-michael@amarulasolutions.com>
Memory reserved for the simple framebuffer should not be used
and part of memory linear mapping
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
---
drivers/video/meson/meson_vpu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c
index 4eb66398d0..134e011b82 100644
--- a/drivers/video/meson/meson_vpu.c
+++ b/drivers/video/meson/meson_vpu.c
@@ -173,9 +173,9 @@ static void meson_vpu_setup_simplefb(void *fdt)
* at the end of the RAM and we strip this portion from the kernel
* allowed region
*/
- mem_start = gd->bd->bi_dram[0].start;
- mem_size = gd->bd->bi_dram[0].size - meson_fb.fb_size;
- ret = fdt_fixup_memory_banks(fdt, &mem_start, &mem_size, 1);
+ mem_start = meson_fb.base;
+ mem_size = meson_fb.fb_size;
+ ret = fdt_fixup_reserved_memory(blob, "display_reserved", &mem_start, &mem_size);
if (ret) {
eprintf("Cannot setup simplefb: Error reserving memory\n");
return;
--
2.17.1
next prev parent reply other threads:[~2020-02-19 18:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-19 18:43 [RFC PATCH 0/2] Update reserved memory for simple framebuffer Michael Trimarchi
2020-02-19 18:43 ` [RFC PATCH 1/2] common: fdt: Add a function for reserving memory without kernel linear mapping Michael Trimarchi
2020-02-20 3:05 ` Simon Glass
2020-02-19 18:43 ` Michael Trimarchi [this message]
2020-02-20 3:05 ` [RFC PATCH 2/2] video: meson: Use reserving memory function " Simon Glass
2020-02-20 6:07 ` Michael Nazzareno Trimarchi
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=20200219184342.15974-3-michael@amarulasolutions.com \
--to=michael@amarulasolutions.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