Received: by 10.192.165.156 with SMTP id m28csp363582imm; Wed, 18 Apr 2018 23:54:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx49y14k1h6TE6C2tPG2iTX4rnZIah9UIp3tWmHbHFyjwcsduFKRJbvDxmVt9KgWE9UmYw169 X-Received: by 2002:a17:902:4545:: with SMTP id m63-v6mr5091518pld.268.1524120899574; Wed, 18 Apr 2018 23:54:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524120899; cv=none; d=google.com; s=arc-20160816; b=nWEamS5h2qpIyEa7oLZx9sakjzmXxECgErCzvpw8zMt7E3jiCRs/x+sSAALE+vnNvf j5PVLYpAdYGAgr6/+8WRL7K2IaRWUbl/M6kIlQSA6jUjOslB77YkPKxGBFSUsgk5mUWr IkfE1oiM9P+A1GG14s4j3IGl6GIFcsATkyEakjXWKhHyaySLbec/wOTL5nnWnchRrQan YOJJTkSnuOfVWB2LxpvxonVNmBWLsMy1fsoiolU6izFxj+86uLdhkr5sfh59fKTolih/ dUrjOHUNGSaCju/5EvvMqhvWR0ldNeUfn0yIA0JR1fVt9nnnASGMHw8JZpj5RuebA/YR y6Vw== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=1CmO+kfArNEDOMlLXycka05A5jHlw5GcGGcjn0VwLrg=; b=fRvqC7DYDj175wW7BQaLVha0i3IQb4FykWisydQLBtIAOM3a5mS0/oDzh3YmAHkGEn NTh8Rd0zQArPDk5wTS3uvbSC4daOrQjyO7lZKQ5p85ExtMfHzn/vQ57mIhb3fiVtVejB 9vD5iETY9tFJj+xBIcXUSDa3NvmXyqKnhfHA5dLfGhNP2nap0AvtR1mmPvtIMAuHJC8C w+wFvQSPyglyAYSEVmi2y/sKBjajJsGbsN/2Q16T6M2DzB/T3U1ir5LwZrw2MDAIia96 k58+7u8aQpNMJcM/G+zwHUpdpUXaB1ezp84pju5puEsS5Y3kc7tX6mLE+Q28LxCMXYrc KqkA== 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 n26si2569837pgc.677.2018.04.18.23.54.45; Wed, 18 Apr 2018 23:54:59 -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 S1751135AbeDSGxb convert rfc822-to-8bit (ORCPT + 99 others); Thu, 19 Apr 2018 02:53:31 -0400 Received: from mail.bootlin.com ([62.4.15.54]:52860 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750732AbeDSGx3 (ORCPT ); Thu, 19 Apr 2018 02:53:29 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 361CF20712; Thu, 19 Apr 2018 08:53:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.home (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id A7F1A2064B; Thu, 19 Apr 2018 08:53:16 +0200 (CEST) Date: Thu, 19 Apr 2018 08:53:16 +0200 From: =?UTF-8?B?TXlsw6huZQ==?= Josserand To: Chen-Yu Tsai Cc: Maxime Ripard , 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 Subject: Re: [PATCH v6 01/11] ARM: sunxi: smp: Move assembly code into a file Message-ID: <20180419085316.0bd9bfad@dell-desktop.home> In-Reply-To: References: <20180416215032.5023-1-mylene.josserand@bootlin.com> <20180416215032.5023-2-mylene.josserand@bootlin.com> <20180417111737.6dous6eiuvjn33jf@flea> <20180418084535.lqdvjgcbxtnwqwri@flea> Organization: Bootlin X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 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 Hello Chen-Yu, On Wed, 18 Apr 2018 18:05:03 +0800 Chen-Yu Tsai wrote: > 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. Ok, I will not drop this patch then. > > The kbuild reports indicate this still needs some work though. Yes, this is "normal" because the patch, that I depend on, is not applied yet (even if my cover-letter can let think that, it is not the case, sorry). It is applied on Broadcom ARM SoC since Tuesday: https://lkml.org/lkml/2018/2/23/1263 https://github.com/Broadcom/stblinux/commits/soc/next With this patch, it should fix the errors reported by kbuild. Best regards, -- Mylène Josserand, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com