Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1246217imm; Wed, 6 Jun 2018 12:48:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKkVHCkivsvsuRI/jUz7gQ1nzgmq4i1pvkfn0iCGx3gJiuP9V54e3u0I9jK/vvawdxUbzW1 X-Received: by 2002:a17:902:274a:: with SMTP id j10-v6mr4668119plg.393.1528314482898; Wed, 06 Jun 2018 12:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528314482; cv=none; d=google.com; s=arc-20160816; b=xw1FLcosUkQbLZFrqjWGxriQ49mYffeoInodzBuJylroVMOcHY44mRlcWF/BizFNRF RQ0qHLYkexDlda4R5NXFzG0qaw4MAw5vntb+icSUI2bvz0Pnw/tO0Ydb0KU8TPWvxwZq 4MbGZGDC5joj/LAp0yei10TK6ptCOzHq08mBxJ4MNktsRMxoZ4J2BautTjHP4SedobNC o/G9OzKEAiW0Di4iiTbDC7QNCWOVmIF23YjKgXE2eK5xnA0nmLvbJZio1uDlsYEMbuCf +1SgmYDEi0v6svL3pUbvJnOhwxVKv0XGhv5DAJy03pkuPwsP5y3NCiU9c0+Thvf7oXOP XaRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=/dfOEduecKD0dNhw+SZydJsFpw/1Kw6wHU2hF4aebLA=; b=qKZ9E+HZsRBxFuBil/cdvR1m1kCvmG7VKcUqSSxDirwYPnZtqzkigZmNg5T1gRjDLH /2Yqm6IAw7NxuraRbjlmIBvFKMc7gMRaxeLFyIelA7XbX9wbNefLLu9qZcaXonD7kXrz KB/QZpM8/+aY7/nhwP1MAGU/VHWsxt1+eufM0fau6ABciyaT89Y2qmQ2DPE/znCSrZa4 E8l1MxDV2cefb9paJv5WKf3+vFzHlJopyb/zA49NI61fMUuY8+iUyoC9d628HS3stcN7 YeCJMs9MY3BYo0Pfs7JmJW6EXwrMuqHWjYYHdDlzOvrZb6hnCgJkltuTKHS2zN7ZORFj 3URg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ie/ER7wp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6-v6si8355644pgr.164.2018.06.06.12.47.48; Wed, 06 Jun 2018 12:48:02 -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=@gmail.com header.s=20161025 header.b=ie/ER7wp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752520AbeFFTqZ (ORCPT + 99 others); Wed, 6 Jun 2018 15:46:25 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:43234 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752188AbeFFTqX (ORCPT ); Wed, 6 Jun 2018 15:46:23 -0400 Received: by mail-ua0-f195.google.com with SMTP id z16-v6so4852365uaz.10; Wed, 06 Jun 2018 12:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=/dfOEduecKD0dNhw+SZydJsFpw/1Kw6wHU2hF4aebLA=; b=ie/ER7wpvkUeXkHeRWLnAUYKJdwObyzQ4TZft1xg25BDHEzFAhkvmEcUQzvUVaAUw/ AA5gkfaKi5l7Jw2ppzgK1wC0cxKVkA3FfUIugSR2t3Jnl/Imt028LD0/JBpyOK3df2sl FZmGmCkdu8g5SQ88fs1jVGpDq7mrW8rSSeq805ntae5l/lNn/AX+r9Bbw1pXdMAK+Cf/ oBDEtk7qgiQBZ1bgHzfm0otXUXuoctSNujdNhBJsVB42QPbvcQnVnJLHGKb/p3iPdI43 bqcrMGk19H+cYgrCNd5+geb42sIgo4Ge3yOUs9o7sc680WIB0BZLSTOOrvcJIfqTscc9 bhUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=/dfOEduecKD0dNhw+SZydJsFpw/1Kw6wHU2hF4aebLA=; b=hgb2UHRcLUgXQYm+7fnOgo5qBans4lDoorKCpJJMqbIJ1oGS3RmnNH3BCG1MLeLGiw ZSkJJZUdYtnpGipOVe+t5EKw4rg0jL7qfQBG8PnHy8afDo3CIpS3qLEwCP5toV4pU4TD IwCip0j/1gX+mpPOt6kMau7DSYGU9y2k9kWqV4NZdkQOzk7yQn6UqS5npbcEVM3soO6T 8WVXctc26gXRViAPbt9r1fZgDWf95ug1rbkMOqxaJX2dpCj4dNLxIiHpfkEYEDtSuHXa oKH0QqNPxyGk+fJe2AG9oS8cxxLaqdgomANwllvMebyN2328jNNdJdWMikF9yot2imb9 HFzw== X-Gm-Message-State: APt69E0mht5hW2m5gtIiIlq8uQtp+Slsw2KLa8yq++z8+GqlXOLVJJIZ 4OFyHrKAV1T0r1ypSKgXKB8NyWtEsNejr0PY6/o= X-Received: by 2002:a9f:2e0f:: with SMTP id t15-v6mr3193009uaj.114.1528314381728; Wed, 06 Jun 2018 12:46:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:8596:0:0:0:0:0 with HTTP; Wed, 6 Jun 2018 12:46:21 -0700 (PDT) In-Reply-To: <7e49c265-e332-29c5-5d91-4b5d5da6cb37@gmail.com> References: <1528198148-23308-1-git-send-email-michel.pollet@bp.renesas.com> <1528198148-23308-3-git-send-email-michel.pollet@bp.renesas.com> <0481173f-6384-98d6-707c-89dc5ef103f0@gmail.com> <7e49c265-e332-29c5-5d91-4b5d5da6cb37@gmail.com> From: Geert Uytterhoeven Date: Wed, 6 Jun 2018 21:46:21 +0200 X-Google-Sender-Auth: JQ7qkuEPksKI8aIWwTVJuouVjXk Message-ID: Subject: Re: [PATCH v4 2/3] arm: shmobile: Add the R9A06G032 SMP enabler driver To: Florian Fainelli Cc: Frank Rowand , Michel Pollet , "linux-renesas-soc@vger.kernel.org" , Simon Horman , Michel Pollet , Mark Rutland , Phil Edworthy , Douglas Anderson , Rajendra Nayak , "devicetree@vger.kernel.org" , Stefan Wahren , Magnus Damm , "linux-kernel@vger.kernel.org" , Russell King , Chen-Yu Tsai , Rob Herring , Carlo Caione , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Frank Rowand , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, On Wed, Jun 6, 2018 at 9:37 PM, Florian Fainelli wrote: > On 06/06/2018 12:30 PM, Frank Rowand wrote: >> On 06/05/18 23:36, Michel Pollet wrote: >>> On 05 June 2018 18:34, Frank wrote: >>>> On 06/05/18 04:28, Michel Pollet wrote: >>>>> The Renesas R9A06G032 second CA7 is parked in a ROM pen at boot time, >>>>> it requires a special enable method to get it started. >>>>> >>>>> Signed-off-by: Michel Pollet >>>>> --- /dev/null >>>>> +++ b/arch/arm/mach-shmobile/smp-r9a06g032.c >>>>> +/* >>>>> + * The second CPU is parked in ROM at boot time. It requires waking >>>>> +it after >>>>> + * writing an address into the BOOTADDR register of sysctrl. >>>>> + * >>>>> + * So the default value of the "cpu-release-addr" corresponds to >>>> BOOTADDR... >>>>> + * >>>>> + * *However* the BOOTADDR register is not available when the kernel >>>>> + * starts in NONSEC mode. >>>>> + * >>>>> + * So for NONSEC mode, the bootloader re-parks the second CPU into a >>>>> +pen >>>>> + * in SRAM, and changes the "cpu-release-addr" of linux's DT to a >>>>> +SRAM address, >>>>> + * which is not restricted. >>>> >>>> The binding document for cpu-release-addr does not have a definition for 32 >>>> bit arm. The existing definition is only 64 bit arm. Please add the definition >>>> for 32 bit arm to patch 1. >>> >>> Hmmm I do find a definition in >>> Documentation/devicetree/bindings/arm/cpus.txt -- just under where I >>> added my 'enable-method' -- And it is already used as 32 bits in at least >>> arch/arm/boot/dts/stih407-family.dtsi. >> >> From cpus.txt: >> >> - cpu-release-addr >> Usage: required for systems that have an "enable-method" >> property value of "spin-table". >> Value type: >> Definition: >> # On ARM v8 64-bit systems must be a two cell >> property identifying a 64-bit zero-initialised >> memory location. >> >> The definition specifies a two cell property for 64-bit systems. >> >> Please add to the definition that cpu-release-addr is a one cell property >> for 32-bit systems. > > Or maybe phrase it such that the number of cells encoded in > cpu-release-addr must exactly match the CPU node's #address-cells size? The CPU node's #address-cells size is unrelated. You need the #address-cells value from the SoC bus (typically the root node, not considering heterogeneous systems with multiple CPUs ;-). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds