Spectre660's Linux downloads for the Sam440/460

Linux only discussion for the AmigaOne 500 and Sam series
Post Reply
Spectre660
Posts: 1538
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Spectre660's Linux downloads for the Sam440/460

Post by Spectre660 »

Thank you guys for testing.
User avatar
xeno74
Posts: 10701
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Spectre660's Linux downloads for the Sam440/460

Post by xeno74 »

Spectre660 wrote:Thank you guys for testing.
Thanks for your new kernel. Unfortunately I can't test it because I don't have a Sam460ex. Shall I upload the kernel or shall I wait a bit? Do you use any patches for the Radeon HD cards? We use for the HD cards the following patch:

Code: Select all

diff -rupN linux-3.14/drivers/gpu/drm/radeon/radeon_pm.c linux-3.14-nemo/drivers/gpu/drm/radeon/radeon_pm.c
--- linux-3.14/drivers/gpu/drm/radeon/radeon_pm.c	2014-02-03 01:42:13.000000000 +0100
+++ linux-3.14-nemo/drivers/gpu/drm/radeon/radeon_pm.c	2014-02-03 14:37:31.468243027 +0100
@@ -223,7 +223,10 @@ static void radeon_set_power_state(struc
 		/* set memory clock */
 		if (rdev->asic->pm.set_memory_clock && (mclk != rdev->pm.current_mclk)) {
 			radeon_pm_debug_check_in_vbl(rdev, false);
+               /* D.Stevens 2012 for the A-EON AmigaOne X1000: Setting memory clock only works on CAICOS and 6570, don't set for anything else (We ignore 6570 here */
+               if (rdev->family == CHIP_CAICOS) {
 			radeon_set_memory_clock(rdev, mclk);
+               }
 			radeon_pm_debug_check_in_vbl(rdev, true);
 			rdev->pm.current_mclk = mclk;
 			DRM_DEBUG_DRIVER("Setting: m: %d\n", mclk);
@@ -1005,7 +1008,7 @@ static void radeon_pm_resume_old(struct
 						SET_VOLTAGE_TYPE_ASIC_VDDCI);
 		if (rdev->pm.default_sclk)
 			radeon_set_engine_clock(rdev, rdev->pm.default_sclk);
-		if (rdev->pm.default_mclk)
+		if (rdev->pm.default_mclk && (rdev->family == CHIP_CAICOS))     /* Fix for PPC systems HD6000 >6570 by A-EON Core Linux Support Team */	
 			radeon_set_memory_clock(rdev, rdev->pm.default_mclk);
 	}
 	/* asic init will reset the default power state */
@@ -1057,7 +1060,7 @@ dpm_resume_fail:
 						SET_VOLTAGE_TYPE_ASIC_VDDCI);
 		if (rdev->pm.default_sclk)
 			radeon_set_engine_clock(rdev, rdev->pm.default_sclk);
-		if (rdev->pm.default_mclk)
+		if (rdev->pm.default_mclk && (rdev->family == CHIP_CAICOS))     /* Fix for PPC & > HD6570 by A-EON Linux Core Support Team */	
 			radeon_set_memory_clock(rdev, rdev->pm.default_mclk);
 	}
 }
@@ -1104,7 +1107,7 @@ static int radeon_pm_init_old(struct rad
 							SET_VOLTAGE_TYPE_ASIC_VDDCI);
 			if (rdev->pm.default_sclk)
 				radeon_set_engine_clock(rdev, rdev->pm.default_sclk);
-			if (rdev->pm.default_mclk)
+			if (rdev->pm.default_mclk && (rdev->family == CHIP_CAICOS))     // D.Stevens 2013: fix for >HD6570 on PPC	
 				radeon_set_memory_clock(rdev, rdev->pm.default_mclk);
 		}
 	}
@@ -1217,7 +1220,7 @@ dpm_failed:
 						SET_VOLTAGE_TYPE_ASIC_VDDCI);
 		if (rdev->pm.default_sclk)
 			radeon_set_engine_clock(rdev, rdev->pm.default_sclk);
-		if (rdev->pm.default_mclk)
+		if (rdev->pm.default_mclk && (rdev->family == CHIP_CAICOS))  // D.Stevens 2013: Fix for >HD6570 on ppc	
 			radeon_set_memory_clock(rdev, rdev->pm.default_mclk);
 	}
 	DRM_ERROR("radeon: dpm initialization failed\n");

Rgds,

Christian
Spectre660
Posts: 1538
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Spectre660's Linux downloads for the Sam440/460

Post by Spectre660 »

Thanks.
Yes please upload version # 2.
I have not had to apply any other specific pathches for Radeon HD cards. Have tested with HD6670 's with no problem.
So one patch for Sam440ep for correcting the load address of the kernel and one for the Sam460ex to correct the wrong base address type .
xeno74 wrote:
Spectre660 wrote:Thank you guys for testing.
Thanks for your new kernel. Unfortunately I can't test it because I don't have a Sam460ex. Shall I upload the kernel or shall I wait a bit? Do you use any patches for the Radeon HD cards? We use for the HD cards the following patch:




Rgds,

Christian
User avatar
xeno74
Posts: 10701
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Spectre660's Linux downloads for the Sam440/460

Post by xeno74 »

Spectre660 wrote:Thanks.
Yes please upload version # 2.
I have not had to apply any other specific pathches for Radeon HD cards. Have tested with HD6670 's with no problem.
So one patch for Sam440ep for correcting the load address of the kernel and one for the Sam460ex to correct the wrong base address type .
Here you are: Sam460ex-3.14.0-rc4-2.tar.gz :)
Spectre660
Posts: 1538
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Spectre660's Linux downloads for the Sam440/460

Post by Spectre660 »

Spectre660
Posts: 1538
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Spectre660's Linux downloads for the Sam440/460

Post by Spectre660 »

Untested Sam460ex 3.14.0-rc5 kernel

https://dl.dropboxusercontent.com/u/542 ... rc5.tar.gz
User avatar
xeno74
Posts: 10701
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Spectre660's Linux downloads for the Sam440/460

Post by xeno74 »

Thank you! :-)

Kernel 3.14-rc5 for the Sam440ep( Flex): Sam440ep-3.14.0-rc5.tar.gz

Kernel 3.14-rc5 for the Sam460ex( Lite): Sam460ex-3.14.0-rc5.tar.gz
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

Re: Spectre660's Linux downloads for the Sam440/460

Post by javierdlr »

Spectre660 wrote:Untested Sam460ex 3.14.0-rc5 kernel

https://dl.dropboxusercontent.com/u/542 ... rc5.tar.gz

Tested on my SAM460ex and works fine!!!! :-D
User avatar
xeno74
Posts: 10701
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Spectre660's Linux downloads for the Sam440/460

Post by xeno74 »

Spectre660 wrote:Sam440ep 3.14.0-rc5 kernel

https://dl.dropboxusercontent.com/u/542 ... rc5.tar.gz
It works on my Sam440ep Flex (Radeon 9250 PCI, 128 MB VRAM). Thanks a lot! :-)
Spectre660
Posts: 1538
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Spectre660's Linux downloads for the Sam440/460

Post by Spectre660 »

Thanks for testing . :D
Post Reply