From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DF13C48BE8 for ; Thu, 17 Jun 2021 02:58:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9E6F46102A for ; Thu, 17 Jun 2021 02:58:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9E6F46102A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3FC7B6B0071; Wed, 16 Jun 2021 22:58:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3D3886B0072; Wed, 16 Jun 2021 22:58:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 272D26B0073; Wed, 16 Jun 2021 22:58:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0228.hostedemail.com [216.40.44.228]) by kanga.kvack.org (Postfix) with ESMTP id E8E5B6B0071 for ; Wed, 16 Jun 2021 22:58:43 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 804BD181AEF00 for ; Thu, 17 Jun 2021 02:58:43 +0000 (UTC) X-FDA: 78261708126.01.4F0ACC5 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by imf18.hostedemail.com (Postfix) with ESMTP id 3F50C2001060 for ; Thu, 17 Jun 2021 02:58:33 +0000 (UTC) Received: by mail-pg1-f178.google.com with SMTP id e33so3740798pgm.3 for ; Wed, 16 Jun 2021 19:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=pAetusrXJOJzWSJzpj/wpmSbSm54E0/FhIpgunOB9fg=; b=ukzHIYxmdKkIQf64rUee88mkx/YVndIKeGyPC7juZMCTOHOZ8juq16b0buUyJHPM1A JMaWUp7K63bjpALA1waqiGlhBxCR8a4CHnAM/noOylfw+06z1WpT34aH6757NHmsot31 4DoLbtGvHOiketrzTVIwOeGCGQ6DkFSlPBuFdofL4i9OREH6Qz719CfpP53p26U8YieQ gNVM/M5rIQrk5tpUeZqypINbwENqGSXKtKrEY43EyRky19Q/YUhUB3I3ifozlbN2t+se zihwN6OigL/4NHZ1Ue/JDuMOZdDDELwua7YPbob6N/xqagVBi6bXI1GBQGQPuLkyvo1f y9Tg== 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=pAetusrXJOJzWSJzpj/wpmSbSm54E0/FhIpgunOB9fg=; b=C6gjt7RO1M8Z/Ot6zHGkTC9R3+gK7BJhcWq5Q3QPX0JWBOXJP5s3AuC8VD6j5ZhMuc YphIjoqeZx/UABhPWvOZJKRE77rOHha2rL4C85tUFPMLVH80RvSD+0iPIlx3ws+XwUbr zr+tPERJkE7wzfvvX4nQ/uUFloLt4XnyNwua25DKysbA2dVCJf8NLcc6/DfeXCQM1wAs 3G0GkoZ8kPGczHo3pFJi0QYibf7gMiJCghurH6S9TcnDeiQeNCO/q/FRgqR5iWc7MpKj 9tKOGVTiSJwdpwMaIsx98jHvrbKV3WP6ET8g2rz6TLRDQKN6bHqT2tSx5vL5myfNV5/V xyMQ== X-Gm-Message-State: AOAM532eDTx/Ucsi3XETG76FpYZupnCMR/T9LbDhlwnXiDLTUDR2ZM0L Zb6MXINdKd+0doTKOKW5mpq+JQ== X-Google-Smtp-Source: ABdhPJxM8YGfhTyvdc1ihezx3Yt6LpJ2Zg7c25L7/ASVxuUM6An10/lYTrBBK2BJS6+69kGdNj0Eyg== X-Received: by 2002:a05:6a00:c2:b029:2ee:9cfc:af85 with SMTP id e2-20020a056a0000c2b02902ee9cfcaf85mr3098604pfj.78.1623898721881; Wed, 16 Jun 2021 19:58:41 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id u9sm3633698pgp.90.2021.06.16.19.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 19:58:41 -0700 (PDT) Date: Wed, 16 Jun 2021 19:58:41 -0700 (PDT) X-Google-Original-Date: Wed, 16 Jun 2021 19:58:38 PDT (-0700) Subject: Re: [PATCH v5 1/3] riscv: Move kernel mapping outside of linear mapping In-Reply-To: <20210611110019.GA579376@roeck-us.net> CC: schwab@linux-m68k.org, alex@ghiti.fr, corbet@lwn.net, Paul Walmsley , aou@eecs.berkeley.edu, Arnd Bergmann , aryabinin@virtuozzo.com, glider@google.com, dvyukov@google.com, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-arch@vger.kernel.org, linux-mm@kvack.org From: Palmer Dabbelt To: schwab@linux-m68k.org, linux@roeck-us.net Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=ukzHIYxm; spf=pass (imf18.hostedemail.com: domain of palmer@dabbelt.com designates 209.85.215.178 as permitted sender) smtp.mailfrom=palmer@dabbelt.com; dmarc=none X-Stat-Signature: 7xwwp4gem81bfx9jgsohqjp4afb7ksb1 X-Rspamd-Queue-Id: 3F50C2001060 X-Rspamd-Server: rspam06 X-HE-Tag: 1623898713-453439 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, 11 Jun 2021 04:00:19 PDT (-0700), linux@roeck-us.net wrote: > On Thu, Jun 10, 2021 at 07:29:15PM +0200, Andreas Schwab wrote: >> On Jun 10 2021, Guenter Roeck wrote: >> >> > On Thu, Jun 10, 2021 at 07:11:38PM +0200, Andreas Schwab wrote: >> >> On Jun 10 2021, Guenter Roeck wrote: >> >> >> >> > On Thu, Jun 10, 2021 at 06:39:39PM +0200, Andreas Schwab wrote: >> >> >> On Apr 18 2021, Alex Ghiti wrote: >> >> >> >> >> >> > To sum up, there are 3 patches that fix this series: >> >> >> > >> >> >> > https://patchwork.kernel.org/project/linux-riscv/patch/2021041= 5110426.2238-1-alex@ghiti.fr/ >> >> >> > >> >> >> > https://patchwork.kernel.org/project/linux-riscv/patch/2021041= 7172159.32085-1-alex@ghiti.fr/ >> >> >> > >> >> >> > https://patchwork.kernel.org/project/linux-riscv/patch/2021041= 8112856.15078-1-alex@ghiti.fr/ >> >> >> >> >> >> Has this been fixed yet? Booting is still broken here. >> >> >> >> >> > >> >> > In -next ? >> >> >> >> No, -rc5. >> >> >> > Booting v5.13-rc5 in qemu works for me for riscv32 and riscv64, >> > but of course that doesn't mean much. Just wondering, not knowing >> > the context - did you provide details ? >> >> Does that work for you: >> >> https://github.com/openSUSE/kernel-source/blob/master/config/riscv64/d= efault >> > > That isn't an upstream kernel configuration; it looks like includes sus= e > patches. But, yes, it does crash almost immediately if I build an upstr= eam > kernel based on it and try to run that kernel in qemu. I did not try to > track it down further; after all, it might just be that the configurati= on > is inappropriate for use with qemu. But the configuration isn't really > what I had asked. This seems a long way off from defconfig. It's entirly possible I'm=20 missing something, but at least CONFIG_SOC_VIRT is jumping out as=20 something that's disabled in the SUSE config but enabled upstream. That=20 alone shouldn't actually do anything, but it does ensure we have all the=20 drivers necessary to boot on QEMU. It's entierly possible there's a real bug here, though, as I don't=20 really see what these relocatable patches would have to do with that.