Skip to contentSkip to conversation

target/ppc: allow ppc_cpu_do_system_reset to take an alternate vector

PATCH Programmingkid 2 participants 3 messages Mar 17, 2020 – Mar 19, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 16 lines · On Mar 17, 2020, at 7:01 AM, [email protected] wrote:

Message: 3
Date: Tue, 17 Mar 2020 11:47:32 +0100
From: Cédric Le Goater <[email protected]>
To: David Gibson <[email protected]>, Nicholas Piggin
<[email protected]>
Cc: [email protected], Aravinda Prasad <[email protected]>,
Ganesh Goudar <[email protected]>, Greg Kurz <[email protected]>, [email protected]
Subject: Re: [PATCH v2 6/8] target/ppc: allow ppc_cpu_do_system_reset
to take an alternate vector
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252

Quoted 15 lines
Quoted 14 lines · David Gibson
Quoted 12 lines · Nicholas Piggin

Cédric Le Goater's on March 17, 2020 4:15 am:

Quoted 7 lines · Nicholas Piggin
Quoted 2 lines

Provide for an alternate delivery location, -1 defaults to the architected address.

I don't know what is the best approach, to override the vector addr computed by powerpc_excp() or use a machine class handler with cpu->vhyp.

Yeah it's getting a bit ad hoc and inconsistent with machine check etc, I just figured get something minimal in there now. The whole exception delivery needs a spring clean though.

Currently Mac OS 9 will not restart. When someone goes to restart it the screen will turn black and stay that way. Could this patch solve this problem?

#2 lore raw
Quoted 27 lines · Programmingkid
Quoted 27 lines · On Mar 17, 2020, at 7:01 AM, [email protected] wrote:

Message: 3
Date: Tue, 17 Mar 2020 11:47:32 +0100
From: Cédric Le Goater <[email protected]>
To: David Gibson <[email protected]>, Nicholas Piggin
<[email protected]>
Cc: [email protected], Aravinda Prasad <[email protected]>,
Ganesh Goudar <[email protected]>, Greg Kurz <[email protected]>, [email protected]
Subject: Re: [PATCH v2 6/8] target/ppc: allow ppc_cpu_do_system_reset
to take an alternate vector
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252

Quoted 10 lines · David Gibson
Quoted 9 lines · Nicholas Piggin

Cédric Le Goater's on March 17, 2020 4:15 am:

Quoted 7 lines · Nicholas Piggin
Quoted 2 lines

Provide for an alternate delivery location, -1 defaults to the architected address.

I don't know what is the best approach, to override the vector addr computed by powerpc_excp() or use a machine class handler with cpu->vhyp.

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

Yeah it's getting a bit ad hoc and inconsistent with machine check etc, I just figured get something minimal in there now. The whole exception delivery needs a spring clean though.

Currently Mac OS 9 will not restart. When someone goes to restart it the screen will turn black and stay that way. Could this patch solve this problem?

No. It's unlikely to be related, and at this stage is used exclusively to implement the FWNMI stuff for the pseries machine.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
#3 lore raw
Quoted 36 lines · David Gibson
Quoted 32 lines · Programmingkid
Quoted 31 lines · On Mar 17, 2020, at 7:01 AM, [email protected] wrote:

Message: 3
Date: Tue, 17 Mar 2020 11:47:32 +0100
From: Cédric Le Goater <[email protected]>
To: David Gibson <[email protected]>, Nicholas Piggin
<[email protected]>
Cc: [email protected], Aravinda Prasad <[email protected]>,
Ganesh Goudar <[email protected]>, Greg Kurz <[email protected]>, [email protected]
Subject: Re: [PATCH v2 6/8] target/ppc: allow ppc_cpu_do_system_reset
to take an alternate vector
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252

Quoted 14 lines · David Gibson
Quoted 12 lines · Nicholas Piggin

Cédric Le Goater's on March 17, 2020 4:15 am:

Quoted 7 lines · Nicholas Piggin
Quoted 2 lines

Provide for an alternate delivery location, -1 defaults to the architected address.

I don't know what is the best approach, to override the vector addr computed by powerpc_excp() or use a machine class handler with cpu->vhyp.

Yeah it's getting a bit ad hoc and inconsistent with machine check etc, I just figured get something minimal in there now. The whole exception delivery needs a spring clean though.

Quoted 12 lines
Quoted 3 lines

Currently Mac OS 9 will not restart. When someone goes to restart it the screen will turn black and stay that way. Could this patch solve this problem?

No. It's unlikely to be related, and at this stage is used exclusively to implement the FWNMI stuff for the pseries machine.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Ok. Thank you.