Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1506323

Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix

From sonofagun@openmailbox.org
Newsgroups linux.kernel
Subject Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix
Date 2016-10-22 00:00 +0200
Message-ID <suQ13-2TK-1@gated-at.bofh.it> (permalink)
References <suKI2-84M-25@gated-at.bofh.it> <suLb4-8f6-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Thank you for your time! I have chosen reply to list and all recipients, 
it must work now.

My brother rejected the proposed patch because it does not provide 
equivalent functionality with the original.

Our initial patch would fix 3 broken models and 1 working model. Your 
patch will only work for 1 model. Only machines having our APU will be 
fixed. All B0 APUs will be unpatched. This is not right. Check the 
revision guide to verify that.

To avoid unneeded complexity we propose this patch as V2, do you agree?

+#define MSR_AMD64_IC_CFG	0xC0011021
+
+static void init_amd_on(struct cpuinfo_x86 *c)
+{
+	/*
+	 * Apply erratum 688 fix so machines without a BIOS
+	 * fix work.
+	 */
+
+	u32 val = pci_read_config(0, 0x18, 0x4, 0x164);
+
+	if (!(val & BIT(2))) {
+		msr_set_bit(MSR_AMD64_IC_CFG, 3);
+		msr_set_bit(MSR_AMD64_IC_CFG, 14);
+}
  static void init_amd_bd(struct cpuinfo_x86 *c)
  {
  	u64 value;
@@ -738,6 +750,7 @@ static void init_amd(struct cpuinfo_x86
  	case 0xf:  init_amd_k8(c); break;
  	case 0x10: init_amd_gh(c); break;
  	case 0x12: init_amd_ln(c); break;
+	case 0x14: init_amd_on(c); break;
  	case 0x15: init_amd_bd(c); break;
  	}

Please advice to proceed!


> Why, what's wrong with that one? That one should be all fixed! :-)
> 
> I have such box too and it runs fine.
erratum 721 :-(

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix sonofagun@openmailbox.org - 2016-10-21 18:20 +0200
  Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix Borislav Petkov <bp@alien8.de> - 2016-10-21 18:50 +0200
    Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix sonofagun@openmailbox.org - 2016-10-22 00:00 +0200
      Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix Borislav Petkov <bp@alien8.de> - 2016-10-22 01:10 +0200
        Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix sonofagun@openmailbox.org - 2016-10-22 13:20 +0200
          Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix Borislav Petkov <bp@alien8.de> - 2016-10-22 17:10 +0200
            Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix sonofagun@openmailbox.org - 2016-10-23 11:40 +0200
              Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix Borislav Petkov <bp@alien8.de> - 2016-10-23 12:00 +0200
                Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix sonofagun@openmailbox.org - 2016-10-23 19:10 +0200
                Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix Borislav Petkov <bp@alien8.de> - 2016-10-23 19:30 +0200
                Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix sonofagun@openmailbox.org - 2016-10-23 23:10 +0200
                Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix Borislav Petkov <bp@alien8.de> - 2016-10-23 23:40 +0200
                Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix Borislav Petkov <bp@alien8.de> - 2016-10-24 14:40 +0200
                Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix sonofagun@openmailbox.org - 2016-10-24 15:20 +0200
                Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix Borislav Petkov <bp@alien8.de> - 2016-10-24 19:20 +0200
                Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix sonofagun@openmailbox.org - 2016-10-24 22:50 +0200
                Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix Borislav Petkov <bp@alien8.de> - 2016-10-25 11:30 +0200
                Re: [PATCH] x86/AMD: Apply erratum 688 on machines without a BIOS fix sonofagun@openmailbox.org - 2016-10-25 15:20 +0200

csiph-web