Jump to content

Mavericks kernel testing on AMD (formerly Mountain Lion kernel testing on AMD)


theconnactic
 Share

6,414 posts in this topic

Recommended Posts

Can solve Pink icon and Launchpad

Thanks!!

 

Everybody!!!Good news!!! I solve  Pink Launchpad!!! My method: First ,to System Preferences - displays .And choose "scaled",and choose the other resolution ratio,and you open launchpad you will find the icon to normal!!! Finally,you

choose former resolution ratio,and Launchpad still normal!!

Sorry my English!!

Link to comment
Share on other sites

New AMD kernel and PM pack.

Added Sinetek's great graphics fix and modified it to only be used on AMD CPUs.

So this is the first release kernel (thanks Sinetek, great work :D)

It will run fine on both AMD and Intel CPUs.


 

Yes it will, No more glitches on ATI, NVIDIA.

still got some pink icons though.

 

 

mtrr.diff:

--- xnu-2422.1.72/osfmk/i386/mtrr.c	2011-10-18 18:42:25.000000000 -0400
+++ xnu-2422.1.72-anv/osfmk/i386/mtrr.c	2013-11-07 17:48:28.000000000 -0500
@@ -65,7 +65,7 @@
 
 //#define MTRR_DEBUG 1
 #if	MTRR_DEBUG
-#define DBG(x...)	kprintf(x)
+#define DBG(x...)	printf(x)
 #else
 #define DBG(x...)
 #endif
@@ -257,6 +257,24 @@
 }
 #endif /* MTRR_DEBUG */
 
+/*** Sinetek: AMD requires configuring a few more things ***/
+/***   doesn't seem to do anything ***/
+void mtrr_amd_init()
+{
+	uint64_t HWCR = rdmsr64(0xC0010015 );
+	printf("AMD_HWCR  %016llX\n", HWCR);
+
+	HWCR |= 1 << 1;
+	HWCR |= 1 << 3;
+	HWCR |= 1 << 4;
+	HWCR |= 1 << 6;
+	HWCR |= 1 << 8;
+	HWCR |= 1 << 17;
+	HWCR |= 1 << 18;
+
+	wrmsr64(0xC0010015, HWCR);
+}
+
 /*
  * Called by the boot processor (BP) early during boot to initialize MTRR
  * support.  The MTRR state on the BP is saved, any additional processors
@@ -273,6 +291,8 @@
 	if ((cpuid_features() & CPUID_FEATURE_MTRR) == 0)
         	return;  /* no MTRR feature */
 
+	//mtrr_amd_init();
+
 	/* use a lock to serialize MTRR changes */
 	bzero((void *)&mtrr_state, sizeof(mtrr_state));
 	simple_lock_init(&mtrr_lock, 0);
@@ -337,6 +357,10 @@
 	/* flush TLBs */
 	flush_tlb_raw();
 
+	//uint32_t amd;
+	//PE_parse_boot_argn("-amd", &amd, sizeof (amd));
+	//if(amd) mtrr_amd_init();
+
 	if (CACHE_CONTROL_PAT == cache_control_type) {
 		/* Change PA6 attribute field to WC */
 		uint64_t pat = rdmsr64(MSR_IA32_CR_PAT);
@@ -362,7 +386,8 @@
 
 		/* enable all MTRR range registers (what if E was not set?) */
 		wrmsr64(MSR_IA32_MTRR_DEF_TYPE,
-			mtrr_state.MTRRdefType | IA32_MTRR_DEF_TYPE_E);
+			MTRR_TYPE_UNCACHEABLE | IA32_MTRR_DEF_TYPE_E );
+
 	}
 
 	/* flush all caches and TLBs a second time */
@@ -680,7 +705,8 @@
 	boolean_t	istate;
 	uint64_t	pat;
 
-	if (!(cpuid_features() & CPUID_FEATURE_PAT))
+	return;
+	if ( !(cpuid_features() & CPUID_FEATURE_PAT))
 		return;
 
 	istate = ml_set_interrupts_enabled(FALSE);

Awesome Sinetek.

Really great work :D

You, Bronzovka and me wrote history in very short notice ;)

AMD_Kernel_And_PM_REL1.zip

  • Like 11
Link to comment
Share on other sites

Sleep is working without SleepEnabler.kext, I'm not sure if it is a reflection of some DSDT patching I've made, but it's working...

 

Is corecrypto still required with this kernel? I'm using only NullCPUPowerManagement.kext anv corecrypto.kext FakeSMC.kext and Atheros for ethernet.

 

If someone needs help with DSDTs I think I can help, you just PM me and I'll take care ASAP. ;)

  • Like 2
Link to comment
Share on other sites

Sleep is working without SleepEnabler.kext, I'm not sure if it is a reflection of some DSDT patching I've made, but it's working...

 

Is corecrypto still required with this kernel? I'm using only NullCPUPowerManagement.kext anv corecrypto.kext FakeSMC.kext and Atheros for ethernet.

 

If someone needs help with DSDTs I think I can help, you just PM me and I'll take care ASAP. ;)

@+ira

 

Just checked now and my AMD sleep is working too for the first time!

No Corecrypto needed for the kernel compiled by Shanee, not sure of AnV's recently posted kernel.

  • Like 2
Link to comment
Share on other sites

New AMD kernel and PM pack.

Added Sinetek's great graphics fix and modified it to only be used on AMD CPUs.

So this is the first release kernel (thanks Sinetek, great work :D)

It will run fine on both AMD and Intel CPUs.

Awesome Sinetek.

Really great work :D

You, Bronzovka and me wrote history in very short notice ;)

hi andy

is there anther way not to touch system.kext  like make kext that do that you did on it or at least to be patched through clover ?

Link to comment
Share on other sites

New AMD kernel and PM pack.

Added Sinetek's great graphics fix and modified it to only be used on AMD CPUs.

So this is the first release kernel (thanks Sinetek, great work :D)

It will run fine on both AMD and Intel CPUs.

 

still does not work on older AMD  :(

 

KP

 
warning: invalid kernel ip won't attempt to handle trap
...
bsd process name corresponding to current thread: opendirectoryd
Link to comment
Share on other sites

If all we have to complain about now is iCloud & iMessage then I must say that is pretty good going devs! Great Work Guys!

I think most of the work has been done, but it would be even better if we solve the cache problem Sinetek has found in a way we don't need to disable it, i mean there's a reason for caching, disabling it is a solution for our graphics problem but maybe we can make cache works correctly instead of disabling it, i don't know, maybe the only way is disabling it...

Link to comment
Share on other sites

hi andy

is there anther way not to touch system.kext like make kext that do that you did on it or at least to be patched through clover ?

If you want VoodooPState.kext to work on any kernel you need the custom System.kext

If you don't use VoodooPState.kext it isn't needed.

Sleep is working without SleepEnabler.kext, I'm not sure if it is a reflection of some DSDT patching I've made, but it's working...

 

Is corecrypto still required with this kernel? I'm using only NullCPUPowerManagement.kext anv corecrypto.kext FakeSMC.kext and Atheros for ethernet.

 

If someone needs help with DSDTs I think I can help, you just PM me and I'll take care ASAP. ;)

I patched the routines that check the PM (AICPUPM) attach ;)
  • Like 3
Link to comment
Share on other sites

New AMD kernel and PM pack.

Added Sinetek's great graphics fix and modified it to only be used on AMD CPUs.

So this is the first release kernel (thanks Sinetek, great work :D)

It will run fine on both AMD and Intel CPUs.

Awesome Sinetek.

Really great work :D

You, Bronzovka and me wrote history in very short notice ;)

black screen on amd phenom :(

Link to comment
Share on other sites

I get this when using RC7, tried both with and without GraphicsEnabler. Am I maybe missing something? I haven't replaced System.kext with the one from the pack posted by Andy. Retail with Pandora.

 

http://s8.postimg.org/ne4d6wnv9/image.jpg

 

AMD Athlon X2

ATI HD5770

Biostar A780L motherboard

Link to comment
Share on other sites

black screen on amd phenom :(

Use Clover for booting, not Chameleon...

I get this when using RC7, tried both with and without GraphicsEnabler. Am I maybe missing something? I haven't replaced System.kext with the one from the pack posted by Andy. Retail with Pandora.

 

http://s8.postimg.org/ne4d6wnv9/image.jpg

 

AMD Athlon X2

ATI HD5770

Biostar A780L motherboard

Try the kernel in the latest PM Pack (REL1)
Link to comment
Share on other sites

Sleep is working without SleepEnabler.kext, I'm not sure if it is a reflection of some DSDT patching I've made, but it's working...

 

Is corecrypto still required with this kernel? I'm using only NullCPUPowerManagement.kext anv corecrypto.kext FakeSMC.kext and Atheros for ethernet.

 

If someone needs help with DSDTs I think I can help, you just PM me and I'll take care ASAP. ;)

In my case, corecrypto - no need anymore with both of kernels (andy and sinetek fix), but it's a lot faster booting with corecrypto to me.

 

EDIT: But I still don't have QE/CI   :(

 

:help: :help: :help:

  • Like 1
Link to comment
Share on other sites

Recreated the installer USB and now it's busy installing :)

Gooooood :) I am now installing Clover on USB and then I will try to boot with that to Mavericks. I have got Clover on CD but when I try to boot, always restart :/ It's annoying...

Link to comment
Share on other sites

Bravo~!!!!!

 

All works with no graphics glitches, but dont know why my FX-8350 becoming 1GHz only....

 

Screen+Shot+2013-11-08+at+22.31.31.png

VoodooPState installed?

I still need to edit the code for FX...

Link to comment
Share on other sites

Bravo~!!!!!

 

All works with no graphics glitches, but dont know why my FX-8350 becoming 1GHz only....

 

 

 

 

And....... removing the System.kext and those two Voodooxxxx.kext resulting kernel panic........

VoodooPState installed?

I still need to edit the code for FX...

 

Oh...yes......

anyway i am happy with it at the moment, wait for your latest release, Thx~!  :thumbsup_anim:

Link to comment
Share on other sites

 Share

×
×
  • Create New...