Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/sparc64/dev/vdsk.c
RevisionDateAuthorComments
 1.21  26-Jul-2025  palle sun4v: minor updates to please cd(4) so no warning are emitted
 1.20  08-Jul-2025  palle vdsk: ignore commands not implemented yet
 1.19  23-Feb-2025  palle sun4v: Ensure that the ldc map table entries are properly cleared. It has been observed that the inner while loop in vdsk_submit_cmd() may encounter stale entries resulting in an endless loop
 1.18  20-Jun-2024  palle branches: 1.18.2;
sun4v: change some debug printf() to DPRINTF()
 1.17  20-Jun-2024  palle sun4v: add some DPRINTF() to vdsk
 1.16  19-Jun-2024  palle sun4v: revert two new functions introduced in rev. 1.13 - not necessary yet
 1.15  19-Jun-2024  palle sun4v: fix incorrect string length (product name Virtual CDROM)
 1.14  12-Jun-2024  riastradh arch/sparc64/dev/dsk.c: Nix trailing whitespace.

No functional change intended.
 1.13  10-Jun-2024  palle sun4v: add incomplete implementation of the CD-specific READ_DISCINFO and READ_TRACKINFO - probably needs some more work though...
 1.12  09-Jun-2024  palle sun4v: fix vdsk so an iso image exported by the ldom virtual disk service is correctly detected as a cd device + some whitespace fixes
 1.11  12-Dec-2023  andvar extract capacity variable to make VDSK_DEBUG enabled code build.
 1.10  16-May-2022  palle sun4v/vdsk: add handling of SCSI_REPORT_LUNS
 1.9  04-Dec-2021  andvar fix typos in comments and log messages, mainly in establish(ed).
 1.8  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.7  25-Jun-2021  palle branches: 1.7.2;
sun4v: vdsk - restart the ldc state machine when the ldc endpoint resets the link or a DATA/NACK/DRING_DATA message is received. These changes make the driver more robust. In a ldom with Solaris 11.4 SRU30 as primary domain (T5 host system) frequent resets and NACK messages are observed.
 1.6  24-Apr-2021  thorpej branches: 1.6.2;
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.5  19-Nov-2019  palle branches: 1.5.10;
sun4v: added support for handling of opcode SCSI_MAINTENANCE_IN when using ldom based virtual disk
 1.4  01-Oct-2019  chs in many device attach paths, allocate memory with KM_SLEEP instead of KM_NOSLEEP
and remove code to handle failures that can no longer happen.
 1.3  03-Mar-2017  palle branches: 1.3.12; 1.3.16;
sun4v: Fixed PR 51554 - Avoid unsafe allocation in ldc/vdsk
 1.2  20-Aug-2016  nakayama branches: 1.2.2; 1.2.4; 1.2.6;
Avoid "cast to pointer from integer of different size" warning on
32-bit kernels.
 1.1  19-Aug-2016  palle sun4v: vdsk and ldc drivers - from OpenBSD, but heavily adapted to NetBSD scsipi - access to a virtual disk served from a ldom primary domain now works
 1.2.6.1  21-Apr-2017  bouyer Sync with HEAD
 1.2.4.3  28-Aug-2017  skrll Sync with HEAD
 1.2.4.2  05-Oct-2016  skrll Sync with HEAD
 1.2.4.1  20-Aug-2016  skrll file vdsk.c was added on branch nick-nhusb on 2016-10-05 20:55:36 +0000
 1.2.2.3  20-Mar-2017  pgoyette Sync with HEAD
 1.2.2.2  14-Sep-2016  pgoyette Sync with HEAD
 1.2.2.1  20-Aug-2016  pgoyette file vdsk.c was added on branch pgoyette-localcount on 2016-09-14 03:04:17 +0000
 1.3.16.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.3.16.1  08-Apr-2020  martin Merge changes from current as of 20200406
 1.3.12.2  03-Dec-2017  jdolecek update from HEAD
 1.3.12.1  03-Mar-2017  jdolecek file vdsk.c was added on branch tls-maxphys on 2017-12-03 11:36:44 +0000
 1.5.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.6.2.1  01-Aug-2021  thorpej Sync with HEAD.
 1.7.2.1  04-Aug-2021  thorpej Adapt to CFARGS().
 1.18.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed