Skip to content

Commit

Permalink
hw-mgmt: patches: Fix DPU event polarity
Browse files Browse the repository at this point in the history
Fix the mlxreg-dpu attribute polarity for dpu pg/health
events.

Signed-off-by: Ciju Rajan K <[email protected]>
  • Loading branch information
ciju-nvidia committed Feb 20, 2024
1 parent 0138e18 commit fc89018
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
From 0bebfb2b2fc82f06b0b55a577e3b908e5d22be53 Mon Sep 17 00:00:00 2001
From 97d202e03b4706a87eabef370272cbb45c902c1e Mon Sep 17 00:00:00 2001
From: Vadim Pasternak <[email protected]>
Date: Mon, 4 Dec 2023 07:12:52 +0000
Subject: [PATCH backport 5.10 2/9] platform/mellanox: mlxreg-dpu: Add initial
support for Nvidia DPU
Subject: platform/mellanox: mlxreg-dpu: Add initial support for Nvidia DPU
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Expand All @@ -28,8 +27,8 @@ Signed-off-by: Vadim Pasternak <[email protected]>
---
drivers/platform/mellanox/Kconfig | 13 +
drivers/platform/mellanox/Makefile | 1 +
drivers/platform/mellanox/mlxreg-dpu.c | 623 +++++++++++++++++++++++++
3 files changed, 637 insertions(+)
drivers/platform/mellanox/mlxreg-dpu.c | 625 +++++++++++++++++++++++++++++++++
3 files changed, 639 insertions(+)
create mode 100644 drivers/platform/mellanox/mlxreg-dpu.c

diff --git a/drivers/platform/mellanox/Kconfig b/drivers/platform/mellanox/Kconfig
Expand Down Expand Up @@ -70,10 +69,10 @@ index d46e5670e..cfcacc6a2 100644
obj-$(CONFIG_MLXBF_PKA) += mlxbf_pka/
diff --git a/drivers/platform/mellanox/mlxreg-dpu.c b/drivers/platform/mellanox/mlxreg-dpu.c
new file mode 100644
index 000000000..6c1492b25
index 000000000..a61c13647
--- /dev/null
+++ b/drivers/platform/mellanox/mlxreg-dpu.c
@@ -0,0 +1,623 @@
@@ -0,0 +1,625 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Nvidia Data Processor Unit platform driver
Expand Down Expand Up @@ -369,6 +368,7 @@ index 000000000..6c1492b25
+ .mask = MLXREG_DPU_PG_MASK,
+ .count = ARRAY_SIZE(mlxreg_dpu_power_events_items_data),
+ .health = false,
+ .inversed = 1,
+ },
+ {
+ .data = mlxreg_dpu_health_events_items_data,
Expand All @@ -377,6 +377,7 @@ index 000000000..6c1492b25
+ .mask = MLXREG_DPU_HEALTH_MASK,
+ .count = ARRAY_SIZE(mlxreg_dpu_health_events_items_data),
+ .health = false,
+ .inversed = 1,
+ },
+};
+
Expand Down Expand Up @@ -698,5 +699,5 @@ index 000000000..6c1492b25
+MODULE_ALIAS("platform:mlxreg-dpu");
+
--
2.20.1
2.14.1

Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
From ebb54a4a651ff5532ffb3bb638d61e6ef673d563 Mon Sep 17 00:00:00 2001
From ccd3dacb0e6400941032a6b6fdc0dc7ccb087dcd Mon Sep 17 00:00:00 2001
From: Vadim Pasternak <[email protected]>
Date: Mon, 4 Dec 2023 07:12:52 +0000
Subject: [PATCH v6.1 01/16] platform/mellanox: mlxreg-dpu: Add initial support
for Nvidia DPU
Subject: platform/mellanox: mlxreg-dpu: Add initial support for Nvidia DPU
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Expand All @@ -28,8 +27,8 @@ Signed-off-by: Vadim Pasternak <[email protected]>
---
drivers/platform/mellanox/Kconfig | 12 +
drivers/platform/mellanox/Makefile | 1 +
drivers/platform/mellanox/mlxreg-dpu.c | 623 +++++++++++++++++++++++++
3 files changed, 636 insertions(+)
drivers/platform/mellanox/mlxreg-dpu.c | 625 +++++++++++++++++++++++++++++++++
3 files changed, 638 insertions(+)
create mode 100644 drivers/platform/mellanox/mlxreg-dpu.c

diff --git a/drivers/platform/mellanox/Kconfig b/drivers/platform/mellanox/Kconfig
Expand Down Expand Up @@ -69,10 +68,10 @@ index d7f4d940c505..7d11503dde9b 100644
obj-$(CONFIG_MLXREG_LC) += mlxreg-lc.o
diff --git a/drivers/platform/mellanox/mlxreg-dpu.c b/drivers/platform/mellanox/mlxreg-dpu.c
new file mode 100644
index 000000000000..6c1492b25afb
index 000000000000..a61c13647bdc
--- /dev/null
+++ b/drivers/platform/mellanox/mlxreg-dpu.c
@@ -0,0 +1,623 @@
@@ -0,0 +1,625 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Nvidia Data Processor Unit platform driver
Expand Down Expand Up @@ -368,6 +367,7 @@ index 000000000000..6c1492b25afb
+ .mask = MLXREG_DPU_PG_MASK,
+ .count = ARRAY_SIZE(mlxreg_dpu_power_events_items_data),
+ .health = false,
+ .inversed = 1,
+ },
+ {
+ .data = mlxreg_dpu_health_events_items_data,
Expand All @@ -376,6 +376,7 @@ index 000000000000..6c1492b25afb
+ .mask = MLXREG_DPU_HEALTH_MASK,
+ .count = ARRAY_SIZE(mlxreg_dpu_health_events_items_data),
+ .health = false,
+ .inversed = 1,
+ },
+};
+
Expand Down Expand Up @@ -697,5 +698,5 @@ index 000000000000..6c1492b25afb
+MODULE_ALIAS("platform:mlxreg-dpu");
+
--
2.20.1
2.14.1

0 comments on commit fc89018

Please sign in to comment.