Message ID | 1469715195-7174-1-git-send-email-leo.liu@amd.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 2C9B46075F for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 28 Jul 2016 14:29:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DF1B27165 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 28 Jul 2016 14:29:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12D942793D; Thu, 28 Jul 2016 14:29:40 +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=-3.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35EDA27165 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 28 Jul 2016 14:29:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EB04F6E00C; Thu, 28 Jul 2016 14:29:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0046.outbound.protection.outlook.com [104.47.36.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id E1DF06E00C; Thu, 28 Jul 2016 14:29:28 +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=M7k10zlYHNAN3NVCBxtlB0uqqRrpiDO2o1siZXIXMB8=; b=ojCn16rqaWYy3TYiVxMM0w4X219oGN9qg9+D5EopaOrXDeRmfQ5OANdB7gLDgbDU8XNZwNJz7DaRRHXEK3RqIIhZi6Wd+QZYuWD0WsCBov2EOo3iwM0QvlmrnHblRPhJ0OxZaZEHR1iXzwDoWDZ3eUVdElLK6arbNdQ/1CfcZyI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Leo.Liu@amd.com; Received: from ubuntu-desktop.amd.com (165.204.55.251) by CY4PR12MB1398.namprd12.prod.outlook.com (10.168.169.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Thu, 28 Jul 2016 14:14:02 +0000 From: Leo Liu <leo.liu@amd.com> To: <amd-gfx@lists.freedesktop.org> Subject: [PATCH 1/2] drm/amdgpu: fix default UVD context size Date: Thu, 28 Jul 2016 10:13:14 -0400 Message-ID: <1469715195-7174-1-git-send-email-leo.liu@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [165.204.55.251] X-ClientProxiedBy: SN1PR16CA0051.namprd16.prod.outlook.com (10.163.13.19) To CY4PR12MB1398.namprd12.prod.outlook.com (10.168.169.19) X-MS-Office365-Filtering-Correlation-Id: e0c54e03-e7fb-477f-9f01-08d3b6f16db3 X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1398; 2:uEgkl+5NtCEyWlGUMg1OyaLETEnCN35noDbr2qVAUEr0U0sG642M9QZD5LdhokrLd80VNrmLNHE+0IZT7lPU8agTOZSKbtzqQ1yq+X4qaldIWMsBOzyDP5nFgwyiCwGRY0ip4XZunLmInCjuXSMUe8XCsQm/Bs2on8BHeeNRVDU+QBDICwqVfo+Wtd8YGah3; 3:o7WMMq/d/fPV1d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MB1398B4214F6057AE0EF7AEB2E5000@CY4PR12MB1398.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:CY4PR12MB1398; BCL:0; PCL:0; RULEID:; SRVR:CY4PR12MB1398; X-Forefront-PRVS: 00179089FD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(189002)(199003)(47776003)(66066001)(6116002)(189998001)(3846002)(23676002)(2906002)(92566002)(86362001)(53416004)(97736004)(2870700001)(8676002)(110136002)(450100001)(7846002)(305945005)(586003)(68736007)(229853001)(42186005)(77096005)(7736002)(81166006)(50226002)(81156014)(19580405001)(33646002)(101416001)(4326007)(50466002)(19580395003)(36756003)(2351001)(5820100001)(105586002)(50986999)(106356001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1398; H:ubuntu-desktop.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxMzk4OzIzOjNyalpDdHFWR3pKQWRJQlNiWWhLV1ZsbjJt?= =?utf-8?B?aHdHdVJUVWp0MjZJS0FjODl3K3dzN1JveFJwYTYzZXhRalhsaFZWYmJYdTVE?= =?utf-8?B?cFZBd0RPZG5KSGZkd1hQclFoWUdUOU5ydXc3eGxuRGljQnRsNmpnSStkdmJ0?= =?utf-8?B?d3hSNUJHdExlRkNaZEVvekgzWVBEV3JZYVplRjVxSVJuV2prZG90OW1kYmc2?= =?utf-8?B?ZE1iUU5QUGpXS2xDTTU1UDZnczV0QUNSY25aV2FjRi82YVFrVm1hTTNCWUMv?= =?utf-8?B?SmoxRHZMZEE5ZEV5cVAwVlhqdTM1M3lkYXYrak5rUDR3K2ZOYXR3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v/se+5wDi5Mws1BcAUC0A+jWddhp5mqMmO6BIZsy0eVSOJIK/Ikcm7Bu0YMSc3ONmQuQ5cXIwYH51vepsJMy8B4Tozc0k4NjcjgKLVW8UIxu0QkgtUBr+vpvtqDA0WFpmyq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1398; 20:u8QelwZOFQg3nxoF381LOlinSTvA5dq2EzVGYmP9LatnZuG89ltq/49zBuow+G8O6xCMlyNFS/3U+3nlU4eaWAi3CxFMFPFjA+BLeWykZzfFq1WYIlEEn476Iv/ibJ9F22Q9Fy7gaW2428W7HjYAo0nXbUi8AiPIQRp2koQZPoMLUNRh8do0Flo/e/zr4Bp5EecJobAtfMXjTuhETZ82SxicHnq8l8j4VJM0RZdZNj0BTwiHykTwz+6N1MFDbvCo X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2016 14:14:02.9250 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1398 Cc: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>, dri-devel@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_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index b39238a..28c1b62 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c @@ -410,7 +410,7 @@ static int amdgpu_uvd_cs_msg_decode(struct amdgpu_device *adev, uint32_t *msg, unsigned fs_in_mb = width_in_mb * height_in_mb; unsigned image_size, tmp, min_dpb_size, num_dpb_buffer; - unsigned min_ctx_size = 0; + unsigned min_ctx_size = ~0; image_size = width * height; image_size += image_size / 2;