Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp484172ybg; Tue, 9 Jun 2020 05:52:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPoaTFnxzG41FLIrIvKq7N1CmiuyDtCq96SrQP0jzaU5jpYAQ0iAcD0T4EfRwQTXNfTAmu X-Received: by 2002:aa7:c908:: with SMTP id b8mr26717291edt.76.1591707142800; Tue, 09 Jun 2020 05:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591707142; cv=none; d=google.com; s=arc-20160816; b=LHiCuSLJMi9aSSO1wmEgTEPa0qQp3OMBbogCH7nTSgEqolmkNibOkx3du0qVbwShqU zquL1WGGsSIujGjBkS7csN1Of+afqcKzEF7OSCwam+9hJpx/X6iehSvGNyvNgXiZ7CLh F+ZtK9J4fwKrhF90oC7UUlb8PVdodK86UElVkNvi3cGa+QecpsONpZXUuX2nGBARw5ZB m2gt4k49iKorLU+zNo0mKt76sB0jGuSZNwXVqcndYl1n2t6f88NL96Zt77tQm+/ckSrc JWUUqzu/pqkuEJ48317eCYPKoEoa0SAhgrzf7s6vq6pGRy4HtygQjh1aRW19N3RxEf5f uYqA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=xcgRRANfAtYAvow8eyi8PYIi0uhqywf3+stLe0OtSf4=; b=mzxRnlpNmj1rgcKl/y2ooDEzufJSTGqmXNR7hrFnbPs/oSEffhlqLYGwB6YpPDpljL o4+yDlxV3DjUV/Mk9FTMxEHGskNRifBNvqRKlOxVp0O0sTa5uzj863yjYgYHoiMG539T +CRxRGwNKfsWvySdVeMmO8JfjPNMJxp3+P+OHuOUTX3yq76lPwx+1O6WqOuGUYP6xTk8 rtU/fU+fGsuUHU2Y8TqBt3cOwQbs47/ZZI7BZvANqYhc0fS87g0dTbtiAEYneFtElXpa 27VBiCY+M+n5wnz/VxQTvrZV9p8CK3CBL8nUwhzDIzW9Jc0A8uPyQzExPswFxHnLOIKi WjMQ== 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 do11si13895025ejc.450.2020.06.09.05.52.00; Tue, 09 Jun 2020 05:52:22 -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 S1729302AbgFIMZ7 (ORCPT + 99 others); Tue, 9 Jun 2020 08:25:59 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:29696 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726903AbgFIMZ7 (ORCPT ); Tue, 9 Jun 2020 08:25:59 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 059C29aL119645; Tue, 9 Jun 2020 08:25:54 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 31huuq1b3r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jun 2020 08:25:54 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 059CLPoq031105; Tue, 9 Jun 2020 12:25:52 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma03ams.nl.ibm.com with ESMTP id 31g2s7wx1c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jun 2020 12:25:52 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 059CPooV63832154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 9 Jun 2020 12:25:50 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1E44C42049; Tue, 9 Jun 2020 12:25:50 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B3E6842047; Tue, 9 Jun 2020 12:25:49 +0000 (GMT) Received: from pomme.local (unknown [9.145.53.106]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 9 Jun 2020 12:25:49 +0000 (GMT) Subject: Re: [PATCH] powerpc/pseries/svm: Remove unwanted check for shared_lppaca_size To: Satheesh Rajendran , linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, Thiago Jung Bauermann , Ram Pai , Sukadev Bhattiprolu References: <20200609105731.14032-1-sathnaga@linux.vnet.ibm.com> From: Laurent Dufour Message-ID: <183e9acb-4562-af7c-a50b-52cee5954d9e@linux.ibm.com> Date: Tue, 9 Jun 2020 14:25:49 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <20200609105731.14032-1-sathnaga@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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_03:2020-06-09,2020-06-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 cotscore=-2147483648 suspectscore=0 mlxscore=0 bulkscore=0 impostorscore=0 mlxlogscore=999 phishscore=0 clxscore=1015 spamscore=0 priorityscore=1501 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006090088 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 09/06/2020 à 12:57, Satheesh Rajendran a écrit : > Early secure guest boot hits the below crash while booting with > vcpus numbers aligned with page boundary for PAGE size of 64k > and LPPACA size of 1k i.e 64, 128 etc, due to the BUG_ON assert > for shared_lppaca_total_size equal to shared_lppaca_size, > > [ 0.000000] Partition configured for 64 cpus. > [ 0.000000] CPU maps initialized for 1 thread per core > [ 0.000000] ------------[ cut here ]------------ > [ 0.000000] kernel BUG at arch/powerpc/kernel/paca.c:89! > [ 0.000000] Oops: Exception in kernel mode, sig: 5 [#1] > [ 0.000000] LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA pSeries > > which is not necessary, let's remove it. > Reviewed-by: Laurent Dufour > Cc: linux-kernel@vger.kernel.org > Cc: Thiago Jung Bauermann > Cc: Ram Pai > Cc: Sukadev Bhattiprolu > Cc: Laurent Dufour > Signed-off-by: Satheesh Rajendran > --- > arch/powerpc/kernel/paca.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/kernel/paca.c b/arch/powerpc/kernel/paca.c > index 949eceb25..10b7c54a7 100644 > --- a/arch/powerpc/kernel/paca.c > +++ b/arch/powerpc/kernel/paca.c > @@ -86,7 +86,7 @@ static void *__init alloc_shared_lppaca(unsigned long size, unsigned long align, > * This is very early in boot, so no harm done if the kernel crashes at > * this point. > */ > - BUG_ON(shared_lppaca_size >= shared_lppaca_total_size); > + BUG_ON(shared_lppaca_size > shared_lppaca_total_size); > > return ptr; > } >