Received: by 10.223.185.116 with SMTP id b49csp5853959wrg; Tue, 27 Feb 2018 23:08:52 -0800 (PST) X-Google-Smtp-Source: AH8x226IvmlZRz6jPyOHx9Rg4Iz7LqfHwAQSiJLdo/BW8TR7hhiRJCSqzsNdek9YD/eZ1rDlu/Yw X-Received: by 10.98.153.86 with SMTP id d83mr15585854pfe.46.1519801732797; Tue, 27 Feb 2018 23:08:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519801732; cv=none; d=google.com; s=arc-20160816; b=fvqDL8vl1NSOemoChMZ3KjJ9YK5BxyRflKIji1KoJhMWqmBA76IkEADGbGQnSXqXXS bIUGl9gh1hv3szFaZxVazh70NNsowE+MKZPHaizYruyEG8JMWYZA+kMRyrxatOFlodEY 18Z4DYCwrD1MkoFMflNoMg5ZK16CAMlckPZVO8jeLZ3fiEVWoIinAZ92gYSJsrZXLDvr IUjcLHozrksFL4MpZYvvyYhD/agbaS4DiUsqNSzfsV57khiCJwZbKVuDRgBJAUqAlULF YGe+8z/CZUFhJzIQsDu8jp8YLVJfMpUssPkta6C91D9EJQ04bhKewBLJVJ0qbL1EUsZo N5/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=etI1pNyd1FyIXbUB3gJ/G3StVWbZqU7qcjCwZ1vepoc=; b=AhOlyLptfcUcTRtsMD8Yom+c7kIo8/sYgP44Ibz5paWlxHIeqtqMQT10viCfpbM4Zi aLxN59qbk3q2YraCSaobBuu1fzQMPWpiIgYV6D4YTtTdPRFLP1bQwY18I5xvtBsqUtS8 bHN0tFCnCTrayau4dt3mJSdu6+bB57NDu9nI7eBtfBfIABHbHeMw28jW/NvuyTAwDhWh 4DbtOU5y/zkMbaIF2m75BHtxK8q6Ly3Y2oxZ8UPgrXka3/Gj1pDYzurxq3qzbv5uky1l N/xPC8LGpz9q2OMl8GL8U7LLHoBW9baGc1eTDLNDRCiTYzbY/JydQuoweTCqYyhWiEEI N56w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id s195si624345pgc.39.2018.02.27.23.08.38; Tue, 27 Feb 2018 23:08:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1751882AbeB1HIA (ORCPT + 99 others); Wed, 28 Feb 2018 02:08:00 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:53830 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbeB1HH7 (ORCPT ); Wed, 28 Feb 2018 02:07:59 -0500 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1S75MP6073380 for ; Wed, 28 Feb 2018 02:07:58 -0500 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gdq1vsgvx-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 28 Feb 2018 02:07:58 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 28 Feb 2018 07:07:55 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 28 Feb 2018 07:07:52 -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 w1S77qiP53346418; Wed, 28 Feb 2018 07:07:52 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1FB2DA405E; Wed, 28 Feb 2018 07:00:56 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 191FEA4055; Wed, 28 Feb 2018 07:00:55 +0000 (GMT) Received: from skywalker (unknown [9.85.71.165]) by d06av23.portsmouth.uk.ibm.com (Postfix) with SMTP; Wed, 28 Feb 2018 07:00:54 +0000 (GMT) Received: (nullmailer pid 20577 invoked by uid 1000); Wed, 28 Feb 2018 07:07:50 -0000 From: "Aneesh Kumar K.V" To: Christophe Leroy , Nicholas Piggin Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [RFC REBASED 5/5] powerpc/mm/slice: use the dynamic high slice size to limit bitmap operations In-Reply-To: <5badd882663833576c10b8aafe235fe1e443f119.1518382747.git.christophe.leroy@c-s.fr> References: <02a62db83282b5ef3e0e8281fdc46fa91beffc86.1518382747.git.christophe.leroy@c-s.fr> <5badd882663833576c10b8aafe235fe1e443f119.1518382747.git.christophe.leroy@c-s.fr> Date: Wed, 28 Feb 2018 12:37:50 +0530 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 x-cbid: 18022807-0008-0000-0000-000004D5590D X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022807-0009-0000-0000-00001E687C11 Message-Id: <87y3jda8xl.fsf@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-28_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802280084 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I also noticed that the slice mask printing use wrong variables now. I guess this should take care of it diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index fef3f36b0b73..6b3575c39668 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/slice.c @@ -535,8 +535,6 @@ unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len, * already */ maskp = slice_mask_for_size(mm, psize); - slice_print_mask(" good_mask", &good_mask); - /* * Here "good" means slices that are already the right page size, * "compat" means slices that have a compatible page size (i.e. @@ -569,6 +567,8 @@ unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len, { slice_copy_mask(&good_mask, maskp, high_slices); } + slice_print_mask(" good_mask", &good_mask); + slice_print_mask(" compat_mask", compat_maskp); /* First check hint if it's valid or if we have MAP_FIXED */ if (addr || fixed) { @@ -646,7 +646,7 @@ unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len, slice_range_to_mask(addr, len, &potential_mask, high_slices); slice_dbg(" found potential area at 0x%lx\n", addr); - slice_print_mask(" mask", maskp); + slice_print_mask(" mask", &potential_mask); convert: slice_andnot_mask(&potential_mask, &potential_mask, &good_mask, high_slices); @@ -836,13 +836,6 @@ int is_hugepage_only_range(struct mm_struct *mm, unsigned long addr, return !slice_check_range_fits(mm, &available, addr, len); } #endif - -#if 0 /* too verbose */ - slice_dbg("is_hugepage_only_range(mm=%p, addr=%lx, len=%lx)\n", - mm, addr, len); - slice_print_mask(" mask", &mask); - slice_print_mask(" available", &available); -#endif return !slice_check_range_fits(mm, maskp, addr, len); } #endif