LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-20-2011, 09:17 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
apply a driver patch


hi

Can someone pls explain step by step howto apply this driver patch:
Code:
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index f1fcc97..0dcf761 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3530,6 +3530,9 @@ i915_dispatch_gem_execbuffer(struct drm_device *dev,
        if (exec->flags & I915_GEM_NO_DISPATCH)
                return 0;

+       msleep(10);

Last edited by cccc; 05-22-2011 at 04:59 PM.
 
Old 05-20-2011, 09:23 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

If you are in the directory where you have those subdirectories then normally you would run:
Code:
patch <patchfile
but I've never done it in combination with git, so you might prefer to ask for someone with more experience on the matter.

Kind regards,

Eric
 
Old 05-22-2011, 07:06 AM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
I've tried the following:
Code:
# tar xjf linux-source-2.6.32.tar.bz2
# cd linux-source-2.6.32
# cp /boot/config-$(uname -r) ./.config
# cd drivers/gpu/drm/i915
# vi i915.patch
# patch -p1 i915.patch
but the last command is still active and nothing happens.
What's wrong?
 
Old 05-22-2011, 07:59 AM   #4
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675
Blog Entries: 11

Rep: Reputation: 36
Quote:
Originally Posted by cccc View Post
I've tried the following:
Code:
# tar xjf linux-source-2.6.32.tar.bz2
# cd linux-source-2.6.32
# cp /boot/config-$(uname -r) ./.config
# cd drivers/gpu/drm/i915
# vi i915.patch
# patch -p1 i915.patch
but the last command is still active and nothing happens.
What's wrong?
maybe something like this:

Code:
# patch -p1 < i915.patch
see if that works. I could be wrong.

EDIT: this is something like what Eric says above.
 
Old 05-22-2011, 01:04 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Thx,
Code:
 
# patch -p1 < i915.patch           patching file drivers/gpu/drm/i915/i915_gem.c
patch: **** unexpected end of file in patch
#
seems to work now.

Last edited by cccc; 05-22-2011 at 05:00 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ho Do I Apply The CK Patch? AFI_Flame Linux - Software 1 11-14-2004 10:49 PM
How to apply PATCH? aurelio26 *BSD 3 10-07-2004 01:23 PM
HOW to apply an xfree86 patch for a video driver? andhar Linux - Newbie 6 04-30-2004 11:07 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM
how do I apply a patch or a new driver blurhappy Linux - Laptop and Netbook 0 10-26-2003 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration