Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2286972iof; Wed, 8 Jun 2022 01:28:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYtgSf8hxfraq1jCt4yCuBDmfdaP81+TPDBJHIgYAUxA/VmipSHqXdB1s0OBgfyazhKPif X-Received: by 2002:a17:903:258b:b0:163:cf73:c083 with SMTP id jb11-20020a170903258b00b00163cf73c083mr33418881plb.127.1654676911552; Wed, 08 Jun 2022 01:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654676911; cv=none; d=google.com; s=arc-20160816; b=ffnAcy0/GuKfbvBxQPTKZdbD07rmBtskClKXTbwJUOFCsNF5mzhj0R/xE/KQQFAqSA LvP8KGiiZhcJZ2pip2kxn+hhxPvBd86ddRgxHwNQIQonuzgI2xFBanSO/A0+nPNcjCmE 9WmymTADeYhPbZHGRuN2taoN2WCzpB/bOpnToRDwwc86UEF0qlH9h8fpQ0taj8Pe80lm BvuH+mpOizpQTy2tV14YioZCuxCVuBWYVUZqDc16gpKU5jwPnh4WVa2mg8GM8cFPKm1N HiDS7xFTRW3SKWwuILPS4ekwZW3g7ZqMcog/eSRRMzfGvf2TDf3NNs2GTtG8OhnC2euy gaxw== 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=BbtiLiOJU0rTXaLM0hDshg4m31VYD4/CJhwA3wxcIfY=; b=Y30vwj8OsQ2BIwgTt8iepbow7EvxRsZfpa5fNsJGDM4y8xUeUEH07VatY6ci/d8DYB t59NWjc6HDigJr6U8JPqXgxn9XQMftRoP2+zh95Iv26bicZ897C3PEHH8Eb+5L62uKly 0m1bBSTRJRgnCJkEqC5wJ9KjkijvntiW1G91dX5j2oQXQqnpmFvyyFcjaiWYF+13oHXU pnKkJDAMBymUOwvs/K3mfMaZIm1bhOBHXec++NwI65x+CyqDw4epSlDca1wu8EgdSVwP cwHrerkkRlm3q+rhSx27Sm5MwUPuohCE/SECtjEujmJkKs3XH5VJBUn3bGLbbvUyzpTV doVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UEbSN7Cq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k13-20020a170902c40d00b001586fbb2b6dsi34928171plk.566.2022.06.08.01.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:28:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UEbSN7Cq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 78F58224466; Wed, 8 Jun 2022 00:57:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444130AbiFHCJg (ORCPT + 99 others); Tue, 7 Jun 2022 22:09:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442542AbiFHAz0 (ORCPT ); Tue, 7 Jun 2022 20:55:26 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D80CF1271A6 for ; Tue, 7 Jun 2022 17:01:29 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id o7so4955289eja.1 for ; Tue, 07 Jun 2022 17:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BbtiLiOJU0rTXaLM0hDshg4m31VYD4/CJhwA3wxcIfY=; b=UEbSN7CqnGLPUgHOCHUnxVgvcwwH5fIjCRkDU1hMHEOw3O6Crn+zFT4cHbt26zWAIE 8N37tZnKa2IQm97YWALddX+9sX5+eUdSGgLUjTzkUqGjd8eF/munkHc/iMXNVyIQulDr RzbvLPuA7QuYsQ2rp6uFK7J90q2o99MR/JxvoP1OAXLS/i1XFkjUHB5dMmTRPvkqrKN1 GVlnO15zjvzdRH/a9AZT92GfOjEnw3KTd/XmxNJvNtOd6X7CXsn2ckNAviyYg0+ZlzRg 9Ks+ItmnXrzSqHobsOovoV7ncr9CtW9Vq3iZguF++zTcNjSYE725THejD4ccN1rYOdeo eKIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BbtiLiOJU0rTXaLM0hDshg4m31VYD4/CJhwA3wxcIfY=; b=m1HUVYFMtbKA7CTE29olGccbP7GJ6u9A6aAPZljkPGv9Z7Tcwrkpcr6nkLyP+e/JUF b9CUG9PxDhmwIOln52iDX2eJ21qaOqeWkVU0oc18wyNveVqsksVsWztkUy80mz6G0lgo 39n70J6RX4nztfmPl+XB/ZW5Q4et7iFDAvTDX2AST1x8ZKz0rP5+j1JGRfO7FLOOdO9A TMSJanEFN6yX466LI8S8rR8CsVKlighhX0oDsjH+Aa5jWo0fDRoEgG3wkMDHPNcwpbGF 6gd/npRx1fsUJqCROmEBPx8XFbym1WlkLsJcu7bLMfnxUUryK1EVx975WTnbBGQoo20f t1Fw== X-Gm-Message-State: AOAM532Van2HXw3DHotjacilAEhcnkhkq8GTP9A8MsygNoCQxc+m+V19 e2J9bsVxDr7QgRWQaZmcx3w= X-Received: by 2002:a17:906:99c5:b0:6fe:b069:4ab6 with SMTP id s5-20020a17090699c500b006feb0694ab6mr29042371ejn.436.1654646487635; Tue, 07 Jun 2022 17:01:27 -0700 (PDT) Received: from mail (239.125-180-91.adsl-dyn.isp.belgacom.be. [91.180.125.239]) by smtp.gmail.com with ESMTPSA id z11-20020a05640240cb00b0042e17781fc5sm9790817edb.49.2022.06.07.17.01.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 17:01:26 -0700 (PDT) Date: Wed, 8 Jun 2022 02:01:25 +0200 From: Luc Van Oostenryck To: Ankur Arora Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, mike.kravetz@oracle.com, mingo@kernel.org, luto@kernel.org, tglx@linutronix.de, bp@alien8.de, peterz@infradead.org, ak@linux.intel.com, arnd@arndb.de, jgg@nvidia.com, jon.grimm@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, joao.m.martins@oracle.com Subject: Re: [PATCH v3 13/21] clear_page: add generic clear_user_pages_incoherent() Message-ID: <20220608000125.na6z3niyv4ty7xn7@mail> References: <20220606202109.1306034-1-ankur.a.arora@oracle.com> <20220606203725.1313715-9-ankur.a.arora@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220606203725.1313715-9-ankur.a.arora@oracle.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, Jun 06, 2022 at 08:37:17PM +0000, Ankur Arora wrote: > +static inline void clear_user_pages_incoherent(__incoherent void *page, > + unsigned long vaddr, > + struct page *pg, > + unsigned int npages) > +{ > + clear_user_pages((__force void *)page, vaddr, pg, npages); > +} Hi, Please use 'void __incoherent *' and 'void __force *', as it's done elsewhere for __force and address spaces. -- Luc