From sacadmin Mon Oct 12 15:07:31 2009
Received: from tethys.sfbay.sun.com (tethys.SFBay.Sun.COM [129.146.226.92])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9CM7VXJ029889;
	Mon, 12 Oct 2009 15:07:31 -0700 (PDT)
Received: from tethys.sfbay.sun.com (localhost [127.0.0.1])
	by tethys.sfbay.sun.com (8.14.3+Sun/8.14.3) with ESMTP id n9CM1m4q029042;
	Mon, 12 Oct 2009 15:01:48 -0700 (PDT)
Received: (from jg@localhost)
	by tethys.sfbay.sun.com (8.14.3+Sun/8.14.3/Submit) id n9CM1mpW029039;
	Mon, 12 Oct 2009 15:01:48 -0700 (PDT)
Date: Mon, 12 Oct 2009 15:01:48 -0700 (PDT)
From: Jerry Gilliam <jg@tethys.sfbay.sun.com>
Message-Id: <200910122201.n9CM1mpW029039@tethys.sfbay.sun.com>
To: PSARC-record@sac.sfbay.sun.com
Subject: PSMI extensions for CPU Hotplug [PSARC/2009/550 Self Review]
Status: RO
Content-Length: 571


Template Version: @(#)sac_nextcase 1.68 02/23/09 SMI
This information is Copyright 2009 Sun Microsystems
1. Introduction
    1.1. Project/Component Working Name:
	 PSMI extensions for CPU Hotplug
    1.2. Name of Document Author/Supplier:
	 Author:  Michael Corcoran
    1.3  Date of This Document:
	12 October, 2009
4. Technical Description
    See the case directory for more detail

6. Resources and Schedule
    6.4. Steering Committee requested information
   	6.4.1. Consolidation C-team Name:
		ON
    6.5. ARC review type: Automatic
    6.6. ARC Exposure: open


From jerry.gilliam@sun.com Mon Oct 12 15:25:41 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9CMPeEm000444
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Oct 2009 15:25:41 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n9CMPW8G020659;
	Tue, 13 Oct 2009 06:25:34 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KRF00705AAKH400@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Oct 2009 15:25:32 -0700 (PDT)
Received: from jurassic-x4600.sfbay.sun.com ([129.146.17.59])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KRF003QUAAK8PB0@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Oct 2009 15:25:32 -0700 (PDT)
Received: from [129.146.226.92] (tethys.SFBay.Sun.COM [129.146.226.92])
	by jurassic-x4600.sfbay.sun.com (8.14.3+Sun/8.14.3)
 with ESMTP id n9CMPVUe704334; Mon, 12 Oct 2009 15:25:31 -0700 (PDT)
Date: Mon, 12 Oct 2009 15:19:49 -0700
From: Jerry Gilliam <jerry.gilliam@sun.com>
Subject: PSMI Extensions for CPU Hotplug [PSARC/2009/550 Self Review]
To: PSARC-ext@sun.com, Michael Corcoran <michael.corcoran@sun.com>
Cc: Geetanjali Krishna <geetanjali.krishna@intel.com>,
        Jiang Liu <jiang.liu@intel.com>, sherry.moore@sun.com,
        Shidokht Yadegari <shidokht.yadegari@sun.com>
Message-id: <4AD3AB85.6040904@sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
User-Agent: Thunderbird 2.0.0.21 (X11/20090323)
Status: RO
Content-Length: 3863


I'm sponsoring the following case on behalf of Michael Corcoran.
The proposal I believe qualifies for self-review approval but
I can upgrade this upgrade should anyone think otherwise.

The case requests minor binding only as there is
no intention to back-port these interfaces.

------------------


1. Introduction
     1.1. Project/Component Working Name:
      CPU hotplug for x86 systems

     1.2. Name of Document Author/Supplier:
      Author:  Geeta Krishna <geetanjali.krishna@intel.com>
     	      Gerry Liu <jiang.liu@intel.com>

     1.3  Date of This Document:
     06 August, 2009

4. Technical Description
Name:		PSMI extension for state save and restore
Submitter:	Geeta Krishna
Owner:		Geeta Krishna
Interest:	
Status:		waiting fast-track

Background:

Previous cases on Intel PSMI interface:
     PSARC 1993/042	Solaris/x86 MP Support
     PSARC 1994/441	PSMI for Power PC
     PSARC 1995/422	PSMI Extensions
     PSARC 1997/310	PSMI Version 1.2
     PSARC 2004/239	x86 PSMI Extensions for Higher Resolution Timer
     PSARC 2004/418	SM Extension for soft poweroff on Solaris x86
     PSARC 2005/091	PSMI Extension for ADII
     PSARC 2006/632	PSMI extension for state save and restore


Proposal:

1. New control entry point is needed for supporting CPU hotplug operations.

A CPU control entry point will be added to psm_ops structure and the PSM
version will be incremented to 1.7 from 1.6. The CPU control entry point
and relative data structure are defined as below:

typedef enum psm_cpu_op_e {
         PSM_CPU_ADD = 1,
         PSM_CPU_REMOVE,
         PSM_CPU_STOP
} psm_cpu_op_t;

typedef struct psm_cpu_request {
         psm_cpu_op_t pcr_cmd;
         union {
                 struct {
                         processorid_t cpuid;
                         void *argp;
                 } cpu_add;
                 struct {
                         processorid_t cpuid;
                 } cpu_remove;
                 struct {
                         processorid_t cpuid;
                         void *ctx;
                 } cpu_stop;
         } req;
} psm_cpu_request_t;

int     (*psm_cpu_ops)(psm_cpu_request_t *reqp);

This CPU control interface supports following operations :

PSM_CPU_ADD:    add a logical CPU to PSM layer and allocate processor id.
PSM_CPU_REMOVE: remove a logical CPU from PSM layer and free processor id.
PSM_CPU_STOP:   power off logical CPU.

2. Enhancement to platform dependent interfaces

To support CPU hotplug, following interfaces and data structure will be
added to platform dependent interfaces in uts/i86pc/sys/machsystm.h.

typedef enum mach_cpu_add_arg_type {
         MACH_CPU_ARG_LOCAL_APIC,
         MACH_CPU_ARG_LOCAL_X2APIC,
} mach_cpu_add_arg_type_t;

typedef struct mach_cpu_add_arg {
         mach_cpu_add_arg_type_t         type;
         union {
                 struct {
                         uint32_t        apic_id;
                         uint32_t        proc_id;
                 } apic;
         } arg;
} mach_cpu_add_arg_t;

extern int mach_cpu_stop(cpu_t *, void *);
extern int mach_cpu_add(mach_cpu_add_arg_t *, processorid_t *);
extern int mach_cpu_remove(processorid_t);
These interfaces will call psm_cpu_ops in psm_ops.

The new *psm_ops* structure will be in effect if PSMI_1_7 is defined.
PSMI_1_7 will include the extensions defined in PSMI_1_6 interface.

Backward binary compatibility for the PSM will be preserved
through the check of version of PSM in the kernel.


Interface levels:

The project exports the following interfaces:

PSMI Interface changes for version 1.7:

Interface:		Classification		Comments

psm_cpu_ops		Consolidation Private	psm_ops struct member

6. Resources and Schedule
     6.4. Steering Committee requested information
     6.4.1. Consolidation C-team Name: ON
     6.5. ARC review type: FastTrack
     6.6. ARC Exposure: open

From johnlev@barman.uk.sun.com Mon Oct 12 15:32:20 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9CMWJol000588
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Oct 2009 15:32:19 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail3mpk.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id n9CMWIwt024845
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 12 Oct 2009 15:32:19 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KRF00B0BALTMW00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 12 Oct 2009 16:32:17 -0600 (MDT)
Received: from dm-uk-02.uk.sun.com ([129.156.101.196])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KRF00C0FALSXV90@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 12 Oct 2009 16:32:17 -0600 (MDT)
Received: from barman.uk.sun.com (barman.UK.Sun.COM [129.156.132.12])
	by dm-uk-02.uk.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2)
 with ESMTP id n9CMWB3U013207; Mon, 12 Oct 2009 23:32:11 +0100 (BST)
Received: from johnlev by barman.uk.sun.com with local (Exim 4.42)
	id 1MxTbh-0005db-7U; Mon, 12 Oct 2009 23:43:09 +0100
X-URL: http://jurassic.eng/~johnlev/
Date: Mon, 12 Oct 2009 23:43:09 +0100
From: John Levon <john.levon@sun.com>
Subject: Re: PSMI Extensions for CPU Hotplug [PSARC/2009/550 Self Review]
In-reply-to: <4AD3AB85.6040904@sun.com>
Sender: John Levon <johnlev@barman.uk.sun.com>
To: Jerry Gilliam <jerry.gilliam@sun.com>
Cc: PSARC-ext@sun.com, Michael Corcoran <michael.corcoran@sun.com>,
        Geetanjali Krishna <geetanjali.krishna@intel.com>,
        Jiang Liu <jiang.liu@intel.com>, sherry.moore@sun.com,
        Shidokht Yadegari <shidokht.yadegari@sun.com>
Message-id: <20091012224309.GA21302@barman.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <4AD3AB85.6040904@sun.com>
User-Agent: Mutt/1.5.6i
Status: RO
Content-Length: 445

On Mon, Oct 12, 2009 at 03:19:49PM -0700, Jerry Gilliam wrote:

> I'm sponsoring the following case on behalf of Michael Corcoran.
> The proposal I believe qualifies for self-review approval but
> I can upgrade this upgrade should anyone think otherwise.

Not really relevant to this case, but surely it's time to stop all the
PSM versioning stuff. It has no meaning or purpose any more, and would
save a lot on PSARC fast-tracks.

regards
john

