Received: by 10.192.165.156 with SMTP id m28csp1045689imm; Wed, 18 Apr 2018 03:06:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx48j4F0vFlo38Ke24GF1sIkeqTE6ip77Ssntj/F7epKJCGV0yz4/xUHq0T47DS0cNlz9y2fF X-Received: by 10.167.134.70 with SMTP id a6mr1399349pfo.203.1524046010320; Wed, 18 Apr 2018 03:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524046010; cv=none; d=google.com; s=arc-20160816; b=DkVpPhvYEPTaBnLZz6GF68MtMcMvL0a6aoCIFAYQnnSXU8xQeOgTb4RH+R5yiH8ooY dz5bekPFHLBtIufg2yZfu48pXPo9ZRgkTWJLOWFwrsXZUw+y8MV0CsZKomKJBLXekQkA 9f8HcyVD039icIMAxRU7rbflt0TuWGMilklwUhuoeERhQkjMGj9xmjV/HpfeKVORkYea JPM+BCD/eLhvHx+6dtrn/3J/WQ1KiVOQsQ74s3npMRxCgSIOF2PtbufnUkuI8Ra8BNx+ 0G76RtjEBW9GnaE/y7AvDzPWh3h657ScslacfGEzNsEFocr+QSpoaz8g2iLmbe9dVSsC mMZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :arc-authentication-results; bh=/O4yE30c7E3MQs7k4nphT7xmjyB+ugvYNsnJGThhh5A=; b=Iz2FEjlTf76bvr1QyptKVdYzbF9jWLRKg1gvO+xRnfdUyj+0FiM3rcWmqwM+JvfakQ 1oUUAkGHfKnL5SyQZrOf9DuKhLrdrex5WmxDIQnPSufBRyoS93xJgUkQXPASLqa5ziLI 2WbvyWcDlTOmgE5RlsxyeRZI0SLeF66NVkL3rEVf/8ofe5mU8yI3eiepdfOvEUSIGP5M kj654nNQj1rY3nY7Pf3AT44QAFL1/Y0X3ljtQOui3h8r7xsC119ix03ihO+8atiChhbn Pz3qhI3Mfbzkdt550fnwhAzGX08HV0ibkcstOk2EqsyIZx+cWh7dmLGix89Ri6wF88hE RdJw== ARC-Authentication-Results: i=1; mx.google.com; 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 o69si883292pfi.157.2018.04.18.03.06.36; Wed, 18 Apr 2018 03:06:50 -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; 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 S1753323AbeDRKF3 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 18 Apr 2018 06:05:29 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:43519 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753215AbeDRKF0 (ORCPT ); Wed, 18 Apr 2018 06:05:26 -0400 Received: by mail-wr0-f193.google.com with SMTP id u4-v6so3159997wrg.10; Wed, 18 Apr 2018 03:05:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=PSEsYXPVoxTdIss2Up3tDw1M9MDVck/lfscf1QSsK78=; b=D8hM2SxiNglGMVt5+5U5O2yWwuy2WQTP56c3BVfwIYhVTNDtALRjVoBT7tm+hJ3r4M A34ZKOGxSSAUht6s6zN7e08mHH4v0XHmvuKz8SUbhsJ9fUtxiy1LXornoKrd7YfBCcnK DQz5SfDNOy1Z88jJgV/uGKnZoaKmeod1JiXzTSvBpso//Mk7G4Bmf3PDSeon3Zb1z5C3 mYmvZ4mxdC3vlkjK1czOLFOoJVxSEMi9PKnHc5Z3BHiMfk22DJZz8AywrRsSOhwe0z4e vDfMRtum0UlNHFvPqvxhQcYfhc12uH8ePWnj5KHd0434T5jjYAgf+D/2ybpplFm7ZX+v UPiw== X-Gm-Message-State: ALQs6tBTBpu21ExSiDBYVwj9+qIrK66nmBnR1KUXGTOFHn/UqHBvSAu8 TyuKemhyN8xwHTyCoJY85mzFR/aF X-Received: by 10.80.169.47 with SMTP id l44mr2319846edc.41.1524045924713; Wed, 18 Apr 2018 03:05:24 -0700 (PDT) Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com. [209.85.128.176]) by smtp.gmail.com with ESMTPSA id b7sm993907eda.18.2018.04.18.03.05.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 03:05:24 -0700 (PDT) Received: by mail-wr0-f176.google.com with SMTP id u4-v6so3159857wrg.10; Wed, 18 Apr 2018 03:05:24 -0700 (PDT) X-Received: by 10.28.87.13 with SMTP id l13mr1306978wmb.120.1524045924024; Wed, 18 Apr 2018 03:05:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.142.19 with HTTP; Wed, 18 Apr 2018 03:05:03 -0700 (PDT) In-Reply-To: <20180418084535.lqdvjgcbxtnwqwri@flea> References: <20180416215032.5023-1-mylene.josserand@bootlin.com> <20180416215032.5023-2-mylene.josserand@bootlin.com> <20180417111737.6dous6eiuvjn33jf@flea> <20180418084535.lqdvjgcbxtnwqwri@flea> From: Chen-Yu Tsai Date: Wed, 18 Apr 2018 18:05:03 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 01/11] ARM: sunxi: smp: Move assembly code into a file To: Maxime Ripard Cc: =?UTF-8?Q?Myl=C3=A8ne_Josserand?= , Russell King , Marc Zyngier , Mark Rutland , Rob Herring , Simon , Geert Uytterhoeven , Magnus Damm , "open list:ARM/SHMOBILE ARM..." , devicetree , LABBE Corentin , Quentin Schulz , Thomas Petazzoni , linux-arm-kernel , linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 18, 2018 at 4:45 PM, Maxime Ripard wrote: > On Tue, Apr 17, 2018 at 07:25:15PM +0800, Chen-Yu Tsai wrote: >> On Tue, Apr 17, 2018 at 7:17 PM, Maxime Ripard >> wrote: >> > On Tue, Apr 17, 2018 at 11:12:41AM +0800, Chen-Yu Tsai wrote: >> >> On Tue, Apr 17, 2018 at 5:50 AM, Mylène Josserand >> >> wrote: >> >> > Move the assembly code for cluster cache enabling and resuming >> >> > into an assembly file instead of having it directly in C code. >> >> > >> >> > Remove the CFLAGS because we are using the ARM directive "arch" >> >> > instead. >> >> > >> >> > Signed-off-by: Mylène Josserand >> >> > --- >> >> > arch/arm/mach-sunxi/Makefile | 4 +-- >> >> > arch/arm/mach-sunxi/headsmp.S | 80 +++++++++++++++++++++++++++++++++++++++++ >> >> > arch/arm/mach-sunxi/mc_smp.c | 82 +++---------------------------------------- >> >> > 3 files changed, 85 insertions(+), 81 deletions(-) >> >> > create mode 100644 arch/arm/mach-sunxi/headsmp.S >> >> >> >> I'm still not convinced about this whole "move ASM to separate >> >> file" thing, especially now that you aren't actually adding any >> >> sunxi-specific ASM code beyond a simple function call. >> >> >> >> Could you drop this for now? >> > >> > I'd really like to have this merged actually. There's a significant >> > readibility improvement, so even if there's no particular functional >> > improvement, I'd still call it a win. >> >> What parts do you consider hard to read? The extra quotes? Trailing >> newline? Or perhaps the __stringify bits? > > All of this, plus the clobbers and operands. Ok. Lets move it then. The kbuild reports indicate this still needs some work though. ChenYu