# Re: 2.6.19-rc5: Geode GX frame buffer takes 13 seconds to initialize

- From: Jordan Crouse \<hidden\>
- Date: 2006-11-21 00:31:02 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2006/11/13456736
- Thread: https://ratatoskr.run/linux-fbdev/2006/11/13456721/t.md

```text
On 20/11/06 16:47 -0600, Ben Gardner wrote:
> I tracked it down to the memset_io() call in gxfb_core.c that clears
> all the video memory.
> 
> It take 12.5 seconds to memset() a mere 16,384 Kibyte of memory.
> That seems a bit strange to me.
> 
> What's stranger is the time it takes to clear the fb memory:
> The first 4 MB clear in 0.01 s each.
> The last 12MB are SLOW.
 
Hmmm - thats interesting.  One thing about the current gxfb driver is that
it assumes a 16Mb framebuffer, which may or may not be what you have, since 
the amount of memory that is assigned to the graphics engine is configurable.

Its possible that you only have 4Mb of memory assigned to the graphics
engine, and that memsetting further is out being subtractively decoded on
the PCI bus and going nowhere slowly.

The attached patch queries the BIOS for the true amount of memory that
is configured.  The patch has been kicking around in the Geode git tree and 
-mm for a while so it should be sane.  Give it a try and see if it helps.

Jordan
```

## Attachments

- [patch\_011](https://ratatoskr.run/linux-fbdev/2006/11/13456736/attachment/0) (text/plain, 1434 bytes)
- [(unnamed)](https://ratatoskr.run/linux-fbdev/2006/11/13456736/attachment/1) (text/plain, 347 bytes)
- [(unnamed)](https://ratatoskr.run/linux-fbdev/2006/11/13456736/attachment/2) (text/plain, 182 bytes)
