Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp272835pxv; Wed, 21 Jul 2021 22:54:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynbMYQhBDhy4rk9JQp64IP7xPj3fzIZDNtnq9KAi1Em2KhDV7e4nF2etOY0J8PHULQEdXk X-Received: by 2002:a02:a595:: with SMTP id b21mr33976133jam.122.1626933288934; Wed, 21 Jul 2021 22:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626933288; cv=none; d=google.com; s=arc-20160816; b=CBxZwseQr1S7INf4SGlfUjOttRepwVeS5IjJoThE0fITyyZDzmk33qkbiHRRC2WPfR MKlPVAk0miR2RaAbktx/9GVXdaC6TFoYaOs6sY+LIxuSYx20h1wSlc9Q4thPyKfErh9t Wienv8aUxE41rta41lB+zwFFjvKaAZs3g9mAkZSKzOj0xAp+Mi6iLD5aiDz8h2fRgvsO dEpRVp3PIG6AMvLv3DtdtpOe1Z3iNzCHNvJ0YbtnyaLjs4LYfArKCk7moozQI7xuY2TF jg18XmXfD0yGohvwh3iic4EDMlb+mqIYyF+NxUNbRRwRtGygpOJ2Z7NA/1fjl0EmClm0 t4gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=28owLvv+vL6tVtuvmnfHr7+qgTSNqBXGBIr+3Xh6M9I=; b=kgnzqa0bnBmMtm3rj8iCSL8ZP09gxq7TY+RgeNmS0KEaGw21ciYovqUKFLLoQJSOFc 3M4t3sTGy90TL1R3WhmcKRmjzN9q402VaHDFPqeTAc59e2txmhIOLlaZTzQDK/8H9zxv 5cgcldXQs23rFw0it6vspqzNQHkFqd3bSU41LqR1XsnTMmbiLge94cx1UvtRkApXAP1H 0KE3/P95mSsdfJlrHPzi2+6DnBaMLbWZy3MRmw7Bi0ohsxKPblqN9JowQHv2YuTw4WCa RnY2SpuXxQmyLAQBn9UYGFTtkgpo3XK/ArFGxipik6HcspATSXYfNJsmBw+vKI1ijVCd UyEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hpbQp607; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si22347844ilu.34.2021.07.21.22.54.35; Wed, 21 Jul 2021 22:54:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hpbQp607; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229965AbhGVFNH (ORCPT + 99 others); Thu, 22 Jul 2021 01:13:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbhGVFNG (ORCPT ); Thu, 22 Jul 2021 01:13:06 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD91C061757 for ; Wed, 21 Jul 2021 22:53:41 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id nt18-20020a17090b2492b02901765d605e14so3032505pjb.5 for ; Wed, 21 Jul 2021 22:53:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=28owLvv+vL6tVtuvmnfHr7+qgTSNqBXGBIr+3Xh6M9I=; b=hpbQp607GEFF9BCuVfEbDnBl6wt+QGW+IpFzORDnEq6cmOEC3dka+R5HSzK07WOoTN UsWZ1gJQGUo9muaSIl3PVyy+mYkPB+BWkp7DntatitzmvMxcR3je7f0avV6Db4ND6xFm 9dBHri4GY2RS6qRoy2pgleiJgnn2O2oW5/nxLEr07DIZjiszDijILxRJKh6+uBRJtbVg M7aDC6ykEPFUQ/SnhrnikWg0yz2y2c80GVmd91tqhsh25jusi/Q4UE5CJCyXGRX2c3/4 1wlXUiDx8PscIshdELj+35VYcbXbl5YU68Esmx7mcs60tZXSEhcWH5dbKux8ixpQkdVO Aj1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=28owLvv+vL6tVtuvmnfHr7+qgTSNqBXGBIr+3Xh6M9I=; b=fFDAKEqbWszD8TcAQ6Vp9GkVSMZFTRke3UB2oDAsg7133LZK8Va+oaOAN4qNRtYSpm O4pHCUysQi1pLR54Y34Jqb5rcBOn45Og0NPh2pqJ1hAzG1VgTv44AgcjkbV7ohrv0siS NvN7OViQBZD/uRQ/B4t1mBeBQ2hBDqspebr5yAmCUgxBJ28WmeKi898FnbcUfjA03hoV MvTY/Ws9UnLgFA1lbV+QqJfpwQaAFeASvTP88r0D5ptNWao+8DJBPFG76bACqVOhMRxw qWsWFPSyzH8NfYQHTXSZJFhRvMSho2F9aYkboVOPw908SvSo2OAQtirSTmBOzkPjOCbO PBjQ== X-Gm-Message-State: AOAM532TdBoL96A64ONT3Sk/C+/1MBFSteSMC0Ls71tjlkRM3i2A4LRr Ul8TBuMSBawT3HIwkbV+coSMFQ== X-Received: by 2002:a17:90b:4ac9:: with SMTP id mh9mr7595414pjb.226.1626933220572; Wed, 21 Jul 2021 22:53:40 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id z15sm32360128pgc.13.2021.07.21.22.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 22:53:40 -0700 (PDT) Date: Wed, 21 Jul 2021 22:53:40 -0700 (PDT) X-Google-Original-Date: Wed, 21 Jul 2021 22:23:26 PDT (-0700) Subject: Re: [PATCH] riscv: Fix 32-bit RISC-V boot failure In-Reply-To: CC: wangkefeng.wang@huawei.com, Atish Patra , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, stable@vger.kernel.org From: Palmer Dabbelt To: bmeng.cn@gmail.com, Greg KH Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Jul 2021 19:14:20 PDT (-0700), bmeng.cn@gmail.com wrote: > On Thu, Jul 8, 2021 at 9:29 PM Bin Meng wrote: >> >> Hi Palmer, >> >> On Thu, Jul 1, 2021 at 10:20 AM Bin Meng wrote: >> > >> > On Thu, Jul 1, 2021 at 10:08 AM Kefeng Wang wrote: >> > > >> > > >> > > On 2021/6/30 19:58, Bin Meng wrote: >> > > > On Mon, Jun 28, 2021 at 11:21 AM Bin Meng wrote: >> > > >> On Mon, Jun 28, 2021 at 10:28 AM Kefeng Wang wrote: >> > > >>> >> > > >>> On 2021/6/28 9:15, Bin Meng wrote: >> > > >>>> On Mon, Jun 28, 2021 at 8:53 AM Kefeng Wang wrote: >> > > >>>>> Hi, sorry for the mistake,the bug is fixed by >> > > >>>>> >> > > >>>>> https://lore.kernel.org/linux-riscv/20210602085517.127481-2-wangkefeng.wang@huawei.com/ >> > > >>>> What are we on the patch you mentioned? >> > > >>>> >> > > >>>> I don't see it applied in the linux/master. >> > > >>>> >> > > >>>> Also there should be a "Fixes" tag and stable@vger.kernel.org cc'ed >> > > >>>> because 32-bit is broken since v5.12. >> > > >>> https://kernel.googlesource.com/pub/scm/linux/kernel/git/riscv/linux/+/c9811e379b211c67ba29fb09d6f644dd44cfcff2 >> > > >>> >> > > >>> it's on Palmer' riscv-next. >> > > >> Not sure riscv-next is for which release? This is a regression and >> > > >> should be on 5.13. >> > > >> >> > > >>> Hi Palmer, should I resend or could you help me to add the fixes tag? >> > > > Your patch mixed 2 things (fix plus one feature) together, so it is >> > > > not proper to back port your patch. >> > > >> > > "mem=" will change the range of memblock, so the fix part must be included. >> > > >> > >> > Yes, so you can rebase the "mem=" changes on top of my patch. >> > >> > The practice is that we should not mix 2 things in one patch. I can >> > imagine that you wanted to add "mem=" to RISC-V and suddenly found the >> > existing logic was broken, so you sent one patch to do both. >> > >> > > >> > > > >> > > > Here is my 2 cents: >> > > > >> > > > 1. Drop your patch from riscv-next >> > > > 2. Apply my patch as it is a simple fix to previous commit. This >> > > > allows stable kernel to cherry-pick the fix to v5.12 and v5.13. >> > > > 3. Rebase your patch against mine, and resend v2 >> > > > >> > > > Let me know if this makes sense. >> > > >> > > It is not a big problem for me, but I have no right abourt riscv-next, >> > > >> > > let's wait Palmer's advise. >> > > >> > >> > Sure. Palmer, let me know your thoughts. >> >> Ping? > > Ping? Sorry, I missed this one. It looks like the patch that adds mem= and fixes the bug has already been merged, so I'm not really quite sure what the right thing to do is here: we don't really want the mem= code on stable, but we do want the fix. I went ahead and did commit 444818b599189fd8b6c814da542ff8cfc9fe67d4 (HEAD -> fixes, palmer/fixes) gpg: Signature made Wed 21 Jul 2021 10:21:05 PM PDT gpg: using RSA key 2B3C3747446843B24A943A7A2E1319F35FBB1889 gpg: issuer "palmer@dabbelt.com" gpg: Good signature from "Palmer Dabbelt " [ultimate] gpg: aka "Palmer Dabbelt " [ultimate] Merge: e73f0f0ee754 d0e4dae74470 Author: Palmer Dabbelt Date: Wed Jul 21 22:18:58 2021 -0700 Merge remote-tracking branch 'riscv/riscv-fix-32bit' into fixes This contains a single fix for 32-bit boot. It happens this was already fixed by c9811e379b21 ("riscv: Add mem kernel parameter support"), but the bug existed before that feature addition so I've applied the patch earlier and then merged it in (which results in a conflict, which is fixed via not changing the resulting tree). * riscv/riscv-fix-32bit: riscv: Fix 32-bit RISC-V boot failure as that"s the best I could come up with -- then the fix will land on master, which should cause it to get pulled onto stable. Greg: is there a better way to make something like this get to stable?