Message ID | 1568202584-14471-3-git-send-email-ray.huang@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=K6T8=XG=lists.freedesktop.org=dri-devel-bounces@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0EF9D112B for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 11 Sep 2019 11:50:15 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EB13A20872 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 11 Sep 2019 11:50:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EB13A20872 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 091366EA9B; Wed, 11 Sep 2019 11:50:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-eopbgr780071.outbound.protection.outlook.com [40.107.78.71]) by gabe.freedesktop.org (Postfix) with ESMTPS id 90BAE6EA9B; Wed, 11 Sep 2019 11:50:10 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DCljYs9hpi7Lc/9I30lDhCmBdZ4M4yIQn2NIG+GWjP0VperTgqcxFAKxmwkiXI+7uh3JTdYRNggsOjktpHjp1xrba/zqsSgc/4fHcrmGPig3X8LefczutRoAF7LcnVDhWtbrDunAbd+d+MSIWNfDhVLjgk543LZNyjFtLOynW/NIhohUpL7JQeEP/yD3H+sS7t82f0hrGA/4qiMb1obvbFKxIHxOuX3EDkRYDw+BkKgmATEacViVvZQ8RMUb9j8Yk+FheaMMiMWYo7tldZ2deUkOub9IeqECtOMl3feyB6AvHCnpNUb38WVlyeUG+QNMqSPydMfYCpAuG/pF8nZI9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ffvk3WQ09O9v9NZaptXduozW8pGuCR4nhOmuEN0sgE0=; b=K5SrpWRBI4ZOAH2QhHUO/pe543+1hVON0SPCWZyqaD/CMjN0rbPTx/OQ/JjazyEaqculJ+GiGrqQCTJAmcAMKryAgL1+02ys9r1komTy2M0uohBnxSVMhSDEnhCKU1hj39W5Cyl2U0f88v22ja5y47xRyoFx57w50GFJGYPSA+TE2F1BYD/mLhkHL6aBLly2VoOCN0kJ6zBW3kV20J/b9KjvWxPpYP1KrhRM6lwgdstloirheCNNbG4rhSkNnfGtGj412eWBuKbKsNqBsCWW75HEYE6PtjfvcjXZneWZpsHK+471FD/KZcPWek0pMX1gJYPo07QPqLFlZp2nCXYicw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none Received: from MN2PR12MB3309.namprd12.prod.outlook.com (20.179.83.157) by MN2PR12MB3421.namprd12.prod.outlook.com (20.178.243.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.17; Wed, 11 Sep 2019 11:50:09 +0000 Received: from MN2PR12MB3309.namprd12.prod.outlook.com ([fe80::e105:cd24:c71d:c38d]) by MN2PR12MB3309.namprd12.prod.outlook.com ([fe80::e105:cd24:c71d:c38d%4]) with mapi id 15.20.2241.022; Wed, 11 Sep 2019 11:50:09 +0000 From: "Huang, Ray" <Ray.Huang@amd.com> To: "amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>, "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>, "Deucher, Alexander" <Alexander.Deucher@amd.com> Subject: [PATCH 02/14] drm/amdgpu: add UAPI for creating secure contexts (v2) Thread-Topic: [PATCH 02/14] drm/amdgpu: add UAPI for creating secure contexts (v2) Thread-Index: AQHVaJcPwStaRl5VfkqOECu+8hnhdw== Date: Wed, 11 Sep 2019 11:50:08 +0000 Message-ID: <1568202584-14471-3-git-send-email-ray.huang@amd.com> References: <1568202584-14471-1-git-send-email-ray.huang@amd.com> In-Reply-To: <1568202584-14471-1-git-send-email-ray.huang@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [180.167.199.189] x-clientproxiedby: HK2PR04CA0046.apcprd04.prod.outlook.com (2603:1096:202:14::14) To MN2PR12MB3309.namprd12.prod.outlook.com (2603:10b6:208:106::29) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 39234c2f-802a-4982-1845-08d736ae31d8 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:MN2PR12MB3421; x-ms-traffictypediagnostic: MN2PR12MB3421: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: <MN2PR12MB34210BC061E9ED7B836D8550ECB10@MN2PR12MB3421.namprd12.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0157DEB61B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(396003)(39860400002)(136003)(376002)(366004)(199004)(189003)(6436002)(4326008)(25786009)(450100002)(6486002)(486006)(11346002)(446003)(2616005)(305945005)(7736002)(50226002)(8936002)(316002)(110136005)(54906003)(8676002)(6116002)(3846002)(2906002)(81166006)(81156014)(36756003)(14454004)(71190400001)(71200400001)(86362001)(66446008)(478600001)(66476007)(64756008)(66556008)(66946007)(14444005)(256004)(99286004)(53936002)(5660300002)(76176011)(52116002)(6512007)(6636002)(386003)(6506007)(66066001)(102836004)(26005)(186003)(476003)(2501003); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR12MB3421; H:MN2PR12MB3309.namprd12.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 0Q8bHScoPQEVFxkgmnLTXjiDuJB1kGlD9H626SbtcE8uNszABksjbr6ywmxgRg8QhkDrxuCdfqbdmwG0ADurBOL3OdE/vHoK1r9N0hW2XghQr8WXySklkNbeeD1BJnUztfY74fUVYuRGhBs1Uu6SNufdZ0uThJ39Bc0ViRRZk4fTvn50R6vSQ9uOrga0h6HO1SMq2B/30FEp3WZA1y5c4VfWZi+0AUp8LiQ41XnD4fvuEwNDbgmVxhABfUIU/0AiBAammSb0jlXAzvA9UsaqQYb63CYFsWoyFGt2eNhi6gNSKNvX4F5J9IOSpih/kgyotsop21dxamCPENcXlqiQxboLJd5OqqFvZYOFxlWg8h1ohDEzJpIFcXz2IhlS5641AzxFxbPoeCPwRymvMiRSV0G/+B9VdmxliMIZN567bos= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39234c2f-802a-4982-1845-08d736ae31d8 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2019 11:50:08.9396 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: K6GcS4vEX2hjB1UXXmZ5UVu8u5t4oCmfFHE9x9YYnJlSwM6bu6VjDGpRqmY6xNXDkC68oHVcnTtXXsr/G4W4rA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3421 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ffvk3WQ09O9v9NZaptXduozW8pGuCR4nhOmuEN0sgE0=; b=GsvJViAbxSL0JX72Bm7FHr4bhL4v/TjvkxMQKb0y+cfZPZXWJ4vhczlpFqPlWDvgh8E88UWErpPyHKS4A5b1+Mth+RWZTuxmyu4xvomMzhRGaKgH4h6pIHrJyStduaf0bOXZUxePwmwItP4Ts8a7pxDnAGWaqOXfqS/cjstL+C0= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Ray.Huang@amd.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: "Tuikov, Luben" <Luben.Tuikov@amd.com>, "Huang, Ray" <Ray.Huang@amd.com>, "Koenig, Christian" <Christian.Koenig@amd.com>, "Liu, Aaron" <Aaron.Liu@amd.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
drm/amdgpu: introduce secure buffer object support (trusted memory zone)
|
expand
|
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index f90b453..7aab4e1 100644 --- a/include/uapi/drm/amdgpu_drm.h +++ b/include/uapi/drm/amdgpu_drm.h @@ -207,6 +207,9 @@ union drm_amdgpu_bo_list { #define AMDGPU_CTX_OP_QUERY_STATE 3 #define AMDGPU_CTX_OP_QUERY_STATE2 4 +/* Flag the context as secure */ +#define AMDGPU_CTX_ALLOC_FLAGS_SECURE (1 << 0) + /* GPU reset status */ #define AMDGPU_CTX_NO_RESET 0 /* this the context caused it */ @@ -241,7 +244,6 @@ union drm_amdgpu_bo_list { struct drm_amdgpu_ctx_in { /** AMDGPU_CTX_OP_* */ __u32 op; - /** For future use, no flags defined so far */ __u32 flags; __u32 ctx_id; /** AMDGPU_CTX_PRIORITY_* */