History log of /netbsd/sys/dev/scsipi/sd.c (Results 1 – 25 of 335)
Revision Date Author Comments
# a2e80737 28-Aug-2022 mlelstv <mlelstv@NetBSD.org>

Don't fetch data beyond end of inquiry buffer, which, here, is not
NUL-terminated.

Reduce target buffer to needed size (product name + NUL terminator).


# 0bf6f1a1 28-Mar-2022 riastradh <riastradh@NetBSD.org>

sd(4): Use d_cfdriver/devtounit to avoid open/detach races.


# 0ec97328 27-Jan-2022 jakllsch <jakllsch@NetBSD.org>

use powerof2() in sd_validate_blksize()


# 71376dac 30-May-2021 dholland <dholland@NetBSD.org>

typo in comment


# 460026d7 10-Feb-2021 christos <christos@NetBSD.org>

PR/55986: Ryo Onodera: DK_BUSY must have mask as second argument. Make cd.c
consistent by also using __BIT()


# 7d5adf5c 25-Sep-2020 jakllsch <jakllsch@NetBSD.org>

spelling fixes in sd.c comments


# e005f17c 13-Apr-2020 maxv <maxv@NetBSD.org>

constify


# ec128796 01-Mar-2020 riastradh <riastradh@NetBSD.org>

Add a flag to dk_dump for virtual disk devices.

If a disk is backed by a physical medium other than itself, such as
cgd(4), then it passes DK_DUMP_RECURSIVE to disable the recursion
detection for dk

Add a flag to dk_dump for virtual disk devices.

If a disk is backed by a physical medium other than itself, such as
cgd(4), then it passes DK_DUMP_RECURSIVE to disable the recursion
detection for dk_dump.

If, however, a device represents a physical medium on its own, such
as wd(4), then it passes 0 instead.

With this, I can now dump to dk on cgd on dk on wd.

show more ...


# f5e64243 19-Mar-2019 mlelstv <mlelstv@NetBSD.org>

Set disk product name as disk type. The information can be queried through
drvctl(4).


# 6c44fd1e 07-Oct-2018 christos <christos@NetBSD.org>

Handle the SATA to USB external enclosure sold by "Sabrent" and
made by JMicro (vendor=0x152d product=0x0578). This bridge does
not understand FUA, so add a quirk for it.


# 4b02fd37 17-Jun-2017 mlelstv <mlelstv@NetBSD.org>

The atapibus detach path did hold the channel mutex while calling into autoconf,
which would trigger a panic when unplugging a USB ATAPI CDROM.

Align detach code for scsibus and atapibus to fix this

The atapibus detach path did hold the channel mutex while calling into autoconf,
which would trigger a panic when unplugging a USB ATAPI CDROM.

Align detach code for scsibus and atapibus to fix this.

Also avoid races when detaching devices by replacing callout_stop with
callout_halt.

show more ...


# 2b8b3fc2 10-Apr-2017 jdolecek <jdolecek@NetBSD.org>

execute the cache page MODE SENSE with XS_CTL_SILENT; it's pretty normal
for e.g. USB sticks thus showing error is not really useful, and the pretty
printing triggers autoload of scsiverbose module a

execute the cache page MODE SENSE with XS_CTL_SILENT; it's pretty normal
for e.g. USB sticks thus showing error is not really useful, and the pretty
printing triggers autoload of scsiverbose module and immediate deadlock when
the DIOCGCACHE call is made by WAPBL during root mount

adresses PR kern/52147 by Michael van Elst

show more ...


# cd514d57 05-Apr-2017 jdolecek <jdolecek@NetBSD.org>

expose disk device FUA/DPO support via DIOCGCACHE, and allow the flags
to be set for I/O; implement support in sd(4) and nvme(4)

discussed on tech-kern


# e9bd7006 21-Dec-2016 mlelstv <mlelstv@NetBSD.org>

really keep request queued after resource shortage


# 80ad257c 16-Dec-2016 mlelstv <mlelstv@NetBSD.org>

add comment about "missing" dk_start.


# 1ab11352 10-Dec-2016 mlelstv <mlelstv@NetBSD.org>

Refactored sd and cd to use common disk subroutines.


# ec70ca9e 20-Nov-2016 mlelstv <mlelstv@NetBSD.org>

Make scsipi framework MPSAFE.

Data structures are now protected by a per-adapter mutex at IPL_BIO
that is created by the scsibus or atapibus instance when the adapter
is configured.
The enable refer

Make scsipi framework MPSAFE.

Data structures are now protected by a per-adapter mutex at IPL_BIO
that is created by the scsibus or atapibus instance when the adapter
is configured.
The enable reference counter and the channel freeze counter which are
currently used by HBA code before the adapter is configured, are made
atomic.
The target drivers are now all tagged as D_MPSAFE.

Almost all HBA drivers still require the kernel lock to present,
so all callbacks into HBA code are still protected by kernel lock
unless the driver is tagged as SCSIPI_ADAPT_MPSAFE.

TODO: refactor sd and cd to use dksubr.

show more ...


# 6553b956 20-Nov-2016 pgoyette <pgoyette@NetBSD.org>

Avoid calling bufq_free() from critical code sections.


# 2c98eb8a 24-Aug-2015 pooka <pooka@NetBSD.org>

would you like some freshly ground _KERNEL_OPT with that?
yes? excellent choice, sir/madam.


# 8fbc729d 26-Apr-2015 mlelstv <mlelstv@NetBSD.org>

Use C99-style initializers for struct dkdriver.


# 7c77bcc9 13-Apr-2015 riastradh <riastradh@NetBSD.org>

Convert sys/dev to use <sys/rndsource.h>.


# 6e87faa0 02-Jan-2015 christos <christos@NetBSD.org>

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, b

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.

show more ...


# 4a331aac 31-Dec-2014 christos <christos@NetBSD.org>

make more drivers use disk_ioctl, and add a dev parameter to it so that
we can merge the "easy" disklabel ioctls to it. Ultimately all this will
go do dk_ioctl once all the drivers have been converte

make more drivers use disk_ioctl, and add a dev parameter to it so that
we can merge the "easy" disklabel ioctls to it. Ultimately all this will
go do dk_ioctl once all the drivers have been converted.

show more ...


# 8c0fff56 31-Dec-2014 christos <christos@NetBSD.org>

Centralize wedge ioctls in disk_ioctl.


# 7eedcb4c 31-Dec-2014 mlelstv <mlelstv@NetBSD.org>

disk_blocksize and disk_set_info relay the same information
to the disk subsystem.

Make disk_set_info also set blocksize shift values.
Remove every call to disk_blocksize.

Keep disk_blocksize for A

disk_blocksize and disk_set_info relay the same information
to the disk subsystem.

Make disk_set_info also set blocksize shift values.
Remove every call to disk_blocksize.

Keep disk_blocksize for ABI compatibility, make it also set dg_secsize.

show more ...


12345678910>>...14