* [PATCH v2 0/5] Compile-test NVIDIA Tegra CPUIDLE driver
@ 2021-07-12 0:03 Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 1/5] soc/tegra: fuse: Add stubs needed for compile testing Dmitry Osipenko
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Dmitry Osipenko @ 2021-07-12 0:03 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter, Rafael J. Wysocki, Daniel Lezcano
Cc: linux-pm, linux-tegra
This series enables compile-testing of the tegra-cpuidle driver.
Changelog:
v2: - Improved ARM_TEGRA_CPUIDLE Kconfig to fix/exclude compile-testing of
ARM platforms that don't have MMU. This problem was reported by the
Intel's build bot for v1.
Dmitry Osipenko (5):
soc/tegra: fuse: Add stubs needed for compile testing
soc/tegra: irq: Add stubs needed for compile testing
soc/tegra: pm: Make stubs usable for compile testing
clk: tegra: Add stubs needed for compile testing
cpuidle: tegra: Enable compile testing
drivers/cpuidle/Kconfig.arm | 2 +-
include/linux/clk/tegra.h | 4 ++++
include/soc/tegra/fuse.h | 31 ++++++++++++++++++++++++++-----
include/soc/tegra/irq.h | 9 ++++++++-
include/soc/tegra/pm.h | 2 +-
5 files changed, 40 insertions(+), 8 deletions(-)
--
2.32.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 1/5] soc/tegra: fuse: Add stubs needed for compile testing
2021-07-12 0:03 [PATCH v2 0/5] Compile-test NVIDIA Tegra CPUIDLE driver Dmitry Osipenko
@ 2021-07-12 0:03 ` Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 2/5] soc/tegra: irq: " Dmitry Osipenko
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Dmitry Osipenko @ 2021-07-12 0:03 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter, Rafael J. Wysocki, Daniel Lezcano
Cc: linux-pm, linux-tegra
Add stubs needed for compile-testing of tegra-cpuidle driver.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
include/soc/tegra/fuse.h | 31 ++++++++++++++++++++++++++-----
1 file changed, 26 insertions(+), 5 deletions(-)
diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h
index 990701f788bc..67d2bc856fbc 100644
--- a/include/soc/tegra/fuse.h
+++ b/include/soc/tegra/fuse.h
@@ -6,6 +6,8 @@
#ifndef __SOC_TEGRA_FUSE_H__
#define __SOC_TEGRA_FUSE_H__
+#include <linux/types.h>
+
#define TEGRA20 0x20
#define TEGRA30 0x30
#define TEGRA114 0x35
@@ -22,11 +24,6 @@
#ifndef __ASSEMBLY__
-u32 tegra_read_chipid(void);
-u8 tegra_get_chip_id(void);
-u8 tegra_get_platform(void);
-bool tegra_is_silicon(void);
-
enum tegra_revision {
TEGRA_REVISION_UNKNOWN = 0,
TEGRA_REVISION_A01,
@@ -57,6 +54,10 @@ extern struct tegra_sku_info tegra_sku_info;
u32 tegra_read_straps(void);
u32 tegra_read_ram_code(void);
int tegra_fuse_readl(unsigned long offset, u32 *value);
+u32 tegra_read_chipid(void);
+u8 tegra_get_chip_id(void);
+u8 tegra_get_platform(void);
+bool tegra_is_silicon(void);
#else
static struct tegra_sku_info tegra_sku_info __maybe_unused;
@@ -74,6 +75,26 @@ static inline int tegra_fuse_readl(unsigned long offset, u32 *value)
{
return -ENODEV;
}
+
+static inline u32 tegra_read_chipid(void)
+{
+ return 0;
+}
+
+static inline u8 tegra_get_chip_id(void)
+{
+ return 0;
+}
+
+static inline u8 tegra_get_platform(void)
+{
+ return 0;
+}
+
+static inline bool tegra_is_silicon(void)
+{
+ return false;
+}
#endif
struct device *tegra_soc_device_register(void);
--
2.32.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/5] soc/tegra: irq: Add stubs needed for compile testing
2021-07-12 0:03 [PATCH v2 0/5] Compile-test NVIDIA Tegra CPUIDLE driver Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 1/5] soc/tegra: fuse: Add stubs needed for compile testing Dmitry Osipenko
@ 2021-07-12 0:03 ` Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 3/5] soc/tegra: pm: Make stubs usable " Dmitry Osipenko
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Dmitry Osipenko @ 2021-07-12 0:03 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter, Rafael J. Wysocki, Daniel Lezcano
Cc: linux-pm, linux-tegra
Add stubs needed for compile-testing of tegra-cpuidle driver.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
include/soc/tegra/irq.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/include/soc/tegra/irq.h b/include/soc/tegra/irq.h
index 8eb11a7109e4..94539551c8c1 100644
--- a/include/soc/tegra/irq.h
+++ b/include/soc/tegra/irq.h
@@ -6,8 +6,15 @@
#ifndef __SOC_TEGRA_IRQ_H
#define __SOC_TEGRA_IRQ_H
-#if defined(CONFIG_ARM)
+#include <linux/types.h>
+
+#if defined(CONFIG_ARM) && defined(CONFIG_ARCH_TEGRA)
bool tegra_pending_sgi(void);
+#else
+static inline bool tegra_pending_sgi(void)
+{
+ return false;
+}
#endif
#endif /* __SOC_TEGRA_IRQ_H */
--
2.32.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 3/5] soc/tegra: pm: Make stubs usable for compile testing
2021-07-12 0:03 [PATCH v2 0/5] Compile-test NVIDIA Tegra CPUIDLE driver Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 1/5] soc/tegra: fuse: Add stubs needed for compile testing Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 2/5] soc/tegra: irq: " Dmitry Osipenko
@ 2021-07-12 0:03 ` Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 4/5] clk: tegra: Add stubs needed " Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 5/5] cpuidle: tegra: Enable " Dmitry Osipenko
4 siblings, 0 replies; 7+ messages in thread
From: Dmitry Osipenko @ 2021-07-12 0:03 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter, Rafael J. Wysocki, Daniel Lezcano
Cc: linux-pm, linux-tegra
The PM stubs need to depend on ARCH_TEGRA in order to be usable for
compile-testing of tegra-cpuidle driver. Add the dependency.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
include/soc/tegra/pm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/soc/tegra/pm.h b/include/soc/tegra/pm.h
index 08477d7bfab9..81701944fe78 100644
--- a/include/soc/tegra/pm.h
+++ b/include/soc/tegra/pm.h
@@ -16,7 +16,7 @@ enum tegra_suspend_mode {
TEGRA_MAX_SUSPEND_MODE,
};
-#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_ARM)
+#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_ARM) && defined(CONFIG_ARCH_TEGRA)
enum tegra_suspend_mode
tegra_pm_validate_suspend_mode(enum tegra_suspend_mode mode);
--
2.32.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 4/5] clk: tegra: Add stubs needed for compile testing
2021-07-12 0:03 [PATCH v2 0/5] Compile-test NVIDIA Tegra CPUIDLE driver Dmitry Osipenko
` (2 preceding siblings ...)
2021-07-12 0:03 ` [PATCH v2 3/5] soc/tegra: pm: Make stubs usable " Dmitry Osipenko
@ 2021-07-12 0:03 ` Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 5/5] cpuidle: tegra: Enable " Dmitry Osipenko
4 siblings, 0 replies; 7+ messages in thread
From: Dmitry Osipenko @ 2021-07-12 0:03 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter, Rafael J. Wysocki, Daniel Lezcano
Cc: linux-pm, linux-tegra
Add stubs needed for compile-testing of tegra-cpuidle driver.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
include/linux/clk/tegra.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/clk/tegra.h b/include/linux/clk/tegra.h
index d128ad1570aa..9bd06d8a5436 100644
--- a/include/linux/clk/tegra.h
+++ b/include/linux/clk/tegra.h
@@ -42,7 +42,11 @@ struct tegra_cpu_car_ops {
#endif
};
+#ifdef CONFIG_ARCH_TEGRA
extern struct tegra_cpu_car_ops *tegra_cpu_car_ops;
+#else
+static struct tegra_cpu_car_ops *tegra_cpu_car_ops __maybe_unused;
+#endif
static inline void tegra_wait_cpu_in_reset(u32 cpu)
{
--
2.32.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 5/5] cpuidle: tegra: Enable compile testing
2021-07-12 0:03 [PATCH v2 0/5] Compile-test NVIDIA Tegra CPUIDLE driver Dmitry Osipenko
` (3 preceding siblings ...)
2021-07-12 0:03 ` [PATCH v2 4/5] clk: tegra: Add stubs needed " Dmitry Osipenko
@ 2021-07-12 0:03 ` Dmitry Osipenko
2021-08-16 15:32 ` Dmitry Osipenko
4 siblings, 1 reply; 7+ messages in thread
From: Dmitry Osipenko @ 2021-07-12 0:03 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter, Rafael J. Wysocki, Daniel Lezcano
Cc: linux-pm, linux-tegra
Enable compile testing of tegra-cpuidle driver.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
drivers/cpuidle/Kconfig.arm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm
index 334f83e56120..599286fc0b08 100644
--- a/drivers/cpuidle/Kconfig.arm
+++ b/drivers/cpuidle/Kconfig.arm
@@ -99,7 +99,7 @@ config ARM_MVEBU_V7_CPUIDLE
config ARM_TEGRA_CPUIDLE
bool "CPU Idle Driver for NVIDIA Tegra SoCs"
- depends on ARCH_TEGRA && !ARM64
+ depends on (ARCH_TEGRA || COMPILE_TEST) && !ARM64 && MMU
select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP
select ARM_CPU_SUSPEND
help
--
2.32.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 5/5] cpuidle: tegra: Enable compile testing
2021-07-12 0:03 ` [PATCH v2 5/5] cpuidle: tegra: Enable " Dmitry Osipenko
@ 2021-08-16 15:32 ` Dmitry Osipenko
0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Osipenko @ 2021-08-16 15:32 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter, Rafael J. Wysocki, Daniel Lezcano
Cc: linux-pm, linux-tegra
12.07.2021 03:03, Dmitry Osipenko пишет:
> Enable compile testing of tegra-cpuidle driver.
>
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> ---
> drivers/cpuidle/Kconfig.arm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm
> index 334f83e56120..599286fc0b08 100644
> --- a/drivers/cpuidle/Kconfig.arm
> +++ b/drivers/cpuidle/Kconfig.arm
> @@ -99,7 +99,7 @@ config ARM_MVEBU_V7_CPUIDLE
>
> config ARM_TEGRA_CPUIDLE
> bool "CPU Idle Driver for NVIDIA Tegra SoCs"
> - depends on ARCH_TEGRA && !ARM64
> + depends on (ARCH_TEGRA || COMPILE_TEST) && !ARM64 && MMU
> select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP
> select ARM_CPU_SUSPEND
> help
>
Daniel, could you please ack this patch?
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-08-16 15:32 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 0:03 [PATCH v2 0/5] Compile-test NVIDIA Tegra CPUIDLE driver Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 1/5] soc/tegra: fuse: Add stubs needed for compile testing Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 2/5] soc/tegra: irq: " Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 3/5] soc/tegra: pm: Make stubs usable " Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 4/5] clk: tegra: Add stubs needed " Dmitry Osipenko
2021-07-12 0:03 ` [PATCH v2 5/5] cpuidle: tegra: Enable " Dmitry Osipenko
2021-08-16 15:32 ` Dmitry Osipenko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.