Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1390217

Re: [PATCH 2/2] ARC: [axs10x] Specify reserved memory for frame buffer

From Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] ARC: [axs10x] Specify reserved memory for frame buffer
Date 2016-04-28 15:50 +0200
Message-ID <rsUun-3Xq-37@gated-at.bofh.it> (permalink)
References <rsyNc-2L2-11@gated-at.bofh.it> <rsyNc-2L2-9@gated-at.bofh.it> <rsLKq-5lP-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Vineet,

On Thu, 2016-04-28 at 09:56 +-0530, Vineet Gupta wrote:

+AFs-snip+AF0-

+AD4- +AD4- 
+AD4- +AD4- diff --git a/arch/arc/boot/dts/axc001.dtsi b/arch/arc/boot/dts/axc001.dtsi
+AD4- +AD4- index 420dcfd..ae6162d 100644
+AD4- +AD4- --- a/arch/arc/boot/dts/axc001.dtsi
+AD4- +AD4- +-+-+- b/arch/arc/boot/dts/axc001.dtsi
+AD4- +AD4- +AEAAQA- -95,6 +-95,24 +AEAAQA-
+AD4- +AD4- +AKA-		+ACM-size-cells +AD0- +ADw-1+AD4AOw-
+AD4- +AD4- +AKA-		ranges +AD0- +ADw-0x00000000 0x80000000 0x40000000+AD4AOw-
+AD4- +AD4- +AKA-		device+AF8-type +AD0- +ACI-memory+ACIAOw-
+AD4- +AD4- -		reg +AD0- +ADw-0x80000000 0x20000000+AD4AOw-	/+ACo- 512MiB +ACo-/
+AD4- +AD4- +-		reg +AD0- +ADw-0x80000000 0x1f000000+AD4AOw-	/+ACo- 512 - 16 MiB +ACo-/
+AD4- Is 16MB fixed size or is this a function of display resolution / density etc.

Indeed this value depends on screen resolution and bpp and double-
or even tripple-buffering (once this becomes supported in the driver).

So as of now the corner case would be 1920x1080, 16 bits per pixel
which gives +AH4-4Mb. Now if we add support of triple-buffering we'll
need +AH4-12Mb so I booked a little bit more - 16Mb.

But now I recalled that we also support+AKA-r8g8b8 mode and in this case
3 bytes are used for color encoding, which effectively gives +AH4-6Mb for
1 FullHD frame. And for tripple-buffering we'll need +AD4- 18Mb, so probably
we'll need to go for 24 or even 32 Mb.

+AFs-snip+AF0-

+AD4- +AD4- +-
+AD4- +AD4- +-	reserved-memory +AHs-
+AD4- +AD4- +-		+ACM-address-cells +AD0- +ADw-1+AD4AOw-
+AD4- +AD4- +-		+ACM-size-cells +AD0- +ADw-1+AD4AOw-
+AD4- +AD4- +-		ranges+ADs-
+AD4- +AD4- +-		/+ACo-
+AD4- +AD4- +-		+AKAAKg- Move frame buffer out of IOC aperture (0x8z-0xAz).
+AD4- +AD4- +-		+AKAAKg-/
+AD4- +AD4- +-		frame+AF8-buffer: frame+AF8-buffer+AEA-bf000000 +AHs-
+AD4- +AD4- +-			compatible +AD0- +ACI-shared-dma-pool+ACIAOw-
+AD4- +AD4- +-			reg +AD0- +ADw-0xbf000000 0x1000000+AD4AOw-
+AD4- Can this be made a bit more future safe. AXS103 has 1 GB of DDR while kernel
+AD4- currently only uses 512M. Once we increase that, this will need fixing too. Better
+AD4- to make this as far possible.

Makes sense. Will move it to the very end of 1Gb.

+AD4- Note that the IOC start alignment needs to follow
+AD4- max(4k, size). What will be maximum size of frame buffer - 16M always +ACE-

What do you mean by that?

-Alexey

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] ARC: [axs10x] Specify reserved memory for frame buffer Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-04-27 16:40 +0200
  Re: [PATCH 2/2] ARC: [axs10x] Specify reserved memory for frame  buffer Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2016-04-28 06:30 +0200
    Re: [PATCH 2/2] ARC: [axs10x] Specify reserved memory for frame  buffer Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-04-28 15:50 +0200
      Re: [PATCH 2/2] ARC: [axs10x] Specify reserved memory for frame  buffer Vineet Gupta <vgupta@synopsys.com> - 2016-04-28 16:00 +0200
        Re: [PATCH 2/2] ARC: [axs10x] Specify reserved memory for frame  buffer Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-04-28 16:40 +0200

csiph-web