summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2008-12-21just attach cpu0, not cpu*, ok kettenisTheo de Raadt
2008-12-21Change the way we include mpbios code to be similar to what we do on i386.Mark Kettenis
ok deraadt@
2008-12-21Undo m_defrag().Damien Bergamini
m_defrag() does not work. It seems to assume that if the length of the mbuf passed as parameter is less than MHLEN, then it is an mbuf header and not a cluster (or something like that.) It thus fails miserably in the bcopy path. I don't have the time to investigate further into this. Thanks to Okan Demirmen for reporting the issue on a ral(4) RT2560. The RT2560 chipset does not support TX scatter and thus m_defrag() was called much more often than in other drivers using m_defrag() where it was less noticeable.
2008-12-21Teach the header files not to bail out if pcc is used instead of gcc.Anders Magnusson
Ok deraadt@.
2008-12-20protect mbstat with spl; ok claudio mikebTheo de Raadt
2008-12-19Add missing #ifdef DDB around prototyupe.Mark Kettenis
2008-12-19On many systems the information returned by _PRT is an absolute lie, especiallyMark Kettenis
in the PIC case. So if _CRS returns a plausible value, go with that, and only chose an interrupt from the list returned by _PRT if the value returned by _CRS makes no sense.
2008-12-18Remove redundant function prototypes which are already in pfvar.hDavid Hill
ok henning@
2008-12-18Don't set the global bit PG_G for kernel pmap low memory mappings.Kurt Miller
ok deraadt@
2008-12-18Don't set the global bit PG_G for kernel pmap low memory mappings. Use aKurt Miller
new function pmap_prealloc_lowmem_ptp() to setup kernel pmap ptp 0 without the PG_G bit set. This fixes the remaining reaper -> pmap_page_remove panics. With much diagnostic help from Art and Theo. ok deraadt@
2008-12-18use atomic operations to update ptes in pmap_unwire(). okay weingart@Kurt Miller
2008-12-17Make the code that picks an IRQ from the list of possible IRQs a bit smarterMark Kettenis
by avoiding legacy IRQs if possible. Fixes problems (some, not all) with machines that advertise legacy IRQs as usable even if they have ISA devices onboard that need those IRQs. ok marco@
2008-12-17- Extend our quirk device table by a flags field.Marcus Glocker
- Add Apple iSight first revision device to the quirk table for future code. - Fix some logic in the device matching function. OK deraadt@
2008-12-17Backout anonymous union fix, since it breaks V4L ports. we try to fixMarcus Glocker
this upstream instead. OK deraadt@
2008-12-16Make the "machine xir" ddb command work on machines with TomatilloMark Kettenis
schizo(4) variants.
2008-12-16Move the functionality of psignal() to a new function ptsignal()Philip Guenthe
that takes an additional argument "type" that indicates whether the signal is for the process, just a particular thread, or propagated to a thread because it's not caught or blocked. psignal() becomes a wrapper that does the first of those. So that sys_kill() can tell apart signals for the process and signals for the process's original thread, the tid of the original thread is defined as its pid + THREAD_PID_OFFSET. ok tedu@ art@ andreas@ kurt@ "better early than late" deraadt@
2008-12-15Make the "machine xir" ddb command work on machines with uperf(4) on sbus(4).Mark Kettenis
2008-12-15Make the "machine xir" ddb command work on machines with uperf(4) on ebus(4).Mark Kettenis
2008-12-15Let tty subsystem know when transmit is finished so ioctls do not hang.Dale Rahn
2008-12-15in rt2860_rx_intr(), rely on RT2860_FS_DRX_IDX instead of the RX_DMA DDONEDamien Bergamini
bit to know when to stop.
2008-12-15regenDamien Bergamini
2008-12-15remove duplicated usb idDamien Bergamini
2008-12-15regenDamien Bergamini
2008-12-15more RT2770/RT2870/RT3070/RT3071 product ids.Damien Bergamini
driver coming soon.
2008-12-15Initial fixup of sockaddr_mpls struct.Michele Marchetto
Remove smpls_in_iface as labels must be per platform unique. Remove smpls_out_iface. It is redudant and can be inferred from nexthop. Move smpls_operation to rt_flags and temporary remove smpls_out_exp. ok claudio@
2008-12-15remove i386-only inline assembler roll() function; gcc optimises theDamien Miller
equivalent C code into a rol instruction anyway (confirmed with objdump -d); "nuke it" weingart@
2008-12-15revert 1.20 now that the new allocator is used to control the number ofBrad Smith
RX buffers allocated. ok dlg@
2008-12-14Allow trunk_hashmbuf() to take HW VLAN tagging into consideration.Brad Smith
ok mpf@ naddy@
2008-12-14Since trunk_hashmbuf() and thus trunk_lb_gethdr() are no longer specificBrad Smith
to the loadbalance code rename trunk_lb_gethdr() to just trunk_gethr(). ok mpf@
2008-12-14Make sure the low water mark for cluster pools isn't 0 such that networkMark Kettenis
drivers are guaranteed to make progress. We could probably set it to 1, but we set it to 2, to make sure drivers that link descriptors don't link a descriptor back to itself. ok deraadt@, dlg@
2008-12-14Switch gem(4) over to using MCLGETI when allocating mbufs for the rx ring.Mark Kettenis
help from dlg@, tested by a few, ok dlg@
2008-12-14Disable TX_DMA writing back DDONE into TXD.Damien Bergamini
Some micro-optimizations while I'm here.
2008-12-14Implement a "machine xir" ddb command, making it possible to send anMark Kettenis
External Initiated Reset (XIR) to processors. A XIR is non-maskable and will drop us at the PROM ok prompt. This makes it possible to diagnose problems where a CPU is spinning with interrupts disabled. For now, this is only supported on machines with bbc(4).
2008-12-14o Correctly clear UGEN_ASLP in all cases.Federico G. Schwindt
o Use the timeout for isochronous transfers as well o Allow to set the timeout for both, read and write From FreeBSD. you@ ok some time ago.
2008-12-14txpower range checks should be inclusive.Jonathan Gray
From FreeBSD via mickey in pr 6024. ok damien@
2008-12-14- properly handle RT2860_TX_RX_COHERENT interrupts.Damien Bergamini
- update ic_dtim_count and make use of the new ieee80211_notify_dtim function. - add explicit barriers. - cleanup as usual.
2008-12-14Add an ieee80211_notify_dtim() function that drivers should call afterDamien Bergamini
every DTIM in HostAP mode. Flushes all group addressed MSDUs buffered at the AP for power management.
2008-12-14Give names to anonymous unions.Ray Lai
Worked on with mglocker. OK mglocker
2008-12-14regenBrad Smith
2008-12-14Add the Novatel Merlin X950D ExpressCard.Brad Smith
2008-12-13Properly restore PSTATE_IE when returning from send_softint().Mark Kettenis
Fixes "ipi_send: couldn't send ipi" panics.
2008-12-13use the hardware general-purpose timer interrupt instead of timeout(9).Damien Bergamini
clean up the ctl_ridx mess.
2008-12-13clear the WCID, pairwise keys, shared keys, IV/EIV tables in NIC memoryDamien Bergamini
*after* resetting the hardware. otherwise the tables contain garbage. should fix most of the weird issues people were facing. scary.
2008-12-13;5Anvidia mcp67 ahci controller also needs special handling.Mike Belopuhov
from Marko Pecic. thanks!
2008-12-13note to everyone: nitems(pointer) is 0, not what you wantTheo de Raadt
2008-12-12Check for zero'd spd data even if we pass the checksumJonathan Gray
and don't offer a match in this case. Deals with the qemu "TODO: Populate SPD eeprom data." tested by todd@
2008-12-12Introduce a if_priority that will be added to RTP_STATIC when routes areClaudio Jeker
added without an expilict priority. This allows to specify less prefered interfaces that will only take over if the primary interface loses link. OK deraadt@
2008-12-12Make sure that incomming routing messages don't have RTP_DOWN set. MaskClaudio Jeker
the rtm_priority with RTP_MASK so that userland (e.g. arp) can issue a RTM_GET and reissue the message as RTM_DELETE.
2008-12-12fix a bug that slipped through my last commit.Damien Bergamini
2008-12-12- fix HW crypto using group keys (this should fix the "ExtIV bit not set"Damien Bergamini
logged by some WPA supplicants when connecting to a ral(4) WPA AP.) - get rid of the ugly ack_rate, rate2mcs functions (pre-compute ACKs duration for all rates at node association time.) - lot of clean up, prepare for future enhancements