From owner-svn-src-head@freebsd.org Wed Feb 14 02:48:27 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 C0FE2F1A6E6; Wed, 14 Feb 2018 02:48:27 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C4C87F7E9; Wed, 14 Feb 2018 02:48:27 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6420A194F; Wed, 14 Feb 2018 02:48:27 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1E2mRvT073532; Wed, 14 Feb 2018 02:48:27 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1E2mRQ9073531; Wed, 14 Feb 2018 02:48:27 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201802140248.w1E2mRQ9073531@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Wed, 14 Feb 2018 02:48:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329257 - head/sys/powerpc/pseries X-SVN-Group: head X-SVN-Commit-Author: jhibbits X-SVN-Commit-Paths: head/sys/powerpc/pseries X-SVN-Commit-Revision: 329257 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 02:48:27 -0000 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,