Message ID | MWHPR1201MB0127C6ABDC00E5E1F5580EC1FD7D0@MWHPR1201MB0127.namprd12.prod.outlook.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D95736020A for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 16 Jan 2017 03:45:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C30D262FF for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 16 Jan 2017 03:45:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FBB1284D1; Mon, 16 Jan 2017 03:45:59 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 0C45C262FF for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 16 Jan 2017 03:45:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2ACA76E230; Mon, 16 Jan 2017 03:45:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0045.outbound.protection.outlook.com [104.47.40.45]) by gabe.freedesktop.org (Postfix) with ESMTPS id CE86F6E22F; Mon, 16 Jan 2017 03:45:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=NJTrmR1pjnTgRGd+VsCCtLy+XyRp7lNhSFtuy1Ycof4=; b=FVN0iXMMrRW7qDkpLBZKq6RV7AGArkAWwvpThNmIzwkUFvOm39lvRp5B7aPWix83pDOojMqbaidfoN6+SxXeYE3NsmwaPInAj/3BKdoz5rRWpYZQY9HHX5mcioyiHfnEqs7usjT+pSGh4a1JV59j6U587abY6Ps+e/a5i+NCUjg= Received: from MWHPR1201MB0127.namprd12.prod.outlook.com (10.174.98.142) by MWHPR1201MB0128.namprd12.prod.outlook.com (10.174.98.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Mon, 16 Jan 2017 03:30:46 +0000 Received: from MWHPR1201MB0127.namprd12.prod.outlook.com ([10.174.98.142]) by MWHPR1201MB0127.namprd12.prod.outlook.com ([10.174.98.142]) with mapi id 15.01.0845.013; Mon, 16 Jan 2017 03:30:45 +0000 From: "He, Hongbo" <Hongbo.He@amd.com> To: =?utf-8?B?Q2hyaXN0aWFuIEvDtm5pZw==?= <deathsimple@vodafone.de> Subject: RE: [PATCH 4/6] drm/amdgpu: double the priority of kernel allocations Thread-Topic: [PATCH 4/6] drm/amdgpu: double the priority of kernel allocations Thread-Index: AQHSbYKcPsPaXwljA0yj3kUMSdnrCqE6dr9g Date: Mon, 16 Jan 2017 03:30:45 +0000 Message-ID: <MWHPR1201MB0127C6ABDC00E5E1F5580EC1FD7D0@MWHPR1201MB0127.namprd12.prod.outlook.com> References: <1484301071-21703-1-git-send-email-deathsimple@vodafone.de> <1484301071-21703-5-git-send-email-deathsimple@vodafone.de> In-Reply-To: <1484301071-21703-5-git-send-email-deathsimple@vodafone.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Hongbo.He@amd.com; x-originating-ip: [116.228.147.241] x-ms-office365-filtering-correlation-id: 55a3994d-c46a-42bc-584c-08d43dc00ef3 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:MWHPR1201MB0128; x-microsoft-exchange-diagnostics: 1; MWHPR1201MB0128; 7:HFOe4tUVxoqosW6vE1Qh+wdJA6c2uR3o/6hDQRM1i+AoO/28/RqYriryzyAaeK6+YUUg2r8NDpz41zC+PCmSOaW6RzLLfRKeNMXABGRHiuGsLBcF+T0pbNvdA9iaswhO4W9BCfy1Ik5psC1FPcC33cdIVctT1RuoMdqjr7sFgQWM9otH4DANd2fgo1bmavfcHVmOiLeNCdaNo6L5EOlVoRyRrJMYoMwgXe9KgIFA/G8B614oJxeM3CmxAB3wOHR06PxW4iquxypfCMLTzy7+0FEeVwRJM59X5lpRvLVFClAwCHnN2zh1bUqHlFo4YBy8rp+q8e7SfHlWRwDzcQi7B1b3XpkD1d22XbOuW+pr/scVAgCn+mHgMrTQBDZHt1rmN9qpojewXcSHb70XEsxKTgInLWkjlF6vyH1KLRHML05AdztxKIQtgvhSUhiQCTpBnGvb9+5BZIS+p6iNpS5NEw==; 20:PlJai64tHSWvs8UZxlnRWfEaR0NOQphxh5uG4YMZ1nEJrmYtJBpN8Zi+IpYUPRhlxakEHXShr7oMXibAtLj+bwe/K8VOwgmzaTpctkxPsaqC7OsUOd2+BCEWO/QBStf4/pKEibsHsjE7hGX7Hx4Rs2v6qtcfQfZcN1LngDMkU7TT+CfgyqE9IUTLa5Kf6M0DOCze/MtqS8gnSyqOyqHw9Oy+o4h9BhH/pSHyCFPqgnLN7PKGUcDDQSKaEVdfzBVT x-microsoft-antispam-prvs: <MWHPR1201MB01287D8AC4656F8E392021F8FD7D0@MWHPR1201MB0128.namprd12.prod.outlook.com> x-exchange-antispam-report-test: UriScan:(767451399110)(217544274631240); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148)(6042181); SRVR:MWHPR1201MB0128; BCL:0; PCL:0; RULEID:; SRVR:MWHPR1201MB0128; x-forefront-prvs: 01894AD3B8 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(199003)(189002)(377454003)(13464003)(77096006)(6506006)(3280700002)(6116002)(110136003)(66066001)(38730400001)(189998001)(105586002)(106356001)(106116001)(102836003)(3846002)(7696004)(9686003)(6436002)(50986999)(25786008)(2906002)(54356999)(76176999)(122556002)(229853002)(4326007)(97736004)(3660700001)(99286003)(305945005)(7736002)(54906002)(2900100001)(68736007)(5660300001)(55016002)(86362001)(101416001)(81166006)(81156014)(92566002)(74316002)(27001)(8936002)(33656002)(2950100002)(6916009)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR1201MB0128; H:MWHPR1201MB0127.namprd12.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2017 03:30:45.8495 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0128 Cc: "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>, "amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 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> 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> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index f399d98..2de1dda 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -387,6 +387,8 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev, return r; bo->tbo.priority = ilog2(bo->tbo.num_pages); + if (kernel) + bo->tbo.priority *= 2; bo->tbo.priority = min(bo->tbo.priority, TTM_MAX_BO_PRIORITY - 1); if (flags & AMDGPU_GEM_CREATE_VRAM_CLEARED &&