Home | History | Annotate | Download | only in ic
History log of /src/sys/dev/ic/ld_mlx.c
RevisionDateAuthorComments
 1.24  13-Apr-2025  rin ld(4): Convert blkno argument for sc_dump() to daddr_t

PR kern/59153

(1) For backends that accept 64-bit block address, i.e.,
nvme(4), virtio(4), aac(4), iop(4), and mainbus(usermode/4),
this should enable to dump beyond 2Gi blocks.

(2) sdmmc(4) backend allows to dump up to the last block.

(3) For other backends, block address is handled as `int`.
Some of them may support blocks up to 4Gi, but I do not have
enough time to examine datasheets. So, continue to reject >2Gi
blocks as before.

XXX
This is KABI change, and cannot be pulled up into netbsd-{10,9}.

XXX
Compile-test only (for amd64/ALL) due to lack of large SSDs ;)

Thanks mlelstv@ for discussion and careful review!!
 1.23  27-Sep-2016  pgoyette branches: 1.23.54;
Modularize the ld driver and all of its attachments. Ensure that all
parents are capable of rescan (or otherwise provide a means of attaching
children post-initialization).
 1.22  16-Sep-2016  jdolecek modify ldattach() to have default strategy as a parameter
 1.21  13-Apr-2015  riastradh branches: 1.21.2;
Convert sys/dev to use <sys/rndsource.h>.
 1.20  02-Feb-2012  tls branches: 1.20.6; 1.20.24;
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.19  16-Jan-2009  mhitch branches: 1.19.14; 1.19.18;
Another missed part of the device_t/softc split. Fixes ld(4) devices
on mlx(4) controller.
 1.18  09-Sep-2008  tron branches: 1.18.2; 1.18.4;
Complete device_t/softc split for the ld(4) attachments. This should
prevent crashes while attaching a drive.

Patch supplied by Juan RP in PR kern/39468.
 1.17  28-Apr-2008  martin branches: 1.17.2; 1.17.6;
Remove clause 3 and 4 from TNF licenses
 1.16  08-Apr-2008  cegger branches: 1.16.2; 1.16.4;
use aprint_*_dev and device_xname
 1.15  19-Oct-2007  ad branches: 1.15.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.14  29-Jul-2007  ad branches: 1.14.4; 1.14.6; 1.14.10; 1.14.12;
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.13  16-Nov-2006  christos branches: 1.13.8; 1.13.18;
__unused removal on arguments; approved by core.
 1.12  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.11  25-Mar-2006  thorpej branches: 1.11.8; 1.11.10;
Use device_parent().
 1.10  11-Dec-2005  christos branches: 1.10.4; 1.10.6; 1.10.8; 1.10.10; 1.10.12;
merge ktrace-lwp.
 1.9  08-Feb-2005  briggs branches: 1.9.6;
Use aprint_*() instead of printf() at attach time.
 1.8  28-Oct-2004  yamt branches: 1.8.4; 1.8.6;
move buffer queue related stuffs from buf.h to their own header, bufq.h.
 1.7  02-Oct-2002  thorpej branches: 1.7.6;
Add trailing ; to CFATTACH_DECL.
 1.6  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.5  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4  26-Aug-2002  ad Handle aincent firmware as found on EISA/MCA boards. Untested.
 1.3  13-Nov-2001  lukem branches: 1.3.8; 1.3.10;
add/cleanup RCSID
 1.2  10-Jun-2001  ad branches: 1.2.2; 1.2.8;
Centralise the geometry fudge.
 1.1  04-Feb-2001  ad branches: 1.1.2; 1.1.4;
Add a driver for the Mylex DAC960 family (including DEC SWXCR).
 1.1.4.4  18-Oct-2002  nathanw Catch up to -current.
 1.1.4.3  27-Aug-2002  nathanw Catch up to -current.
 1.1.4.2  14-Nov-2001  nathanw Catch up to -current.
 1.1.4.1  21-Jun-2001  nathanw Catch up to -current.
 1.1.2.2  11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1  04-Feb-2001  bouyer file ld_mlx.c was added on branch thorpej_scsipi on 2001-02-11 19:15:32 +0000
 1.2.8.2  25-Oct-2001  he Pull up revisions 1.1-1.2 (requested by ad):
Add Mylex DACC960, CAC-EISA, and I2O block/SCSI drivers.
 1.2.8.1  10-Jun-2001  he file ld_mlx.c was added on branch netbsd-1-5 on 2001-10-25 17:53:47 +0000
 1.2.2.3  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.2.2.2  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.2.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.10.1  28-Jul-2003  he Pull up revision 1.4 (requested by ad in ticket #1128):
Improve stability of the mlx driver.
o Better handling of old firmware
o Use correct mailbox length, fixes PR#14266
 1.3.8.1  29-Aug-2002  gehenna catch up with -current.
 1.7.6.2  09-Feb-2005  skrll Sync with HEAD.
 1.7.6.1  02-Nov-2004  skrll Sync with HEAD.
 1.8.6.1  12-Feb-2005  yamt sync with head.
 1.8.4.1  29-Apr-2005  kent sync with -current
 1.9.6.4  27-Oct-2007  yamt sync with head.
 1.9.6.3  03-Sep-2007  yamt sync with head.
 1.9.6.2  30-Dec-2006  yamt sync with head.
 1.9.6.1  21-Jun-2006  yamt sync with head.
 1.10.12.1  28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.10.10.1  19-Apr-2006  elad sync with head.
 1.10.8.1  01-Apr-2006  yamt sync with head.
 1.10.6.1  22-Apr-2006  simonb Sync with head.
 1.10.4.1  09-Sep-2006  rpaulo sync with head
 1.11.10.2  10-Dec-2006  yamt sync with head.
 1.11.10.1  22-Oct-2006  yamt sync with head
 1.11.8.1  18-Nov-2006  ad Sync with head.
 1.13.18.1  15-Aug-2007  skrll Sync with HEAD.
 1.13.8.3  23-Oct-2007  ad Sync with head.
 1.13.8.2  19-Aug-2007  ad - Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).
 1.13.8.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.14.12.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.14.12.1  29-Jul-2007  ad file ld_mlx.c was added on branch matt-mips64 on 2007-07-29 12:50:21 +0000
 1.14.10.1  25-Oct-2007  bouyer Sync with HEAD.
 1.14.6.1  06-Nov-2007  matt sync with HEAD
 1.14.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.15.16.3  17-Jan-2009  mjf Sync with HEAD.
 1.15.16.2  28-Sep-2008  mjf Sync with HEAD.
 1.15.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.16.4.2  04-May-2009  yamt sync with head.
 1.16.4.1  16-May-2008  yamt sync with head.
 1.16.2.1  18-May-2008  yamt sync with head.
 1.17.6.1  19-Oct-2008  haad Sync with HEAD.
 1.17.2.1  24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.18.4.1  16-Jan-2009  bouyer Pull up following revision(s) (requested by mhitch in ticket #275):
sys/dev/ic/ld_mlx.c: revision 1.19
Another missed part of the device_t/softc split. Fixes ld(4) devices
on mlx(4) controller.
 1.18.2.1  19-Jan-2009  skrll Sync with HEAD.
 1.19.18.1  18-Feb-2012  mrg merge to -current.
 1.19.14.1  17-Apr-2012  yamt sync with head
 1.20.24.2  05-Oct-2016  skrll Sync with HEAD
 1.20.24.1  06-Jun-2015  skrll Sync with HEAD
 1.20.6.1  03-Dec-2017  jdolecek update from HEAD
 1.21.2.1  04-Nov-2016  pgoyette Sync with HEAD
 1.23.54.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed