The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.8 / (download) - annotate - [select for diffs], Wed Dec 20 05:33:58 2023 UTC (3 months, 3 weeks ago) by thorpej
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored)

Remove unnecessary <sys/malloc.h>.

Revision 1.6.10.1 / (download) - annotate - [select for diffs], Sat Apr 17 17:26:16 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.6: +15 -8 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Sync with HEAD.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Apr 5 12:19:22 2021 UTC (3 years ago) by palle
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, 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, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.6: +15 -8 lines
Diff to previous 1.6 (colored)

sun4v: Ignore spurious ldc CTRL/ACK/VERS messages (do not reset the connection anymore). Fixes occationals stalls when vdsk uses the ldc service. Observed on both T2000 and T5 host systems

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: +5 -20 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.6 / (download) - annotate - [select for diffs], Tue Oct 15 00:13:52 2019 UTC (4 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, 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.5: +3 -11 lines
Diff to previous 1.5 (colored)

convert more KM_NOSLEEP to KM_SLEEP and remove code to handle failures.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 1 18:00:07 2019 UTC (4 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.4: +3 -10 lines
Diff to previous 1.4 (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.16.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:47 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

Sync with HEAD

Revision 1.3.14.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:42 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.4 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:27 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, 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
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

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: +689 -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: +11 -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: +11 -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: +11 -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 -689 lines
FILE REMOVED

file ldc.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, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-base, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, 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, bouyer-socketcan-base1
Branch point for: tls-maxphys, phil-wifi, pgoyette-compat
Changes since 1.2: +11 -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: +679 -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: +679 -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 -679 lines
FILE REMOVED

file ldc.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 -679 lines
FILE REMOVED

file ldc.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: +7 -7 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>