From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id AB461138A1A for ; Sun, 4 Jan 2015 19:04:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 32F68E0850; Sun, 4 Jan 2015 19:04:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9AC9AE0850 for ; Sun, 4 Jan 2015 19:04:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 84A003405C3 for ; Sun, 4 Jan 2015 19:04:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 32E14EDD2 for ; Sun, 4 Jan 2015 19:03:59 +0000 (UTC) From: "Mike Pagano" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" Message-ID: <1420398228.18a149bb135ad1bc6d336cdabfbd819e2cb7436f.mpagano@gentoo> Subject: [gentoo-commits] proj/linux-patches:3.18 commit in: / X-VCS-Repository: proj/linux-patches X-VCS-Files: 0000_README 2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch X-VCS-Directories: / X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: 18a149bb135ad1bc6d336cdabfbd819e2cb7436f X-VCS-Branch: 3.18 Date: Sun, 4 Jan 2015 19:03:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8999d051-1ed0-43ba-ae73-d3bfcabe504f X-Archives-Hash: 6c4cce300c6d84a5bffdd14e2639734c commit: 18a149bb135ad1bc6d336cdabfbd819e2cb7436f Author: Mike Pagano gentoo org> AuthorDate: Sun Jan 4 19:03:48 2015 +0000 Commit: Mike Pagano gentoo org> CommitDate: Sun Jan 4 19:03:48 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=18a149bb drm/i915: Patch to disallow pin ioctl completely for kms drivers. See bug #532926 --- 0000_README | 16 +++-- ...15-drm-disallow-pin-ioctl-for-kms-drivers.patch | 76 ++++++++++++++++++++++ 2 files changed, 86 insertions(+), 6 deletions(-) diff --git a/0000_README b/0000_README index f79b1b4..62aec14 100644 --- a/0000_README +++ b/0000_README @@ -63,6 +63,10 @@ Patch: 2905_s2disk-resume-image-fix.patch From: Al Viro ZenIV.linux.org.uk> Desc: Do not lock when UMH is waiting on current thread spawned by linuxrc. (bug #481344) +Patch: 2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch +From: http://www.kernel.org +Desc: drm/i915: Patch to disallow pin ioctl completely for kms drivers. See bug #532926 + Patch: 4200_fbcondecor-3.16.patch From: http://www.mepiscommunity.org/fbcondecor Desc: Bootsplash ported by Uladzimir Bely (bug #513334) @@ -75,14 +79,14 @@ Patch: 5000_enable-additional-cpu-optimizations-for-gcc.patch From: https://github.com/graysky2/kernel_gcc_patch/ Desc: Kernel patch enables gcc optimizations for additional CPUs. -Patch: 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r6-3.18.patch +Patch: 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-3.18.patch From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r6 patch 1 for 3.17: Build, cgroups and kconfig bits +Desc: BFQ v7r7 patch 1 for 3.17: Build, cgroups and kconfig bits -Patch: 5002_block-introduce-the-BFQ-v7r6-I-O-sched-for-3.18.patch1 +Patch: 5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-3.18.patch1 From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r6 patch 2 for 3.17: BFQ Scheduler +Desc: BFQ v7r7 patch 2 for 3.17: BFQ Scheduler -Patch: 5003_block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r6-for-3.18.0.patch +Patch: 5003_block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r7-for-3.18.0.patch From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r6 patch 3 for 3.17: Early Queue Merge (EQM) +Desc: BFQ v7r7 patch 3 for 3.17: Early Queue Merge (EQM) diff --git a/2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch b/2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch new file mode 100644 index 0000000..f298aa4 --- /dev/null +++ b/2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch @@ -0,0 +1,76 @@ +From d472fcc8379c062bd56a3876fc6ef22258f14a91 Mon Sep 17 00:00:00 2001 +From: Daniel Vetter +Date: Mon, 24 Nov 2014 11:12:42 +0100 +Subject: drm/i915: Disallow pin ioctl completely for kms drivers + +The problem here is that SNA pins batchbuffers to etch out a bit more +performance. Iirc it started out as a w/a for i830M (which we've +implemented in the kernel since a long time already). The problem is +that the pin ioctl wasn't added in + +commit d23db88c3ab233daed18709e3a24d6c95344117f +Author: Chris Wilson +Date: Fri May 23 08:48:08 2014 +0200 + + drm/i915: Prevent negative relocation deltas from wrapping + +Fix this by simply disallowing pinning from userspace so that the +kernel is in full control of batch placement again. Especially since +distros are moving towards running X as non-root, so most users won't +even be able to see any benefits. + +UMS support is dead now, but we need this minimal patch for +backporting. Follow-up patch will remove the pin ioctl code +completely. + +Note to backporters: You must have both + +commit b45305fce5bb1abec263fcff9d81ebecd6306ede +Author: Daniel Vetter +Date: Mon Dec 17 16:21:27 2012 +0100 + + drm/i915: Implement workaround for broken CS tlb on i830/845 + +which laned in 3.8 and + +commit c4d69da167fa967749aeb70bc0e94a457e5d00c1 +Author: Chris Wilson +Date: Mon Sep 8 14:25:41 2014 +0100 + + drm/i915: Evict CS TLBs between batches + +which is also marked cc: stable. Otherwise this could introduce a +regression by disabling the userspace w/a without the kernel w/a being +fully functional on i830/45. + +References: https://bugs.freedesktop.org/show_bug.cgi?id=76554#c116 +Cc: stable@vger.kernel.org # requires c4d69da167fa967749a and v3.8 +Cc: Chris Wilson +Signed-off-by: Daniel Vetter + +diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c +index fd17cca..97b86a5 100644 +--- a/drivers/gpu/drm/i915/i915_gem.c ++++ b/drivers/gpu/drm/i915/i915_gem.c +@@ -4263,7 +4263,7 @@ i915_gem_pin_ioctl(struct drm_device *dev, void *data, + struct drm_i915_gem_object *obj; + int ret; + +- if (INTEL_INFO(dev)->gen >= 6) ++ if (drm_core_check_feature(dev, DRIVER_MODESET)) + return -ENODEV; + + ret = i915_mutex_lock_interruptible(dev); +@@ -4319,6 +4319,9 @@ i915_gem_unpin_ioctl(struct drm_device *dev, void *data, + struct drm_i915_gem_object *obj; + int ret; + ++ if (drm_core_check_feature(dev, DRIVER_MODESET)) ++ return -ENODEV; ++ + ret = i915_mutex_lock_interruptible(dev); + if (ret) + return ret; +-- +cgit v0.10.2 +