Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1578338pxu; Thu, 17 Dec 2020 13:23:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6DXx1GHxZnkE3Un6zKvIXp2exGmCTpsoY+plhuXAhUeNo0OMJfDBBQjim7dkdLxnLsAK7 X-Received: by 2002:a50:e848:: with SMTP id k8mr1337168edn.77.1608240201838; Thu, 17 Dec 2020 13:23:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608240201; cv=none; d=google.com; s=arc-20160816; b=d85p66mWPFksYj74+Br2atzFhoYVyN3cMmAeKYOGwGUzHv7zn1LiAaJ2mA96gcrOYn Faj/+h1X6Gq7sWV5eTvosEiV27HPj7cSfMEFZMh/f295ZsBH+cDtrodlUoEX7A/QF9H4 t+mM3nvJJ6KIcWbv1G1crPIFV2dMmxJPi+KtW58F3/Fbe2ql+tUynrNjPGEq/y3zRP1k F1BW+ZkbEXeIfPem7v589wYi/AbYx5jl8bUuyiURbb8zfrN7hDiDyxw/qyQrVMfw7wLo no0WYWJI+PGe3HnpLq/fm/y0AS0T5+E/H6hixRJhbGplGUxyISN2pi5xxDUsc+OLWxmz c0tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=XsBwmgyFbdlnXiRdAhxB0KnsdRP9EX0fo8+7p/onVeM=; b=H9/cKGuibe1cguFHV6zuH8fqRQ2a8fJpjv76DcYELN7gamNRwD9eIFBVFqxF9jaDok LYhBHwrJWtU51K/oxXphpMfeZdQub9dNjXFjSLqXLAC1F3v/BzWryDUo3t12mV7KO7oL jvPYhqkYfK+C98Y0bG2wItG74B1wlG1+v/JTrp6HhfNdMixLdArD0U9UkXRMl7VxnNBQ KQRPpENPGqiYyFW9A/3Xj1FYL9lQftwuUKlfRxhhnUzdWRDkGMM+DW0iFveior2/J0ij idR3KXJNNRs1ggX+klA3ABUWg02vcfZQ8Pd1i75K5ksjUJSx9Ms1+tvzxNhKjHLal1VQ SFwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NyRQdJQ0; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c22si5322518edj.34.2020.12.17.13.22.59; Thu, 17 Dec 2020 13:23:21 -0800 (PST) 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=@linaro.org header.s=google header.b=NyRQdJQ0; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727786AbgLQVVL (ORCPT + 99 others); Thu, 17 Dec 2020 16:21:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726983AbgLQVVK (ORCPT ); Thu, 17 Dec 2020 16:21:10 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D06C061285 for ; Thu, 17 Dec 2020 13:19:53 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id a12so27989354wrv.8 for ; Thu, 17 Dec 2020 13:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XsBwmgyFbdlnXiRdAhxB0KnsdRP9EX0fo8+7p/onVeM=; b=NyRQdJQ0TIiT6H5yuKllL5V1o0PMFLt7UrTUtmH/FewUN6IbxVKuEto8NkC2CLuJq0 EYevYM/zZ/UNBngzu6G93EgAGA43alT1OUSBO2eHb0uZO56DXAsCGLdnR/Vs9w6H3oT2 A59Irsjd3PGIB1rGOaQCDkvqK1ZcPEBjVRf5ZR2e9VZIvLYMkpL9oA1nRXpC5CJj8hO/ wedNTokq3HhmiyhkviQNxhYAeRfhaswc/0hj0/uPVKZMCjcbJ7W4dBGEOkcSrtExG12h 3KIFmdEMMLGNW2R0kHOelk52IHkiN9yqwVHqN4ZyOzJa8k5A+avRgs9jLGBhjHltfj8E IEoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XsBwmgyFbdlnXiRdAhxB0KnsdRP9EX0fo8+7p/onVeM=; b=bTNxkVhc1d/S3877aR60Z8d0JAVXgXzoEFXkO/Xm/5j+dCTI522P5+jWgxoQG4S/eL Gr8s4+o0YeWcBw9KB4/Urd8pdYaazFL4pZjI6FGwXQLWwSlSjPCXPM095tD40Ir0yl3I MDW6hD8uzy+EMNSix5uTUyDJLgMFiqxcNLUh6WFuNtbOmdVUc0yTzwp4eapIEnkIMTc4 2+TaAMmFOWXBqJusnetHUiWfA9tALgTZwGeg/LHMZny6mMuVsZqmC45RpqWWim2tx8fZ h8ozUBT0pEyAwjIv/xUCaQU+yxT/IGRNFKKOXJ4TVhDn5G5kijZnD4nDz7AValfisKJm zQMw== X-Gm-Message-State: AOAM533PZxgCehVQUnwfUF3Zz15d02LnYfKFCvbDnCucVYmRAFEnVUNW flIcnCWu7zjrX/GfaY22+rtZSA== X-Received: by 2002:adf:f101:: with SMTP id r1mr806378wro.112.1608239992221; Thu, 17 Dec 2020 13:19:52 -0800 (PST) Received: from ?IPv6:2a01:e34:ed2f:f020:ccb6:ce78:2bcd:4ead? ([2a01:e34:ed2f:f020:ccb6:ce78:2bcd:4ead]) by smtp.googlemail.com with ESMTPSA id m8sm9617258wmc.27.2020.12.17.13.19.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Dec 2020 13:19:51 -0800 (PST) Subject: Re: [PATCH v2 47/48] ARM: tegra: ventana: Support CPU voltage scaling and thermal throttling To: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Mark Brown , Liam Girdwood , Ulf Hansson , Mauro Carvalho Chehab , Rob Herring , Peter Geis , Nicolas Chauvet , Krzysztof Kozlowski , "Rafael J. Wysocki" , Kevin Hilman , Peter De Schrijver , Viresh Kumar , Stephen Boyd , Michael Turquette Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org References: <20201217180638.22748-1-digetx@gmail.com> <20201217180638.22748-48-digetx@gmail.com> <91139f8b-0b83-dd8a-ba53-8e7a499e6344@linaro.org> <776e0e84-e395-2bfb-f1ee-c34864b1cf16@linaro.org> From: Daniel Lezcano Message-ID: <6afaf91c-d0ce-265d-4b71-0ea8da19918b@linaro.org> Date: Thu, 17 Dec 2020 22:19:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/12/2020 21:28, Dmitry Osipenko wrote: > 17.12.2020 22:36, Daniel Lezcano пишет: >>>>> + type = "critical"; >>>>> + }; >>>>> + }; >>>>> + >>>>> + cooling-maps { >>>>> + map0 { >>>>> + trip = <&trip0>; >>>>> + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; >>>> You should add all CPUs here. >>> >>> All CPU cores are coupled on Tegra in regards to CPUFreq, hence I think >>> it won't make any difference if secondary CPU cores will be added here, >>> isn't it? >> The explanation is in the description of commit ef4734500407ce4d > > I think that really only makes sense if CPU cores have independent clock > rate management. ATM I did not see any ARM platform having a clock line per CPU but I may be wrong. > IIRC, I actually made some research about this in the > past and intentionally removed the secondary cores from the > cooling-device since they didn't make any difference for a coupled CPU > cores. > > That commit also says: > > "But as soon as this CPU ordering changes and any other CPU is used to > bring up the cooling device, we will start seeing failures." > > I don't quite understand to what "failures" that commit referrers. I > tried to change the cpu0 to cpu1 in the cooling-device and don't see any > failures. Could you please clarify this? > > In general it should be fine to add all the cores to the cooling-device > and I'll do it in v3, but I want to make it clear why this is needed. AFAIR, if CPU0 is unplugged the cooling device can not rebind to CPU1. And if CPU0 is plugged in again, the cooling device fails to initialize. And, if the CPUs are mapped with the physical CPU0 to Linux numbering CPU1, the cooling device mapping will fail. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog