From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 17 Nov 2017 10:37:43 +0100 (CET) Received: from 19pmail.ess.barracuda.com ([64.235.150.245]:60616 "EHLO 19pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23990435AbdKQJhgHk2Rw (ORCPT ); Fri, 17 Nov 2017 10:37:36 +0100 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx27.ess.sfj.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Fri, 17 Nov 2017 09:37:13 +0000 Received: from localhost (192.168.154.110) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 17 Nov 2017 01:37:13 -0800 Date: Fri, 17 Nov 2017 09:37:10 +0000 From: James Hogan To: Huacai Chen CC: "Rafael J. Wysocki" , Viresh Kumar , , Keguang Zhang , Ralf Baechle , Linux MIPS Mailing List Subject: Re: [PATCH] cpufreq: Add Loongson machine dependencies Message-ID: <20171117093710.GB27368@jhogan-linux.mipstec.com> References: <20171115211755.25102-1-james.hogan@mips.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) X-Originating-IP: [192.168.154.110] X-BESS-ID: 1510911433-637137-25105-128752-1 X-BESS-VER: 2017.14-r1710272128 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.187037 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 60990 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: james.hogan@mips.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips --9amGYk9869ThD9tj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Huacai On Fri, Nov 17, 2017 at 12:37:30PM +0800, Huacai Chen wrote: > I think it is better to make LOONGSON1_CPUFREQ depends on > CPU_LOONGSON1, and LOONGSON2_CPUFREQ depends on CPU_LOONGSON2 Yes, that may well be preferable, however as stated below both drivers have stricter dependencies than that which break the build for certain configurations: > On Thu, Nov 16, 2017 at 5:17 AM, James Hogan wrote: > > More specifically loongson1-cpufreq.c uses RST_CPU_EN and RST_CPU, > > neither of which is defined in asm/mach-loongson32/regs-clk.h unless > > CONFIG_LOONGSON1_LS1B=y, and loongson2_cpufreq.c references > > loongson2_clockmod_table[], which is only defined in > > arch/mips/loongson64/lemote-2f/clock.c, i.e. when > > CONFIG_LEMOTE_MACH2F=y. If those issues are fixed such that the drivers build on any respective loongson1 / loongson2 configuration then the dependencies can always be updated again to reflect that. Cheers James --9amGYk9869ThD9tj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAloOrb0ACgkQbAtpk944 dnrjVA//fKmSzwAE6mZE712mk2kRI/9EXptpipRyZhheDfd551tgxf78zP2c/U0c GBfoW9giX9wYfpnr5ku9jmE4sXmkUANlwSRJbOXHWwNKSQK1uhPV3uqeB8Z6fBl8 q3zMW37QlSQJU/ISG4pYyud/0PSgE6NS1mqfa9o4FmkFlgtrYJn6ouEKRHBIRWAx 65FaQtWUPq0y/tBR6K61dj6pLvoI1koZyZftJ4AIY7ptRZkve0niId6vIopw5Mk1 Z7tWt21VTrNH56F+jk9UKYnlAIPKX2PdmWAKNVwDNlVliKqD5fciiJKtF0L0CaBk pG8cEdjtOY1//ObJd2zFy5l1zJ9mfWg1sIkHpzJdhB9UqvKSV8MET5nfeqjKbCsS 1mcvjckVPLbbgfRrVwLidRF3Ik7NtJHBDa8w597y7D577hIY+RIcK5RPSa1zKqxW lta3InF84KVe1rnipdALe7Z8WZiuE5ZtCZmXbN0hrCEBDIqSDG+tYshGJshAXS95 QndCXnGp6MKx5o09JCu9VBpCT9cQqQlswrJHqC92Gmh16wJFisMDtTUkwN3WVGTh 0IC8TADj5Kk2O3o89nDVYXaCB1/I874gl5ZE0ZRY+phhAe+GcfL4K+l7dX1H/NfM iFz/+qWeWE46MSk/a79w1SqRYxfHRJyEClVE5hdUk7oKbi4lSAA= =IqZA -----END PGP SIGNATURE----- --9amGYk9869ThD9tj-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 19pmail.ess.barracuda.com ([64.235.150.245]:60616 "EHLO 19pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23990435AbdKQJhgHk2Rw (ORCPT ); Fri, 17 Nov 2017 10:37:36 +0100 Date: Fri, 17 Nov 2017 09:37:10 +0000 From: James Hogan Subject: Re: [PATCH] cpufreq: Add Loongson machine dependencies Message-ID: <20171117093710.GB27368@jhogan-linux.mipstec.com> References: <20171115211755.25102-1-james.hogan@mips.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Huacai Chen Cc: "Rafael J. Wysocki" , Viresh Kumar , linux-pm@vger.kernel.org, Keguang Zhang , Ralf Baechle , Linux MIPS Mailing List Message-ID: <20171117093710.oWqoFlFSUXcjr8JvKi_c6tUFiUKnr_r2dmMbTzJNNMU@z> --9amGYk9869ThD9tj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Huacai On Fri, Nov 17, 2017 at 12:37:30PM +0800, Huacai Chen wrote: > I think it is better to make LOONGSON1_CPUFREQ depends on > CPU_LOONGSON1, and LOONGSON2_CPUFREQ depends on CPU_LOONGSON2 Yes, that may well be preferable, however as stated below both drivers have stricter dependencies than that which break the build for certain configurations: > On Thu, Nov 16, 2017 at 5:17 AM, James Hogan wrote: > > More specifically loongson1-cpufreq.c uses RST_CPU_EN and RST_CPU, > > neither of which is defined in asm/mach-loongson32/regs-clk.h unless > > CONFIG_LOONGSON1_LS1B=y, and loongson2_cpufreq.c references > > loongson2_clockmod_table[], which is only defined in > > arch/mips/loongson64/lemote-2f/clock.c, i.e. when > > CONFIG_LEMOTE_MACH2F=y. If those issues are fixed such that the drivers build on any respective loongson1 / loongson2 configuration then the dependencies can always be updated again to reflect that. Cheers James --9amGYk9869ThD9tj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAloOrb0ACgkQbAtpk944 dnrjVA//fKmSzwAE6mZE712mk2kRI/9EXptpipRyZhheDfd551tgxf78zP2c/U0c GBfoW9giX9wYfpnr5ku9jmE4sXmkUANlwSRJbOXHWwNKSQK1uhPV3uqeB8Z6fBl8 q3zMW37QlSQJU/ISG4pYyud/0PSgE6NS1mqfa9o4FmkFlgtrYJn6ouEKRHBIRWAx 65FaQtWUPq0y/tBR6K61dj6pLvoI1koZyZftJ4AIY7ptRZkve0niId6vIopw5Mk1 Z7tWt21VTrNH56F+jk9UKYnlAIPKX2PdmWAKNVwDNlVliKqD5fciiJKtF0L0CaBk pG8cEdjtOY1//ObJd2zFy5l1zJ9mfWg1sIkHpzJdhB9UqvKSV8MET5nfeqjKbCsS 1mcvjckVPLbbgfRrVwLidRF3Ik7NtJHBDa8w597y7D577hIY+RIcK5RPSa1zKqxW lta3InF84KVe1rnipdALe7Z8WZiuE5ZtCZmXbN0hrCEBDIqSDG+tYshGJshAXS95 QndCXnGp6MKx5o09JCu9VBpCT9cQqQlswrJHqC92Gmh16wJFisMDtTUkwN3WVGTh 0IC8TADj5Kk2O3o89nDVYXaCB1/I874gl5ZE0ZRY+phhAe+GcfL4K+l7dX1H/NfM iFz/+qWeWE46MSk/a79w1SqRYxfHRJyEClVE5hdUk7oKbi4lSAA= =IqZA -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--