Mike Banon has uploaded this change for review.

View Change

AMD good IRQs: scripts for applying the unofficial (not-merged-yet) patches

These scripts will help you to securely and conveniently apply
seven changes for improving the IRQ routing on these AMD boards:
1) CB:48161, CB:48162, CB:48163, CB:48179 - for AMD Lenovo G505S;
2) CB:48424, CB:48425, CB:48426 - for ASUS A88XM-E;
3) Not ready yet - for ASUS AM1I-A.
Save to ./coreboot/ then run ./get_irq_patches.sh , ./check... and ./apply...

Signed-off-by: Mike Banon <mikebdp2@gmail.com>
Change-Id: I04869ae24185eef5399c3fd9b8d4965ec4e33a19
---
A apply_irq_patches.sh
A check_irq_patches.sh
A get_irq_patches.sh
A sha256sums_irq_correct.txt
4 files changed, 113 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/27/48427/1
diff --git a/apply_irq_patches.sh b/apply_irq_patches.sh
new file mode 100755
index 0000000..8fc5318
--- /dev/null
+++ b/apply_irq_patches.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+###
+### https://review.coreboot.org/c/coreboot/+/48161
+### lenovo/g505s: properly program the IRQ tables
+###
+patch -p1 < "./cd096f9.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48162
+### lenovo/g505s: update the ACPI routing to match the new IRQ routing
+###
+patch -p1 < "./42aeed4.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48163
+### lenovo/g505s: add the PIRQ routing table
+###
+patch -p1 < "./c6ab05e.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48179
+### lenovo/g505s: enable the webcam [WIP]
+###
+patch -p1 < "./8517e5a.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48424
+### asus/a88xm-e: properly program the IRQ tables
+###
+patch -p1 < "./cfc8288.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48425
+### asus/a88xm-e: update the ACPI routing to match the new IRQ routing
+###
+patch -p1 < "./489e510.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48426
+### asus/a88xm-e: add the PIRQ routing table
+###
+patch -p1 < "./08638df.diff"
+###
diff --git a/check_irq_patches.sh b/check_irq_patches.sh
new file mode 100755
index 0000000..3a2bb16
--- /dev/null
+++ b/check_irq_patches.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+rm -f "./sha256sums_irq_my.txt"
+sha256sum "./cd096f9.diff" > "./sha256sums_irq_my.txt"
+sha256sum "./42aeed4.diff" >> "./sha256sums_irq_my.txt"
+sha256sum "./c6ab05e.diff" >> "./sha256sums_irq_my.txt"
+sha256sum "./8517e5a.diff" >> "./sha256sums_irq_my.txt"
+sha256sum "./cfc8288.diff" >> "./sha256sums_irq_my.txt"
+sha256sum "./489e510.diff" >> "./sha256sums_irq_my.txt"
+sha256sum "./08638df.diff" >> "./sha256sums_irq_my.txt"
+if cmp -s "./sha256sums_irq_my.txt" "./sha256sums_irq_correct.txt"
+then
+ echo "SHA256 checksums are correct, please run ./apply_irq_patches.sh"
+ exit 0
+else
+ echo "! MISMATCH ! See ./sha256sums_irq_my.txt and ./sha256sums_irq_correct.txt"
+ exit 1
+fi
+#
diff --git a/get_irq_patches.sh b/get_irq_patches.sh
new file mode 100755
index 0000000..97da6b5
--- /dev/null
+++ b/get_irq_patches.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+###
+### https://review.coreboot.org/c/coreboot/+/48161
+### lenovo/g505s: properly program the IRQ tables
+###
+rm -f "./cd096f9.diff"
+wget "https://review.coreboot.org/changes/48161/revisions/1/patch?zip"
+unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./cd096f9.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48162
+### lenovo/g505s: update the ACPI routing to match the new IRQ routing
+###
+rm -f "./42aeed4.diff"
+wget "https://review.coreboot.org/changes/48162/revisions/1/patch?zip"
+unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./42aeed4.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48163
+### lenovo/g505s: add the PIRQ routing table
+###
+rm -f "./c6ab05e.diff"
+wget "https://review.coreboot.org/changes/48163/revisions/3/patch?zip"
+unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./c6ab05e.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48179
+### lenovo/g505s: enable the webcam [WIP]
+###
+rm -f "./8517e5a.diff"
+wget "https://review.coreboot.org/changes/48179/revisions/1/patch?zip"
+unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./8517e5a.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48424
+### asus/a88xm-e: properly program the IRQ tables
+###
+rm -f "./cfc8288.diff"
+wget "https://review.coreboot.org/changes/48424/revisions/1/patch?zip"
+unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./cfc8288.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48425
+### asus/a88xm-e: update the ACPI routing to match the new IRQ routing
+###
+rm -f "./489e510.diff"
+wget "https://review.coreboot.org/changes/48425/revisions/1/patch?zip"
+unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./489e510.diff"
+###
+### https://review.coreboot.org/c/coreboot/+/48426
+### asus/a88xm-e: add the PIRQ routing table
+###
+rm -f "./08638df.diff"
+wget "https://review.coreboot.org/changes/48426/revisions/1/patch?zip"
+unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./08638df.diff"
+###
diff --git a/sha256sums_irq_correct.txt b/sha256sums_irq_correct.txt
new file mode 100755
index 0000000..a06b640
--- /dev/null
+++ b/sha256sums_irq_correct.txt
@@ -0,0 +1,7 @@
+9fd4cca063bb6e6c9063f00f4c972c019d616560883b9bda76177a462817ae8e ./cd096f9.diff
+357a1e1e9f250149127fa8f7aac089e481a39f96b313ae1a0310c7e5d22faa72 ./42aeed4.diff
+e350591056f1a10b5922cc7180a07e1142f14fe8af41f6c545317a37c12880ed ./c6ab05e.diff
+ab0b347af164e5c50c580f036e7ed55757e90158ad3cb04fc2f8154b5392f804 ./8517e5a.diff
+358c3a5fcce7085ca49154370c21cd95396fa8fa9d0b30e1de8625fe1db0f36d ./cfc8288.diff
+669bd10d74229f3e2200a9e206fad49326928348a6ad3f261f14ebe920b63c56 ./489e510.diff
+fab791e93eb63b880d2692eff527979051dadcf504018f58346c6f0c4c6173b6 ./08638df.diff

To view, visit change 48427. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I04869ae24185eef5399c3fd9b8d4965ec4e33a19
Gerrit-Change-Number: 48427
Gerrit-PatchSet: 1
Gerrit-Owner: Mike Banon <mikebdp2@gmail.com>
Gerrit-MessageType: newchange