Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532926 - kernel 3.18 - no GPU acceleration on Intel i965
Summary: kernel 3.18 - no GPU acceleration on Intel i965
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: 3.18.2
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-12-18 11:56 UTC by Marcin Sochoń (soki)
Modified: 2015-01-14 13:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
0001-drm-i915-Disallow-pin-ioctl-completely-for-kms-drive (0001-drm-i915-Disallow-pin-ioctl-completely-for-kms-drive.patch,2.66 KB, patch)
2014-12-18 11:57 UTC, Marcin Sochoń (soki)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Sochoń (soki) 2014-12-18 11:56:14 UTC
After upgrade my kernel to 3.18 series i have no gpu acceleration on laptop with Intel HD Graphics. With 3.17 everything works perfect but with 3.18 with same setting and kernel config gpu acceleration does not work.

In Xorg logs ia found this line:
(EE) intel(0): Failed to submit rendering commands, disabling acceleration.

After some search i found patch from: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d472fcc8379c062bd56a3876fc6ef22258f14a91
and it works with 3.18.0 and 3.18.1 gentoo sources. 

With this patch everything works fine.

Reproducible: Always
Comment 1 Marcin Sochoń (soki) 2014-12-18 11:57:02 UTC
Created attachment 391918 [details, diff]
0001-drm-i915-Disallow-pin-ioctl-completely-for-kms-drive
Comment 2 Mike Pagano gentoo-dev 2015-01-04 16:46:25 UTC
This patch applied to 3.18 ?
Comment 3 Marcin Sochoń (soki) 2015-01-04 17:48:34 UTC
Yes, I've put it to /etc/portage/patches/sys-kernel/gentoo-sources-3.18.0/ and I've created symlink to 3.18.1
Comment 4 Mike Pagano gentoo-dev 2015-01-04 18:21:30 UTC
Maybe I'm losing it today:

patching file drivers/gpu/drm/i915/i915_gem.c
Hunk #1 FAILED at 4263.
Hunk #2 FAILED at 4319.
2 out of 2 hunks FAILED -- saving rejects to file drivers/gpu/drm/i915/i915_gem.c.rej
patching file drivers/gpu/drm/i915/i915_gem.c
Hunk #1 FAILED at 4263.
Hunk #2 FAILED at 4319.
2 out of 2 hunks FAILED -- saving rejects to file drivers/gpu/drm/i915/i915_gem.c.rej
patching file drivers/gpu/drm/i915/i915_gem.c
Hunk #1 FAILED at 4263.
Hunk #2 FAILED at 4319.
2 out of 2 hunks FAILED -- saving rejects to file drivers/gpu/drm/i915/i915_gem.c.rej
patching file drivers/gpu/drm/i915/i915_gem.c
Hunk #1 FAILED at 4263.
Hunk #2 FAILED at 4319.
2 out of 2 hunks FAILED -- saving rejects to file drivers/gpu/drm/i915/i915_gem.c.rej
Comment 5 Marcin Sochoń (soki) 2015-01-04 18:42:51 UTC
Here is my output from emerge -av "=gentoo-sources-3.18.0":

 * genpatches-3.18-2.extras.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                      [ ok ]
>>> Preparing to unpack ...
>>> Unpacking source...
>>> Unpacking linux-3.18.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-3.18.0/work
>>> Unpacking genpatches-3.18-2.base.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-3.18.0/work/patches
>>> Unpacking genpatches-3.18-2.extras.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-3.18.0/work/patches
 * Applying 1500_XATTR_USER_PREFIX.patch (-p1) ...                                           [ ok ]
 * Applying 2700_ThinkPad-30-brightness-control-fix.patch (-p1) ...                          [ ok ]
 * Applying 2900_dev-root-proc-mount-fix.patch (-p1) ...                                     [ ok ]
 * Applying 2905_2disk-resume-image-fix.patch (-p1) ...                                      [ ok ]
 * Applying 4200_fbcondecor-3.16.patch (-p1) ...                                             [ ok ]
 * Applying 4567_distro-Gentoo-Kconfig.patch (-p1) ...                                       [ ok ]
 * Applying user patches from /etc/portage/patches/sys-kernel/gentoo-sources-3.18.0 ...
 *   0001-drm-i915-Disallow-pin-ioctl-completely-for-kms-drive.patch ...                     [ ok ]
 * Done with patching
>>> Source unpacked in /var/tmp/portage/sys-kernel/gentoo-sources-3.18.0/work
>>> Preparing source in /var/tmp/portage/sys-kernel/gentoo-sources-3.18.0/work/linux-3.18.0-gentoo ...
>>> Source prepared.


Line: *   0001-drm-i915-Disallow-pin-ioctl-completely-for-kms-drive.patch [ ok ]

Patch was applied.
Comment 6 Mike Pagano gentoo-dev 2015-01-04 18:54:23 UTC
Ok, it seems you only took one piece of that commit. I was using the entire commit.
Comment 7 Mike Pagano gentoo-dev 2015-01-04 18:55:34 UTC
please ignore, I was looking at the wrong thing
Comment 8 Mike Pagano gentoo-dev 2015-01-04 19:04:30 UTC
Committed for next release.
Comment 9 Mike Pagano gentoo-dev 2015-01-14 13:38:20 UTC
Released in 3.18.2