Commit Graph

191064 Commits

Author SHA1 Message Date
sjg
3e3df25ba3 Don't missinterpret targets that start with .info 2010-05-24 21:04:49 +00:00
pgoyette
1365824bee Adapt libpci build to include new pci_verbose.c 2010-05-24 20:31:17 +00:00
pgoyette
b18bc9eab4 Update all callers of the pci_find{vendor,product} routines to now call
these routines through their global pointers.
2010-05-24 20:29:49 +00:00
pgoyette
72a7c70b78 Extract the vendor/product tables and related access routines into a
separate kernel module.  Update pci bus attach routine to load the
module (if available) when we're about to start scanning the bus, and
unload the module after the scan is finished.

On architectures which support loading of modules by the boot loader,
the 'pciverbose' module can be loaded and executed without needing to
rebuild the kernel.  On all architectures, using 'options PCIVERBOSE'
in the kernel configuration file will create a 'builtin' module which
is functionally equivalent to previous behavior.

XXX Although not nearly as large as the vendor and product tables,
XXX the PCI class and subclass tables might also be offloaded into
XXX the module at a future time.

XXX Cardbus (and possibly other) drivers should also be modified to
XXX load the module before scanning/attaching devices.
2010-05-24 20:29:40 +00:00
mrg
4709322f7b Note xsrc Xorg package updates, and radeondrm(4) updates. 2010-05-24 20:02:39 +00:00
pgoyette
c77c96962b Move definition of module_load_vfs_vec from kern_module_vfs.c to
kern_module.c - keeps rump happy.

Thanks, pooka!
2010-05-24 16:37:17 +00:00
pgoyette
c269eb06dd Clean up kern_module.c rev 1.66, thanks to pooka@ for review & suggestions 2010-05-24 15:34:48 +00:00
lukem
43b2175b78 fix MKDEBUG=yes for X11R7 libs 2010-05-24 14:04:04 +00:00
martin
527781be00 Make C declarations match assembler reality: ipi functions get two arguments
(which most of them (partly) ignore, but anyway).
2010-05-24 09:49:17 +00:00
mrg
280989eb06 use round_page() for PAGE_ALIGN(). from Onno van der Linden
<o.vd.linden@quicknet.nl> in PR#38700, though apparently i didn't
commit it way back when i closed that bug.  oops?
2010-05-24 08:51:53 +00:00
veego
7c66f95e1b Replace __appmansuffix__ in fsconfig.cpp 2010-05-24 05:30:40 +00:00
pgoyette
2c4465aaa0 Protect against attempting to load modules from the filesystem until we
have mounted the root file-system.  This allows us to load built-in and
boot-loader-provided modules much earlier during startup.
2010-05-24 03:50:25 +00:00
mrg
cb41b2ef42 this needs <machine/psl.h> for PSTATE_AM on 32 bit kernels. 2010-05-24 02:19:10 +00:00
mrg
bcf0a7d7e9 add r600_blit.c and radeon_cs.c. 2010-05-24 01:57:06 +00:00
mrg
4351b00b10 implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.
this is mostly from freebsd (though it also exists in other versions
of the drm code) svn commits:

--
SVN rev 196470 on 2009-08-23 14:55:57Z by rnoland

Add kernel support for Radeon R6/7xx 3D.

You will still need Mesa from git and possibly an updated DDX driver,
but this is working fairly well now.
--
SVN rev 196142 on 2009-08-12 12:57:02Z by rnoland

Add support for radeon RS880 IGP chips to drm.
--
SVN rev 195501 on 2009-07-09 16:39:28Z by rnoland

Add support for Radeon HD 4770 (RV740) chips.
--
SVN rev 196471 on 2009-08-23 15:02:58Z by rnoland

Add GET_PARAM support for Z pipes.

This is needed for occulsion queries on rv530 chips.
--
SVN rev 198695 on 2009-10-30 18:07:22Z by rnoland

A bit of cleanup work on radeon_freelist_get()

  * Fix the main loop to search all buffers before sleeping.
  * Remove dead code
--
SVN rev 197606 on 2009-09-28 22:41:28Z by rnoland

Fix offset handling
--
SVN rev 197605 on 2009-09-28 22:40:29Z by rnoland

radeon_family is an enum, so ordering can be important.

sync up with what amd is shipping.
--
SVN rev 197603 on 2009-09-28 22:37:07Z by rnoland

R600 doesn't support IRQs yet, so don't try to use them.
--

special thanks to robert noland @ freebsd for making this an
easy port!
2010-05-24 01:39:06 +00:00
joerg
52bf796fd6 Explicitly quote | and : meant as separate operator. Kill trailing
whitespace. Don't use \Z' with obscure character entity. Reorder sections
to canonical order.
2010-05-24 00:29:30 +00:00
jym
0ae4c88a36 PRIxPADDR instead of %lx to print bus_addr_t/paddr_t variables. 2010-05-23 23:53:36 +00:00
jym
603ac9bd31 Cast the sum of iobase and iosize to long, not just iobase. Avoids size
warnings during build when bus_addr_t is 64 bits.
2010-05-23 23:50:37 +00:00
mrg
2cc35fcdb7 these depend upon libdrm_radeon now. 2010-05-23 23:21:30 +00:00
christos
245822f743 simplify the debugging code and make it more informative. 2010-05-23 22:06:38 +00:00
christos
208ad48907 no need for double the newlines! 2010-05-23 22:05:54 +00:00
christos
cbc22ad229 - centralize the snprintf code.
- use err where appropriate.
- add machclass which should be x86 when i386 and amd64 and can be specified
  in man.conf as:
	_i386	x86
	_amd64	x86
  so that we can support merged pages. Nothing uses this yet.
2010-05-23 22:04:36 +00:00
veego
e6aea5bc19 Replace UTMP_FILE and WTMP_FILE for Xstartup here and not in the cpp file
to make a xdm update easier.
xdm was updated but the local change in Xstartup.cpp was lost.
2010-05-23 21:35:35 +00:00
mrg
a85bea796f updates for Mesa 7.7.1. 2010-05-23 21:32:50 +00:00
veego
d6cf4a0fd0 Use ${XDMPIDDIR} and ${XDMLOGDIR} from ../xdm/Makefile.xdm instead of
hard coding the path here.
2010-05-23 21:31:57 +00:00
mrg
3172c38b29 build fixes for Mesa 7.7.1. introduce r600 driver! 2010-05-23 21:31:52 +00:00
veego
7f287d45d8 Remove a / between a ${DESTDIR}${X11USRLIBDIR} which would result in a
double /
2010-05-23 21:23:59 +00:00
martin
cbe63f6ddd Add ucas_32 and ucas_64 functions - untested. 2010-05-23 19:54:17 +00:00
christos
a39b0c6ef3 Add entry for:
Intel(R) Core(TM)2 Duo CPU     P9500  @ 2.53GHz
2010-05-23 19:00:28 +00:00
christos
32e80c5d9d Revert all previous kmem_ commits. This needs to be done in a different way
because we cannot call kmem_ from an interrupt context. I opened PR/43341 for
it.
2010-05-23 18:56:58 +00:00
martin
6c32c1192c Split copy related functions out of locore.s into copy.S, move functions
only needed on multiprocessors into mp_subr.S.
2010-05-23 18:49:14 +00:00
veego
c3c7ed4b96 It seems something changed with the 'newer' yacc.
Rename y.output in CLEANFILES to aslcompilerparse.output
2010-05-23 14:08:05 +00:00
veego
c005cd37bb Add ${PROG}.syms to CLEANFILES 2010-05-23 13:59:12 +00:00
nonaka
250a759ede Added WS020SH keymap. 2010-05-23 11:57:04 +00:00
nonaka
68dd400742 Added Support SD card insert/remove detection for WS020SH. 2010-05-23 11:53:18 +00:00
nonaka
ead0f77ecb Added some WS020SH specific parameters. 2010-05-23 11:49:16 +00:00
mrg
b5c0d25529 obsolete vga.4 like other ports. as noticed by kurt schreiner. 2010-05-23 10:50:28 +00:00
mrg
576740c1b8 delete most of this file; it is obsolete 2010-05-23 10:45:04 +00:00
mrg
d4005d5baa updates for xf86-video-vmware 2010-05-23 06:41:19 +00:00
mrg
aa57a3fc7c build vmwlegacy and vmware modules as per- 11.0.1. 2010-05-23 06:37:32 +00:00
mrg
a6979b6038 updates for xf86-video-ati 6.13.0. 2010-05-23 06:16:13 +00:00
mrg
1bf99f0476 bump libpixman-1.so minor. avoid double defining PIXMAN_DISABLE_DEPRECATED. 2010-05-23 04:26:19 +00:00
christos
f651b8a7c3 Don't allocate sid scratch memory from an interrupt context:
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
panic: kernel diagnostic assertion "!cpu_intr_p()" failed: file "../../../../ker
n/subr_kmem.c", line 195
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip ffffffff8022db1d cs 8 rflags 246 cr2  0 cpl 6 rsp fffffff
f80fafb68
breakpoint() at netbsd:breakpoint+0x5
panic() at netbsd:panic+0x2ba
kern_assert() at netbsd:kern_assert+0x2d
kmem_alloc() at netbsd:kmem_alloc+0x18a
fwohci_intr() at netbsd:fwohci_intr+0xbe2
...

I will send-pr for the next one... Looks like someone did not use DIAGNOSTIC
when made the changes.
2010-05-23 02:25:50 +00:00
christos
e9c888b9ca don't allocate rom scratch memory from an interrupt context:
fwohci0: BUS reset
panic: kernel diagnostic assertion "!cpu_intr_p()" failed: file "../../../../ker
n/subr_kmem.c", line 195
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip ffffffff8022db1d cs 8 rflags 246 cr2  0 cpl 6 rsp fffffff
f80fafb08
breakpoint() at netbsd:breakpoint+0x5
panic() at netbsd:panic+0x2ba
kern_assert() at netbsd:kern_assert+0x2d
kmem_alloc() at netbsd:kmem_alloc+0x18a
kmem_zalloc() at netbsd:kmem_zalloc+0xf
fw_busreset() at netbsd:fw_busreset+0x23b
fwohci_intr() at netbsd:fwohci_intr+0xa56
...
2010-05-23 02:24:40 +00:00
mrg
2508865994 remove unnecessary includes 2010-05-23 01:59:12 +00:00
mrg
3e5caf6bef install libdrm_intel.pc and libdrm_radeon.pc 2010-05-23 01:30:25 +00:00
mrg
1833edab5e we have Mesa 7.4.4. 2010-05-23 01:19:34 +00:00
joerg
89d61a1cf0 Add .It for content of .Bl -column. Move .Pp out of .Bl. 2010-05-23 00:01:31 +00:00
mrg
e1fcd437da add llib-ldrm_radeon.ln 2010-05-22 23:21:36 +00:00
mrg
d7630e6d89 intall libkms.h into the right place. fix some libdrm_radeon issues. 2010-05-22 23:19:44 +00:00