Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp213950rdb; Thu, 19 Oct 2023 02:07:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXZzH7Uz19q28jlWP5nnud1sTq1BMxM1U6YhmCaCh6bjh5jq/mDDiRQYAN4TbiuzM54Qjc X-Received: by 2002:a17:903:32d2:b0:1c7:5776:a30f with SMTP id i18-20020a17090332d200b001c75776a30fmr1809374plr.12.1697706444562; Thu, 19 Oct 2023 02:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697706444; cv=none; d=google.com; s=arc-20160816; b=T3u/wy5lngms3GLDBtIZDQo40CnVI5qGOEQAbn16yAlwdkLiKI84RePHjGH3OnqyWI axhPZ35XkJud58yrsMzFcDGcBt1jnupVc6yjWMTQAxJeRfJnnd/xK5VjTBoq14h5Kv0Q /ugyQae2DprktjPn7Gdwb8UFU0FeibUKpa2M5GySMWf9iNTJdNimh97zOD6Vvf5Crs3l 6j5vrw9DZ59YV154OSHUKAjEiJ66jlnR1QMEsIvleOxmNdzdZjQgFot59HqxGNIYFZxc VdwOuDcROw+6Dbg52WcW1tCy305+YjXlEhLCy6oPMkS/GyJeN1IEDVDviqj59kKgA4Y2 FfNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=yTzH6q/KHuyR0ZINbw+hcjZ5+0x6X/p2cjmFJ06sw1g=; fh=0lGrWxmvMNIlOXNBsi6VOpmYb74skFKWFziKrItfiiM=; b=bJcYOIR5eOwBaisEYPWgE95InmzhpnedNoigEAQcDGaZd567NY4RdNnLB5Pj6Cr2tb Hf7lZ9mxzGy0Yoy3DbbxDnSnNKeFmDhdVa5IvzmbS7nLOTARgTSb+yCWguKIwOGa5sM9 6NHpvfUrfxJyRYW9GOTP08FZbSKxGfssS/QQ8l73TTI3V42Rpz3kwXrvWrpT6HwDp9cw zUuyAJkKb6YKvbP4AjaWISUuCvdUtjlm6vETzWKlTAFjuy6FnvkTAg5NH1o3KvukdC6m cSv6kOkhPfpste1/Qkz34DVrZ8XuDEf5Hwr/2SbhUk50IJhO5Z9CDj7wN9YbGipR1gEj MnQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=d65+L4mh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id k9-20020a170902694900b001bbc80a2a3asi1684350plt.299.2023.10.19.02.07.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 02:07:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=d65+L4mh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 0E223809B086; Thu, 19 Oct 2023 02:07:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345019AbjJSJG7 (ORCPT + 99 others); Thu, 19 Oct 2023 05:06:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344979AbjJSJG5 (ORCPT ); Thu, 19 Oct 2023 05:06:57 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7D20FE for ; Thu, 19 Oct 2023 02:06:54 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-32d8c2c6dfdso6918913f8f.1 for ; Thu, 19 Oct 2023 02:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1697706413; x=1698311213; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yTzH6q/KHuyR0ZINbw+hcjZ5+0x6X/p2cjmFJ06sw1g=; b=d65+L4mh9pZwErGX3oVoWaQdFL63XZeAQHi/pUp2L5XSdRkkVTY4uxHcNTUC8Xac5T aSH+MCjYoqmwWxBAD2ohaPKxBCc5CiEVIvm5zPPKdF6yV0zhpa2B50MkAmia7l08xkZq 76Z3WkoZiEi+uDpCJVKypBuQ/hdc9f9gze1TTwdociCtzuHtSDTF+fi9M+ZlgfkbXncs q27xu3r2nMymlSkVXE6U/RxJAyi00GhN2ni9mI5+6IdAy1loyIQ2tCk/BNwPSPUPw1py AwGresZqeYx+qOnVoRtNj5GLVBVDEWJSpLS/GyMKO7w6wW8N7ewxebVtePrWFHYYSM7d Ww0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697706413; x=1698311213; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yTzH6q/KHuyR0ZINbw+hcjZ5+0x6X/p2cjmFJ06sw1g=; b=ekbZBA/7iz4U//oKHLgEeXm1Z6Q4VYgq0KUzz4PXQxjLZ8kK6+d+XiKLhd6MEay/E8 ceYjh6BhNHUJ2ghhHPX/lJ72N1kR9LMz0scbzGkE8AUx+MjOxRgvevs/FUhMedduLFbf ivEHOlL1ka9RPBJgBSKdhu9JRp1TRGEzuVSw6BMDdGiE+UqPgydDKLkonPrmqlQbzTvD n3b5/vnmHDYyGj/FmHx+Nc6o+xwoU5WpTARxQ+9QTA7S9yhLmsOW6Lae/CaPlDV5L8oJ TJs7V2feB8/BATGYvQjumknlU0eRQzruhyQL3hhRinXS/5dEWeZ5JgpsccID4Rr6u3Pn qutQ== X-Gm-Message-State: AOJu0YysUVUjImAhy4i59Sryi2yrbV7Z7VzjMt7yaDngdV/SEANE4Q5s WWvYcflXig2WDZnfWdKMN1J9jggikxRHQEHUqDOBkg== X-Received: by 2002:adf:db4b:0:b0:32d:b06c:80b5 with SMTP id f11-20020adfdb4b000000b0032db06c80b5mr1127928wrj.2.1697706413344; Thu, 19 Oct 2023 02:06:53 -0700 (PDT) MIME-Version: 1.0 References: <20231002151031.110551-1-alexghiti@rivosinc.com> <20231002151031.110551-5-alexghiti@rivosinc.com> <20231012-envision-grooving-e6e0461099f1@spud> <20231012-exclusion-moaner-d26780f9eb00@spud> <20231013-19d487ddc6b6efd6d6f62f88@orel> In-Reply-To: <20231013-19d487ddc6b6efd6d6f62f88@orel> From: Alexandre Ghiti Date: Thu, 19 Oct 2023 11:06:42 +0200 Message-ID: Subject: Re: [PATCH 4/5] riscv: Suffix all page table entry pointers with 'p' To: Andrew Jones Cc: Conor Dooley , Ryan Roberts , Alexander Potapenko , Marco Elver , Dmitry Vyukov , Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra , Ard Biesheuvel , Andrey Ryabinin , Andrey Konovalov , Vincenzo Frascino , kasan-dev@googlegroups.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-efi@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 02:07:22 -0700 (PDT) Hi Conor, Marco, Andrew, On Fri, Oct 13, 2023 at 11:58=E2=80=AFAM Andrew Jones wrote: > > On Thu, Oct 12, 2023 at 12:35:00PM +0100, Conor Dooley wrote: > > On Thu, Oct 12, 2023 at 12:33:15PM +0100, Conor Dooley wrote: > > > Hey Alex, > > > > > > On Mon, Oct 02, 2023 at 05:10:30PM +0200, Alexandre Ghiti wrote: > > > > That makes it more clear what the underlying type is, no functional > > > > changes intended. > > > > > > Scanning through stuff on patchwork, this really doesn't seem worth t= he > > > churn. I thought this sort of Hungarian notation-esque stuff was a > > > relic of a time before I could read & our docs even go as far as to > > > > s/go/went/, I see the language got changed in more recent releases of > > the kernel! > > The documentation seems to still be against it, but, despite that and > the two very valid points raised by Marco (backporting and git-blame), > I think ptep is special and I'm mostly in favor of this change. We may > not need to s/r every instance, but certainly functions which need to > refer to both the pte and the ptep representations of entries becomes > more clear when using the 'p' convention (and then it's nice to have > ptep used everywhere else too for consistency...) > > Anyway, just my 2 cents. I started changing that in one function and another one, and another one...etc up to every instance. I still think that it makes things clearer, but that's subjective, you raised valid points and I'd really like to see this land in 6.7 so I'll revert this patch and send a v2. Thanks for your feedbacks, Alex > > Thanks, > drew