linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
To: Christian Zigotzky <chzigotzky@xenosoft.de>,
	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
	"R.T.Dickinson" <rtd2@xtra.co.nz>,
	Darren Stevens <darren@stevens-zone.net>,
	mad skateman <madskateman@gmail.com>,
	Olof Johansson <olof@lixom.net>
Subject: Re: [PASEMI] Nemo board doesn't boot anymore after the commit "powerpc/book3s64/pkeys: Simplify pkey disable branch"
Date: Sun, 9 Aug 2020 20:04:58 +0530	[thread overview]
Message-ID: <bdce9b19-a59c-26e3-3fa8-03774e09bca1@linux.ibm.com> (raw)
In-Reply-To: <8f4c1afc-89cf-749b-2b2d-4efa5ef3acff@xenosoft.de>

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

  reply	other threads:[~2020-08-09 14:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-09 14:12 [PASEMI] Nemo board doesn't boot anymore after the commit "powerpc/book3s64/pkeys: Simplify pkey disable branch" Christian Zigotzky
2020-08-09 14:34 ` Aneesh Kumar K.V [this message]
2020-08-09 15:03   ` Aneesh Kumar K.V
     [not found] <87h7tb4zwp.fsf@linux.ibm.com>
     [not found] ` <E1C071A5-19D1-4493-B04A-4507A70D7848@xenosoft.de>
2020-08-10  7:56   ` Christian Zigotzky
2020-08-10  8:45     ` Christian Zigotzky
2020-08-10  8:58       ` Aneesh Kumar K.V
2020-08-10 10:22         ` Christian Zigotzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bdce9b19-a59c-26e3-3fa8-03774e09bca1@linux.ibm.com \
    --to=aneesh.kumar@linux.ibm.com \
    --cc=chzigotzky@xenosoft.de \
    --cc=darren@stevens-zone.net \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=madskateman@gmail.com \
    --cc=olof@lixom.net \
    --cc=rtd2@xtra.co.nz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).