<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/ciss, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>chore: replace {0, 0} with {DEV,KOBJ}METHOD_END</title>
<updated>2026-02-25T05:59:34+00:00</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2026-02-21T06:14:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0fc6c3f731a2cca3120798806c330a3081c9424b'/>
<id>0fc6c3f731a2cca3120798806c330a3081c9424b</id>
<content type='text'>
Both of the aforementioned macros have been present in FreeBSD
for well over a decade: 2009 for `KOBJMETHOD_END`; 2011 for
`DEVMETHOD_END`.

Adapt all hardcoded references of `{0, 0}` with `DEVMETHOD_END`
and `KOBJMETHOD_END` as appropriate. This helps ensure that
future adaptations to drivers following patterns documented
in driver(9) can be made more easily/without issue.

MFC after:	1 week
Differential Revision:	 https://reviews.freebsd.org/D55414
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both of the aforementioned macros have been present in FreeBSD
for well over a decade: 2009 for `KOBJMETHOD_END`; 2011 for
`DEVMETHOD_END`.

Adapt all hardcoded references of `{0, 0}` with `DEVMETHOD_END`
and `KOBJMETHOD_END` as appropriate. This helps ensure that
future adaptations to drivers following patterns documented
in driver(9) can be made more easily/without issue.

MFC after:	1 week
Differential Revision:	 https://reviews.freebsd.org/D55414
</pre>
</div>
</content>
</entry>
<entry>
<title>ciss(4): Fix a typo in a debug messsage</title>
<updated>2025-10-31T18:50:41+00:00</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2025-10-29T15:36:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=84d75bb018e1800d610760191ff64c3eebcb46d7'/>
<id>84d75bb018e1800d610760191ff64c3eebcb46d7</id>
<content type='text'>
- s/unspported/unsupported/

MFC after:	5 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- s/unspported/unsupported/

MFC after:	5 days
</pre>
</div>
</content>
</entry>
<entry>
<title>ciss: Don't panic on null CR ciss_dequeue_notify</title>
<updated>2024-10-14T05:37:46+00:00</updated>
<author>
<name>Peter Eriksson</name>
<email>pen@lysator.liu.se</email>
</author>
<published>2024-10-14T04:01:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b339ab1491055d89415f85b6d1a03423193178f9'/>
<id>b339ab1491055d89415f85b6d1a03423193178f9</id>
<content type='text'>
Apparently, sometimes on hot plug/unplug, a null cr comes back from
ciss_dequeue_notify. This is clearly a bug, and by ignoring it we're
papering over that bug. We only ever wake the thread after enqueing a
notification or setting a bit about killing the thread, so once we check
the bit isn't the cause, cr can't be NULL unless something else has
dequeued it.

Ideally, this would be fixed, rather than papered over, but this makes a
very old card somewhat more useable for external enclosures. I suspect
it's a race when we set CISS_THREAD_SHUT and another flag (the latter
w/o ciss_mtx held), but I don't see it and w/o hardware to reproduce
it would be hard to know for sure.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Apparently, sometimes on hot plug/unplug, a null cr comes back from
ciss_dequeue_notify. This is clearly a bug, and by ignoring it we're
papering over that bug. We only ever wake the thread after enqueing a
notification or setting a bit about killing the thread, so once we check
the bit isn't the cause, cr can't be NULL unless something else has
dequeued it.

Ideally, this would be fixed, rather than papered over, but this makes a
very old card somewhat more useable for external enclosures. I suspect
it's a race when we set CISS_THREAD_SHUT and another flag (the latter
w/o ciss_mtx held), but I don't see it and w/o hardware to reproduce
it would be hard to know for sure.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</pre>
</div>
</content>
</entry>
<entry>
<title>ciss: hw.ciss.initator_id to set the initiator ID</title>
<updated>2024-10-14T05:37:46+00:00</updated>
<author>
<name>Peter Eriksson</name>
<email>pen@lysator.liu.se</email>
</author>
<published>2024-10-14T04:01:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fd95966af50bab6229bc5e67fadc7ffd915f77f5'/>
<id>fd95966af50bab6229bc5e67fadc7ffd915f77f5</id>
<content type='text'>
Add hw.ciss.inititor_id to set the initiator to something other than the
default.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add hw.ciss.inititor_id to set the initiator to something other than the
default.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</pre>
</div>
</content>
</entry>
<entry>
<title>ciss: Add max physical target</title>
<updated>2024-10-14T05:24:15+00:00</updated>
<author>
<name>Peter Eriksson</name>
<email>pen@lysator.liu.se</email>
</author>
<published>2024-10-14T04:01:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=45645518ea19ccb4761aee3a525aab2f323d37d4'/>
<id>45645518ea19ccb4761aee3a525aab2f323d37d4</id>
<content type='text'>
Add support for tracking the maximum physical target and using that to
override the maximum logical target.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for tracking the maximum physical target and using that to
override the maximum logical target.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</pre>
</div>
</content>
</entry>
<entry>
<title>ciss: Expose tunable hw.ciss.force_interrupt as sysctl</title>
<updated>2024-10-14T05:24:06+00:00</updated>
<author>
<name>Peter Eriksson</name>
<email>pen@lysator.liu.se</email>
</author>
<published>2024-10-14T04:01:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7c74337e2c3d2269d1559f4e5541c0a3f402d814'/>
<id>7c74337e2c3d2269d1559f4e5541c0a3f402d814</id>
<content type='text'>
Expose the hw.ciss.force_interrupt tuneable as a sysctl and make it
writeable at runtime.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Expose the hw.ciss.force_interrupt tuneable as a sysctl and make it
writeable at runtime.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</pre>
</div>
</content>
</entry>
<entry>
<title>ciss: Expose tunable hw.ciss.force_transport as sysctl</title>
<updated>2024-10-14T05:23:54+00:00</updated>
<author>
<name>Peter Eriksson</name>
<email>pen@lysator.liu.se</email>
</author>
<published>2024-10-14T04:01:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=77af8c6db25ff6154268eb17f54f082a7eb61ea0'/>
<id>77af8c6db25ff6154268eb17f54f082a7eb61ea0</id>
<content type='text'>
Expose the hw.ciss.force_transport tuneable as a sysctl and make it
writeable at runtime.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Expose the hw.ciss.force_transport tuneable as a sysctl and make it
writeable at runtime.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</pre>
</div>
</content>
</entry>
<entry>
<title>ciss: Expose tunable hw.ciss.nop_message_heartbeat as sysctl</title>
<updated>2024-10-14T05:23:45+00:00</updated>
<author>
<name>Peter Eriksson</name>
<email>pen@lysator.liu.se</email>
</author>
<published>2024-10-14T04:01:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=cec58bba6425d4b9cf19a9ede9ca0dc00c1d48e3'/>
<id>cec58bba6425d4b9cf19a9ede9ca0dc00c1d48e3</id>
<content type='text'>
Expose the hw.ciss.nop_message_heartbeat tuneable as a sysctl and make
it writeable at runtime.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Expose the hw.ciss.nop_message_heartbeat tuneable as a sysctl and make
it writeable at runtime.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</pre>
</div>
</content>
</entry>
<entry>
<title>ciss: Expose tunable hw.ciss.expose_hidden_physical as sysctl</title>
<updated>2024-10-14T05:23:36+00:00</updated>
<author>
<name>Peter Eriksson</name>
<email>pen@lysator.liu.se</email>
</author>
<published>2024-10-14T04:01:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a35564358ac442d5d7a5c9c2dd0544f07b1963e7'/>
<id>a35564358ac442d5d7a5c9c2dd0544f07b1963e7</id>
<content type='text'>
Expose the hw.ciss.expose_hidden_physical tuneable as a sysctl
and make it writeable at runtime.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Expose the hw.ciss.expose_hidden_physical tuneable as a sysctl
and make it writeable at runtime.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</pre>
</div>
</content>
</entry>
<entry>
<title>ciss: Report more errors at higher ciss_verbose levels</title>
<updated>2024-10-14T05:23:25+00:00</updated>
<author>
<name>Peter Eriksson</name>
<email>pen@lysator.liu.se</email>
</author>
<published>2024-10-14T04:01:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d8b024673bbfb32259030db7e54f043f3e471abe'/>
<id>d8b024673bbfb32259030db7e54f043f3e471abe</id>
<content type='text'>
Report more information on errors, including the the opcode.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Report more information on errors, including the the opcode.

PR: 246279
Reviewed by: imp
Tested by: Marek Zarychta
Differential Revision: https://reviews.freebsd.org/D25155
</pre>
</div>
</content>
</entry>
</feed>
