aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Back out TX/RX descriptor/buffer management changes from earier commit.Prafulla Deuskar2002-08-262-208/+304
| | | | | | | | | We are having panics with the driver under stress with jumbo frames. Unfortunately we didnot catch it during our regular test cycle. I am going to MFC the backout immediately. Notes: svn path=/head/; revision=102452
* Add a new KTR type KTR_CONTENTION, and use it in the mutex code toIan Dowse2002-08-263-1/+42
| | | | | | | | | | | log the start and end of periods during which mtx_lock() is waiting to acquire a sleep mutex. The log message includes the file and line of both the waiter and the holder. Reviewed by: jhb, jake Notes: svn path=/head/; revision=102450
* Hook up the new ACPI PCI bus and catch up to ACPI PCI bridge driver changes.John Baldwin2002-08-262-1/+4
| | | | Notes: svn path=/head/; revision=102449
* Add WITNESS_FILE() and WITNESS_LINE(), which allow users of witnessIan Dowse2002-08-262-0/+32
| | | | | | | | | | to print out the file and line from the lock object. These will be used shortly by CTR() calls in the mutex code. Reviewed by: jhb, jake Notes: svn path=/head/; revision=102448
* Overhaul the ACPI PCI bridge driver a bit:John Baldwin2002-08-265-589/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add an ACPI PCI-PCI bridge driver (the previous driver just handled Host-PCI bridges) that is a PCI driver that is a subclass of the generic PCI-PCI bridge driver. It overrides probe, attach, read_ivar, and pci_route_interrupt. - The probe routine only succeeds if our parent is an ACPI PCI bus which we test for by seeing if we can read our ACPI_HANDLE as an ivar. - The attach routine saves a copy of our handle and calls the new acpi_pcib_attach_common() function described below. - The read_ivar routine handles normal PCI-PCI bridge ivars and adds an ivar to return the ACPI_HANDLE of the bus this bridge represents. - The route_interrupt routine fetches the _PRT (PCI Interrupt Routing Table) from the bridge device's softc and passes it off to acpi_pcib_route_interrupt() to route the interrupt. - Split the old ACPI Host-PCI bridge driver into two pieces. Part of the attach routine and most of the route_interrupt routine remain in acpi_pcib.c and are shared by both ACPI PCI bridge drivers. - The attach routine verifies the PCI bridge is present, reads in the _PRT for the bridge, and attaches the child PCI bus. - The route_interrupt routine uses the passed in _PRT to route a PCI interrupt. The rest of the driver is the ACPI Host-PCI bridge specific bits that live in acpi_pcib_acpi.c. - We no longer duplicate pcib_maxslots but use it directly. - The driver now uses the pcib devclass instead of its own devclass. This means that PCI busses are now only children of pcib devices. - Allow the ACPI_HANDLE for the child PCI bus to be read as an ivar of the child bus. - Fetch the _PRT for routing PCI interrupts directly from our softc instead of walking the devclass to find ourself and then fetch our own softc. With this change and the new ACPI PCI bus driver, ACPI can now properly route interrupts for devices behind PCI-PCI bridges. That is, the Itanium2 with like 10 PCI busses can now boot ok and route all the PCI interrupts. Hopefully this will also fix problems people are having with CardBus bridges behind PCI-PCI bridges not properly routing interrupts when ACPI is used. Tested on: i386, ia64 Notes: svn path=/head/; revision=102447
* Fix SynopsisTom Rhodes2002-08-261-1/+1
| | | | Notes: svn path=/head/; revision=102446
* Add an ACPI PCI bus driver that is a subclass of the generic PCI busJohn Baldwin2002-08-261-0/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | driver. This driver overrides the probe, attach, and read_ivar methods. If the parent bridge is an ACPI PCI bridge, then the probe routine will match, otherwise it will fail. It tests this by seeing if it can get the ACPI_HANDLE ivar from the bridge device. In the attach routine, it uses pci_add_children() to add all the child devices (but with a slightly larger ivar so it can store ACPI_HANDLE's for child devices) and then walks through the ACPI namespace below the bus device to cache ACPI_HANDLE's for all child devices present in the namespace. It does this by comparing the pci slot and function to the address encoded in _ADR of the devices in the ACPI namespace. The read_ivar routine passes most requests off to pci_read_ivar() and adds a new request so that the ACPI_HANDLE for a child device can be read. To add proper power support the power methods can be overridden as well, but that is not currently implemented. Also, there are cases where a device may show in the ACPI namespace as a PCI device that the PCI probe does not find. Currently such devices are ignored. Tested on: i386, ia64 Notes: svn path=/head/; revision=102445
* Add hardware compatability notes for ahd(4)-supported devices.Bruce A. Mah2002-08-262-0/+24
| | | | Notes: svn path=/head/; revision=102444
* Adjust scsi_calc_syncparam() to the exception table changing from 10ths toJustin T. Gibbs2002-08-261-2/+4
| | | | | | | | 100ths of ns. This should correct a problem with camcontrol "ignoring" requests to negotiate to slower speeds. Notes: svn path=/head/; revision=102443
* Export a few symbols as globals to allow subclassing of this driver. InJohn Baldwin2002-08-262-37/+91
| | | | | | | | | | | | | | | | OOP speak, you would mark these as 'protected' members. Specifically: - Make the pcib_softc struct public so it can be used by subclasses. - Make pcib_{read,write}_ivar(), pcib_alloc_resource(), pcib_maxslots(), and pcib_{read,write}_config() globals that can be used by subclasses. - Make the pcib devclass a global variable. - Move most of the pcib_attach() function into a global pcib_attach_common() function that can be called by the attach routines of subclasses. Tested on: i386, alpha, sparc64, ia64 Notes: svn path=/head/; revision=102441
* Various changes to make it easier to subclass the PCI bus device.John Baldwin2002-08-262-30/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make the pci devclass a global variable. - Add child devices in pci_attach() instead of pci_probe(). Change pci_probe() to just check for a valid bus number from the associated bridge and return -1000 if successful. This allows subclasses of the PCI bus driver to override the generic driver. - Move the code to load the vendor data into its own public function. Really though, doing this at attach is just plain wrong. This should really be done in the module load routine instead. As a side effect, the 'busno' variable in pci_attach() is now no longer static (minor bug that was harmless so far.) - Change pci_add_children() to take an extra argument that is the size of the device info structure passed to pci_read_device() and make it public so subclasses of the PCI bus can call it in their attach routines. - Move the bits to attach a probed PCI child to a PCI bus into a global pci_add_child() function. This will allow subclasses that can detect a PCI device not found in the normal PCI probe to add those devices in their own attach routine. (I have seen this in the ACPI tree on my laptop for example.) As a side effect, change the static function pci_add_resources() to get the busno, slot, and func from the passed in dinfo structure instead of requiring them as function arguments. Tested on: i386, alpha, ia64, sparc64 Notes: svn path=/head/; revision=102440
* In acpi_pcib_route_interrupt(), the code claims to check to see if a PCIJohn Baldwin2002-08-262-4/+4
| | | | | | | | | | LNK device (interrupt source provider sort of) is present before using it, but the code actually tested the status (_STA) of the PCI bridge device doing the routing, not the actual LNK device. Fix it to check the status of the LNK device. Notes: svn path=/head/; revision=102439
* Don't dump core on packages with an invalid or empty PLIST.Jeremy Lea2002-08-261-0/+4
| | | | | | | Reviewed by: markm Notes: svn path=/head/; revision=102438
* Unbreak the -c option by not using connect(2) for mount_nfs'sIan Dowse2002-08-261-1/+2
| | | | | | | | | | communication with the remote NFS server if this flag is specified. PR: bin/42003 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr> Notes: svn path=/head/; revision=102437
* The previous commit log was incorrect. _BSD_CLK_TCK_ andMike Barcroft2002-08-260-0/+0
| | | | | | | | | | | _BSD_CLOCKS_PER_SEC_ are not as related to stathz as I thought. So the previous revision will only serve to unify alpha with i386 and other architectures. This actually does introduce some binary incompatibilities for dynamically linked programs which make use of clock(3) and times(3). Notes: svn path=/head/; revision=102435
* Grammar fix.Giorgos Keramidas2002-08-261-1/+1
| | | | | | | | | PR: docs/42021 Submitted by: Jeff Ito <jeffi@rcn.com> MFC after: 3 days Notes: svn path=/head/; revision=102434
* move the assert to cover more casesJulian Elischer2002-08-261-1/+1
| | | | Notes: svn path=/head/; revision=102433
* Fix 'SYNOPSIS' and 'usage'Tom Rhodes2002-08-262-2/+2
| | | | Notes: svn path=/head/; revision=102432
* Print a more realistic usage message 'special_device' 'inode_number'. ThisTom Rhodes2002-08-261-2/+2
| | | | | | | | | matches the synopsis given in the manual page. MFC after: 3 days Notes: svn path=/head/; revision=102431
* Grrr.... mumble.... a linger gzip'ism still existed.David E. O'Brien2002-08-261-1/+1
| | | | | | | Submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=102430
* Since arm and powerpc aren't far enough to set stathz, take aMike Barcroft2002-08-262-4/+4
| | | | | | | | | | preemptive strike and change _BSD_CLK_TCK_ and _BSD_CLOCKS_PER_SEC_ to 128. Approved by: benno Notes: svn path=/head/; revision=102429
* Fix a long-standing bug on alpha:Mike Barcroft2002-08-261-2/+2
| | | | | | | | | | Change _BSD_CLK_TCK_ and _BSD_CLOCKS_PER_SEC_ to match stathz. This should result in bug for bug compatibility in staticly linked programs and dynamicly linked programs should see an immediate correction. Notes: svn path=/head/; revision=102428
* Clarify that the date 26 August 1920 was the date women got the voteGreg Lehey2002-08-261-1/+4
| | | | | | | | | | | | in USA, not the world first. Add dates for women's votes in New Zealand. Add dates for women's votes and rights to political office in South Australia. Notes: svn path=/head/; revision=102426
* Document -p option of diff.Giorgos Keramidas2002-08-261-0/+3
| | | | | | | | PR: docs/41887 Submitted by: tobez Notes: svn path=/head/; revision=102425
* Fixed most indentation bugs.Jake Burkholder2002-08-252-53/+40
| | | | Notes: svn path=/head/; revision=102424
* Fixed placement of operators. Wrapped long lines.Jake Burkholder2002-08-252-15/+23
| | | | Notes: svn path=/head/; revision=102423
* Backout rev 1.4. The code certainly does not spell the sysctl with 'ed':David E. O'Brien2002-08-251-1/+1
| | | | | | | | $ grep disable /sys/boot/i386/libi386/i386_module.c if ((getenv("acpi_load") && !getenv("hint.acpi.0.disable"))) { Notes: svn path=/head/; revision=102422
* Move intrmask_t to the kernel-only section of <sys/types.h>. Add someMike Barcroft2002-08-252-2/+11
| | | | | | | comments submitted by bde. Notes: svn path=/head/; revision=102421
* Rearrange a sentence that got stuck in the wrong paragraph.Matthew Dillon2002-08-251-2/+3
| | | | | | | X-MFC after: (all commits here will be MFCd) Notes: svn path=/head/; revision=102420
* Clear up confusion in a sentence describing [/var]/tmp.Matthew Dillon2002-08-251-1/+2
| | | | Notes: svn path=/head/; revision=102419
* Add suspend/resume method to syscons. This switch the modeMitsuru IWASAKI2002-08-251-0/+35
| | | | | | | | (text <-> graphics) by changing current vty during ACPI sleep/wakeup (maybe APM also). Notes: svn path=/head/; revision=102418
* Add a section on the net.inet.ip.portrange.* sysctls.Matthew Dillon2002-08-251-0/+26
| | | | | | | | Suggested by: Mike Harding <mvh@ix.netcom.com> MFC after: 3 days Notes: svn path=/head/; revision=102417
* Fix a couple of typos in comments.Julian Elischer2002-08-251-2/+2
| | | | | | | Submitted by: Jake Burkholder <jake@locore.ca> Notes: svn path=/head/; revision=102416
* Append a d to disable to make the ACPI hint example valid.Mike Barcroft2002-08-251-1/+1
| | | | | | | Submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=102415
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-258-20/+22
| | | | Notes: svn path=/head/; revision=102413
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-2555-105/+103
| | | | Notes: svn path=/head/; revision=102412
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-2529-59/+80
| | | | Notes: svn path=/head/; revision=102411
* Replace various spellings with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-254-14/+14
| | | | Notes: svn path=/head/; revision=102410
* Reformat the mvterm entry to fit mostly in an 80 column terminal.Jens Schweikhardt2002-08-251-11/+14
| | | | | | | | Suggested by: bde MFC after: 3 days Notes: svn path=/head/; revision=102409
* Oops, the previous commit messages should have said that the previousBruce Evans2002-08-250-0/+0
| | | | | | | | | commit also removed the hint about using -Werror. -Werror is now added in sys/conf/kern.pre.mk, which is a better place except it doesn't cover modules. Notes: svn path=/head/; revision=102408
* Turned format checking back on. It was left turned off for too long afterBruce Evans2002-08-252-14/+2
| | | | | | | | | the gcc lossage that caused it to be turned off was fixed. Tested with: i386/{GENERIC,LINT,...}, alpha/GENERIC Notes: svn path=/head/; revision=102407
* Remove a repeated word.Chris Costello2002-08-251-1/+1
| | | | | | | Submitted by: horikawa Notes: svn path=/head/; revision=102404
* Remove extra args to printfWarner Losh2002-08-251-2/+2
| | | | | | | | | use Capabilities rather than Capacities. Submitted by: kkenn Notes: svn path=/head/; revision=102403
* Add new sysctl MIB (hw.acpi.sleep_delay) to specify the delay (inMitsuru IWASAKI2002-08-252-0/+9
| | | | | | | | seconds) before ACPI sleep. Some machines might need this to sleep by Hot-key. Notes: svn path=/head/; revision=102402
* Don't give up on a remote log host when we get a EHOSTUNREACH orCrist J. Clark2002-08-251-3/+20
| | | | | | | | | | | | | | | | | | | EHOSTDOWN. These are often transient errors (when the remote host reboots, temporary network problems, etc.), and we'd rather err on the side of caution and keep trying send messages that never arrive than just give up. Note that this is not an implementation of the "back-off" methods given in the PR. Those just seem too complicated. Why not just keep trying each time? Trying and failing doesn't really consume significantly more resources than if we were successful for each message. PR: bin/31029 MFC after: 1 week Notes: svn path=/head/; revision=102401
* Check if a host argument is a IPv6 presentation format address beforeCrist J. Clark2002-08-251-6/+6
| | | | | | | | | | going to gethostbyname2(3). PR: bin/31632 MFC after: 3 days Notes: svn path=/head/; revision=102400
* o Retire pmap_pageable(). It's an advisory routine that noneAlan Cox2002-08-2510-139/+0
| | | | | | | of our platforms implements. Notes: svn path=/head/; revision=102399
* Only create a temporary file if we are actually going to do somethingCrist J. Clark2002-08-257-7/+7
| | | | | | | | | | | | in the script. Eliminates a bug where we create a temp file, but don't delete it since the rm(1) is only done if the check is enabled. PR: bin/40960 Submitted by: frf <frf@xocolatl.com> MFC after: 3 days Notes: svn path=/head/; revision=102398
* Lock the sysctl(8) knobs that turn ip{,6}fw(8) firewalling andCrist J. Clark2002-08-252-6/+11
| | | | | | | | | | | | | | firewall logging on and off when at elevated securelevel(8). It would be nice to be able to only lock these at securelevel >= 3, like rules are, but there is no such functionality at present. I don't see reason to be adding features to securelevel(8) with MAC being merged into 5.0. PR: kern/39396 Reviewed by: luigi MFC after: 1 week Notes: svn path=/head/; revision=102397
* Reformat some comments to fit in 80 columns andJulian Elischer2002-08-251-30/+28
| | | | | | | rewrite some comments that have 'aged' poorly. Notes: svn path=/head/; revision=102396