From owner-svn-src-head@freebsd.org Wed Feb 14 04:11:33 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A31F2F20702; Wed, 14 Feb 2018 04:11:33 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 385FA826A3; Wed, 14 Feb 2018 04:11:33 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from zeppelin.tachypleus.net (cpe-75-82-218-62.socal.res.rr.com [75.82.218.62]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id w1E4BSap011739 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 13 Feb 2018 20:11:29 -0800 Subject: Re: svn commit: r329257 - head/sys/powerpc/pseries To: Justin Hibbits , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201802140248.w1E2mRQ9073531@repo.freebsd.org> From: Nathan Whitehorn Message-ID: Date: Tue, 13 Feb 2018 20:11:28 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <201802140248.w1E2mRQ9073531@repo.freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVbsKgPEspO6ST0hQgP9oqQqwBYMhUZVpLS+AyjOHwC4NrptfkzqWjRcDp4MOIbpdW1rtAEWxjM2D6wujY0Zx+9w3KDd0Esn8Yw= X-Sonic-ID: C;xIFgIT0R6BGz91DNXaHR5A== M;nuwLIj0R6BGz91DNXaHR5A== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Feb 2018 04:11:33 -0000 There is another set of these that Linux added recently that are used for Meltdown/Spectre workarounds. Might be worth importing while these are being updated... -Nathan On 02/13/18 18:48, Justin Hibbits wrote: > Author: jhibbits > Date: Wed Feb 14 02:48:27 2018 > New Revision: 329257 > URL: https://svnweb.freebsd.org/changeset/base/329257 > > Log: > powerpc64/pseries: Define new hcalls > > Summary: > Define new hcalls as in 'Linux on Power Architecture Platform Reference' > version 1.1 (24 March 2016) downloaded from: > > https://members.openpowerfoundation.org/document/dl/469 > > Submitted by: Breno Leitao > Differential Revision: https://reviews.freebsd.org/D14281 > > Modified: > head/sys/powerpc/pseries/phyp-hvcall.h > > Modified: head/sys/powerpc/pseries/phyp-hvcall.h > ============================================================================== > --- head/sys/powerpc/pseries/phyp-hvcall.h Wed Feb 14 00:34:02 2018 (r329256) > +++ head/sys/powerpc/pseries/phyp-hvcall.h Wed Feb 14 02:48:27 2018 (r329257) > @@ -296,7 +296,25 @@ > #define H_VPM_STAT 0x2bc > #define H_SET_MPP 0x2d0 > #define H_GET_MPP 0x2d4 > -#define MAX_HCALL_OPCODE H_GET_MPP > +#define H_MO_PERF 0x2d8 > +#define H_REG_SUB_CRQ 0x2dc > +#define H_FREE_SUB_CRQ 0x2e0 > +#define H_SEND_SUB_CRQ 0x2e4 > +#define H_SEND_SUB_CRQ_IND 0x2e8 > +#define H_HOME_NODE_ASSOC 0x2ec > +/* Reserved ... */ > +#define H_BEST_ENERGY 0x2f4 > +#define H_REG_SNS 0x2f8 > +#define H_X_XIRR 0x2fc > +#define H_RANDOM 0x300 > +/* Reserved ... */ > +#define H_COP_OP 0x304 > +#define H_STOP_COP_OP 0x308 > +#define H_GET_MPP_X 0x314 > +#define H_SET_MODE 0x31C > +/* Reserved ... */ > +#define H_GET_DMA_XLATES_L 0x324 > +#define MAX_HCALL_OPCODE H_GET_DMA_XLATES_L > > int64_t phyp_hcall(uint64_t opcode, ...); > int64_t phyp_pft_hcall(uint64_t opcode, uint64_t flags, uint64_t pteidx, >