History log of /src/sys/arch/sparc/dev/fd.c |
Revision | | Date | Author | Comments |
1.164 |
| 11-Dec-2023 |
andvar | Surround fdc declaration and definition with FD_DEBUG blocks.
FD_DEBUG is defined by default, thus build passes, however would fail otherwise since it is only used in debug block.
|
1.163 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.162 |
| 24-Apr-2021 |
thorpej | branches: 1.162.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.161 |
| 22-Nov-2020 |
thorpej | branches: 1.161.2; malloc(9) -> kmem(9) (easy, straight-forward cases only, for now)
|
1.160 |
| 10-Nov-2019 |
chs | branches: 1.160.8; 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.159 |
| 08-Feb-2019 |
mrg | make *fd*.c's fd_dev_to_type() always a static inline. some have it as a const, and have code to copy the defaults to modify them before using them, but that probably requires a real test to feel confident in changing.
|
1.158 |
| 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.157 |
| 26-Apr-2015 |
mlelstv | branches: 1.157.16; 1.157.18; Use C99-style initializers for struct dkdriver.
|
1.156 |
| 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.155 |
| 19-Aug-2014 |
tsutsui | branches: 1.155.2; Fix panic() on opening fd(4), caused by a wrong pointer passed to memset().
I'm not sure why this 18 year old bug didn't cause problem before (at least my old 5.99.23 kernel worked), but probably it's triggered by new gcc 4.8 which might do more aggressive memory allocation. The problem is found by Nobuyoshi Sato on trying eject(1) against fd(4).
Should be pulled up to netbsd-7.
|
1.154 |
| 25-Jul-2014 |
dholland | branches: 1.154.2; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.153 |
| 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.152 |
| 16-Mar-2014 |
dholland | branches: 1.152.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.151 |
| 10-Oct-2012 |
tsutsui | branches: 1.151.2; Fix device_t/softc split botches that could be fatal. From Chuck Silvers' patch posted current-users and tech-kern: http://mail-index.netbsd.org/current-users/2012/10/09/msg021233.html
Should be pulled up to netbsd-6.
|
1.150 |
| 17-Jul-2011 |
mrg | branches: 1.150.2; 1.150.8; 1.150.12; 1.150.14; convert all the sparc drivers that attach on my ss20 to use device_t, cfdata_t and CFATTACH_DECL_NEW().
fd/fdc could use better testing, but i'm pretty sure i got it right.
|
1.149 |
| 24-Feb-2010 |
dyoung | 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.148 |
| 08-Jan-2010 |
dyoung | branches: 1.148.2; Expand PMF_FN_* macros.
|
1.147 |
| 19-Dec-2009 |
tsutsui | Disable "fast trap" handlers which invoke software interrupts in sparc/amd7930intr.s and sparc/bsd_fdintr.s until they are rewritten to adapt new MI softint(9) API.
No particular comments on PR port-sparc/42192, but this fixes timeout problem on floppy access on my SPARCstation 1+.
XXX: floppy support on sun4m seems to have another problem (data overrun).
|
1.146 |
| 25-May-2009 |
jnemeth | Convert shutdownhook_establish() to pmf_device_register1().
XXX This should be done as part of an overall plan to support power management and device detachment. However, in order to do that, I would first have to invent sbus_intr_disestablish(). This is being done at this time in order to aid in the effort to eliminate shutdownhook_establish().
This was based on the sys/arch/sparc64/fd.c change. Thanks to jdc@ for testing this version.
|
1.145 |
| 18-Mar-2009 |
cegger | bzero -> memset
|
1.144 |
| 13-Jan-2009 |
yamt | branches: 1.144.2; g/c BUFQ_FOO() macros and use bufq_foo() directly.
|
1.143 |
| 17-Dec-2008 |
cegger | kill MALLOC and FREE macros.
|
1.142 |
| 16-Dec-2008 |
christos | replace bitmask_snprintf(9) with snprintb(3)
|
1.141 |
| 11-Jun-2008 |
drochner | branches: 1.141.4; 1.141.6; 1.141.12; mechanical changes to use device_private() or device_lookup_private() to get softcs, makes the code compile under the stricter type checking introduced earlier today
|
1.140 |
| 28-Apr-2008 |
martin | branches: 1.140.2; 1.140.4; Remove clause 3 and 4 from TNF licenses
|
1.139 |
| 02-Jan-2008 |
ad | branches: 1.139.6; 1.139.8; 1.139.10; Merge vmlocking2 to head.
|
1.138 |
| 27-Nov-2007 |
ad | branches: 1.138.2; 1.138.6; Use the softint API.
|
1.137 |
| 17-Oct-2007 |
garbled | branches: 1.137.2; Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here.
TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted.
NOTES: pmppc was removed as an arch, and moved to a evbppc target.
|
1.136 |
| 08-Oct-2007 |
ad | Merge disk init changes from the vmlocking branch. These seperate init / destroy of 'struct disk' from attach / detach.
|
1.135 |
| 29-Jul-2007 |
ad | branches: 1.135.4; 1.135.6; 1.135.8; 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.134 |
| 09-Jul-2007 |
ad | branches: 1.134.2; 1.134.4; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.133 |
| 11-May-2007 |
jnemeth | Fixed formatting. Problem was that we were trying to get the result of a data transfer operation immediately after the data transfer was finished, instead of waiting for the chip to interrupt us and tell us that it was finished and had the result for us. This worked okay for read and write since the operation would be finished very shortly after the data transfer completed. However, with formatting, the chip still had most of the rest of the track to do, so we ended up timing out before the operation was finished. This fix is from sparc64/dev/fdc.c and was tested on sparc by tnn@.
|
1.132 |
| 11-May-2007 |
jnemeth | revert last; committed wrong file
|
1.131 |
| 11-May-2007 |
jnemeth | Fixed formatting. Problem was that we were trying to get the result of a data transfer operation immediately after the data transfer was finished, instead of waiting for the chip to interrupt us and tell us that it was finished and had the result for us. This worked okay for read and write since the operation would be finished very shortly after the data transfer completed. However, with formatting, the chip still had most of the rest of the track to do, so we ended up timing out before the operation was finished. This fix is from sparc64/dev/fdc.c and was tested on sparc by tnn@.
|
1.130 |
| 09-Mar-2007 |
he | branches: 1.130.2; 1.130.4; 1.130.10; Cast to char* before doing pointer arithmetic.
|
1.129 |
| 04-Mar-2007 |
mrg | fix fall out from caddr_t changes.
|
1.128 |
| 04-Mar-2007 |
christos | Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.127 |
| 15-Feb-2007 |
reinoud | branches: 1.127.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.126 |
| 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.125 |
| 23-Feb-2006 |
thorpej | branches: 1.125.2; 1.125.4; 1.125.6; Use device_parent().
|
1.124 |
| 06-Jan-2006 |
yamt | branches: 1.124.2; 1.124.4; initialize necessary members of struct buf. PR/32462 from Reinoud Zandijk.
|
1.123 |
| 04-Jan-2006 |
yamt | add a missing putiobuf in the previous. pointed by Thomas Klausner.
|
1.122 |
| 04-Jan-2006 |
yamt | - add simple functions to allocate/free a buffer for i/o. - make bufpool static.
|
1.121 |
| 11-Dec-2005 |
christos | branches: 1.121.2; merge ktrace-lwp.
|
1.120 |
| 16-Nov-2005 |
uwe | ANSIify function declarations/defintions. Use uint<N>_t. Propagate "static" to function definitions. Drop trailing whitespace. Same binary code is produced for GENERIC.MP + KGDB + DDB.
|
1.119 |
| 01-Nov-2005 |
bjh21 | branches: 1.119.2; Fix second "no drives attached" message (as seen on sun4c) so as not to include the device name, since this message is printed on the same line as the attach message anyway.
|
1.118 |
| 15-Oct-2005 |
yamt | branches: 1.118.2; - 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.117 |
| 04-Jun-2005 |
tsutsui | branches: 1.117.2; - Add const. - Remove parameter names from prototype declarations.
|
1.116 |
| 28-Oct-2004 |
yamt | move buffer queue related stuffs from buf.h to their own header, bufq.h.
|
1.115 |
| 19-Sep-2004 |
he | Fix build problem -- track the change to <sys/buf.h>.
|
1.114 |
| 24-Mar-2004 |
pk | Remove my name from the old UCB copyright notice, thereby reducing its reference count to 1.
|
1.113 |
| 17-Mar-2004 |
pk | Rename PROM_getprop*() => prom_getprop*().
|
1.112 |
| 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.111 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.110 |
| 11-Jul-2003 |
pk | Deal with disk change notification.
|
1.109 |
| 29-Jun-2003 |
fvdl | branches: 1.109.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.108 |
| 29-Jun-2003 |
darrenr | More changes for providing lwpid for ktrace (sparc GENERIC built)
|
1.107 |
| 18-Jun-2003 |
drochner | don't #include <sys/dkstat.h> where it is (appearently) unused
|
1.106 |
| 03-May-2003 |
wiz | DMA, not dma nor Dma.
|
1.105 |
| 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.104 |
| 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.103 |
| 05-Feb-2003 |
pk | Make the buffer cache code MP-safe.
|
1.102 |
| 30-Jan-2003 |
hannken | Fix printf() problem caused by "daddr_t" change.
|
1.101 |
| 24-Jan-2003 |
fvdl | Bump daddr_t to 64 bits. Replace it with int32_t in all places where it was used on-disk, so that on-disk formats remain the same. Remove ufs_daddr_t and ufs_lbn_t for the time being.
|
1.100 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() for cfprint routines.
|
1.99 |
| 10-Dec-2002 |
pk | Remove the `flags' argument from bus_intr_establish().
|
1.98 |
| 10-Dec-2002 |
pk | The `fast trap' handlers are now pssed as an optional argument to bus_intr_establish(). Allow fall-back on a regular interrupt handler if the interrupt level must be shared with another device.
|
1.97 |
| 09-Dec-2002 |
pk | Finish the switch to the softintr(9) framework.
To make this work, we now have to use separate handler lists for hardware and software interrupts as the soft interrupt handlers do not return an `interrupt handled' status.
Thanks to Matt Fredette for providing an initial set of patches on port-sparc.
|
1.96 |
| 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.95 |
| 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.94 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
1.93 |
| 01-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.92 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.91 |
| 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.90 |
| 06-Aug-2002 |
hannken | Convert to new device buffer queue interface.
Approved by: Paul Kranenburg <pk@netbsd.org>
|
1.89 |
| 11-Mar-2002 |
pk | branches: 1.89.4; * `bus_type_t' is gone. * Use BUS_ADDR() where appropriate to encode I/O space and physical address offset into a `bus_addr_t' value. * Drop obio_bus_map() since it's now completely equivalent to bus_space_map() * Use bus_space_map2() to map device space at a fixed virtual address. * Remove the virtual address argument from sbus_sbus_addr()
|
1.88 |
| 26-Sep-2001 |
eeh | branches: 1.88.4; getprop* -> PROM_getprop*
|
1.87 |
| 08-Jul-2001 |
wiz | branches: 1.87.2; 1.87.4; Correct various misspellings of 'transfer' and inflected forms.
|
1.86 |
| 19-Apr-2001 |
pk | Fix fdc_c_hwintr() and use it as a fall back if the `fast trap' handler cannot be registered.
|
1.85 |
| 24-Aug-2000 |
nathanw | branches: 1.85.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.84 |
| 09-Jul-2000 |
pk | Add a `device class' interrupt level argument (from machine/intr.h) to bus_interrupt_establish().
It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt level to devices in PCI slots.
|
1.83 |
| 29-Jun-2000 |
mrg | remove include of <vm/vm.h> and <machine/pmap.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
|
1.82 |
| 04-Jun-2000 |
cgd | branches: 1.82.2; Implement the more flexiable `evcnt' interface as discussed (briefly) on tech-kern and now documented in evcnt(9).
|
1.81 |
| 16-May-2000 |
thorpej | branches: 1.81.2; Nuke dk_establish() from orbit except from those ports which still use it to determine the boot device: mvme68k, pc532, macppc, ofppc. Those platforms should be changed to use device_register(). In the mean time, those ports defined __BROKEN_DK_ESTABLISH.
|
1.80 |
| 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.79 |
| 24-Mar-2000 |
hannken | Fix a typo from last commit.
|
1.78 |
| 23-Mar-2000 |
thorpej | New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
1.77 |
| 07-Feb-2000 |
thorpej | Fix a bug in disksort_*() which caused non-optimal ordering when multiple active partitions were on a single spindle. Add a b_rawblkno member to struct buf which contains the non-partition-relative block number to sort by.
|
1.76 |
| 07-Feb-2000 |
pk | Don't use PROM the virtual address (if any) for the device registers; they are not reliably mapped. Also, unmap registers if the device cannot be configured properly.
|
1.75 |
| 28-Jan-2000 |
pk | fdcstatus() formatting.
|
1.74 |
| 24-Jan-2000 |
pk | Report write-protected disks.
|
1.73 |
| 23-Jan-2000 |
pk | * b_cylin -> b_cylinder; deals with PR9283. * a few optimizations & misc. style updates.
|
1.72 |
| 21-Jan-2000 |
thorpej | Update for sys/buf.h/disksort_*() changes.
|
1.71 |
| 21-Jan-2000 |
pk | Medium sized code overhaul: * Improve communication between the `hard' and `soft' interrupt handlers to better distinguish various interrupt sources. * Eliminate several race conditions where we would set a time out handler only after starting the command on the hardware. * Handle most timeouts by resetting the controller; there isn't much chance of recovery in any other way. Currently, the exception is a timeout on I/O, in which case we first try to pulse the controller's TC line in order to abort the pseudo-dma sequence. Apparently, "normal" conditions can induce such a timeout when there's no disk in the drive. * Reduce the formatting gap parameter to 0x54. * On the obio bus, interpret the `status' attribute. * Minimize console diagnostic output if the errors we get appear to be caused by the absence of a disk.
|
1.70 |
| 17-Jan-2000 |
pk | Use bus_space(9) functions to access the controller registers. Add probes to the attach routines before poking the chip to see where the registers are located.
|
1.69 |
| 11-Jan-2000 |
pk | Remove old-style boot device recognition.
|
1.68 |
| 21-Nov-1999 |
pk | Check presence of Sbus interrupt properties before using them.
|
1.67 |
| 24-Mar-1999 |
mrg | branches: 1.67.2; 1.67.8; 1.67.14; completely remove Mach VM support. all that is left is the all the header files as UVM still uses (most of) these.
|
1.66 |
| 08-Feb-1999 |
bouyer | Change DIOCEJECT to do what's needed to eject a device before the eject command (unlock for sd and cd) if no other partitions are open, return EBUSY otherwise. DIOCEJECT will have the old semantic if its argument is not 0. The old ioctl has been renamed to ODIOCEJECT for binary compatibility.
|
1.65 |
| 07-Feb-1999 |
jonathan | defopt MEMORY_DISK_{HOOKS,SERVER,IS_ROOT}.
|
1.64 |
| 15-Aug-1998 |
mycroft | Make copyright notices with my name consistent.
|
1.63 |
| 29-Jul-1998 |
pk | Deal with sbus attach args changes.
|
1.62 |
| 04-Jul-1998 |
jonathan | defopt DDB.
|
1.61 |
| 05-Jun-1998 |
mrg | remove old (now broken) memory disks hooks code.
|
1.60 |
| 30-Mar-1998 |
pk | Replace direct `sparc_bus_map()' calls with bus space map method.
|
1.59 |
| 25-Mar-1998 |
pk | Check for a valid PROM virtual address.
|
1.58 |
| 21-Mar-1998 |
pk | Account for changed bus attachment scheme.
|
1.57 |
| 10-Feb-1998 |
mrg | - add defopt's for UVM, UVMHIST and PMAP_NEW. - remove unnecessary UVMHIST_DECL's.
|
1.56 |
| 05-Feb-1998 |
mrg | initial import of the new virtual memory system, UVM, into -current.
UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some minor portions derived from the old Mach code. i provided some help getting swap and paging working, and other bug fixes/ideas. chuck silvers <chuq@chuq.com> also provided some other fixes.
this is the sparc portion.
this will be KNF'd shortly. :-)
|
1.55 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.54 |
| 19-Oct-1997 |
pk | Nuke 5.25 inch formats.
|
1.53 |
| 19-Oct-1997 |
pk | Add an odd-ball japanese floppy format (PR#2903). A good time to get rid of the hard-coded floppy sector size.
|
1.52 |
| 29-Jul-1997 |
fair | %x -> 0x%x
|
1.51 |
| 24-May-1997 |
pk | Remove all `bustype' arguments from map[io]dev() and REG2PHYS().
|
1.50 |
| 02-May-1997 |
pk | * finish off support for the 82077 chip as found on sun4m machines. * add non-dma mode bit to `specify command', so formatting disks starts working (thanks to Jeremy Cooper for finding out about this).
|
1.49 |
| 07-Apr-1997 |
pk | sun4c and sun4m `aux' register bits differ slightly.
|
1.48 |
| 31-Mar-1997 |
pk | Remove bogon from otherwise unused fdchwintr() function.
|
1.47 |
| 31-Jan-1997 |
thorpej | Use new machine-independent mountroothook code.
|
1.46 |
| 01-Jan-1997 |
pk | branches: 1.46.2; RAMDISK_HOOKS => MEMORY_DISK_HOOKS
|
1.45 |
| 28-Dec-1996 |
pk | rename: ramdisk => md
|
1.44 |
| 10-Dec-1996 |
pk | Comply with recent autoconfiguration changes. Diffs graciously supplied by Chris Demetriou.
|
1.43 |
| 10-Dec-1996 |
pk | Finish import of floppy formatting code; not really usable yet, lots of data overruns.
|
1.42 |
| 08-Dec-1996 |
pk | Import formatting code from the i386 version. Revise communication between hw & sw interrupt handler.
|
1.41 |
| 27-Nov-1996 |
pk | Stabilize timeout values in fdcresult() and out_fdc() by adding delay()s. Noted by Jason Thorpe over in the i386 driver.
|
1.40 |
| 13-Nov-1996 |
thorpej | Use bitmask_snprintf().
|
1.39 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.38 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.37 |
| 27-Aug-1996 |
cgd | change cfprint_t type definition to take a const char *, rather than a char *, because that's what was really intended, and because if the print function modifies the string, various things could become unhappy (so the string should _not_ be modified).
|
1.36 |
| 20-Jun-1996 |
pk | When booting from a floppy drive and RAMDSK_HOOKS is defined, arrange for a callback from memory disk driver to load the actual root image.
|
1.35 |
| 16-Jun-1996 |
pk | bootpath detection: some (newer?) v2 prom versions use actual device address, e.g. `/fd@1,72000000'.
|
1.34 |
| 27-May-1996 |
pk | Fix case where sequence state wasn't updated properly, resulting in `disk_unbusy' panic.
|
1.33 |
| 29-Apr-1996 |
pk | branches: 1.33.4; Chip needs much more time to think things over (up to 2 seconds to complete a `recalibrate' command if no flop present).
|
1.32 |
| 22-Apr-1996 |
christos | Remove dependency on <sys/cpu.h>
|
1.31 |
| 10-Apr-1996 |
pk | `bootdv' is gone. Instead, set the device pointer in the `struct bootpath' that is passed in the attach arguments.
|
1.30 |
| 01-Apr-1996 |
christos | - remove dependency to dev_conf.h - remove unneeded casts for %b
|
1.29 |
| 31-Mar-1996 |
pk | Various cleanup; mostly trailing spaces/tabs.
|
1.28 |
| 26-Mar-1996 |
pk | Bitfields are unsigned.
|
1.27 |
| 26-Mar-1996 |
pk | Back to normal printf()s, now that gcc understands `%b'.
|
1.26 |
| 17-Mar-1996 |
thorpej | New device attachment scheme:
- split softc size and match/attach out from cfdriver into a new struct cfattach.
- new "attach" directive for files.*. May specify the name of the cfattach structure, so that devices may be easily attached to parents with different autoconfiguration semantics.
|
1.25 |
| 16-Mar-1996 |
christos | fix format in printf()
|
1.24 |
| 14-Mar-1996 |
christos | Bring prototypes into scope and fix compiler warnings.
|
1.23 |
| 25-Feb-1996 |
pk | Use CPU-type macros.
|
1.22 |
| 10-Feb-1996 |
thorpej | In fdcretry(), if we're not using implied seeks, set the state to DOSEEK rather than SEEKCOMPLETE before retrying the operation. If implied seeks are being used, the state is set to DOIO (no change). This is why I couldn't reproduce the disk_unbusy() panic on my SS2; it uses implied seeks. Patch from John F. Woods <jfw@jfwhome.funhouse.com>
|
1.21 |
| 30-Jan-1996 |
thorpej | Implement DIOCLOCK. It's a no-op in this driver.
|
1.20 |
| 16-Jan-1996 |
thorpej | Use a shutdownhook to make sure the drive motor is turned off at halt/reboot time, as suggested by Perry Metzger.
|
1.19 |
| 15-Jan-1996 |
thorpej | Three distinct changes: - Better disklabel handling. While a disklabel isn't used in the driver, some versions of the OpenPROM insist on one being present in order to boot from floppy. These changes provide a default label (in a way similar to how the SCSI disk driver provides a default) so that a user can more easily place the label on the disk.
- Fix semi-bug in bootpath handling. It appears as if the bootpath can appear in a couple of formats: "/fd@0,0", which is what bootpath_fake() creates on v0 proms and may be passed by some v2 proms, and "/fd0" which is what the v2 prom on my SS2 passes. We now handle both formats.
- Use a mountroot hook to eject the floppy and wait for the user to insert a filesystem floppy if we're the boot/root device.
|
1.18 |
| 12-Jan-1996 |
thorpej | Balance calls to disk_busy() and disk_unbusy() properly to avoid dk_busy < 0 panics. Count seeks.
|
1.17 |
| 11-Jan-1996 |
pk | Return `no error' after ejecting; per Jason.
|
1.16 |
| 07-Jan-1996 |
thorpej | New generic disk framework. Highlights:
- New metrics handling. Metrics are now kept in the new `struct disk'. Busy time is now stored as a timeval, and transfer count in bytes.
- Storage for disklabels is now dynamically allocated, so that the size of the disk structure is not machine-dependent.
- Several new functions for attaching and detaching disks, and handling metrics calculation.
Old-style instrumentation is still supported in drivers that did it before. However, old-style instrumentation is being deprecated, and will go away once the userland utilities are updated for the new framework.
For usage and architectural details, see the forthcoming disk(9) manual page.
|
1.15 |
| 11-Dec-1995 |
pk | Adapt to changed mapiodev() interface.
|
1.14 |
| 11-Nov-1995 |
pk | dk_device => device in controller structure (noted by Jason Thorpe).
|
1.13 |
| 09-Oct-1995 |
pk | Point `bootdv' at the disk device instead of the controller (from Jason Thorpe).
|
1.12 |
| 03-Oct-1995 |
pk | Bring reset logic into interrupt state machine.
|
1.11 |
| 02-Oct-1995 |
pk | Fix some bogus calls to {read/write}disklabel().
|
1.10 |
| 18-Aug-1995 |
pk | Set `bootdv' if booted from the floppy drive.
|
1.9 |
| 05-Jul-1995 |
pk | Add xxread/xxwrite.
|
1.8 |
| 20-May-1995 |
pk | Use a different method to discriminate a 82077 from a 82072 (from Chris Torek); using the NE7CMD_VERSION command is too unreliable.
|
1.7 |
| 16-May-1995 |
pk | Really test # of status bytes.
|
1.6 |
| 25-Apr-1995 |
pk | Do not report each pseudo-DMA overrun as a (soft) error. Add a small heuristic to converge on an acceptable threshold value.
|
1.5 |
| 13-Apr-1995 |
pk | Do a probe in fdmatch() to guard against dumb PROMs.
|
1.4 |
| 10-Apr-1995 |
mycroft | Fdclose --> fdclose
|
1.3 |
| 07-Apr-1995 |
pk | Add evcnt_attach().
|
1.2 |
| 22-Feb-1995 |
pk | Reorganize to use fast interrupt handler.
|
1.1 |
| 17-Feb-1995 |
pk | Pilot sun4c floppy driver based on i386 version; - same limitations as isa/fd.c: just read/write - in need of a fast interrupt handler
|
1.33.4.1 |
| 12-Jun-1996 |
pk | Pull down from trunk: >rev 1.34: Fix case where sequence state wasn't updated properly ...
|
1.46.2.1 |
| 14-Jan-1997 |
thorpej | Snapshot of work-in-progress, committed to private branch.
These changes implement machine-independent root device and file system selection. Notable features:
- All ports behave in a consistent manner regarding root device selection. - No more "options GENERIC"; all kernels have the ability to boot with RB_ASKNAME to select root device and file system type. - Root file system type can be wildcarded; a machine-independent function will try all possible file systems for the selected root device until one succeeds. - If the root file system fails to mount, the operator will be given the chance to select a new root device and file system type, rather than having the machine simply panic. - nfs_mountroot() no longer panics if any part of the NFS mount process fails; it now returns an error, giving the operator a chance to recover. - New, more consistent, config(8) grammar. The constructs:
config netbsd swap generic config netbsd root on nfs
have been replaced with:
config netbsd root on ? type ? config netbsd root on ? type nfs
Additionally, the operator may select or wildcard root file system type in the kernel configuration file:
config netbsd root on cd0a type cd9660
config(8) now requires that a "root" specification be made. "root" may be wired down or wildcarded. "swap" and "dump" specifications are optional, and follow previous semantics.
- config(8) has a new "file-system" keyword, used to configure file systems into the kernel. Eventually, this will be used to generate the default vfssw[].
- "options NFSCLIENT" is obsolete, and is replaced by "file-system NFS". "options NFSSERVER" still exists, since NFS server support is independent of the NFS file system client.
- sys/arch/<foo>/<foo>/swapgeneric.c is no longer used, and will be removed; all information is now generated by config(8).
As of this commit, all ports except arm32 have been updated to use the new setroot(). Only SPARC, i386, and Alpha ports have been tested at this time. Port masters should test these changes on their ports, and report any problems back to me.
More changes are on their way, including RB_ASKNAME support in nfs_mountroot() (to prompt for server address and path) and, potentially, the ability to select rarp/bootparam or bootp in nfs_mountroot().
|
1.67.14.2 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.67.14.1 |
| 21-Dec-1999 |
wrstuden | Initial commit of recent changes to make DEV_BSIZE go away.
Runs on i386, needs work on other arch's. Main kernel routines should be fine, but a number of the stand programs need help.
cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512 byte block devices. vnd, raidframe, and lfs need work.
Non 2**n block support is automatic for LKM's and conditional for kernels on "options NON_PO2_BLOCKS".
|
1.67.8.2 |
| 23-Apr-2001 |
bouyer | Sync with HEAD.
|
1.67.8.1 |
| 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.67.2.1 |
| 07-Feb-2000 |
he | Apply patch (requested by pk): Fix several problems: o Floppy driver dislikes being accessed with no floppy inserted (PR#5740) o Floppy drive being detected even though there is none (PR#5760) o Panic when fdformat is used (PR#9251)
|
1.81.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.82.2.1 |
| 19-Jul-2000 |
mrg | pull up sparc/sparc64 bus_intr_establish() changes, necessary for sparc64 (originally done by pk, approved by thorpej):
>Add a `device class' interrupt level argument (from machine/intr.h) >to bus_interrupt_establish(). > >It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt >level to devices in PCI slots.
|
1.85.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.87.4.2 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.87.4.1 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.87.2.4 |
| 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.87.2.3 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.87.2.2 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.87.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.88.4.8 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
XXX ALT_SWITCH_CODE is not yet LWP'ified.
|
1.88.4.7 |
| 11-Dec-2002 |
thorpej | Sync with HEAD.
|
1.88.4.6 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.88.4.5 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.88.4.4 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.88.4.3 |
| 13-Aug-2002 |
nathanw | Catch up to -current.
|
1.88.4.2 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.88.4.1 |
| 26-Sep-2001 |
nathanw | file fd.c was added on branch nathanw_sa on 2002-04-01 07:42:41 +0000
|
1.89.4.2 |
| 31-Aug-2002 |
gehenna | catch up with -current.
|
1.89.4.1 |
| 17-May-2002 |
gehenna | Add device switch.
|
1.109.2.8 |
| 11-Dec-2005 |
christos | Sync with head.
|
1.109.2.7 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.109.2.6 |
| 04-Feb-2005 |
skrll | Adapt to branch.
|
1.109.2.5 |
| 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.109.2.4 |
| 24-Sep-2004 |
skrll | Sync with HEAD.
|
1.109.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.109.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.109.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.117.2.6 |
| 21-Jan-2008 |
yamt | sync with head
|
1.117.2.5 |
| 07-Dec-2007 |
yamt | sync with head
|
1.117.2.4 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.117.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.117.2.2 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.117.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.118.2.1 |
| 02-Nov-2005 |
yamt | sync with head.
|
1.119.2.1 |
| 22-Nov-2005 |
yamt | sync with head.
|
1.121.2.2 |
| 01-Mar-2006 |
yamt | sync with head.
|
1.121.2.1 |
| 15-Jan-2006 |
yamt | sync with head.
|
1.124.4.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.124.2.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.125.6.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.125.4.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.125.2.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.127.2.2 |
| 17-May-2007 |
yamt | sync with head.
|
1.127.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.130.10.3 |
| 16-Oct-2007 |
garbled | Sync with HEAD
|
1.130.10.2 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.130.10.1 |
| 22-May-2007 |
matt | Update to HEAD.
|
1.130.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.130.2.5 |
| 03-Dec-2007 |
ad | Sync with HEAD.
|
1.130.2.4 |
| 20-Aug-2007 |
ad | - Alter disk attach/detach to fix a panic when closing a vnd device. - Sync with HEAD.
|
1.130.2.3 |
| 19-Aug-2007 |
ad | - Back out the biodone() changes. - Eliminate B_ERROR (from HEAD).
|
1.130.2.2 |
| 01-Jul-2007 |
ad | Adapt to callout API change.
|
1.130.2.1 |
| 27-May-2007 |
ad | Sync with head.
|
1.134.4.1 |
| 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.134.2.1 |
| 07-Aug-2007 |
matt | Sync with HEAD.
|
1.135.8.1 |
| 14-Oct-2007 |
yamt | sync with head.
|
1.135.6.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.135.6.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.135.4.2 |
| 03-Dec-2007 |
joerg | Sync with HEAD.
|
1.135.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.137.2.2 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.137.2.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.138.6.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.138.2.1 |
| 31-Dec-2007 |
ad | Catch up with buffer cache changes.
|
1.139.10.4 |
| 11-Mar-2010 |
yamt | sync with head
|
1.139.10.3 |
| 20-Jun-2009 |
yamt | sync with head
|
1.139.10.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.139.10.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.139.8.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.139.8.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.139.6.3 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.139.6.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.139.6.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.140.4.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.140.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.141.12.1 |
| 21-Apr-2010 |
matt | sync to netbsd-5
|
1.141.6.1 |
| 23-Jan-2010 |
bouyer | Pull up following revision(s) (requested by tsutsui in ticket #1251): sys/arch/sparc/sparc/auxreg.h: revision 1.13 distrib/sparc/ramdisk/dot.profile: revision 1.20 sys/arch/sparc/dev/audioamd.c: revision 1.25 sys/arch/sparc/dev/fd.c: revision 1.147 sys/arch/sparc/stand/common/promdev.c: revision 1.23 distrib/sparc/miniroot/Makefile.inc: revision 1.16 Build miniroot binaries for sparc with -Os to shrink instfs.tgz for the second boot floppy which use miniroot objects. This is workaround for PR install/42146, and ok'ed by mrg@. Don't try to read disklabel to check FS_RAID on floppy boot since reopening floppy could cause Data Access Exception later. Fixes PR port-sparc/42186, ok'ed by mrg@. Disable "fast trap" handlers which invoke software interrupts in sparc/amd7930intr.s and sparc/bsd_fdintr.s until they are rewritten to adapt new MI softint(9) API. No particular comments on PR port-sparc/42192, but this fixes timeout problem on floppy access on my SPARCstation 1+. XXX: floppy support on sun4m seems to have another problem (data overrun). Use /dev/fd0a rather than /dev/rfd0a to read instfs.tgz image from floppy. It looks newer (appearred after 1.6) gzip tries to read less than DEV_BSIZE (to check header?) so we can't use raw device directly. (note sparc bootfs ramdisk doesn't have dd(1)) Workaround for PR port-sparc/42193, and would also fix PR install/28734. Explicitly clear AUXIO4M_FTC bit in FTC_FLIP macro used on pseudo-dma for floppy, as well as AUXIO4C_FTC bit for sun4c. A comment in the macro says AUXIO4M_FTC bit is auto-clear, but my two SS20s (including compatible) with 150MHz hyperSPARCs get data_overrun without it, and no bad side effect on SS5 (works with and without this change). Closes PR port-sparc/42516, which is the last one of a bunch of floppy issue on NetBSD/sparc since NetBSD 2.0 days. See http://mail-index.NetBSD.org/port-sparc/2009/12/20/msg000484.html for details.
|
1.141.4.2 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.141.4.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.144.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.148.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.150.14.1 |
| 03-Nov-2014 |
msaitoh | Pull up following revision(s) (requested by tsutsui in ticket #1139): sys/arch/sun3/dev/fd.c: revision 1.78 sys/arch/sparc/dev/fd.c: revision 1.155 sys/arch/sparc64/dev/fdc.c: revision 1.42 Fix panic() on opening fd(4), caused by a wrong pointer passed to memset(). I'm not sure why this 18 year old bug didn't cause problem before (at least my old 5.99.23 kernel worked), but probably it's triggered by new gcc 4.8 which might do more aggressive memory allocation. The problem is found by Nobuyoshi Sato on trying eject(1) against fd(4). Should be pulled up to netbsd-7. Sync with sparc/dev/fd.c:1.155. Fix panic() on opening fd(4), caused by a wrong pointer passed to memset(). I'm not sure why this 18 year old bug didn't cause problem before (at least my old 5.99.23 kernel worked), but probably it's triggered by new gcc 4.8 which might do more aggressive memory allocation. The problem is found by Nobuyoshi Sato on trying eject(1) against fd(4). Should be pulled up to netbsd-7. Sync with sparc/dev/fd.c rev 1.155. Fix panic() on opening fd(4), caused by a wrong pointer passed to memset(). Note sun3 still uses gcc 4.5.4 but also panicked by this old bug, so probably this problem was triggered by not gcc 4.8 but struct disk changes (struct disk_geom was added in <sys/disk.h> rev 1.58), which increased sizeof(struct fd_softc) from 248 bytes to 296 bytes. (i.e. now struct fd_softc could be allocated in a different pool block, probably near the wrong pointer of the struct disklabel) Anyway, this fix should be pullued up to netbsd-7. (probably I'm the only user of floppy on sun3 though)
|
1.150.12.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.150.12.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.150.12.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.150.8.2 |
| 03-Nov-2014 |
msaitoh | Pull up following revision(s) (requested by tsutsui in ticket #1139): sys/arch/sun3/dev/fd.c: revision 1.78 sys/arch/sparc/dev/fd.c: revision 1.155 sys/arch/sparc64/dev/fdc.c: revision 1.42 Fix panic() on opening fd(4), caused by a wrong pointer passed to memset(). I'm not sure why this 18 year old bug didn't cause problem before (at least my old 5.99.23 kernel worked), but probably it's triggered by new gcc 4.8 which might do more aggressive memory allocation. The problem is found by Nobuyoshi Sato on trying eject(1) against fd(4). Should be pulled up to netbsd-7. Sync with sparc/dev/fd.c:1.155. Fix panic() on opening fd(4), caused by a wrong pointer passed to memset(). I'm not sure why this 18 year old bug didn't cause problem before (at least my old 5.99.23 kernel worked), but probably it's triggered by new gcc 4.8 which might do more aggressive memory allocation. The problem is found by Nobuyoshi Sato on trying eject(1) against fd(4). Should be pulled up to netbsd-7. Sync with sparc/dev/fd.c rev 1.155. Fix panic() on opening fd(4), caused by a wrong pointer passed to memset(). Note sun3 still uses gcc 4.5.4 but also panicked by this old bug, so probably this problem was triggered by not gcc 4.8 but struct disk changes (struct disk_geom was added in <sys/disk.h> rev 1.58), which increased sizeof(struct fd_softc) from 248 bytes to 296 bytes. (i.e. now struct fd_softc could be allocated in a different pool block, probably near the wrong pointer of the struct disklabel) Anyway, this fix should be pullued up to netbsd-7. (probably I'm the only user of floppy on sun3 though)
|
1.150.8.1 |
| 17-Oct-2012 |
riz | branches: 1.150.8.1.2; Pull up following revision(s) (requested by tsutsui in ticket #602): sys/arch/sparc/dev/fd.c: revision 1.151 sys/arch/sparc/sparc/memecc.c: revision 1.15 Fix device_t/softc split botches that could be fatal. From Chuck Silvers' patch posted current-users and tech-kern: http://mail-index.netbsd.org/current-users/2012/10/09/msg021233.html Should be pulled up to netbsd-6.
|
1.150.8.1.2.1 |
| 03-Nov-2014 |
msaitoh | Pull up following revision(s) (requested by tsutsui in ticket #1139): sys/arch/sun3/dev/fd.c: revision 1.78 sys/arch/sparc/dev/fd.c: revision 1.155 sys/arch/sparc64/dev/fdc.c: revision 1.42 Fix panic() on opening fd(4), caused by a wrong pointer passed to memset(). I'm not sure why this 18 year old bug didn't cause problem before (at least my old 5.99.23 kernel worked), but probably it's triggered by new gcc 4.8 which might do more aggressive memory allocation. The problem is found by Nobuyoshi Sato on trying eject(1) against fd(4). Should be pulled up to netbsd-7. Sync with sparc/dev/fd.c:1.155. Fix panic() on opening fd(4), caused by a wrong pointer passed to memset(). I'm not sure why this 18 year old bug didn't cause problem before (at least my old 5.99.23 kernel worked), but probably it's triggered by new gcc 4.8 which might do more aggressive memory allocation. The problem is found by Nobuyoshi Sato on trying eject(1) against fd(4). Should be pulled up to netbsd-7. Sync with sparc/dev/fd.c rev 1.155. Fix panic() on opening fd(4), caused by a wrong pointer passed to memset(). Note sun3 still uses gcc 4.5.4 but also panicked by this old bug, so probably this problem was triggered by not gcc 4.8 but struct disk changes (struct disk_geom was added in <sys/disk.h> rev 1.58), which increased sizeof(struct fd_softc) from 248 bytes to 296 bytes. (i.e. now struct fd_softc could be allocated in a different pool block, probably near the wrong pointer of the struct disklabel) Anyway, this fix should be pullued up to netbsd-7. (probably I'm the only user of floppy on sun3 though)
|
1.150.2.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.150.2.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.151.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.152.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.154.2.1 |
| 24-Aug-2014 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #53): sys/arch/sun3/dev/fd.c: revision 1.78 sys/arch/sparc/dev/fd.c: revision 1.155 sys/arch/sparc64/dev/fdc.c: revision 1.42 Fix panic() on opening fd(4), caused by a wrong pointer passed to memset().
|
1.155.2.2 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
1.155.2.1 |
| 06-Apr-2015 |
skrll | Sync with HEAD
|
1.157.18.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.157.18.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.157.16.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.160.8.1 |
| 14-Dec-2020 |
thorpej | Sync w/ HEAD.
|
1.161.2.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.162.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|