Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp609675ybg; Tue, 9 Jun 2020 08:28:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2k9ouX7E0S6CaOvGJufl1XpBjRnR9I7IT/kw/NvtWGR8UWKESJhJgIAgv5WHGNAbC1s/2 X-Received: by 2002:a17:906:9254:: with SMTP id c20mr27144491ejx.540.1591716514457; Tue, 09 Jun 2020 08:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591716514; cv=none; d=google.com; s=arc-20160816; b=zHYhckalJTboCr4A99RHm2sEY2plshFDFw+lsbIoQ3r07JUMd+XSzkEYa3702qamH5 USAwLChvN1Y47mM52siikrUfIWH+zPN6aaDIGowgW6Rs9StnNeo4icFygtV+qLgKy6DQ 1aM9SI77m2EllHDTIgMPMSmUOmtewMOKTx7WA1HaYdqNS2uXL+rjk1VV1MnMu7b9ae+r 9pJxvDtqIsGppK/Fd0II4N1QKKYcVV4zmnIzTFeK2NBndG/63NbKcNN3yp4Lppuib+tK tvDLIRBHE/TpcVsbfLBBwt0xQPwzPJzJ6Vx1sC6OBhNZe3VgABYyNq3Aneh3A6HlCCeV pFXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=SPSJC/87WpsDyBQqIIUuHggUxRZm73hr+J1DPMTef9o=; b=Rp9NyX6myEdOj+N38lwlK/xdg39u5yoanL6HXZK3F5xkehIum8UmB6CO7MVTGCffst Duyk0gUojKoKRf+4OUGFYgNUoafUrLsQea8/clkFlxwzRufdLgBUg3o7iJpLTgDDUhTn RvMPhQOhkRziKakYcUR/53/Oaz7jLH5tZcKD2N5RcZx/w7EmmbK3BsSCQhnGx99Q5WEM /UOV3FEKikEAH+8/ucXl0v1a6KYMemxJ5vk88UAk2hHtu1zxYUBdjMrwEVcv6w8ojSGA UjOBUu4/YsRcDDVv4QuXcwC6QqeQX+/NvQIp/cUkGgradr6pyMz8uCvq0QrUD2zZEId2 Az0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si11343754ejs.546.2020.06.09.08.28.10; Tue, 09 Jun 2020 08:28:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730759AbgFIPZM (ORCPT + 99 others); Tue, 9 Jun 2020 11:25:12 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:12170 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbgFIPZL (ORCPT ); Tue, 9 Jun 2020 11:25:11 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 059F4I5i079404; Tue, 9 Jun 2020 11:24:47 -0400 Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 31jb0md19u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jun 2020 11:24:47 -0400 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 059FGGNL020904; Tue, 9 Jun 2020 15:24:44 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma04fra.de.ibm.com with ESMTP id 31g2s7tgsc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jun 2020 15:24:44 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 059FOgOe47775890 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 9 Jun 2020 15:24:42 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6430CA4055; Tue, 9 Jun 2020 15:24:42 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9BF91A4040; Tue, 9 Jun 2020 15:24:41 +0000 (GMT) Received: from linux.ibm.com (unknown [9.148.202.223]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 9 Jun 2020 15:24:41 +0000 (GMT) Date: Tue, 9 Jun 2020 18:24:39 +0300 From: Mike Rapoport To: Joerg Roedel Cc: Linus Torvalds , Andrew Morton , Guenter Roeck , Andy Lutomirski , Peter Zijlstra , Linux Kernel Mailing List Subject: Re: [PATCH] mm/vmalloc: track which page-table levels were modified Message-ID: <20200609152439.GG1149842@linux.ibm.com> References: <20200603232311.GA205619@roeck-us.net> <20200604083512.GN6857@suse.de> <20200604140617.e340dd507ee68b0a05bd21cb@linux-foundation.org> <20200605081644.GS6857@suse.de> <20200605100059.GB7524@linux.ibm.com> <20200609121056.GB3871@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200609121056.GB3871@suse.de> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-09_09:2020-06-09,2020-06-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 cotscore=-2147483648 malwarescore=0 spamscore=0 phishscore=0 impostorscore=0 suspectscore=1 priorityscore=1501 bulkscore=0 adultscore=0 mlxlogscore=864 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006090111 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joerg, On Tue, Jun 09, 2020 at 02:10:56PM +0200, Joerg Roedel wrote: > Hi Mike, > > On Fri, Jun 05, 2020 at 01:00:59PM +0300, Mike Rapoport wrote: > > We already have include/asm-generic/pgalloc.h, so maybe something like > > that patch below would fork. This is not even compile tested. > > > > diff --git a/include/asm-generic/pgalloc.h b/include/asm-generic/pgalloc.h > > I experimented a bit with your diff, but it turned out that moving the > page-table allocation functions/macros to asm-generic/pgalloc.h does not > work on all architectures. > > The reason is that some archs don't use that header at all (e.g. ARC) > and have their own version of the functions defined there. That could > all be made working, but I decided to no open this can of worms for now. > > So I sent out a patch which moves the p?d_alloc_track() functions/macros > to a separate header and include it only in mm/vmalloc.c and > lib/ioremap.c. I'm planning to open this can of worms eventually, but having p?d_alloc_track() in a separate header wouldn't be the biggest of my problems :) > That compiles on all architectures where current Linus' > master also builds (it does not for Alpha, CSky, Mips and Mips64), and > as usual Hexagon and Unicore32 are not tested because I have no working > compiler for those. > > Regards, > > Joerg -- Sincerely yours, Mike.