From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B7DBC433DF for ; Sun, 9 Aug 2020 14:37:42 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED0F9206B6 for ; Sun, 9 Aug 2020 14:37:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="nT3JnB7w" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED0F9206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.ibm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4BPhX35LbDzDqTF for ; Mon, 10 Aug 2020 00:37:39 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=aneesh.kumar@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=nT3JnB7w; dkim-atps=neutral Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4BPhT90C81zDqSc for ; Mon, 10 Aug 2020 00:35:07 +1000 (AEST) Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 079EVpvk144696; Sun, 9 Aug 2020 10:35:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=WzjKpV7kx4rLAzP6/pxe9UehjVUFK3usMC6gKuExO7k=; b=nT3JnB7wnWTNxdiql3lLHItKccJHz8iJv5BTLEn89HB5sscff7/Z3uwVaCVmwfKOmnT8 dnh1AXGBHJyNDHSDM8se4jIPYVJdM4akLJoc/fFnZv6QzptRKpRLrPIoWSXiUOd+srhZ Wscf3ytQ8K43W4BhR8vdgdE2WVkbun4ArqEHAPnRaKXEwQxX6V3emqc27PzSZW0DWoyf 0RT/0Ni9E7lsbwmVLADyGAW7Kf7bVwgqg6xTVz9ap3J05yZsyo5DU9vBC/4fM1yTEgjL V1TPNxPYViGwwfm9P6blz4o7L22UJDVhX6XsMGD1OjCuVPFBwU3MWMwSBGZZt3Hk8/AD 6Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 32sr7mb7kg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 09 Aug 2020 10:35:05 -0400 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 079EW7aq145499; Sun, 9 Aug 2020 10:35:04 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 32sr7mb7jy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 09 Aug 2020 10:35:04 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 079EUD5I032636; Sun, 9 Aug 2020 14:35:03 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma05fra.de.ibm.com with ESMTP id 32skp80s91-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 09 Aug 2020 14:35:02 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 079EZ0FV53608920 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 9 Aug 2020 14:35:00 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B83FB42049; Sun, 9 Aug 2020 14:35:00 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 314A14203F; Sun, 9 Aug 2020 14:34:59 +0000 (GMT) Received: from [9.102.2.152] (unknown [9.102.2.152]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Sun, 9 Aug 2020 14:34:58 +0000 (GMT) Subject: Re: [PASEMI] Nemo board doesn't boot anymore after the commit "powerpc/book3s64/pkeys: Simplify pkey disable branch" To: Christian Zigotzky , linuxppc-dev , "R.T.Dickinson" , Darren Stevens , mad skateman , Olof Johansson References: <8f4c1afc-89cf-749b-2b2d-4efa5ef3acff@xenosoft.de> From: "Aneesh Kumar K.V" Message-ID: Date: Sun, 9 Aug 2020 20:04:58 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <8f4c1afc-89cf-749b-2b2d-4efa5ef3acff@xenosoft.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-08-09_08:2020-08-06, 2020-08-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 clxscore=1011 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008090106 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On 8/9/20 7:42 PM, Christian Zigotzky wrote: > Hello, > > The Nemo board (A-EON AmigaOne X1000) [1] doesn't start with the latest > Git kernel anymore after the commit "powerpc/book3s64/pkeys: Simplify > pkey disable branch" [2]. > > I bisected today [3]. > > Result: powerpc/book3s64/pkeys: Simplify pkey disable branch > (a4678d4b477c3d2901f101986ca01406f3b7eaea) [2] is the first bad commit. > > Unfortunately I wasn't able to revert the first bad commit. The first > bad commit depends on many other commits, which unfortunately I don't > know. I tried to remove the modifications of the files from the first > bad commit but without any success. There are just too many dependencies. > > Additionally I reverted the commit "selftests/powerpc: Fix pkey syscall > redefinitions" [4] and compiled a new kernel but without any success. > > Could you please check the first bad commit? > > Thanks, > Christian > Can you share a successful boot log of the system so that i can double check the cpu_feature and mmu_feature reported ? I am looking for details similar to below. [ 0.000000] cpu_features = 0x0001c07f8f5f91a7 [ 0.000000] possible = 0x0001fbffcf5fb1a7 [ 0.000000] always = 0x00000003800081a1 [ 0.000000] cpu_user_features = 0xdc0065c2 0xefe00000 [ 0.000000] mmu_features = 0x7c006001 [ 0.000000] firmware_features = 0x0000001fc45bfc57 [ 0.000000] vmalloc start = 0xc008000000000000 [ 0.000000] IO start = 0xc00a000000000000 [ 0.000000] vmemmap start = 0xc00c000000000000 IIUC this is P5+? (ISA 2.04). On that pkey should be marked disabled via static int scan_pkey_feature(void) { int ret; int pkeys_total = 0; .... /* * Only P7 and above supports SPRN_AMR update with MSR[PR] = 1 */ if (!early_cpu_has_feature(CPU_FTR_ARCH_206)) return 0; } Can you boot with CONFIG_PPC_MEM_KEYS=n ? -aneesh