public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* COMPILE BUG: SiS DRM Support
  2002-04-05 11:46 [PATCH] kernel 2.5.8-pre1, tipar: parallel link cable driver for TI graphing calculators Romain LIEVIN
@ 2002-04-05 12:22 ` Brett Nuske
  2002-04-05 12:34   ` Sebastian Droege
  2002-04-05 13:07   ` Alan Cox
  0 siblings, 2 replies; 5+ messages in thread
From: Brett Nuske @ 2002-04-05 12:22 UTC (permalink / raw)
  To: linux-kernel


Hi,

   I have been trying to compile SiS DRM support
with the 2.4.18 kernel (have tried both module
and in the kernel) but to no avail. When built
as a module it compiles but when the module gets
loaded I get unresolved symbols.

   When trying to compile the support directly into
the kernel I get the following compilation errors:

<cut>

ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/video/video.o drivers/usb/usbdrv.o drivers/input/inputdrv.o \
        net/network.o \
        /usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/linux/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
drivers/char/drm/drm.o: In function `sis_fb_alloc':
drivers/char/drm/drm.o(.text+0x6a26): undefined reference to `sis_malloc'
drivers/char/drm/drm.o(.text+0x6a6d): undefined reference to `sis_free'
drivers/char/drm/drm.o: In function `sis_fb_free':
drivers/char/drm/drm.o(.text+0x6bb2): undefined reference to `sis_free'
drivers/char/drm/drm.o: In function `sis_final_context':
drivers/char/drm/drm.o(.text+0x7066): undefined reference to `sis_free'
make: *** [vmlinux] Error 1

</cut>

sis_free appears to be in linux/drivers/video/sis/sis_main.c
with its prototype in linux/drivers/video/sis/sis_main.h

linux/drivers/video/sis/sis_mm.c seems to be where the sis_fb_alloc
and sis_fb_free function calls are made.

Is there any obvious reasons why this isn't compiling?

Thanks in advance

****************************************************
*   Brett Nuske                                    *
*   3nd Year B.APP.SCI.(Computer Science)          *
*   COSC1082/CS118 Tutor                           *
*   City Tech. Helpdesk Staff (Computer Science)   *
****************************************************


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

* Re: COMPILE BUG: SiS DRM Support
  2002-04-05 12:22 ` COMPILE BUG: SiS DRM Support Brett Nuske
@ 2002-04-05 12:34   ` Sebastian Droege
  2002-04-05 17:44     ` James Simmons
  2002-04-05 13:07   ` Alan Cox
  1 sibling, 1 reply; 5+ messages in thread
From: Sebastian Droege @ 2002-04-05 12:34 UTC (permalink / raw)
  To: Brett Nuske; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2207 bytes --]

On Fri, 5 Apr 2002 22:22:05 +1000 (EST)
Brett Nuske <bnuske@cs.rmit.edu.au> wrote:

> 
> Hi,
> 
>    I have been trying to compile SiS DRM support
> with the 2.4.18 kernel (have tried both module
> and in the kernel) but to no avail. When built
> as a module it compiles but when the module gets
> loaded I get unresolved symbols.
> 
>    When trying to compile the support directly into
> the kernel I get the following compilation errors:
> 
> <cut>
> 
> ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o \
>         --start-group \
>         arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
>          drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/video/video.o drivers/usb/usbdrv.o drivers/input/inputdrv.o \
>         net/network.o \
>         /usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/linux/arch/i386/lib/lib.a \
>         --end-group \
>         -o vmlinux
> drivers/char/drm/drm.o: In function `sis_fb_alloc':
> drivers/char/drm/drm.o(.text+0x6a26): undefined reference to `sis_malloc'
> drivers/char/drm/drm.o(.text+0x6a6d): undefined reference to `sis_free'
> drivers/char/drm/drm.o: In function `sis_fb_free':
> drivers/char/drm/drm.o(.text+0x6bb2): undefined reference to `sis_free'
> drivers/char/drm/drm.o: In function `sis_final_context':
> drivers/char/drm/drm.o(.text+0x7066): undefined reference to `sis_free'
> make: *** [vmlinux] Error 1
> 
> </cut>
> 
> sis_free appears to be in linux/drivers/video/sis/sis_main.c
> with its prototype in linux/drivers/video/sis/sis_main.h
> 
> linux/drivers/video/sis/sis_mm.c seems to be where the sis_fb_alloc
> and sis_fb_free function calls are made.
> 
> Is there any obvious reasons why this isn't compiling?
Try compiling with SiS framebuffer device (CONFIG_FB_SIS and CONFIG_FB_SIS_300 or CONFIG_FB_SIS_315) activated... the SiS DRI driver needs it... don't ask me why ;)

Bye

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: COMPILE BUG: SiS DRM Support
  2002-04-05 12:22 ` COMPILE BUG: SiS DRM Support Brett Nuske
  2002-04-05 12:34   ` Sebastian Droege
@ 2002-04-05 13:07   ` Alan Cox
  1 sibling, 0 replies; 5+ messages in thread
From: Alan Cox @ 2002-04-05 13:07 UTC (permalink / raw)
  To: Brett Nuske; +Cc: linux-kernel

>    I have been trying to compile SiS DRM support
> with the 2.4.18 kernel (have tried both module
> and in the kernel) but to no avail. When built

You must include SiS frame buffer support

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

* Re: COMPILE BUG: SiS DRM Support
  2002-04-05 12:34   ` Sebastian Droege
@ 2002-04-05 17:44     ` James Simmons
  0 siblings, 0 replies; 5+ messages in thread
From: James Simmons @ 2002-04-05 17:44 UTC (permalink / raw)
  To: Sebastian Droege; +Cc: Brett Nuske, linux-kernel


> > Is there any obvious reasons why this isn't compiling?
> Try compiling with SiS framebuffer device (CONFIG_FB_SIS and 
> CONFIG_FB_SIS_300 or CONFIG_FB_SIS_315) activated... the SiS DRI driver
> needs it... don't ask me why ;)

Because they share common code. It is actually better that they work
together since this way they will not step on each others toes. Someday I
plan to merge both the fbdev and drm interfaces together.



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

* Re: COMPILE BUG: SiS DRM Support
@ 2002-04-09  7:52 Thomas Winischhofer
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Winischhofer @ 2002-04-09  7:52 UTC (permalink / raw)
  To: linux-kernel


> > > Is there any obvious reasons why this isn't compiling?
> > Try compiling with SiS framebuffer device (CONFIG_FB_SIS and
> > CONFIG_FB_SIS_300 or CONFIG_FB_SIS_315) activated... the SiS DRI driver
> > needs it... don't ask me why ;)
> 
> Because they share common code. It is actually better that they work
> together since this way they will not step on each others toes. Someday I
> plan to merge both the fbdev and drm interfaces together.

More precisely, the framebuffer driver contains all the chipset and
therefore the memory (amount/type) detection stuff. It checks for
eventual Turbo/Commandqueue capabilities (which differ significantly
depending on the actual chipset used) and sets up a memory heap taking
all the hardware specifics into account. Moving the memory management to
the DRM module will result in a lot of duplicate code and a lack of
common memory management.

If you don't want to use the framebuffer, start it with no video mode
specified or with mode=none (or mode:none if as kernel parameter)

Thomas

PS: For updates of the SiS VGA drivers, please check my homepage.

-- 
Thomas Winischhofer
Vienna/Austria                 
mailto:thomas@winischhofer.net            http://www.winischhofer.net/


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

end of thread, other threads:[~2002-04-09  8:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-09  7:52 COMPILE BUG: SiS DRM Support Thomas Winischhofer
  -- strict thread matches above, loose matches on Subject: below --
2002-04-05 11:46 [PATCH] kernel 2.5.8-pre1, tipar: parallel link cable driver for TI graphing calculators Romain LIEVIN
2002-04-05 12:22 ` COMPILE BUG: SiS DRM Support Brett Nuske
2002-04-05 12:34   ` Sebastian Droege
2002-04-05 17:44     ` James Simmons
2002-04-05 13:07   ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox