Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp227511imm; Mon, 21 May 2018 05:13:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpC1PuoS0q+4EMRd8ft4gIwz4zAOA/Ppr2HzLJBLoVDBy8iMc9sVvmZvspjYdmVj9cP38K7 X-Received: by 2002:a62:fc8:: with SMTP id 69-v6mr19847867pfp.14.1526904784066; Mon, 21 May 2018 05:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526904784; cv=none; d=google.com; s=arc-20160816; b=bULTh06SHRNjkGwM/761dOXeESuNEft3DLQNXe93d54kOyABCzawBHYR3U06zgqLFm S5QFKJ8YZAaUkMhbMwzEEwkMFMR5SHxIATI3AkXD2+H6wYMr6xE4gmZINI0lcwwRqWE/ FV2Y7SauWVl26Meit+PGSlQe/GHRUD0uky8O3khJDApkH650xQQJQPhM1MM2/tT2np7P vgxUDOHjTe3DgaJ1cep62A/uVQ3NbiYTbPs+J4BTsdiPSzml84kI1SiU0YTdm8nZindt E8fmoUS+v6rvJoEZ77uLOcAon7/EK7Khwd1u5oKTYiOj5edGfDt70qGuRFD2edgh3Ll0 UsOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=HeSE3MskkE+28RW9GP4UgwkFLhr5eVeCmJDBDCwUg7g=; b=J2uDTib5bL2HnYgEXGLmH1m3Pi2AMDaNNGMdwy5fU1XUeYVSGSLNdGANySnuE/zwRz 6n96/s1P8l2Jb9dJtakkn22HEgIKYWIDsXn+h2WO4F1bMAE1/n+VcvPhlHHaRmYU/gry rJz3wzUCN8qT1HKeGHFf8S54eZHbaTTztw/chnSP3MIhyKejsLOK+cMQ0oBqHiULVs1P iYIVk6m3hRqzAtjusyGly4hOV8uFVxS7Gu7phCWELwyOapwEfe3tCaGIh8DORSSq40YR ZJZpDCKQQZUVXVC14MXYEdK6fWV6ILqssX2p9xQeFIywaoYMnDxS4DdTNDbEGGWsob8J EEuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=I4UEq8Kw; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10-v6si14331612pls.81.2018.05.21.05.12.48; Mon, 21 May 2018 05:13:04 -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; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=I4UEq8Kw; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752621AbeEUML5 (ORCPT + 99 others); Mon, 21 May 2018 08:11:57 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:39024 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753133AbeEUMLu (ORCPT ); Mon, 21 May 2018 08:11:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HeSE3MskkE+28RW9GP4UgwkFLhr5eVeCmJDBDCwUg7g=; b=I4UEq8Kwdk9pXg2pZX6k7hvJ2 AcN23UJhEXLQY1Wc1oHL9W6CAUrf3YXst/brEzIwWOn54EyVxPxj4B/8/6rODAclPssNDB5meui/7 g1OlNEvjV7WSSb3BGwC9kPiHWomAQy9R8BPmr7AvwEm5ND/2cnAe7JrDan3cXNmnxkds0=; Received: from n2100.armlinux.org.uk ([fd8f:7570:feb6:1:214:fdff:fe10:4f86]:57726) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1fKjfF-0006II-6D; Mon, 21 May 2018 13:11:45 +0100 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1fKjfC-00007C-8b; Mon, 21 May 2018 13:11:42 +0100 Date: Mon, 21 May 2018 13:11:41 +0100 From: Russell King - ARM Linux To: ilialin@codeaurora.org Cc: viresh.kumar@linaro.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] cpufreq: Add Kryo CPU scaling driver Message-ID: <20180521121140.GO17671@n2100.armlinux.org.uk> References: <1526555955-29960-11-git-send-email-ilialin@codeaurora.org> <1526898690-4018-1-git-send-email-ilialin@codeaurora.org> <20180521105428.GM17671@n2100.armlinux.org.uk> <000b01d3f0f3$aa961cc0$ffc25640$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000b01d3f0f3$aa961cc0$ffc25640$@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 21, 2018 at 02:05:41PM +0300, ilialin@codeaurora.org wrote: > You are right. > cpu_dev_silver != cpu_dev_gold, and I found this with my tests as well. > Thank you. > > > -----Original Message----- > > From: Russell King - ARM Linux > > Sent: Monday, May 21, 2018 13:54 > > To: Ilia Lin > > Cc: viresh.kumar@linaro.org; devicetree@vger.kernel.org; linux- > > pm@vger.kernel.org; linux-arm-msm@vger.kernel.org; linux- > > kernel@vger.kernel.org; linux-soc@vger.kernel.org; linux- > > clk@vger.kernel.org; linux-arm-kernel@lists.infradead.org > > Subject: Re: [PATCH] cpufreq: Add Kryo CPU scaling driver > > > > On Mon, May 21, 2018 at 01:31:30PM +0300, Ilia Lin wrote: > > > +#define SILVER_LEAD 0 > > > +#define GOLD_LEAD 2 > > > > Okay, two different values here, but "GOLD_LEAD" appears unused. > > > > > + cpu_dev_silver = get_cpu_device(SILVER_LEAD); > > > + if (NULL == cpu_dev_silver) > > > + return -ENODEV; > > > + > > > + cpu_dev_gold = get_cpu_device(SILVER_LEAD); > > > + if (NULL == cpu_dev_gold) > > > + return -ENODEV; > > > > get_cpu_device() takes the logical CPU number. So the above gets CPU 0 > > each time, and so cpu_dev_silver == cpu_dev_gold here. So what's the > > point of the second get_cpu_device() ? If it's supposed to be: > > > > cpu_dev_gold = get_cpu_device(GOLD_LEAD); > > > > That would get CPU 2, but in terms of these defines, it doesn't make that > > much sense. What exactly does "silver lead" and "gold lead" refer to in > these > > definitions? I think you still need to explain this. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up