summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* - Unbreak UP. mp_maxid is not defined on uni-processor machines, althoughjeff2003-11-301-0/+8
| | | | | | | I believe it and the other MP variables should be. For now, just define it here and wait for jhb to clean it up later. Approved by: re (rwatson)
* - Don't forget to unlock the vnode interlock in the LK_NOWAIT case.jeff2003-11-301-1/+2
| | | | | Submitted by: Stephan Uphoff <ups@stups.com> Approved by: re (rwatson)
* - Set mp_maxid in a way that is consistent with every other arch. It isjeff2003-11-301-3/+2
| | | | | | one more than the last valid 'cpuid'. Approved by: re (rwatson)
* Fix ata-card.sos2003-11-302-38/+28
| | | | | | | | | The altio resource magic no longer worked probably due to other changes in the kernel. Redo that part so it also fits better into ATAng. Fix detach so it doesn't panic the system when a pccard device is yanked. Approved by: re@
* - Replace the local maxcpu with mp_maxid. Previously, if mp_maxidjeff2003-11-301-20/+48
| | | | | | | | | was equal to MAXCPU, we would overrun the pcpu_mtx array because maxcpu was calculated incorrectly. - Add some more debugging code so that memory leaks at the time of uma_zdestroy() are more easily diagnosed. Approved by: re (rwatson)
* correct typo in interrupt handling for the 2nd port of 2-port cardssam2003-11-292-2/+2
| | | | | | Submitted by: luigi Reviewed by: checking original openbsd code Approved by: re (scottl)
* - In db_stack_trace_cmd() bail out if we get confused about the stack.jeff2003-11-291-3/+8
| | | | | Tested by: kkenn Approved by: re (scottl)
* o track API change for HAL v0.9.6.1sam2003-11-293-18/+56
| | | | | | | | | | | | | | | o fix race condition when processing rx descriptors: because we use a self-linked descriptor at the end of the rx descriptor list to avoid rx overruns (which can easily happen for 5212 parts that enable PHY errors) we must carefully check that a descriptor is "done" by looking ahead to the next descriptor before believing the done bit in the current descriptor (this is all handled in the HAL since the rx descriptor format is chip-specific so we need to pass in two additional parameters--the physical address of the current descriptor and the virtual address of the next descriptor in the list) o check copyout return status for SIOCGATHSTATS ioctl Approved by: re (scottl)
* This commit was generated by cvs2svn to compensate for changes in r123041,sam2003-11-293-3167/+3429
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Version 0.9.6.1:sam2003-11-293-3167/+3429
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o support for 5112 and 2112 radios on 5212-based products o revised interface for ah_procRxDesc needed to handle a race condition created with the use of self-linked rx descriptors o support for setting the MAC address o remove some unused methods from the public API o revised diagnostic API (replace dump* methods with getDiagState) o const'ify set key cache method parameters o support for optional 32khz sleep clock o implement ah_setSlotTime for 5211 parts o ANI improvements for 5212 parts Approved by: re (scottl)
* | Workaround for errata on early versions of the sii3112.sos2003-11-284-5/+13
| | | | | | | | Approved by: re@
* | Remove the call to M_ASSERTVALID from BPF_MTAP; some mbufs passed tosilby2003-11-281-1/+0
| | | | | | | | | | | | | | | | | | | | mpf are allocated on the stack, which causes this check to falsely trigger. A new check which takes on-stack mbufs into account will be reintroduced after 5.2 is out the door. Approved by: re (watson) Requested by: many
* | Fix an optimization where I made an ifdef'd out section to broad.andre2003-11-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | When the hostcache bucket limit is reached the last bucket wasn't removed from the bucket row but inserted a few lines later at the bucket row head again. This leads to infinite loop when the same bucket row is accessed the next time for a lookup/insert or purge action. Tested by: imp, Matt Smith Approved by: re (rwatson)
* | missing splx.ume2003-11-281-0/+1
| | | | | | | | | | | | | | this is a NOOP change, and primarily merged for consistency with -STABLE. Approved by: re (rwatson)
* | Sometimes cardbus attachments don't attach, so while we track downimp2003-11-2816-2/+18
| | | | | | | | | | | | | | | | this problem put these lines back in. While they should be unnecessary, they appear to be sometimes necessary. Reviewed in concept: dfr Approved by: re (scottl@)
* | Eliminate a duplicate free when deleting an interface address. Thissam2003-11-281-11/+1
| | | | | | | | | | | | | | | | caused crashes, typically during shutdown, because the second free referenced a mutex that had been destroyed. Tested by: several Approved by: re (scottl)
* | Refactor AMD Elan 520 CPU support.phk2003-11-271-61/+222
| | | | | | | | | | | | | | | | | | | | Make it possible to configure GPIO pins as led(4) devices, PPS inputs and PPS-echo outputs with a sysctl. Led(4) and PPS-echo can be configured for active-high or active-low. Be more complete in initialization of timecounter hardware. Approved by: re@
* | Improve semantics of the 'sequence' command to led(4) devices:phk2003-11-271-12/+12
| | | | | | | | | | | | use lowercase for off and upper case for on. Approved by: re@
* | Fix a panic due to holding a lock over calls to uiomove.matk2003-11-273-30/+39
| | | | | | | | | | | | | | Pointed out by: Artur Poplawski Explained by: Don Lewis (truckman) Approved by: tanimura (mentor) Approved by: scottl (re)
* | Fix i386 apic support merge botch. sizeof(long) is 8, not 4. This fixespeter2003-11-271-1/+1
| | | | | | | | | | | | the annoying 'sysctl: hw.intrcnt: out of memory' error message in systat. Approved by: re (rwatson)
* | * If a processor's softc is NULL, use C1 since there is no ACPInjl2003-11-271-4/+11
| | | | | | | | | | | | | | processor object for this CPU. This occurs for logical CPUs which do not have an associated processor object (e.g., HTT). Approved by: re (rwatson)
* | Fix verify_rev_path() function. The author of this function tried toandre2003-11-271-13/+7
| | | | | | | | | | | | | | | | cut corners which completely broke down when the routing table locking was introduced. Reviewed by: sam (mentor) Approved by: re (rwatson)
* | ServeRaid (at least 5i) didn't initialize correctly. To getmbr2003-11-273-4/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | them working (cache, automatic rebuild and hotswap) the FFDC info (First Failure Data Capture) on the adapter must be initialised. Logical drives in critical/degraded states weren't added to the drive list. FreeBSD was not able to see a degraded array after a reboot. Degraded drives are now also added to the drivelist and the state of the logical drive is given at boottime. The adapter type is detected from informations in nvram page 5 and displayed at boottime. Change IPS_OS_FREEBSD definition from 10 to 8 according to IBM specs. Submitted by: <Patrick Guelat> pgfb@imp.ch Reviewed by: mbr, scottl Approved by: re
* | Make sure all uses of stack allocated struct route's are properlyandre2003-11-264-8/+7
| | | | | | | | | | | | | | | | zeroed. Doing a bzero on the entire struct route is not more expensive than assigning NULL to ro.ro_rt and bzero of ro.ro_dst. Reviewed by: sam (mentor) Approved by: re (scottl)
* | * Add acpi_pcpu_get_id(idx, *acpi_id, *cpu_id) which fetches thenjl2003-11-262-51/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | idx'th present CPU with pc_acpi_id equal to *acpi_id. If *acpi_id does not match that processor's pc_acpi_id, return the value for ProcId derived from the MADT in *acpi_id. If pc_acpi_id is 0xffffffff, always override it with the value of *acpi_id. Finally, return pc_cpuid in *cpu_id and use that as our primary key. * Use pc_cpuid as our unique key because we know it is valid since MD code set it. The values for ProcId in the ASL and MADT don't match up on some machines (!), forcing us to fall back to ordered probing in that case. * Remove some #ifdef SMP since the refcount doesn't hurt performance and will be needed for dynamic _CST objects. Only one #ifdef SMP (for smp_rendezvous) remains. * Hook up SMP in the compile flags in the Makefile. Tested by: marcel, truckman Approved by: re (scottl)
* | Split the "inp" mutex class into separate classes for each of divert,sam2003-11-268-11/+13
| | | | | | | | | | | | | | | | raw, tcp, udp, raw6, and udp6 sockets to avoid spurious witness complaints. Reviewed by: rwatson Approved by: re (rwatson)
* | Restructure a too broad ifdef which was disabling the setting of theandre2003-11-252-4/+8
| | | | | | | | | | | | tcp flightsize sysctl value for local networks in the !INET6 case. Approved by: re (scottl)
* | workaround LOR in rt_setgatesam2003-11-251-1/+3
| | | | | | | | | | Reviewed by: andre Approved by: re (rwatson)
* | Turns out that building modules with the kernel opt files isimp2003-11-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | uncovering some interesting problems. Be conservative and effecitvely disable this by default. Interested parties may still define KERNBUILDDIR by hand to achive the same effect. I plan on referting this change after 5.2 is released, or sooner if the issues with building releases are resolved and re@ approves. Approved by: re@ (scottl, marcel)
* | Write the correct value to `td_be' for the second and furtheriedowse2003-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | transfer descriptors when a large request needs to be split into more than one 8k chunk. The bug was that the calculation did not take into account the offset of the chunk within the overall request. This is reported to fix crashes and data corruption on ohci controllers. Submitted by: green Approved by: re
* | Correct the former patch, I accidently committed the wrong version.sos2003-11-241-2/+2
| | | | | | | | Approved by: re@
* | Fix panic on certain failed configs.sos2003-11-241-4/+11
| | | | | | | | Approved by: re@
* | Be less noisy when GEOM probes around during boot if drive containssos2003-11-241-0/+5
| | | | | | | | | | | | invalid media (ie empty CD/DVD) Approved by: re@
* | Initalize buffer headers correctly for current version of bio subsystem.grog2003-11-243-1/+6
| | | | | | | | | | | | | | Not mentioned by: phk Approved by: re (scottl) This makes Vinum work again, at least in my testing.
* | Correct a problem where ipfw-generated packets were being returnedsam2003-11-242-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | for ipfw processing w/o an indication the packets were generated by ipfw--and so should not be processed (this manifested itself as a LOR.) The flag bit in the mbuf that was used to mark the packets was not listed in M_COPYFLAGS so if a packet had a header prepended (as done by IPsec) the flag was lost. Correct this by defining a new M_PROTO6 flag and use it to mark packets that need this processing. Reviewed by: bms Approved by: re (rwatson) MFC after: 2 weeks
* | pktopt may be null.ume2003-11-241-0/+3
| | | | | | | | Approved by: re (rwatson)
* | Long overdue comment claification: RFC 2783 was approved long time ago.phk2003-11-231-2/+2
| | | | | | | | Approved by: re@
* | Use MPSAFE callouts only when debug.mpsafenet is 1. Both timer routinessam2003-11-232-2/+2
| | | | | | | | | | | | | | | | potentially transmit packets that may enter KAME IPsec w/o Giant if the callouts are marked MPSAFE. Reviewed by: ume Approved by: re (rwatson)
* | Do not attempt to destroy NULL vfs options list.kan2003-11-231-1/+1
| | | | | | | | | | Approved by: re (scottl) Reported by: Christian Laursen <xi atborderworlds dot dk>
* | Fix vinum by correctly setting the b_offset bio filed when doing I/O.scottl2003-11-233-2/+7
| | | | | | | | Submitted by: grog
* | Avoid NULL pointer dereference.phk2003-11-231-1/+2
| | | | | | | | Approved by: re@
* | bzero() the the sockaddr used for the destination address fortmm2003-11-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | rtalloc_ign() in in_pcbconnect_setup() before it is filled out. Otherwise, stack junk would be left in sin_zero, which could cause host routes to be ignored because they failed the comparison in rn_match(). This should fix the wrong source address selection for connect() to 127.0.0.1, among other things. Reviewed by: sam Approved by: re (rwatson)
* | Move us into 5.2-BETAscottl2003-11-221-2/+2
| |
* | New defines that paves the way for new midi features and ports.matk2003-11-221-0/+2
| | | | | | | | | | | | | | | | | | Changes consists of an IOCTL (SNDCTL_SEQ_GETTIME) and a constant. PR: kern/59233 Approved by: tanimura (mentor) Approved by: scottl (re) MFC after: 3 weeks
* | Use function pointers to remove the depenancy cross dependancy on nfs4alfred2003-11-227-107/+46
| | | | | | | | | | | | | | | | and the nfs3 client. Also fix some bugs that happen to be causing crashes in both v3 and v4 introduced by the v4 import. Submitted by: Jim Rees <rees@umich.edu> Approved by: re
* | Argh! The Athlon64 and Opteron only implement 40 bits of address space inpeter2003-11-221-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | the MTRR Base/Mask registers. If you use the documented algorithm in the systems programming guide, you'll get a GPF. The only thing that has prevented this so far is that the bios pre-sets some MTRR entries which we mis-interpreted sufficiently to fool the memcontrol interface into thinking all the address space was taken and therefore rejected XFree86's requests. However, not all bioses do this.. You get an insta-panic in that case. Grrr. A better fix (dynamic mask) will happen by 5.3/5-stable so that we automatically adapt to more than 40 physical bits. Approved by: re (scottl)
* | Commit rev 1.1.1.20 to HEAD. This file was off the vendor branch and thusnjl2003-11-221-9/+19
| | | | | | | | | | | | the changes need to be made to HEAD. Approved by: re (previously)
* | Fix support for the cmd646 chip.sos2003-11-211-2/+27
| | | | | | | | | | Spotted by: tmm reviewed by: re@
* | - Split cpu_mp_probe() into two parts. cpu_mp_setmaxid() is still calledjhb2003-11-218-46/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | very early (SI_SUB_TUNABLES - 1) and is responsible for setting mp_maxid. cpu_mp_probe() is now called at SI_SUB_CPU and determines if SMP is actually present and sets mp_ncpus and all_cpus. Splitting these up allows an architecture to probe CPUs later than SI_SUB_TUNABLES by just setting mp_maxid to MAXCPU in cpu_mp_setmaxid(). This could allow the CPU probing code to live in a module, for example, since modules sysinit's in modules cannot be invoked prior to SI_SUB_KLD. This is needed to re-enable the ACPI module on i386. - For the alpha SMP probing code, use LOCATE_PCS() instead of duplicating its contents in a few places. Also, add a smp_cpu_enabled() function to avoid duplicating some code. There is room for further code reduction later since much of this code is also present in cpu_mp_start(). - All archs besides i386 still set mp_maxid to the same values they set it to before this change. i386 now sets mp_maxid to MAXCPU. Tested on: alpha, amd64, i386, ia64, sparc64 Approved by: re (scottl)
* | This commit was generated by cvs2svn to compensate for changes in r122945,njl2003-11-212-25/+45
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
OpenPOWER on IntegriCloud