<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/char/ipmi/ipmb_dev_int.c, branch v5.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.3</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2019-07-24T20:53:21Z</updated>
<entry>
<title>Fix uninitialized variable in ipmb_dev_int.c</title>
<updated>2019-07-24T20:53:21Z</updated>
<author>
<name>Asmaa Mnebhi</name>
<email>Asmaa@mellanox.com</email>
</author>
<published>2019-07-24T19:32:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=71be7b0e7d4069822c89146daed800686db8f147'/>
<id>urn:sha1:71be7b0e7d4069822c89146daed800686db8f147</id>
<content type='text'>
ret at line 112 of ipmb_dev_int.c is uninitialized which
results in a warning during build regressions.
This warning was found by build regression/improvement
testing for v5.3-rc1.

Reported-by: build regression/improvement testing for v5.3-rc1.
Fixes: 51bd6f291583 ("Add support for IPMB driver")
Signed-off-by: Asmaa Mnebhi &lt;Asmaa@mellanox.com&gt;
Message-Id: &lt;571dbb67cf58411d567953d9fb3739eb4789238b.1563996586.git.Asmaa@mellanox.com&gt;
Signed-off-by: Corey Minyard &lt;cminyard@mvista.com&gt;
</content>
</entry>
<entry>
<title>fix platform_no_drv_owner.cocci warnings</title>
<updated>2019-06-23T21:16:52Z</updated>
<author>
<name>kbuild test robot</name>
<email>lkp@intel.com</email>
</author>
<published>2019-06-23T18:50:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a88b6d5668bef303d01b706a35946bfc8e67402c'/>
<id>urn:sha1:a88b6d5668bef303d01b706a35946bfc8e67402c</id>
<content type='text'>
drivers/char/ipmi/ipmb_dev_int.c:352:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Fixes: 51bd6f291583 ("Add support for IPMB driver")
CC: Asmaa Mnebhi &lt;Asmaa@mellanox.com&gt;
Signed-off-by: kbuild test robot &lt;lkp@intel.com&gt;
Message-Id: &lt;20190623185044.GA94834@lkp-kbuild21&gt;
Signed-off-by: Corey Minyard &lt;cminyard@mvista.com&gt;
</content>
</entry>
<entry>
<title>ipmi: ipmb: don't allocate i2c_client on stack</title>
<updated>2019-06-19T14:03:55Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2019-06-19T12:50:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=21feadd024e747123bc0aaba8d8cbef2b5eda058'/>
<id>urn:sha1:21feadd024e747123bc0aaba8d8cbef2b5eda058</id>
<content type='text'>
The i2c_client structure can be fairly large, which leads to
a warning about possible kernel stack overflow in some
configurations:

drivers/char/ipmi/ipmb_dev_int.c:115:16: error: stack frame size of 1032 bytes in function 'ipmb_write' [-Werror,-Wframe-larger-than=]

There is no real reason to even declare an i2c_client, as we can simply
call i2c_smbus_xfer() directly instead of the i2c_smbus_write_block_data()
wrapper.

Convert the ipmb_write() to use an open-coded i2c_smbus_write_block_data()
here, without changing the behavior.

It seems that there is another problem with this implementation;
when user space passes a length of more than I2C_SMBUS_BLOCK_MAX
bytes, all the rest is silently ignored. This should probably be
addressed in a separate patch, but I don't know what the intended
behavior is here.

Fixes: 51bd6f291583 ("Add support for IPMB driver")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Message-Id: &lt;20190619125045.918700-1-arnd@arndb.de&gt;
Acked-by: Asmaa Mnebhi &lt;Asmaa@mellanox.com&gt;
[Broke up a line &gt;80 characters on i2c_smbus_xfer().]
Signed-off-by: Corey Minyard &lt;cminyard@mvista.com&gt;
</content>
</entry>
<entry>
<title>Add support for IPMB driver</title>
<updated>2019-06-10T19:47:10Z</updated>
<author>
<name>Asmaa Mnebhi</name>
<email>Asmaa@mellanox.com</email>
</author>
<published>2019-06-10T18:57:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=51bd6f291583684f495ea498984dfc22049d7fd2'/>
<id>urn:sha1:51bd6f291583684f495ea498984dfc22049d7fd2</id>
<content type='text'>
Support receiving IPMB requests on a Satellite MC from the BMC.
Once a response is ready, this driver will send back a response
to the BMC via the IPMB channel.

Signed-off-by: Asmaa Mnebhi &lt;Asmaa@mellanox.com&gt;
Acked-by: vadimp@mellanox.com
Message-Id: &lt;319690553a0da2a1e80b400941341081b383e5f1.1560192707.git.Asmaa@mellanox.com&gt;
[Move the config option to outside the ipmi msghandler, as it's not
 dependent on that.  Fixed one small whitespace issue.]
Signed-off-by: Corey Minyard &lt;cminyard@mvista.com&gt;
</content>
</entry>
</feed>
