From patchwork Fri May 13 16:48:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 9092561 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7DC789F1C1 for ; Fri, 13 May 2016 16:48:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ADF6E2025A for ; Fri, 13 May 2016 16:48:55 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E623F2022D for ; Fri, 13 May 2016 16:48:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A67F16EAD1; Fri, 13 May 2016 16:48:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-io0-x243.google.com (mail-io0-x243.google.com [IPv6:2607:f8b0:4001:c06::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id C1ACF6EAD1 for ; Fri, 13 May 2016 16:48:42 +0000 (UTC) Received: by mail-io0-x243.google.com with SMTP id i75so4447005ioa.2 for ; Fri, 13 May 2016 09:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YD1/Y/kbjGSV/ylIxh9m+pgkaTlTlsQ76TelXv8bm0s=; b=g0SpMcHYI3FK9+YHHze2IRqqfuluDOP/cZRDPZcA/p6ySkfxQNIogWoTX49qQbgOgZ RZbfm3nZNoM7786bUlCCW9x0PYO80yXko3tyJPGyc45x4X7EaxtO/Od8KEsiSCVZ0hLg vzWh/NO4SX7XvQ3eVInnmEd7jCZgkTeO6sQqfF1tdTj+Pi6fzy+9zuJoVOYsKgPrOJ+R Q8yro288RoqpypbMZUcEiIjjNz88VM9422Mqz3NLjBZ9VX35cZk+6Gdja0i9yMmtzUtG NTs/9zSkVBcyXbxDOwtOeLamjCUT/QYmUdbn1oRYeuZYdGZr6ubAYXyUGPLnGtYAvCET DQyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YD1/Y/kbjGSV/ylIxh9m+pgkaTlTlsQ76TelXv8bm0s=; b=QFbESPVz+3bP8A/1aXzl2wqRQrLjekKQ2sFavxczp0zNESGBETukcYWpRvbWSMv8FX yFdWLhxW0xxGElU1BJuzYRY2grgf7uwyvCiM5Ofs8sY2XGO9SLiknJcgLKoSK8HHlovD pgHNcAyNanUzgWJTtfohI0iO3DyFjZ1BgmN2ji6ACPFOlcdqwM0rvP8kXixkWjN9PxHW fG7TV/KOUaiY9TP+4RC9rsoSikJtpb1qdpeyBFuCgPiETzHT/akVamzxLx5juwaYk27i ucsXga3osXh5fXgrLUMACXjon7jQLEf5Eql994hr1Igmss/wCdmGdd0tyUb5wwVZl5Ou c63g== X-Gm-Message-State: AOPr4FXWghvUbL9XBQTzz6HdbNzby5bAfPh7Z8kdZIMHiv8wsBvqrWAWGbMs704SDHlkmA== X-Received: by 10.36.26.134 with SMTP id 128mr1447590iti.28.1463158121885; Fri, 13 May 2016 09:48:41 -0700 (PDT) Received: from cm.amd.com ([165.204.55.251]) by smtp.gmail.com with ESMTPSA id d1sm1204903igv.5.2016.05.13.09.48.40 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 May 2016 09:48:41 -0700 (PDT) From: Alex Deucher X-Google-Original-From: Alex Deucher To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/4] tests/amdgpu: add interface to adapt firmware requirement Date: Fri, 13 May 2016 12:48:31 -0400 Message-Id: <1463158112-28625-3-git-send-email-alexander.deucher@amd.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1463158112-28625-1-git-send-email-alexander.deucher@amd.com> References: <1463158112-28625-1-git-send-email-alexander.deucher@amd.com> MIME-Version: 1.0 Cc: Alex Deucher , Leo Liu X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Leo Liu Signed-off-by: Leo Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher --- tests/amdgpu/cs_tests.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c index dfbf5af..c6930c0 100644 --- a/tests/amdgpu/cs_tests.c +++ b/tests/amdgpu/cs_tests.c @@ -266,9 +266,12 @@ static void amdgpu_cs_uvd_decode(void) r = amdgpu_bo_cpu_map(buf_handle, (void **)&ptr); CU_ASSERT_EQUAL(r, 0); - memcpy(ptr, uvd_decode_msg, sizeof(uvd_decode_msg)); - if (family_id >= AMDGPU_FAMILY_VI) + memcpy(ptr, uvd_decode_msg, sizeof(uvd_create_msg)); + if (family_id >= AMDGPU_FAMILY_VI) { ptr[0x10] = 7; + ptr[0x98] = 0xb0; + ptr[0x99] = 0x1; + } ptr += 4*1024; memset(ptr, 0, 4*1024);