Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6157570ybl; Tue, 14 Jan 2020 23:10:11 -0800 (PST) X-Google-Smtp-Source: APXvYqyXTOxvkXHZRB7OzxE2R0ZyN85xuWtvx8+5qwYFP13IMmbSCNqD0yA0aBHJs5NSbuq98Efj X-Received: by 2002:a05:6830:10a:: with SMTP id i10mr1700364otp.365.1579072211145; Tue, 14 Jan 2020 23:10:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579072211; cv=none; d=google.com; s=arc-20160816; b=JadEcNulwIcpTdejjavOhPKb3Crv80E0HL+64T3X2xBGIYpzYZ7AV3d3blTA7ASa3b v68c7QTGMPanwXNdn3fykraQcc2NgXAhpmXXvtqxanrD/HhZDpzpf9m4nICuvrCEIotj y4gDHYJJhY5HzLURk+mxrkgfPOvw6L6kRBy6dYbAT65inZOlGwf4NCrK6Y5V5Wn+wq58 kztNmTvI5fxm9J4pPRANp3SgjgEUiR4MFiI1VJnVhqcPW2KoySAhml49o7/V1mnG3kcE UZu0SsCypSoftaAuyydXPi+fDtJiMIVN/ZsSnQcsRyrTWv0VhlaPfyCjfHjEuMHzIFl3 B6gg== 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=EZ9Uv0Axx1RVBpC38D2LeKDBlyYIPhsVK6uMDN/OW7Q=; b=r4rNTJZLK1Q5XqNswXXVq6vpnBS3EBNRKCAHtcvPnYDaAtgdtDa1Wh/Trv+LbYjpC9 eDKKfIMczw/Hg3ofl5QWHdCpV938t1aAqE8PidESdJ/etMgyhegekaBXQc7j8pFexY8W J+NVr+SHsKe4aAZSfxdc6BklfHtmhuT99o6hNLhdqIyre9ymLpE2GguE3H7AvqIgYQR/ 4j+i/0rvRWS8OcTK3qC0r7SvcfODbGmclHVJ3ek3ND+YqiW4s+paDR1GpxrG9Au5M0Ji 1FqFTpSZP1twQ7erT6EVaNGdvwH+bp5rpq2DPvQpyl0EHNG6wz+ZzzItv2+YhqfzR5FL CMcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="XAX/WSax"; 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 y65si9350330oia.162.2020.01.14.23.09.54; Tue, 14 Jan 2020 23:10:11 -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="XAX/WSax"; 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 S1729121AbgAOHHD (ORCPT + 99 others); Wed, 15 Jan 2020 02:07:03 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:45198 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbgAOHHD (ORCPT ); Wed, 15 Jan 2020 02:07:03 -0500 Received: by mail-qk1-f195.google.com with SMTP id x1so14710506qkl.12 for ; Tue, 14 Jan 2020 23:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EZ9Uv0Axx1RVBpC38D2LeKDBlyYIPhsVK6uMDN/OW7Q=; b=XAX/WSaxzB/941V80oBGBxxMlodBtHbxrvOGlO9DNVG8J+KyGY10lcKAeED5bV2DCe 34fnSbo4MmMTXhxsOVoO/3B5Wb9+cL7nGgptOOI3w97miT0zfJK/M9L8J6h3aMZ1Fbwl D6mBRXLOC3blOnjD3+EqB9k95pgtA3UPznpZmIeg8pNoPpVEVWiPo1F9UBxADi1h+FCL aMoeUfg2TKbt91L1Tzk0BcSWfSe6+bFrX1egciZDzgNVYJG5LEJTHS4lH35FxoJZgtet 5NEwv4J9K0/fN9B65fLguTC9Se+zbFiH6RWOsEm7RlIR8aoiQulq0M6ykkERQUJUHkvq s/KQ== 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=EZ9Uv0Axx1RVBpC38D2LeKDBlyYIPhsVK6uMDN/OW7Q=; b=OeCfimQvmeme++UMKW0MUVozV5ybkz+Zet0wjPBjqPcVO2zxfFcBFcS52QJKPoLxBU y0HHiAkIkpyPosI99v3Y9Q6YuLI3wPSeQQHUobngrruBjziWqIA+/tzDiiEj3tshe24q JPePq6ZU9tcFb6Qefjwu7BVUn8h/sYZad7DGHg9n3/7S7b6/vuPxGv/EmWVeWN16D6dQ v/JsXzXOz6exrIgiZCYvJEJu7pGr5jCg/CKLhmKCWZDH7O6Fhk0Z0sW71xcMowpqdnRK XsUnkrJbvlXqyCza9vVTd0aY0zwS2EPI5cLNMCEevzPW81jqLqDHAvAWx3fzUJUq9RAN 37Ng== X-Gm-Message-State: APjAAAXzvFlG6aWfp86eAgxi1gKoXLjjCz+Sj1UC222IXrusV52ByH5q ue3YirVSey4tx0ZnSdq/YIJ42NMgEo5svouTyd/R2HDpXuA= X-Received: by 2002:ae9:eb56:: with SMTP id b83mr25434351qkg.123.1579072021933; Tue, 14 Jan 2020 23:07:01 -0800 (PST) MIME-Version: 1.0 References: <20200109031516.29639-1-greentime.hu@sifive.com> In-Reply-To: From: Greentime Hu Date: Wed, 15 Jan 2020 15:06:51 +0800 Message-ID: Subject: Re: [PATCH v3] riscv: make sure the cores stay looping in .Lsecondary_park To: Paul Walmsley Cc: Gt , greentime@kernel.org, Palmer Dabbelt , linux-riscv , Linux Kernel Mailing List , Andreas Schwab , Anup Patel 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 Wed, Jan 15, 2020 at 6:55 AM Paul Walmsley wrote: > > Hi Greentime, > > On Tue, 14 Jan 2020, Greentime Hu wrote: > > > I think it is because the sections are too far for bqeu to jump and > > the config I used just small enough for it to jump so I didn't see > > this bug. Sorry about that. > > No problem. > > > I tried this fix to boot in Unleashed board. > > > > #ifdef CONFIG_SMP > > li t0, CONFIG_NR_CPUS > > - bgeu a0, t0, .Lsecondary_park > > + blt a0, t0, .Lgood_cores > > + tail .Lsecondary_park > > +.Lgood_cores: > > #endif > > Looks reasonable to me. Care to update and repost the patch? Yes, Paul. I have sent the v4 patch. It is tested in Unleashed board.