summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-10-12Remove all MD diagnostics in cpu_switchto(), and move them to MI code ifMiod Vallat
they apply. ok oga@ deraadt@
2011-10-10Put the drive in standby mode when we're powering down the machine.Mark Kettenis
tested by dcoppa@, ok krw@, miod@
2011-10-10Extend pci_probe_device_hook() on sgi xbridge(4) to return either the straightMiod Vallat
accessors or the byte-swapped accessors, depending upon the byteswap setting of the device we are trying to attach. This allows for the removal of byteswap knowledge from ioc(4) and iof(4) drivers. While there, build pci_chipset_t md structs by bcopy'ing a template and filling the few runtime fields, instead of assigning every field of them.
2011-10-10Introduce pci_probe_device_hook(pci_chipset_tag_t, struct pci_attach_args *).Miod Vallat
This mandatory function will get invoked in pci_probe_device(), and allows a pci host driver to alter the pci_attach_args passed to a device when attaching. This function will also, if returning non-zero, cause the device to be skipped completely during all the phases of the PCI device discovery (i.e. ressource enumeration, ressource assignment, and actual attachment). This particular feature is experimental and might be reverted in the future (or the scope narrowed to device attachment only). A dummy #define pci_probe_device_hook() 0 is added to all platforms except sgi, where real functions (currently only returning 0) are added; real meat will be added shortly. Discussed at s2k11, no objection from the usual suspects.
2011-10-10add tlphy everywhere tl is enabledJonathan Gray
pointed out by Loganaden Velvindron/brad
2011-10-09add support for WCH CH352 serialJonathan Gray
tested by Atanas Vladimirov on a CardBus device with one physical port
2011-10-09regenJonathan Gray
2011-10-09WCH CH352 serialJonathan Gray
2011-10-09Pad the ECOFF output file to a 512 bytes boundary; older AViiON firmware willMiod Vallat
reject non-padded files with an irrelevant error message, and newer firmware won't mind the extra bytes.
2011-10-09Cope with the recent pmap changes to prevent them from accidentally unmapMiod Vallat
the VBR page (quick workaround until the VBR page is relocated as has been done on mvme88k)
2011-10-09Let BUS_DMA_COHERENT allocations return cache-inhibited pages.Miod Vallat
2011-10-09Finally fix the kernel mode apr to remove the forced write-through cacheMiod Vallat
control, and enjoy the joys of write back (16% performance improvement for non-cpu bound workloads). While there, there is no need to map the page tables cache inhibited on 88100 systems; they only need to be write-through, and snooping will do the rest. Kernel WB is still disabled on 88110 SMP kernels, until the last MP bootstrap bug is understood and fixed.
2011-10-09Split the tlb invalidate routines into 88100 and 88110 specific routines, ↵Miod Vallat
and use function pointers to invoke them (if they can't be choosen at compile-time depending upon the kernel configuration). The routines now get the new pte value as an extra argument; they don't use it yet, but code I am working on will soon on 88110.
2011-10-09Correctly handle invalidate of partial cache lines, for the Nth time.Miod Vallat
2011-10-09Rework secondary processor initialization. cmmu initialization is nowMiod Vallat
performed much earlier in the processor startup. No visible change, paves the way for the much important diff three commits from here.
2011-10-09Fix the backspace key under X11 and make the 'option' key behaves like inMartin Pieuchot
console. The 'command' key is now the alt modifier. Based on a diff from shadchin@ with inputs from miod@ ok shadchin@, miod@
2011-10-07rename some vars and functionsHenning Brauer
unfortunately altq is one giant namespace violation. rename just those that conflict with new stuff for now only to be found on my laptop. reduce pain, the diff is huge already. ok ryan
2011-10-07remove inaccurate comment - we don't have state tableS any more, there isHenning Brauer
just one and the variable name is clear enough. ryan ok
2011-10-07pf_poolqueue is long dead, remove corpses. from eurobsdcon, ryan okHenning Brauer
2011-10-07Detect the ts3000b3 and stts2002, and weaken the cat34ts02 model checkTheo de Raadt
since a similar device (not yet named as far as I can see) has showed up on the market. cat34ts02 tested by weerd.
2011-10-07Interface cable for Yaesu ham radios, ok deraadtChris Kuethe
uftdi0 at uhub2 port 1 "RT Systems CT57B Radio Cable" rev 2.00/6.00 addr 2 ucom0 at uftdi0 portno 1
2011-10-07regenChris Kuethe
2011-10-07RT Systems interface cable (rebranded FTDI) for Yaesu ham radiosChris Kuethe
ok deraadt
2011-10-06mark ccd(4) deprecated in a few more placesTheo de Raadt
2011-10-06ccd goes to the atticTheo de Raadt
discussed with jsing and millert
2011-10-06An #ifdef without a #else in the middle of an indexed array is bad.Theo de Raadt
ok miod
2011-10-06Introduce a kqfilter wrapper for the controlling tty device entryMike Belopuhov
which allows a correct registration of kqueue(2) notifications on the /dev/tty instead of calling a function via a null pointer in the ttkqfilter leading to a local DoS. Surprisingly the same code is present in NetBSD since the kqueue merge, but didn't make it to the OpenBSD for 10 years. Thanks to Anton Yabchinskiy <arn-at-bestmx-dot-ru> for a GHCi crash report and his willingness to test multiple diffs for over a week. With input from nicm, ok miod, derraadt.
2011-10-05It is not safe to call sensor_task_unregister() from inside theTheo de Raadt
refresh function. sensor_task_work() is incomprehensively complex. Work around this by using a workq to deactive the i2c alias when the isa interface is preffered. Problem of dead sensors reported by henning, fix tested by Nigel Taylor ok kettenis
2011-10-05ami_drv_inq bus_dmamap_loads the inquiry buffer, so that buffer has to beDavid Gwynne
under 4g now. this moves the inqbufs off the stack to dma_alloc/dma_free. reported by and fix tested by henning@ ok henning@
2011-10-05Add the remaining parts of support for 82580 based devices such asJonathan Gray
the Intel I340-T4 and HP NC365T and simplify some of the multi port handling while here. Thanks to fredrik danerklint for donating a card, Linden Varley for setting up a test system and everyone who made sure this didn't break their existing em setups.
2011-10-04In the coming future, we are more likely to need ehci(4) than sk(4) orTheo de Raadt
vge(4) discussed at length with jsg
2011-10-04Add support for ALPS touchpads.Martin Pieuchot
This also fix the "slow touchpad" problem due to the fact that some ALPS devices respond to some Synaptics messages and stay in un half-configured state. Tested by Rivo Nurges, armani@, shadchin@ and matthieu@ ok shadchin@
2011-10-03Add a 'flag' locator to gpioiic(4), and define a first flagMatthieu Herrb
value to swap the SDA and SCL pins assigment during attach. Mostly from work with mbalmer@NetBSD. ok miod@
2011-09-30Change ni_dirfd's position in struct nameidata to eliminate alignmentPhilip Guenthe
padding on LP64 platforms ok millert@ miod@
2011-09-29Fix local types in vgafb_pci_probe(), to match what pci_*_find() expect,Miod Vallat
after the bus_{addr,size}_t type definition change.
2011-09-29Remove assembly defines for various struct disklabel field offsets, now thatMiod Vallat
nothing depends on them anymore. ok jsing@ krw@
2011-09-29Get size of struct disklabel for the sake of the assembly code with aMiod Vallat
genassym script, instead of relying upon <sys/disklabel.h> to provide them as proper .set statements if _LOCORE is defined. Requested by weingart@ long ago; ok jsing@ krw@
2011-09-29Avoid a potential NULL dereference if nports == 0.Stefan Sperling
Found by Amit Kulkarni using clang. Fix from jakemsr; his diff was sitting on tech@ since February. ok myself, phessler, sthen, jasper and also pirofti, mikeb, krw (back in February)
2011-09-28Oops, do not do last minute edits before commit... Make the previous changeMiod Vallat
compile.
2011-09-28As requested by henning, move the mbuf pointer into struct pf_pdesc.Alexander Bluhm
Also sort pd to the beginning of the functions' parameter lists for consistency. ok henning
2011-09-28disable the fifo on m series systems by telling the driver its a 16550David Gwynne
which stops the MI com code from probing it as a 16550a. hopefully this will prevent the awesome faults on the mainboard from locking the system up. ok kettenis@
2011-09-27Make bus_addr_t and bus_size_t u_long types, instead of either uint32_t orMiod Vallat
uint64_t, depending upon the platform; this makes the declaration of these types consistent accross all our supported platform, and we do not intend to support a platform where bus_addr_t could be larger than the size of the cpu register. Requested by deraadt@ during s2k11
2011-09-27Make struct label_t large enough for the kernel setjmp() purposes. Found afterMiod Vallat
deraadt@ and jsing@ noticed hppa64 label_t was too short; amazing this did not get noticed earlier.
2011-09-27Use a pool to allocate pv_entry from, instead of allocating whole pages andMiod Vallat
maintaining our own free lists. No functional change.
2011-09-27Needs explicit <sys/kthread.h>; fixes build on palm.Miod Vallat
2011-09-27Try to put more sanity in the machine check handling:Miod Vallat
- only handle a machine check as caused by badaddr() if the local `memtest' variable is nonzero, instead of abusing `cold'. And be sure to clear `memtest' upon returning from badaddr, of course. - do not write to the MCESR register on microVAX II and SOC processors, as this register is not implemented on those models. - get rid of the `write the SBIFS and EHSR registers depending upon the cpu model' chunk, since these only matter on true 11/780 and 86x0 models, support for which has been removed recently.
2011-09-26Notify ifmedia layer of loss of link on SGEC interfaces (which only getsMiod Vallat
detected upon failure to transmit if it is indeed lost), so that `ifconfig ze0' reports the correct state of the link instead of always pretending it is up.
2011-09-23Make sure siop_xfer is a multiple of 128 bytes as intended (and as told byMiod Vallat
the comments); this makes hppa64 much happier according to jsing@. ok krw@ exactly two years ago, it was about time to commit this.
2011-09-23touching pr_nput and pr_nget outside the lock might be racy since ++ and --David Gwynne
arent necessarily atomic. this is an update of a diff matthew@ posted to tech@ over a year ago.
2011-09-23regenJonathan Gray