Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2012 11:11:35 GMT
From:      Anton Shterenlikht <mexas@bristol.ac.uk>
To:        illoai@gmail.com, mexas@bristol.ac.uk
Cc:        freebsd-questions@freebsd.org
Subject:   Re: do I need agp(4) on my amd64 laptop
Message-ID:  <201211251111.qAPBBZBT031088@mech-cluster241.men.bris.ac.uk>
In-Reply-To: <CAHHBGkqXLog4FgWDSCsqosbVb=dK26G4z-shd73f26jp93QcuA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
	From illoai@gmail.com Sat Nov 24 16:09:29 2012
	> On 22 November 2012 06:19, Anton Shterenlikht <mexas@bristol.ac.uk> wrote:
	>> It is not clear for me from the agp(4) man page,
	>> whether I need this device in the kernel or not.
	>> The pciconf -lv output is below. Or do I need to
	>> show dmesg?
	>>
	>> Please advise
	>>
	>> Thanks
	>> Anton
	>>
	>>
	>> hostb0@pci0:0:0:0:      class=0x060000 card=0x30c2103c chip=0x79101002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'RS690 Host Bridge'
	>>     class      = bridge
	>>     subclass   = HOST-PCI
	>> pcib1@pci0:0:1:0:       class=0x060400 card=0x30c2103c chip=0x79121002 rev=0x00 hdr=0x01
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'RS690 PCI to PCI Bridge (Internal gfx)'
	>>     class      = bridge
	>>     subclass   = PCI-PCI
	>> pcib2@pci0:0:4:0:       class=0x060400 card=0x30c2103c chip=0x79141002 rev=0x00 hdr=0x01
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     class      = bridge
	>>     subclass   = PCI-PCI
	>> pcib3@pci0:0:5:0:       class=0x060400 card=0x30c2103c chip=0x79151002 rev=0x00 hdr=0x01
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'RS690 PCI to PCI Bridge (PCI Express Port 1)'
	>>     class      = bridge
	>>     subclass   = PCI-PCI
	>> pcib4@pci0:0:6:0:       class=0x060400 card=0x30c2103c chip=0x79161002 rev=0x00 hdr=0x01
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'RS690 PCI to PCI Bridge (PCI Express Port 2)'
	>>     class      = bridge
	>>     subclass   = PCI-PCI
	>> ahci0@pci0:0:18:0:      class=0x01018f card=0x43801002 chip=0x43801002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SB600 Non-Raid-5 SATA'
	>>     class      = mass storage
	>>     subclass   = ATA
	>> ohci0@pci0:0:19:0:      class=0x0c0310 card=0x30c2103c chip=0x43871002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SB600 USB (OHCI0)'
	>>     class      = serial bus
	>>     subclass   = USB
	>> ohci1@pci0:0:19:1:      class=0x0c0310 card=0x30c2103c chip=0x43881002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SB600 USB (OHCI1)'
	>>     class      = serial bus
	>>     subclass   = USB
	>> ohci2@pci0:0:19:2:      class=0x0c0310 card=0x30c2103c chip=0x43891002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SB600 USB (OHCI2)'
	>>     class      = serial bus
	>>     subclass   = USB
	>> ohci3@pci0:0:19:3:      class=0x0c0310 card=0x30c2103c chip=0x438a1002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SB600 USB (OHCI3)'
	>>     class      = serial bus
	>>     subclass   = USB
	>> ohci4@pci0:0:19:4:      class=0x0c0310 card=0x30c2103c chip=0x438b1002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SB600 USB (OHCI4)'
	>>     class      = serial bus
	>>     subclass   = USB
	>> ehci0@pci0:0:19:5:      class=0x0c0320 card=0x30c2103c chip=0x43861002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SB600 USB Controller (EHCI)'
	>>     class      = serial bus
	>>     subclass   = USB
	>> none0@pci0:0:20:0:      class=0x0c0500 card=0x30c2103c chip=0x43851002 rev=0x14 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SBx00 SMBus Controller'
	>>     class      = serial bus
	>>     subclass   = SMBus
	>> atapci0@pci0:0:20:1:    class=0x010182 card=0x30c2103c chip=0x438c1002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SB600 IDE'
	>>     class      = mass storage
	>>     subclass   = ATA
	>> hdac0@pci0:0:20:2:      class=0x040300 card=0x30c2103c chip=0x43831002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SBx00 Azalia (Intel HDA)'
	>>     class      = multimedia
	>>     subclass   = HDA
	>> isab0@pci0:0:20:3:      class=0x060100 card=0x30c2103c chip=0x438d1002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SB600 PCI to LPC Bridge'
	>>     class      = bridge
	>>     subclass   = PCI-ISA
	>> pcib5@pci0:0:20:4:      class=0x060401 card=0x00000000 chip=0x43841002 rev=0x00 hdr=0x01
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'SBx00 PCI to PCI Bridge'
	>>     class      = bridge
	>>     subclass   = PCI-PCI
	>> hostb1@pci0:0:24:0:     class=0x060000 card=0x00000000 chip=0x11001022 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD]'
	>>     device     = 'K8 [Athlon64/Opteron] HyperTransport Technology Configuration'
	>>     class      = bridge
	>>     subclass   = HOST-PCI
	>> hostb2@pci0:0:24:1:     class=0x060000 card=0x00000000 chip=0x11011022 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD]'
	>>     device     = 'K8 [Athlon64/Opteron] Address Map'
	>>     class      = bridge
	>>     subclass   = HOST-PCI
	>> hostb3@pci0:0:24:2:     class=0x060000 card=0x00000000 chip=0x11021022 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD]'
	>>     device     = 'K8 [Athlon64/Opteron] DRAM Controller'
	>>     class      = bridge
	>>     subclass   = HOST-PCI
	>> hostb4@pci0:0:24:3:     class=0x060000 card=0x00000000 chip=0x11031022 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD]'
	>>     device     = 'K8 [Athlon64/Opteron] Miscellaneous Control'
	>>     class      = bridge
	>>     subclass   = HOST-PCI
	>> vgapci0@pci0:1:5:0:     class=0x030000 card=0x30c2103c chip=0x791f1002 rev=0x00 hdr=0x00
	>>     vendor     = 'Advanced Micro Devices [AMD] nee ATI'
	>>     device     = 'RS690M [Radeon X1200 Series]'
	>>     class      = display
	>>     subclass   = VGA
	>> bge0@pci0:16:0:0:       class=0x020000 card=0x30c2103c chip=0x171314e4 rev=0x02 hdr=0x00
	>>     vendor     = 'Broadcom Corporation'
	>>     device     = 'NetLink BCM5906M Fast Ethernet PCI Express'
	>>     class      = network
	>>     subclass   = ethernet
	>> siba_bwn0@pci0:48:0:0:  class=0x028000 card=0x1371103c chip=0x431214e4 rev=0x02 hdr=0x00
	>>     vendor     = 'Broadcom Corporation'
	>>     device     = 'BCM4311 802.11a/b/g'
	>>     class      = network
	>> cbb0@pci0:2:4:0:        class=0x060700 card=0x30c2103c chip=0x04761180 rev=0xb6 hdr=0x02
	>>     vendor     = 'Ricoh Co Ltd'
	>>     device     = 'RL5c476 II'
	>>     class      = bridge
	>>     subclass   = PCI-CardBus
	>
	> You bring up a good point.  Your laptop is almost the same as mine,
	> & the graphics chip is connected via PCI Express.
	> I should see if it builds & runs without agp.
	>

	Looks like drm requires agp for the kernel to link correctly.
	Oh well.

	...
	drm_agpsupport.o: In function `drm_agp_free_memory':
	/home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xcba):
	undefined reference to `agp_fi
	nd_device'
	/home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xcd4):
	undefined reference to `agp_fr
	ee_memory'
	drm_agpsupport.o: In function `drm_agp_init':
	/home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xdb8):
	undefined reference to `agp_fi
	nd_device'
	/home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xe2f):
	undefined reference to `agp_ge
	t_info'
	*** [kernel] Error code 1
	...

ok, I get it. I think I built drm and agp
together, hence I haven't encountered this
error.

Do you use radeon video driver?
Do you use radeondrm device in kernel?
This only place I see this is in
src/sys/amd64/conf/NOTES.
My understanding is that to get drm
working with the radeon driver, I need
to add radeondrm to the kernel, but again,
I'm not sure.

Anton




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211251111.qAPBBZBT031088>