[PATCH arm/aspeed/ast2500 v2] ipmi: add an Aspeed KCS IPMI BMC driver

2018-01-24 Thread Haiyue Wang
and this driver implements the BMC side of the KCS interface. Signed-off-by: Haiyue Wang --- v1->v2 - Divide the driver into two parts, one handles the BMC KCS IPMI 2.0 state; the other handles the BMC KCS controller such as AST2500 IO accessing. - Use the spin lock APIs to handle the dev

[PATCH arm/aspeed/ast2500 v3 1/2] ipmi: add a KCS IPMI BMC driver

2018-02-01 Thread Haiyue Wang
which meets the requirement of the BMC (Baseboard Management Controllers) side for handling the IPMI request from host system software. Signed-off-by: Haiyue Wang --- drivers/char/ipmi/Kconfig | 8 + drivers/char/ipmi/Makefile| 1 + drivers/char/ipmi/kcs_bmc.c

[PATCH arm/aspeed/ast2500 v3 2/2] ipmi: add an Aspeed KCS IPMI BMC driver

2018-02-01 Thread Haiyue Wang
and this driver implements the BMC side of the KCS interface. Signed-off-by: Haiyue Wang --- .../devicetree/bindings/ipmi/aspeed-kcs-bmc.txt| 26 ++ drivers/char/ipmi/Kconfig | 12 + drivers/char/ipmi/Makefile | 1 + drivers/char/ipmi

[PATCH arm/aspeed/ast2500 v1] ipmi: add an Aspeed KCS IPMI BMC driver

2018-01-16 Thread Haiyue Wang
and this driver implements the BMC side of the KCS interface. Signed-off-by: Haiyue Wang --- .../devicetree/bindings/ipmi/aspeed-kcs-bmc.txt| 26 + drivers/char/ipmi/Kconfig | 9 + drivers/char/ipmi/Makefile | 1 + drivers/char/ipmi/kcs

[PATCH arm/aspeed/ast2500 v1] eSPI: add Aspeed AST2500 eSPI driver to boot a host with PCH runs on eSPI

2018-01-16 Thread Haiyue Wang
, the following VW (Virtual Wire) messages are done in firmware: 1. SLAVE_BOOT_LOAD_DONE / SLAVE_BOOT_LOAD_STATUS 2. SUS_ACK 3. OOB_RESET_ACK 4. HOST_RESET_ACK Signed-off-by: Haiyue Wang --- .../devicetree/bindings/misc/aspeed-espi-slave.txt | 20 ++ Documentation/misc-devices/espi-slave.rst

[PATCH dts/arm/aspeed-g5 v1] ARM: dts: aspeed-g5: Add IPMI KCS node

2018-03-06 Thread Haiyue Wang
The IPMI KCS device part of the LPC interface and is used for communication with the host processor. Signed-off-by: Haiyue Wang --- arch/arm/boot/dts/aspeed-g5.dtsi | 43 +++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts

[PATCH ipmi/kcs_bmc v1] ipmi: add an NPCM7xx KCS BMC driver

2018-03-22 Thread Haiyue Wang
and its BMC. Signed-off-by: Avi Fishman Signed-off-by: Haiyue Wang --- .../devicetree/bindings/ipmi/npcm7xx-kcs-bmc.txt | 39 drivers/char/ipmi/Kconfig | 15 ++ drivers/char/ipmi/Makefile | 1 + drivers/char/ipmi/kcs_bmc_npcm7xx.c

[PATCH i2c/slave-mqueue v2] i2c: slave-mqueue: add a slave backend to receive and queue messages

2018-03-23 Thread Haiyue Wang
slave mode. This new slave mqueue backend is used to receive and queue messages, it will exposes these messages to userspace by sysfs bin file. Signed-off-by: Haiyue Wang --- v1 -> v2: - Change MQ_MSGBUF_SIZE and MQ_QUEUE_SIZE to be configurable by Kconfig. --- Documentation/i2c/slave-mqu

[PATCH i2c/slave-mqueue v3] i2c: slave-mqueue: add a slave backend to receive and queue messages

2018-03-28 Thread Haiyue Wang
slave mode. This new slave mqueue backend is used to receive and queue messages, it will exposes these messages to userspace by sysfs bin file. Signed-off-by: Haiyue Wang --- v2 -> v3: - Just remove the ';' after the end '}' of i2c_slave_mqueue_probe(). v1 -> v2: -

Re: [PATCH v3 3/5] ipmi: kcs: aspeed: Adapt to new LPC DTS layout

2020-12-20 Thread Haiyue Wang
On 12/21/2020 13:56, Chia-Wei, Wang wrote: Add check against LPC device v2 compatible string to ensure that the fixed device tree layout is adopted. The LPC register offsets are also fixed accordingly. Signed-off-by: Chia-Wei, Wang --- drivers/char/ipmi/kcs_bmc_aspeed.c | 35 +

Re: [PATCH v3 3/5] ipmi: kcs: aspeed: Adapt to new LPC DTS layout

2020-12-21 Thread Haiyue Wang
On 12/21/2020 15:53, Haiyue Wang wrote: On 12/21/2020 13:56, Chia-Wei, Wang wrote: Add check against LPC device v2 compatible string to ensure that the fixed device tree layout is adopted. The LPC register offsets are also fixed accordingly. Signed-off-by: Chia-Wei, Wang ---   drivers/char

Re: [PATCH v4 3/5] ipmi: kcs: aspeed: Adapt to new LPC DTS layout

2020-12-29 Thread Haiyue Wang
--- 1 file changed, 16 insertions(+), 11 deletions(-) Acked-by: Haiyue Wang

[PATCH dts/arm/aspeed-g5 v1] ARM: dts: aspeed-g5: Add IPMI KCS nodes for SMS and SMM mode

2018-03-31 Thread Haiyue Wang
– 0CA3h | kcs3| SMM Interface | SMI handling | 0CA4h – 0CA5h | kcs4| Signed-off-by: Haiyue Wang --- The kcs_bmc_aspeed driver is in linux-next now: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/char/ipmi/kcs_bmc_aspeed.c?h=next-20180329 --- arch

[PATCH i2c/slave-mqueue v4] i2c: slave-mqueue: add a slave backend to receive and queue messages

2018-04-02 Thread Haiyue Wang
slave mode. This new slave mqueue backend is used to receive and queue messages, it will exposes these messages to userspace by sysfs bin file. Signed-off-by: Haiyue Wang --- v3 -> v4: - Drop the small message after receiving I2C STOP. v2 -> v3: - Just remove the ';' afte

[PATCH dts/arm/aspeed-g5 v1] ARM: dts: aspeed-g5: Add IPMI KCS node

2018-03-03 Thread Haiyue Wang
The IPMI KCS device part of the LPC interface and is used for communication with the host processor. Signed-off-by: Haiyue Wang --- Hi Joel & Andrew, The kcs-bmc-aspeed module has been in: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/char/

[PATCH i2c/slave-mqueue v5] i2c: slave-mqueue: add a slave backend to receive and queue messages

2018-04-23 Thread Haiyue Wang
slave mode. This new slave mqueue backend is used to receive and queue messages, it will exposes these messages to userspace by sysfs bin file. Signed-off-by: Haiyue Wang --- v4 -> v5: - Typo: bellowing -> the below v3 -> v4: - Drop the small message after receiving I2C STOP.

[PATCH i2c/slave-mqueue v1] i2c: slave-mqueue: add a slave backend to receive and queue messages

2018-03-16 Thread Haiyue Wang
slave mode. This new slave mqueue backend is used to receive and queue messages, it will exposes these messages to userspace by sysfs bin file. Signed-off-by: Haiyue Wang --- Documentation/i2c/slave-mqueue-backend.rst | 125 ++ drivers/i2c/Kconfig| 13

[PATCH ipmi/kcs_bmc v1] ipmi: kcs_bmc: optimize the data buffers allocation

2018-03-15 Thread Haiyue Wang
Allocate a continuous memory block for the three KCS data buffers with related index assignment. Signed-off-by: Haiyue Wang --- drivers/char/ipmi/kcs_bmc.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/char/ipmi/kcs_bmc.c b/drivers/char/ipmi/kcs_bmc.c

[PATCH ipmi/kcs_bmc v3] ipmi: kcs_bmc: make the code be more clean

2018-02-21 Thread Haiyue Wang
mment style for 'SPDX-License-Identifier'. Signed-off-by: Haiyue Wang --- v2 -> v3: - Make the commit message be more understandable. v1 -> v2: - Add 'SPDX-License-Identifier' style for header files modification. --- drivers/char/ipmi/kcs_bmc.c| 32 ++

[PATCH ipmi/kcs_bmc v4] ipmi: kcs_bmc: make the code be more clean

2018-02-21 Thread Haiyue Wang
;s comment style for 'SPDX-License-Identifier'. Correct the header file's macro defination end comment which is old file name. Remove the space between the comment words and colon by referring other modules. Signed-off-by: Haiyue Wang --- v3 -> v4: - Correct the header file&#

[PATCH arm/aspeed/ast2500 v2] eSPI: add ASPEED AST2500 eSPI driver to boot a host with PCH runs on eSPI

2018-02-22 Thread Haiyue Wang
, the following VW (Virtual Wire) messages are done in firmware: 1. SLAVE_BOOT_LOAD_DONE / SLAVE_BOOT_LOAD_STATUS 2. SUS_ACK 3. OOB_RESET_ACK 4. HOST_RESET_ACK Signed-off-by: Haiyue Wang --- v1 -> v2: - Fix the checkpatch.pl warning in file espi-slave.rst Missing or malformed SPDX-Lice

[PATCH arm/aspeed/ast2500 v3] eSPI: add ASPEED AST2500 eSPI driver to boot a host with PCH runs on eSPI

2018-02-23 Thread Haiyue Wang
, the following VW (Virtual Wire) messages are done in firmware: 1. SLAVE_BOOT_LOAD_DONE / SLAVE_BOOT_LOAD_STATUS 2. SUS_ACK 3. OOB_RESET_ACK 4. HOST_RESET_ACK Signed-off-by: Haiyue Wang --- v2 -> v3: - Remove the unused header file reference. - Change some code lines sequence. v1 -> v2:

[PATCH arm/aspeed/ast2500 v4 1/2] ipmi: add a KCS IPMI BMC driver

2018-02-01 Thread Haiyue Wang
r the KCS (Keyboard Controller Style) IPMI interface which meets the requirement of the BMC (Baseboard Management Controllers) side for handling the IPMI request from host system software. Signed-off-by: Haiyue Wang --- drivers/char/ipmi/Kconfig | 8 + drivers/char/ipmi/Makefile| 1 +

[PATCH arm/aspeed/ast2500 v4 2/2] ipmi: add an Aspeed KCS IPMI BMC driver

2018-02-01 Thread Haiyue Wang
and this driver implements the BMC side of the KCS interface. Signed-off-by: Haiyue Wang --- .../devicetree/bindings/ipmi/aspeed-kcs-bmc.txt| 26 ++ drivers/char/ipmi/Kconfig | 12 + drivers/char/ipmi/Makefile | 1 + drivers/char/ipmi

[PATCH arm/aspeed/ast2500 v5 1/2] ipmi: add a KCS IPMI BMC driver

2018-02-01 Thread Haiyue Wang
t;ipmi-kcs%u", channel); + + spin_lock_init(&kcs_bmc->lock); + kcs_bmc->channel = channel; + + mutex_init(&kcs_bmc->mutex); + init_waitqueue_head(&kcs_bmc->queue); + + kcs_bmc->data_in = devm_kmalloc(dev, KCS_MSG_BUFSIZ, GFP_KERNEL); + kcs_bm

[PATCH arm/aspeed/ast2500 v5 2/2] ipmi: add an Aspeed KCS IPMI BMC driver

2018-02-01 Thread Haiyue Wang
and this driver implements the BMC side of the KCS interface. Signed-off-by: Haiyue Wang --- .../devicetree/bindings/ipmi/aspeed-kcs-bmc.txt| 26 ++ drivers/char/ipmi/Kconfig | 12 + drivers/char/ipmi/Makefile | 1 + drivers/char/ipmi

[PATCH ipmi/kcs_bmc v1] ipmi: kcs_bmc: make the code be more clean

2018-02-19 Thread Haiyue Wang
arameter has 'struct file *filp'. 3. Change the 'unsigned int' to '__poll_t' to meet the new 'poll' definition. Signed-off-by: Haiyue Wang --- drivers/char/ipmi/kcs_bmc.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) d

[PATCH ipmi/kcs_bmc v2] ipmi: kcs_bmc: make the code be more clean

2018-02-19 Thread Haiyue Wang
uct file *filp'. 3. Change the 'unsigned int' to '__poll_t' to meet the new 'poll' definition. 4. Correct the 'SPDX-License-Identifier' style for header files. Signed-off-by: Haiyue Wang --- drivers/char/ipmi/kcs_bmc.c| 32 +--

[PATCH ipmi/kcs_bmc v5] ipmi: kcs_bmc: coding-style fixes and use new poll type

2018-02-26 Thread Haiyue Wang
Many for coding-style fixes, and update the poll API with the new type '__poll_t', this is new commit from linux-4.16-rc1. Signed-off-by: Haiyue Wang --- v4 -> v5: - Simplify the commit title and message. - Change the 'MODULE_DEVICE_TABLE' position. v3 -> v4: -

[PATCH ipmi/kcs_bmc v6] ipmi: kcs_bmc: coding-style fixes and use new poll type

2018-02-26 Thread Haiyue Wang
Many for coding-style fixes, and update the poll API with the new type '__poll_t', this is new commit from linux-4.16-rc1. Signed-off-by: Haiyue Wang --- v5 -> v6: - Add the missed change to EPOLLIN. v4 -> v5: - Simplify the commit title and message. - Change the 

[PATCH v1] eSPI: add Aspeed AST2500 eSPI driver to boot a host with PCH runs on eSPI

2017-12-28 Thread Haiyue Wang
, the following VW (Virtual Wire) messages are done in firmware: 1. SLAVE_BOOT_LOAD_DONE / SLAVE_BOOT_LOAD_STATUS 2. SUS_ACK 3. OOB_RESET_ACK 4. HOST_RESET_ACK Signed-off-by: Haiyue Wang --- .../devicetree/bindings/misc/aspeed-espi-slave.txt | 20 ++ Documentation/misc-devices/espi-slave.rst

[PATCH linux ipmi for BMC] ipmi: add an Aspeed KCS IPMI BMC driver

2017-12-14 Thread Haiyue Wang
(Keyboard Controller Style) interface is used to perform in-band IPMI communication between a host and its BMC. The device name defaults to '/dev/ipmi-kcsX', X=1,2,3,4. Signed-off-by: Haiyue Wang --- .../devicetree/bindings/mfd/aspeed-lpc.txt | 31 +- drivers/char/ip

RE: [PATCH linux ipmi for BMC] ipmi: add an Aspeed KCS IPMI BMC driver

2017-12-14 Thread Haiyue Wang
rey Minyard [mailto:tcminy...@gmail.com] On Behalf Of Corey Minyard Sent: Friday, December 15, 2017 10:31 To: Haiyue Wang ; openipmi-develo...@lists.sourceforge.net; linux-kernel@vger.kernel.org; Cédric Le Goater ; Jeremy Kerr ; Joel Stanley ; Andrew Jeffery Subject: Re: [PATCH linux ipmi f

[PATCH linux ipmi for BMC v2] ipmi: add an Aspeed KCS IPMI BMC driver

2017-12-14 Thread Haiyue Wang
) interface is used to perform in-band IPMI communication between a host and its BMC. The device name defaults to '/dev/ipmi-kcsX', X=1,2,3,4. Signed-off-by: Haiyue Wang --- .../devicetree/bindings/mfd/aspeed-lpc.txt | 31 +- drivers/char/ipmi/Kconfig

RE: [PATCH linux ipmi for BMC] ipmi: add an Aspeed KCS IPMI BMC driver

2017-12-15 Thread Haiyue Wang
. - haiyue -Original Message- From: Corey Minyard [mailto:tcminy...@gmail.com] On Behalf Of Corey Minyard Sent: Friday, December 15, 2017 21:06 To: Haiyue Wang ; openipmi-develo...@lists.sourceforge.net; linux-kernel@vger.kernel.org; 'Cédric Le Goater' ; 'Jeremy Kerr&#