Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1336111
| From | Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] ARM: omapfb: Add early framebuffer memory allocator |
| Date | 2016-02-17 08:40 +0100 |
| Message-ID | <r34Sm-39G-9@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <qNbEv-2Rt-37@gated-at.bofh.it> <qNd3A-3Ts-21@gated-at.bofh.it> <qPPxN-6bh-31@gated-at.bofh.it> <r1COt-1Gb-1@gated-at.bofh.it> <r2Okz-8F-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi,
On 16.02.2016 15:51, Tomi Valkeinen wrote:
>
> Does it work for you? I haven't used DT reserved-memory, do you have an
> example .dts change?
>
Yes, it does work, I tested it on n900:
diff --git a/arch/arm/boot/dts/omap3-n900.dts
b/arch/arm/boot/dts/omap3-n900.dts
index 1e94237..863d547 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -59,6 +59,18 @@
reg = <0x80000000 0x10000000>; /* 256 MB */
};
+ reserved-memory {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ omapfb_reserved: omapfb {
+ size = <0x700000>;
+ alignment = <0x100000>;
+ compatible = "ti,omapfb-memsize";
+ };
+ };
+
gpio_keys {
compatible = "gpio-keys";
@@ -1083,6 +1095,8 @@
vdds_sdi-supply = <&vaux1>;
+ memory-region = <&omapfb_reserved>;
+
ports {
#address-cells = <1>;
#size-cells = <0>;
> Now, having to support DT bindings is not any better than supporting
> cmdline options. But with a quick read of reserved-memory.txt I like the
> idea. However we should have "reserved memory for display", not for
> omapfb, so that the same reserved area could be used by omapdrm too.
Sounds reasonable and I don't really care how it is to be called or who
does the actual reservation, as long as there is some reserved memory we
can use for omapfb :)
Keep in mind that the changes I did were just a quick-n-dirty hack to
see if it will work and if you will accept something like that. A better
approach is maybe to move RESERVEDMEM_OF_DECLARE() and co to display.c
and pass base and size to whoever needs them (be it omapfb or omapdrm).
Also, compatible could be called "ti,dss-memsize" or the like, but those
are cosmetics IMO.
>
> Another thing, with v4.5, omapfb has moved into maintenance mode. I
> don't want to merge new features there. Are you planning to move to
> omapdrm, and if not, why? I'd rather see all this done for omapdrm only.
I don't see a reason to not merge a small change like that in omapfb if
there is reserved display memory used by omapdrm, but still, I am not
the maintainer.
Pali already explained the situation with PVR driver we use to boot
maemo UI. Honestly, I have no idea what it takes to move from omapfb to
omapdrm. Any hints?
Ivo
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH] ARM: omapfb: Add early framebuffer memory allocator Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-02-13 08:30 +0100
Re: [PATCH] ARM: omapfb: Add early framebuffer memory allocator Tomi Valkeinen <tomi.valkeinen@ti.com> - 2016-02-16 15:00 +0100
Re: [PATCH] ARM: omapfb: Add early framebuffer memory allocator Pali Rohár <pali.rohar@gmail.com> - 2016-02-16 15:10 +0100
Re: [PATCH] ARM: omapfb: Add early framebuffer memory allocator Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-02-17 08:40 +0100
csiph-web