Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2057339img; Wed, 27 Feb 2019 09:42:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IadZINeM3aSQiQat91By3RfCY7Q9F/7jVFSWMdISeJDtv9zefkpmiRj6Wg4vdrJePTupdNl X-Received: by 2002:a63:1c42:: with SMTP id c2mr4032803pgm.265.1551289334379; Wed, 27 Feb 2019 09:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551289334; cv=none; d=google.com; s=arc-20160816; b=kPlLQVTV+1y4kSwgPTaElmDTLwWzrIrUyWmeC7jTCOBTwqp4WnxDTTgyyocVd42jlu vIL/P7c2l2W76Bq9LUlqixs2OBALtYaKRoqCDAOf4lr6/CMkVP6j5qzFIBWhzWfzC3oi G8oHo7ldu+KAncvFzCxFp/OvK/iTXmtGzVgrt5d4+CefEeL+TnR+V1y2/taRW1K7wV+Y TB7qdhAoQPaE+NcfUWkmSZh5SzrjM7b/06rn7Vy78nThZhZRJksXH0uKL+lbRcC+qccG cBOJcDC0bnjdZZ751N/3EnYt3UWUpYF38hIMOgoUZLouGEHPn8PS72Dmvw8L/pPr/6Rl Hllw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id :mime-version:references:in-reply-to:subject:cc:to:from:date; bh=gXMW0K3Lmn5/vqfZW+JOTVgQGxsFi5odITHtSzY3JzE=; b=YqX+YBlfgKJMda33AuXx5qH/VpF/9mAH5pLisj2EXy5w5Hp4jNVP0Nlswlr1DunPRX NW1dEVKeOc2zkhfoFi1NpKpt8i94QZcWUNuaMa0qADMLeSRF/w/UiNPYV4/RjSmifOOq b/OOiNre1Ylv2OktD9f4AjkIN8NHEhEyiSEMWdKx0Pbe5GMghmdtBLJChJrmC3BcfyyW BYzO4iBief3IsJW043/JkczfhVVczbAIFw+CJ99eEoYwyI/FkFtRPidiLqdBBC7jfr2A ZmljO4N/qJxo+lAbK9ReXYY7oxmHhdwJtfZrYG1dbvpsajiqSZzTuyxcGhX7bgtODZT6 6KsA== 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 15si15433805pgt.261.2019.02.27.09.41.59; Wed, 27 Feb 2019 09:42:14 -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 S1729577AbfB0Rk1 (ORCPT + 99 others); Wed, 27 Feb 2019 12:40:27 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46646 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726223AbfB0Rk1 (ORCPT ); Wed, 27 Feb 2019 12:40:27 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1RHeEcj098268 for ; Wed, 27 Feb 2019 12:40:25 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2qwvp1r4pa-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 27 Feb 2019 12:40:22 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 27 Feb 2019 17:40:20 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 27 Feb 2019 17:40:15 -0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x1RHeEEs23527458 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Feb 2019 17:40:14 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3A060A405C; Wed, 27 Feb 2019 17:40:14 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 90B1EA4054; Wed, 27 Feb 2019 17:40:13 +0000 (GMT) Received: from mschwideX1 (unknown [9.152.212.60]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 27 Feb 2019 17:40:13 +0000 (GMT) Date: Wed, 27 Feb 2019 18:40:12 +0100 From: Martin Schwidefsky To: Steven Price Cc: linux-mm@kvack.org, Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Dave Hansen , Ingo Molnar , James Morse , =?UTF-8?B?SsOpcsO0bWU=?= Glisse , Peter Zijlstra , Thomas Gleixner , Will Deacon , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Rutland , "Liang, Kan" , Heiko Carstens , linux-s390@vger.kernel.org Subject: Re: [PATCH v3 18/34] s390: mm: Add p?d_large() definitions In-Reply-To: <20190227170608.27963-19-steven.price@arm.com> References: <20190227170608.27963-1-steven.price@arm.com> <20190227170608.27963-19-steven.price@arm.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 19022717-0012-0000-0000-000002FAEED7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19022717-0013-0000-0000-0000213297C2 Message-Id: <20190227184012.2e251154@mschwideX1> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-27_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902270120 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Feb 2019 17:05:52 +0000 Steven Price wrote: > walk_page_range() is going to be allowed to walk page tables other than > those of user space. For this it needs to know when it has reached a > 'leaf' entry in the page tables. This information is provided by the > p?d_large() functions/macros. > > For s390, we don't support large pages, so add a stub returning 0. Well s390 does support 1MB and 2GB large pages, pmd_large() and pud_large() are non-empty. We do not support 4TB or 8PB large pages though, which makes the patch itself correct. Just the wording is slightly off. > CC: Martin Schwidefsky > CC: Heiko Carstens > CC: linux-s390@vger.kernel.org > Signed-off-by: Steven Price > --- > arch/s390/include/asm/pgtable.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h > index 063732414dfb..9617f1fb69b4 100644 > --- a/arch/s390/include/asm/pgtable.h > +++ b/arch/s390/include/asm/pgtable.h > @@ -605,6 +605,11 @@ static inline int pgd_present(pgd_t pgd) > return (pgd_val(pgd) & _REGION_ENTRY_ORIGIN) != 0UL; > } > > +static inline int pgd_large(pgd_t pgd) > +{ > + return 0; > +} > + > static inline int pgd_none(pgd_t pgd) > { > if (pgd_folded(pgd)) > @@ -645,6 +650,11 @@ static inline int p4d_present(p4d_t p4d) > return (p4d_val(p4d) & _REGION_ENTRY_ORIGIN) != 0UL; > } > > +static inline int p4d_large(p4d_t p4d) > +{ > + return 0; > +} > + > static inline int p4d_none(p4d_t p4d) > { > if (p4d_folded(p4d)) -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.