Up to [cvs.NetBSD.org] / src / sys / arch / x86 / x86
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.97 / (download) - annotate - [select for diffs], Mon Mar 25 01:30:37 2013 UTC (8 weeks, 2 days ago) by chs
Branch: MAIN
CVS Tags: khorben-n900,
HEAD
Changes since 1.96: +2 -14
lines
Diff to previous 1.96 (colored)
redo the ACPI interrupt handler setup again, this time handling MADT overrides that change the pin as well as the polarity. fixes PR 47648.
Revision 1.96 / (download) - annotate - [select for diffs], Wed Oct 3 17:04:25 2012 UTC (7 months, 2 weeks ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
tls-maxphys-nbase,
tls-maxphys-base,
agc-symver-base,
agc-symver
Changes since 1.95: +9 -2
lines
Diff to previous 1.95 (colored)
as a workaround for PR 47016, call ioapic_reenable() at the end of ACPI interrupt routing to fix the settings for the SCI interrupt. the problem is that after my recent changes, the SCI handler is installed before the MADT info is parsed, so we don't know what polarity it should have. the real fix for this will be to rearrange the ACPI initialization so that everything is done in a more sensible order, but that will take some more time.
Revision 1.95 / (download) - annotate - [select for diffs], Sun Sep 23 00:31:05 2012 UTC (7 months, 4 weeks ago) by chs
Branch: MAIN
Changes since 1.94: +59 -265
lines
Diff to previous 1.94 (colored)
locate PCI buses and determine their bus numbers using the info previously extracted from ACPICA rather than trying to figure it out again. allow PCI buses that don't have a _PRT method.
Revision 1.94 / (download) - annotate - [select for diffs], Fri Apr 27 04:32:27 2012 UTC (12 months, 3 weeks ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
jmcneill-usbmp-base9,
jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.93: +3 -3
lines
Diff to previous 1.93 (colored)
Revert previous. Revision 1.79 was right; Qemu does not implement _PIC.
Revision 1.93 / (download) - annotate - [select for diffs], Thu Apr 26 10:15:42 2012 UTC (12 months, 3 weeks ago) by jruoho
Branch: MAIN
Changes since 1.92: +3 -3
lines
Diff to previous 1.92 (colored)
Based on PR kern/44069, revert revision 1.79. XXX: The actual problem related to Qemu/KVM is yet to be determined.
Revision 1.92 / (download) - annotate - [select for diffs], Fri Jul 1 18:21:31 2011 UTC (22 months, 3 weeks ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jym-xensuspend-nbase,
jym-xensuspend-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
netbsd-6
Changes since 1.91: +3 -3
lines
Diff to previous 1.91 (colored)
#include <sys/bus.h> instead of <machine/bus.h>.
Revision 1.91 / (download) - annotate - [select for diffs], Tue Apr 5 13:17:04 2011 UTC (2 years, 1 month ago) by pgoyette
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Changes since 1.90: +7 -2
lines
Diff to previous 1.90 (colored)
Display a warning message if an attempt is made to process interrupt routing for a bus that has previously been processed. From PR kern/43570 - doesn't fix the problem but at least lets you know it exists.
Revision 1.90 / (download) - annotate - [select for diffs], Wed Mar 16 06:02:36 2011 UTC (2 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.89: +4 -2
lines
Diff to previous 1.89 (colored)
Fix build with no pchb. From Aran Clauson in PR 44720.
Revision 1.89 / (download) - annotate - [select for diffs], Sat Aug 7 09:41:19 2010 UTC (2 years, 9 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base7,
uebayasi-xip-base6,
uebayasi-xip-base5,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.88: +3 -4
lines
Diff to previous 1.88 (colored)
Reorganize: also the APIC tables will be dumped in ACPIVERBOSE, and the callback functions will be modified to be suitable also with other tables.
Revision 1.88 / (download) - annotate - [select for diffs], Wed Aug 4 10:02:12 2010 UTC (2 years, 9 months ago) by jruoho
Branch: MAIN
Changes since 1.87: +4 -2
lines
Diff to previous 1.87 (colored)
Store the MADT-derived CPU ID to <x86/cpu.h>. This is required to properly match the ACPI processor object ID with the ID available in the APIC table.
Revision 1.87 / (download) - annotate - [select for diffs], Tue Apr 27 05:34:14 2010 UTC (3 years ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.86: +2 -4
lines
Diff to previous 1.86 (colored)
Clean up <dev/acpi/acpireg.h>. While documenting the control methods is an admirable goal, it is pretty much mission impossible; the specifications are nearly thousand pages each and the amount of methods is counted in hundreds. In addition, use ACPICA's native constants from <actypes.h> when possible. Also move ACPI_STA_OK from "mpacpi.c" to <dev/acpi/acpireg.h> to simplify the evaluation of device status.
Revision 1.86 / (download) - annotate - [select for diffs], Wed Apr 14 19:32:35 2010 UTC (3 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.85: +5 -5
lines
Diff to previous 1.85 (colored)
UINT32 -> uint32_t; UINT8 -> uint8_t.
Revision 1.85 / (download) - annotate - [select for diffs], Thu Apr 8 04:40:51 2010 UTC (3 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.84: +3 -3
lines
Diff to previous 1.84 (colored)
ACPICA 20091112:
Implemented a post-order callback to AcpiWalkNamespace. The existing
interface only has a pre-order callback. This change adds an
additional parameter for a post-order callback which will be more
useful for bus scans. ACPICA BZ 779. Lin Ming. Updated the ACPICA
Programmer Reference.
We will use the old "pre-order callback" for the time being.
Revision 1.84 / (download) - annotate - [select for diffs], Sat Jan 9 20:56:17 2010 UTC (3 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Changes since 1.83: +57 -8
lines
Diff to previous 1.83 (colored)
add x2apic support. patch presented on current-users@, port-i386@ and port-amd64@ on 2009-12-22 No comments.
Revision 1.83 / (download) - annotate - [select for diffs], Tue Jan 5 17:23:18 2010 UTC (3 years, 4 months ago) by jruoho
Branch: MAIN
Changes since 1.82: +5 -3
lines
Diff to previous 1.82 (colored)
Put back the evaluation of the return value from mpacpi_get_bbn(). Break reported by njoly@. Thanks!
Revision 1.82 / (download) - annotate - [select for diffs], Tue Jan 5 13:57:18 2010 UTC (3 years, 4 months ago) by jruoho
Branch: MAIN
Changes since 1.81: +6 -9
lines
Diff to previous 1.81 (colored)
Use acpi_eval_set_integer() to simplify code. No functional change intended. ok pgoyette@, jmcneill@
Revision 1.81 / (download) - annotate - [select for diffs], Tue Jan 5 13:32:49 2010 UTC (3 years, 4 months ago) by jruoho
Branch: MAIN
Changes since 1.80: +27 -17
lines
Diff to previous 1.80 (colored)
Fix several possible memory leaks in mpacpi_derive_bus(). ok pgoyette@, jmcneill@
Revision 1.80 / (download) - annotate - [select for diffs], Tue Jan 5 13:20:30 2010 UTC (3 years, 4 months ago) by mbalmer
Branch: MAIN
Changes since 1.79: +3 -3
lines
Diff to previous 1.79 (colored)
One semicolon only (;; -> ;)
Revision 1.79 / (download) - annotate - [select for diffs], Wed Nov 4 14:39:17 2009 UTC (3 years, 6 months ago) by toshii
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.78: +3 -3
lines
Diff to previous 1.78 (colored)
Don't return an error if the _PIC method isn't found. It's an optional method and not found in kvm/qemu.
Revision 1.78 / (download) - annotate - [select for diffs], Wed Sep 16 10:47:54 2009 UTC (3 years, 8 months ago) by mlelstv
Branch: MAIN
Changes since 1.77: +11 -8
lines
Diff to previous 1.77 (colored)
Allow for 'options ACPI_DEBUG' by providing module declarations and using memory allocation macros instead of calling AcpiOs* stubs directly.
Revision 1.77 / (download) - annotate - [select for diffs], Tue Aug 18 16:41:03 2009 UTC (3 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7
Changes since 1.76: +11 -25
lines
Diff to previous 1.76 (colored)
Switch to ACPICA 20090730, and update for API changes.
Revision 1.76 / (download) - annotate - [select for diffs], Fri Apr 17 21:07:58 2009 UTC (4 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jymxensuspend-base
Changes since 1.75: +3 -24
lines
Diff to previous 1.75 (colored)
Introduce sys/arch/x86/x86/mp.c for common x86 MP configuration code. mpacpi_scan_pci() and mpbios_scan_pci() are identical code, so replace them with mp_pci_scan(). Introduce mp_pci_childdetached(), which helps us to detach root PCI buses that were enumerated either by MP BIOS or by ACPI. Let us detach and re-attach PCI buses from mainbus0 on i386. This is necessarily a work-in-progress, because testing detach and re-attach is very difficult: to detach and re-attach the entire PCI tree on most x86 computers that I own is not possible because some essential device attaches under the PCI subtree: the console, com0, NIC, or storage controller always attaches in the PCI tree.
Revision 1.75 / (download) - annotate - [select for diffs], Wed Jan 14 19:31:25 2009 UTC (4 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: nick-hppapmap-base2,
mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.74: +4 -5
lines
Diff to previous 1.74 (colored)
use KM_SLEEP per request from ad@
Revision 1.74 / (download) - annotate - [select for diffs], Mon Jan 12 08:36:36 2009 UTC (4 years, 4 months ago) by sborrill
Branch: MAIN
Changes since 1.73: +8 -4
lines
Diff to previous 1.73 (colored)
Return ENOENT instead of panicking when irq doesn't equal line (mpacpi_findintr_linkdev: irq mismatch). This doesn't fix the cause of kern/38540, but stops the bogus panic. It's pretty definite that the device with the mismatched irq will not function. ----------------------------------------------------------------------
Revision 1.73 / (download) - annotate - [select for diffs], Tue Dec 23 15:31:20 2008 UTC (4 years, 4 months ago) by cegger
Branch: MAIN
Changes since 1.72: +11 -13
lines
Diff to previous 1.72 (colored)
move from malloc to kmem
Revision 1.72 / (download) - annotate - [select for diffs], Tue Dec 16 22:35:28 2008 UTC (4 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.71: +7 -7
lines
Diff to previous 1.71 (colored)
replace bitmask_snprintf(9) with snprintb(3)
Revision 1.71 / (download) - annotate - [select for diffs], Sun Nov 9 15:34:14 2008 UTC (4 years, 6 months ago) by cegger
Branch: MAIN
CVS Tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Changes since 1.70: +7 -7
lines
Diff to previous 1.70 (colored)
struct device * -> device_t
Revision 1.70 / (download) - annotate - [select for diffs], Sun Nov 9 14:24:14 2008 UTC (4 years, 6 months ago) by cegger
Branch: MAIN
Changes since 1.69: +3 -4
lines
Diff to previous 1.69 (colored)
Nuke last parameter from mpaci_scan_apics() and mpbios_scan(). It is unused.
Revision 1.69 / (download) - annotate - [select for diffs], Tue Aug 26 12:04:18 2008 UTC (4 years, 8 months ago) by cegger
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-5-base,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap,
netbsd-5
Changes since 1.68: +3 -3
lines
Diff to previous 1.68 (colored)
beautify dmesg with MPVERBOSE: don't print an empty line.
Revision 1.68 / (download) - annotate - [select for diffs], Thu Jul 31 14:05:05 2008 UTC (4 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.67: +8 -2
lines
Diff to previous 1.67 (colored)
machdep.acpi_vbios_reset = 2 --> vga_pci_resume will use x86emu to do a POST when options VGA_POST is present.
Revision 1.67 / (download) - annotate - [select for diffs], Mon Jul 21 11:51:59 2008 UTC (4 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: simonb-wapbl-nbase,
simonb-wapbl-base
Changes since 1.66: +3 -3
lines
Diff to previous 1.66 (colored)
beautify dmesg with MPVERBOSE. before: pci0 at hypervisor0 bus 0: configuration mode 1hypervisor0: added to list as bus 0 pchb0 at pci0 dev 0 function 0 now: pci0 at hypervisor0 bus 0: configuration mode 1 hypervisor0: added to list as bus 0 pchb0 at pci0 dev 0 function 0
Revision 1.66 / (download) - annotate - [select for diffs], Thu Jul 3 14:02:25 2008 UTC (4 years, 10 months ago) by drochner
Branch: MAIN
Branch point for: haad-dm
Changes since 1.65: +8 -8
lines
Diff to previous 1.65 (colored)
Remove "struct device" from "struct pic", where it was only real for ioapics and faked up for others. Add it to "struct ioapic_softc" for now, until device/softc get split. This required all typecasts between "struct pic" and "struct ioapic_softc" to be replaced, I hope I got them all. functionally tested on i386, compile-tested on xen, untested on amd64
Revision 1.65 / (download) - annotate - [select for diffs], Wed Jun 25 19:57:22 2008 UTC (4 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.64: +6 -5
lines
Diff to previous 1.64 (colored)
Mask the interrupt pin in the other places as well as reminded by Jared.
Revision 1.64 / (download) - annotate - [select for diffs], Wed Jun 25 18:05:17 2008 UTC (4 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.63: +3 -3
lines
Diff to previous 1.63 (colored)
Mask the higher bits of the interrupt pin extract from the _PTR. Alan Barrett reported a system in PR 38959 that (incorrectly) uses the higher bits and which resulted in a bad table being built.
Revision 1.63 / (download) - annotate - [select for diffs], Fri Jun 6 20:34:24 2008 UTC (4 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.62: +3 -2
lines
Diff to previous 1.62 (colored)
Explicitly recognize the PNP ID of PCI-X bridges. This is normally redundant as DSDTs should provide _CID for it.
Revision 1.62 / (download) - annotate - [select for diffs], Wed Jun 4 12:14:02 2008 UTC (4 years, 11 months ago) by joerg
Branch: MAIN
Changes since 1.61: +3 -2
lines
Diff to previous 1.61 (colored)
Add back break to fix PCI bridge traversal as reported by various users.
Revision 1.61 / (download) - annotate - [select for diffs], Tue Jun 3 20:34:15 2008 UTC (4 years, 11 months ago) by joerg
Branch: MAIN
Changes since 1.60: +10 -9
lines
Diff to previous 1.60 (colored)
Make the logic for _BBN overrides less aggressive. When mpacpi_get_bbn failed and the current goal is to enumerate all PCI bus and this is the first PCI host bridge, just assume it is bus 0 and ignore the error. When querying the bus number, assume that the system paniced earlier if an error happened and this is not the first/only PCI host bridge and override the BBN as 0 in that case.
Revision 1.60 / (download) - annotate - [select for diffs], Sun Jun 1 15:33:15 2008 UTC (4 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pf42-base3
Changes since 1.59: +63 -30
lines
Diff to previous 1.59 (colored)
When a PCI host bridge description in the DSDT has a missing _BBN or the _BBN is 0, check if the _ADR field is also 0. If it is, assume that the _BBN really should be 0. Otherwise, try to extract the _BBN from the bridge itself using pchb logic and panic only, if that fails as well. Reported and tested by Martin Husemann as interrupt issue.
Revision 1.59 / (download) - annotate - [select for diffs], Sun Jun 1 15:23:46 2008 UTC (4 years, 11 months ago) by joerg
Branch: MAIN
Changes since 1.58: +18 -4
lines
Diff to previous 1.58 (colored)
When building the ACPI PCI Interrupt Table, check for duplicate entries and drop all but the first. This is the behaviour Windows seems to implement and some BIOSes depend on that due to broken dups. This should fix PR 37001.
Revision 1.58 / (download) - annotate - [select for diffs], Sat Apr 26 15:13:00 2008 UTC (5 years ago) by darcy
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp,
wrstuden-revivesa
Changes since 1.57: +4 -4
lines
Diff to previous 1.57 (colored)
Add a little more detail when verbosity is requested.
Revision 1.57 / (download) - annotate - [select for diffs], Wed Apr 16 16:06:52 2008 UTC (5 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-pf42-X
Branch point for: yamt-pf42
Changes since 1.56: +4 -4
lines
Diff to previous 1.56 (colored)
- use aprint_*_dev and device_xname - use POSIX integer types
Revision 1.56 / (download) - annotate - [select for diffs], Wed Dec 12 23:33:22 2007 UTC (5 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
yamt-kmem-base3,
vmlocking2-base3,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
matt-armv6-base,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base,
ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.55: +3 -3
lines
Diff to previous 1.55 (colored)
Try not to pass garbage to pci_make_tag; workaround for odd ACPI DSDTs. Fixes kern/37527.
Revision 1.55 / (download) - annotate - [select for diffs], Sun Dec 9 20:27:50 2007 UTC (5 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base2,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.54: +73 -63
lines
Diff to previous 1.54 (colored)
Merge jmcneill-pm branch.
Revision 1.54 / (download) - annotate - [select for diffs], Sat Dec 1 05:12:29 2007 UTC (5 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base
Branch point for: yamt-kmem,
vmlocking2
Changes since 1.53: +7 -7
lines
Diff to previous 1.53 (colored)
aprintify
Revision 1.53 / (download) - annotate - [select for diffs], Wed Oct 24 10:12:34 2007 UTC (5 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.52: +2 -4
lines
Diff to previous 1.52 (colored)
Remove code that was never meant to hit the tree in first place.
Revision 1.52 / (download) - annotate - [select for diffs], Wed Oct 17 19:58:17 2007 UTC (5 years, 7 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4
Changes since 1.51: +2 -2
lines
Diff to previous 1.51 (colored)
Merge the ppcoea-renovation branch to HEAD. This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here. TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted. NOTES: pmppc was removed as an arch, and moved to a evbppc target.
Revision 1.51 / (download) - annotate - [select for diffs], Wed Oct 10 13:58:15 2007 UTC (5 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-x86pmap-base3,
vmlocking-base,
ppcoea-renovation-base
Branch point for: bouyer-xenamd64
Changes since 1.50: +4 -2
lines
Diff to previous 1.50 (colored)
Install the default entries for the non-ISA interrupts as masked as intended. Report by Christoph Egger.
Revision 1.50 / (download) - annotate - [select for diffs], Sat Oct 6 04:39:10 2007 UTC (5 years, 7 months ago) by joerg
Branch: MAIN
Changes since 1.49: +7 -2
lines
Diff to previous 1.49 (colored)
Merge from mpacpi.h 1.4.32.1, acpi_machdep.c 1.13.22.5 and mpacpi.c 1.48.12.2 from jmcneill-pm: Don't process the MADT and modify the interrupt config at one moment and later trying to figure out if an entry was overriden and matches the ACPI SCI. This is brain-dead and breaks in various situations. Just check for each ISA override entry, if it matches the SCI. If it does, remember it and use it for the interrupt setup. If there's no such override assume that it is not changed, but override the polarity and level from ISA settings to PCI settings.
Revision 1.49 / (download) - annotate - [select for diffs], Fri Aug 10 14:34:56 2007 UTC (5 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-x86pmap-base2,
yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap,
matt-armv6
Changes since 1.48: +8 -5
lines
Diff to previous 1.48 (colored)
Print the polarity and trigger flags as well. Can help with debugging on fancy notebooks.
Revision 1.48 / (download) - annotate - [select for diffs], Tue Apr 10 12:15:27 2007 UTC (6 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
nick-csl-alignment-base,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: ppcoea-renovation,
nick-csl-alignment,
jmcneill-pm
Changes since 1.47: +4 -4
lines
Diff to previous 1.47 (colored)
Fix previous: don't AcpiOsFree() twice if the device is valid.
Revision 1.47 / (download) - annotate - [select for diffs], Sun Apr 8 21:35:21 2007 UTC (6 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.46: +23 -8
lines
Diff to previous 1.46 (colored)
Properly skip inactive devices; avoids a panic in pci_make_tag() later. Thanks to cube@ for the idea. An ACPI kernel can now boot on a poweredge 2950.
Revision 1.46 / (download) - annotate - [select for diffs], Mon Mar 5 16:51:03 2007 UTC (6 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Changes since 1.45: +25 -20
lines
Diff to previous 1.45 (colored)
clean up how cpus and ioapics are attached at the mainbus: Seperate "cpubus" and "ioapicbus" -- while they share a common "address space" (the apic id), the kernel doesn't use this fact. There are different data passed to cpus and apics, which caused some ugly polymorphism. This also saves the special "submatch" functions needed to distingush cpus and ioapics for autoconf. (And it makes that "apid" locators wired in the kernel configuration are honored now; this allows one to dumb down an mp box to singleprocessor by userconfig.) Print "apid" locators in the buses "print" function "as everyone does", so the per-port cpu drivers don't need to do it. Being here, constify "struct cpu_functions" and g/c the unused MP_PICMODE flag.
Revision 1.45 / (download) - annotate - [select for diffs], Thu Feb 15 20:32:47 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.44: +4 -4
lines
Diff to previous 1.44 (colored)
Count the number of CPUs at boot and stash in 'ncpu'. Eventually should have each CPU register at attach, so we can figure out the topology for the scheduler.
Revision 1.44 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:39 2006 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
netbsd-4-base
Branch point for: netbsd-4
Changes since 1.43: +7 -7
lines
Diff to previous 1.43 (colored)
__unused removal on arguments; approved by core.
Revision 1.43 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:44 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.42: +8 -7
lines
Diff to previous 1.42 (colored)
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
Revision 1.42 / (download) - annotate - [select for diffs], Fri Sep 29 11:18:44 2006 UTC (6 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.41: +3 -2
lines
Diff to previous 1.41 (colored)
If using NLAPIC, we better include lapic.h. Pointed out by Kurt Schreiner on current-users.
Revision 1.41 / (download) - annotate - [select for diffs], Thu Sep 28 18:01:24 2006 UTC (6 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.40: +3 -3
lines
Diff to previous 1.40 (colored)
- make it possible to have ACPI without IOAPIC and/or LAPIC - make it possible for machine-specific code to provide custom R/W routines in its i82093*.h headers - always initialize sc->sc_pins[pin], even in the !ioapic_cold case. No objections on port-i386 and port-amd64.
Revision 1.40 / (download) - annotate - [select for diffs], Sat Sep 23 17:16:38 2006 UTC (6 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.39: +15 -2
lines
Diff to previous 1.39 (colored)
While the low-level trigger and polarity values are the same for ACPI and MPS, the ACPICA values are different. Convert them, so that we get the right values into the ioapic.
Revision 1.39 / (download) - annotate - [select for diffs], Sat Sep 23 17:08:43 2006 UTC (6 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.38: +10 -4
lines
Diff to previous 1.38 (colored)
Check for the bad irq0 override quirk.
Revision 1.38 / (download) - annotate - [select for diffs], Sat Aug 12 16:19:13 2006 UTC (6 years, 9 months ago) by fvdl
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Changes since 1.37: +3 -2
lines
Diff to previous 1.37 (colored)
Record the ACPI global int in the interrupt structure for ISA interrupt overrided (e.g. the SCI interrupt), so that it may be found correctly by the ACPI interrupt establish function, should the number be different from the original source.
Revision 1.37 / (download) - annotate - [select for diffs], Thu Jul 20 05:05:26 2006 UTC (6 years, 10 months ago) by kochi
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Changes since 1.36: +2 -7
lines
Diff to previous 1.36 (colored)
eliminate bogus acpi debug #define symbols
Revision 1.36 / (download) - annotate - [select for diffs], Tue Jul 4 00:30:23 2006 UTC (6 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.35: +262 -80
lines
Diff to previous 1.35 (colored)
Apply fvdl's acpi pci interrupt configuration code. - MPACPI is no more. - MPACPI_SCANPCI -> ACPI_SCANPCI
Revision 1.35 / (download) - annotate - [select for diffs], Sun Dec 11 12:19:47 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
simonb-timecounters-base,
simonb-timecounters,
simonb-timcounters-final,
peter-altq-base,
peter-altq,
gdamore-uart-base,
elad-kernelauth-base,
elad-kernelauth,
chap-midi-nbase,
chap-midi-base,
chap-midi
Branch point for: yamt-pdpolicy,
rpaulo-netinet-merge-pcb,
gdamore-uart
Changes since 1.34: +2 -2
lines
Diff to previous 1.34 (colored)
merge ktrace-lwp.
Revision 1.34 / (download) - annotate - [select for diffs], Fri Aug 26 13:19:38 2005 UTC (7 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Changes since 1.33: +4 -4
lines
Diff to previous 1.33 (colored)
s/locdesc_t/int/g
Revision 1.33 / (download) - annotate - [select for diffs], Sun May 29 21:37:03 2005 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.32: +3 -3
lines
Diff to previous 1.32 (colored)
Sprinkle const.
Revision 1.32 / (download) - annotate - [select for diffs], Tue Dec 21 11:33:04 2004 UTC (8 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
yamt-km-base,
yamt-km,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
matt-timespec,
kent-audio2-base,
kent-audio2,
kent-audio1-beforemerge
Changes since 1.31: +5 -5
lines
Diff to previous 1.31 (colored)
Use fixed mode, not lopri, for delivering IO interrupts. Suggested by Peter O'Kane. Fixes interrupt problems on some Xeon systems.
Revision 1.31 / (download) - annotate - [select for diffs], Mon Nov 29 00:07:22 2004 UTC (8 years, 5 months ago) by ws
Branch: MAIN
CVS Tags: kent-audio1-base,
kent-audio1
Changes since 1.30: +3 -3
lines
Diff to previous 1.30 (colored)
We just checked that the parent is the root, not current. So we better determine the bus number of this parent node. Now, MPACPI on my Opteron board finally correctly determines its PCI/AGP busses even without the help of the AMD64 Address Map support implemented in my local tree.
Revision 1.30 / (download) - annotate - [select for diffs], Mon Aug 30 15:05:19 2004 UTC (8 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.29: +11 -8
lines
Diff to previous 1.29 (colored)
Phase out the use of a string as first "attach args" member to control which bustype should be attached with a specific call to config_found() (from a "mainbus" or a bus bridge). Do it for isa/eisa/mca and pci/agp for now. These buses all attach to an mi interface attribute "isabus", "eisabus" etc., and the autoconf framework now allows to specify an interface attribute on config_found() and config_search(), which limits the search of matching config data to these which attach to that specific attribute. So we basically have to call config_found_ia(..., "foobus", ...) where such a bus is attached. As a consequence, where a "mainbus" or alike also attaches other devices (eg CPUs) which do not attach to a specific attribute yet, we need at least pass an attribute name (different from "foobus") so that the foo bus is not found at these places. This made some minor changes necessary which are not obviously related to the mentioned buses.
Revision 1.29 / (download) - annotate - [select for diffs], Sun May 23 05:57:57 2004 UTC (9 years ago) by kochi
Branch: MAIN
Changes since 1.28: +5 -2
lines
Diff to previous 1.28 (colored)
prevent panic for machines without any ACPI MADT table.
Revision 1.28 / (download) - annotate - [select for diffs], Fri May 21 16:22:05 2004 UTC (9 years ago) by kochi
Branch: MAIN
Changes since 1.27: +210 -131
lines
Diff to previous 1.27 (colored)
Fix panic / bogus PCI bus detection.
Revision 1.27 / (download) - annotate - [select for diffs], Fri May 21 16:20:36 2004 UTC (9 years ago) by kochi
Branch: MAIN
Changes since 1.26: +11 -12
lines
Diff to previous 1.26 (colored)
Clean up variable usage.
Revision 1.26 / (download) - annotate - [select for diffs], Fri May 21 16:19:25 2004 UTC (9 years ago) by kochi
Branch: MAIN
Changes since 1.25: +24 -11
lines
Diff to previous 1.25 (colored)
Make sure we don't use the same bus number for PCI and ISA.
Revision 1.25 / (download) - annotate - [select for diffs], Fri May 21 16:17:48 2004 UTC (9 years ago) by kochi
Branch: MAIN
Changes since 1.24: +0 -52
lines
Diff to previous 1.24 (colored)
Back out bogus node check of revision 1.22. This check is not necessary.
Revision 1.24 / (download) - annotate - [select for diffs], Fri May 21 16:15:03 2004 UTC (9 years ago) by kochi
Branch: MAIN
Changes since 1.23: +16 -22
lines
Diff to previous 1.23 (colored)
add some comments, make local variables/functions static and some style fix.
Revision 1.23 / (download) - annotate - [select for diffs], Sun Apr 25 11:25:35 2004 UTC (9 years ago) by tron
Branch: MAIN
Changes since 1.22: +4 -2
lines
Diff to previous 1.22 (colored)
Make this compile without ACPI_DEBUG again.
Revision 1.22 / (download) - annotate - [select for diffs], Sun Apr 25 07:55:06 2004 UTC (9 years ago) by christos
Branch: MAIN
Changes since 1.21: +5 -2
lines
Diff to previous 1.21 (colored)
make this compile with ACPI_DEBUG again.
Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 22 18:01:47 2004 UTC (9 years, 1 month ago) by skd
Branch: MAIN
Changes since 1.20: +56 -3
lines
Diff to previous 1.20 (colored)
1) Skip over bogus device nodes, prevents a panic in pci_make_tag. 2) Clarify a printf.
Revision 1.20 / (download) - annotate - [select for diffs], Sat Apr 10 14:17:21 2004 UTC (9 years, 1 month ago) by kochi
Branch: MAIN
Changes since 1.19: +6 -6
lines
Diff to previous 1.19 (colored)
whitespace nit
Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 24 09:15:38 2004 UTC (9 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.18: +4 -4
lines
Diff to previous 1.18 (colored)
Make it compile (int -> ACPI_INTEGER)
Revision 1.18 / (download) - annotate - [select for diffs], Tue Mar 23 14:07:42 2004 UTC (9 years, 2 months ago) by kochi
Branch: MAIN
Changes since 1.17: +6 -12
lines
Diff to previous 1.17 (colored)
Don't use ACPI CA internal functions
Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 13 23:00:54 2003 UTC (9 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.16: +2 -3
lines
Diff to previous 1.16 (colored)
Remove leftover debugging printf.
Revision 1.16 / (download) - annotate - [select for diffs], Fri Oct 31 20:56:55 2003 UTC (9 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.15: +35 -34
lines
Diff to previous 1.15 (colored)
Catch up with the new acpica code.
Revision 1.15 / (download) - annotate - [select for diffs], Thu Oct 30 21:19:54 2003 UTC (9 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.14: +6 -4
lines
Diff to previous 1.14 (colored)
* keep track of PCI buses that aren't known by firmware, but are found by NetBSD * use this info in in intr_find_mpmapping * get rid of the last argument to intr_find_mpmapping, it was redundant
Revision 1.14 / (download) - annotate - [select for diffs], Tue Oct 21 23:22:52 2003 UTC (9 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.13: +7 -4
lines
Diff to previous 1.13 (colored)
If a bus has not been configured by MPBIOS/ACPI, and the attach hook for it is called, mark it as configured.
Revision 1.13 / (download) - annotate - [select for diffs], Thu Oct 16 22:56:29 2003 UTC (9 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.12: +4 -2
lines
Diff to previous 1.12 (colored)
Add hooks and structures to allow the MP table intr mapping code a better shot at finding a mapping. For PCI interrupts, if a bus has no mappings, try its parent, with the swizzled pin, and the bridge's device number.
Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 9 16:25:16 2003 UTC (9 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.11: +17 -18
lines
Diff to previous 1.11 (colored)
Allow probing of CPUs only by ACPI, so that MPBIOS can still do interrupt mapping should ACPI have a quirk. From Christos. One change by me: make sure that lapic_boot_init doesn't get called twice, otherwise the cpu_info entry for the CPU with id 0 gets zapped.
Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 7 21:47:57 2003 UTC (9 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.10: +18 -17
lines
Diff to previous 1.10 (colored)
Backout previous for now, it breaks second CPU spinup. It'll be back later.
Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 7 18:10:36 2003 UTC (9 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.9: +17 -18
lines
Diff to previous 1.9 (colored)
Changes from Christos to fall back to MPBIOS for interrupt probing if MPACPI fails, so that MPACPI can be used to only probe CPUs if needed.
Revision 1.9 / (download) - annotate - [select for diffs], Sat Sep 6 14:38:43 2003 UTC (9 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.8: +4 -3
lines
Diff to previous 1.8 (colored)
When establishing the ACPI SCI, make sure it's always active low (as well as level-triggered). Do this by changing the MP config entry that was set up for the interrupt. Do not change anything if there was an ACPI interrupt source override, assume that this contains the correct information already.
Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 22 12:10:20 2003 UTC (9 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.7: +3 -8
lines
Diff to previous 1.7 (colored)
Use local APIC id to determine boot CPU. Fixes PR kern/20690 from Jaromir Dolecek. Fix from fvdl.
Revision 1.7 / (download) - annotate - [select for diffs], Mon Jul 14 22:32:40 2003 UTC (9 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.6: +4 -1
lines
Diff to previous 1.6 (colored)
add __KERNEL_RCSID()
Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 1 19:14:20 2003 UTC (9 years, 11 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.5: +2 -2
lines
Diff to previous 1.5 (colored)
mpb_name may not be set for a bus, since it's possible a PCI bus doesn't show up when looking at ACPI, but is found on a ppb. So check if it's NULL before doing a strcmp on it. From Takayoshi Kochi.
Revision 1.5 / (download) - annotate - [select for diffs], Thu May 29 20:22:33 2003 UTC (9 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.4: +52 -2
lines
Diff to previous 1.4 (colored)
Add the options MPBIOS_SCANPCI and MPACPI_SCANPCI to configure PCI roots with the MPBIOS/ACPI bus information, by walking through the buses, and descending down every bus that hasn't been marked configured yet.
Revision 1.4 / (download) - annotate - [select for diffs], Thu May 15 21:31:59 2003 UTC (10 years ago) by fvdl
Branch: MAIN
Changes since 1.3: +20 -4
lines
Diff to previous 1.3 (colored)
Don't start the process of scanning CPUs and I/O APICs (with interrupt routing to follow later) if the ACPI implementation is marked as having a quirky PCI bus/interrupt configuration. If MPBIOS is also defined, it'll do the job instead.
Revision 1.3 / (download) - annotate - [select for diffs], Thu May 15 13:30:31 2003 UTC (10 years ago) by fvdl
Branch: MAIN
Changes since 1.2: +75 -48
lines
Diff to previous 1.2 (colored)
Try a little harder to find PCI buses in the MPACPI code, in a (probably futile) attempt to get quirky ACPI implementations going. Work around a problem with quirky MP tables for ioapic interrupt routing.
Revision 1.2 / (download) - annotate - [select for diffs], Sun May 11 21:51:32 2003 UTC (10 years ago) by fvdl
Branch: MAIN
Changes since 1.1: +1 -2
lines
Diff to previous 1.1 (colored)
Remove machine/cputypes include.
Revision 1.1 / (download) - annotate - [select for diffs], Sun May 11 18:21:50 2003 UTC (10 years ago) by fvdl
Branch: MAIN
Moved here from sys/arch/i386/i386