10441 Commits

Author SHA1 Message Date
davidxu
7bd3a09a50 MFC amd64/amd64/machdep.c revision 1.646, i386/i386/machdep.c
revision 1.622
>
> Clear carry flag in get_mcontext so that setcontext does not
> return a bogus error.
>
> PR: misc/92110

Approved by:	re (scottl)
2006-02-07 00:29:33 +00:00
marius
7778ace703 MFC: 1.438
Remove the commented out entry of the old ISA-only le(4) driver which
was retired 22 months ago.
2006-01-23 14:19:36 +00:00
jhb
b01bef48d7 MFC: Fix a couple of issues with the ibcs2 module event handler. 2006-01-10 21:44:58 +00:00
jhb
c240b8f56c MFC: Remove linux_mib_destroy() since MTX_SYSINIT's gaining of a SYSUNINIT
that called mtx_destroy() made it obsolete.
2005-12-22 21:25:20 +00:00
anholt
63922011a7 MFC DRM. Notable changes:
- i915 (i830-i915) driver ported.
- S3 Savage driver ported.
- Added support for ATI_fragment_shader registers for r200.
- Improved r300 support, needed for latest r300 DRI driver.
- (possibly) r300 PCIE support, needs X.Org server from CVS.
- Added support for PCI Matrox cards.
- Software fallbacks fixed for Rage 128, which used to render badly or hang.
- Some issues reported by WITNESS are fixed.
2005-12-14 00:52:59 +00:00
jhb
786e4e87b4 MFC: Slam the door more forcefully on mixed mode. 2005-12-13 16:47:33 +00:00
jhb
3045ceb187 MFC: Don't panic if IRQ 13 doesn't exist, only if it doesn't exist and we
actually need it.
2005-12-12 19:36:50 +00:00
jhb
0629d9c388 MFC: Always print the trap number for fatal traps and add trap messages
for T_XMMFLT and T_RESERVED.
2005-11-28 20:03:15 +00:00
jhb
ee240d82b4 MFC: Check for -1 using 0xffffffff rather than 0xffffff. 2005-11-23 19:06:53 +00:00
alc
7c1f2732db MFC
Begin and end the initialization of pvzone in pmap_init().
  Previously, pvzone's initialization was split between pmap_init() and
  pmap_init2().  This split initialization was the underlying cause of
  some UMA panics during initialization.  Specifically, if the UMA boot
  pages was exhausted before the pvzone was fully initialized, then UMA,
  through no fault of its own, would use an inappropriate back-end
  allocator leading to a panic.  (Previously, as a workaround, we have
  increased the UMA boot pages.)  Fortunately, there is no longer any
  reason that pvzone's initialization cannot be completed in
  pmap_init().

  Eliminate a check for whether pv_entry_high_water has been initialized
  or not from get_pv_entry().  Since pvzone's initialization is
  completed in pmap_init(), this check is no longer needed.

  Use cnt.v_page_count, the actual count of available physical pages,
  instead of vm_page_array_size to compute the maximum number of pv
  entries.

  Introduce the vm.pmap.pv_entries tunable on alpha and ia64.

  Eliminate some unnecessary white space.
2005-11-19 20:31:31 +00:00
ru
3b474f83c7 MFC: Bring /dev/speaker support to amd64. 2005-11-16 10:50:12 +00:00
ru
111bd917a5 MFC: Sort ath_rate_* entries. Mark ath_rate_sample as the desired algorithm. 2005-11-16 08:59:51 +00:00
alc
953ef877b2 MFC revision 1.525
When support for 2MB/4MB pages was added in revision 1.148 an error was
  made in pmap_protect(): The pmap's resident count should not be reduced
  unless mappings are removed.

  The errant change to the pmap's resident count could result in a later
  pmap_remove() failing to remove any mappings if the errant change has set
  the pmap's resident count to zero.

MFC revision 1.526
  Decouple the unrefing of a page table page from the removal of a pv entry.
  In other words, change pmap_remove_entry() such that it no longer unrefs
  the page table page.  Now, it only removes the pv entry.

MFC revision 1.527
  Eliminate unneeded diagnostic code.

MFC revision 1.528
  Eliminate unneeded diagnostic code.

  Eliminate an unused #include.  (Kernel stack allocation and deallocation
  long ago migrated to the machine-independent code.)

MFC revision 1.529
  Simplify the page table page reference counting by pmap_enter()'s change of
  mapping case.

  Eliminate a stale comment from pmap_enter().

MFC revision 1.530
  When pmap_allocpte() destroys a 2/4MB "superpage" mapping it does not
  reduce the pmap's resident count accordingly.  It should.

MFC revision 1.532
  Eliminate unnecessary TLB invalidations by pmap_enter().  Specifically,
  eliminate TLB invalidations when permissions are relaxed, such as when a
  read-only mapping is changed to a read/write mapping.  Additionally,
  eliminate TLB invalidations when bits that are ignored by the hardware,
  such as PG_W ("wired mapping"), are changed.
2005-11-15 05:54:54 +00:00
cvs2svn
6d64926b05 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-11-14 18:38:00 +00:00
alc
245bd5abe3 MFC
Pass a value of type vm_prot_t to pmap_enter_quick() so that it determine
  whether the mapping should permit execute access.

  Revision  Changes    Path
  1.179     +2 -2      src/sys/alpha/alpha/pmap.c
  1.527     +4 -2      src/sys/amd64/amd64/pmap.c
  1.37      +3 -3      src/sys/arm/arm/pmap.c
  1.531     +2 -2      src/sys/i386/i386/pmap.c
  1.163     +4 -3      src/sys/ia64/ia64/pmap.c
  1.100     +3 -2      src/sys/powerpc/powerpc/pmap.c
  1.149     +3 -2      src/sys/sparc64/sparc64/pmap.c
  1.72      +1 -1      src/sys/vm/pmap.h
  1.207     +2 -1      src/sys/vm/vm_fault.c
  1.368     +2 -2      src/sys/vm/vm_map.c
2005-11-13 21:45:49 +00:00
scottl
0402a8d46e MFC: hptmv is not compatible with PAE.
Noticed by: alc
2005-11-08 22:28:37 +00:00
jhb
6aa34b36b0 MFC: Hook nve(4) up in i386 and amd64 NOTES. 2005-11-08 16:02:21 +00:00
obrien
ef0977219f MFC: canonify the include of acpi.h. 2005-11-07 09:53:25 +00:00
obrien
94fa0522c4 MFC: for AMD dual-core processors, nullify CPUID.HTT. 2005-11-07 08:41:12 +00:00
nyan
68a5adbd86 MFC: Don't include opt_pc98.h. 2005-11-06 04:55:43 +00:00
jhb
4587967874 MFC: Add DEFAULTS files for amd64, i386, and pc98.
Approved by:	re (scottl)
2005-10-28 19:21:27 +00:00
cvs2svn
c2300784b4 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-10-28 15:30:52 +00:00
ade
04d2b88bd5 MFC:
Specifically panic() in the case where pmap_insert_entry() fails to
get a new pv under high system load where the available pv entries
have been exhausted before the pagedaemon has a chance to wake up
to reclaim some.

Approved by:	re (scottl)
2005-10-28 06:49:49 +00:00
njl
5843aed747 MFC rev 1.12: set to 100% on boot
Approved by:	re (scottl)
2005-10-25 20:52:44 +00:00
ups
6293539098 MFC vm_machdep.c 1.261-1.263
Rev: 1.261

  Ensure that a thread stays on same CPU when calculating per CPU
  TLB shootdown requirements. Otherwise a CPU may not get the needed
  TLB invalidation.

  The PTE valid and access flags can not be used here to avoid TLB
  shootdowns unless sf->cpumask == all_cpus.
  ( Otherwise some CPUs may still hold an even older entry in the TLB)
  Since sf_buf_alloc mappings are normally always used this is
  also not really useful and presetting accessed and modified
  allows the CPU to speculatively load the entry into the TLB.

  Both bugs can cause random data corruption.

Rev: 1.262

  Restore optimizations to reduce TLB shootdowns.
  Alan Cox pointed out that they are really useful for
  sendfile().

Rev: 1.263
  Restore the UP optimization to reduce the number of TLB
  invalidations.  The
  previous revision only restored the MP optimization.

  Describe the optimization strategy for TLB invalidations in a comment.

Approved by:	re@ (scottl)
2005-10-20 01:03:23 +00:00
glebius
97d261903e Big overall MFC of polling(4) cleanup:
o First attempt on removing Giant from polling. Details:
  http://lists.freebsd.org/pipermail/cvs-src/2005-September/051848.html
o Second attempt, and big polling cleanup including:
  - Functinal approach to turning polling on/off
  - Deprecating of poll_in_trap
  - Removal of ifnet knowledge from kern_poll.c
  Details:
  http://lists.freebsd.org/pipermail/cvs-src/2005-October/053267.html
o Improved checking of user configurable sysctls. Details:
  http://lists.freebsd.org/pipermail/cvs-src/2005-October/053351.html
o Moving DEVICE_POLLING from opt_global.h to opt_device_polling.h:
  http://lists.freebsd.org/pipermail/cvs-src/2005-October/053479.html

o All related documentation fixes.

Approved by:	re (kensmith)
Thanks to:	everyone, who helped with testing
2005-10-07 14:00:06 +00:00
jkim
9acbd23179 MFC: Minor fixes and add amd64 support:
- Fix SMBIOS entry point structure.
- Add structure length sanity check.
- Fix revision number output.

Approved by:	re (kensmith)
2005-10-06 20:43:44 +00:00
jhb
603cac3a99 MFC: Add atomic_fetchadd(9) operation for types int and 32.
Other small updates to atomic(9) include:
- Note that arm and ppc don't provide 64-bit atomic ops.
- Update sample code.

Approved by:	re (scottl)
2005-10-06 18:12:06 +00:00
marius
8218f98610 MFC: creator.c 1.9, fbreg.h 1.19, gfb.c 1.8, machfb.c 1.4,
ofw_syscons.c 1.9, s3_pci.c 1.10, scgfbrndr.c 1.23, scmouse.c 1.40,
	scvgarndr.c 1.20, scvidctl.c 1.37, syscons.c 1.439, syscons.h 1.85,
	tga.c 1.8, vesa.c 1.52, vga.c 1.35

Add a font width argument to vi_load_font_t, vi_save_font_t and vi_putm_t
and do some preparations for handling 12x22 fonts (currently lots of code
implies and/or hardcodes a font width of 8 pixels). This will be required
on sparc64 which uses a default font size of 12x22 in order to add font
loading and saving support as well as to use a syscons(4)-supplied mouse
pointer image.

Approved by:	re (scottl)
2005-10-05 21:48:03 +00:00
jhb
0950005259 MFC: Add interrupt counters for IPIs.
Approved by:	re (scottl)
2005-10-04 15:15:22 +00:00
jhb
fdc83af1f5 MFC: Rename the lapic timer interrupt counter to cpuX: timer.
Approved by:	re (scottl)
2005-10-04 15:13:06 +00:00
jhb
76e4abfa33 MFC: Stop using the '+' constraint modifier with memory operands in
inline assembly.  We still use it for register operands in various places.

Approved by:	re (kensmith)
2005-09-26 19:54:19 +00:00
jhb
ed90752feb MFC: Adjust comment to note that we now do handle the PMC LVT entry and
try to avoid recursively panicing.

Approved by:	re (kensmith)
2005-09-26 19:50:38 +00:00
jhb
0f21530145 MFC: Explicitly switch to the new TSS when adding one in i386_extend_pcb().
Approved by:	re (kensmith)
2005-09-26 19:38:12 +00:00
kensmith
6db27a0a53 Fix a whitespace screw-up I made when doing the MFC of COMPAT_FREEBSD5.
It's supposed to be "option", "space", "tab"; not "option", "tab", "tab".

Approved by:	re (scottl)
Pointed out by:	rwatson
Pointy hat:	kensmith
2005-09-22 12:36:39 +00:00
scottl
bbfdfd22d0 Now that our showstopper list has shrunk, take another step closer to the
release and turn off kernel debugging.  Also turn off SMP on i386 and amd64
and add an SMP kernel config.

Approved by: re (implicit)
2005-09-18 03:37:59 +00:00
imp
9dab83f7b6 MFC: Merge resource fixes for pci devices on pci0 for ioport.
Approved by: re (scottl)
2005-09-18 02:55:10 +00:00
pjd
ba6b9383b3 MFC: sys/sys/systm.h 1.235
sys/i386/i386/mp_machdep.c	1.253
	sys/amd64/amd64/mp_machdep.c	1.262
	sys/geom/stripe/g_stripe.c	1.27
	sys/geom/stripe/g_stripe.h	1.8

Avoid code duplication and implement bitcount32() function in systm.h only.

Approved by:	re (scottl)
2005-08-30 15:14:40 +00:00
rwatson
e13b2df854 Merge linux_ioctl.c:1.128 svr4_sockio.c:1.17 altq_cbq.c:1.3 if_oltr.c:1.38
if_pflog.c:1.14 if_pfsync.c:1.21 if_an.c:1.70 if_ar.c:1.72 if_arl.c:1.11
amrr.c:1.10 onoe.c:1.10 if_ath.c:1.101 awi.c:1.41 if_bfe.c:1.27
if_bge.c:1.93 if_cm_isa.c:1.7 smc90cx6.c:1.16 if_cnw.c:1.20 if_cp.c:1.25
if_cs.c:1.42 if_ct.c:1.26 if_cx.c:1.46 if_ed.c:1.256 if_em.c:1.68
if_en_pci.c:1.37 midway.c:1.66 if_ep.c:1.143 if_ex.c:1.58 if_fatm.c:1.20
if_fe.c:1.93 if_fwe.c:1.38 if_fwip.c:1.8 if_fxp.c:1.244 if_gem.c:1.33
if_hatm.c:1.25 if_hatm_intr.c:1.20 if_hatm_ioctl.c:1.13 if_hatm_rx.c:1.10
if_hatm_tx.c:1.14 if_hme.c:1.39 if_ie.c:1.104 if_ndis.c:1.101
if_ic.c:1.24 if_ipw.c:1.10 if_iwi.c:1.10 if_ixgb.c:1.13 if_lge.c:1.41
if_lnc.c:1.113 if_my.c:1.31 if_nge.c:1.77 if_nve.c:1.10 if_owi.c:1.12
if_patm.c:1.9 if_patm_intr.c:1.6 if_patm_ioctl.c:1.10 if_patm_tx.c:1.10
pdq_ifsubr.c:1.28 if_plip.c:1.38 if_ral.c:1.12 if_ral_pci.c:1.2
if_ray.c:1.81 if_rayvar.h:1.22 if_re.c:1.49 if_sbni.c:1.21 if_sbsh.c:1.14
if_sn.c:1.48 dp83932.c:1.21 if_snc_pccard.c:1.9 if_sr.c:1.70 if_tx.c:1.91
if_txp.c:1.33 if_aue.c:1.92 if_axe.c:1.32 if_cdce.c:1.8 if_cue.c:1.59
if_kue.c:1.66 if_rue.c:1.23 if_udav.c:1.16 if_ural.c:1.12 if_vge.c:1.16
if_vx.c:1.58 if_wi.c:1.185 if_wi_pci.c:1.26 if_wl.c:1.68 if_xe.c:1.60
if_xe_pccard.c:1.30 if_el.c:1.68 i4b_ipr.c:1.35 i4b_isppp.c:1.31
kern_poll.c:1.20 bridge.c:1.94 bridgestp.c:1.4 if_arcsubr.c:1.27
if_atm.h:1.24 if_atmsubr.c:1.40 if_bridge.c:1.16 if_ef.c:1.35
if_ethersubr.c:1.196 if_faith.c:1.37 if_fddisubr.c:1.100 if_fwsubr.c:1.14
if_gif.c:1.54 if_gre.c:1.34 if_iso88025subr.c:1.70 if_loop.c:1.107
if_ppp.c:1.106 if_spppsubr.c:1.121 if_tap.c:1.57 if_tun.c:1.154
if_vlan.c:1.80 ppp_tty.c:1.67 ieee80211_ioctl.c:1.32 atm_if.c:1.31
ng_eiface.c:1.33 ng_ether.c:1.50 ng_fec.c:1.19 ng_iface.c:1.44
ng_sppp.c:1.9 ip_carp.c:1.30 ip_fastfwd.c:1.30 in6.c:1.53 nd6_nbr.c:1.31
natm.c:1.40 if_dc.c:1.162 if_de.c:1.168 if_pcn.c:1.72 if_rl.c:1.154
if_sf.c:1.84 if_sis.c:1.135 if_sk.c:1.108 if_ste.c:1.86 if_ti.c:1.109
if_tl.c:1.101 if_vr.c:1.106 if_wb.c:1.81 if_xl.c:1.194 from HEAD to
RELENG_6:

  Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE and
  IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to
  ifnet.if_drv_flags.  Device drivers are now responsible for
  synchronizing access to these flags, as they are in if_drv_flags.  This
  helps prevent races between the network stack and device driver in
  maintaining the interface flags field.

  Many __FreeBSD__ and __FreeBSD_version checks maintained and continued;
  some less so.

  Reviewed by:    pjd, bz

Approved by:	re (scottl)
2005-08-25 05:01:24 +00:00
phk
1bc819216b MFC: better facility for extracting and inspecting BIOS strings.
Approved by:	re@
2005-08-16 22:47:14 +00:00
tobez
21e7ad9511 MFC 1.4: make kernel build succeed when with "options CPU_DISABLE_SSE".
Approved by:	re (kensmith)
2005-08-11 14:28:42 +00:00
jhb
0ef1901fa9 MFC: Convert the atomic pointer operations to operate on uintptr_t rather
than void *.

Approved by:	re (kensmith)
2005-08-05 19:44:00 +00:00
jhb
e5a3602ce4 MFC: Add support for the hw.apic.enable_extint tunable.
Approved by:	re (kensmith)
2005-08-05 19:08:25 +00:00
sobomax
cd0631dc50 MFC: Propagate return value of the kern_execve() to the caller properly.
Approved by:	re
2005-08-04 23:25:32 +00:00
anholt
117221bef4 MFC: r300 DRM support. Supports all current non-PCIE Radeons, as far as the
developers know.

Approved by:	re (kensmith)
2005-08-04 17:31:02 +00:00
jhb
28b017aabc MFC: Fix a bug in pmap_protect() in the PAE case where it could look up the
wrong vm_page_t associated with a pte.

Approved by:	re (kensmith)
2005-08-04 16:41:25 +00:00
nectar
4cb10a2e72 Disable hyperthreading by default for 6.x.
Approved by:	re
2005-08-04 15:17:06 +00:00
njl
afb90606d6 MFC: Bring acpi_battery support up to HEAD, changing the API slightly
and fixing various bugs.

Approved by:	re (kensmith)
2005-07-29 16:27:07 +00:00
imura
e7ccba9730 MFC rev 1.17: Don't compile ral and ural in the PAE kernel.
Approved by:	re (kensmith)
2005-07-29 16:02:27 +00:00
jkoshy
0775c0fa95 MFC { exception.s:r1.114, machdep.c:r1.617, trap.c:r1.278 }
Use an interrupt gate for the NMI handler and prevent too-early
enabling of interrupts inside of trap().

Revert rev 1.113 of "sys/i386/i386/exception.s" as it is no longer
needed.

Approved by:	re (kensmith)
2005-07-28 03:30:53 +00:00