{"id":808586,"url":"http://patchwork.ozlabs.org/api/1.0/covers/808586/?format=json","project":{"id":19,"url":"http://patchwork.ozlabs.org/api/1.0/projects/19/?format=json","name":"Linux IMX development","link_name":"linux-imx","list_id":"linux-imx-kernel.lists.patchwork.ozlabs.org","list_email":"linux-imx-kernel@lists.patchwork.ozlabs.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<1504255066-5103-1-git-send-email-geert+renesas@glider.be>","date":"2017-09-01T08:37:43","name":"[v3,0/3] ARM: renesas: Enable SMP on R-Car E2","submitter":{"id":63808,"url":"http://patchwork.ozlabs.org/api/1.0/people/63808/?format=json","name":"Geert Uytterhoeven","email":"geert+renesas@glider.be"},"series":[{"id":974,"url":"http://patchwork.ozlabs.org/api/1.0/series/974/?format=json","date":"2017-09-01T08:37:43","name":"ARM: renesas: Enable SMP on R-Car E2","version":3,"mbox":"http://patchwork.ozlabs.org/series/974/mbox/"}],"headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"GIUBrf42\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xkCM62mVpz9sPk\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri,  1 Sep 2017 18:38:42 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnhTK-0006vc-10; Fri, 01 Sep 2017 08:38:38 +0000","from xavier.telenet-ops.be ([2a02:1800:120:4::f00:14])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnhT0-0006fR-W3 for linux-arm-kernel@lists.infradead.org;\n\tFri, 01 Sep 2017 08:38:21 +0000","from ayla.of.borg ([84.195.106.246])\n\tby xavier.telenet-ops.be with bizsmtp\n\tid 48do1w00M5JzmfG018doRw; Fri, 01 Sep 2017 10:37:50 +0200","from ramsan.of.borg ([192.168.97.29] helo=ramsan)\n\tby ayla.of.borg with esmtp (Exim 4.86_2)\n\t(envelope-from <geert@linux-m68k.org>)\n\tid 1dnhSR-0002Y4-QM; Fri, 01 Sep 2017 10:37:43 +0200","from geert by ramsan with local (Exim 4.86_2)\n\t(envelope-from <geert@linux-m68k.org>)\n\tid 1dnhSW-0001L2-9h; Fri, 01 Sep 2017 10:37:48 +0200"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:\n\tSubject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:\n\tReferences:List-Owner; bh=fzv7S8hUwPpxazkHQGbs6iR7lYpy/aXkSzqej9pfZEA=;\n\tb=GIU\n\tBrf42DEFBfN5j542EuPYb5VM9o600K2uYYusw4T4iOSLnOtlkvCJzBiMshCcLlBXPm636yoPaEo5i\n\t+J2ekYjl7+OL/QAV9hLUt8wJel5Jkwo1ma7cLF5QOEOiJEO7PomSm1QU/Q9PQAdAEA9f8yfiRXvsA\n\tikdJHc2pdU7H1ip4/2BTNFrLrCSTciiGOxv70FpSH/cSvROkzXUXZ8a8VlDnQvrtKzLI4YTE4QTxl\n\tzKzcwZftSjrk9JKNZa6DkE9RFFgO3u232xROyDBUbSU8bxhasez5EEkRV54uM5MKqPVebZ5ZCf9vh\n\tV9wvhfvNxBHBywTe/jwDMwyrQpv2efg==;","From":"Geert Uytterhoeven <geert+renesas@glider.be>","To":"Simon Horman <horms@verge.net.au>, Magnus Damm <magnus.damm@gmail.com>, \n\tRussell King <linux@armlinux.org.uk>,\n\tCatalin Marinas <catalin.marinas@arm.com>,\n\tMarc Zyngier <marc.zyngier@arm.com>, Mark Rutland <mark.rutland@arm.com>","Subject":"[PATCH v3 0/3] ARM: renesas: Enable SMP on R-Car E2","Date":"Fri,  1 Sep 2017 10:37:43 +0200","Message-Id":"<1504255066-5103-1-git-send-email-geert+renesas@glider.be>","X-Mailer":"git-send-email 2.7.4","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170901_013819_279127_50F00947 ","X-CRM114-Status":"GOOD (  13.65  )","X-Spam-Score":"-2.6 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.6 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow\n\ttrust [2a02:1800:120:4:0:0:f00:14 listed in] [list.dnswl.org]\n\t0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level\n\tmail domains are different\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"linux-renesas-soc@vger.kernel.org,\n\tGeert Uytterhoeven <geert+renesas@glider.be>,\n\tlinux-arm-kernel@lists.infradead.org","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"},"content":"Hi all,\n\nThis patch series enables SMP on R-Car E2 (r8a7794).\nThe main hurdle here is that R-Car Gen2 boot loaders do not initialize the\narch_timer CNTVOFF register, which thus needs workarounds on Linux.\n\n  - The first patch adds a definition for MON_MODE, as suggested by Marc\n    Zyngier,\n  - The second patch makes sure CNTVOFF is initialized for boot and\n    secondary Cortex-A15 and Cortex-A7 CPU cores, like is already done\n    for the boot Cortex-A7 CPU core.  Without this, the ARM arch timer\n    does not work on secondary CPU cores.\n    This patch depends on \"[PATCH v2] ARM: shmobile: rcar-gen2: Correct\n    arch timer frequency on RZ/G1E\".\n  - The third patch adds the required infrastructure (APMU device node\n    and corresponding enable-method) to DT.\n    Obviously this must not be applied on a branch that does not contain\n    the first two patches!\n\nDue to dependencies, I think it is easiest if the ARM maintainers provide\ntheir Acked-by for patch 1, so the whole series can go in through Simon's\nRenesas tree.\n\nChanges compared to v2:\n  - Replace \"isb\" by \"instr_sync\" to fix the arm v6 build (e.g.\n    allmodconfig),\n\nChanges compared to v1:\n  - New patch \"[PATCH v2 1/3] ARM: Add definition for monitor mode\",\n  - Initialize CNTVOFF on Cortex-A15, too,\n  - Use *_MODE definitions instead of hardcoded values,\n  - Reduce duplication by calling the asm version from C,\n  - Always build headsmp-apmu.o on R-Car Gen2.\n\nThis has been tested on r8a7794/alt (dual Cortex-A7), and regression-tested\non r8a7790/lager (quad Cortex-A15), and r8a7791/koelsch, r8a7791/porter,\nr8a7792/blanche, and r8a7793/gose (dual Cortex-A15).\n\nThanks!\n\nGeert Uytterhoeven (2):\n  ARM: Add definition for monitor mode\n  ARM: shmobile: rcar-gen2: Make sure CNTVOFF is initialized on CA7/15\n\nSergei Shtylyov (1):\n  ARM: dts: r8a7794: Add SMP support\n\n arch/arm/boot/dts/r8a7794.dtsi           |  7 ++++++\n arch/arm/include/uapi/asm/ptrace.h       |  1 +\n arch/arm/mach-shmobile/Makefile          |  1 +\n arch/arm/mach-shmobile/common.h          |  2 ++\n arch/arm/mach-shmobile/headsmp-apmu.S    | 37 ++++++++++++++++++++++++++++++++\n arch/arm/mach-shmobile/platsmp-apmu.c    |  2 +-\n arch/arm/mach-shmobile/setup-rcar-gen2.c | 20 ++---------------\n 7 files changed, 51 insertions(+), 19 deletions(-)\n create mode 100644 arch/arm/mach-shmobile/headsmp-apmu.S"}