From patchwork Thu Sep 27 19:05:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Grodzovsky X-Patchwork-Id: 10618473 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3E9E8175A for ; Thu, 27 Sep 2018 19:05:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C57C2BA62 for ; Thu, 27 Sep 2018 19:05:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00B802BA78; Thu, 27 Sep 2018 19:05:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C96802BA62 for ; Thu, 27 Sep 2018 19:05:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 251A46E14E; Thu, 27 Sep 2018 19:05:24 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0063.outbound.protection.outlook.com [104.47.32.63]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7D0A76E08F; Thu, 27 Sep 2018 19:05:22 +0000 (UTC) Received: from DM3PR12CA0085.namprd12.prod.outlook.com (2603:10b6:0:57::29) by BN4PR12MB0739.namprd12.prod.outlook.com (2a01:111:e400:59bc::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Thu, 27 Sep 2018 19:05:20 +0000 Received: from CO1NAM03FT038.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::202) by DM3PR12CA0085.outlook.office365.com (2603:10b6:0:57::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1164.22 via Frontend Transport; Thu, 27 Sep 2018 19:05:20 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by CO1NAM03FT038.mail.protection.outlook.com (10.152.81.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.1185.13 via Frontend Transport; Thu, 27 Sep 2018 19:05:19 +0000 Received: from ubuntu-1604-test.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.389.1; Thu, 27 Sep 2018 14:05:18 -0500 From: Andrey Grodzovsky To: Subject: [PATCH libdrm 1/3] amdgpu: Propogate user flags to amdgpu_bo_va_op_raw Date: Thu, 27 Sep 2018 15:05:07 -0400 Message-ID: <1538075109-3759-1-git-send-email-andrey.grodzovsky@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(39860400002)(136003)(396003)(376002)(2980300002)(428003)(199004)(189003)(97736004)(336012)(426003)(26005)(2906002)(48376002)(77096007)(50466002)(47776003)(16586007)(316002)(2351001)(106466001)(478600001)(186003)(105586002)(305945005)(54906003)(356003)(53416004)(72206003)(5660300001)(51416003)(7696005)(36756003)(8676002)(486006)(6666003)(6916009)(104016004)(81156014)(34290500001)(68736007)(81166006)(476003)(575784001)(86362001)(126002)(8936002)(50226002)(2616005)(4326008)(44832011)(450100002)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN4PR12MB0739; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT038; 1:0rRZKc51D/OD2HA7YS8caoBYf5hI8Rrpv18UmjXD4oJyQNVvba6My8anyY7DhbdJSO+y6rqW3cXh0p1LX1+/KuuGUSAQxd2UKBExnULx2n5y2ajzVVc1RkLHDLEFA3yg X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8a8b2a6d-877b-4870-99ed-08d624ac2b45 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060); SRVR:BN4PR12MB0739; X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0739; 3:3jv9Z0AxmE2a4kPeg09hxqbH5iQxfuA0COfaD18io6G6SWgrcG25wIyZgzPoadkVhYZMCNujxnVo0qiBnMW6Ck+lcio/aR2Bx92M8CWuOaW6KyaFr7N62IPU5T77kJEVdAIkkqYeIw8D591qbbssNWlO4/5zRVMaoZg8bn87064FsQJR5+Kpg5iSaDfDsLN02hM3uyw6S+wsfMh4ZLam/JtpdJ4KwUDPUyZ27UB+6hFkXDrIrpDLUf62jlXxXX5jGiepaj30V3B9QYmfnJBoPTWbZISD8y39vm58JsbNVg6K1U+/tCJ5d68wF56V3G46UNYm+p2q/fjKw3AJ/N4jQ6cmtGDOWR758pL2e8LAJoI=; 25:1Wt2IEGI6BkadU+mePY9/qXniA39mKtWDxkvut9dtir+11VRPwkNe9R/+A0kXDqEOn2MIfYI/wDUYzPTQ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VnFthFIg3lQ0Sp/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93003095)(3002001)(10201501046)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:BN4PR12MB0739; BCL:0; PCL:0; RULEID:; SRVR:BN4PR12MB0739; X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0739; 4:DT0cl5IrIQII+tPVr+w1oc40hT+IjTq748ZpwMdsacXnKQwuaEUfXXi2kvzHj6tscQNPGHHEgPdunFXubhtSlhibt8tj1phtgK2r5ONsta1pwDzDjUBbmn5+5X8CgH+56NbUTYw9A6ga1kuf0U9sge0ePa0+BErAjQj1TEkcZWG2lLKOyp3xr5dSDJMvszebGFhkkZasAPAMZTfj6oYOa2GojQyM+eUUQUI2M2qbIRhs1K9ZzzdA2YCC/Y7lKyGxp1DcAjv6pQh4/L5aycfkZ0wm5E9d+xvLYfxRNsSthdyPiWhC5uRPphwbu5MObd1U X-Forefront-PRVS: 0808323E97 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN4PR12MB0739; 23:A3DxjJahjjXrAOkHUmoX/CH6awhiRljIdjxmsPgCg?= z7mp1yUdZmaQOTVJj0rqRajpCo87pSencqZWmDWrSomqv4hzoSuhhnJqQOD2Jmzi2FjZnMEit0ZY7Fj6NI5m0CLkbXEpg66v4yeF14S6arKCAuQhPhfkpJCqhCLj6vp6ViTdnKYENkBYGOWr+IPTXlQMKXIu+yE8fbpQ3uCLYPTE6jQXUjKBiyzUgAE0+gz78Q/TkvSu7dmHsNDHIlg6vg2uACWuQa3QTbfaD5x7tz7Xz0hP6t6GcQpvcxkuLHY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uQjATUsJPwB7uw4UJ9iDvAirQbu/+IePRZ2fTVPjtY+2/kBhFMXya23eYbtAficEmdjk/HDpOlzrEHzs7kYlAm2yeVGAE82oGPuj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0739; 20:1dFu1a8yNSZ7Au3HHaZUZ7aEl4sAep2CcuC/F5zfUlbl7N3e8sONBPvRFZp0yxDEhwtb804xWVpNmif5lO7mYiDmb+eZlsI4+h6ZLiizAT+uKXWcGpBhcYfGIMIR7BSJ1fl3zE1pVRzX5ZeLsU1UNFkUULKO2X9HgrUKDvWvzDI+CSsU/ql/8CY405r85oQ4H2ndYU9q8+nuSJjyKLOA1h0/VEhI9Uc27tUjQS3CPT3xhe5QRe0F9kBxe0ohuxcp X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2018 19:05:19.6429 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8a8b2a6d-877b-4870-99ed-08d624ac2b45 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN4PR12MB0739 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek.Olsak@amd.com, amd-gfx@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Andrey Grodzovsky --- amdgpu/amdgpu_bo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c index c0f42e8..1892345 100644 --- a/amdgpu/amdgpu_bo.c +++ b/amdgpu/amdgpu_bo.c @@ -736,7 +736,7 @@ drm_public int amdgpu_bo_va_op(amdgpu_bo_handle bo, uint64_t offset, uint64_t size, uint64_t addr, - uint64_t flags, + uint64_t extra_flags, uint32_t ops) { amdgpu_device_handle dev = bo->dev; @@ -746,7 +746,8 @@ drm_public int amdgpu_bo_va_op(amdgpu_bo_handle bo, return amdgpu_bo_va_op_raw(dev, bo, offset, size, addr, AMDGPU_VM_PAGE_READABLE | AMDGPU_VM_PAGE_WRITEABLE | - AMDGPU_VM_PAGE_EXECUTABLE, ops); + AMDGPU_VM_PAGE_EXECUTABLE | + extra_flags, ops); } drm_public int amdgpu_bo_va_op_raw(amdgpu_device_handle dev,