The NetBSD Project

CVS log for src/sys/arch/sparc64/dev/vdsk.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / sparc64 / dev

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Tue Dec 12 21:34:34 2023 UTC (4 months ago) by andvar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +5 -2 lines
Diff to previous 1.10 (colored)

extract capacity variable to make VDSK_DEBUG enabled code build.

Revision 1.10 / (download) - annotate - [select for diffs], Mon May 16 17:13:28 2022 UTC (22 months, 4 weeks ago) by palle
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.9: +12 -1 lines
Diff to previous 1.9 (colored)

sun4v/vdsk: add handling of SCSI_REPORT_LUNS

Revision 1.9 / (download) - annotate - [select for diffs], Sat Dec 4 13:23:03 2021 UTC (2 years, 4 months ago) by andvar
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

fix typos in comments and log messages, mainly in establish(ed).

Revision 1.8 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:05 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Merge thorpej-cfargs2.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Wed Aug 4 02:57:07 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Adapt to CFARGS().

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:17 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.6: +4 -1 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Sync with HEAD.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 25 19:10:50 2021 UTC (2 years, 9 months ago) by palle
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base
Branch point for: thorpej-cfargs2
Changes since 1.6: +4 -1 lines
Diff to previous 1.6 (colored)

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.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:49 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

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?).

Revision 1.5.10.1 / (download) - annotate - [select for diffs], Sun Mar 21 21:09:07 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

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.

Revision 1.3.16.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:08 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.3.16.1: +3 -51 lines
Diff to previous 1.3.16.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.3.16.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:54 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

Merge changes from current as of 20200406

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 19 20:07:30 2019 UTC (4 years, 4 months ago) by palle
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-cfargs
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

sun4v: added support for handling of opcode SCSI_MAINTENANCE_IN when using ldom based virtual disk

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 1 18:00:07 2019 UTC (4 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.3: +4 -52 lines
Diff to previous 1.3 (colored)

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.

Revision 1.3.12.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:44 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.3.12.1: +1386 -0 lines
Diff to previous 1.3.12.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

update from HEAD

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:53 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2.4.2: +6 -1 lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.2.6.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:37 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.2: +6 -1 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:20 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.2.2.2: +6 -1 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.3.12.1, Fri Mar 3 21:09:25 2017 UTC (7 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.3: +0 -1386 lines
FILE REMOVED

file vdsk.c was added on branch tls-maxphys on 2017-12-03 11:36:44 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Fri Mar 3 21:09:25 2017 UTC (7 years, 1 month ago) by palle
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1
Branch point for: tls-maxphys, phil-wifi
Changes since 1.2: +6 -1 lines
Diff to previous 1.2 (colored)

sun4v: Fixed PR 51554 - Avoid unsafe allocation in ldc/vdsk

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:36 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2.4.1: +1381 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)

Sync with HEAD

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Wed Sep 14 03:04:17 2016 UTC (7 years, 7 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.2.2.1: +1381 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

Sync with HEAD

Revision 1.2.4.1, Sat Aug 20 18:21:18 2016 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2: +0 -1381 lines
FILE REMOVED

file vdsk.c was added on branch nick-nhusb on 2016-10-05 20:55:36 +0000

Revision 1.2.2.1, Sat Aug 20 18:21:18 2016 UTC (7 years, 7 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.2: +0 -1381 lines
FILE REMOVED

file vdsk.c was added on branch pgoyette-localcount on 2016-09-14 03:04:17 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sat Aug 20 18:21:18 2016 UTC (7 years, 7 months ago) by nakayama
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, nick-nhusb, bouyer-socketcan
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Avoid "cast to pointer from integer of different size" warning on
32-bit kernels.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 19 19:02:07 2016 UTC (7 years, 7 months ago) by palle
Branch: MAIN

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

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>