summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Beginning of overhaul of fwcontrol:sbruno2008-09-102-125/+384
| | | | | | | | | | | | | | | | | | - Documentation of send_phy_config() - cleanup of malloc's() and added error checking throughout - new capability to iterate over multiple firewire buses - update usage() display - cleanup command line parsing to allow out of order switches - cleanup command line parsing to allow multiple switches per invocation - cleanup grammar of man page a bit - add some ranges to the man page to indicate what values are valid Since fwcontrol's code is the same across 6/7/head this can be applied to all branches after the MFC period. Reviewed by: Dieter freebsd@sopwith.solgatos.com Approved by: mentor Scott scottl@samsco.org MFC after: 60 days
* Some K8 chipsets don't expose all of the PCI devices on bus 0 via PCIejhb2008-09-102-28/+92
| | | | | | | | | | memory-mapped config access. Add a workaround for these systems by checking the first function of each slot on bus 0 using both the memory-mapped config access and the older type 1 I/O port config access. If we find a slot that is only visible via the type 1 I/O port config access, we flag that slot. Future PCI config transactions to flagged slots on bus 0 use type 1 I/O port config access rather than memory mapped config access.
* Various whitespace fixes.jhb2008-09-103-11/+10
|
* Add a proper detach method to the est(4) driver using cpufreq_unregister().jhb2008-09-101-3/+6
| | | | MFC after: 1 week
* If arm.h is going to define WCHAR_TYPE, don't assume WCHAR_TYPE_SIZEobrien2008-09-101-1/+1
| | | | | | doesn't already have a definition. Reported by: imp
* Use PAGE_{SIZE,MASK,SHIFT} from machine/param.h rather than hard-codingjasone2008-09-101-120/+88
| | | | | | page size and using sysconf(3). Suggested by: marcel
* Remove VSVTX, VSGID and VSUID. This should be a no-op,trasz2008-09-106-13/+12
| | | | | | as VSVTX == S_ISVTX, VSGID == S_ISGID and VSUID == S_ISUID. Approved by: rwatson (mentor)
* Add a missing break statement; IFDATA_LINKSPECIFIC would fall throughbms2008-09-101-0/+1
| | | | | | | to IFDATA_DRIVERNAME otherwise. Reviewed by: brooks MFC after: 1 week
* o Correct a comment: a test file size is a four pages not three.maxim2008-09-101-1/+1
|
* Get initial bootstrap of APs working under xen.kmacy2008-09-109-29/+1251
| | | | | | Note that the APs still blow up in sched_throw(). MFC after: 1 month
* Fix path in all includes: remove /mips32 subdirectorygonzo2008-09-1022-32/+32
|
* rename flags and add a ZYD_FLAG_DETACHING flag to indicate we'reweongyo2008-09-102-2/+9
| | | | | | detaching that when the USB is pulled out forcibly during the driver is running background scan, a page fault can be occurred even if we called usb_rem_task() when detaching. It looks like a kind of races.
* - Fix regression with GETMEMkmacy2008-09-101-7/+4
| | | | | | | | - Remove gratuitous bswap macros - check for rev 3 with t3b Obtained from: Chelsio Inc. MFC after: 3 days
* Allow building k8temp on i386.rpaulo2008-09-091-0/+1
| | | | MFC after: 1 week
* Build k8temp on i386.rpaulo2008-09-091-0/+1
|
* Add support for the CyberPower CP1500AVRLCD.remko2008-09-092-0/+6
| | | | | | | PR: 126845 Submitted by: gavin Approved by: imp (mentor, implicit) MFC after: 1 week
* Add support to rc.initdiskless for /conf/T/M/remount_subdir.bms2008-09-091-4/+37
| | | | | | | | This allows the location of the configuration data to be relocated within the filesystem containing it. A nullfs mount is used in order to achieve this. Obtained from: XORP, Inc.
* Move call to _malloc_thread_cleanup() so that if this is the last thread,jasone2008-09-091-3/+6
| | | | | | | the call never happens. This is necessary because malloc may be used during exit handler processing. Submitted by: davidxu
* Update for new HAL.rpaulo2008-09-091-1/+1
| | | | Reviewed by: sam
* Getdents requires padding with 2 bytes instead of 1 byterdivacky2008-09-091-33/+54
| | | | | | | | | | | | | | as with getdents64. The last byte is used for storing the d_type, add this to plain getdents case where it was missing before. Also change the code to use strlcpy instead of plain strcpy. This changes fix the getdents crash we had reports about (hl2 server etc.) PR: kern/117010 MFC after: 1 week Submitted by: Dmitry Chagin (dchagin@) Tested by: MITA Yoshio <mita ee.t.u-tokyo.ac jp> Approved by: kib (mentor)
* Initialise the SVCAUTH field for new transport structures when they aredfr2008-09-093-2/+5
| | | | | | | allocated instead of waiting for the first request. This fixes an issue with rpcbind's support for PMAPPROC_CALLIT. Reviewed by: markm
* Remove superfluous copyin() of args, structures are already in kernel space.kib2008-09-091-155/+78
| | | | | Submitted by: dchagin MFC after: 1 week
* Remove redundant close(2).trasz2008-09-091-1/+0
| | | | | Submitted by: kensmith Approved by: rwatson (mentor)
* Add workaround for CRC errors seen at 100Mbps on JMC250 A2.yongari2008-09-092-2/+16
| | | | | While here update chip revision number of JMC250/JMC260 from the latest datasheet.
* Fix typo.yongari2008-09-091-1/+1
|
* Return two fixes from previous backout which does not requireache2008-09-091-1/+2
| | | | | | | | | | | | | | | | | review by secteam@ for the reasons mentioned below. 1) Rename /dev/urandom to /dev/random since urandom marked as XXX Deprecated alias in /sys/dev/random/randomdev.c (this is our naming convention and no review by secteam@ required) 2) Set rs_stired flag after forced initialization to prevent double stearing. (this is already in OpenBSD, i.e. they don't have double stearing. It means that this change matches their code path and no additional secteam@ review required) Submitted by: Thorsten Glaser <tg@mirbsd.de> (2)
* Work around an integer division resulting in 0 and thus thebz2008-09-091-1/+3
| | | | | | | | | | | | | congestion window not being incremented, if cwnd > maxseg^2. As suggested in RFC2581 increment the cwnd by 1 in this case. See http://caia.swin.edu.au/reports/080829A/CAIA-TR-080829A.pdf for more details. Submitted by: Alana Huebner, Lawrence Stewart, Grenville Armitage (caia.swin.edu.au) Reviewed by: dwmalone, gnn, rpaulo MFC After: 3 days
* IGP based radeon cards such as the rs485 and rs690 require that the GART tablernoland2008-09-091-18/+73
| | | | | | | | be un-cached. Our previous memory barrier was not sufficient. This patch allocates the IGP GART tables using the BUS_DMA_NOCACHE flag to get these cards working. Approved by: kib
* We should never call drm_pci_alloc() while holding locks, due the thernoland2008-09-095-14/+36
| | | | | | | | calls to bus_dma. There were multiple paths that held different locks or no locks at all. This patch ensures that all of the calling paths drop their lock(s) before calling drm_pci_alloc(). Reviewed by: kib
* Fix issue with recovering from transient jumbo mbuf shortage.kmacy2008-09-093-28/+7
| | | | | Submitted by: Chelsio Inc. MFC after: 3 days
* Document TAPGIFNAME, TAPSIFINFO and TAPGIFINFO tap(4)emax2008-09-081-1/+16
| | | | | | character device ioctl's. MFC after: 1 week
* Add new TAPGIFNAME tap(4) character device ioctl. This is aemax2008-09-082-0/+7
| | | | | | | | convenient shortcut to obtain network interface name using file descriptor for character device. Obtained from: NetBSD MFC after: 1 week
* - Reduce scope of #ifdef's in uma_zcreate() call in init_turnstile0().jhb2008-09-081-3/+4
| | | | | | | | | - Set UMA_ZONE_NOFREE so that the per-turnstile spin locks are type stable to avoid a race where one thread might dereference a lock in a free'd turnstile that was previously used by another thread. Theorized by: tegge (2) MFC after: 1 week
* For cheetah-class CPUs ensure that the dt512_0 is set to hold 8k pagesmarius2008-09-086-5/+59
| | | | | | | | | | for all three contexts and configure the dt512_1 to hold 4MB pages for them (e.g. for direct mappings). This might allow for additional optimization by using the faulting page sizes provided by AA_DMMU_TAG_ACCESS_EXT for bypassing the page size walker for the dt512 in the superpage support code. Submitted by: nwhitehorn (initial patch)
* USIII and beyond CPUs have stricter requirements when it comesmarius2008-09-087-14/+31
| | | | | | | | | | | | | | | | | | to synchronization needed after stores to internal ASIs in order to make side-effects visible. This mainly requires the MEMBAR #Sync after such stores to be replaced with a FLUSH. We use KERNBASE as the address to FLUSH as it is guaranteed to not trap. Actually, the USII synchronization rules also already require a FLUSH in pretty much all of the cases changed. We're also hitting an additional USIII synchronization rule which requires stores to AA_IMMU_SFSR to be immediately followed by a DONE, FLUSH or RETRY. Doing so triggers a RED state exception though so leave the MEMBAR #Sync. Linux apparently also has gotten away with doing the same for quite some time now, apart from the fact that it's not clear to me why we need to clear the valid bit from the SFSR in the first place. Reviewed by: nwhitehorn
* o Move the MODULE_DEPEND() for cam(4) from the esp_sbus.c front-end tomarius2008-09-088-613/+765
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the ncr53c9x.c core where it actually belongs so future front-ends don't need to add it. o Use the correct OFW property when looking for the initiator ID of the SBus device. o Don't specify an alignment when creating the parent DMA tag for SUNW,fas; their DMA engine doesn't require an alignment constraint and it's no inherited by the child DMA tags anyway (which probably is a bug though). o Drop the superfluous sc_maxsync and use sc_minsync instead. The former apparently was added due to a confusion with the maximum frequency used in cam(4), which basically corresponds to the inverse of minimum sync period. o Merge ncr53c9x.c from NetBSD: 1.116: NCRDMA_SETUP() should be called before NCR_SET_COUNT() and NCRCMD_DMA command in ncr53c9x_select(). 1.125: free allocated resources on detach. o Static'ize ncr53c9x_action(), ncr53c9x_init() and ncr53c9x_reset() as these are not required outside of ncr53c9x.c. o In ncr53c9x_attach() don't leak the device mutex in case attaching fails. o Register an asynchronous notification handler so in case cam(4) reports a lost device we can cancel outstanding commands and restore the default parameters for the target in question. o For FAS366 correctly support 16-bit target IDs and let it know that we use 32-bit transfers. o Overhaul the negotiation of transfer settings. This includes distinguishing between current and goal transfer settings of the target so we can renegotiate their goal settings when necessary and correcting the order in which tagged, wide and synchronous transfers are negotiated. o If we are requesting sense, force a renegotiation if we are currently using anything different from asynchronous at 8 bit as the target might have lost our transfer negotiations. o In case of an XPT_RESET_BUS just directly call ncr53c9x_init() instead of issuing a NCRCMD_RSTSCSI, which in turn will issue an interrupt that is treated as an unexpected SCSI bus reset by ncr53c9x_intr() and thus calls ncr53c9x_init(). Remove the now no longer used ncr53c9x_scsi_reset(). o Correct an off-by-one error when setting cpi->max_lun. o In replace printf(9) with device_printf(9) calls where appropriate and in ncr53c9x_action() remove some unnecessarily verbose messages. o In ncr53c9x_sched() use TAILQ_FOREACH() instead of reimplementing it and consolidate two tagging-related target info checks into one. o In ncr53c9x_done() set the CAM status to CAM_SCSI_STATUS_ERROR when appropriate, respect CAM_DIS_AUTOSENSE and teach it to return SCSI status information. o In ncr53c9x_dequeue() ensure the tags are cleared. o Use ulmin() instead of min() where appropriate. o In ncr53c9x_msgout() consistently use the reset label. o When we're interrupted during a data phase and the DMA engine is still active, don't panic but reset the core and the DMA engine as this should be sufficient. Also, the typical problem for triggering this was the lack of renegotiation when requesting sense. o Correctly handle DEVICE RESETs. o Adapt the locking of esp(4) to MPSAFE cam(4). This includes moving the calls of lsi64854_attach() to the bus front-ends so it can pass the esp(4) mutex to bus_dma_tag_create(9). o Change the LSI64854 driver to not create a DMA tag and map for the Ethernet channel as le(4) will handle these on its own as well as sync and unload the DMA maps for the SCSI and parallel port channel after a DMA transfer. o Cam(4)'ify some NetBSD-centric comments. o Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9) and take advantage of rman_get_rid(9) in order to save some softc members. Reviewed by: scottl MFC after: 1 month
* Close a race in sleepq_broadcast() where the sleepq could be reused afterjhb2008-09-081-3/+2
| | | | | | | | | | | | it had been assigned to the last sleeping thread. That thread might have started running on another CPU and have reused that sleep queue. Fix it by just walking the thread queue using TAILQ_FOREACH_SAFE() rather than a while loop. PR: amd64/124200 Discovered by: tegge Tested by: benjsc MFC after: 1 week
* bge_tick(): do not touch PHY if link is up. This should solve problem witholeg2008-09-081-2/+6
| | | | | | extra input errors for some BCM57XX chips. PR: kern/122295
* Note sendmail 8.14.3 upgradegshapiro2008-09-081-1/+1
|
* Streamline #include sections in ds133x and ds1672 drivers. This unbreaks theraj2008-09-082-14/+0
| | | | LINT build.
* Pass 1 of mpsafetty-ifying si(4). It compiles and has basic functionality,peter2008-09-081-181/+167
| | | | | | | but needs a lot more work. In particular, it has no flow control and has a tendency to race when giving commands. It still uses Giant for the tty and driver lock, but this is a keep-it-simple feature for now. Some of the [temporary] proliferation of messages lines are way too long.
* ds133x: Introduce device_identify method; update NOTES.raj2008-09-082-1/+21
| | | | Obtained from: Semihalf
* Bump __FreeBSD_version for per-CPU GDT on amd64.kib2008-09-081-1/+1
| | | | Requested by: nox
* The pcb_gs32p should be per-cpu, not per-thread pointer. This iskib2008-09-087-8/+8
| | | | | | | | location in GDT where the segment descriptor from pcb_gs32sd is copied, and the location is in GDT local to CPU. Noted and reviewed by: peter MFC after: 1 week
* Provide private per-CPU GDTs on amd64. This is required at least for thekib2008-09-082-5/+13
| | | | | | | | linux CB_GS32BIT to work. Noted by: nox Reviewed by: peter MFC after: 1 week
* In linux_set_thread_area(), mark pcb as PCB_GS32BIT. This was missedkib2008-09-081-1/+1
| | | | | | | when r180992 was committed. Reviewed by: peter MFC after: 1 week
* Fix inconsistencies in the comments.kib2008-09-082-3/+3
| | | | MFC after: 1 week
* Fix a typo in a comment in the ACPI Fujitsu driver.ed2008-09-081-1/+1
| | | | | | The word "hotkys" should read "hotkeys". Submitted by: Jille Timmermans <jille quis cx>
* - Update the libgeom manpage with a description of g_device_path andlulf2008-09-081-3/+26
| | | | | | g_providername utility functions. Approved by: kib (mentor)
* Put the bridge mac inheritance behind a sysctl with the default off as thisthompsa2008-09-082-2/+23
| | | | | | still needs all the edge cases fixed. Submitted by: Eygene Ryabinkin
OpenPOWER on IntegriCloud