# Re: matroxfb returning incorrect fix.smem\_len?

- From: Geert Uytterhoeven \<geert@linux-m68k.org\>
- Date: 2007-03-01 13:21:43 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2007/03/13456907
- Thread: https://ratatoskr.run/linux-fbdev/2007/02/13456906/t.md

```text
On Wed, 28 Feb 2007, Ian Romanick wrote:
> While doing some work on the pci-rework branch of X.org, I noticed
> something strange.  matroxfb correctly detects that my card has 16MiB,
> but fix.smem_len is only 8MiB.
> 
> I looked around the matroxfb code and some of the other driver's code,
> and I believe that matroxfb is incorrectly setting fix.smem_len.
> Matroxfb sets fix.smem_len to (total_memory_size -
> memory_used_by_current_mode).  Other drivers, such as nvidiafb do not do
> this.

Did matroxfb detect a dual-head capable card?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
```
