Hi Siarhei,

On 02-12-15 03:48, Siarhei Siamashka wrote:
This patch set moves more of the buffer allocation work to CMA.
So that we don't waste RAM unnecessarily and ensure that the
graphics/multimedia drivers (Mali and Cedar) have exactly as
much memory as needed for enabling all the features and optimal
performance.

Or in other words, the kernel parts releated to 3D graphics and
hardware video decoding just work out of the box and do not
require any error prone kernel cmdline parameters selection
for memory reservation or tweaking FEX files.

Also ROOT_NFS is enabled and the cpufreq settings are unified
for sun4i/sun5i/sun7i. These are the old patches that I have
been using for ages. They serve exactly the same purpose: make
things work out of the box in a reasonable way.


These patches are also available in the following git branch:
    https://github.com/ssvb/linux-sunxi/commits/20151202-more-cma-for-sunxi-3.4


Siarhei Siamashka (9):
   sunxi: defconfig: Use performance cpufreq governor by default
   sunxi: defconfig: Enable ROOT_NFS support
   sunxi: disp: Allocate framebuffers from the CMA area
   sunxi: mali: Handle both framebuffers in the Mali validation code
   sunxi: disp: Tweak framebuffer size for best X11 GLES/DRI2 performance
   sunxi: mali: Fix problems with a static build of the Mali driver
   sunxi: defconfig: Build the Mali driver statically
   sunxi: cedar: Allow only one /dev/cedar_dev user at a time
   sunxi: cedar: Allocate memory buffer only when /dev/cedar_dev is open

I've not tested these patches, but I've given them a quick look and they
look good to me.

Regards,

Hans



  arch/arm/configs/sun4i_defconfig                   | 18 +++--
  arch/arm/configs/sun5i_defconfig                   | 17 ++++-
  arch/arm/configs/sun7i_defconfig                   | 20 +++---
  arch/arm/plat-sunxi/core.c                         | 12 ++++
  drivers/gpu/mali/Kconfig                           |  2 +-
  drivers/gpu/mali/mali/common/mali_mem_validation.c | 22 ++++++-
  drivers/gpu/mali/mali/linux/mali_osk_atomics.c     | 14 ++--
  drivers/gpu/mali/mali/linux/mali_osk_locks.c       | 14 ++--
  drivers/gpu/mali/mali/linux/mali_osk_math.c        |  2 +-
  drivers/gpu/mali/mali/linux/mali_osk_memory.c      | 16 ++---
  drivers/gpu/mali/mali/linux/mali_osk_misc.c        | 12 ++--
  .../mali/mali/platform/mali400-pmu/mali_platform.c | 25 -------
  drivers/gpu/mali/ump/linux/ump_kernel_linux.c      |  2 +-
  drivers/media/video/sunxi/sunxi_cedar.c            | 70 +++++++++-----------
  drivers/video/Kconfig                              |  3 +-
  drivers/video/sunxi/disp/dev_fb.c                  | 76 ++++++++++++++++++++++
  16 files changed, 209 insertions(+), 116 deletions(-)


--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to