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: 9816591 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 378DD603D7 for ; Thu, 29 Jun 2017 12:08:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A11C27528 for ; Thu, 29 Jun 2017 12:08:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E84D27FE4; Thu, 29 Jun 2017 12:08:16 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9EDD227528 for ; Thu, 29 Jun 2017 12:08:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9Tcd41cjs8DFakU9kqlTbnT3z+0QqXbyLoE733y8p4w=; b=On7TKD6JJwmQOKMqCPn21C9nb bB0OV4xgaBWsY8rGZyDD7AhU/HHNypYMkP+1SfbfgmHyTNjeV/XFuNkCBG+pJKZvQAjfeBXHIIqsY rLhyBTqniONEnxtZ7onNE6YgV2syGZB7pUjed75wr0/Jt4ferbjGapRpp+Rk5d+mATlPDP6bqn1Nq u9SbmRYDZIp27CI9/3aZ1eQkp106NXuv36qv15LGbbL9GtGa+8LXIgQPmmdUoQrBdoCHw3CESfm7r 88HCBdxV7C3tcglTumzQmLbjXIoYPrmsJFnQQLeL2bcoqSniKhQA0eS4M5QscgMyEhOOto0MRE1OT +JW4ap73Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQYF3-00074Y-Af; Thu, 29 Jun 2017 12:08:13 +0000 Received: from smtp6-v.fe.bosch.de ([2a03:cc00:ff0:100::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dQYEz-0006zF-JY for linux-arm-kernel@lists.infradead.org; Thu, 29 Jun 2017 12:08:11 +0000 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 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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170629_050809_861097_D2D68D96 X-CRM114-Status: UNSURE ( 7.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "devicetree@vger.kernel.org" , Ulf Hansson , Linux PM list , Stephen Boyd , Michael Turquette , "Rafael J. Wysocki" , Linux-Renesas , Rob Herring , Kevin Hilman , linux-clk , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 },