From patchwork Sun Jun 6 22:28:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 455179 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E3D2C4743E for ; Sun, 6 Jun 2021 22:31:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 543F26142A for ; Sun, 6 Jun 2021 22:31:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230374AbhFFWdK (ORCPT ); Sun, 6 Jun 2021 18:33:10 -0400 Received: from mail-lf1-f50.google.com ([209.85.167.50]:40571 "EHLO mail-lf1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230368AbhFFWdK (ORCPT ); Sun, 6 Jun 2021 18:33:10 -0400 Received: by mail-lf1-f50.google.com with SMTP id w33so22967488lfu.7; Sun, 06 Jun 2021 15:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zEnQnzK4FfYQ9Av8T/zWnWahbRfClGvzMlhIDU4oMMc=; b=uM98FGwfg7fGDX/p5gXsn+NM0kEbleS6lEDKE0hGEZPHWLh5FgACvW95Ss6B9hzapU ZZi8AipOZZo16r2koQMEsn6hqUYlj+S4dglLtLZNTb3ry85/HI/Y0MjcCGI8BSja+nIW vJwCcczMHVfAASxVhgDFbu+KwKnaqP7VHLu4G1+XgUV2GjuRw4h6Y8y1nfcjpkTuUZis UA5H4ath1e+N1i+Hl20NU/G7mkl5J1eBWMl634EiShklAXxClhDm+Mc7lrcB47pl144y 6HUwJsRJ2N/SUexVE0NJ5RZhCCX08GUphqZ19CtEFD32Duy9OKGmR54HlhsNH7gV180q DAAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zEnQnzK4FfYQ9Av8T/zWnWahbRfClGvzMlhIDU4oMMc=; b=FQ4iJdNu+6Krcga2KKdkdychkrxEirmVzHNG6arhsRyQyicp85ALwrRyDbw9ViP/RP 0lkK9rOwlrRtgBBimJL0c7G3nXN0iGBtcPaMYiozJtJjMNF02r61QMt3KrM3ghVc7YNq fcHXOKzVvX7Ao3zAkS+mN+ijHs2Js8VUwwIyh3mDG+20FYgXGcqdmzu0uAUyvxbzp6WE 6Vrq7w4NS+3835Ut+B2x7yFRuSFDWjucTdAr3Mz/lWsF8FCh5rHQ+Koq7j6KKz3ZTO+L N/eec7RX5sf8PBr7TFTx4OX1P3nJBMgcsyT/I+vO8EI8jc5P2xkhqcvVdIL1xfZHfOB2 GPxA== X-Gm-Message-State: AOAM530bGUiJ3MwVGWHpK+MaRUM+7XWIi7ctG8TcrQqsApWu7lUrvev/ s6bqHMc9h6lRHw0VYFyGy/g= X-Google-Smtp-Source: ABdhPJx6nVUgQD3itGieHN1c1h1YiRuxMGaSBkMrnzQAdJnuTAWi7j8eGbs7/c4KJcElfvgNoXXtIg== X-Received: by 2002:ac2:4198:: with SMTP id z24mr9908979lfh.335.1623018602497; Sun, 06 Jun 2021 15:30:02 -0700 (PDT) Received: from localhost.localdomain (94-29-51-134.dynamic.spd-mgts.ru. [94.29.51.134]) by smtp.gmail.com with ESMTPSA id i23sm1017778ljg.38.2021.06.06.15.30.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 15:30:02 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v1 1/5] soc/tegra: fuse: Add stubs needed for compile testing Date: Mon, 7 Jun 2021 01:28:13 +0300 Message-Id: <20210606222817.12388-2-digetx@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210606222817.12388-1-digetx@gmail.com> References: <20210606222817.12388-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add stubs needed for compile-testing of tegra-cpuidle driver. Signed-off-by: Dmitry Osipenko --- 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 + #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); From patchwork Sun Jun 6 22:28:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 455180 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C663BC48BCD for ; Sun, 6 Jun 2021 22:30:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AF78161429 for ; Sun, 6 Jun 2021 22:30:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230465AbhFFWcJ (ORCPT ); Sun, 6 Jun 2021 18:32:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230463AbhFFWcJ (ORCPT ); Sun, 6 Jun 2021 18:32:09 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAC43C061766; Sun, 6 Jun 2021 15:30:04 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id n17so2300235ljg.2; Sun, 06 Jun 2021 15:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X9cVm01T3XBfO6x49juZ/jg9Mlr4Ym2jjpA87Fsdt98=; b=R/2mbdh5gXLQ11ZRE1rLgzpLqIkzabFbljZtt11gLkBX8aqhndteRv+c6wR56ROOQI jJxz+m9o3hxO+cmvU677nKpMsALg3D4LVpfv2c5fiFrkdq4iKX70L6yvJNqI6yQupHBm AkmG1QsbaObqs0MtdwTqRDsBaG5m0im7gaPOVvySDIzlXG0gXy/23RmTMeT30MmNs56j fQnAC0RhAH9yPJaeORQFPPPz4iWc9qCiHkBErBOX0C2zNXjv5z9pQLD2Zwiyx43PEj0n /AcObRzE18MEHM6K57RxzUZehb4PuTpjxB23QjfjVg7CmdD+mTxZD0fn2Y74vCddl5fN GJyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X9cVm01T3XBfO6x49juZ/jg9Mlr4Ym2jjpA87Fsdt98=; b=uZu0bFQRavlZ1Js0UTIpurN6n1CZshsvievYXHq5WUPRUFAB0LI1uKrIGStQS0upCN X+MoAdoQm0TgRIUre0j+NqM+f83XeAqsPmO63zHFFHuNJq7nmRZLkXtSfnJg+sgtD/Sy xokegirplx07jMQle7/c24lwEJbBNPlf9oJrHYyBHHyNMmdwFadtPliRM6ukIAnhpy2B YDikjYFYWUvWwcR7bPYkpZfAn/v5ZCsmzRKQhyzUfB2UWIY2PCzwvdDR7a/YTChxlqZs Id1bF44JrOdg4nqfAKYtsNY9vC9qYwXiEvcLEKu5sZBkf60zw8sSD9HkhoFMxsKBdtxK YqfQ== X-Gm-Message-State: AOAM53102VQjlr7Y1w8+AK9dw/eivSrOnorXvahQSJlDQcIhvbrvWfrv kt9ILbXn1NER6WF0QjyvbYw= X-Google-Smtp-Source: ABdhPJymqT1AHdSmLlIdmvjxMza3sxyxHXbxd1wQkGimiMSJiMEukjOpCXNmOHonH0oJF5sZ1uQA/A== X-Received: by 2002:a2e:6e09:: with SMTP id j9mr12607231ljc.151.1623018603138; Sun, 06 Jun 2021 15:30:03 -0700 (PDT) Received: from localhost.localdomain (94-29-51-134.dynamic.spd-mgts.ru. [94.29.51.134]) by smtp.gmail.com with ESMTPSA id i23sm1017778ljg.38.2021.06.06.15.30.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 15:30:02 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v1 2/5] soc/tegra: irq: Add stubs needed for compile testing Date: Mon, 7 Jun 2021 01:28:14 +0300 Message-Id: <20210606222817.12388-3-digetx@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210606222817.12388-1-digetx@gmail.com> References: <20210606222817.12388-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add stubs needed for compile-testing of tegra-cpuidle driver. Signed-off-by: Dmitry Osipenko --- 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 + +#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 */ From patchwork Sun Jun 6 22:28:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 455181 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74A93C4743E for ; Sun, 6 Jun 2021 22:30:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 62B49613D4 for ; Sun, 6 Jun 2021 22:30:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230383AbhFFWcI (ORCPT ); Sun, 6 Jun 2021 18:32:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbhFFWcI (ORCPT ); Sun, 6 Jun 2021 18:32:08 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84E77C06178B; Sun, 6 Jun 2021 15:30:06 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id f30so22965358lfj.1; Sun, 06 Jun 2021 15:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RU0cfAbIhBSWaGdmjD9oXjfTzzANl3XSARh7hkPnc+s=; b=TkKrt76l3tSdnfBcZ+qa2I0kk/5WBh4IQ9z0CBmBDUKErT8sUXHpqhKEf5lQZP7Muv JjbWmfE3fgyqydr6jL8eK3lp/uizFv2dGy7XjLH/Ek4ZV7vlOyjXARBUI5i2hMuLCHSQ fancm8ULq+LF5aMlLX0U3sdOuXD4kfUv2wOTx6oKg8s6s1DnKmRkO2XIpwRL9y7H97Y4 Okp14koytWx32d3s6fOQ/xPWtG3KsgoPZ6peN6Bz5Fqiat3OgOv7FqWBKKk5baUGtKFG dg+iT9m8YIPErhL4XTsbJrtrdmDSqyKw96hRCVXaq5pgwBM42/81UY+KGaIvLQ3A7hJg eFqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RU0cfAbIhBSWaGdmjD9oXjfTzzANl3XSARh7hkPnc+s=; b=muhRmQ6w17Tbq0HJxzQIM6zwpswRS2/eTKlOaVokynOgqnujmj5EaLadlTzrsnpsRz a6HOCeQRdUsXkgqnfqnWVGJ/hAZyewVpXJdgl1m/7P9E9OdbaurJB8PfBlmjy7hBmsFM 00iZgUhz2kOxuUk9hTDysVKQDDkazmkBPpzpIyzt2WonwWzTxxuFUbLEwuFB06RX51MQ XOxj71y8RraC18YSoLAERDuRc7aJYtXQhLXm4E+MLUu7bEjDy643BiYikF6dFflewoam PX0aMh+LruA1QARa7A5iaYXGG+sifUsQ75MXTggLlJrgpVsR/fZA2MDp5PjrIuPNd7JP vxJg== X-Gm-Message-State: AOAM533+lU2hfRS++63E4PjOtI51cLoz2gxudMYFdcQaQnayQbvFgdUy J3MbK3uEdLPySxqMt/OENwg= X-Google-Smtp-Source: ABdhPJw1lo1EbJOp06U3lbVHIupxERopOZSd5cwcw4onZximzGITRFM4oyzoAu0Kv3TJXeAROWDfTg== X-Received: by 2002:a19:4c57:: with SMTP id z84mr9614125lfa.58.1623018604891; Sun, 06 Jun 2021 15:30:04 -0700 (PDT) Received: from localhost.localdomain (94-29-51-134.dynamic.spd-mgts.ru. [94.29.51.134]) by smtp.gmail.com with ESMTPSA id i23sm1017778ljg.38.2021.06.06.15.30.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 15:30:04 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v1 5/5] cpuidle: tegra: Enable compile testing Date: Mon, 7 Jun 2021 01:28:17 +0300 Message-Id: <20210606222817.12388-6-digetx@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210606222817.12388-1-digetx@gmail.com> References: <20210606222817.12388-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Enable compile testing of tegra-cpuidle driver. Signed-off-by: Dmitry Osipenko Reported-by: kernel test robot --- 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..98f8ee6b3552 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 select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP select ARM_CPU_SUSPEND help