Skip to content

some more imx patches for 2.6.38

Uwe Kleine-König linux-arm-kernel linux-media 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 51 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 51 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/51] some more imx patches for 2.6.38
Quoted 7 lines · Eric B?nard
Quoted 5 lines · Uwe Kleine-K?nig

The highlights are that for most devices for i.MX1, i.MX21, i.MX25 and i.MX27 are allocated dynamically which reduces the memory footprint of the kernel. Moreover I moved support for i.MX25 to mach-imx targeting a multi-SoC-kernel for i.MX.

do you have numbers concerning the memory footprint savings ?

I didn't recently and didn't save the results. Taking commit "ARM: mx3:
dynamically allocate imx-keypad devices" (which is very low impact because it only removes a single static device with just one user (arch/arm/mach-mx3/mach-mx31_3ds.c) bloat-o-meter reports:

add/remove: 3/2 grow/shrink: 0/0 up/down: 164/-264 (-100)
function old new delta
imx_add_imx_keypad - 140 +140
imx35_imx_keypad_data - 12 +12
imx31_imx_keypad_data - 12 +12
imx_kpp_resources 56 - -56
imx_kpp_device 208 - -208

And there are some more things bloat-o-meter doesn't catch:

- imx_add_imx_keypad, imx35_imx_keypad_data and imx31_imx_keypad_data all live in .init.text and .init.rodata, so after boot another 164 bytes are freed.
- platform data (here mx31_3ds_keymap_data) can be moved to .init.data (or .init.rodata) This saves in general at least (#machines_using_the_device - 1) * sizeof(platform data) when the init data is discarded.
- Of course when booting an mx31_3ds machine imx_kpp_device and imx_kpp_resources reappear in memory, so the main benefit is for devices that are not used on many machines. So for mx31_3ds this patch yields +/-0.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |