Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp50228pxj; Wed, 16 Jun 2021 20:00:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdMQrNxjGXAAGobRtmtoBNxoKbaZWyXKXgA0XcJg3ocUUnBqFmzn9T0ixPC8+nLj8eWa// X-Received: by 2002:a92:d90c:: with SMTP id s12mr1812220iln.201.1623898839090; Wed, 16 Jun 2021 20:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623898839; cv=none; d=google.com; s=arc-20160816; b=iWCnHlF8TCl/Cqhgse398rR6sM5xygMVHWUNlb7c3T+C6R2LZ8ivVckbarbM1fIzJJ R+MT58OuFNgOds36bIZjAFYWP3Yw2PLMaZnD30U2Yy46D2OO9JAXvj2NMtN8KfVbb1vW Q235gOoV9qRGEoPTYnQ3XTHUS3dQmmMWMUeWOLWEAS8vVPsONm79LgEhT4/9w7iNdC1S HPN75owRinX8OgyXa9sc5JvHexQVHPFaf/siIZrKPF/PlsuCU7ADLWLIaJ9zx2FtX1N0 jcdKVsHsPgdaxVOnBRhLhYm7oMs3va0iWMKLQF4dybIxsJjWrMMx/nrauf7wsk4bqLHv l0Lg== 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=pAetusrXJOJzWSJzpj/wpmSbSm54E0/FhIpgunOB9fg=; b=SpxIrEUk/WdIjBjfizZZwqnsJjG/8uPOibcfmClQiR0Z7B4Fv5OTNQV5ewDfephN+u orEejlBQ98r9GBCwTQqLfrSrLmBpIDMX+X1q6BAHU0grvH24BHf9MymeO1FSQ/ew73R6 13jwa5MoWvJzjnspWAqUaf/QTHrAGYnyHekGK6Aj9F9jgnyx+FLBp5FWWzkjdN1nzFSU yFzQIC++7n3TB+16eyZ875t/hwBztaZ3TuF0mhQ/149BVQVYts4IUONTvQXGHMRyn5+T PlIWgKt90t+VfJfn9uPF34aFa7V1+pvWzoQIstWkVtoE4c7aBk2B7n1XIsV+mmL1lDa0 ou2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=ukzHIYxm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si4755747jae.125.2021.06.16.20.00.26; Wed, 16 Jun 2021 20:00:39 -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=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=ukzHIYxm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230212AbhFQDAu (ORCPT + 99 others); Wed, 16 Jun 2021 23:00:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbhFQDAt (ORCPT ); Wed, 16 Jun 2021 23:00:49 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81974C061574 for ; Wed, 16 Jun 2021 19:58:42 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id e33so3740797pgm.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=XmbIJQHp0vDAzOdvJmcwGAbKXuCx8wmclTEvIrmarLCgDTJTXTzjqXu1GZ1CS2hbWV eko+D4GsxtNkTZTTKUaw0yPEex3fWzfvtxGt8xA30MR7Lwn8MxeL9A95Ge2FriIDS2Qr 0gaoHgx+4u0bXywpiVL/vebPMtg0le6S+CVWcC8jHADhQaDRsQaNRsI+eZByzVdy5m1n hGCqIaqTDVFrnEcfsRkMYr9MmTZVzHRsQvMTbaneghdLP1URAnRH/qvVDFZ57CVkg1cJ 6QZT3KzNcs5s+MdFmv0wQXYBRNUO/mdjXXVHs3GdAiJRdxw4EFdype6LNNlgzaa0En4H 8bMg== X-Gm-Message-State: AOAM531G70XFf+0QftsIKF/jSe9S7fiKh9XRDYJP7FnjWquYFLnnXFOy VLwVDuTeuuCfLzpD/PKUzVWOHQ== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/20210415110426.2238-1-alex@ghiti.fr/ >> >> >> > >> >> >> > https://patchwork.kernel.org/project/linux-riscv/patch/20210417172159.32085-1-alex@ghiti.fr/ >> >> >> > >> >> >> > https://patchwork.kernel.org/project/linux-riscv/patch/20210418112856.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/default >> > > That isn't an upstream kernel configuration; it looks like includes suse > patches. But, yes, it does crash almost immediately if I build an upstream > 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 configuration > 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 missing something, but at least CONFIG_SOC_VIRT is jumping out as something that's disabled in the SUSE config but enabled upstream. That alone shouldn't actually do anything, but it does ensure we have all the drivers necessary to boot on QEMU. It's entierly possible there's a real bug here, though, as I don't really see what these relocatable patches would have to do with that.