Re: [Openipmi-developer] [PATCH -next 0/4] Add LCLK control into Aspeed LPC sub drivers

2021-11-03 Thread Zev Weiss
On Wed, Nov 03, 2021 at 08:56:10AM PDT, Jae Hyun Yoo wrote: Hi Zev, Not sure but looks like one of LPC functions is enabled while kernel booting. Looks like that was exactly the clue I needed -- obvious in retrospect, but I realize now that I'm only seeing this happen when I bypass the no

Re: [Openipmi-developer] [PATCH -next 0/4] Add LCLK control into Aspeed LPC sub drivers

2021-11-02 Thread Zev Weiss
On Tue, Nov 02, 2021 at 05:54:30PM PDT, Jae Hyun Yoo wrote: On 11/2/2021 5:30 PM, Zev Weiss wrote: On Tue, Nov 02, 2021 at 05:17:30PM PDT, Jae Hyun Yoo wrote: Hi Zev, On 11/2/2021 5:04 PM, Zev Weiss wrote: On Mon, Nov 01, 2021 at 04:36:38PM PDT, Joel Stanley wrote: On Mon, 1 Nov 2021 at

Re: [Openipmi-developer] [PATCH -next 0/4] Add LCLK control into Aspeed LPC sub drivers

2021-11-02 Thread Zev Weiss
On Mon, Nov 01, 2021 at 04:36:38PM PDT, Joel Stanley wrote: On Mon, 1 Nov 2021 at 23:18, wrote: From: Jae Hyun Yoo Hello all, This series is for appliying below fix to all Aspped LPC sub drivers. https://lore.kernel.org/all/20201208091748.1920-1-wangzhiqiang...@bytedance.com/ An LPC sub dr

Re: [Openipmi-developer] [PATCH -next 0/4] Add LCLK control into Aspeed LPC sub drivers

2021-11-02 Thread Zev Weiss
On Tue, Nov 02, 2021 at 05:17:30PM PDT, Jae Hyun Yoo wrote: Hi Zev, On 11/2/2021 5:04 PM, Zev Weiss wrote: On Mon, Nov 01, 2021 at 04:36:38PM PDT, Joel Stanley wrote: On Mon, 1 Nov 2021 at 23:18, wrote: From: Jae Hyun Yoo Hello all, This series is for appliying below fix to all Aspped

Re: [Openipmi-developer] [PATCH v4 11/16] ipmi: kcs_bmc: Add serio adaptor

2021-06-18 Thread Zev Weiss
rtions(+) > create mode 100644 drivers/char/ipmi/kcs_bmc_serio.c > Reviewed-by: Zev Weiss ___ Openipmi-developer mailing list Openipmi-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Re: [Openipmi-developer] [PATCH v4 08/16] ipmi: kcs_bmc: Decouple the IPMI chardev from the core

2021-06-18 Thread Zev Weiss
cs_bmc_client.h| 14 + > 5 files changed, 128 insertions(+), 13 deletions(-) > Reviewed-by: Zev Weiss ___ Openipmi-developer mailing list Openipmi-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Re: [Openipmi-developer] [PATCH v4 06/16] ipmi: kcs_bmc: Split headers into device and client

2021-06-18 Thread Zev Weiss
ons(-) > create mode 100644 drivers/char/ipmi/kcs_bmc_client.h > create mode 100644 drivers/char/ipmi/kcs_bmc_device.h > Reviewed-by: Zev Weiss ___ Openipmi-developer mailing list Openipmi-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Re: [Openipmi-developer] [PATCH v4 01/16] ipmi: kcs_bmc_aspeed: Use of match data to extract KCS properties

2021-06-18 Thread Zev Weiss
bmc_aspeed.c | 154 ++--- > 1 file changed, 77 insertions(+), 77 deletions(-) > Reviewed-by: Zev Weiss ___ Openipmi-developer mailing list Openipmi-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Re: [Openipmi-developer] [PATCH v3 07/16] ipmi: kcs_bmc: Strip private client data from struct kcs_bmc

2021-05-21 Thread Zev Weiss
t >kcs_bmc_client` is embedded in the client's private data and we exploit >container_of() to translate as required. > >Finally, now that it is free of client data, `struct kcs_bmc` is renamed >to `struct kcs_bmc_device` to contrast `struct kcs_bmc_client`. > &g

Re: [Openipmi-developer] [PATCH v3 09/16] ipmi: kcs_bmc: Allow clients to control KCS IRQ state

2021-05-21 Thread Zev Weiss
/char/ipmi/kcs_bmc_npcm7xx.c >index 9f0b168e487c..f8b7162fb830 100644 >--- a/drivers/char/ipmi/kcs_bmc_npcm7xx.c >+++ b/drivers/char/ipmi/kcs_bmc_npcm7xx.c >@@ -38,6 +38,7 @@ > #define KCS2CTL 0x2A > #define KCS3CTL 0x3C > #defineKCS_CT

Re: [Openipmi-developer] [PATCH v3 08/16] ipmi: kcs_bmc: Decouple the IPMI chardev from the core

2021-05-21 Thread Zev Weiss
On Mon, May 10, 2021 at 12:42:05AM CDT, Andrew Jeffery wrote: >Now that we have untangled the data-structures, split the userspace >interface out into its own module. Userspace interfaces and drivers are >registered to the KCS BMC core to support arbitrary binding of either. > >Signed-off-by: Andre

Re: [Openipmi-developer] [PATCH v3 11/16] ipmi: kcs_bmc: Add serio adaptor

2021-05-21 Thread Zev Weiss
On Mon, May 10, 2021 at 12:42:08AM CDT, Andrew Jeffery wrote: >kcs_bmc_serio acts as a bridge between the KCS drivers in the IPMI >subsystem and the existing userspace interfaces available through the >serio subsystem. This is useful when userspace would like to make use of >the BMC KCS devices for

Re: [Openipmi-developer] [PATCH v3 06/16] ipmi: kcs_bmc: Split headers into device and client

2021-05-21 Thread Zev Weiss
On Mon, May 10, 2021 at 12:42:03AM CDT, Andrew Jeffery wrote: >Strengthen the distinction between code that abstracts the >implementation of the KCS behaviours (device drivers) and code that >exploits KCS behaviours (clients). Neither needs to know about the APIs >required by the other, so provide

Re: [Openipmi-developer] [PATCH v3 14/16] ipmi: kcs_bmc_aspeed: Implement KCS SerIRQ configuration

2021-05-21 Thread Zev Weiss
On Mon, May 10, 2021 at 12:42:11AM CDT, Andrew Jeffery wrote: >Apply the SerIRQ ID and level/sense behaviours from the devicetree if >provided. > >Signed-off-by: Andrew Jeffery >--- > drivers/char/ipmi/kcs_bmc_aspeed.c | 182 - > 1 file changed, 180 insertions(+), 2 dele

Re: [Openipmi-developer] [PATCH v3 01/16] ipmi: kcs_bmc_aspeed: Use of match data to extract KCS properties

2021-05-21 Thread Zev Weiss
On Mon, May 10, 2021 at 12:41:58AM CDT, Andrew Jeffery wrote: >Unpack and remove the aspeed_kcs_probe_of_v[12]() functions to aid >rearranging how the private device-driver memory is allocated. > >Signed-off-by: Andrew Jeffery >--- > drivers/char/ipmi/kcs_bmc_aspeed.c | 154 ++-

Re: [Openipmi-developer] [PATCH v2 10/21] ipmi: kcs_bmc: Turn the driver data-structures inside-out

2021-04-09 Thread Zev Weiss
On Fri, Apr 09, 2021 at 01:25:26AM CDT, Zev Weiss wrote: >On Fri, Apr 09, 2021 at 12:59:09AM CDT, Andrew Jeffery wrote: >> >> >>On Fri, 9 Apr 2021, at 13:27, Zev Weiss wrote: >>>On Fri, Mar 19, 2021 at 01:27:41AM CDT, Andrew Jeffery wrote: >>>>Make the KCS

Re: [Openipmi-developer] [PATCH v2 09/21] ipmi: kcs_bmc: Split out kcs_bmc_cdev_ipmi

2021-04-09 Thread Zev Weiss
On Fri, Apr 09, 2021 at 12:48:21AM CDT, Andrew Jeffery wrote: > > >On Fri, 9 Apr 2021, at 13:26, Zev Weiss wrote: >> On Fri, Mar 19, 2021 at 01:27:40AM CDT, Andrew Jeffery wrote: >> >Take steps towards defining a coherent API to separate the KCS device >> >dri

Re: [Openipmi-developer] [PATCH v2 17/21] dt-bindings: ipmi: Convert ASPEED KCS binding to schema

2021-04-09 Thread Zev Weiss
On Fri, Apr 09, 2021 at 12:44:04AM CDT, Zev Weiss wrote: >On Fri, Apr 09, 2021 at 12:33:10AM CDT, Andrew Jeffery wrote: >> >> >>On Fri, 9 Apr 2021, at 14:45, Zev Weiss wrote: >>>On Fri, Mar 19, 2021 at 01:27:48AM CDT, Andrew Jeffery wrote: >>>>Given the

Re: [Openipmi-developer] [PATCH v2 10/21] ipmi: kcs_bmc: Turn the driver data-structures inside-out

2021-04-08 Thread Zev Weiss
On Fri, Apr 09, 2021 at 12:59:09AM CDT, Andrew Jeffery wrote: > > >On Fri, 9 Apr 2021, at 13:27, Zev Weiss wrote: >> On Fri, Mar 19, 2021 at 01:27:41AM CDT, Andrew Jeffery wrote: >> >Make the KCS device drivers responsible for allocating their own memory. >> > &

Re: [Openipmi-developer] [PATCH v2 17/21] dt-bindings: ipmi: Convert ASPEED KCS binding to schema

2021-04-08 Thread Zev Weiss
On Fri, Apr 09, 2021 at 12:33:10AM CDT, Andrew Jeffery wrote: > > >On Fri, 9 Apr 2021, at 14:45, Zev Weiss wrote: >> On Fri, Mar 19, 2021 at 01:27:48AM CDT, Andrew Jeffery wrote: >> >Given the deprecated binding, improve the ability to detect issues in >> >the

Re: [Openipmi-developer] [PATCH v2 20/21] ipmi: kcs_bmc_aspeed: Fix IBFIE typo from datasheet

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:51AM CDT, Andrew Jeffery wrote: >Input Buffer Full Interrupt Enable (IBFIE) is typoed as IBFIF for some >registers in the datasheet. Fix the driver to use the sensible acronym. > >Signed-off-by: Andrew Jeffery Reviewed-b

Re: [Openipmi-developer] [PATCH v2 08/21] ipmi: kcs_bmc: Rename {read, write}_{status, data}() functions

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:39AM CDT, Andrew Jeffery wrote: >Rename the functions in preparation for separating the IPMI chardev out >from the KCS BMC core. > >Signed-off-by: Andrew Jeffery Reviewed-by: Zev Weiss ___ Openipmi-devel

Re: [Openipmi-developer] [PATCH v2 07/21] ipmi: kcs_bmc: Make status update atomic

2021-04-08 Thread Zev Weiss
y Reviewed-by: Zev Weiss ___ Openipmi-developer mailing list Openipmi-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Re: [Openipmi-developer] [PATCH v2 16/21] ipmi: kcs_bmc: Add a "raw" character device interface

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:47AM CDT, Andrew Jeffery wrote: >The existing IPMI chardev encodes IPMI behaviours as the name suggests. >However, KCS devices are useful beyond IPMI (or keyboards), as they >provide a means to generate IRQs and exchange arbitrary data between a >BMC and its host syste

Re: [Openipmi-developer] [PATCH v2 17/21] dt-bindings: ipmi: Convert ASPEED KCS binding to schema

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:48AM CDT, Andrew Jeffery wrote: >Given the deprecated binding, improve the ability to detect issues in >the platform devicetrees. Further, a subsequent patch will introduce a >new interrupts property for specifying SerIRQ behaviour, so convert >before we do any further

Re: [Openipmi-developer] [PATCH v2 15/21] ipmi: kcs_bmc: Don't enforce single-open policy in the kernel

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:46AM CDT, Andrew Jeffery wrote: >Soon it will be possible for one KCS device to have multiple associated >chardevs exposed to userspace (for IPMI and raw-style access). However, >don't prevent userspace from: > >1. Opening more than one chardev at a time, or >2. Openin

Re: [Openipmi-developer] [PATCH v2 14/21] ipmi: kcs_bmc: Allow clients to control KCS IRQ state

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:45AM CDT, Andrew Jeffery wrote: >Add a mechanism for controlling whether the client associated with a >KCS device will receive Input Buffer Full (IBF) and Output Buffer Empty >(OBE) events. This enables an abstract implementation of poll() for KCS >devices. > >A wart i

Re: [Openipmi-developer] [PATCH v2 13/21] ipmi: kcs_bmc: Decouple the IPMI chardev from the core

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:44AM CDT, Andrew Jeffery wrote: >Now that we have untangled the data-structures, split the userspace >interface out into its own module. Userspace interfaces and drivers are >registered to the KCS BMC core to support arbitrary binding of either. > >Signed-off-by: Andre

Re: [Openipmi-developer] [PATCH v2 12/21] ipmi: kcs_bmc: Strip private client data from struct kcs_bmc

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:43AM CDT, Andrew Jeffery wrote: >Move all client-private data out of `struct kcs_bmc` into the KCS client >implementation. > >With this change the KCS BMC core code now only concerns itself with >abstract `struct kcs_bmc` and `struct kcs_bmc_client` types, achieving >e

Re: [Openipmi-developer] [PATCH v2 11/21] ipmi: kcs_bmc: Split headers into device and client

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:42AM CDT, Andrew Jeffery wrote: >Strengthen the distinction between code that abstracts the >implementation of the KCS behaviours (device drivers) and code that >exploits KCS behaviours (clients). Neither needs to know about the APIs >required by the other, so provide

Re: [Openipmi-developer] [PATCH v2 10/21] ipmi: kcs_bmc: Turn the driver data-structures inside-out

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:41AM CDT, Andrew Jeffery wrote: >Make the KCS device drivers responsible for allocating their own memory. > >Until now the private data for the device driver was allocated internal >to the private data for the chardev interface. This coupling required >the slightly awk

Re: [Openipmi-developer] [PATCH v2 09/21] ipmi: kcs_bmc: Split out kcs_bmc_cdev_ipmi

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:40AM CDT, Andrew Jeffery wrote: >Take steps towards defining a coherent API to separate the KCS device >drivers from the userspace interface. Decreasing the coupling will >improve the separation of concerns and enable the introduction of >alternative userspace interfac

Re: [Openipmi-developer] [PATCH v2 06/21] ipmi: kcs_bmc_aspeed: Use of match data to extract KCS properties

2021-04-08 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:37AM CDT, Andrew Jeffery wrote: >Unpack and remove the aspeed_kcs_probe_of_v[12]() functions to aid >rearranging how the private device-driver memory is allocated. > >Signed-off-by: Andrew Jeffery >--- > drivers/char/ipmi/kcs_bmc_aspeed.c | 146 ++-

[Openipmi-developer] Re [PATCH v2 21/21] ipmi: kcs_bmc_aspeed: Optionally apply status address

2021-04-01 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:52AM CDT, Andrew Jeffery wrote: >Some Aspeed KCS devices can derive the status register address from the >address of the data register. As such, the address of the status >register can be implicit in the configuration if desired. On the other >hand, sometimes address s

Re: [Openipmi-developer] [EXTERNAL] [PATCH v2 19/21] ipmi: kcs_bmc_aspeed: Implement KCS SerIRQ configuration

2021-04-01 Thread Zev Weiss
On Fri, Mar 19, 2021 at 01:27:50AM CDT, Andrew Jeffery wrote: >Apply the SerIRQ ID and level/sense behaviours from the devicetree if >provided. > >Signed-off-by: Andrew Jeffery >--- > drivers/char/ipmi/kcs_bmc_aspeed.c | 179 - > 1 file changed, 177 insertions(+), 2 dele

Re: [Openipmi-developer] [PATCH v2 00/21] ipmi: Allow raw access to KCS devices

2021-04-01 Thread Zev Weiss
be much appreciated if you can exercise one >or both. > >Please review! > >Andrew > After rebasing the series onto the OpenBMC dev-5.10 kernel (with only a tiny conflict for the addition of the ast2600 entry in ast_kcs_bmc_match) and enabling CONFIG_IPMI_KCS_BMC_CDEV_IPMI, my e3c246d4i system booted healthily and handled some basic ipmitool operations as expected. Tested-by: Zev Weiss Zev ___ Openipmi-developer mailing list Openipmi-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openipmi-developer