From patchwork Fri Dec 4 21:09:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 7771781 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C05A8BEEE1 for ; Fri, 4 Dec 2015 21:09:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F2CA620619 for ; Fri, 4 Dec 2015 21:09:48 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2EAF72045B for ; Fri, 4 Dec 2015 21:09:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AC7296E390; Fri, 4 Dec 2015 13:09:46 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1CAB76E390 for ; Fri, 4 Dec 2015 13:09:45 -0800 (PST) Received: by wmec201 with SMTP id c201so81136284wme.1 for ; Fri, 04 Dec 2015 13:09:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=IskfAp44FXYgvfZ1Vtu8dpBjZXRhsNYGhVLaq28eYVQ=; b=vmAGhP+f0q/yv5Qd4UBr4oUTUzszjh16mWyFKuGfiHGoLi13wxy/foiHQyWSqLwfRR JvoKHFuBQzSPNfskoP1IdZxKlVWSnTOY4s30/mITQKiZGejOMVBYSD/Ye2I3iMVJmH8a I+e+frsNrW93lVg443mpQn58644dT2sSlNNJOHyS4v+JYs4+zZmn/wAmz2AE0EflJOfT zg1TzrA9vUnXZdUhcB4/J2aqveLLJ6aI8fSN0ie38N+TV2YZytaxgwxi/781G8OYm53M 0bggU0pqSI+59P0WmAUIsOb9TPTFgBBmhxbak/RfV6K343NstbrxKfyFe1okhmyzbqtJ PM8w== X-Received: by 10.195.11.129 with SMTP id ei1mr22628123wjd.80.1449263383411; Fri, 04 Dec 2015 13:09:43 -0800 (PST) Received: from odedg-tlv.redhat.com (IGLD-84-228-41-95.inter.net.il. [84.228.41.95]) by smtp.gmail.com with ESMTPSA id q74sm9173483wmd.0.2015.12.04.13.09.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Dec 2015 13:09:42 -0800 (PST) From: Oded Gabbay To: dri-devel@lists.freedesktop.org, alexdeucher@gmail.com Subject: [PATCH 1/3] radeon/cik: Fix GFX IB test on Big-Endian Date: Fri, 4 Dec 2015 23:09:03 +0200 Message-Id: <1449263345-4938-1-git-send-email-oded.gabbay@gmail.com> X-Mailer: git-send-email 2.5.0 Cc: stable@vger.kernel.org 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 This patch makes the IB test on the GFX ring pass for CI-based cards installed in Big-Endian machines. Signed-off-by: Oded Gabbay Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/cik.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index 248953d..05d43a0 100644 --- a/drivers/gpu/drm/radeon/cik.c +++ b/drivers/gpu/drm/radeon/cik.c @@ -4173,11 +4173,7 @@ void cik_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib) control |= ib->length_dw | (vm_id << 24); radeon_ring_write(ring, header); - radeon_ring_write(ring, -#ifdef __BIG_ENDIAN - (2 << 0) | -#endif - (ib->gpu_addr & 0xFFFFFFFC)); + radeon_ring_write(ring, (ib->gpu_addr & 0xFFFFFFFC)); radeon_ring_write(ring, upper_32_bits(ib->gpu_addr) & 0xFFFF); radeon_ring_write(ring, control); }