<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/dev/smbus, branch release/8.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2009-03-09T13:30:00Z</updated>
<entry>
<title>Make generic_intr routines match prototype.</title>
<updated>2009-03-09T13:30:00Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2009-03-09T13:30:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b29df1b26d0a5366f6907daf93f6ba172e3c789c'/>
<id>urn:sha1:b29df1b26d0a5366f6907daf93f6ba172e3c789c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>- Change ichsmb(4) to follow the format of all the other smbus controllers</title>
<updated>2009-02-03T16:14:37Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2009-02-03T16:14:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=bb6bb7fe1b631c51bbd276d09f925fdba70dd585'/>
<id>urn:sha1:bb6bb7fe1b631c51bbd276d09f925fdba70dd585</id>
<content type='text'>
  for slave addressing by using left-adjusted slave addresses (i.e.
  xxxxxxx0b).
- Require the low bit of the slave address to always be zero in smb(4) to
  help catch broken applications.
- Adjust some code in the IPMI driver to not convert the slave address for
  SSIF to a right-adjusted address.  I (or possibly ambrisko@) added this in
  the past to (unknowingly) work around the bug in ichsmb(4).

Submitted by:	 Andriy Gapon &lt;avg of icyb.net.ua&gt; (1,2)
MFC after:	1 month
</content>
</entry>
<entry>
<title>- Store the device_t of the smbX device in the softc.</title>
<updated>2008-06-06T18:45:32Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2008-06-06T18:45:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=697218c9b6ccfecb303297df701641fa70dbf4d6'/>
<id>urn:sha1:697218c9b6ccfecb303297df701641fa70dbf4d6</id>
<content type='text'>
- Store the softc of the device in the 'si_drv1' of the cdev.
- Lookup the softc via 'si_drv1' in cdev methods rather than using the
  minor number as a unit for devclass_get_softc().
- Lookup the device_t via the softc field in cdev methods rather than
  using the minor number as a unit for devclass_get_device().
- Add a mutex to the softc to protect 'sc_opened'.
- Remove D_NEEDGIANT as all the smbus drivers are now MPSAFE and this driver
  is now MPSAFE.
- Remove some checks for NULL softc pointers that can't happen and don't
  bzero the softc during attach.
</content>
</entry>
<entry>
<title>Only support the SMB_OLD_BREAD ioctl if one of COMPAT_FREEBSD[456] is</title>
<updated>2006-09-26T14:38:56Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2006-09-26T14:38:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d93b6afb2b8e9266ea48dbecdd5dd086fb3f0c7d'/>
<id>urn:sha1:d93b6afb2b8e9266ea48dbecdd5dd086fb3f0c7d</id>
<content type='text'>
defined.
</content>
</entry>
<entry>
<title>- Revert making bus_generic_add_child() the default for BUS_ADD_CHILD().</title>
<updated>2006-09-11T22:20:37Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2006-09-11T22:20:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3bb00f61a274685858e022369c683c0bb1af8620'/>
<id>urn:sha1:3bb00f61a274685858e022369c683c0bb1af8620</id>
<content type='text'>
  Instead, we want busses to explicitly specify an add_child routine if they
  want to support identify routines, but by default disallow having outside
  drivers add devices.
- Give smbus(4) an explicit bus_add_child() method.

Requested by:	imp
</content>
</entry>
<entry>
<title>Minor overhaul of SMBus support:</title>
<updated>2006-09-11T20:52:41Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2006-09-11T20:52:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7048a99c3072c258fb37d74f378cf6046af4d976'/>
<id>urn:sha1:7048a99c3072c258fb37d74f378cf6046af4d976</id>
<content type='text'>
- Change smbus_callback() to pass a void * rather than caddr_t.
- Change smbus_bread() to pass a pointer to the count and have it be an
  in/out parameter.  The input is the size of the buffer (same as before),
  but on return it will contain the actual amount of data read back from
  the bus.  Note that this value may be larger than the input value.  It
  is up to the caller to treat this as an error if desired.
- Change the SMB_BREAD ioctl to write out the updated struct smbcmd which
  will contain the actual number of bytes read in the 'count' field.  To
  preserve the previous ABI, the old ioctl value is mapped to SMB_OLD_BREAD
  which doesn't copy the updated smbcmd back out to userland.  I doubt anyone
  actually used the old BREAD anyway as it was rediculous to do a bulk-read
  but not tell the using program how much data was actually read.
- Make the smbus driver and devclass public in the smbus module and
  push all the DRIVER_MODULE()'s for attaching the smbus driver to
  various foosmb drivers out into the foosmb modules.  This makes all
  the foosmb logic centralized and allows new foosmb modules to be
  self-contained w/o having to hack smbus.c everytime a new smbus driver
  is added.
- Add a new SMB_EINVAL error bit and use it in place of EINVAL to return
  an error for bad arguments (such as invalid counts for bread and bwrite).
- Map SMB bus error bits to EIO in smbus_error().
- Make the smbus driver call bus_generic_probe() and require child drivers
  such as smb(4) to create device_t's via identify routines.  Previously,
  smbus just created one anonymous device during attach, and if you had
  multiple drivers that could attach it was just random chance as to which
  driver got to probe for the sole device_t first.
- Add a mutex to the smbus(4) softc and use it in place of dummy splhigh()
  to protect the 'owner' field and perform necessary synchronization for
  smbus_request_bus() and smbus_release_bus().
- Change the bread() and bwrite() methods of alpm(4), amdpm(4), and
  viapm(4) to only perform a single transaction and not try to use a
  loop of multiple transactions for a large request.  The framing and
  commands to use for a large transaction depend on the upper-layer
  protocol (such as SSIF for IPMI over SMBus) from what I can tell, and the
  smb(4) driver never allowed bulk read/writes of more than 32-bytes
  anyway.  The other smb drivers only performed single transactions.
- Fix buffer overflows in the bread() methods of ichsmb(4), alpm(4),
  amdpm(4), amdsmb(4), intpm(4), and nfsmb(4).
- Use SMB_xxx errors in viapm(4).
- Destroy ichsmb(4)'s mutex after bus_generic_detach() to avoid problems
  from child devices making smb upcalls that would use the mutex during
  their detach methods.

MFC after:	1 week
Reviewed by:	jmg (mostly)
</content>
</entry>
<entry>
<title>Drivers for AMD-8111 and NVIDIA nForce2/3/4 SMBus 2.0 controllers.</title>
<updated>2005-12-21T15:49:51Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-12-21T15:49:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4d5f30e06efe411d874e5b2ed59b6dd54e89a493'/>
<id>urn:sha1:4d5f30e06efe411d874e5b2ed59b6dd54e89a493</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Create "smb" device when "smbus" device is attached, so that it's</title>
<updated>2005-12-20T21:06:57Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-12-20T21:06:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=9a77af905efa71b75b2a5bbb7ff178c4ebdb5b9b'/>
<id>urn:sha1:9a77af905efa71b75b2a5bbb7ff178c4ebdb5b9b</id>
<content type='text'>
possible to load/unload smb.ko and smbus-implementing driver in
any order, and get expected results.
</content>
</entry>
<entry>
<title>Stop creating duplicate "smb" devices when unloading/loading smb.ko,</title>
<updated>2005-12-20T14:26:47Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-12-20T14:26:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d01c2eedae44ffd3c645e67259dfc76b866fe2c3'/>
<id>urn:sha1:d01c2eedae44ffd3c645e67259dfc76b866fe2c3</id>
<content type='text'>
using the protection mechanisms described in device_add_child(9).
</content>
</entry>
<entry>
<title>Remove public declarations of variables that were forgotten when they were</title>
<updated>2005-08-10T07:10:02Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2005-08-10T07:10:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c11ba30c9af8ded4f6cd557dd9c288488c78be36'/>
<id>urn:sha1:c11ba30c9af8ded4f6cd557dd9c288488c78be36</id>
<content type='text'>
made static.
</content>
</entry>
</feed>
