summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-08-27Remove definitions of nonexistent consdevs.Martin Pieuchot
2013-08-27Since we are no longer attaching radeondrm(4) to this driver there isMartin Pieuchot
no reason to pretend being compatible with the MI vga layer. So stop using the vga_pci_bar interface and reduce the differences with the sparc64 driver.
2013-08-27Sync comment with reality, the draft is now an RFC and OpenBSD followsMartin Pieuchot
it since bluhm@ implemented it in 2012. From Loganaden Velvindron, ok claudio@
2013-08-27Give RS400/RS480/RS690 another chance. These were previously disabledJonathan Gray
with the old radeondrm code but should work now.
2013-08-27Manipulate timevals seperately, not inside a mbuf. Alignment constraintsTheo de Raadt
miod ran into. ok miod matthew
2013-08-27implement drm_pcie_get_speed_cap_mask()Jonathan Gray
non integrated radeon >= r600 parts will now try to enable PCIe 2.0/3.0 speeds when the PCIe root port advertises the relevant speeds.
2013-08-27stash pci chipset and bridge tags in the drm_device structJonathan Gray
2013-08-27make path driver match routes return 8 so they will definitely be higherDavid Gwynne
than the real device drivers. ses returns 3 on some dells, which could be confusing for autoconf if it has to decide between that and a path driver.
2013-08-27get rid of the different path scheduler types, which simplifies theDavid Gwynne
code that picks the next path. we assume roundrobin within a group of paths now. the asym sym(4) devices work around this by putting every path in its own group.
2013-08-27these were forgotten in the change from pointing paths to groups insteadDavid Gwynne
of devices. fixes compilation when theyre enabled. how embarrassment.
2013-08-27make scsi_sem_leave only run again once, no matter how many timesDavid Gwynne
other things scsi_sem_enter. the things protected by this do as much work as they can, so they only need to be told to try again once. this isnt a semaphore anymore (and probably never was) so there's a name change coming too.
2013-08-26Use %r27 as the thread control block pointer, allowing for __get_tcb() callsMiod Vallat
in libpthread to be optimized away. While there, follow DG/UX's example of using more than one register for thread purposes (after all, the ABI reserves four of them), and also use %r26 to store a pointer to the current thread's errno. Since it is not possible to initialize %r26 at thread creation without intrusive and potentially race-prone changes, have __tfork() reset %r26 to zero, and libpthread's __cerror lazy initialize it. As soon as %r26 is nonzero, it will be used instead of calling __errno(). This means that binaries linked against HEAD libpthread need to run on HEAD kernels, and we are belatedly jumping on the 64-bit time_t bump (since there are no 64-bit time_t m88k snapshots yet). Joint work with guenther@; "Your love of asm is sick and wrong, and yet beautiful." and ok guenther@
2013-08-26When a page needs to be flushed from all caches, make sure the writebackMiod Vallat
happens on all D$ in MULTIPROCESSOR kernels, for the dirty lines may not all be on the current cpu. Fixes spurious segmentation faults or ill behaviours in MULTIPROCESSOR kernels, but there are still some left.
2013-08-26syncTheo de Raadt
2013-08-26capitalize a section headerMike Belopuhov
2013-08-26"reactivate";Jason McIntyre
make.1 part From: Christian Schulte
2013-08-26replace rand(3)/random(3) calls with secure arc4random*()Christian Weisgerber
npppd ok yasuoka@ ok millert@
2013-08-26implement handling of group failover.David Gwynne
if a controller sends sense data back, the path driver can tell mpath that its indicating failover which kicks off an iteration over all the groups until one says its active. if no groups claim to be active, a timeout fires the process off again after a second. you can start controller handover on rdac (well, an md3200i is all i had to test with, others might need more work) and everything keeps going. ill try to get to emc and hds working when i can poke hardware again.
2013-08-26feng shuiDavid Gwynne
2013-08-26all paths are considered active, not in some unknown state.David Gwynne
2013-08-26all FUJITSU MA disks ive found seem ok with being behind mpath.David Gwynne
2013-08-26pull rdac_c9 apart and use its guts to implement the status checkDavid Gwynne
handler for the mpath midlayer to call. the status check is completely event driven. a group is considered active if the VOLACCESSCTL vpd page has some bits set.
2013-08-26rename rdac_c8 to rdac_extdevid and use less magic numbers in the process.David Gwynne
2013-08-26when i first imagined how paths on mpath worked, i thought theDavid Gwynne
midlayer would be able to call things on paths to explicitely online or offline them. turns out thats not how the Real World(tm) works, instead its better to wait for failure and probe for the status of paths, and pick the active group of paths from that. there's even evidence that the mechanisms for forcing controllers into active/passive roles from the scsi initiator are being deprecated. they expect hosts to be able to cope with arbitrary controller role changes and failover accordingly. this replaces the online and offline function pointers in the path_ops structure with a status check function pointer. instead of returning a state, the checker is expected to call mpath_path_status() when its finished figuring out what the state is.
2013-08-26add a define for the link capabilities register forJonathan Gray
version 2 of the PCIe capability.
2013-08-26slowcgi grows an option to specify an alternate FastCGI socketBret Lambert
on which to listen. okay dcoppa@, henning@, florian@ manpage okay from jmc@
2013-08-26my DELL MD3000i seems to return skey illegal request + asc 0x94 +David Gwynne
ascq 0x01, or skey unit attention + asc 0x8b + ascq 0x02 when i tell it to change controller ownership of a volume. i wish i knew what the numbers really meant, but alas, there's no doco cos this is all magical and unique apparently. anyway, empirically this can be used in rdac_checksense to return MPATH_SENSE_FAILOVER.
2013-08-26checksense handlers in path drivers can return MPATH_SENSE_DECLINEDDavid Gwynne
(who can tell ive spent time in web servers) to say they decline interpreting the sense data, or MPATH_SENSE_FAILOVER to say the sense data is from the controller saying its failed over. all path drivers currently decline handling sense data.
2013-08-26free the dev slot on group allocation failure if we're building a new dev.David Gwynne
2013-08-26introduce the idea of groups of paths. mpath had stuff to managedDavid Gwynne
devices and paths. devices are what mpath presents as targets on its scsibus, and paths are the things attached to hardware controllers that are available to shove io down to the actual real target. all paths were considered usable for handling io on behalf of a device. this adds groups in between devices and paths. only paths on the first group in the list will now be used to handle io now. sym devices will only have one group. asym devices will treat each path as a different group. rdac, emc, and hds will group paths based on which controller in the array theyre connected to. in the future we will intercept sense data from passive controllers and use that to start running checks to pick a new primary group so we can handle controller failover situations. the group id in hds(4) is currently busted, everything else should be correct.
2013-08-26rdac_groupid queries which controller the path is attached to, which we'llDavid Gwynne
use as the group id later on.
2013-08-26No one uses the obsolete IPv6 ioctls SIOCGDRLST_IN6, SIOCGPRLST_IN6,Alexander Bluhm
OSIOCGIFINFO_IN6 anymore. Remove them together with the structs in6_drlist, in6_oprlist, in6_prlist, in6_ondireq and the kernel implementation. OK mikeb@ henning@
2013-08-26now that mpath is attached before any hardware, we can simplify the code.David Gwynne
firstly, move the array of targets that mpath presents into the softc. secondly, when paths call the mpath api we can simply check if the softc global is not null rather than walk through autoconf data. mpath will either have already attached or will never attach in the future.
2013-08-26Add a stubbed out version of drm_pcie_get_speed_cap_mask() andJonathan Gray
enable all the code in the various radeon pcie_gen2_enable() functions. no functional change
2013-08-26remove an uneeded printfJonathan Gray
2013-08-26move attach mpath before any hardware. the benefits being:David Gwynne
- the mpath hooks path drivers call dont have to parse autoconf structures to tell if mpath may attach in the future. it now either has already attached or never will, which is simpler to check. - i can get rid of the global mpath target array by moving it into the mpath softc because of the above. - makes reasoning about state transitions (especially around when to attach) when groups of paths are implemented a lot simpler the only real caveat is dmesg feng shui may be ruined. i can come back and look at this after i move mpath itself forward though. discussed with deraadt@ miod@ ok todd@ matthew@ krw@
2013-08-26make scsi_{xsh,ioh}_{add,del} return whether they moved somethingDavid Gwynne
on or off the queues so things calling them can tell if something is or isnt going to happen.
2013-08-25move the prototypes of scsi_sem_{enter,leave} into a header so thingsDavid Gwynne
other than scsi_base.c can use them.
2013-08-25transform names cannot have commasMike Belopuhov
2013-08-25transform names cannot have commasMike Belopuhov
2013-08-25the comment that comma characters cannot be used in transformMike Belopuhov
names in ike_section_p2 applies to phase-1 transforms as well.
2013-08-25one change missed by jsging's commit is needed to unbreak the build;Mike Belopuhov
spotted by sthen@
2013-08-25call if_link_state_change when link state actually changes; ok claudioMike Belopuhov
2013-08-25Make ommmc interrupts show up in vmstat -i, systat, etc.Stefan Sperling
The interrupt handler used to always return zero, even if it did some work. Since interrupts aren't shared we can always return 1. ok patrick
2013-08-25Remove useless and ugly (code before decl, wrong indentation) debug printfs.Stefan Sperling
ok patrick
2013-08-25Allocate and deallocate memory for encryption contexts within cryptosoft,Joel Sing
rather than requiring each algorithm to provide their own memory handling. This matches the interface already provided by cryptosoft for authentication algorithms and removes the need for zerokey functions. ok mikeb@
2013-08-25Do not require that `extra' partitions (i-p) start on cylinder boundaries;Miod Vallat
this was inherited from sparc when adding 16 partition support, but disklabel(8) does not enforce such alignment, and since UniOS never did for the `traditional' partitions (a-h), there is no good reason to keep this. This makes partitions i-p really functional.
2013-08-25In bonito_mem_map(), initialize pcimap earlier to make sure its value is notMiod Vallat
tested before initialization; this would only affect 2e systems. Found by Maxime Villard; reminded by mlarkin@
2013-08-25new ciss devices from Scott Benesh of HP via FreeBSDJonathan Gray
2013-08-25regenJonathan Gray