Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp191775ybg; Tue, 2 Jun 2020 21:05:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkSwDASybXcIsloqCccEk8yE3EDPcN2ZOE8uwoL2YgI7hUwu3gEyL5g4YoRk36xQHtMrK6 X-Received: by 2002:a05:6402:1d30:: with SMTP id dh16mr28516098edb.302.1591157118184; Tue, 02 Jun 2020 21:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591157118; cv=none; d=google.com; s=arc-20160816; b=YwnAyjg3NWgqiGK3M0IUkK+ImKuBwzXaSga3p67LPERZsUR7yAEYBVUWqJLcxWiEru Mlr+3/scrFzVkf3F72azbN5FXg4CNehisizeziR/cR+3RPj2qHoDX/qoXP3zUqz/2uUA kUlIpU8/Lss4E/XBa7tSadsgOxvOnFp0PrTTIuqRfyG4qSQH5e5cjVIAQ8cV2PKTiAXq b/dEddU5OcMjBVMsi3XaBmWdB/OLq7BKyXN7zA8NUWTL6HLWrJ3NuRXg9/eHIKpJar1N rTqF3JosX3VowMH8XxhXT6BmKx4sj3IwfWrN2C84j55hiyyFPsLUz6u3/7YinJjE1iPY cRRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=8DzpvgsCYbB55jRT92lei5XQhwUZ2CriPqL7BXIekdM=; b=rL3kFFgstyBy7R5MvedMjF1fqwML+zulGWEi60ZPABcOGBqPBMiOMH9MHKgZ3qceRO T2sNTSP5qFbgSkAoRJZmiKlDgC8iH9hNXJoKX3siTkQgg80oP0PZjjlTwLY232qG258F 3LBI/auEeUux56zFkSxilmjA7KLxSZ6uw+WIweYmk9iWZteIfE4iCGnnt13eB2d+Ucip qcNK6ZmsjeVguaJ5Ka12QqQXGYPJJaTqKc38a8Ru5SO38e//sZchvpBiADvhEVcrkZpD Ixiv00szkD1wTWTCHPKw/ngBXejMQBNOlhNLWrW4xGQTodSd6LpS9b6DRKUwPr0gtRDh Qixw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Tj+1w+Rn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si494356ejh.73.2020.06.02.21.04.23; Tue, 02 Jun 2020 21:05:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Tj+1w+Rn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725909AbgFCECa (ORCPT + 99 others); Wed, 3 Jun 2020 00:02:30 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:19721 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725275AbgFCEC3 (ORCPT ); Wed, 3 Jun 2020 00:02:29 -0400 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20200603040226epoutp01e438c7a8950f42cc361f77222214b47d~U7NAJ_xDT0736307363epoutp01I for ; Wed, 3 Jun 2020 04:02:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20200603040226epoutp01e438c7a8950f42cc361f77222214b47d~U7NAJ_xDT0736307363epoutp01I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1591156946; bh=8DzpvgsCYbB55jRT92lei5XQhwUZ2CriPqL7BXIekdM=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=Tj+1w+RnWa5i85nv3Sq2alEqdTa0HKukvsWC1e3JVh54hbOMDDvhBS79WB04/LTuB j2jnD46iHKStHDcBE7AnGG9wo5SDgOwqTaaMDRDiIjO/7ejST+1vVZk4nzg29MCuJy 0tvQ/TsQE/Cl7YzvVpQrb3gFJu+0LI5pouJJB2sI= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20200603040226epcas1p132d5aec7e1972ef6b5a66067188550e3~U7M-mzEBi3046630466epcas1p1I; Wed, 3 Jun 2020 04:02:26 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.156]) by epsnrtp3.localdomain (Postfix) with ESMTP id 49cFbz31qpzMqYkk; Wed, 3 Jun 2020 04:02:23 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 18.28.29173.FC027DE5; Wed, 3 Jun 2020 13:02:23 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20200603040222epcas1p4dcac72b1d620804fc9a148db59beb71b~U7M8nBQtF0693606936epcas1p4H; Wed, 3 Jun 2020 04:02:22 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200603040222epsmtrp2b66c310760f383b730d6af6c69dd22bd~U7M8mDcRo0224702247epsmtrp2B; Wed, 3 Jun 2020 04:02:22 +0000 (GMT) X-AuditID: b6c32a37-9b7ff700000071f5-a2-5ed720cf86be Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F1.D1.08382.EC027DE5; Wed, 3 Jun 2020 13:02:22 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200603040222epsmtip128ab7f0c28d350ec69647bd75a9cd6cc~U7M8G82ag2616926169epsmtip1s; Wed, 3 Jun 2020 04:02:22 +0000 (GMT) Subject: Re: [PATCH 06/12] PM / devfreq: Add cpu based scaling support to passive_governor To: "andrew-sh.cheng" Cc: MyungJoo Ham , Kyungmin Park , Rob Herring , Mark Rutland , Matthias Brugger , "Rafael J . Wysocki" , Viresh Kumar , Nishanth Menon , Stephen Boyd , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, srv_heupstream@mediatek.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Sibi Sankar , linux-arm-kernel@lists.infradead.org From: Chanwoo Choi Organization: Samsung Electronics Message-ID: <89ecb940-d613-1b18-c7fc-abab4d4264c2@samsung.com> Date: Wed, 3 Jun 2020 13:12:54 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <1591100614.1804.1.camel@mtksdaap41> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Te0xTVxzeuW0vLQS9FJBjI4h3WzarQGspHAkwccbdyTZItpHFOLDATUso bddbFtwSxgTGI4qwOcTycooyGExFwis8AsI6mG5Cx0MGCQ6GDAqVIZZp9mh7WcZ/3/ed77u/ fL9zLp8jtOIiforGQOs1CjWJu3Jbbu+VBPzkPx4vKTXvQK3XF3joywdzOKru/5GH7p62uKAn P+djqGl2jIfMHRU4MmcPA7R2th+gq+PDGDqdI0O/fPo1jiwbdzF054cRHsrt6ndBf4/d5KKx r6w8dGFaiG6uU4c8qYaqBkCZi85iVLtx2oVqqi/AqamxTpy6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u5qDgRAKpCScVsAwAA X-CMS-MailID: 20200603040222epcas1p4dcac72b1d620804fc9a148db59beb71b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200520034335epcas1p45a321a1a878fb7cd7b9c9ada0a474ef7 References: <20200520034307.20435-1-andrew-sh.cheng@mediatek.com> <20200520034307.20435-7-andrew-sh.cheng@mediatek.com> <64b81eea-641c-811d-9830-718b28db4188@samsung.com> <7ad35770-9327-084a-d2ca-1646cabd0a4d@samsung.com> <1591100614.1804.1.camel@mtksdaap41> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew-sh.Cheng, On 6/2/20 9:23 PM, andrew-sh.cheng wrote: > On Thu, 2020-05-28 at 16:17 +0900, Chanwoo Choi wrote: >> Hi Andrew-sh.Cheng, >> >> The exynos-bus.c used the passive governor. >> Even if don't make the problem because DEVFREQ_PARENT_DEV is zero, >> you need to initialize the parent_type with DEVFREQ_PARENT_DEV as following: >> >> diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c >> index 8fa8eb541373..1c71c47bc2ac 100644 >> --- a/drivers/devfreq/exynos-bus.c >> +++ b/drivers/devfreq/exynos-bus.c >> @@ -369,6 +369,7 @@ static int exynos_bus_profile_init_passive(struct exynos_bus *bus, >> return -ENOMEM; >> >> passive_data->parent = parent_devfreq; >> + passive_data->parent_type = DEVFREQ_PARENT_DEV; >> >> /* Add devfreq device for exynos bus with passive governor */ >> bus->devfreq = devm_devfreq_add_device(dev, profile, DEVFREQ_GOV_PASSIVE, > Hi Chanwoo Choi, > Do you just remind me to initialize it to DEVFREQ_PARENT_DEV whn use > this governor? Yes. This change was not included in this patchset. > I will do it and thank you for reminding. Thanks. (snip) And, this patchset doesn't include the dt-binding example and any real example in devicetree. If possible, I recommend you better to update dt-binding document with example. -- Best Regards, Chanwoo Choi Samsung Electronics