From patchwork Thu Jun 29 12:07:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 9816585 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 14389603D7 for ; Thu, 29 Jun 2017 12:07:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 089D027FE4 for ; Thu, 29 Jun 2017 12:07:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F103328670; Thu, 29 Jun 2017 12:07:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED69327FE4 for ; Thu, 29 Jun 2017 12:07:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752689AbdF2MHn (ORCPT ); Thu, 29 Jun 2017 08:07:43 -0400 Received: from smtp6-v.fe.bosch.de ([139.15.237.11]:57056 "EHLO smtp6-v.fe.bosch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752143AbdF2MHl (ORCPT ); Thu, 29 Jun 2017 08:07:41 -0400 Received: from vsmta11.fe.internet.bosch.com (unknown [10.4.98.51]) by imta24.fe.bosch.de (Postfix) with ESMTP id DBEFBD8022E; Thu, 29 Jun 2017 14:07:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=de.bosch.com; s=2015-01-21; t=1498738059; bh=rly7xIRFk70MsF2lx9ZjM7UaZgynR+gCJ2ZFgM0VUPA=; l=10; h=From:From:Reply-To:Sender; b=FCGSgz4ihx+f4N82sXWrZDhmNO5vTvDAwmvnZmRyLCO3/bQhR6eiCkpVgd7b0JFud ldyjwnF5KblPsKC+VkZlVM5HQ31P58SPlBS3vDigzqDFXloc9VRNzTgRmolBsxn43D WRULNp0r3inZT+H5VonHgaCLZ1NAOu8WCIlF8Nhg= Received: from SI-HUB1001.de.bosch.com (vsgw24.fe.internet.bosch.com [10.4.98.24]) by vsmta11.fe.internet.bosch.com (Postfix) with ESMTP id BCF332380472; Thu, 29 Jun 2017 14:07:39 +0200 (CEST) Received: from [10.34.211.14] (10.34.211.14) by SI-HUB1001.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 14.3.319.2; Thu, 29 Jun 2017 14:07:39 +0200 Subject: Re: Clocks used by another OS/CPU To: Geert Uytterhoeven CC: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Ulf Hansson , "Rafael J. Wysocki" , Kevin Hilman , Linux-Renesas , linux-clk , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , Linux PM list References: From: Dirk Behme Organization: Robert Bosch Car Multimedia GmbH Message-ID: <50911172-8fa1-8341-0ed0-d40f00d9392c@de.bosch.com> Date: Thu, 29 Jun 2017 14:07:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Originating-IP: [10.34.211.14] X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1679-8.0.0.1202-23164.006 X-TMASE-MatchedRID: u1zqiMeMcroOwH4pD14DsPHkpkyUphL9ll6sbwG1OHJGL0g1nVmkYVYW wxB9tw0TStHkUZfKYdTAbEAUUTwVAIfoUnEKKUSZ4pdq9sdj8LV9LQinZ4QefL6qvLNjDYTwmTD wp0zM3zoqtq5d3cxkNf1q+jTMRLDdTtY5vuLGX6FEsjiYdsyqIsI8bbJDO8coJOc4sjFABZpRKv g1vmaBoKbP22BK+f7XNiV2krjAQqneLsz07kgsh+RDLsUFtjawBsRAh8WmTAcG2WAWHb2qekrMH C7kmmSWWgpFdCbsUfc= Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 29.06.2017 13:56, Geert Uytterhoeven wrote: > Hi Dirk, > > On Thu, Jun 29, 2017 at 11:27 AM, Geert Uytterhoeven > wrote: >> CC clock, ARM, DT, PM people >> >> TL;DR: Clocks may be in use by another CPU not running Linux, while Linux >> disables them as being unused. > >> Of course this is not limited to clocks, but also to e.g. PM domains. > > BTW, how do you prevent Linux from powering down the CR7 PM domain, > which contains the Cortex R7? The idea is { "a2vc1", 0x3c0, 1, R8A7795_PD_A2VC1, R8A7795_PD_A3VC }, Not finally tested, though. Best regards Dirk --- a/drivers/soc/renesas/r8a7795-sysc.c +++ b/drivers/soc/renesas/r8a7795-sysc.c @@ -38,7 +38,8 @@ static const struct rcar_sysc_area r8a7795_areas[] __initconst = { { "ca53-cpu3", 0x200, 3, R8A7795_PD_CA53_CPU3, R8A7795_PD_CA53_SCU, PD_CPU_NOCR }, { "a3vp", 0x340, 0, R8A7795_PD_A3VP, R8A7795_PD_ALWAYS_ON }, - { "cr7", 0x240, 0, R8A7795_PD_CR7, R8A7795_PD_ALWAYS_ON }, + { "cr7", 0x240, 0, R8A7795_PD_CR7, R8A7795_PD_ALWAYS_ON, + PD_CPU_NOCR }, { "a3vc", 0x380, 0, R8A7795_PD_A3VC, R8A7795_PD_ALWAYS_ON }, { "a2vc0", 0x3c0, 0, R8A7795_PD_A2VC0, R8A7795_PD_A3VC },