Return-Path: Received: from mail-yh0-f51.google.com (mail-yh0-f51.google.com [209.85.213.51]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C4B97E01512 for ; Sat, 24 Aug 2013 10:45:04 -0700 (PDT) Received: by mail-yh0-f51.google.com with SMTP id c41so473163yho.24 for ; Sat, 24 Aug 2013 10:45:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=lfHDnU6UEPLMMtjYMojH1AJEefrvPFZRhKWNZ7AshRo=; b=x/6E1B2l22UsqRvD9C/4Vhdaob5xRFl+fj5JJ6g18qchZbLABN2iS/5ExmAdFedxgJ TjxBRduPPDTGg91sck5lSOwXpMX7bew7hKhbx3b9EizUGD4GqeIGHu3GXuSLp3iHcr6m zeiJTsGfJcMNjZ0+wCkyxGuDVIRkpVv00rJuMziBsItKZdgpALYgUBT6SkTRYm9AKBS+ kZdOR95JUuNxr9hh1qQwxoEkTYDguAxRnPrs8cgMowb55y9ASsBaMwuq9/0nJHfUolsM 5kxHwlpl27xtsIQOZFNnBZk8gs8LGNoWgBCfdVN5GzzD2Fu55lvys4mb9wtmhWJS4sum O2Gw== X-Received: by 10.236.154.197 with SMTP id h45mr5920813yhk.22.1377366303898; Sat, 24 Aug 2013 10:45:03 -0700 (PDT) Received: from nano.lab.ossystems.com.br ([187.23.155.55]) by mx.google.com with ESMTPSA id y69sm7178985yhd.27.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 Aug 2013 10:45:03 -0700 (PDT) Sender: Otavio Salvador From: Otavio Salvador To: meta-freescale Mailing List Date: Sat, 24 Aug 2013 14:44:24 -0300 Message-Id: <1377366264-31014-12-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.8.4.rc1 In-Reply-To: <1377366264-31014-1-git-send-email-otavio@ossystems.com.br> References: <1377366264-31014-1-git-send-email-otavio@ossystems.com.br> Cc: Otavio Salvador Subject: [meta-fsl-arm PATCH 11/11] libdrm: Add fix to avoid GPU freeze X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 17:45:05 -0000 Add ARM support into xf86drm.h. This provides support for Xorg interface. Without this the vivante samples will hang during close requiring a reboot Change-Id: I60ea3c87c35fadaa00c64baffd24f74f41dfbb9b Signed-off-by: Lauren Post Signed-off-by: Otavio Salvador --- .../drm/libdrm/mx6/drm-update-arm.patch | 32 ++++++++++++++++++++++ recipes-graphics/drm/libdrm_2.4.46.bbappend | 5 ++++ 2 files changed, 37 insertions(+) create mode 100644 recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch create mode 100644 recipes-graphics/drm/libdrm_2.4.46.bbappend diff --git a/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch b/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch new file mode 100644 index 0000000..bb0eac9 --- /dev/null +++ b/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch @@ -0,0 +1,32 @@ +Add ARM support into xf86drm.h. This provides support for Xorg interface. +Without this the vivante samples will hang during close requiring a reboot + +Upstream-Status: Pending + +Signed-off-by: Lauren Post + +diff --git a/xf86drm.h b/xf86drm.h +--- a/xf86drm.h ++++ b/xf86drm.h +@@ -455,6 +455,21 @@ do { register unsigned int __old __asm("o0"); \ + : "cr0", "memory"); \ + } while (0) + ++#elif defined(__arm__) ++ #undef DRM_DEV_MODE ++ #define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) ++ ++ #define DRM_CAS(lock,old,new,__ret) \ ++ do { \ ++ __asm__ __volatile__ ( \ ++ "1: ldrex %0, [%1]\n" \ ++ " teq %0, %2\n" \ ++ " strexeq %0, %3, [%1]\n" \ ++ : "=&r" (__ret) \ ++ : "r" (lock), "r" (old), "r" (new) \ ++ : "cc","memory"); \ ++ } while (0) ++ + #endif /* architecture */ + #endif /* __GNUC__ >= 2 */ + diff --git a/recipes-graphics/drm/libdrm_2.4.46.bbappend b/recipes-graphics/drm/libdrm_2.4.46.bbappend new file mode 100644 index 0000000..8c8ea6b --- /dev/null +++ b/recipes-graphics/drm/libdrm_2.4.46.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI_append_mx6 = "file://drm-update-arm.patch" + +PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}" -- 1.8.4.rc1