Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3122089ybl; Sun, 12 Jan 2020 10:14:03 -0800 (PST) X-Google-Smtp-Source: APXvYqyTf5dozCNyHOfKyrk7pzLGLsLz/uWTd48YPOaomO/77RqyYaN5QmkuK/sBGUFjkzLT1mY0 X-Received: by 2002:aca:3255:: with SMTP id y82mr9617495oiy.41.1578852843692; Sun, 12 Jan 2020 10:14:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578852843; cv=none; d=google.com; s=arc-20160816; b=uTdNKtgYWN+wVODhP++pce7KUpMoPhELausTm78n1zGjoB7NQlz+gsTzOk93vC8plB i3v05JC0r29bKPD7FBaa0moqnRyW4uOZyrhfVZcHo0Rm8tbukp+hnjQ/s8m9hB1i87Zv WfZF8nGfjgpScfqJrFjSaFYqyBwvp9mH/N+MFRdyALO1wU0XbmDgwOwnpbIn2fnDO9Y7 y1o0cHEyOKOr2La8noUu09XsKVXJhfelOv3ZsdUt0SGYLBObW1kaIMJ7Asr/qADna9Us +lbNQSZlaqd7JQQUaMdhq7xlCzmldcnQMLKbeKQVHRp3r2FCJTgkUPLyPz5nZ+XBpfJU jjcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=e3CTVqfwVB8ZiU/Nlsteqsk0IzbNSugwDXW2au/cyRw=; b=oF9nQLJRBFf2TKqHbCARpmDPMD+wA8QUAarKgRzATZKuJ5RK49tPU9QhFegVCeObBF ltIX40iC2mPykG2ZC2EValvQ1WWaCTzJHzKR/yslyOtwUfUjQojpp9hAqRkkKwEBR/hs AIrDBlUcXuuzRrDYyijCPemB04o9ZihMqJ57bW9pt5rvY+52oa3GiKz3UPWwrNSgw77p knMYny2ipp0WwSTxkU/KlorP3cYV3D+H0t7IRn6no3rtdxjf7nsucLEAj0zVEhmDkYv5 jP2Gp/ZnJ5ziPkTYyBu/PFeVfR1JDvUX7ksnJFWysdkHgmHzMz/hqTrWUon312nnOSeN mP/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="WFSsG2/y"; 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 m26si5422880otn.307.2020.01.12.10.13.51; Sun, 12 Jan 2020 10:14:03 -0800 (PST) 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=pass header.i=@sifive.com header.s=google header.b="WFSsG2/y"; 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 S1733253AbgALSM0 (ORCPT + 99 others); Sun, 12 Jan 2020 13:12:26 -0500 Received: from mail-il1-f194.google.com ([209.85.166.194]:45547 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732957AbgALSMZ (ORCPT ); Sun, 12 Jan 2020 13:12:25 -0500 Received: by mail-il1-f194.google.com with SMTP id p8so5955276iln.12 for ; Sun, 12 Jan 2020 10:12:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=e3CTVqfwVB8ZiU/Nlsteqsk0IzbNSugwDXW2au/cyRw=; b=WFSsG2/yf3wle5KTOl/qmjFIRIKTF5AF+9fGE9V+3GLXs8NGX7DQK4xKIVd7dLtMFF 9HahEOH1PIQ433mvns+NP4lp5Cl05pA55L4575fITfrFfeV+Wm7ATvqdiwXBf8r62MTK wkMDKIgnMd4HpRqGrGJPuHo2oFJJ7ao0M5VN+t7t8pOV8GE4pU7W1JEt55JnXO3uGyrS YnUNzarWKyVsY636bzkmd9/cOKf2HJPhBg7sQbEeQF/OrhReJFVX1wnOcqpXpSsPtgaa bUDDUxxxh/t1/7fQKvstNqtJbTw4P8fLT4RiRlIuv3H+gfCzFl7j4A9Cun/u8DlYYaMw +WMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=e3CTVqfwVB8ZiU/Nlsteqsk0IzbNSugwDXW2au/cyRw=; b=RtiwrQXdKs4k8YEKgEgIvZb4d4PpDgBp4awv9piVsPGOurA/YV7bZEFMkrp2lu9y6Z FRUwClviee8MNn7HGGo0UKgxMTYV4D62GndQ61Gx7Gld8wv3rxKDhLTCPUZ1hgjHATXl bjH2xjlwm/INgECHRM3T1of9Sl86xZA2RE4+aQwDqoRfjLrLsTUFlPdEMKVPzd5sLgtd OMwWLLuQl3Cii2lmr1O1fwFCIqDJMBqhRa2TpbsXnvJ6yvzFVT45gDY+dWqvY0xeBlDJ hmDOQD8dOerqz7DlXQXSHuZtiLItCnbIkz8UBXodYJa/tqq8Mz2SOZ/sx7q/8p4z3A66 0Ucw== X-Gm-Message-State: APjAAAXr222BLgPZlMMcjUuYhuw9PSn0xPuHB5eArZ9euWO/cuosQeQZ 2B6EVQ5hMyOLQ3/ixIy/gHsUzQ== X-Received: by 2002:a05:6e02:d05:: with SMTP id g5mr11426851ilj.272.1578852744782; Sun, 12 Jan 2020 10:12:24 -0800 (PST) Received: from localhost ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id a3sm2146879iot.87.2020.01.12.10.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jan 2020 10:12:24 -0800 (PST) Date: Sun, 12 Jan 2020 10:12:21 -0800 (PST) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Greentime Hu cc: green.hu@gmail.com, greentime@kernel.org, palmer@dabbelt.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, schwab@suse.de, anup@brainfault.org Subject: Re: [PATCH v3] riscv: make sure the cores stay looping in .Lsecondary_park In-Reply-To: Message-ID: References: <20200109031516.29639-1-greentime.hu@sifive.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greentime, On Thu, 9 Jan 2020, Paul Walmsley wrote: > On Thu, 9 Jan 2020, Greentime Hu wrote: > > > The code in secondary_park is currently placed in the .init section. The > > kernel reclaims and clears this code when it finishes booting. That > > causes the cores parked in it to go to somewhere unpredictable, so we > > move this function out of init to make sure the cores stay looping there. > > > > Signed-off-by: Greentime Hu > > Reviewed-by: Anup Patel > > Thanks, the following is what's been queued for v5.5-rc. During final testing, when building the kernel with an initramfs, I hit the following linker error: LD .tmp_vmlinux1 arch/riscv/kernel/head.o: in function `.L0 ':(.init.text+0x5c): relocation truncated to fit: R_RISCV_JAL against `.Lsecondary_park' make[1]: *** [Makefile:1079: vmlinux] Error 1 make: *** [Makefile:326: __build_one_by_one] Error 2 Could you take a look at this? thanks, - Paul