The NetBSD Project

CVS log for src/sys/dev/pci/ld_virtio.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34 / (download) - annotate - [select for diffs], Sat Mar 9 11:04:22 2024 UTC (5 weeks, 6 days ago) by isaki
Branch: MAIN
CVS Tags: HEAD
Changes since 1.33: +11 -14 lines
Diff to previous 1.33 (colored) to selected 1.18 (colored)

Modify a confused expression in ld_virtio_attach().
VIRTIO_BLK_MIN_SEGMENTS should be the total number of non-data segments,
so I rename it to VIRTIO_BLK_CTRL_SEGMENTS.
PR kern/57981.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Feb 12 02:28:28 2024 UTC (2 months ago) by isaki
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) to selected 1.18 (colored)

Fix typo in error message.

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Sat May 13 10:56:10 2023 UTC (11 months, 1 week ago) by martin
Branch: netbsd-10
CVS Tags: 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
Changes since 1.30: +9 -7 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.18 (colored)

Pull up following revision(s) (requested by yamaguchi in ticket #139):

	sys/dev/pci/vioscsi.c: revision 1.31
	sys/dev/pci/vio9p.c: revision 1.10
	sys/dev/pci/vioscsi.c: revision 1.32
	sys/dev/pci/vio9p.c: revision 1.11
	sys/dev/pci/vioscsi.c: revision 1.33
	sys/dev/pci/ld_virtio.c: revision 1.31
	sys/dev/virtio/viocon.c: revision 1.6
	sys/dev/pci/vioscsi.c: revision 1.34
	sys/dev/pci/ld_virtio.c: revision 1.32
	sys/dev/virtio/viocon.c: revision 1.7
	sys/dev/virtio/viocon.c: revision 1.8
	sys/dev/pci/vioscsi.c: revision 1.36
	sys/dev/pci/virtioreg.h: revision 1.12
	sys/dev/pci/viornd.c: revision 1.19
	sys/dev/pci/virtio.c: revision 1.66
	sys/dev/pci/virtio.c: revision 1.67
	sys/dev/pci/virtio.c: revision 1.68
	sys/dev/pci/if_vioif.c: revision 1.103
	sys/dev/pci/virtio.c: revision 1.69
	sys/dev/pci/if_vioif.c: revision 1.104
	sys/dev/pci/virtio_pci.c: revision 1.40
	sys/dev/virtio/virtio_mmio.c: revision 1.8
	sys/dev/virtio/virtio_mmio.c: revision 1.9
	sys/dev/pci/viomb.c: revision 1.14
	sys/dev/pci/viomb.c: revision 1.15
	sys/dev/pci/viomb.c: revision 1.17
	sys/dev/pci/viornd.c: revision 1.20
	sys/dev/pci/viornd.c: revision 1.21
	sys/dev/pci/virtiovar.h: revision 1.25
	sys/dev/pci/virtiovar.h: revision 1.26
	sys/dev/pci/virtiovar.h: revision 1.27
	sys/dev/pci/virtiovar.h: revision 1.28
	sys/dev/pci/virtio.c: revision 1.70
	sys/dev/pci/virtio.c: revision 1.71
	sys/dev/pci/virtio.c: revision 1.72
	sys/dev/pci/virtio.c: revision 1.73
	sys/dev/pci/virtio.c: revision 1.74
	sys/dev/pci/virtio_pci.c: revision 1.39

Set virtqueues in virtio_child_attach_finish

The number of virtqueue maybe change in a part of VirtIO devices
(e.g. vioif(4)). And it is fixed after negotiation of features.
So the configuration is moved into the function.

viocon(4): fix not to allocate unused virtqueue

viocon(4) allocates 4 virtqueues but it only uses 2 (0 and 1) queues.

Added functions to set interrupt handler and index into virtqueue

Added check of pointer for allocated memory before release of resource

Setup virtqueues after registering them to virtio_softc
restore fetch of qsize.

Mark as MPSAFE.

virtio(4): Avoid name collision with global intrhand on sparc64.

Pacifies -Werror=shadow.
No functional change intended.

Use PRIuBUSSIZE to print bus_size_t variables.

virtio(4): Fix sizing of virtqueue allocation.
vq->vq_avail[0].ring is a zero-length array, and thus sizeof is zero;
likewise vq->vq_used[0].ring.
Use vq->vq_avail[0].ring[0] and vq->vq_used[0].ring[0] to fix this
and restore the previous allocation sizing logic.
XXX We shouldn't use zero-length arrays here -- they are asking for
trouble like this, and C99 has a standard way to express what we're
actually trying to get at it, flexible array members.
PR kern/57304

virtio(4): Use flexible array members, not zero-length arrays.
This enables the compiler to detect sizeof mistakes like
PR kern/57304.

Use descriptor chain for free slots instead of vq_entry list
Descriptors can be chained by themself. And descriptors added to
avail ring or used ring are already chained. But it was not used
for unused descriptors and another linked list structure named
vq_entry was used.

The chain is also used for unused descriptors to make virtio(4)
simpler.

Added flags to store status of attaching a virtio device

This prevents a panic on reboot after a virtio device had called
virtio_child_attach_failed().

Fix wrong variable names
This fixes build errors in virtio_mmio.c

Revision 1.32 / (download) - annotate - [select for diffs], Thu Mar 23 03:55:11 2023 UTC (12 months, 4 weeks ago) by yamaguchi
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.31: +7 -5 lines
Diff to previous 1.31 (colored) to selected 1.18 (colored)

Added functions to set interrupt handler and index into virtqueue

Revision 1.31 / (download) - annotate - [select for diffs], Thu Mar 23 03:27:48 2023 UTC (12 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (colored) to selected 1.18 (colored)

Set virtqueues in virtio_child_attach_finish

The number of virtqueue maybe change in a part of VirtIO devices
(e.g. vioif(4)). And it is fixed after negotiation of features.
So the configuration is moved into the function.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Apr 13 10:42:12 2022 UTC (2 years ago) by uwe
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.29: +14 -14 lines
Diff to previous 1.29 (colored) to selected 1.18 (colored)

virtio: use the new syntax for snprintb(3) format strings.

The old syntax is limited to 32 bits only (and has 1-based bit numbers
which is rather incovenient too).

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:46 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.28: +23 -18 lines
Diff to previous 1.28 (colored) next main 1.29 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jan 20 19:46:48 2021 UTC (3 years, 2 months ago) by reinoud
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.28: +23 -18 lines
Diff to previous 1.28 (colored) to selected 1.18 (colored)

Add VirtIO PCI v1.0 attachments and fix the drivers affected.

The vioif, ld, scsi, viornd and viomb devices were adjusted when needed and
tested both in legacy 0.9 and v1.0 attachments trough PCI on amd64, sparc64,
aarch64 and aarch64-eb. ACPI/FDT attachments also tested on
aarch64/aarch64-eb.

Known issues

* viomb on aarch64 works only with ACPI/FDT attachment but not with PCI
  attachment. PCI and ACPI/FDT attachment works on aarch64-eb.

* virtio on sparc64 attaches but is it not functioning though not a
  regression.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Oct 24 09:00:35 2020 UTC (3 years, 5 months ago) by skrll
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.27: +7 -7 lines
Diff to previous 1.27 (colored) to selected 1.18 (colored)

Use BUS_DMA_WAITOK in ld_virtio_alloc_reqs which is called at attached
time...

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:17 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored) next main 1.24 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.16.2.4 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:27 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.16.2.3: +4 -4 lines
Diff to previous 1.16.2.3 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored) to selected 1.18 (colored)

Synch with HEAD

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jan 17 10:20:01 2019 UTC (5 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, 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, isaki-audio2-base, isaki-audio2, 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
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) to selected 1.18 (colored)

Use cv_broadcast() on "sc_sync_wait" to prevent deadlock
when more than one thread try to "DIOCCACHESYNC" at the
same time.

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:32 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.16.2.2: +3 -3 lines
Diff to previous 1.16.2.2 (colored) to branchpoint 1.16 (colored) to selected 1.18 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.26 / (download) - annotate - [select for diffs], Fri Nov 23 18:08:11 2018 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored) to selected 1.18 (colored)

Use MSIX when available

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:46 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.16.2.1: +2 -2 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 12 13:05:39 2018 UTC (5 years, 9 months ago) by jakllsch
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Changes since 1.24: +2 -27 lines
Diff to previous 1.24 (colored) to selected 1.18 (colored)

revert previous, unintended, commit

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jul 12 12:48:50 2018 UTC (5 years, 9 months ago) by jakllsch
Branch: MAIN
Changes since 1.23: +29 -4 lines
Diff to previous 1.23 (colored) to selected 1.18 (colored)

<sys/pmc.h> is gone; dont

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:52 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.16: +202 -22 lines
Diff to previous 1.16 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.15.6.2 / (download) - annotate - [select for diffs], Fri Jun 22 10:15:18 2018 UTC (5 years, 9 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2
Changes since 1.15.6.1: +202 -18 lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.18 (colored)

Pull up following revision(s) (requested by jakllsch in ticket #888):

	sys/dev/pci/ld_virtio.c: revision 1.19-1.21,1.23

remove trailing whitespace

add feature/register definitions from virtio-v1.0-cs04

unload payload dma map upon command completion

Make ld_virtio aware of a possible device-side write cache.

The virtio block device capacity config item is expressed always in
request protocol sector units of 512 bytes.

Also, add and use a symbolic constant to refer to request protocol
sector units.

destroy 'sc_sync_wait' condvar and mutex upon detach

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jun 21 16:47:06 2018 UTC (5 years, 10 months ago) by jakllsch
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.22: +5 -2 lines
Diff to previous 1.22 (colored) to selected 1.18 (colored)

destroy 'sc_sync_wait' condvar and mutex upon detach

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jun 10 14:59:23 2018 UTC (5 years, 10 months ago) by jakllsch
Branch: MAIN
Changes since 1.21: +2 -6 lines
Diff to previous 1.21 (colored) to selected 1.18 (colored)

remove irrelevant pci(9) #includes from virtio child drivers

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jun 10 14:43:07 2018 UTC (5 years, 10 months ago) by jakllsch
Branch: MAIN
Changes since 1.20: +12 -7 lines
Diff to previous 1.20 (colored) to selected 1.18 (colored)

The virtio block device capacity config item is expressed always in
request protocol sector units of 512 bytes.

Also, add and use a symbolic constant to refer to request protocol
sector units.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jun 7 23:32:30 2018 UTC (5 years, 10 months ago) by jakllsch
Branch: MAIN
Changes since 1.19: +175 -7 lines
Diff to previous 1.19 (colored) to selected 1.18 (colored)

Make ld_virtio aware of a possible device-side write cache.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jun 3 19:50:20 2018 UTC (5 years, 10 months ago) by jakllsch
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

unload payload dma map upon command completion

Revision 1.18 / (download) - annotate - [selected], Sun Jun 3 19:47:35 2018 UTC (5 years, 10 months ago) by jakllsch
Branch: MAIN
Changes since 1.17: +9 -2 lines
Diff to previous 1.17 (colored)

add feature/register definitions from virtio-v1.0-cs04

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 3 02:13:09 2018 UTC (5 years, 10 months ago) by jakllsch
Branch: MAIN
Changes since 1.16: +8 -8 lines
Diff to previous 1.16 (colored) to selected 1.18 (colored)

remove trailing whitespace

Revision 1.5.6.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:08 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.5.6.1: +176 -85 lines
Diff to previous 1.5.6.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored) to selected 1.18 (colored)

update from HEAD

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Fri Sep 1 09:59:11 2017 UTC (6 years, 7 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.18 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #261):
	sys/dev/sdmmc/ld_sdmmc.c: revision 1.32
	sys/dev/sdmmc/ld_sdmmc.c: revision 1.33
	sys/dev/sdmmc/ld_sdmmc.c: revision 1.34
	sys/dev/sdmmc/sdmmc_mem.c: revision 1.62
	sys/dev/i2o/ld_iop.c: revision 1.39
	sys/dev/ld.c: revision 1.102
	sys/dev/ld.c: revision 1.103
	sys/dev/dksubr.c: revision 1.98
	sys/dev/dksubr.c: revision 1.99
	sys/dev/sdmmc/sdmmcvar.h: revision 1.29
	sys/dev/ic/ld_nvme.c: revision 1.17
	sys/dev/ldvar.h: revision 1.31
	sys/dev/ldvar.h: revision 1.32
	sys/dev/ic/ld_cac.c: revision 1.31
	sys/dev/pci/ld_virtio.c: revision 1.16
While ld(4) is MP safe, many backends are not.
Add a flag for backends that are MP safe. Take KERNEL_LOCK when calling
into a backend that doesn't have the flag set. Do the same for the
discard routine.
Fixes PR 52462.
Defer sdmmc discard operations to the sdmmc task queue. Fixes a panic
introduced by ld.c r1.102.
validate length for discard operation and split operation when byte length
doesn't fit into 'int'.
make the sc_discard interface for the ld backend asynchronous and
signal completion through new callback lddiscardend. Use a standard
struct buf to pass disk address and range instead of two off_t values.
make lddiscard synchronous again. This is a requirement of the current
ffs discard code.
Initialize error also in the case where len=0, which just succeeds.
while here, assert that the len is indeed non-negative. this is already
confirmed by sys_fdiscard, but let's be sure.
reported by: GCC, but with different compile flags

Revision 1.6.4.6 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:06 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.6.4.5: +46 -52 lines
Diff to previous 1.6.4.5 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 9 16:44:40 2017 UTC (6 years, 8 months ago) by mlelstv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, nick-nhusb-base-20170825
Branch point for: pgoyette-compat
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.18 (colored)

While ld(4) is MP safe, many backends are not.

Add a flag for backends that are MP safe. Take KERNEL_LOCK when calling
into a backend that doesn't have the flag set. Do the same for the
discard routine.

Fixes PR 52462.

Revision 1.10.2.4 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:13 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.10.2.3: +45 -50 lines
Diff to previous 1.10.2.3 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:48 2017 UTC (7 years ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.13: +45 -51 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Sat Mar 25 18:02:06 2017 UTC (7 years ago) by jdolecek
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.14: +45 -50 lines
Diff to previous 1.14 (colored) to selected 1.18 (colored)

reorganize the attachment process for virtio child devices, so that
more common code is shared among the drivers, and it's possible for
the drivers to be correctly dynamically loaded; forbid direct access
to struct virtio_softc from the child driver code

Revision 1.10.2.3 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:29 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.10.2.2: +2 -3 lines
Diff to previous 1.10.2.2 (colored) to branchpoint 1.10 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Mon Feb 27 21:32:33 2017 UTC (7 years, 1 month ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored) to selected 1.18 (colored)

refactor the ld(4) DIOCCACHESYNC hook into general ioctl hook, so that attachments
would be able to implement arbitrary other ioctls

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:33 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.10.2.1: +2 -3 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) to selected 1.18 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.6.4.5 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:03 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.6.4.4: +2 -3 lines
Diff to previous 1.6.4.4 (colored) to branchpoint 1.6 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 30 01:36:38 2016 UTC (7 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (colored) to selected 1.18 (colored)

Don't call virtio_enqueue_abort when virtio_enqueue_reserve fails.
Pointed out by uwe@

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:10 2016 UTC (7 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.10: +50 -3 lines
Diff to previous 1.10 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.6.4.4 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:43 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.6.4.3: +54 -7 lines
Diff to previous 1.6.4.3 (colored) to branchpoint 1.6 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 27 03:33:32 2016 UTC (7 years, 6 months ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161004
Changes since 1.11: +48 -2 lines
Diff to previous 1.11 (colored) to selected 1.18 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 16 15:20:50 2016 UTC (7 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored) to selected 1.18 (colored)

modify ldattach() to have default strategy as a parameter

Revision 1.6.4.3 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:04 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.6.4.2: +3 -4 lines
Diff to previous 1.6.4.2 (colored) to branchpoint 1.6 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:41 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.9: +3 -4 lines
Diff to previous 1.9 (colored) to selected 1.18 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.6.4.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:50 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.6.4.1: +92 -39 lines
Diff to previous 1.6.4.1 (colored) to branchpoint 1.6 (colored) to selected 1.18 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 27 16:03:04 2015 UTC (8 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.8: +92 -39 lines
Diff to previous 1.8 (colored) to selected 1.18 (colored)

- Print the negotiated feature bits
- Define a constant for the minimum number of segments and use that.
- Remove unused sc_lock
- Use single variables instead of arrays of 1 element
- To the transfer size and segment size negotiation more correctly
- Make vr_bp NULL when unused.
- Add missing abort calls

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:09 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.6: +3 -4 lines
Diff to previous 1.6 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.8 / (download) - annotate - [select for diffs], Tue May 5 10:56:13 2015 UTC (8 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) to selected 1.18 (colored)

Use NULL for initialization of sc_config_change

Revision 1.7 / (download) - annotate - [select for diffs], Mon Apr 13 16:33:25 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored) to selected 1.18 (colored)

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

Revision 1.5.6.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:43 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored) to selected 1.18 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.5.20.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:54 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored) next main 1.6 (colored) to selected 1.18 (colored)

Rebase.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 22 01:55:54 2014 UTC (9 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored) to selected 1.18 (colored)

Introduce VIRTIO_F_PCI_INTR_MPSAFE for virtio

It is set by a child driver, e.g., if_vioif. If set, virtio sets
PCI_INTR_MPSAFE for pci_intr_establish.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:51 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.2: +13 -18 lines
Diff to previous 1.2 (colored) next main 1.3 (colored) to selected 1.18 (colored)

sync with head

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:45 2012 UTC (12 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.4: +2 -6 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.18 (colored)

merge to -current.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Feb 2 19:43:06 2012 UTC (12 years, 2 months ago) by tls
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Changes since 1.4: +2 -6 lines
Diff to previous 1.4 (colored) to selected 1.18 (colored)

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.

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Wed Jan 25 21:18:15 2012 UTC (12 years, 2 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.4.4.1: +559 -0 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.18 (colored)

Pull up following revision(s) (requested by hannken in ticket #1715):
- Be robust against an invalid timer period value.
sys/dev/ic/hpetreg.h			Rev. 1.4
sys/dev/ic/hpet.c			Rev. 1.8

- Fix wrong definition of LAPIC_LEVEL_ASSERT / _MASK
sys/arch/x86/include/i82489reg.h	Rev. 1.11

- Add virtio driver - speed up disk and network access in virtual environments
sys/arch/i386/conf/GENERIC		Rev. 1.1055
sys/arch/i386/conf/ALL			Rev. 1.325
sys/arch/amd64/conf/GENERIC		Rev. 1.338
sys/dev/pci/files.pci			Rev. 1.350
sys/dev/pci/if_vioif.c			Rev. 0-1.2
sys/dev/pci/ld_virtio.c			Rev. 0-1.4
sys/dev/pci/viomb.c			Rev. 0-1.1
sys/dev/pci/virtio.c			Rev. 0-1.3
sys/dev/pci/virtioreg.h			Rev. 0-1.1
sys/dev/pci/virtiovar.h			Rev. 0-1.1
distrib/sets/lists/man/mi		Rev. 1.1352 and 1.1358
share/man/man4/Makefile			Rev. 1.573 and 1.575
share/man/man4/ld.4			Rev. 1.19
share/man/man4/virtio.4			Rev. 0-1.4
share/man/man4/vioif.4			Rev. 0-1.2
share/man/man4/viomb.4			Rev. 0-1.2

Allow NetBSD to run unmodified under Linux/kvm.

Revision 1.4.4.1, Sat Dec 3 10:53:09 2011 UTC (12 years, 4 months ago) by riz
Branch: netbsd-5
Changes since 1.4: +0 -557 lines
FILE REMOVED

file ld_virtio.c was added on branch netbsd-5 on 2012-01-25 21:18:15 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Sat Dec 3 10:53:09 2011 UTC (12 years, 4 months ago) by hannken
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: netbsd-5, jmcneill-usbmp
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored) to selected 1.18 (colored)

Don't try to set ld->sc_maxxfer below MAXPHYS.
At least genfs_io assumes 'ld->sc_maxxfer == MAXPHYS'.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Nov 23 19:40:42 2011 UTC (12 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.2: +11 -14 lines
Diff to previous 1.2 (colored) to selected 1.18 (colored)

According to "Virtio PCI Card Specification v0.9.2 DRAFT" there is no
feature named VIRTIO_BLK_F_SECTOR_MAX so remove it.  Linux seems to use
this feature bit as VIRTIO_BLK_F_TOPOLOGY.

Use VIRTIO_BLK_F_BLK_SIZE * VIRTIO_BLK_F_SEG_MAX as the drivers maxxfer
and reorder so sc_secsize gets set before use.

As maxxfer may not be a multiple of page size add one more segment to
the dma maps.

Tested on Linux 3.1.1 host by Guillaume Lasmayous.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Nov 2 14:34:09 2011 UTC (12 years, 5 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.1: +4 -3 lines
Diff to previous 1.1 (colored) to selected 1.18 (colored)

Make sure we allocate enough segments for the request dma maps.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 30 12:12:21 2011 UTC (12 years, 5 months ago) by hannken
Branch: MAIN
Diff to selected 1.18 (colored)

Import of the virtio driver written by MINOURA Makoto <minoura@netbsd.org>
with minor changes to make it compile an run on -current.  This driver
speeds up disk and network access in virtual environments like KVM.

Enabled on i386 and amd64.  Tested with a CentOS 5.7 x86_64 host.

See http://ozlabs.org/~rusty/virtio-spec/virtio.pdf for the specification.

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>