Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4010719ioo; Wed, 25 May 2022 12:47:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/2PQz+q+zd4Fo7bBQstXCoQEGDA/uxmBlDpd+wsvcnuH3LgVBmmZ9fEHGsdYGKKpw6Cmp X-Received: by 2002:a17:903:10c:b0:161:f1fb:fb18 with SMTP id y12-20020a170903010c00b00161f1fbfb18mr28098202plc.78.1653508047661; Wed, 25 May 2022 12:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653508047; cv=none; d=google.com; s=arc-20160816; b=aBBErOW5q2Tj8TBYdFHZJuH9ni7lFXxU6PutCgTUGPv8ZRCln85xvvYQR9SLd322z6 L0eoSxNyilapQeITQeChGYURrJ2ULpzenJRDZJ3tO/Yxj1YJqaPJ+6JpnghQh8Tj87H9 bWC6L/Nub7jAOAwl60hVoFb2+GOpD97YgyqBWSrnXCRuotwa0a6HIJwqi21VcibtGuzl EcEHN477NFkn8LIeP0KL8ZY7WvJKxYau7GrfSR4NlsiKeTAl2fw91S2LFVYRZLMZ9WcJ yDTyJTOHl+l4iiwm1v2A8JPaM3A5odzbk9BBAnYJvndf5gcVt5IN1O93Bx93038SmG4M VhcQ== 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:dkim-signature :dkim-signature:date; bh=3BDuC1M83okFLvS1+Asx6My6EAgtEJl/fGn/qK8yy/g=; b=PDmeWkU2AvEO/9pQZQSFvpgFFuiKAZmhXQyChxzH/OAqiLD6mWuM4oHqmSCIVkK7y+ 8vsNIv1z8trzSGouJEZqm2gs293M5Ovb/yLZzB0TWSEAVGRkpveSvtbawwfVYXAfh79o YUPrIO+J2WmUKFKejeq9svkVL2blLi0oSglBkbk18GUYEc7bIFbY598vN7SP0fG90K6p W1rcD0bpLVpFSqxDmk9RRopUnzM4/DlFL4pDsD37fGiiG8EU5HMpHvwEqnCulfZUnkZn mCQMI+W07fEnu0qVLszQqSG2JnN3/klr0Ha0hU3lWL3j29/ZnN0TB01bXTJrh5nKhdvD H8Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OGX1WV45; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=ezgKY9Z5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a63600c000000b003faf4fe0274si1807469pgb.140.2022.05.25.12.47.13; Wed, 25 May 2022 12:47:27 -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=@linutronix.de header.s=2020 header.b=OGX1WV45; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=ezgKY9Z5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235107AbiEYJeZ (ORCPT + 99 others); Wed, 25 May 2022 05:34:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbiEYJeW (ORCPT ); Wed, 25 May 2022 05:34:22 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B28218A326; Wed, 25 May 2022 02:34:20 -0700 (PDT) Date: Wed, 25 May 2022 11:34:16 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1653471258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3BDuC1M83okFLvS1+Asx6My6EAgtEJl/fGn/qK8yy/g=; b=OGX1WV45bkvE5/HLctakku/QnFGGlxFmrDE89NZh2h/+AgW3yKIMbGkk0+oaILwP+fEEfL ss4sCljtOrbb0tBkvaueEOnKZHvo/uxNAeMwyVHG0fkM3R2pZuQ79wBw4ywsuCD1jyEL71 mVPnujD4GT80b7ZoWy7KZjQo+G1taafoMb8KObT0PBSIdu6wNnBiNYge0U11LN04fs3Onh qhXvoSxivTj+mC8kX2GZrEnZj0wjbwEb9KMbs8ANyzYSSaVtcyA6cJ/kFppswPIr3CTMpw fX5yX8DEXP6kk9ezmd/jIdcnyMZ+qxpKwCMO2jb0D05KrIabjjWy0/rzQ9t4yw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1653471258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3BDuC1M83okFLvS1+Asx6My6EAgtEJl/fGn/qK8yy/g=; b=ezgKY9Z5IoxbTrMK1PmZCuUtUK2dBS8xPqNlDTOSSY7eKcDOeP75DkrhUHFHje1x44zL3I pvTxMSjSobVHDBCg== From: Sebastian Andrzej Siewior To: Ira Weiny Cc: "Fabio M. De Francesco" , Andrew Morton , Catalin Marinas , "Matthew Wilcox (Oracle)" , Will Deacon , Peter Collingbourne , Vlastimil Babka , linux-kernel@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org, outreachy@lists.linux.dev, "Acked-by : Mike Rapoport" Subject: Re: [PATCH v2 1/4] mm/highmem: Fix kernel-doc warnings in highmem*.h Message-ID: References: <20220425162400.11334-1-fmdefrancesco@gmail.com> <20220425162400.11334-2-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 2022-04-29 08:59:26 [-0700], Ira Weiny wrote: > I think some discussion needs to happen around this API. > > Highmem has little use. I don't think anyone disagrees with Linus there. > (Although I think there are still a few users out there.) arm32 is still built and they have sometimes 1 - 2 GiB of memory. > kmap may be a poor name for an API without the highmem functionality. But > perhaps not. One could interpret it to mean simply getting the kernel mapping > of the page rather than creating one. After all that is what 64bit has done > all along. > > This interpretation helps when you consider features which attempt to layer the > direct map with additional protections like PKS.[1] Those protections mean > that a simple page_address() is insufficient to access the direct map. > > As far as calling kmap() and kmap_atomic() deprecated I'm ok with that if the > community is. > > The current kmap() call sites need work and Fabio's work on auditing them is > extremely helpful. That said, if we officially deprecate kmap_atomic() then > those sites could be added to the list for rework. Maybe I oversee something obvious but there is no problem with removing kmap_atomic*() and keeping only kmap_local*() around, is there? I never intended to deprecated kmap(), only kmap_atomic*() in favour of kmap_local*(). > Ira Sebastian