Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29578241rwd; Wed, 5 Jul 2023 14:09:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlGH14DAYhqsTV55CBBfASC9KQWGARM030XANmMv/gnS/xD7TkRoMLpCmhXSk17QtNESWZMK X-Received: by 2002:a05:6a20:82:b0:126:1f70:30e6 with SMTP id 2-20020a056a20008200b001261f7030e6mr32707pzg.20.1688591371484; Wed, 05 Jul 2023 14:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688591371; cv=none; d=google.com; s=arc-20160816; b=XavPNLRVizYsHEVZxJQZLsU1Gq/ZdwXxLz15IeZEZyzqGIsNuDkTXu4c2VgFDqr25G RY/yA+eqtPyecptOXYUpA/yNbQwcEQkZLg6PKeOW0o99OaHhKndvWhwVZJeAA+AUXMQV BXxIbOkq0C+CCacdsD0NVl4vlE4sOrx4FI7na9eetldfhnwvPVuyeFqov8ZDqjrvKraA E0u8y2lXItVdm8tbwxtFs8oWh9Von5xQDYRtMdxiNJphSBgi3/YhBYg3Iw+qQxl+xqTe cZcXl0sPmQB0GvMwkfZ74mngMC4vcDByhBQwxRvVRgBoqeabEv4JoIWZeloiTYtZ5a4q 4cjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ATlsphHrvoXPAVcgiiWqGZL+5stGcmqJb7QaGx/TZTY=; fh=IBlQeFk8ljBcakEQ9OzQH9fuMwrz+jbA8r5k6QC+zgs=; b=T7YML5MZhcFx9PU83NuUnnOv8SN1+ZrGEgmyysFUoHEuzN/fySQkNgeO9VKH8YCH1d /XwRY5ZuW1iaLmD6XVWp6SabjHNGCrxphqEyS9ThqCu0+CQTn9+uqfPH7OOtW0WQh92o 9rw8HFZJwb3JyL/YprMMYtn3tj1XrUS30sMFA0uj8NkExqD42YWIXrIw+2P8xYai1+Qn vdql1+VwUwtVMYW33vs5foepRYSGXExJyxmRw/usQ61AWL91+qA3nhel4TqLwafjv+7T KV3vNloyqNEhYYRangTLcfDj7x2K+U0uoFhrFHENJ20f9YWNqlIm/jkatDXQ5Iu57Dpp 0Z+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=1gi2QGer; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a170903228300b001b89b68fe3dsi7612351plh.455.2023.07.05.14.09.16; Wed, 05 Jul 2023 14:09:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=1gi2QGer; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231773AbjGEUu5 (ORCPT + 99 others); Wed, 5 Jul 2023 16:50:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231204AbjGEUuz (ORCPT ); Wed, 5 Jul 2023 16:50:55 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3DCF1706 for ; Wed, 5 Jul 2023 13:50:53 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-666e6ecb52dso70636b3a.2 for ; Wed, 05 Jul 2023 13:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1688590253; x=1691182253; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ATlsphHrvoXPAVcgiiWqGZL+5stGcmqJb7QaGx/TZTY=; b=1gi2QGerArOZcqyu8Kq4cOvg8zuziVGn35t26P9TQDCgI7LVvQLzLR3SrXe22/KhrP EWezBRP2oL8ktfFwpeG6WuO8igLI6lzBPblZInvrfFpCSRobEpSTk/d4Xq9GBPodT+na OlomtymSR32nWGj6shvUrMDfzZYE0meRpSdSqnIuO0y1stYLvYXMTie9SmmuSDf9D3mv 9wRXi4e8TLS/O6UsyvZxO2WXY0zMb1PNSWyDCYNITe4fmiUf+JNTkBouSyHbVz2fsJ8u uPMCZVC8CkWRJ1YMiYIWuiUS7snbABrDkY3drTcOV27FokdQQ2hn6KQObjTeAROmHgAB SEVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688590253; x=1691182253; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ATlsphHrvoXPAVcgiiWqGZL+5stGcmqJb7QaGx/TZTY=; b=exgY2HcgittRNw1mrOJNrh/IE57c7EfxkVQJMvGiWfkuLFw1AhqyeM/VrEqTX7s9k8 Oi6P1AnTtZTukDaZ6m6PIHnyEwFSx/AJzxNDXZkN0oo20tAYeBDilif0MHy9PO+pW9Fd shaALpdS9KiJDzE+nNBdomdCEMLXIfpSQSwhxo788BCrsxVBEj0cQmT2eJMI59Yqkcgs rcGETWFmAoEceCE1zhqo6sIpYAzU6ALU9DPUs+EzO1xknpsB1GZHSawoYCEVJZyGMKef c15GP83GSyQxaJBxfSWXilLLSLR4rg7Ujw/gRUPs1V10GbAaKeDfCB89kgAGBIen3yXt nkUA== X-Gm-Message-State: ABy/qLbF2/9f7xYoHU7od9DRJHtmqbgjjAqUO1lGk7TlGPi86eI2/VjJ PUDIS84RnNOGH+ubeJaXt4X3GA== X-Received: by 2002:a05:6a00:15c6:b0:679:bc89:e45 with SMTP id o6-20020a056a0015c600b00679bc890e45mr18660pfu.6.1688590253188; Wed, 05 Jul 2023 13:50:53 -0700 (PDT) Received: from ghost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id n20-20020a62e514000000b00682b3d14005sm1752015pff.87.2023.07.05.13.50.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 13:50:52 -0700 (PDT) Date: Wed, 5 Jul 2023 13:50:50 -0700 From: Charlie Jenkins To: Conor Dooley Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, paul.walmsley@sifive.com, palmer@rivosinc.com, aou@eecs.berkeley.edu, anup@brainfault.org, konstantin@linuxfoundation.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, mick@ics.forth.gr, jrtc27@jrtc27.com Subject: Re: [RESEND PATCH v3 0/2] RISC-V: mm: Make SV48 the default address space Message-ID: References: <20230705190002.384799-1-charlie@rivosinc.com> <20230705-gloater-relation-29a6080ec87d@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705-gloater-relation-29a6080ec87d@spud> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 05, 2023 at 09:00:18PM +0100, Conor Dooley wrote: > Hey Charlie, > > On Wed, Jul 05, 2023 at 11:59:40AM -0700, Charlie Jenkins wrote: > > Make sv48 the default address space for mmap as some applications > > currently depend on this assumption. Also enable users to select > > desired address space using a non-zero hint address to mmap. Previous > > kernel changes caused Java and other applications to be broken on sv57 > > which this patch fixes. > > > > Documentation is also added to the RISC-V virtual memory section to explain > > these changes. > > I can't find a changelog in any of these patches, nor an explanation for > why this is v3 (or a RESEND). All I can find on the list is a v1. Could > you explain and provide a changelog please? > > Cheers, > Conor. I made a series of mistakes due to an incorrect email configuration. I knew something was wrong but I didn't know what after I sent out v2. v2 bumped the default address space from sv39 to sv48. The purpose of v3 was to remove an erroneous .gitignore I had included in v2 and also modify a testcase that was supposed to check the default was sv48 but it was still checking for sv39. After sending out v3 I realized what was wrong with my configuration, so I decided to mark it as a resend because I believe some people did recieve the previous emails. This is the only patch that made it through to everybody, and includes a default address space of sv48 instead of sv39. I have tested that OpenJDK 19 works on sv39, sv48, and sv57 in QEMU on this patch. OpenJDK 19 failed to work on kernel v6.4 on sv57 but worked on sv39 and sv48. Applications like Java and Go failing on sv57 were the motivation of this patch. Setting a default of sv48 will allow applications that don't explicitly support sv57 to work on sv57 hardware but still allow applications to take advantage of sv57 by specifying a hint address to mmap that is greater than or equal to 1<<56. - Charlie