History log of /src/sys/dev/isa/fd.c |
Revision | | Date | Author | Comments |
1.117 |
| 25-Sep-2022 |
thorpej | malloc(9) -> kmem(9)
|
1.116 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.115 |
| 24-Apr-2021 |
thorpej | branches: 1.115.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.114 |
| 10-Nov-2019 |
chs | branches: 1.114.10; in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
1.113 |
| 03-Feb-2019 |
mrg | - add or adjust /* FALLTHROUGH */ where appropriate - add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
|
1.112 |
| 03-Sep-2018 |
riastradh | Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these may invite multiple evaluation bugs, these do _not_ cause integer truncation.
To avoid `fixing' these cases, I first changed the name in libkern, and then compile-tested every file where min/max occurred in order to confirm that it failed -- and thus confirm that nothing shadowed min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax acorn32/if_ie.c (not included in any kernels) macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of doing things fails safe, and the goal here, after all, is to _avoid_ silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that never silently truncate. But we should avoid doing that for a while, so that existing code has a chance to be detected by the compiler for conversion to uimin/uimax without changing the semantics until we can properly audit it all. (Who knows, maybe in some cases integer truncation is actually intended!)
|
1.111 |
| 20-Jan-2018 |
tsutsui | branches: 1.111.2; 1.111.4; Handle yet another atari specific quirk in the MI ISA fdc(4)/fd(4) driver.
This makes fd(4) drive(s) (which is necessary for installation) properly attached on Milan.
atari uses "fdcisa" and "fdisa" for ISA fdc to co-exist other fd(4) drivers, on-board (atari/dev/fd.c) one and Hades (atari/dev/hdfd.c) one.
|
1.110 |
| 08-Dec-2015 |
christos | branches: 1.110.2; 1.110.8; 1.110.10; Replace DIOCGPART -> DIOCGPARTINFO which returns the data needed instead of pointers.
|
1.109 |
| 26-Apr-2015 |
mlelstv | Use C99-style initializers for struct dkdriver.
|
1.108 |
| 13-Apr-2015 |
riastradh | Convert sys/dev to use <sys/rndsource.h>.
|
1.107 |
| 02-Jan-2015 |
christos | We have three sets of DTYPE_ constants in the kernel: altq Drop Type disklabel Disk Type file Descriptor Type (not to mention constants that contain the string DTYPE). Let's make them two, by changing the disklabel one to be DisK TYPE since the other disklabel constants seem to do that. Not many userland programs use these constants (and the ones that they do are mostly in ifdefs). They will be fixed shortly.
|
1.106 |
| 31-Dec-2014 |
christos | make more drivers use disk_ioctl, and add a dev parameter to it so that we can merge the "easy" disklabel ioctls to it. Ultimately all this will go do dk_ioctl once all the drivers have been converted.
|
1.105 |
| 10-Aug-2014 |
tls | branches: 1.105.4; Merge tls-earlyentropy branch into HEAD.
|
1.104 |
| 25-Jul-2014 |
dholland | Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.103 |
| 25-Jul-2014 |
dholland | Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld, raidframe, maybe cgd) should be implemented for real.
|
1.102 |
| 16-Mar-2014 |
dholland | branches: 1.102.2; Change (mostly mechanically) every cdevsw/bdevsw I can find to use designated initializers.
I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
|
1.101 |
| 29-May-2013 |
christos | branches: 1.101.2; phase 1 of disk geometry cleanup: - centralize the geometry -> plist code so that we don't have n useless copies of it.
|
1.100 |
| 02-Feb-2012 |
tls | branches: 1.100.6; Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code to sys/kern from sys/dev.
2) Remove use of NRND as test for presence of entropy-pool code throughout source tree.
3) Remove use of RND_ENABLED in device drivers as microoptimization to avoid expensive operations on disabled entropy sources; make the rnd_add calls do this directly so all callers benefit.
4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might have lead to slight entropy overestimation for some sources.
5) Add new source types for environmental sensors, power sensors, VM system events, and skew between clocks, with a sample implementation for each.
ok releng to go in before the branch due to the difficulty of later pullup (widespread #ifdef removal and moved files). Tested with release builds on amd64 and evbarm and live testing on amd64.
|
1.99 |
| 13-Nov-2010 |
uebayasi | branches: 1.99.8; 1.99.12; Don't pull in the whole uvm(9) API to access only PAGE_SIZE and some other constants. These are provided by sys/param.h now.
|
1.98 |
| 11-Aug-2010 |
pgoyette | Keep condvar wmesg within 8-char limit
|
1.97 |
| 08-Aug-2010 |
chs | move a debug printf to FD_DEBUG.
|
1.96 |
| 16-Mar-2010 |
he | Allow this driver to build for ofppc as well.
|
1.95 |
| 24-Feb-2010 |
dyoung | branches: 1.95.2; A pointer typedef entails trading too much flexibility to declare const and non-const types, and the kernel uses both const and non-const PMF qualifiers and device suspensors, so change the pmf_qual_t and device_suspensor_t typedefs from "pointers to const" to non-pointer, non-const types.
|
1.94 |
| 08-Jan-2010 |
dyoung | branches: 1.94.2; Expand PMF_FN_* macros.
|
1.93 |
| 05-Jun-2009 |
haad | Add support for DIOCGDISKINFO to disk like device drivers. Change partutil.c::getdiskinfo to use it to get disk geometry info. Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk driver doesn't support it use old DIOCGDINFO. This patch adds support for wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and other tools.
No objections on tech-userlevel@.
|
1.92 |
| 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.91 |
| 13-Jan-2009 |
yamt | branches: 1.91.2; g/c BUFQ_FOO() macros and use bufq_foo() directly.
|
1.90 |
| 29-Dec-2008 |
mlelstv | fdcintr1 requires the mutex to be held.
|
1.89 |
| 24-Dec-2008 |
tsutsui | Set all default geometry parameters (not only secpercyl and secsize) before readdisklabel(9) on DIOCGDINFO so that we can get correct media size via the ioctl. (usually floppy doesn't have a real disklabel)
Tested on i386 with 1.44M floppy.
|
1.88 |
| 16-Dec-2008 |
christos | replace bitmask_snprintf(9) with snprintb(3)
|
1.87 |
| 03-May-2008 |
plunky | branches: 1.87.8; 1.87.10; after the "struct disk" is finished with, it should be destroyed with disk_destroy(9) to stave off LOCKDEBUG panics.
|
1.86 |
| 30-Apr-2008 |
ad | - If x86, trust the nvram and elminate long probe delays. - Update for amd64.
|
1.85 |
| 28-Apr-2008 |
martin | Remove clause 3 and 4 from TNF licenses
|
1.84 |
| 11-Apr-2008 |
cegger | branches: 1.84.2; 1.84.4; make this build with FD_DEBUG
|
1.83 |
| 29-Mar-2008 |
mlelstv | PPC systems predating prep and running the mvmeppc port have compatible hardware.
|
1.82 |
| 16-Mar-2008 |
cube | Split device_t and softc for the ... wait for it ... [air quotes] MI variant of fdc(4)/fd(4). Other cosmetic changes as appropriate.
|
1.81 |
| 22-Feb-2008 |
dyoung | Suspend, resume, detach.
Use mutex(9) and condvar(9) instead of splbio(9)/splx(9) and tsleep(9)/wakeup(9).
Use device_t and accessors. Use aprint_*_dev().
|
1.80 |
| 31-Jan-2008 |
dyoung | branches: 1.80.2; 1.80.6; Let the compiler decide: inline -> static, register -> .
|
1.79 |
| 31-Jan-2008 |
dyoung | Cosmetic: constify, KNF, use device_t and accessors, use aprint_normal_dev() instead of printf("%s: ...", dv->dv_xname).
|
1.78 |
| 02-Jan-2008 |
ad | Merge vmlocking2 to head.
|
1.77 |
| 19-Oct-2007 |
ad | branches: 1.77.2; 1.77.4; 1.77.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.76 |
| 08-Oct-2007 |
ad | branches: 1.76.2; Merge disk init changes from the vmlocking branch. These seperate init / destroy of 'struct disk' from attach / detach.
|
1.75 |
| 29-Jul-2007 |
ad | branches: 1.75.4; 1.75.6; 1.75.8; 1.75.10; It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request.
|
1.74 |
| 09-Jul-2007 |
ad | branches: 1.74.2; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.73 |
| 08-Mar-2007 |
jnemeth | branches: 1.73.2; 1.73.4; add support for devctl properties
|
1.72 |
| 04-Mar-2007 |
christos | Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.71 |
| 15-Feb-2007 |
reinoud | branches: 1.71.2; Rename the B_XXX flag to B_DEVPRIVATE flag since it was never used for debugging and its main use is in device drivers. Its used there to signal that the flagged buffer has a special meaning or should be handled differently.
OK'd by Bill Sudenmund on tech-kern.
|
1.70 |
| 16-Nov-2006 |
christos | __unused removal on arguments; approved by core.
|
1.69 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.68 |
| 30-Aug-2006 |
christos | branches: 1.68.2; 1.68.4; add missing initializer
|
1.67 |
| 14-Apr-2006 |
blymn | Make i/o statistics collection more generic, include tape drives and nfs mounts in the set of devices that statistics will be reported on.
|
1.66 |
| 28-Mar-2006 |
thorpej | Use device_unit().
|
1.65 |
| 25-Mar-2006 |
thorpej | Use device_parent().
|
1.64 |
| 06-Jan-2006 |
yamt | branches: 1.64.2; 1.64.4; 1.64.6; 1.64.8; 1.64.10; initialize necessary members of struct buf. PR/32462 from Reinoud Zandijk.
|
1.63 |
| 04-Jan-2006 |
yamt | - add simple functions to allocate/free a buffer for i/o. - make bufpool static.
|
1.62 |
| 24-Dec-2005 |
perry | branches: 1.62.2; Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
|
1.61 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.60 |
| 15-Oct-2005 |
yamt | - change the way to specify a bufq strategy. (by string rather than by number) - rather than embedding bufq_state in driver softc, have a pointer to the former. - move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c. - rename method to strategy for consistency. - move some definitions which don't need to be exposed to the rest of kernel from sys/bufq.h to sys/bufq_impl.h. (is it better to move it to kern/ or somewhere?) - fix some obvious breakage in dev/qbus/ts.c. (not tested)
|
1.59 |
| 30-Jul-2005 |
christos | Fix compilation with FD_DEBUG.
|
1.58 |
| 29-May-2005 |
christos | branches: 1.58.2; sprinkle const.
|
1.57 |
| 04-Feb-2005 |
perry | de-__P
|
1.56 |
| 01-Feb-2005 |
drochner | Whitespace police. The rest remains crap.
|
1.55 |
| 28-Oct-2004 |
yamt | branches: 1.55.4; 1.55.6; move buffer queue related stuffs from buf.h to their own header, bufq.h.
|
1.54 |
| 18-Sep-2004 |
yamt | change some members of struct buf from long to int. ride on 2.0H.
|
1.53 |
| 14-Sep-2004 |
drochner | include "locators.h" explicitely where it is needed, so that it can be removed in the isavar.h header eventually
|
1.52 |
| 04-Jun-2004 |
thorpej | Wrap a noisy probe message in FD_DEBUG.
|
1.51 |
| 04-Dec-2003 |
keihan | branches: 1.51.2; netbsd.org -> NetBSD.org
This was the last commit of this kind to src/sys, which is now totally "NetBSD.org clean". Thanks for the patiance, and sorry for all the commits.
|
1.50 |
| 27-Sep-2003 |
mycroft | Fix a non-fatal race condition.
|
1.49 |
| 25-Sep-2003 |
mycroft | Modify the fdcattach() interface again, splitting it into two parts, so that DRQ allocation is done earlier.
|
1.48 |
| 25-Sep-2003 |
mycroft | Do fd probing after interrupts are enabled, and use tsleep() for delays. Also try to accept a recalibrate interrupt to terminate the delay -- but that doesn't seem to work reliably, so do a 2s timeout as well.
|
1.47 |
| 23-Sep-2003 |
mycroft | Small changes -- if your controller clears DRV_BUSY when recalibrate completes, you get lucky and the probe is faster. A more complete fix will require making the probe use interrupts, since there is no reliable way to poll.
|
1.46 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.45 |
| 29-Jun-2003 |
fvdl | branches: 1.45.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.44 |
| 28-Jun-2003 |
darrenr | Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
|
1.43 |
| 12-Jun-2003 |
drochner | nuke unnecessary #include <sys/dkstat.h>
|
1.42 |
| 09-May-2003 |
fvdl | A few ISA sound drivers like to share dma channels, and hence deferred isa_dmamap_create() calls to their open/close entrypoints. This worked with some luck, but broke on i386 when _bus_dmamap_create started to allocate bounce buffers upfront, since memory below 16M may well not be available when the sound devices is opened for the Nth time.
To fix this, create a new simple interface, isa_drq_alloc/isa_drq_free, wrappers around already existing bitmask macros. These are expected to be used before an isa_dmamap_create call, and after an isa_dmamap_destroy call, respectively. For the sb and ad1848 drivers, they're deferred until open/close.
All isa_dmamap_create calls can now use BUS_DMA_ALLOCNOW and be done at attach time.
|
1.41 |
| 26-Feb-2003 |
leo | Make this work as fdisa again on the Atari/Milan.
|
1.40 |
| 25-Feb-2003 |
thorpej | Add missing splbio() protecting of bufpool access. Add a clarifying comment to <sys/buf.h> reminding everyone of the need for splbio().
|
1.39 |
| 25-Feb-2003 |
thorpej | Add a new BUF_INIT() macro which initializes b_dep and b_interlock, and use it. This fixes a few places where either b_dep or b_interlock were not properly initialized.
|
1.38 |
| 05-Feb-2003 |
pk | Remove unused variable.
|
1.37 |
| 05-Feb-2003 |
pk | Make the buffer cache code MP-safe.
|
1.36 |
| 25-Jan-2003 |
kleink | Fix further printf format warnings for DEBUG, in the wake of daddr_t having changed.
|
1.35 |
| 25-Jan-2003 |
tron | Use PRId64 instead of hard coding "%lld" to fix build problems under LP64 ports.
|
1.34 |
| 25-Jan-2003 |
tron | Fix printf() format strings problems caused by "daddr_t" change.
|
1.33 |
| 08-Jan-2003 |
jmcneill | Support for 'plug and play' of floppy drives, to be used soon by the ACPI fdc attachment. Reviewed by fvdl.
|
1.32 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() in cfprint routines.
|
1.31 |
| 01-Nov-2002 |
mrg | implement separate read/write disk statistics: - disk_unbusy() gets a new parameter to tell the IO direction. - struct disk_sysctl gets 4 new members for read/write bytes/transfers. when processing hw.diskstats, add the read&write bytes/transfers for the old combined stats to attempt to keep backwards compatibility.
unfortunately, due to multiple bugs, this will cause new kernels and old vmstat/iostat/systat programs to fail. however, the next time this is change it will not fail again.
this is just the kernel portion.
|
1.30 |
| 23-Oct-2002 |
jdolecek | merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
|
1.29 |
| 02-Oct-2002 |
thorpej | Fix sizeof and whitespace bug from the script I'm using to do the CFATTACH_DECL conversion. (Grumble.)
|
1.28 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.27 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.26 |
| 11-Sep-2002 |
thorpej | Fix signed/unsigned comparison warnings from gcc 3.3.
|
1.25 |
| 06-Sep-2002 |
gehenna | Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch> by using this grammer.
- Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables.
- The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
|
1.24 |
| 24-Jul-2002 |
hannken | Convert to new device buffer queue interface.
|
1.23 |
| 26-Jun-2002 |
simonb | Add evbmips to the list of platforms supported by this driver.
|
1.22 |
| 10-Mar-2002 |
jdolecek | branches: 1.22.4; use TAILQ_FIRST()/TAILQ_NEXT()/TAILQ_EMPTY macros rather than dereferencing appropriate structure members
|
1.21 |
| 12-Jan-2002 |
tsutsui | Call malloc(9) with M_ZERO flag instead of memset() after malloc().
|
1.20 |
| 29-Dec-2001 |
thorpej | Add a case for x86_64.
|
1.19 |
| 13-Nov-2001 |
lukem | add RCSID
|
1.18 |
| 08-Jul-2001 |
wiz | branches: 1.18.2; 1.18.4; Correct various misspellings of 'transfer' and inflected forms.
|
1.17 |
| 07-Jun-2001 |
briggs | Compile on sandpoint.
|
1.16 |
| 27-May-2001 |
thorpej | Add support for the Algorithmics ISA floppy controller.
|
1.15 |
| 19-May-2001 |
tsutsui | space/TAB cosmetics
|
1.14 |
| 16-Mar-2001 |
leo | Some minor, atari only, changes to make this work on the Milan: - Adjust for the driver to be configured as fdisa - Add a for the atari correct fd_types array - Work around the fact that the atari has no machine/conf.h
|
1.13 |
| 18-Jan-2001 |
jdolecek | branches: 1.13.2; constify
|
1.12 |
| 08-Jan-2001 |
fvdl | Return error in the case of using ODIOCGDINFO or ODIOCGDEFLABEL when the number of partitions is > OLDMAXPARTITIONS. This is better than silently truncating the label (don't want to silently throw away partitions when using an old disklabel binary on a label with > 8 partitions). From Enami Tsugutomo.
|
1.11 |
| 07-Jan-2001 |
fvdl | Adapt all disk devices in MI directories to handle ODIOC* calls for ports that have bumped MAXPARTITIONS (and thus define __HAVE_OLD_DISKLABEL).
|
1.10 |
| 17-Dec-2000 |
jmc | In fdcattach() reset the controller before moving on as some probes (ala pnpbios) may not have reset during match
|
1.9 |
| 27-Nov-2000 |
matt | Add prep support. change all __foo__ to foo. We don't __foo__ in the kernel
|
1.8 |
| 24-Aug-2000 |
nathanw | branches: 1.8.2; In fdioctl(), allocate fd_formb dynamically when needed, rather than on the stack, and remove the no-longer-necessary PHOLD()/PRELE() calls in fdformat().
(This eliminates 1/3 of the instances of PHOLD()/PRELE() in the kernel code.)
XXX We still have too many mostly-redundant floppy drivers.
|
1.7 |
| 06-Jul-2000 |
thorpej | Use device_lookup().
|
1.6 |
| 28-Jun-2000 |
mrg | remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
|
1.5 |
| 11-May-2000 |
jdolecek | branches: 1.5.4; MI part of MicroChannel Architecture bus support
This work is based on code written by Scott D. Telford, the IBM Token Ring card attachment was written by Gregory McGarry.
XXX this is still very experimental and development version; use at your XXX own risk
|
1.4 |
| 02-May-2000 |
thorpej | Nuke some dead code.
|
1.3 |
| 23-Apr-2000 |
thorpej | Carve off the ISA configuration bits from the floppy driver. Driver is still ISA-specific, but we can attach ISA instances with different configuration mechanisms now.
|
1.2 |
| 07-Apr-2000 |
thorpej | Use separate callouts for motor-on and motor-off. Fixes a condition where the floppy driver would wedge because a motor-on timeout would be cancelled by another I/O operation cancelling a motor-off timeout.
From enami tsugutomo <enami@sm.sony.co.jp>.
|
1.1 |
| 07-Apr-2000 |
thorpej | Combine the Alpha, BeBox, and i386 ISA floppy drivers with a sledgehammer. Not a perfect solution, but this is two less versions of this driver I now have to modify.
|
1.5.4.1 |
| 01-May-2001 |
he | Pull up revisions 1.11-1.12 (requested by fvdl): Increase the number of BSD disklabel partitions on i386 to 16.
|
1.8.2.7 |
| 27-Mar-2001 |
bouyer | Sync with HEAD.
|
1.8.2.6 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.8.2.5 |
| 18-Jan-2001 |
bouyer | Sync with head (for UBC+NFS fixes, mostly).
|
1.8.2.4 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
1.8.2.3 |
| 08-Dec-2000 |
bouyer | Sync with HEAD.
|
1.8.2.2 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.8.2.1 |
| 24-Aug-2000 |
bouyer | file fd.c was added on branch thorpej_scsipi on 2000-11-20 11:41:13 +0000
|
1.13.2.13 |
| 15-Jan-2003 |
thorpej | Sync with HEAD.
|
1.13.2.12 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.13.2.11 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.13.2.10 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.13.2.9 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.13.2.8 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.13.2.7 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.13.2.6 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.13.2.5 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.13.2.4 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.13.2.3 |
| 24-Aug-2001 |
nathanw | Catch up with -current.
|
1.13.2.2 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.13.2.1 |
| 09-Apr-2001 |
nathanw | Catch up with -current.
|
1.18.4.2 |
| 26-Sep-2001 |
fvdl | * add a VCLONED vnode flag that indicates a vnode representing a cloned device. * rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass to VOP_REVOKE * the revoke system call will revoke all aliases, as before, but not the clones * vdevgone is called when detaching a device, so make it use REVOKECLONE to get rid of all clones as well * clean up all uses of VOP_OPEN wrt. locking. * add a few VOPS to spec_vnops that need to do something when it's a clone vnode (access and getattr) * add a copy of the vnode vattr structure of the original 'master' vnode to the specinfo of a cloned vnode. could possibly redirect getattr to the 'master' vnode, but this has issues with revoke * add a vdev_reassignvp function that disassociates a vnode from its original device, and reassociates it with the specified dev_t. to be used by cloning devices only, in case a new minor is allocated. * change all direct references in drivers to v_devcookie and v_rdev to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes when debugging race conditions that still exist wrt. locking and revoking vnodes. * make the locking state of a vnode consistent when passed to d_open and d_close (unlocked). locked would be better, but has some deadlock issues
|
1.18.4.1 |
| 07-Sep-2001 |
thorpej | Commit my "devvp" changes to the thorpej-devvp branch. This replaces the use of dev_t in most places with a struct vnode *.
This will form the basic infrastructure for real cloning device support (besides being architecurally cleaner -- it'll be good to get away from using numbers to represent objects).
|
1.18.2.5 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.18.2.4 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.18.2.3 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.18.2.2 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
1.18.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.22.4.3 |
| 29-Aug-2002 |
gehenna | catch up with -current.
|
1.22.4.2 |
| 15-Jul-2002 |
gehenna | catch up with -current.
|
1.22.4.1 |
| 16-May-2002 |
gehenna | Add the block/character device switches.
|
1.45.2.8 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.45.2.7 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.45.2.6 |
| 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.45.2.5 |
| 24-Sep-2004 |
skrll | Sync with HEAD.
|
1.45.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.45.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.45.2.2 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.45.2.1 |
| 02-Jul-2003 |
darrenr | Apply the aborted ktrace-lwp changes to a specific branch. This is just for others to review, I'm concerned that patch fuziness may have resulted in some errant code being generated but I'll look at that later by comparing the diff from the base to the branch with the file I attempt to apply to it. This will, at the very least, put the changes in a better context for others to review them and attempt to tinker with removing passing of 'struct lwp' through the kernel.
|
1.51.2.1 |
| 04-Jun-2004 |
jmc | Pullup rev 1.52 (requested by thorpej in ticket #437)
Wrap a noisy probe message in FD_DEBUG.
|
1.55.6.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.55.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.58.2.9 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.58.2.8 |
| 27-Feb-2008 |
yamt | sync with head.
|
1.58.2.7 |
| 04-Feb-2008 |
yamt | sync with head.
|
1.58.2.6 |
| 21-Jan-2008 |
yamt | sync with head
|
1.58.2.5 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.58.2.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.58.2.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.58.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.58.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.62.2.1 |
| 15-Jan-2006 |
yamt | sync with head.
|
1.64.10.3 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.64.10.2 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.64.10.1 |
| 28-Mar-2006 |
tron | Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
|
1.64.8.1 |
| 19-Apr-2006 |
elad | sync with head.
|
1.64.6.3 |
| 03-Sep-2006 |
yamt | sync with head.
|
1.64.6.2 |
| 24-May-2006 |
yamt | sync with head.
|
1.64.6.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.64.4.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.64.2.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.68.4.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.68.4.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.68.2.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.71.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.73.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.73.2.6 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.73.2.5 |
| 24-Aug-2007 |
ad | Sync with buffer cache locking changes. See buf.h/vfs_bio.c for details. Some minor portions are incomplete and needs to be verified as a whole.
|
1.73.2.4 |
| 20-Aug-2007 |
ad | - Alter disk attach/detach to fix a panic when closing a vnd device. - Sync with HEAD.
|
1.73.2.3 |
| 19-Aug-2007 |
ad | - Back out the biodone() changes. - Eliminate B_ERROR (from HEAD).
|
1.73.2.2 |
| 01-Jul-2007 |
ad | Adapt to callout API change.
|
1.73.2.1 |
| 13-May-2007 |
ad | - Pass the error number and residual count to biodone(), and let it handle setting error indicators. Prepare to eliminate B_ERROR. - Add a flag argument to brelse() to be set into the buf's flags, instead of doing it directly. Typically used to set B_INVAL. - Add a "struct cpu_info *" argument to kthread_create(), to be used to create bound threads. Change "bool mpsafe" to "int flags". - Allow exit of LWPs in the IDL state when (l != curlwp). - More locking fixes & conversion to the new API.
|
1.74.2.1 |
| 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.75.10.2 |
| 29-Jul-2007 |
ad | It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request.
|
1.75.10.1 |
| 29-Jul-2007 |
ad | file fd.c was added on branch matt-mips64 on 2007-07-29 12:50:22 +0000
|
1.75.8.1 |
| 14-Oct-2007 |
yamt | sync with head.
|
1.75.6.3 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.75.6.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.75.6.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.75.4.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.76.2.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.77.8.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.77.4.1 |
| 04-Dec-2007 |
ad | Pull the vmlocking changes into a new branch.
|
1.77.2.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.80.6.3 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.80.6.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.80.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.80.2.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.84.4.7 |
| 09-Oct-2010 |
yamt | sync with head
|
1.84.4.6 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.84.4.5 |
| 11-Mar-2010 |
yamt | sync with head
|
1.84.4.4 |
| 20-Jun-2009 |
yamt | sync with head
|
1.84.4.3 |
| 16-May-2009 |
yamt | sync with head
|
1.84.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.84.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.84.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.87.10.1 |
| 22-Jan-2009 |
snj | Pull up following revision(s) (requested by tsutsui in ticket #283): sys/dev/isa/fd.c: revision 1.90 fdcintr1 requires the mutex to be held.
|
1.87.8.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.91.2.2 |
| 23-Jul-2009 |
jym | Sync with HEAD.
|
1.91.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.94.2.2 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.94.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.95.2.2 |
| 05-Mar-2011 |
rmind | sync with head
|
1.95.2.1 |
| 30-May-2010 |
rmind | sync with head
|
1.99.12.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.99.8.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.99.8.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.100.6.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.100.6.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.100.6.1 |
| 23-Jun-2013 |
tls | resync from head
|
1.101.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.102.2.2 |
| 10-Aug-2014 |
tls | Rebase.
|
1.102.2.1 |
| 07-Apr-2014 |
tls | Be a little more clear and consistent about harvesting entropy from devices:
1) deprecate RND_FLAG_NO_ESTIMATE
2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE
3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE
4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME| RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME
5) Make entropy harvesting from environmental sensors a little more generic and remove it from individual sensor drivers.
6) Remove individual open-coded delta-estimators for values from a few places in the tree (uvm, environmental drivers).
7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers that had stubbed out code, other minor cleanups.
|
1.105.4.3 |
| 27-Dec-2015 |
skrll | Sync with HEAD (as of 26th Dec)
|
1.105.4.2 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
1.105.4.1 |
| 06-Apr-2015 |
skrll | Sync with HEAD
|
1.110.10.1 |
| 13-Mar-2018 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #624): sys/arch/atari/stand/xxboot/sdboot/milan/Makefile: revision 1.4 sys/arch/atari/dev/nvram.c: revision 1.21 sys/arch/atari/conf/MILAN.in: revision 1.28 sys/arch/atari/atari/pmap_bootstrap.c: revision 1.9 sys/dev/isa/fd.c: revision 1.111 sys/arch/atari/atari/bus.c: revision 1.60 sys/arch/atari/stand/xxboot/ahdi-xxboot/milan/Makefile: revision 1.4 sys/arch/atari/atari/locore.s: revision 1.111 sys/arch/atari/isa/isa_machdep.c: revision 1.41 distrib/sets/lists/base/md.atari: revision 1.55 sys/arch/atari/pci/pci_machdep.c: revision 1.55 sys/arch/atari/pci/pci_machdep.c: revision 1.56 sys/arch/atari/include/vmparam.h: revision 1.32 sys/arch/atari/isa/isa_milan.c: revision 1.15 sys/arch/atari/isa/isa_milan.c: revision 1.16 sys/arch/atari/atari/bus.c: revision 1.59 sys/arch/atari/atari/atari_init.c: revision 1.101 sys/arch/atari/pci/pci_milan.c: revision 1.15 Fix I/O access failures for regions allocated by bus_space_map(9) on Milan.
Passing to PMAP_WIRED against I/O spaces seems problematic, probably after yamt-km branch merge, which was committed between NetBSD 3.0 and NetBSD 4.0. (i.e. ISA and PCI devices on Milan didn't work after 4.0 release)
XXX: According to pmap(9) man page, the "flags" arg for pmap_enter(9) doesn't take VM_PROT_READ and VM_PROT_WRITE, but pmap_enter() implementation in sys/arch/m68k/m68k/pmap_motolora.c historically checks them.
Fix silent hang during config_console() (before consinit()) on Milan. config_console() was a dirty hack used by ancient m68k ports to probe and initialize console devices before "real" configure(9), using subset of configure(9) functions.
In that case, most device specific data (except I/O access method) are not initialized so we must not access device specific device_t and softc structures in config_console() cases.
Fix silent hang after isa_intr_establish() on Milan. The problems (wrong macro replacements) were slipped in rev 1.107: http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/atari/atari/locore.s#rev1.107 Handle yet another atari specific quirk in the MI ISA fdc(4)/fd(4) driver. This makes fd(4) drive(s) (which is necessary for installation) properly attached on Milan. atari uses "fdcisa" and "fdisa" for ISA fdc to co-exist other fd(4) drivers, on-board (atari/dev/fd.c) one and Hades (atari/dev/hdfd.c) one.
Use a proper PSL value to be passed to splx(9) functions. This should have been changed on yamt-splraiseipl branch merge back in 2006, which made MI IPL_xxx values independent from m68k MD PSL values for the %sr register.
Restore piixide(4) for Milan and disable other pciide devices. piixide was removed in rev 1.18 and the log message said "because Intel IDE disk controllers only exist as part of Intel chipsets for x86 systems" but the Milan actually has the Intel 82371FB southbridge on its board. Other pciide devices are unlikely necessary for the default kernel for such a rare machine. Also fix pasto in comment.
Skip NVRAM checksum check and re-initialization on Milan. Milan's firmware seems to use different check method.
Ack EOI for IRQ_SLAVE of the master PIC after ack for IRQ of the slave PIC. I'm not sure if there are possible races in the original code, but this is what i8259_asm_ack2() in sys/arch/x86/include/i8259.h does and it looks this change makes a Milan kernel a bit stable. Replace CRTC register values with ones taken from sys/dev/ic/vga_subr.c. This fixes noise around column 3 and 4 and makes screen output clearer on Milan with S3 Trio64V.
Explicitly setup the secondary IDE interrupt of PIIX on Milan. The secondary IDE interrupt is connected to MBIRQ0 on PIIX, but the Milan's ROM bootloader (at least version 0.99.7) doesn't seem to setup the MBIRQ0 register to route it to IRQ15.
On Milan, also explicitly disable MBIRQ1 on PIIX. Milan's ROM bootloader v1.2 and v1.4 incorrectly set MBIRQ0 connected to the secondary IDE to IRQ14 (not 15) and unused MBIRQ1 to IRQ15, so both IDE channels don't work properly.
Add dumb memory probe routines for Milan to use all available memory. Tested on Milan with 32Mx1, 32Mx4, 128MBx1, and 128MBx3. (bootloader ROM fails to load TOS with 128MBx4) No particular comment on port-atari@: http://mail-index.netbsd.org/port-atari/2018/02/09/msg000580.html
Provide wdboot as a copy of sdboot for Milan. It looks Milan's bootloader ROM emulates IDE disks as SCSI disks so sdboot works for them, but atari's installboot checks a specified device name and requires wdboot for wd(4) devices.
Fix another possible out of bounds.
Replace bus_dmamap_sync(9) op with a newer one taken from m68k/bus_dma.c. This could fix memory corruption issue caused by PREREAD ops with regions whose boundaries are not aligned at cacheline size.
|
1.110.8.1 |
| 27-Apr-2017 |
pgoyette | Restore all work from the former pgoyette-localcount branch (which is now abandoned doe to cvs merge botch).
The branch now builds, and installs via anita. There are still some problems (cgd is non-functional and all atf tests time-out) but they will get resolved soon.
|
1.110.2.2 |
| 25-Jul-2016 |
pgoyette | Redo previous
|
1.110.2.1 |
| 25-Jul-2016 |
pgoyette | Update a few drivers for localcount(9)
|
1.111.4.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.111.4.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.111.2.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.114.10.2 |
| 02-Apr-2021 |
thorpej | config_found_ia() -> config_found() w/ CFARG_IATTR.
|
1.114.10.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.115.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|