Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp844033rdg; Fri, 13 Oct 2023 02:58:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBB0Tg5RgnK+lyZbsELnsRenXccUxppFSvuc+jAINtprAJUj2JnHv156kzWCVLNVud5Cyi X-Received: by 2002:a17:90a:199e:b0:27d:2054:27b1 with SMTP id 30-20020a17090a199e00b0027d205427b1mr4255597pji.32.1697191114547; Fri, 13 Oct 2023 02:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697191114; cv=none; d=google.com; s=arc-20160816; b=zWNsQYhVyjSyjPGljC0RKIHyTkHjaFej4H3O01QiSLm1+ClOKBN9FEpKhgTrkyCvhg P64IZi2+Gx5KARDkx2mmP3Xu/HExWv+EKTj6m9dzUHFGkGYvA2weuiUJAnnHwSUdTPIO 3L6ozTHKqcb7++BPmZp5ZNMdF9DQEeLxm108jFayU0yOwoCi/TX1JxVmYgdxrnvdwNsf Yb4B2vtlHs97gBYDZjk67VleDLNW1rCjwbbLplVrVOduEhkNuhG0od+6NxukeXrQBpZC iPAcvrsj/aL4gHDyUlzOOdFRV9ITJ8oy//cQlqpm17S4oFnBf1dn6/krgYkb+5hhVNz2 yjbg== 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=nlysa/0HAt7XwTL7Sd4FpaqX2JsJYLCn7DORbQofqo8=; fh=1jGKVQzSoQG5CwpLF44A+EBM6uiLcZqcj4Yd2gyN6+k=; b=M74ReXVHSW8nEd6j77vX9SVSPQoMmmqp6F6anbo+2Nlr4cWE9bBu6BkJJ1e7WYBhfb n7qbc51sk5qJqdTEBUAheCP1Ffix+MW3Sr7gNwzcB5h/cFhYlU0H7jfQFp1KTYgGusTA 2C0wyDJ3KXnVNG2xaJlfxudsYJo3cIMLaNSNFdav738a1En1mF8Qqjs4iX6ksEuMAElK SPWtL1cTc9l3HRxRhb+8rkq8S8vt00raHAgyAUFaZDkZHgYv3A6BBUqwEa5RIa6hUAY5 /ygi3VRODAyBiOYpL/8lyPUtQT8r+RpCxCitkw42d166jXtH8g72KNnpEQ5vR6oreJRH nUlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=oOMpA4RX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id cp11-20020a17090afb8b00b002791b907f0csi3968868pjb.121.2023.10.13.02.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 02:58:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=oOMpA4RX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 8D08081BDA55; Fri, 13 Oct 2023 02:58:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231270AbjJMJ6W (ORCPT + 99 others); Fri, 13 Oct 2023 05:58:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231189AbjJMJ6T (ORCPT ); Fri, 13 Oct 2023 05:58:19 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3DD6C2 for ; Fri, 13 Oct 2023 02:58:17 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-53d9b94731aso3554796a12.1 for ; Fri, 13 Oct 2023 02:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1697191096; x=1697795896; darn=vger.kernel.org; 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=nlysa/0HAt7XwTL7Sd4FpaqX2JsJYLCn7DORbQofqo8=; b=oOMpA4RXR0o11JOgKrZ9y5tA2Q/b42jxUUNbnlqH1R4WkXfQWqlGzTMZiESAveKcvw wcvS+CIGmAIOmFrdXOXJL1eRd8TlwOk/nPyISBVDYKHw1A26stgOveoXVl18dh0B5hTu uw+dix3PkS+ZW5Dfw+C/L4poA2Tl+afXpXxno+JcFEx6iqm7RmnvZWKq4JRgxJHvVsJx d+ov7ljdPoly132MDMEuB36JKFNCmm+IYrl/5AFC8NAKte7GjQnVU5GN9482hK1mjSkz eFQykZuMndnbMusmbVVjso8TrGDzdIdezM3BITYytwVre8MyuAurMuP50t+y5MUY3xuc wLbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697191096; x=1697795896; 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=nlysa/0HAt7XwTL7Sd4FpaqX2JsJYLCn7DORbQofqo8=; b=pF9ifLYqGeIKynGFVdSMrGdsx6hJefkFfFUJEs8+eZ7Vf908AMYtdxogUL8/hkbeR1 WyHRYuAdu64lmTflv0JENGOjTjNwwllKrNOQen6cbDAYN9MwM8rzKkngMQ3K2SXujVYB l2DKips+GORuw0OL3FDB3R1Py9loSa7hHzMDVUp3yJ4/ymqRFXkEsavSqmNV6xWH7h0N hzFCNIaxHITR8klijSQLustpIX/JLmc7LIUNeg/cN5YsOfk5BAVt+3nWHPOSFInGIFsh nOIwumx7WAvohVxsKiNX6h47niURGvcCUnvrIoFmxSfm2PofpxLhTeX7u5CvwhGg6U9o iTVQ== X-Gm-Message-State: AOJu0Yw4ONCNNFgXTB6XEUjO7sKgI/9uRyWKGh5EVf5Zv/ZZ1T9RNk3I HIpiSi7ACvhzi8bSw1jJtoPN0w== X-Received: by 2002:aa7:c998:0:b0:530:a226:1f25 with SMTP id c24-20020aa7c998000000b00530a2261f25mr21443281edt.17.1697191096257; Fri, 13 Oct 2023 02:58:16 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id u19-20020a50d513000000b0053e408aec8bsm650498edi.6.2023.10.13.02.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 02:58:15 -0700 (PDT) Date: Fri, 13 Oct 2023 11:58:14 +0200 From: Andrew Jones To: Conor Dooley Cc: Alexandre Ghiti , 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 Subject: Re: [PATCH 4/5] riscv: Suffix all page table entry pointers with 'p' Message-ID: <20231013-19d487ddc6b6efd6d6f62f88@orel> References: <20231002151031.110551-1-alexghiti@rivosinc.com> <20231002151031.110551-5-alexghiti@rivosinc.com> <20231012-envision-grooving-e6e0461099f1@spud> <20231012-exclusion-moaner-d26780f9eb00@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231012-exclusion-moaner-d26780f9eb00@spud> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 13 Oct 2023 02:58:31 -0700 (PDT) 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 the > > 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. Thanks, drew