#
296373 |
|
04-Mar-2016 |
marius |
- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1 builds. - Update newvers.sh to reflect RC1. - Update __FreeBSD_version to reflect 10.3. - Update default pkg(8) configuration to use the quarterly branch.
Approved by: re (implicit) |
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
246128 |
|
30-Jan-2013 |
sbz |
Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on device_method_t arrays
Reviewed by: cognet Approved by: cognet
|
#
208650 |
|
30-May-2010 |
jkim |
Fix a regression from r200554, which broke fdc(4) attachment to acpi(4). I removed too many lines and a wrong pointer was accidentally passed down.
Tested by: Scott Allendorf (scott-allendorf at uiowa dot edu), kib MFC after: 3 days
|
#
200554 |
|
14-Dec-2009 |
jkim |
Remove _FDE quirk handling as these quirks are automatically repaired by ACPICA layer since ACPICA 20091214.
|
#
193530 |
|
05-Jun-2009 |
jkim |
Import ACPICA 20090521.
|
#
155870 |
|
21-Feb-2006 |
njl |
Remove unused variable.
Coverity ID: 558 Found by: Coverity Prevent
|
#
150003 |
|
11-Sep-2005 |
obrien |
Canonize the include of acpi.h.
|
#
135938 |
|
29-Sep-2004 |
jhb |
Only fall back to probing the floppy drives via hints if there is a failure in the actual _FDE parsing. If the failure occurs earlier such as in fdc_attach() then don't try to probe any drives.
MFC after: 3 days Reviewed by: njl Tested by: Christian Laursen xi at borderworlds dot dk
|
#
135392 |
|
17-Sep-2004 |
imp |
The long dead hand of the past has pushed forward useless bits in this driver. Trim its fingernails by removing some useless bits before fixing the 'thread not terminated on detach' problem.
o dmacnt is no longer used now that we allocate at attach time. Remove it from struct fdc_data. o ISPNP was only ever set, but never tested. It used to be used for the allocation routines to change how it allocated resources. Since that's no longer necessary, retire the flag. o ISPCMICA was only ever tested, but never set. GC it. This removes a special case in determining the drive type. The drive type is now set in fdc_pcmcia.c, so the hack isn't needed anymore. Sadly, this isn't tested with a Y-E Data pcmcia floppy drive because there are a number of other issues that preclude it from working. o Fix ifdef for reading from the rtc. I'm of the opinion that this ifdef should be moved into fdc_isa.c, but not today as ideally there'd be other fixes to the probing of children. So now we just read it on i386 ! pc98 (there's no #define for MACHINE_ARCH, just MACHINE, hence this slightly inelegant kludge) and amd64. The PC98 exclusion likely isn't meaningful since pc98 uses a different driver, but will be when merging of the pc98 floppy code into this driver is complete (this is the other reason I think this block of code belongs outside fdc.c).
All of these changes are safe to MT5.
|
#
135355 |
|
17-Sep-2004 |
njl |
Handle _FDE results of 5 bytes (vs. 5 uint32_t's). BIOS vendors find yet another way to misinterpret the spec. Also, always fall back to the hints probe on any attach failure, not just when _FDE fails.
Thanks to imp and scottl for finding this.
Tested by: rwatson (minimally) MFC after: 5 days
|
#
135294 |
|
16-Sep-2004 |
imp |
default: case shouldn't set an error yet either.
|
#
135288 |
|
16-Sep-2004 |
imp |
For the moment, treat failures to attach floppy drives as non-fatal errors for the attachment process for the floppy controller. This is a band-aide because it doesn't try any of the fallback methods when _FDE isn't long enough, but should be sufficient for people experiencing the dreaded mutex not initialized panic.
|
#
134534 |
|
30-Aug-2004 |
njl |
Fix _FDI drive type probing. The new fd child is not an ACPI device while the old one is. Hence we need to evaluate the old one for _FDI since it has a valid ACPI_HANDLE ivar. This is a minimal fix. Make a note that a more complete one is to make fdc support the ACPI_HANDLE ivar for its children.
This and the previous change are MT5 candidates.
|
#
134533 |
|
30-Aug-2004 |
njl |
Fix _FDE probing by using the buffer contents instead of the buffer object itself. ACPI-CA returns an ACPI_OBJECT of type Buffer rather than the buffer contents itself.
|
#
134081 |
|
20-Aug-2004 |
phk |
Rewrite of the floppy driver to make it MPsafe & GEOM friendly:
Centralize the fdctl_wr() function by adding the offset in the resource to the softc structure.
Bugfix: Read the drive-change signal from the correct place: same place as the ctl register.
Remove the cdevsw{} related code and implement a GEOM class.
Ditch the state-engine and park a thread on each controller to service the queue.
Make the interrupt FAST & MPSAFE since it is just a simple wakeup(9) call.
Rely on a per controller mutex to protect the bioqueues. Grab GEOMs topology lock when we have to and Giant when ISADMA needs it. Since all access to the hardware is isolated in the per controller thread, the rest of the driver is lock & Giant free.
Create a per-drive queue where requests are parked while the motor spins up. When the motor is running the requests are purged to the per controller queue. This allows requests to other drives to be serviced during spin-up.
Only setup the motor-off timeout when we finish the last request on the queue and cancel it when a new request arrives. This fixes the bug in the old code where the motor turned off while we were still retrying a request.
Make the "drive-change" work reliably. Probe the drive on first opens. Probe with a recal and a seek to cyl=1 to reset the drive change line and check again to see if we have a media.
When we see the media disappear we destroy the geom provider, create a new one, and flag that autodetection should happen next time we see a media (unless a specific format is configured).
Add sysctl tunables for a lot of drive related parameters. If you spend a lot of time waiting for floppies you can grab the i82078 pdf from Intels web-page and try tuning these.
Add sysctl debug.fdc.debugflags which will enable various kinds of debugging printfs.
Add central definitions of our well known floppy formats.
Simplify datastructures for autoselection of format and call the code at the right times.
Bugfix: Remove at least one piece of code which would have made 2.88M floppies not work.
Use implied seeks on enhanced controllers.
Use multisector transfers on all controllers. Increase ISADMA bounce buffers accordingly.
Fall back to single sector when retrying. Reset retry count on every successful transaction.
Sort functions in a more sensible order and generally tidy up a fair bit here and there.
Assorted related fixes and adjustments in userland utilities.
WORKAROUNDS: Do allow r/w opens of r/o media but refuse actual write operations. This is necessary until the p4::phk_bufwork branch gets integrated (This problem relates to remounting not reopening devices, see sys/*/*/${fs}_vfsops.c for details).
Keep PC98's private copy of the old floppy driver compiling and presumably working (see below).
TODO (planned)
Move probing of drives until after interrupts/timeouts work (like for ATA/SCSI drives).
TODO (unplanned)
This driver should be made to work on PC98 as well.
Test on YE-DATA PCMCIA floppy drive.
Fix 2.88M media.
This is a MT5 candidate (depends on the bioq_takefirst() addition).
|
#
132810 |
|
28-Jul-2004 |
njl |
Fix ACPI floppy enumeration for three types of divergent behavior. * Some systems have _FDE and child floppy devices, but no _FDI. This seems to be compatible with the standard. Don't error out if there is no _FDI. Instead, continue on to the next device. The normal fd probe will take care of this device. * Some systems have _FDE but no child devices in AML. For these, add a second pass that compares the results of _FDE to the presence of devices. If not present, add the missing device. * Some BIOS authors didn't read the spec. They use tape drive values for all fdc(4) devices. Since this isn't grossly incompatible with the required boolean value, use them. They also define the _FDE items as a package instead of buffer. Regenerate the buffer from the package if it is present.
Tested by: tjr, marcel
|
#
132214 |
|
15-Jul-2004 |
njl |
Add an ACPI floppy drive attachment that probes via the _FDE and _FDI methods. It also now handles ordinary floppy drive probing for drives attached to ACPI.
Reviewed by: imp
|