[PATCH platform 0/2] platform/x86: mlx-platform: Fix item counter assignment

2020-12-07 Thread Vadim Pasternak
Fix array names to match assignments for data items and data items counter for power and fan attributes. Patch #1: Provide fixes for system types MSN2700, MSN24xx. Patch #1: Provide fixes for system type MSN2700/ComEx. Vadim Pasternak (2): platform/x86: mlx-platform: Fix item counter

[PATCH platform 1/2] platform/x86: mlx-platform: Fix item counter assignment for MSN2700, MSN24xx systems

2020-12-07 Thread Vadim Pasternak
culation. Fixes: c6acad68eb2d ("platform/mellanox: mlxreg-hotplug: Modify to use a regmap interface") Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/mlx-platform

[PATCH platform 2/2] platform/x86: mlx-platform: Fix item counter assignment for MSN2700/ComEx system

2020-12-07 Thread Vadim Pasternak
culation. Fixes: bdd6e155e0d6 ("platform/x86: mlx-platform: Add support for new system type") Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platfor

RE: [PATCH] platform/x86: mlx-platform: remove an unused variable

2020-12-07 Thread Vadim Pasternak
> -Original Message- > From: Hans de Goede > Sent: Monday, December 07, 2020 3:54 PM > To: Arnd Bergmann ; Vadim Pasternak > ; Mark Gross ; Nathan > Chancellor ; Nick Desaulniers > > Cc: Arnd Bergmann ; Andy Shevchenko > ; Michael Shych > ; platform-dri

RE: [PATCH] platform/x86: mlx-platform: remove an unused variable

2020-12-03 Thread Vadim Pasternak
> -Original Message- > From: Arnd Bergmann > Sent: Friday, December 04, 2020 12:31 AM > To: Vadim Pasternak ; Hans de Goede > ; Mark Gross ; Nathan > Chancellor ; Nick Desaulniers > > Cc: Arnd Bergmann ; Andy Shevchenko > ; Michael Shych > ; platform-dri

[PATCH platform 0/2] platform/x86: mlx-platform: Remove PSU EEPROM configuration

2020-11-25 Thread Vadim Pasternak
OM. Patch set contains two bug fixes: - For MSN2700 and MSN2100 system types. - For MSN274x system types. Vadim Pasternak (2): platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x platform con

[PATCH platform 2/2] platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x platform configuration

2020-11-25 Thread Vadim Pasternak
be not equipped with EEPROM. In such case "24c02" will not work. Fixes: ef08e14a3 ("platform/x86: mlx-platform: Add support for new msn274x system type") Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 6 ++ 1 file changed, 2 insertions(+), 4 del

[PATCH platform 1/2] platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration

2020-11-25 Thread Vadim Pasternak
or even could be not equipped with EEPROM. In such case "24c02" will not work. Fixes: c6acad68e ("platform/mellanox: mlxreg-hotplug: Modify to use a regmap interface") Fixes: ba814fdd0 ("platform/x86: mlx-platform: Use defines for bus assignment") Signed-off-by: Vadim P

RE: [PATCH v1] platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver

2020-07-27 Thread Vadim Pasternak
> -Original Message- > From: Shravan Kumar Ramani > Sent: Monday, July 27, 2020 12:02 PM > To: Andy Shevchenko ; Darren Hart > ; Vadim Pasternak > Cc: Shravan Ramani ; Jiri Pirko > ; platform-driver-...@vger.kernel.org; linux- > ker...@vger.kernel.org > S

[PATCH platform-next v2 05/11] platform/mellanox: mlxreg-hotplug: Add environmental data to uevent

2020-07-14 Thread Vadim Pasternak
Send "udev" event with environmental data in order to allow handling "ENV{}" variables in "udev" rules. Signed-off-by: Vadim Pasternak --- v1->v2: Comments pointed out by Andy: - Add string_upper(), string_lower() helpers. Use string_upper() for label conv

[PATCH platform-next v2 08/11] platform/mellanox: mlxreg-io: Add support for complex attributes

2020-07-14 Thread Vadim Pasternak
consuming info, etcetera. Such registers contain read-only data. Signed-off-by: Vadim Pasternak --- v1->v2: Comments pointed out by Andy: - Fix commit text. - Fix few comments. - Drop attribute validation for read-only access in mlxreg_io_get_reg(). This is redundant and wrong validation

[PATCH platform-next v2 06/11] platform_data/mlxreg: Add support for complex attributes

2020-07-14 Thread Vadim Pasternak
Add new field 'regnum' to the structure 'mlxreg_core_data' to specify the number of registers occupied by multi-register attribute. Signed-off-by: Vadim Pasternak --- include/linux/platform_data/mlxreg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pl

[PATCH platform-next v2 11/11] platform/x86: mlx-platform: Extend FAN platform data description

2020-07-14 Thread Vadim Pasternak
Extend FAN platform data with register presence field. Add register present entry per rotor (tachometer) description tuple. The purpose is to allow indication of FAN presence. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 13 + 1 file changed, 13

[PATCH platform-next v2 01/11] lib/string_helpers: Introduce string_upper() and string_lower() helpers

2020-07-14 Thread Vadim Pasternak
Provide the helpers for string conversions to upper alnd lower cases. Signed-off-by: Vadim Pasternak --- include/linux/string_helpers.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/include/linux/string_helpers.h b/include/linux/string_helpers.h index c28955132234

[PATCH platform-next v2 00/11] platform/x86: Add new features for Mellanox systems

2020-07-14 Thread Vadim Pasternak
dd more definitions for system attributes. Patch #8 extends 'mlxreg-io' driver with complex attributes support. Patch #9 extends documentation with new attributes. Patches #10-#11 extend FAN platform data with register presence field. Vadim Pasternak (11): lib/string_helpers: I

[PATCH platform-next v2 02/11] lib/test-string_helpers.c: Add string_upper() and string_lower() tests

2020-07-14 Thread Vadim Pasternak
Add few of simple tests for string_upper() and string_lower() helpers. Signed-off-by: Vadim Pasternak --- lib/test-string_helpers.c | 67 +++ 1 file changed, 67 insertions(+) diff --git a/lib/test-string_helpers.c b/lib/test-string_helpers.c index

[PATCH platform-next v2 09/11] Documentation/ABI: Add new attribute for mlxreg-io sysfs interfaces

2020-07-14 Thread Vadim Pasternak
Add documentation for the new attributes for exposing CPLDs part numbers and CPLD minor versions. Signed-off-by: Vadim Pasternak --- v1->v2: Changes added by Vadim: - Update date and kernel version. --- Documentation/ABI/stable/sysfs-driver-mlxreg-io | 17 + 1 file changed,

[PATCH platform-next v2 03/11] platform/mellanox: mlxreg-hotplug: Modify module license

2020-07-14 Thread Vadim Pasternak
Change module license to 'SPDX'. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox/mlxreg-hotplug.c | 32 +++--- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/drivers/platform/mellanox/mlxreg-hotplug.c b/drivers/platform/mella

[PATCH platform-next v2 04/11] platform/mellanox: mlxreg-hotplug: Use capability register for attribute creation

2020-07-14 Thread Vadim Pasternak
d adding a new code in the future in order to distinct between the systems types supporting a different number of the components like power supplies, FANs, ASICs, line cards. Signed-off-by: Vadim Pasternak --- v1->v2: Comments pointed out by Andy: - Fix commit text. - Modify loop over unmaske

[PATCH platform-next v2 10/11] platform_data/mlxreg: Add presence register field for FAN devices

2020-07-14 Thread Vadim Pasternak
Add new field 'reg_prsnt' to the structure 'mlxreg_core_data' to provide the number FAN drawers equpped within the system. The purpose is to allow mapping between FAN drawers and FAN rotors (tachometer), since FAN drawer can be eqipped with a few rotors. Signed-off

[PATCH platform-next v2 07/11] platform/x86: mlx-platform: Add more definitions for system attributes

2020-07-14 Thread Vadim Pasternak
ion if image upgrade is required for CPLD device. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 128 1 file changed, 128 insertions(+) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.

[PATCH platform-next v1 2/8] platform/mellanox: mlxreg-hotplug: Add environmental data to uevent

2020-06-01 Thread Vadim Pasternak
Send "udev" event with environmental data in order to allow handling "ENV{}" variables in "udev" rules. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox/mlxreg-hotplug.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-)

[PATCH platform-next v1 7/8] platform_data/mlxreg: Add presence register field for FAN devices

2020-06-01 Thread Vadim Pasternak
Add new field 'reg_prsnt' to the structure 'mlxreg_core_data' to provide the number FAN drawers equpped within the system. The purpose is to allow mapping between FAN drawers and FAN rotors (tachometer), since FAN drawer can be eqipped with a few rotors. Signed-off

[PATCH platform-next v1 4/8] platform/x86: mlx-platform: Add more definitions for system attributes

2020-06-01 Thread Vadim Pasternak
ion if image upgrade is required for CPLD device. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 128 1 file changed, 128 insertions(+) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.

[PATCH platform-next v1 1/8] platform/mellanox: mlxreg-hotplug: Use capability register for attribute creation

2020-06-01 Thread Vadim Pasternak
d adding a new code in the future in order to distinct between the systems types supported different number of the components like power supplies, FANs, ASICs, line cards. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox/mlxreg-hotplug.c | 54 -- 1 file c

[PATCH platform-next v1 3/8] platform_data/mlxreg: Add support for complex attributes

2020-06-01 Thread Vadim Pasternak
Add new field 'regnum' to the structure 'mlxreg_core_data' to specify the number of registers occupied by multi-register attribute. Signed-off-by: Vadim Pasternak --- include/linux/platform_data/mlxreg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pl

[PATCH platform-next v1 5/8] platform/mellanox: mlxreg-io: Add support for complex attributes

2020-06-01 Thread Vadim Pasternak
consuming info, etcetera. Such registers contain read only data. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox/mlxreg-io.c | 47 ++- 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/drivers/platform/mellanox/mlxreg-io.c b/drivers

[PATCH platform-next v1 6/8] Documentation/ABI: Add new attribute for mlxreg-io sysfs interfaces

2020-06-01 Thread Vadim Pasternak
Add documentation for the new attributes for exposing CPLDs part numbers and CPLD minor versions. Signed-off-by: Vadim Pasternak --- Documentation/ABI/stable/sysfs-driver-mlxreg-io | 17 + 1 file changed, 17 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-driver

[PATCH platform-next v1 0/8] platform/x86: Add new features for Mellanox systems

2020-06-01 Thread Vadim Pasternak
butes. Patches #7-#8 extends FAN platform data with register presence field. Vadim Pasternak (8): platform/mellanox: mlxreg-hotplug: Use capability register for attribute creation platform/mellanox: mlxreg-hotplug: Add environmental data to uevent platform_data/mlxreg: Add support fo

[PATCH platform-next v1 8/8] platform/x86: mlx-platform: Extend FAN platform data description

2020-06-01 Thread Vadim Pasternak
Extend FAN platform data with register presence field. Add register present entry per rotor (tachometer) description tuple. The purpose is to allow indication of FAN presence. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 13 + 1 file changed, 13

RE: [PATCH v6 1/1] Add support for IPMB driver

2019-05-03 Thread Vadim Pasternak
> -Original Message- > From: Asmaa Mnebhi > Sent: Saturday, May 04, 2019 1:35 AM > To: miny...@acm.org; w...@the-dreams.de; Vadim Pasternak > ; Michael Shych > Cc: Asmaa Mnebhi ; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org > Subject: [PATCH v6 1

RE: [PATCH v5 1/1] Add support for IPMB driver

2019-05-02 Thread Vadim Pasternak
> -Original Message- > From: Asmaa Mnebhi > Sent: Thursday, May 02, 2019 9:38 PM > To: miny...@acm.org; w...@the-dreams.de; Vadim Pasternak > ; Michael Shych > Cc: Asmaa Mnebhi ; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org > Subject: [PATCH v5 1

RE: [PATCH v4 0/1] Add support for IPMB driver

2019-05-02 Thread Vadim Pasternak
[...] > > > > >>Better, if you can avoid cast. > > >>Would compiler warn if you use for example rol16(client->addr, 1) & > GENMASK(7, 0); or something like it? > > I thought it wouldn't be too much of an issue to use typecast here since > > other > existing ipmi drivers use typecasting: bt-bmc.c,

RE: [PATCH v4 1/1] Add support for IPMB driver

2019-04-30 Thread Vadim Pasternak
> -Original Message- > From: Asmaa Mnebhi > Sent: Tuesday, April 30, 2019 8:59 PM > To: miny...@acm.org; w...@the-dreams.de; Vadim Pasternak > ; Michael Shych > Cc: Asmaa Mnebhi ; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org > Subject: [PATCH v4 1

RE: [PATCH v4 0/1] Add support for IPMB driver

2019-04-30 Thread Vadim Pasternak
> -Original Message- > From: Asmaa Mnebhi > Sent: Tuesday, April 30, 2019 8:59 PM > To: miny...@acm.org; w...@the-dreams.de; Vadim Pasternak > ; Michael Shych > Cc: Asmaa Mnebhi ; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org > Subject: [PATCH v4 0

RE: [PATCH v3 1/1] Add support for IPMB driver

2019-04-29 Thread Vadim Pasternak
> -Original Message- > From: Asmaa Mnebhi > Sent: Tuesday, April 30, 2019 12:57 AM > To: miny...@acm.org; w...@the-dreams.de; Vadim Pasternak > ; Michael Shych > Cc: Asmaa Mnebhi ; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org > Subject: [PATCH v3 1

RE: [PATCH v1 bitops] bitops: Fix UBSAN undefined behavior warning for rotation right

2019-04-09 Thread Vadim Pasternak
> -Original Message- > From: Andrew Morton > Sent: Tuesday, April 09, 2019 1:52 AM > To: Vadim Pasternak > Cc: jacek.anaszew...@gmail.com; pa...@ucw.cz; linux-kernel@vger.kernel.org; > linux-l...@vger.kernel.org; Ido Schimmel ; Andrey > Ryabinin > Subje

[PATCH v1 bitops] bitops: Fix UBSAN undefined behavior warning for rotation right

2019-04-07 Thread Vadim Pasternak
R10: 0097 R11: 0246 R12: 0006 [ 11.441932] R13: 0001 R14: 7f955775e600 R15: 0006 Reported-by: Ido Schimmel Signed-off-by: Vadim Pasternak --- include/linux/bitops.h | 12 1 file changed, 12 insertions(+) diff --git a/includ

RE: [PATCH v8 1/2] platform/mellanox: Add TmFifo driver for Mellanox BlueField Soc

2019-01-29 Thread Vadim Pasternak
> -Original Message- > From: Liming Sun > Sent: Monday, January 28, 2019 7:28 PM > To: Rob Herring ; Mark Rutland > ; Arnd Bergmann ; David Woods > ; Andy Shevchenko ; Darren > Hart ; Vadim Pasternak > Cc: Liming Sun ; devicet...@vger.kernel.org; linux-

RE: [PATCH v1 1/1] platform/mellanox: Add bootctl driver for Mellanox BlueField Soc

2019-01-29 Thread Vadim Pasternak
[...] Please, be consistent with naming convention. All the above should have same prefix as others routines. > > > +static ssize_t post_reset_wdog_store(struct device_driver *drv, > > +const char *buf, size_t count) { > > + int err; > > + unsigne

RE: [PATCH] platform/x86: mlx-platform: Properly use mlxplat_mlxcpld_msn201x_items

2018-09-26 Thread Vadim Pasternak
> -Original Message- > From: Nathan Chancellor > Sent: Wednesday, September 26, 2018 8:21 AM > To: Vadim Pasternak ; Darren Hart > ; Andy Shevchenko > Cc: platform-driver-...@vger.kernel.org; linux-kernel@vger.kernel.org; Nathan > Chancellor > Subject: [

RE: [PATCH] platform/mellanox: Use 2-factor allocator calls

2018-07-04 Thread Vadim Pasternak
> -Original Message- > From: Kees Cook [mailto:keesc...@chromium.org] > Sent: Wednesday, July 04, 2018 8:29 PM > To: Darren Hart > Cc: Vadim Pasternak ; Andy Shevchenko > ; platform-driver-...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: [PATCH]

RE: [PATCH v6 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-19 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Wednesday, June 20, 2018 3:20 AM > To: Randy Dunlap > Cc: Vadim Pasternak ; andy.shevche...@gmail.com; > gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; platform-driver- > x.

[PATCH v6 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-17 Thread Vadim Pasternak
supposed to be defined per system type bases and include the registers related to system resets operation, system reset causes monitoring and some kinds of mux selection. Signed-off-by: Vadim Pasternak --- v5-v6: Comments pointed out by Darren: - Fix "filed" to "field"

[PATCH v6 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces

2018-06-17 Thread Vadim Pasternak
Add documentation for mlxreg-io platform driver sysfs interfaces to allow user space access for system resets control, reset causes monitoring, programmable devices version reading and device selection control. Signed-off-by: Vadim Pasternak --- v5-v6: Changes added by Vadim: - Change kernel

[PATCH v6 7/8] platform/x86: mlx-platform: Add mlxreg-io platform driver activation

2018-06-17 Thread Vadim Pasternak
, which are used by mlxreg-io for write access. Signed-off-by: Vadim Pasternak v4-v5: Changes added by Vadim: - Add two new attributes for ASIC health and main power domain shutdown. --- drivers/platform/x86/mlx-platform.c | 175 +++- 1 file changed, 173

[PATCH v5 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces

2018-06-05 Thread Vadim Pasternak
Add documentation for mlxreg-io platform driver sysfs interfaces to allow user space access for system resets control, reset causes monitoring, programmable devices version reading and device selection control. Signed-off-by: Vadim Pasternak --- v4: Comments pointed out by Greg: Add

[PATCH v5 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-05 Thread Vadim Pasternak
supposed to be defined per system type bases and include the registers related to system resets operation, system reset causes monitoring and some kinds of mux selection. Signed-off-by: Vadim Pasternak --- v1->v2: Change added by Vadim: - Change ---help--- to help in Kconfig, according to

[PATCH v5 7/8] platform/x86: mlx-platform: Add mlxreg-io platform driver activation

2018-06-05 Thread Vadim Pasternak
, which are used by mlxreg-io for write access. Signed-off-by: Vadim Pasternak v4-v5: Changes added by Vadim: - Add two new attributes for ASIC health and main power domain shutdown. --- drivers/platform/x86/mlx-platform.c | 175 +++- 1 file changed, 173

RE: [PATCH v4 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces

2018-06-05 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Tuesday, June 05, 2018 4:55 AM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org

RE: [PATCH v3 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-01 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, June 01, 2018 7:53 PM > To: Greg KH > Cc: Vadim Pasternak ; andy.shevche...@gmail.com; > linux-kernel@vger.kernel.org; platform-driver-...@vger.kernel.org; > j...@resnulli.us; M

[PATCH v4 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-05-29 Thread Vadim Pasternak
supposed to be defined per system type bases and include the registers related to system resets operation, system reset causes monitoring and some kinds of mux selection. Signed-off-by: Vadim Pasternak --- v1->v2: Changed added by Vadim: - Change ---help--- to help in Kconfig, according to

[PATCH v4 7/8] platform/x86: mlx-platform: Add mlxreg-io platform driver activation

2018-05-29 Thread Vadim Pasternak
, which are used by mlxreg-io for write access. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 159 +++- 1 file changed, 157 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx

[PATCH v4 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces

2018-05-29 Thread Vadim Pasternak
Add documentation for mlxreg-io driver sysfs interfaces for user space access to system's power resets control, reset causes monitoring, programmable devices version reading and devices selection control. Signed-off-by: Vadim Pasternak --- v4: Comments pointed out by Greg: Add Document

RE: [PATCH v3 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-05-27 Thread Vadim Pasternak
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Sunday, May 27, 2018 6:14 PM > To: Vadim Pasternak > Cc: dvh...@infradead.org; andy.shevche...@gmail.com; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org; j...@resn

[PATCH v3 7/7] platform/x86: mlx-platform: Add mlxreg-io platform driver activation

2018-05-27 Thread Vadim Pasternak
, which are used by mlxreg-io for write access. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 159 +++- 1 file changed, 157 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx

[PATCH v3 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-05-27 Thread Vadim Pasternak
supposed to be defined per system type bases and include the registers related to system resets operation, system reset causes monitoring and some kinds of mux selection. Signed-off-by: Vadim Pasternak --- v1->v2: Changed added by Vadim: - Change ---help--- to help in Kconfig, according to

RE: [PATCH v2 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-05-26 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, May 25, 2018 3:31 AM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org

RE: [PATCH v2 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-05-26 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, May 25, 2018 2:52 AM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org

[PATCH v2 7/7] platform/x86: mlx-platform: Add mlxreg-io platform driver activation

2018-05-06 Thread Vadim Pasternak
, which are used by mlxreg-io for write access. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 159 +++- 1 file changed, 157 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx

[PATCH v2 4/7] platform: mellanox: add new ODM system types to mlx-platform

2018-05-06 Thread Vadim Pasternak
x27;t change DMI_BOARD_NAME. Signed-off-by: Vadim Pasternak --- v1->v2: Comments pointed out by Darren: - Modify commit message; --- drivers/platform/x86/mlx-platform.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/platform/x86/mlx-platform.c b

[PATCH v2 5/7] platform/x86: mlx-platform: Add LED platform driver activation

2018-05-06 Thread Vadim Pasternak
descriptions are defined for passing to LED platform driver. Signed-off-by: Vadim Pasternak v1->v2: Fixes added by Vadim: - Remove inline functions from mlxreg.h file; --- drivers/platform/x86/mlx-platform.c | 259 +++- 1 file changed, 258 insertions(+), 1 delet

[PATCH v2 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-05-06 Thread Vadim Pasternak
supposed to be defined per system type bases and include the registers related to system resets operation, system reset causes monitoring and some kinds of mux selection. Signed-off-by: Vadim Pasternak --- v1->v2: Changed added by Vadim: - Change ---help--- to help in Kconfig, according to

[PATCH v2 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-05-06 Thread Vadim Pasternak
form/x86: Introduce support for Mellanox hotplug driver") Signed-off-by: Vadim Pasternak --- V1->v2: Comments pointed out by Darren: - Modify commit message; - Remove redundant check of aggr_asserted; - Change bug fix reference from 1f976f6978bf, which just relocated driver to 07b89c2

RE: [PATCH v1 4/7] platform: mellanox: add new ODM system types to mlx-platform

2018-04-13 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, April 13, 2018 7:55 PM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org

RE: [PATCH v1 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-04-13 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, April 13, 2018 7:47 PM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org

[PATCH v1 0/7] platform/x86: Mellanox add fixes and new features

2018-03-27 Thread Vadim Pasternak
-io driver from mlx-platform. Vadim Pasternak (7): platform_data/mlxreg: Document fixes for hotplug device platform/mellanox: mlxreg-hotplug: Document fixes for hotplug private data platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue platform: mellanox: add new

[PATCH v1 1/7] platform_data/mlxreg: Document fixes for hotplug device

2018-03-27 Thread Vadim Pasternak
Remove redunadant description of label in struct mlxreg_hotplug_device. Change location of access_mode in struct mlxreg_hotplug_device. Signed-off-by: Vadim Pasternak --- include/linux/platform_data/mlxreg.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux

[PATCH v1 4/7] platform: mellanox: add new ODM system types to mlx-platform

2018-03-27 Thread Vadim Pasternak
can't change DMI_BOARD_NAME. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c index 7a0bd24..912f844 100644 ---

[PATCH v1 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-03-27 Thread Vadim Pasternak
are supposed to be defined per system type bases and include the registers related to system resets operation, system reset causes monitoring and some kinds of mux selection. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox/Kconfig | 11 ++ drivers/platform/mellanox/Makefile

[PATCH v1 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-03-27 Thread Vadim Pasternak
("platform/x86: Move Mellanox platform hotplug driver to platform/mellanox") Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox/mlxreg-hotplug.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/platform/mellanox/mlxreg-hotplug.c b/drivers/platform/mella

[PATCH v1 5/7] platform/x86: mlx-platform: Add LED platform driver activation

2018-03-27 Thread Vadim Pasternak
inline functions for adding and removing platform drivers sharing the same regmap infrastructure. Motivation of adding them as a static inline to the header file is to allow reusing of them by not only x86 architecture specific platform driver. Signed-off-by: Vadim Pasternak --- drivers

[PATCH v1 7/7] platform/x86: mlx-platform: Add mlxreg-io platform driver activation

2018-03-27 Thread Vadim Pasternak
, programmable devices version reading and mux select control. This platform data is passed to mlxreg-io driver. - The default values for the register, which should be set to these values at initialization time by regmap infrastructure. Signed-off-by: Vadim Pasternak --- drivers/platform/x86

[PATCH v1 2/7] platform/mellanox: mlxreg-hotplug: Document fixes for hotplug private data

2018-03-27 Thread Vadim Pasternak
Add missing description of dev, regmap, dwork_irq, after_probe in struct mlxreg_hotplug_priv_data. Remove dwork field from the structure mlxreg_hotplug_priv_data itself and for the descriptions, since it is not used. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox/mlxreg-hotplug.c

RE: [PATCH v1 0/4] platform/x86: mlx-platform: Add bus differed and auto detection functionalities

2018-03-23 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, March 23, 2018 1:56 AM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; platform- > driver-...@vger.kernel.org; linux-kernel@vger.kernel.org

RE: [PATCH v1 0/4] platform/x86: mlx-platform: Add bus differed and auto detection functionalities

2018-02-16 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, February 16, 2018 3:33 AM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; platform- > driver-...@vger.kernel.org; linux-kernel@vger.kernel.org

[PATCH v1 4/4] platform/x86: mlx-platform: Add physical bus number auto detection

2018-02-13 Thread Vadim Pasternak
busy, it shifts to the available number. This shift is passed to i2c-mlxcpld driver, the mux base numbers are incremented by the this shift value and passed to i2c-mux-reg driver, and also this value is passed to mlxreg-hotplug driver. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox

[PATCH v1 2/4] platform/x86: mlx-platform: Add differed bus functionality

2018-02-13 Thread Vadim Pasternak
data, which in their turn could wait in the deferred state, until all the necessary buses topology is not exist. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox/mlxreg-hotplug.c | 7 +++ drivers/platform/x86/mlx-platform.c| 10 ++ include/linux/platform_data

[PATCH v1 1/4] platform/x86: mlx-platform: Use define for the channel numbers

2018-02-13 Thread Vadim Pasternak
Add define for the channels number for mux device, instead of using hardcoded value inside the code in order to improve code readability. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH v1 0/4] platform/x86: mlx-platform: Add bus differed and auto detection functionalities

2018-02-13 Thread Vadim Pasternak
This patchset: - Adds define for the channels number for mux device. - Adds differed bus functionality. - Changes input for device create routine in mlxreg-hotplug driver. - Adds physical bus number auto detection. Vadim Pasternak (4): platform/x86: mlx-platform: Use define for the channel

[PATCH v1 3/4] platform/mellanox: mlxreg-hotplug: Change input for device create routine

2018-02-13 Thread Vadim Pasternak
Change the first input parameter in mlxreg_hotplug_device_create to the pointer to mlxreg_hotplug private data in order to allow to use the fields from the private data structure inside this routine. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox/mlxreg-hotplug.c | 12

[patch v2 0/3] platform/x86: mlx-platform: Add support for new Mellanox systems

2018-02-09 Thread Vadim Pasternak
Ethernet switch); - SN3410 (6x400GbE plus 48x50GbE Ethernet switch). Vadim Pasternak (3): platform/x86: mlx-platform: Add support for new msn274x system type platform/x86: mlx-platform: Add support for new msn201x system type platform/x86: mlx-platform: Add support for new 200G IB and

[patch v2 2/3] platform/x86: mlx-platform: Add support for new msn201x system type

2018-02-09 Thread Vadim Pasternak
device, which supports Ethernet switching with 32X100G ports line rate of up to EDR speed. Signed-off-by: Vadim Pasternak v1->v2 Comments pointed out by Darren: - Break the patch into series of patches per system type. --- drivers/platform/x86/mlx-platform.c |

[patch v2 1/3] platform/x86: mlx-platform: Add support for new msn274x system type

2018-02-09 Thread Vadim Pasternak
device, which supports Ethernet switching with 32X100G ports line rate of up to EDR speed. Signed-off-by: Vadim Pasternak v1->v2 Comments pointed out by Darren: - Break the patch into series of patches per system type. --- drivers/platform/x86/mlx-platform.c |

[patch v2 3/3] platform/x86: mlx-platform: Add support for new 200G IB and Ethernet systems

2018-02-09 Thread Vadim Pasternak
: Vadim Pasternak v1->v2 Comments pointed out by Darren: - Break the patch into series of patches per system type. --- drivers/platform/x86/mlx-platform.c | 142 1 file changed, 142 insertions(+) diff --git a/drivers/platform/x86/mlx-platform.c b/driv

RE: [PATCH] platform/mellanox: mlxreg-hotplug: Fix uninitialized variable

2018-02-07 Thread Vadim Pasternak
> -Original Message- > From: Geert Uytterhoeven [mailto:ge...@linux-m68k.org] > Sent: Wednesday, February 07, 2018 11:12 AM > To: Andy Shevchenko ; Darren Hart > ; Vadim Pasternak > Cc: Arnd Bergmann ; platform-driver-...@vger.kernel.org; > linux-kernel@v

[patch v1 4/4] platform/x86: mlx-platform: Add support for new Mellanox systems

2018-02-01 Thread Vadim Pasternak
Ethernet switch); - SN3410 (6x400GbE plus 48x50GbE Ethernet switch). Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 298 1 file changed, 298 insertions(+) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx

[patch v1 3/4] platform/x86: mlx-platform: Fix power cable setting for systems from msn21xx family

2018-02-01 Thread Vadim Pasternak
associated with this signal. Add definition for interrupt low aggregation signal. On system from msn21xx family, low aggregation mask should be removed in order to allow signal hit CPU. Fixes: 6613d18e9038 ("platform/x86: mlx-platform: Move module from arch/x86") Signed-off-by: Vadim

[patch v1 2/4] platform/x86: mlx-platform: Add define for the negative bus

2018-02-01 Thread Vadim Pasternak
Add define for the negative bus Id in order to use it in case no hotplug device is associated with hotplug interrupt signal. In this case signal will be handled by mlxreg-hotplug driver, but any device will not be associated with this signal. Signed-off-by: Vadim Pasternak --- drivers/platform

[patch v1 0/4] mlx-platform: Add support for new Mellanox systems, code improvement, fixes for msn21xx system

2018-02-01 Thread Vadim Pasternak
The patchset: - adds defines for bus numbers, used for system topology description; - fixes definition for power cables for system family msn21xx; - introduces support for new Mellanox systems; Vadim Pasternak (4): platform/x86: mlx-platform: Use defines for bus assignment platform/x86: mlx

[patch v1 1/4] platform/x86: mlx-platform: Use defines for bus assignment

2018-02-01 Thread Vadim Pasternak
Add defines the bus Ids, used for hotplug devices topology in order to improve code readability. Defines added for FAN and power units. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff

RE: [PATCH 11/11] platform/x86: mlx-platform: Add hotplug platform driver un-registration for faulty flow

2018-01-31 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Wednesday, January 31, 2018 11:00 PM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org

[PATCH 11/11] platform/x86: mlx-platform: Add hotplug platform driver un-registration for faulty flow

2018-01-31 Thread Vadim Pasternak
Add hotplug platform driver un-registration in case regmap cache synchronization failed. In such case hotplug platform driver registration should be rolled back. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

RE: [patch v11 - re-ordered 03/12] FIXME platform/mellanox: Remove redundant dev_err messages on device_create

2018-01-31 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Wednesday, January 31, 2018 8:41 PM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org

RE: [patch v11 - re-ordered 03/12] FIXME platform/mellanox: Remove redundant dev_err messages on device_create

2018-01-26 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Saturday, January 27, 2018 1:41 AM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org

[PATCH 11/11] platform/mellanox: mlxreg-hotplug: Fix issue of commit (9228b4ffec): Modify to use a regmap interface

2018-01-26 Thread Vadim Pasternak
It fixes issue introduced by commit: platform/mellanox: mlxreg-hotplug: Modify to use a regmap interface. In this commit the device parameter in mlxreg_hotplug_device_create has been dropped, while it is used inside this routine. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox

[PATCH 10/11] platform/mellanox: mlxreg-hotplug: Add check for negative adapter number

2018-01-26 Thread Vadim Pasternak
Verify before creation of hotplug device if the associated adapter number is negative. It could be in case hotplug event is not associated with hotplug device. Signed-off-by: Vadim Pasternak Signed-off-by: Darren Hart (VMware) --- drivers/platform/mellanox/mlxreg-hotplug.c | 7 +++ 1 file

[PATCH 09/11] platform/x86: mlx-platform: Extend register map configuration with IO access verification callbacks

2018-01-26 Thread Vadim Pasternak
value required sync, the second performs sync. Signed-off-by: Vadim Pasternak Signed-off-by: Darren Hart (VMware) --- v11->v12 Comments pointed out by Darren: - add explanations in commit message; Fixes added by Vadim: - add register cache synchronization at the end of mlx-platform prob

RE: [patch v11 - re-ordered 03/12] FIXME platform/mellanox: Remove redundant dev_err messages on device_create

2018-01-26 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Thursday, January 25, 2018 11:47 PM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org

[patch v11 12/12] platform/mellanox: Add validation of return code of hotplug device creation routine

2018-01-24 Thread Vadim Pasternak
Adding validation of return code of mlxreg_hotplug_device_create. It could fail in case the requested adapter is not available or if client can not be connected to the adapter. Error is to be reported in case of bad flow. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox/mlxreg

  1   2   3   >