[parisc-linux] [RFT] PA7200 users?

Joel Soete soete.joel at tiscali.be
Sun Jul 9 09:53:42 MDT 2006



Kyle McMartin wrote:
> On Sun, Jul 09, 2006 at 11:56:07AM +0000, Joel Soete wrote:
> 
>>	* it compiled now fine;
>>	* it booted;
>>	* and seems to work fine
>>	 (even a bit better than pa1 :-),
>>	  real time about 111min to build kernel with pa1
>>	  about 108min with patches)
>>
> 
> 
> Did you include the other two patches (the one that changes
> Kconfig PREFETCH, and the one that adds a prefetch(NULL); to the
> kernel start?
> 
mmm in summary patches applied here were:
Index: arch/parisc/Kconfig
===================================================================
RCS file: /var/cvs/linux-2.6/arch/parisc/Kconfig,v
retrieving revision 1.48
diff -u -d -p -r1.48 Kconfig
--- arch/parisc/Kconfig	6 Jul 2006 12:21:25 -0000	1.48
+++ arch/parisc/Kconfig	7 Jul 2006 17:09:40 -0000
@@ -127,7 +127,7 @@ config PA11

  config PREFETCH
  	def_bool y
-	depends on PA8X00
+	depends on PA8X00 || PA7200

  config 64BIT
  	bool "64-bit kernel"

Index: arch/parisc/kernel/setup.c
===================================================================
RCS file: /var/cvs/linux-2.6/arch/parisc/kernel/setup.c,v
retrieving revision 1.18
diff -u -d -p -r1.18 setup.c
--- arch/parisc/kernel/setup.c	6 Jul 2006 12:21:25 -0000	1.18
+++ arch/parisc/kernel/setup.c	7 Jul 2006 22:10:04 -0000
@@ -36,6 +36,7 @@
  #include <linux/pci.h>
  #undef PCI_DEBUG
  #include <linux/proc_fs.h>
+#include <linux/prefetch.h>

  #include <asm/processor.h>
  #include <asm/pdc.h>
@@ -363,6 +364,10 @@ static int __init parisc_init(void)

  #ifdef CONFIG_CHASSIS_LCD_LED
  	register_led_regions();	/* register LED port info in procfs */
+#endif
+
+#ifdef CONFIG_PREFETCH
+	prefetch(NULL);
  #endif

  	return 0;

Index: include/asm-parisc/processor.h
===================================================================
RCS file: /var/cvs/linux-2.6/include/asm-parisc/processor.h,v
retrieving revision 1.18
diff -u -d -p -r1.18 processor.h
--- include/asm-parisc/processor.h	7 Jul 2006 04:50:44 -0000	1.18
+++ include/asm-parisc/processor.h	8 Jul 2006 21:31:35 -0000
@@ -17,8 +17,10 @@
  #ifdef CONFIG_PREFETCH
  extern inline void prefetch(const void *addr);
  #define ARCH_HAS_PREFETCH
+#ifdef CONFIG_PA20
  extern inline void prefetchw(const void *addr);
  #define ARCH_HAS_PREFETCHW
+#endif
  #endif /* CONFIG_PREFETCH */

  #include <linux/threads.h>
@@ -357,10 +359,12 @@ extern inline void prefetch(const void *
  	__asm__("ldw 0(%0), %%r0" : : "r" (addr));
  }

+#ifdef CONFIG_PA20
  extern inline void prefetchw(const void *addr)
  {
  	__asm__("ldd 0(%0), %%r0" : : "r" (addr));
  }
+#endif
  #endif /* CONFIG_PREFETCH */

  #define cpu_relax()	barrier()

And I selected PA7200 optimisation with "processor type" in choice menu

(but not yet apply:
<http://lists.parisc-linux.org/pipermail/parisc-linux-cvs/2006-July/036838.html>
<http://lists.parisc-linux.org/pipermail/parisc-linux-cvs/2006-July/036839.html>
)

Joel

> Cheers,
> 	Kyle
> 
> 



More information about the parisc-linux mailing list