LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-08-2016, 07:56 PM   #1
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Rep: Reputation: Disabled
How to revert a Kernel commit?


I need to revert a Kernel commit, but I have no idea how to do so.

This is the commit: https://bugzilla.kernel.org/show_bug.cgi?id=103271#c20

I'm running Arch Linux, with linux-git (4.7).

For what I understand, I just need to edit "a/drivers/gpu/drm/radeon/si_dpm.c" and remove the following line?

Code:
{ PCI_VENDOR_ID_ATI, 0x6810, 0x174b, 0xe271, 85000, 90000 },
If so, that's what I'm doing now, I removed that line and I'm re-compiling the Kernel. However, what if that was not the case and the patch was much complex? How would I apply it?

Regards

Last edited by Amarildo; 07-08-2016 at 10:26 PM.
 
Old 07-08-2016, 08:26 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,707

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
From the patch manpage
Code:
      If you apply a patch you've already  applied,  patch  thinks  it  is  a
       reversed  patch,  and offers to un-apply the patch.  This could be con‐
       strued as a feature.

Last edited by jpollard; 07-08-2016 at 08:27 PM.
 
Old 07-08-2016, 10:26 PM   #3
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Original Poster
Rep: Reputation: Disabled
Had to tweak the PKDBUILD and Patch a bit, but it worked.

PKGBUILD: http://pastebin.com/raw/t477Rhae
Patch: http://pastebin.com/raw/JdUXvyEs
 
1 members found this post helpful.
Old 07-08-2016, 11:56 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,883

Rep: Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191
Was going to suggest you let the arch forums know about this, but I see you already have. Thanks.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how do i revert fc6 kernel 2944 to 2933? arjay Fedora 2 05-01-2007 03:59 PM
How to revert back to a previous kernel in REL 3.0? cygnus-x1 Red Hat 6 08-29-2006 06:33 PM
Revert to Previous Kernel Sibre Linux - Software 3 01-17-2006 11:22 AM
Can I revert back to an older kernel? jspaceman Slackware 3 10-30-2004 04:07 PM
how to revert back to the previous kernel version? prav_284 Red Hat 3 12-10-2003 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration