All of lore.kernel.org
 help / color / mirror / Atom feed
* Bug in uninorth-agp.c parsing of module parameter uninorth_agp.aperture
@ 2015-02-15 18:27 Jochen Rollwagen
  2015-02-16  2:51 ` Michel Dänzer
  0 siblings, 1 reply; 2+ messages in thread
From: Jochen Rollwagen @ 2015-02-15 18:27 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 992 bytes --]

Hi,

i found a bug in uninorth-agp.c, function uninorth_fetch_size.

the line

size  <http://lxr.free-electrons.com/ident?i=size>  =memparse  <http://lxr.free-electrons.com/ident?i=memparse>(aperture  <http://lxr.free-electrons.com/ident?i=aperture>, &aperture  <http://lxr.free-electrons.com/ident?i=aperture>) >> 20;

always sets size to zero which makes the driver allocate the default size of 256 MB which is obviously too large for older uninorth revisions.

I split the line into memparse and shifting and inserted diagnostic messages, output with uninorth_agp.aperture = 32 as boot parameter:

Feb 15 19:12:44 mac-mini kernel: [    2.568636] agpgart-uninorth 0000:00:0b.0: size in uninorth_fetch_size after memparse: 32
Feb 15 19:12:44 mac-mini kernel: [    2.568642] agpgart-uninorth 0000:00:0b.0: size after >> 20: 0

It would be nice if a patch could be produced so i can experiment with 
different aperture sizes without having to rebuild the kernel every time :-)

Cheers

Jochen

[-- Attachment #1.2: Type: text/html, Size: 1324 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-16  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-15 18:27 Bug in uninorth-agp.c parsing of module parameter uninorth_agp.aperture Jochen Rollwagen
2015-02-16  2:51 ` Michel Dänzer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.