LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to revert a Kernel commit? (https://www.linuxquestions.org/questions/linux-software-2/how-to-revert-a-kernel-commit-4175584136/)

Amarildo 07-08-2016 07:56 PM

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

jpollard 07-08-2016 08:26 PM

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.


Amarildo 07-08-2016 10:26 PM

Had to tweak the PKDBUILD and Patch a bit, but it worked.

PKGBUILD: http://pastebin.com/raw/t477Rhae
Patch: http://pastebin.com/raw/JdUXvyEs

syg00 07-08-2016 11:56 PM

Was going to suggest you let the arch forums know about this, but I see you already have. Thanks.


All times are GMT -5. The time now is 12:53 AM.