Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7356603ybl; Wed, 15 Jan 2020 21:18:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzo2zuHn25EnTeU+B0Bt4Li5McIniboGtdZ+bM87ZmWaiGjrV+/KXO6xp0i9cVSbJ/Pv00Q X-Received: by 2002:a05:6830:4a7:: with SMTP id l7mr641044otd.372.1579151900484; Wed, 15 Jan 2020 21:18:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579151900; cv=none; d=google.com; s=arc-20160816; b=0LG910GULNWSAKSAnGLlS6gcyjYAbDPoUkJ8sVRedsCIkgnaTHSL5r9x/T2ulbn2Xa DRdNZeCojBE6tkqEfTxu11oSK2Y9LKTTjRYzWCOJTm/tI6wOdzhZPwvwhNFBdaU9mSAj c73Tf9FR0FPzQO3w2EYle4TDqD42Ip6V4NZl90jr37sRpFf60vU6QOJFXFv9uOJyULFj Gkonx6Tob+yfBPpctRSpKUvohkdXyEzLRJFnL90bD0AL3gY1j50R1bSJHgsw3WcbL7uz 24vGiqa6yrqQR+xliA6AOpHVNOpyfjuUrd1OMeDNql7Uszf0cWz+VAJkUHXDP5776d6q CgZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fdDF50I5hxOY/uPvyTi5Nyzs/7Qte+oY6PsGo1nyL58=; b=ho6HM4r71kJvFkNCc1WtjUk2m8P0Ri5c7Kv7QbZlwi59ogu31XbJ2USVeXDTWM1cOS RGpXx8AcvzYAUhTHhfA2KOM8fyWESgIVtWRsBruedorP3MZwBP5/VFugIwYZ0Pq9qAFQ krTIiafUMCivntZ4n9hGW1W1t+tp+3IbxnwyLq+4FOeVvdP0go2QOAWh5RxmHj4m6kla ntuVuPgLEVi44uQXuNCQlB9TbJkQn16HJb8wPixTLK8hOJMTe9IxJ2tn0ZWlqKVAJWPl QzVj+eyd+u6uTZ9B/gRb4Kp7KiDrBpqOx6EGzjnXSKZWUQehOkgekax/qXXfx3nrvHC1 GKVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=VJZd2J3E; 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 q26si10055455oij.38.2020.01.15.21.18.07; Wed, 15 Jan 2020 21:18:20 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=VJZd2J3E; 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 S1730913AbgAPE3G (ORCPT + 99 others); Wed, 15 Jan 2020 23:29:06 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34975 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729048AbgAPE3F (ORCPT ); Wed, 15 Jan 2020 23:29:05 -0500 Received: by mail-wm1-f65.google.com with SMTP id p17so2319965wmb.0 for ; Wed, 15 Jan 2020 20:29:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fdDF50I5hxOY/uPvyTi5Nyzs/7Qte+oY6PsGo1nyL58=; b=VJZd2J3EFk4ApDAMA0KbDnAQusdZC6K5RRRZ4scnAuuUXCdOd7bkkyKATo3LVHqGfc 7+Y2mXmYskr27gV6fWdm2yaZ3EhnQGcM86zrXjhQFrFjgSNc7pTO2vd541y2uQbQr5mV ThYe9oy1kI5ia7dtARf11oWgcp0HBfN0QtCKqoQpcatBifaj9SNUd5SWpr0rHhWvWd4l zS8cMHIrVSZ/nC3cIfbSbYrPL/t4VrFQlPrEbKPbliWdVH8VkpE3nPQdW8k1mMYCN0LU tFVhCB0X+cph3Ck6dc79N+jsk6K9A6NAczEle4XN7zkxo0BDuU0UOtaIPX4rBPQWnIBJ T60Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fdDF50I5hxOY/uPvyTi5Nyzs/7Qte+oY6PsGo1nyL58=; b=UkZJuI4mALEvdOYvP+Uh3G9WuA33VsMhIWcKzl7ypiTRWO7m33VUTbs9hWndpZwm76 5EH5Qmbqnur+8sK5y7uMsDVYFu4gUneLdhCUYMRoR/u/q2UQkuk6zCdbW4Q9dhhLRF+s I97aFDPC7Qf+yMvs1+oMtEyj23vhUbPJeGLYBY9zm/GhIBMUdXZ6TJ7kWS1ybny5l9QI wpnGRkx4HscQ3FaTJpOROLji+vF1nE/6TQ7wpKigjE1l4vMotSLMPi2wA0iTIO6Gka9Z S9bhteYi0hLRxmE4lVAj/bBjNrZpVObQFeKKOK0dmfeNK8sf79Zvq4vuThfOGv+HDDCF muyQ== X-Gm-Message-State: APjAAAW8tHyM8NCI7Btnf73C5416Knt7h1ZBSiXcWo8lsskJk8NN5IlX d9WGF9j58A0//gDNzvZpkDykz95WXq5Y9GKNKLCXBg== X-Received: by 2002:a1c:9602:: with SMTP id y2mr3733923wmd.23.1579148943558; Wed, 15 Jan 2020 20:29:03 -0800 (PST) MIME-Version: 1.0 References: <20200115065436.7702-1-greentime.hu@sifive.com> In-Reply-To: From: Anup Patel Date: Thu, 16 Jan 2020 09:58:53 +0530 Message-ID: Subject: Re: [PATCH v4] riscv: make sure the cores stay looping in .Lsecondary_park To: Paul Walmsley Cc: Greentime Hu , Greentime Hu , greentime@kernel.org, Palmer Dabbelt , linux-riscv , "linux-kernel@vger.kernel.org List" , Andreas Schwab Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 8:02 AM Paul Walmsley wrote: > > 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, You can keep my Reviewed-by. I did not see any functional changes in the patch so I am fine. Thanks, Anup