Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7267958ybl; Wed, 15 Jan 2020 19:09:34 -0800 (PST) X-Google-Smtp-Source: APXvYqz7K4mZ0rSllmuruhhplHwt44KZkyhhKdOianRtsuyT7eCtzolTSb6KcFawdnJkhaQ69yfD X-Received: by 2002:a9d:4796:: with SMTP id b22mr346444otf.353.1579144174622; Wed, 15 Jan 2020 19:09:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579144174; cv=none; d=google.com; s=arc-20160816; b=d/BJxqt3yC04K5Mcq3SahnW9UC8cQcw7k+OXJjDUHodVJiALWxVcZKX47p2ML+H/Bm 5yiCeQ6vIFL+p5YrEDdfRP5/c8kbYlguzBGFv6+o4OklCp7rgH8/8tPwk2reD57UEOYP 3uwMISPJ31h7YwwrRb/reailCkOxOPuhKQkIYpbGDZ6R0Smt7Xzk+wQc5KJEglLnL1yW VN7SFmgltBzpv9sr4cbRi77bCstIcrXy/+G5ztqSFaZ6FBLsVJm8xId307SuWPNzZ/dC xVFQFLvrgOwrAlcFhE2x6DPtL5GSZYUXvTWWnLe2RvgAHZeD8lIpmEfL5XYJdyZVnpW1 wDVg== 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=ZMxDPPtpfyDr16DAViPOjphNjCxUKCyR951nmWvnX+0=; b=CXydUrkqNp9mdN1PFt1lnL87Zyweyh65ad4TxskgOzkJDRUeSk3r5+6TnNl1ecMrSU 4aSf6iuC6QcO55OXuBkWv7pBmOYBFmiVFoYTSXV6lkpKJIfrKDV7XM25RsmA3qzQW9sd 7kvWIBUF8Jna9w1+HqcXczeHdfyDaGUyLcJw2QJwSe5BApK/AwamMhOrm9fGStG+0zsp ifZse+C1QrAnxxDYqe+PLYb1/H5CTDL5Z8LcOqBc6DdzSkz+3C101aPA5Cu+LvGZ2jsr wNCP/5oBKqo7D90eaLH4+3/Z2p/o0su8Y0PQOV3q3jgIcjfFm1JdgNu5WdrD9VCULX/4 bYOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=RqbHK8Vo; 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 q8si12259463otk.283.2020.01.15.19.09.22; Wed, 15 Jan 2020 19:09:34 -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=RqbHK8Vo; 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 S1729427AbgAPCc7 (ORCPT + 99 others); Wed, 15 Jan 2020 21:32:59 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:34215 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729043AbgAPCc7 (ORCPT ); Wed, 15 Jan 2020 21:32:59 -0500 Received: by mail-io1-f66.google.com with SMTP id z193so20097269iof.1 for ; Wed, 15 Jan 2020 18:32:58 -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=ZMxDPPtpfyDr16DAViPOjphNjCxUKCyR951nmWvnX+0=; b=RqbHK8VoNCXEI+hIdHVL/MC88sR1q4OPTXukFJTkCL/S7mLSBkvaWjPbEO2L6KiNFE FhJusyzBBdV6kQ+a+YlTrvqU1YKNRBO4mhi1ULYHYxGkptEAQoBXJsH3mv+FHZHbmjUA lwLqyjkVstTa24clYlsBGKvyucNtx5Vu6wGV8j+2BRaOcMvQaU0kKYIPj29mQIn+/36R 0NiXjAbEOA0a3MXvPd8ZyKRp5YExsJTzMX6AD+vrtGPu2uRtZKQQS4IIkgAk7HSgJtC8 tVDjeI9PNc+AZ/kdpwMMxAEqhSUELgnJcgLO+//z3PFC0Cx1sEcLfqiWo4CIiUoIzZFy uz5w== 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=ZMxDPPtpfyDr16DAViPOjphNjCxUKCyR951nmWvnX+0=; b=aqWvt4PDqDxLUDYVgUOSlWLSJSFwW0XKX9xorftxM86i2S1RDdUoqyVK7Tgz79KQaO oqCRyB6+AViPWbaY3Qm3Y2mBWV+M9sDUT0x2eBLvPy480j3UX1QtInhk9+o4mnLDMBP/ sEs2+jx0eYrxPl8U7K7A/bk30nMeQQopp9Hha3aZXrxEGfoqq4acFAYH1jJDtsj+idqO W7z4MtV1e1NYARKltBLbaDWOPWzHCcrcSyk1zbQ8//WYBDX36bdK/PIvJQdOD7aKgrI0 xA0K8++NKqr9LtMUhv20h2ewOEe0jlIecj+PB9rATpAY2PbGKae5SoKamhLKx2Kiga+q P/pw== X-Gm-Message-State: APjAAAVoL8ociPyJpcwkZGojhaC1iNk0XrQnpCC1INTkLqkwIGmnA8E3 axH8Ch4Q851hMtjAHpP+KP/VEA== X-Received: by 2002:a6b:e004:: with SMTP id z4mr24598779iog.235.1579141978190; Wed, 15 Jan 2020 18:32:58 -0800 (PST) Received: from localhost ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id z15sm6458956ill.20.2020.01.15.18.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2020 18:32:57 -0800 (PST) Date: Wed, 15 Jan 2020 18:32:55 -0800 (PST) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Greentime Hu , anup@brainfault.org cc: green.hu@gmail.com, greentime@kernel.org, palmer@dabbelt.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, schwab@suse.de Subject: Re: [PATCH v4] riscv: make sure the cores stay looping in .Lsecondary_park In-Reply-To: <20200115065436.7702-1-greentime.hu@sifive.com> Message-ID: References: <20200115065436.7702-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 On Wed, 15 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. > > The instruction bgeu a0, t0, .Lsecondary_park may have "a relocation > truncated to fit" issue during linking time. It is because that sections > are too far to jump. Let's use tail to jump to the .Lsecondary_park. > > Signed-off-by: Greentime Hu Thanks, queued for v5.5-rc. Anup's Reviewed-by: has been dropped since the patch changed significantly - Anup, if you are still happy with it, please reply with another Reviewed-by:. Thanks, - Paul