summaryrefslogtreecommitdiffstats
path: root/resources/libreboot/patch/kgpe-d16/0097-amd-model_10xxx-Fix-poor-performance-on-Family-15h-C.patch
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-10-18 19:12:53 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-10-18 21:32:36 (EDT)
commit0622df6194dbb1b2120743c0fd1cc5e72c380128 (patch)
tree4c858b8c5667fe001a9907ae0578b4ec28a8f513 /resources/libreboot/patch/kgpe-d16/0097-amd-model_10xxx-Fix-poor-performance-on-Family-15h-C.patch
parent5999dba5f71f1c05040a551d2420ab8c7f3a9da4 (diff)
downloadlibreboot-0622df6194dbb1b2120743c0fd1cc5e72c380128.zip
libreboot-0622df6194dbb1b2120743c0fd1cc5e72c380128.tar.gz
libreboot-0622df6194dbb1b2120743c0fd1cc5e72c380128.tar.bz2
KGPE-D16: update patch set (also update coreboot and vboot)
Also contains other fixes from coreboot, like: * 551cff0 Derive lvds_dual_channel from EDID timings. ^ makes single/dual channel LVDS selection on GM45 automatic * 26fc544 lenovo/t60: Enable native intel gfx init. ^ was being maintained in libreboot, now upstreamed so not needed Framebuffer mode was disabled for the KGPE-D16, because only text-mode works at the moment.
Diffstat (limited to 'resources/libreboot/patch/kgpe-d16/0097-amd-model_10xxx-Fix-poor-performance-on-Family-15h-C.patch')
-rw-r--r--resources/libreboot/patch/kgpe-d16/0097-amd-model_10xxx-Fix-poor-performance-on-Family-15h-C.patch122
1 files changed, 0 insertions, 122 deletions
diff --git a/resources/libreboot/patch/kgpe-d16/0097-amd-model_10xxx-Fix-poor-performance-on-Family-15h-C.patch b/resources/libreboot/patch/kgpe-d16/0097-amd-model_10xxx-Fix-poor-performance-on-Family-15h-C.patch
deleted file mode 100644
index 9f21a62..0000000
--- a/resources/libreboot/patch/kgpe-d16/0097-amd-model_10xxx-Fix-poor-performance-on-Family-15h-C.patch
+++ /dev/null
@@ -1,122 +0,0 @@
-From 4dbb7204da39a6f47acb6875538acb4880f3a49b Mon Sep 17 00:00:00 2001
-From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
-Date: Fri, 7 Aug 2015 19:04:49 -0500
-Subject: [PATCH 097/146] amd/model_10xxx: Fix poor performance on Family 15h
- CPUs
-
----
- src/cpu/amd/model_10xxx/defaults.h | 13 +++++++---
- src/cpu/amd/model_10xxx/init_cpus.c | 45 ++++++++++++++++++++++++++++++++---
- 2 files changed, 52 insertions(+), 6 deletions(-)
-
-diff --git a/src/cpu/amd/model_10xxx/defaults.h b/src/cpu/amd/model_10xxx/defaults.h
-index bff2efd..4868c5c 100644
---- a/src/cpu/amd/model_10xxx/defaults.h
-+++ b/src/cpu/amd/model_10xxx/defaults.h
-@@ -535,15 +535,15 @@ static const struct {
- { 3, 0x140, AMD_FAM10_ALL, AMD_PTYPE_ALL,
- 0x00800756, 0x00F3FFFF },
-
-- { 3, 0x140, AMD_FAM15_ALL, AMD_PTYPE_ALL,
-- 0x00a11755, 0x00f3ffff },
--
- { 3, 0x140, AMD_FAM10_ALL, AMD_PTYPE_UMA,
- 0x00C37756, 0x00F3FFFF },
-
- { 3, 0x144, AMD_FAM10_ALL, AMD_PTYPE_UMA,
- 0x00000036, 0x000000FF },
-
-+ { 3, 0x140, AMD_FAM15_ALL, AMD_PTYPE_ALL,
-+ 0x00a11755, 0x00f3ffff },
-+
- /* Errata 281 Workaround */
- { 3, 0x144, ( AMD_DR_B0 | AMD_DR_B1),
- AMD_PTYPE_SVR, 0x00000001, 0x0000000F },
-@@ -555,6 +555,13 @@ static const struct {
- { 3, 0x148, AMD_FAM10_ALL, AMD_PTYPE_UMA,
- 0x8000052A, 0xD5FFFFFF },
-
-+ /* Core Interface Buffer Count */
-+ { 3, 0x1a0, AMD_FAM15_ALL, AMD_PTYPE_ALL,
-+ 0x00034004, 0x00037007 }, /* CpuToNbFreeBufCnt = 0x3,
-+ L3ToSriReqCBC = 0x4,
-+ L3FreeListCBC = default,
-+ CpuCmdBufCnt = 0x4 */
-+
- /* ACPI Power State Control Reg1 */
- { 3, 0x80, AMD_FAM10_ALL, AMD_PTYPE_ALL,
- 0xE6002200, 0xFFFFFFFF },
-diff --git a/src/cpu/amd/model_10xxx/init_cpus.c b/src/cpu/amd/model_10xxx/init_cpus.c
-index 6122acd..15ed259 100644
---- a/src/cpu/amd/model_10xxx/init_cpus.c
-+++ b/src/cpu/amd/model_10xxx/init_cpus.c
-@@ -847,8 +847,9 @@ static BOOL AMD_CpuFindCapability(u8 node, u8 cap_count, u8 * offset)
- */
- static u32 AMD_checkLinkType(u8 node, u8 link, u8 regoff)
- {
-- u32 val;
-- u32 linktype = 0;
-+ uint32_t val;
-+ uint32_t val2;
-+ uint32_t linktype = 0;
-
- /* Check connect, init and coherency */
- val = pci_read_config32(NODE_PCI(node, 0), regoff + 0x18);
-@@ -863,8 +864,13 @@ static u32 AMD_checkLinkType(u8 node, u8 link, u8 regoff)
- if (linktype) {
- /* Check gen3 */
- val = pci_read_config32(NODE_PCI(node, 0), regoff + 0x08);
-+ val = (val >> 8) & 0xf;
-+ if (is_gt_rev_d()) {
-+ val2 = pci_read_config32(NODE_PCI(node, 0), regoff + 0x1c);
-+ val |= (val2 & 0x1) << 4;
-+ }
-
-- if (((val >> 8) & 0x0F) > 6)
-+ if (val > 6)
- linktype |= HTPHY_LINKTYPE_HT3;
- else
- linktype |= HTPHY_LINKTYPE_HT1;
-@@ -1147,6 +1153,39 @@ static void cpuSetAMDPCI(u8 node)
- pci_write_config32(NODE_PCI(node, 3), 0xd4, dword);
- }
-
-+ if (revision & AMD_FAM15_ALL) {
-+ uint32_t f5x80;
-+ uint8_t cu_enabled;
-+ uint8_t compute_unit_count = 0;
-+ uint8_t compute_unit_buffer_count;
-+
-+ /* Determine the number of active compute units on this node */
-+ f5x80 = pci_read_config32(NODE_PCI(node, 5), 0x80);
-+ cu_enabled = f5x80 & 0xf;
-+ if (cu_enabled == 0x1)
-+ compute_unit_count = 1;
-+ if (cu_enabled == 0x3)
-+ compute_unit_count = 2;
-+ if (cu_enabled == 0x7)
-+ compute_unit_count = 3;
-+ if (cu_enabled == 0xf)
-+ compute_unit_count = 4;
-+
-+ if (compute_unit_count == 1)
-+ compute_unit_buffer_count = 0x1c;
-+ else if (compute_unit_count == 2)
-+ compute_unit_buffer_count = 0x18;
-+ else if (compute_unit_count == 3)
-+ compute_unit_buffer_count = 0x14;
-+ else
-+ compute_unit_buffer_count = 0x10;
-+
-+ dword = pci_read_config32(NODE_PCI(node, 3), 0x1a0);
-+ dword &= ~(0x1f << 4); /* L3FreeListCBC = compute_unit_buffer_count */
-+ dword |= (compute_unit_buffer_count << 4);
-+ pci_write_config32(NODE_PCI(node, 3), 0x1a0, dword);
-+ }
-+
- printk(BIOS_DEBUG, " done\n");
- }
-
---
-1.7.9.5
-