Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp101225ybi; Fri, 7 Jun 2019 04:58:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVEqYgGvce2cM0aQElxTGYVtGiYVuf+1sIUwbEiSJ45J35CsLPyHPyoVByg2PVF679cV6p X-Received: by 2002:a63:50a:: with SMTP id 10mr2407887pgf.213.1559908689295; Fri, 07 Jun 2019 04:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559908689; cv=none; d=google.com; s=arc-20160816; b=OL5DPkS7jg1bIxFc9zf98L/MRlv3IxRTctxBcPl4PhaeH60XTcBAT74okGe/epiDG/ O9vx4gDFiXeyu1RjRaXLQ99mB08HhTPgxo5BTex/aRfjaLNily+zCZrRN6r6lXfKRXIj 4z/P6JnVbwmM1twxfJ/Jl+YH2I+rk5QGW5eN8YXSRAS1tWWT/UmPgxN+SnXW7h/9Uwpy OVeM3l01gMF+72XIF0+XWUj13GO9F6LqGX6BzTAVk9AX6r2S1/MAsGXFs1sQRGkFwkbA pxl5DtURczd9V7eM6tNuuzZhr6hUlzLNu5YGeg1pBlfFiWrp+IDBeEHbzcepDOa+s2/5 7bzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=QAe+u/uiDdgPYSlcH5/f9/q90ITb+GCoL7ThD5qFfx8=; b=hrxpKHLGYoruNsS1zbmKcs7D1mhonAdrQPLDJm5SRKubJsqpTzWx5sLGSHZbkMv2q8 4blMDbD9D3agrdpKTuomrv1d9CptaKTglZmC90Za9EhIaluGb/cAJGgjx12EUzzQMGmB 9Q1+i6CvqB1Qdk8EF5V345w1SkFC2EuRDtxJEyyDEDbuebpV0e7VN3BkNgSFAe+0gDKv S65THrUnFo9hy1tIABsj67+cSdyeQXvBaCLH1uo/ayroleRN6QkqiarzkOZ6XP7Qjmsp OrqU9MV1r6pxfrtF+AQqdUtU9RbscTQXXYcPjjYakwSrAwTiUjct5sQH9CEGZsmdoseD 2FCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si1628901pjy.36.2019.06.07.04.57.52; Fri, 07 Jun 2019 04:58:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728477AbfFGLaZ convert rfc822-to-8bit (ORCPT + 99 others); Fri, 7 Jun 2019 07:30:25 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:36725 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727452AbfFGLaZ (ORCPT ); Fri, 7 Jun 2019 07:30:25 -0400 Received: from [192.168.1.162] ([37.4.249.160]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N6t3Z-1gTxBM1J79-018GgF; Fri, 07 Jun 2019 13:30:03 +0200 Subject: Re: [PATCH v2 6/7] ARM: defconfig: enable cpufreq driver for RPi To: Nicolas Saenz Julienne , Eric Anholt , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com Cc: mbrugger@suse.de, viresh.kumar@linaro.org, rjw@rjwysocki.net, sboyd@kernel.org, ptesarik@suse.com, linux-rpi-kernel@lists.infradead.org, ssuloev@orpaltech.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mturquette@baylibre.com, linux-pm@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org References: <20190606142255.29454-1-nsaenzjulienne@suse.de> <20190606142255.29454-7-nsaenzjulienne@suse.de> From: Stefan Wahren Openpgp: preference=signencrypt Autocrypt: addr=stefan.wahren@i2se.com; keydata= xsFNBFt6gBMBEACub/pBevHxbvJefyZG32JINmn2bsEPX25V6fejmyYwmCGKjFtL/DoUMEVH DxCJ47BMXo344fHV1C3AnudgN1BehLoBtLHxmneCzgH3KcPtWW7ptj4GtJv9CQDZy27SKoEP xyaI8CF0ygRxJc72M9I9wmsPZ5bUHsLuYWMqQ7JcRmPs6D8gBkk+8/yngEyNExwxJpR1ylj5 bjxWDHyYQvuJ5LzZKuO9LB3lXVsc4bqXEjc6VFuZFCCk/syio/Yhse8N+Qsx7MQagz4wKUkQ QbfXg1VqkTnAivXs42VnIkmu5gzIw/0tRJv50FRhHhxpyKAI8B8nhN8Qvx7MVkPc5vDfd3uG YW47JPhVQBcUwJwNk/49F9eAvg2mtMPFnFORkWURvP+G6FJfm6+CvOv7YfP1uewAi4ln+JO1 g+gjVIWl/WJpy0nTipdfeH9dHkgSifQunYcucisMyoRbF955tCgkEY9EMEdY1t8iGDiCgX6s 50LHbi3k453uacpxfQXSaAwPksl8MkCOsv2eEr4INCHYQDyZiclBuuCg8ENbR6AGVtZSPcQb enzSzKRZoO9CaqID+favLiB/dhzmHA+9bgIhmXfvXRLDZze8po1dyt3E1shXiddZPA8NuJVz EIt2lmI6V8pZDpn221rfKjivRQiaos54TgZjjMYI7nnJ7e6xzwARAQABzSlTdGVmYW4gV2Fo cmVuIDxzdGVmYW4ud2FocmVuQGluLXRlY2guY29tPsLBdwQTAQgAIQUCXIdehwIbAwULCQgH AgYVCAkKCwIEFgIDAQIeAQIXgAAKCRCUgewPEZDy2yHTD/9UF7QlDkGxzQ7AaCI6N95iQf8/ 1oSUaDNu2Y6IK+DzQpb1TbTOr3VJwwY8a3OWz5NLSO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mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190606142255.29454-7-nsaenzjulienne@suse.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Content-Language: en-US X-Provags-ID: V03:K1:3pfVuDbmLQoriadhhwENnSU0mpn11AoPfoJm3WhVw31iVTKjCZY qGh2sjuL2Mvy6NGFykP1+97lgUazLo8Sk2i7Kn2JDT6hQjdM7yZbrlHsIzx79blrSGLdoc1 miXWjficWf/Pg728bNXPxWiFHJfJXB0XjBVvlPDty+MtJS1fSTkCdH5BvY0ttn+PvFcDJlm 2Tcy2xit8O+m5V2vxkDdQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:glFVvL54ntc=:4AbPGEUJVlMysghFvq0krR 2uc4KeesnwaDDko6s2iof2zbpneuK9edDYQKqtLf+FktQGz5BA1nZFzJXKEXaVoBuLVliWVIp xxxQEUhGq2jFkzhCT9VdbNPaGoXq6kWGugIwQZ2EmNzFxK9+qne77L2vuUnyu9jAr6S37o4yC +NmCXUFEvSocN/iX54h08OeGIwqkzN2ATmU8OezTEPAkgNWREZbJ/EvZUMJa+w8PQFMiUZ/WU bhH7dp7w+zXodKkKc+dp/LGS161T7tFVMsVn/JJtHstTnd4zriGNJVAjxpgNsLTNTzycERuEC 7UREwsTfhpX6H4nn3Pa9H3kmbnEeqzZW52/V0IKUHNWTEI5MfMvmTNnWac7u9Q2JzEEVaHgyx FUk+0FrlKECxhzqqpU6FtmMGCQupIz+V98RYNR+OYCgnUgEf72Uqt4Uha6UgKeHMi2hqRAoaj DQogCVcm3k3ifJL9QerUOk4kM7SgwlFS+1ZF2Iy7N9KRvvB+N08hRjhHTimeocRGU9Kr2Kde2 YExm9tU0X4a5PU2rE7necfo3EDe1wstcPhIEraxS7jKBPDI5WCXKP7yLIZvFQABcQYMiyNG/E JOEMvSf4QMDYSFqK8Wy0vfL9naERoV5xDCyCYjige2uVvoXJGdRJwdZi+1XrtsELMVHDhcr2z iYVXtnN2Na8TIAJOtWOsrql/x0cOq8zmeIP1FW1KLEIft6RV+s0DG8nCzLYjcu+RypWPqbmdl WT9efrg8jtfLy58ODdZR9dxfPziXLgYFOhfC41OO3Ki0VoFa6r1W+IMTuAM= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolas, Am 06.06.19 um 16:22 schrieb Nicolas Saenz Julienne: > This enables on both multi_v7_defconfig and bcm2835_defconfig the new > firmware based clock and cpufreq drivers for the Raspberry Pi platform. > > In the case of bcm2835_defconfig, as the cpufreq subsystem was disabled, > the subsystem configuration was copied from multi_v7_defconfig (default > governor, statistics, etc...). sorry i didn't made any suggestions for this. > > Signed-off-by: Nicolas Saenz Julienne > --- > arch/arm/configs/bcm2835_defconfig | 9 +++++++++ > arch/arm/configs/multi_v7_defconfig | 2 ++ > 2 files changed, 11 insertions(+) > > diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig > index dcf7610cfe55..3fd90bfd5fec 100644 > --- a/arch/arm/configs/bcm2835_defconfig > +++ b/arch/arm/configs/bcm2835_defconfig > @@ -37,6 +37,14 @@ CONFIG_CMA=y > CONFIG_SECCOMP=y > CONFIG_KEXEC=y > CONFIG_CRASH_DUMP=y > +CONFIG_CPU_FREQ=y > +CONFIG_CPU_FREQ_STAT=y > +CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y From my understanding ondemand isn't the best fit for Raspberry Pi. I would prefer conservative because of the delays through the mailbox interface but it's not a really strong opinion. > +CONFIG_CPU_FREQ_GOV_POWERSAVE=m > +CONFIG_CPU_FREQ_GOV_USERSPACE=m > +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m Please make them builtin in this case. After that you can have make Acked-by for this patch. > +CONFIG_CPUFREQ_DT=y > +CONFIG_ARM_RASPBERRYPI_CPUFREQ=y > CONFIG_VFP=y > # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set > # CONFIG_SUSPEND is not set > @@ -132,6 +140,7 @@ CONFIG_DMA_BCM2835=y > CONFIG_STAGING=y > CONFIG_SND_BCM2835=m > CONFIG_VIDEO_BCM2835=m > +CONFIG_CLK_RASPBERRYPI=y > CONFIG_MAILBOX=y > CONFIG_BCM2835_MBOX=y > # CONFIG_IOMMU_SUPPORT is not set > diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig > index 6b748f214eae..0fd60a83f768 100644 > --- a/arch/arm/configs/multi_v7_defconfig > +++ b/arch/arm/configs/multi_v7_defconfig > @@ -102,6 +102,7 @@ CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m > CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y > CONFIG_CPUFREQ_DT=y > CONFIG_ARM_IMX6Q_CPUFREQ=y > +CONFIG_ARM_RASPBERRYPI_CPUFREQ=y > CONFIG_QORIQ_CPUFREQ=y > CONFIG_CPU_IDLE=y > CONFIG_ARM_CPUIDLE=y > @@ -899,6 +900,7 @@ CONFIG_STAGING_BOARD=y > CONFIG_COMMON_CLK_MAX77686=y > CONFIG_COMMON_CLK_RK808=m > CONFIG_COMMON_CLK_S2MPS11=m > +CONFIG_CLK_RASPBERRYPI=y > CONFIG_COMMON_CLK_QCOM=y > CONFIG_QCOM_CLK_RPM=y > CONFIG_APQ_MMCC_8084=y