Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Linux-2.4.0-test2
       [not found] <Pine.LNX.4.10.10006232158510.962-100000@penguin.transmeta.com>
@ 2000-06-24 19:48 ` Thorsten Kranzkowski
  2000-06-24 21:56   ` Linux-2.4.0-test2 Richard Henderson
  0 siblings, 1 reply; 13+ messages in thread
From: Thorsten Kranzkowski @ 2000-06-24 19:48 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Kernel Mailing List, Alan Cox, axp-list mailing list

On Fri, Jun 23, 2000 at 10:06:35PM -0700, Linus Torvalds wrote:
> So if it doesn't compile for you, you must be doing something wrong.

Ok - it compiles well - but unfortunately it doesn't boot:


<snip>
Bootstrap complete, kernel @ 0xfffffc0000810000, sp @ 0xfffffc0000304000
... turning on virtual addressing and jumping to the Linux Kernel

-----------------------------------------------------------

valid Milo reboot block found
</snip>


... and MILO loops trying to load the kernel over and over again.
Several -test1-acXX kernels worked. 

Alpha AXPpci33 'Noname'
gcc version 2.96 20000530 (experimental)
'MILO in Flash-ROM'


Any Ideas?

Bye,
Thorsten
-- 
| Thorsten Kranzkowski        Internet: dl8bcu@gmx.net                        |
| Mobile: ++49 170 1876134       Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
  2000-06-24 19:48 ` Linux-2.4.0-test2 Thorsten Kranzkowski
@ 2000-06-24 21:56   ` Richard Henderson
  2000-06-25 11:35     ` Linux-2.4.0-test2 Ivan Kokshaysky
  2000-06-25 21:40     ` Linux-2.4.0-test2 Thorsten Kranzkowski
  0 siblings, 2 replies; 13+ messages in thread
From: Richard Henderson @ 2000-06-24 21:56 UTC (permalink / raw)
  To: Kernel Mailing List, axp-list mailing list

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

On Sat, Jun 24, 2000 at 07:48:27PM +0000, Thorsten Kranzkowski wrote:
> Ok - it compiles well - but unfortunately it doesn't boot:

"Fixed" thus.  Upgrade to aboot 0.7 for srm.  I don't know if
any version of MILO honors the load address properly.


r~

[-- Attachment #2: d-2402-start --]
[-- Type: text/plain, Size: 8851 bytes --]

diff -ruNp linux/Documentation/Configure.help 2.4.0-2-ac1/Documentation/Configure.help
--- linux/Documentation/Configure.help	Thu Jun 22 07:21:12 2000
+++ 2.4.0-2-ac1/Documentation/Configure.help	Sat Jun 24 13:00:46 2000
@@ -2126,6 +2126,20 @@ CONFIG_ALPHA_SRM
 
   If unsure, say N.
 
+Legacy kernel start address
+CONFIG_ALPHA_LEGACY_START_ADDRESS
+  The 2.4 kernel changed the kernel start address from 0x310000
+  to 0x810000 to make room for the Wildfire's larger SRM console.
+
+  If you're using aboot 0.7 or later, the bootloader will examine
+  the ELF headers to determine where to transfer control.  Unfortunately,
+  most older bootloaders -- APB, or MILO -- hardcoded the kernel
+  start address rather than examining the ELF headers, and the result
+  is a hard lockup.
+
+  Say Y if you have a broken bootloader.  Say N if you do not, or
+  if you wish to run on Wildfire.
+
 Non-standard serial port support
 CONFIG_SERIAL_NONSTANDARD
   Say Y here if you have any non-standard serial boards -- boards
diff -ruNp linux/arch/alpha/Makefile 2.4.0-2-ac1/arch/alpha/Makefile
--- linux/arch/alpha/Makefile	Wed Dec 15 10:32:47 1999
+++ 2.4.0-2-ac1/arch/alpha/Makefile	Sat Jun 24 13:29:32 2000
@@ -10,7 +10,7 @@
 
 NM := nm -B
 
-LINKFLAGS = -static -T arch/alpha/vmlinux.lds #-N -relax
+LINKFLAGS = -static -T arch/alpha/vmlinux.lds -N #-relax
 CFLAGS := $(CFLAGS) -pipe -mno-fp-regs -ffixed-8
 
 # Determine if we can use the BWX instructions with GAS.
@@ -90,7 +90,7 @@ endif
 
 LIBS := $(TOPDIR)/arch/alpha/lib/lib.a $(LIBS) $(TOPDIR)/arch/alpha/lib/lib.a
 
-MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
+MAKEBOOT = $(MAKE) -C arch/alpha/boot
 
 rawboot:
 	@$(MAKEBOOT) rawboot
@@ -109,13 +109,15 @@ srmboot:
 	@$(MAKEBOOT) srmboot
 
 archclean:
-	@$(MAKE) -C arch/$(ARCH)/kernel clean
+	@$(MAKE) -C arch/alpha/kernel clean
 	@$(MAKEBOOT) clean
+	rm -f arch/alpha/vmlinux.lds
 
 archmrproper:
 
 archdep:
 	@$(MAKEBOOT) dep
+	$(CPP) $(CPPFLAGS) -xc -P arch/alpha/vmlinux.lds.in -o arch/alpha/vmlinux.lds
 
 bootpfile:
 	@$(MAKEBOOT) bootpfile
diff -ruNp linux/arch/alpha/config.in 2.4.0-2-ac1/arch/alpha/config.in
--- linux/arch/alpha/config.in	Mon Jun 19 17:59:32 2000
+++ 2.4.0-2-ac1/arch/alpha/config.in	Sat Jun 24 12:52:46 2000
@@ -331,7 +331,6 @@ source drivers/usb/Config.in
 mainmenu_option next_comment
 comment 'Kernel hacking'
 
-#bool 'Debug kmalloc/kfree' CONFIG_DEBUG_MALLOC
 if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
   tristate 'Kernel FP software completion' CONFIG_MATHEMU
 else
@@ -339,4 +338,7 @@ else
 fi
 
 bool 'Magic SysRq key' CONFIG_MAGIC_SYSRQ
+
+bool 'Legacy kernel start address' CONFIG_ALPHA_LEGACY_START_ADDRESS
+
 endmenu
diff -ruNp linux/arch/alpha/vmlinux.lds 2.4.0-2-ac1/arch/alpha/vmlinux.lds
--- linux/arch/alpha/vmlinux.lds	Mon Jun 19 17:59:33 2000
+++ 2.4.0-2-ac1/arch/alpha/vmlinux.lds	Wed Dec 31 16:00:00 1969
@@ -1,88 +0,0 @@
-OUTPUT_FORMAT("elf64-alpha")
-ENTRY(__start)
-SECTIONS
-{
-  . = 0xfffffc0000810000;
-  _text = .;
-  .text : { *(.text) }
-  _etext = .;
-
-  /* Exception table */
-  . = ALIGN(16);
-  __start___ex_table = .;
-  __ex_table : { *(__ex_table) }
-  __stop___ex_table = .;
-
-  /* Kernel symbol table */
-  . = ALIGN(8);
-  __start___ksymtab = .;
-  __ksymtab : { *(__ksymtab) }
-  __stop___ksymtab = .;
-  .kstrtab : { *(.kstrtab) }
-
-  /* Startup code */
-  . = ALIGN(8192);
-  __init_begin = .;
-  .text.init : { *(.text.init) }
-  .data.init : { *(.data.init) }
-
-  . = ALIGN(16);
-  __setup_start = .;
-  .setup.init : { *(.setup.init) }
-  __setup_end = .;
-
-  . = ALIGN(8);
-  __initcall_start = .;
-  .initcall.init : { *(.initcall.init) }
-  __initcall_end = .;
-
-  . = ALIGN(2*8192);	/* Align double page for init_task_union */
-  __init_end = .;
-
-  /* The initial task and kernel stack */
-  init_task : { *(init_task) }
-
-  /* Global data */
-  _data = .;
-  .data.cacheline_aligned : { *(.data.cacheline_aligned) }
-  .rodata : { *(.rodata) }
-  .data : { *(.data) CONSTRUCTORS }
-  .got : { *(.got) }
-  .sdata : { *(.sdata) }
-  _edata = .;
-
-  __bss_start = .;
-  .sbss : { *(.sbss) *(.scommon) }
-  .bss : { *(.bss) *(COMMON) }
-  __bss_stop = .;
-  _end = .;
-
-  .mdebug 0 : { *(.mdebug) }
-  .note 0 : { *(.note) }
-  .comment 0 : { *(.comment) }
-
-  /* DWARF 1 */
-  .debug          0 : { *(.debug) }
-  .line           0 : { *(.line) }
-  /* GNU DWARF 1 extensions */
-  .debug_srcinfo  0 : { *(.debug_srcinfo) }
-  .debug_sfnames  0 : { *(.debug_sfnames) }
-  /* DWARF 1.1 and DWARF 2 */
-  .debug_aranges  0 : { *(.debug_aranges) }
-  .debug_pubnames 0 : { *(.debug_pubnames) }
-  /* DWARF 2 */
-  .debug_info     0 : { *(.debug_info) }
-  .debug_abbrev   0 : { *(.debug_abbrev) }
-  .debug_line     0 : { *(.debug_line) }
-  .debug_frame    0 : { *(.debug_frame) }
-  .debug_str      0 : { *(.debug_str) }
-  .debug_loc      0 : { *(.debug_loc) }
-  .debug_macinfo  0 : { *(.debug_macinfo) }
-  /* SGI/MIPS DWARF 2 extensions */
-  .debug_weaknames 0 : { *(.debug_weaknames) }
-  .debug_funcnames 0 : { *(.debug_funcnames) }
-  .debug_typenames 0 : { *(.debug_typenames) }
-  .debug_varnames  0 : { *(.debug_varnames) }
-
-  /DISCARD/ : { *(.text.exit) *(.data.exit) }
-}
diff -ruNp linux/arch/alpha/vmlinux.lds.in 2.4.0-2-ac1/arch/alpha/vmlinux.lds.in
--- linux/arch/alpha/vmlinux.lds.in	Wed Dec 31 16:00:00 1969
+++ 2.4.0-2-ac1/arch/alpha/vmlinux.lds.in	Sat Jun 24 14:23:59 2000
@@ -0,0 +1,96 @@
+#include <linux/config.h>
+
+OUTPUT_FORMAT("elf64-alpha")
+ENTRY(__start)
+PHDRS { kernel PT_LOAD ; }
+SECTIONS
+{
+#ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS
+  . = 0xfffffc0000310000;
+#else
+  . = 0xfffffc0000810000;
+#endif
+
+  _text = .;
+  .text : { *(.text) } :kernel
+  _etext = .;
+
+  /* Exception table */
+  . = ALIGN(16);
+  __start___ex_table = .;
+  __ex_table : { *(__ex_table) }
+  __stop___ex_table = .;
+
+  /* Kernel symbol table */
+  . = ALIGN(8);
+  __start___ksymtab = .;
+  __ksymtab : { *(__ksymtab) }
+  __stop___ksymtab = .;
+  .kstrtab : { *(.kstrtab) }
+
+  /* Startup code */
+  . = ALIGN(8192);
+  __init_begin = .;
+  .text.init : { *(.text.init) }
+  .data.init : { *(.data.init) }
+
+  . = ALIGN(16);
+  __setup_start = .;
+  .setup.init : { *(.setup.init) }
+  __setup_end = .;
+
+  . = ALIGN(8);
+  __initcall_start = .;
+  .initcall.init : { *(.initcall.init) }
+  __initcall_end = .;
+
+  . = ALIGN(2*8192);	/* Align double page for init_task_union */
+  __init_end = .;
+
+  /* The initial task and kernel stack */
+  init_task : { *(init_task) }
+
+  /* Global data */
+  _data = .;
+  .data.cacheline_aligned : { *(.data.cacheline_aligned) }
+  .rodata : { *(.rodata) }
+  .data : { *(.data) CONSTRUCTORS }
+  .got : { *(.got) }
+  .sdata : { *(.sdata) }
+  _edata = .;
+
+  __bss_start = .;
+  .sbss : { *(.sbss) *(.scommon) }
+  .bss : { *(.bss) *(COMMON) }
+  __bss_stop = .;
+  _end = .;
+
+  .mdebug 0 : { *(.mdebug) }
+  .note 0 : { *(.note) }
+  .comment 0 : { *(.comment) }
+
+  /* DWARF 1 */
+  .debug          0 : { *(.debug) }
+  .line           0 : { *(.line) }
+  /* GNU DWARF 1 extensions */
+  .debug_srcinfo  0 : { *(.debug_srcinfo) }
+  .debug_sfnames  0 : { *(.debug_sfnames) }
+  /* DWARF 1.1 and DWARF 2 */
+  .debug_aranges  0 : { *(.debug_aranges) }
+  .debug_pubnames 0 : { *(.debug_pubnames) }
+  /* DWARF 2 */
+  .debug_info     0 : { *(.debug_info) }
+  .debug_abbrev   0 : { *(.debug_abbrev) }
+  .debug_line     0 : { *(.debug_line) }
+  .debug_frame    0 : { *(.debug_frame) }
+  .debug_str      0 : { *(.debug_str) }
+  .debug_loc      0 : { *(.debug_loc) }
+  .debug_macinfo  0 : { *(.debug_macinfo) }
+  /* SGI/MIPS DWARF 2 extensions */
+  .debug_weaknames 0 : { *(.debug_weaknames) }
+  .debug_funcnames 0 : { *(.debug_funcnames) }
+  .debug_typenames 0 : { *(.debug_typenames) }
+  .debug_varnames  0 : { *(.debug_varnames) }
+
+  /DISCARD/ : { *(.text.exit) *(.data.exit) }
+}
diff -ruNp linux/include/asm-alpha/system.h 2.4.0-2-ac1/include/asm-alpha/system.h
--- linux/include/asm-alpha/system.h	Mon Jun 19 17:59:33 2000
+++ 2.4.0-2-ac1/include/asm-alpha/system.h	Sat Jun 24 13:09:46 2000
@@ -14,16 +14,17 @@
  * We leave one page for the initial stack page, and one page for
  * the initial process structure. Also, the console eats 3 MB for
  * the initial bootloader (one of which we can reclaim later).
- * With a few other pages for various reasons, we'll use an initial
- * load address of PAGE_OFFSET+0x310000UL
  */
 #define BOOT_PCB	0x20000000
 #define BOOT_ADDR	0x20000000
 /* Remove when official MILO sources have ELF support: */
 #define BOOT_SIZE	(16*1024)
 
-
+#ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS
+#define KERNEL_START_PHYS	0x300000 /* Old bootloaders hardcoded this.  */
+#else
 #define KERNEL_START_PHYS	0x800000 /* Wildfire has a huge console */
+#endif
 
 #define KERNEL_START	(PAGE_OFFSET+KERNEL_START_PHYS)
 #define SWAPPER_PGD	KERNEL_START

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
  2000-06-24 21:56   ` Linux-2.4.0-test2 Richard Henderson
@ 2000-06-25 11:35     ` Ivan Kokshaysky
  2000-06-25 16:27       ` Linux-2.4.0-test2 Richard Henderson
  2000-06-25 17:24       ` Linux-2.4.0-test2 werner
  2000-06-25 21:40     ` Linux-2.4.0-test2 Thorsten Kranzkowski
  1 sibling, 2 replies; 13+ messages in thread
From: Ivan Kokshaysky @ 2000-06-25 11:35 UTC (permalink / raw)
  To: axp-list; +Cc: Kernel Mailing List

On Sat, Jun 24, 2000 at 02:56:18PM -0700, Richard Henderson wrote:
> "Fixed" thus.  Upgrade to aboot 0.7 for srm.  I don't know if
> any version of MILO honors the load address properly.
> 
Milo-2.2 does. Though it puts command line in the wrong place
and passes incorrect memory map. I've almost finished a fix.

But there is another problem using the new start address - currently
it's just a waste of 5Mb of RAM on anything except Wildfire.
Is it possible to utilize a memory not used by console?

Ivan.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
@ 2000-06-25 13:12 GReg meno
  0 siblings, 0 replies; 13+ messages in thread
From: GReg meno @ 2000-06-25 13:12 UTC (permalink / raw)
  To: axp-list

I've had that milo looping problem before at least on
2.2.X kernels. I just downgraded my milo to one built
off 2.0.35 and now it works fine. I'll go ahead and
build a 2.4.X and let the list know my results

HTH
Greg Meno
--- Thorsten Kranzkowski <th@Marvin.DL8BCU.ampr.org>
wrote:
> On Fri, Jun 23, 2000 at 10:06:35PM -0700, Linus
> Torvalds wrote:
> > So if it doesn't compile for you, you must be
> doing something wrong.
> 
> Ok - it compiles well - but unfortunately it doesn't
> boot:
> 
> 
> <snip>
> Bootstrap complete, kernel @ 0xfffffc0000810000, sp
> @ 0xfffffc0000304000
> .... turning on virtual addressing and jumping to
> the Linux Kernel
> 
>
-----------------------------------------------------------
> 
> valid Milo reboot block found
> </snip>
> 
> 
> .... and MILO loops trying to load the kernel over
> and over again.
> Several -test1-acXX kernels worked. 
> 
> Alpha AXPpci33 'Noname'
> gcc version 2.96 20000530 (experimental)
> 'MILO in Flash-ROM'
> 
> 
> Any Ideas?
> 
> Bye,
> Thorsten
> -- 
> | Thorsten Kranzkowski        Internet:
> dl8bcu@gmx.net                        |
> | Mobile: ++49 170 1876134       Snail: Niemannsweg
> 30, 49201 Dissen, Germany |
> | Ampr: dl8bcu@db0lj.#rpl.deu.eu,
> dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |
> 
> -- 
> To unsubscribe: send e-mail to
> axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to
> axp-list@redhat.com
> 


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
  2000-06-25 11:35     ` Linux-2.4.0-test2 Ivan Kokshaysky
@ 2000-06-25 16:27       ` Richard Henderson
  2000-06-25 17:26         ` Linux-2.4.0-test2 werner
       [not found]         ` <Pine.LNX.4.21.0006251933250.20731-100000@inspiron.random>
  2000-06-25 17:24       ` Linux-2.4.0-test2 werner
  1 sibling, 2 replies; 13+ messages in thread
From: Richard Henderson @ 2000-06-25 16:27 UTC (permalink / raw)
  To: axp-list; +Cc: Kernel Mailing List

On Sun, Jun 25, 2000 at 03:35:22PM +0400, Ivan Kokshaysky wrote:
> Is it possible to utilize a memory not used by console?

Yes.  I'd had a patch for that once, but it caused problems
on the ds20s.  Andrea had the same problem with a similar patch.
Not sure what's going on there -- perhaps a busted SRM.


r~


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
  2000-06-25 11:35     ` Linux-2.4.0-test2 Ivan Kokshaysky
  2000-06-25 16:27       ` Linux-2.4.0-test2 Richard Henderson
@ 2000-06-25 17:24       ` werner
  1 sibling, 0 replies; 13+ messages in thread
From: werner @ 2000-06-25 17:24 UTC (permalink / raw)
  To: axp-list

Ivan Kokshaysky wrote:

> On Sat, Jun 24, 2000 at 02:56:18PM -0700, Richard Henderson wrote:
> > "Fixed" thus.  Upgrade to aboot 0.7 for srm.  I don't know if
> > any version of MILO honors the load address properly.
> >
> Milo-2.2 does. Though it puts command line in the wrong place
> and passes incorrect memory map. I've almost finished a fix.
>
> But there is another problem using the new start address - currently
> it's just a waste of 5Mb of RAM on anything except Wildfire.
> Is it possible to utilize a memory not used by console?
>
> Ivan.
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

aboot-0.6 with 2.2.17pre5
---------------------
Jun 24 17:37:09 d23-155 kernel: Linux version 2.2.17pre5  (gcc version
2.96 20000621 (experimental)) #3 Wed Jun 21 21:07:11 PDT 2000
Jun 24 17:37:09 d23-155 kernel: Booting on Tsunami variation Webbrick
using machine vector Webbrick from SRM
Jun 24 17:37:09 d23-155 kernel: HWRPB cycle frequency (462962962) seems
inaccurate - using the measured value of 462384180 Hz
Jun 24 17:37:09 d23-155 kernel: Console: colour VGA+ 80x25
Jun 24 17:37:09 d23-155 kernel: Calibrating delay loop... 920.65
BogoMIPS
Jun 24 17:37:09 d23-155 kernel: Memory: 255072k available
Jun 24 17:37:09 d23-155 kernel: Dentry hash table entries: 32768 (order
6, 512k)
Jun 24 17:37:09 d23-155 kernel: Buffer cache hash table entries: 262144
(order 8, 2048k)
Jun 24 17:37:09 d23-155 kernel: Page cache hash table entries: 32768
(order 5, 256k)
Jun 24 17:37:09 d23-155 kernel: POSIX conformance testing by UNIFIX
Jun 24 17:37:09 d23-155 kernel: Alpha PCI BIOS32 revision 0.04
Jun 24 17:37:09 d23-155 kernel: PCI: Probing PCI hardware
Jun 24 17:37:09 d23-155 kernel: Linux NET4.0 for Linux 2.2
Jun 24 17:37:09 d23-155 kernel: Based upon Swansea University Computer
Society NET3.039
Jun 24 17:37:09 d23-155 kernel: NET4: Unix domain sockets 1.0 for Linux
NET4.0. Jun 24 17:37:09 d23-155 kernel: NET4: Linux TCP/IP 1.0 for
NET4.0
Jun 24 17:37:09 d23-155 kernel: IP Protocols: ICMP, UDP, TCP, IL
Jun 24 17:37:09 d23-155 kernel: TCP: Hash tables configured (ehash
262144 bhash 65536)

aboot-0.7 with 2.4.0-test2
---------------------
Jun 24 18:18:56 d23-155 kernel: Linux version 2.4.0-test2 (gcc version
2.96 20000623 (experimental)) #2 Sat Jun 24 18:14:50 PDT 2000
Jun 24 18:18:56 d23-155 kernel: Booting on Tsunami variation Webbrick
using machine vector Webbrick from SRM
Jun 24 18:18:56 d23-155 kernel: Command line: root=/dev/hdb3
Jun 24 18:18:56 d23-155 kernel: memcluster 0, usage 1, start        0,
end      256
Jun 24 18:18:56 d23-155 kernel: memcluster 1, usage 0, start      256,
end    32675
Jun 24 18:18:56 d23-155 kernel: memcluster 2, usage 1, start    32675,
end    32768
Jun 24 18:18:56 d23-155 kernel: freeing pages 1296:32675
Jun 24 18:18:56 d23-155 kernel: On node 0 totalpages: 32768
Jun 24 18:18:56 d23-155 kernel: zone(0): 32768 pages.
Jun 24 18:18:56 d23-155 kernel: zone(1): 0 pages.
Jun 24 18:18:56 d23-155 atd: atd startup succeeded
Jun 24 18:18:56 d23-155 kernel: zone(2): 0 pages.
Jun 24 18:18:56 d23-155 kernel: Kernel command line: root=/dev/hdb3
Jun 24 18:18:56 d23-155 kernel: Console: colour VGA+ 80x25
Jun 24 18:18:56 d23-155 kernel: Calibrating delay loop... 920.65
BogoMIPS
Jun 24 18:18:56 d23-155 kernel: Memory: 246248k/261400k available (1260k
kernel code, 13104k reserved, 322k data, 224k init)
Jun 24 18:18:56 d23-155 kernel: Dentry-cache hash table entries: 32768
(order: 6, 524288 bytes)
Jun 24 18:18:56 d23-155 kernel: Buffer-cache hash table entries: 8192
(order: 3, 65536 bytes)
Jun 24 18:18:56 d23-155 kernel: Page-cache hash table entries: 32768
(order: 5, 262144 bytes)
Jun 24 18:18:56 d23-155 kernel: kmem_create: Poisoning requested, but
con given - bdev_cache
Jun 24 18:18:56 d23-155 kernel: Inode-cache hash table entries: 16384
(order: 5, 262144 bytes)
Jun 24 18:18:56 d23-155 kernel: kmem_create: Poisoning requested, but
con given - inode_cache
Jun 24 18:18:56 d23-155 kernel: Inode-cache hash table entries: 16384
(order: 5, 262144 bytes)
Jun 24 18:18:56 d23-155 kernel: kmem_create: Poisoning requested, but
con given - inode_cache


The difference is quite significant 255072k versus 246248k. I'm glad I
bought two
extra  DIMMS recently.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
  2000-06-25 16:27       ` Linux-2.4.0-test2 Richard Henderson
@ 2000-06-25 17:26         ` werner
  2000-06-25 20:15           ` Linux-2.4.0-test2 Richard Henderson
       [not found]         ` <Pine.LNX.4.21.0006251933250.20731-100000@inspiron.random>
  1 sibling, 1 reply; 13+ messages in thread
From: werner @ 2000-06-25 17:26 UTC (permalink / raw)
  To: axp-list

Richard Henderson wrote:

> On Sun, Jun 25, 2000 at 03:35:22PM +0400, Ivan Kokshaysky wrote:
> > Is it possible to utilize a memory not used by console?
>
> Yes.  I'd had a patch for that once, but it caused problems
> on the ds20s.  Andrea had the same problem with a similar patch.
> Not sure what's going on there -- perhaps a busted SRM.
>
> r~
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

can you post the patch on the list, I'll be glad to test it using the
latest SRM.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
  2000-06-25 17:26         ` Linux-2.4.0-test2 werner
@ 2000-06-25 20:15           ` Richard Henderson
  2000-06-26  0:05             ` Linux-2.4.0-test2 werner
  0 siblings, 1 reply; 13+ messages in thread
From: Richard Henderson @ 2000-06-25 20:15 UTC (permalink / raw)
  To: axp-list

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

On Sun, Jun 25, 2000 at 09:26:37AM -0800, werner@darkwing.uoregon.edu wrote:
> can you post the patch on the list, I'll be glad to test it using the
> latest SRM.

Note that it's not a problem with SRM in general.  It works
just fine on my SX164.  But last time I tried it on the DS20,
I saw corruption in the memory being allocated for the PCI
configury.

Anyway, here's the patch updated to 2.4.0-test2-ac1.


r~

[-- Attachment #2: d-2402-memory --]
[-- Type: text/plain, Size: 3270 bytes --]

--- arch/alpha/kernel/setup.c.orig	Sat Jun 24 13:06:24 2000
+++ arch/alpha/kernel/setup.c	Sun Jun 25 13:04:00 2000
@@ -246,11 +246,12 @@ get_mem_size_limit(char *s)
 }
 
 static void __init
-setup_memory(void * kernel_end)
+setup_memory(void *kernel_end)
 {
 	struct memclust_struct * cluster;
 	struct memdesc_struct * memdesc;
-	unsigned long start_pfn, bootmap_size, bootmap_pages, bootmap_start;
+	unsigned long start_kernel_pfn, end_kernel_pfn;
+	unsigned long bootmap_size, bootmap_pages, bootmap_start;
 	unsigned long start, end;
 	int i;
 
@@ -282,12 +283,13 @@ setup_memory(void * kernel_end)
 		max_low_pfn = mem_size_limit;
 	}
 
-	/* Find the end of the memory used by the kernel.  */
-	start_pfn = PFN_UP(virt_to_phys(kernel_end));
+	/* Find the bounds of kernel memory.  */
+	start_kernel_pfn = PFN_DOWN(KERNEL_START_PHYS);
+	end_kernel_pfn = PFN_UP(virt_to_phys(kernel_end));
 	bootmap_start = -1;
 
  try_again:
-	if (max_low_pfn <= start_pfn)
+	if (max_low_pfn <= end_kernel_pfn)
 		panic("not enough memory to boot");
 
 	/* We need to know how many physically contiguous pages
@@ -301,14 +303,19 @@ setup_memory(void * kernel_end)
 
 		start = cluster->start_pfn;
 		end = start + cluster->numpages;
-		if (end <= start_pfn)
-			continue;
 		if (start >= max_low_pfn)
 			continue;
-		if (start < start_pfn)
-			start = start_pfn;
 		if (end > max_low_pfn)
 			end = max_low_pfn;
+		if (start < start_kernel_pfn) {
+			if (end > end_kernel_pfn
+			    && end - end_kernel_pfn >= bootmap_pages) {
+				bootmap_start = end_kernel_pfn;
+				break;
+			} else if (end > start_kernel_pfn)
+				end = start_kernel_pfn;
+		} else if (start < end_kernel_pfn)
+			start = end_kernel_pfn;
 		if (end - start >= bootmap_pages) {
 			bootmap_start = start;
 			break;
@@ -329,22 +336,28 @@ setup_memory(void * kernel_end)
 			continue;
 
 		start = cluster->start_pfn;
-		if (start < start_pfn)
-			start = start_pfn;
-
 		end = cluster->start_pfn + cluster->numpages;
+		if (start >= max_low_pfn)
+			continue;
 		if (end > max_low_pfn)
 			end = max_low_pfn;
-
+		if (start < start_kernel_pfn) {
+			if (end > end_kernel_pfn) {
+				free_bootmem(PFN_PHYS(start),
+					     (PFN_PHYS(start_kernel_pfn)
+					      - PFN_PHYS(start)));
+				printk("freeing pages %ld:%ld\n",
+				       start, start_kernel_pfn);
+				start = end_kernel_pfn;
+			} else if (end > start_kernel_pfn)
+				end = start_kernel_pfn;
+		} else if (start < end_kernel_pfn)
+			start = end_kernel_pfn;
 		if (start >= end)
 			continue;
 
-		start = PFN_PHYS(start);
-		end = PFN_PHYS(end);
-
-		free_bootmem(start, end - start);
-		printk("freeing pages %ld:%ld\n",
-		       PFN_UP(start), PFN_DOWN(end));
+		free_bootmem(PFN_PHYS(start), PFN_PHYS(end) - PFN_PHYS(start));
+		printk("freeing pages %ld:%ld\n", start, end);
 	}
 
 	/* Reserve the bootmap memory.  */
@@ -461,11 +474,12 @@ void __init unregister_srm_console(void)
 void __init
 setup_arch(char **cmdline_p)
 {
+	extern char _end[];
+
 	struct alpha_machine_vector *vec = NULL;
 	struct percpu_struct *cpu;
 	char *type_name, *var_name, *p;
-	extern char _end;
-	void * kernel_end = &_end; /* end of kernel */
+	void *kernel_end = _end; /* end of kernel */
 
 	/*
 	 * Let vmlinux.lds know where to put the kernel start.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
  2000-06-24 21:56   ` Linux-2.4.0-test2 Richard Henderson
  2000-06-25 11:35     ` Linux-2.4.0-test2 Ivan Kokshaysky
@ 2000-06-25 21:40     ` Thorsten Kranzkowski
  2000-06-26 10:41       ` Linux-2.4.0-test2 Ivan Kokshaysky
  1 sibling, 1 reply; 13+ messages in thread
From: Thorsten Kranzkowski @ 2000-06-25 21:40 UTC (permalink / raw)
  To: axp-list; +Cc: Kernel Mailing List

On Sat, Jun 24, 2000 at 02:56:18PM -0700, Richard Henderson wrote:
> On Sat, Jun 24, 2000 at 07:48:27PM +0000, Thorsten Kranzkowski wrote:
> > Ok - it compiles well - but unfortunately it doesn't boot:
> 
> "Fixed" thus.  Upgrade to aboot 0.7 for srm.  I don't know if
> any version of MILO honors the load address properly.
> 

Thanks - It works now with MILO !



When executing my rc.* scripts I see ~30 of these messages:

mount: Exception at [<fffffc000057c760>] (fffffc000057c7a0) handled successfully

mount actually succeeds (unlike -test1-acXX where it oopsed).
A more detailed report will follow.


Bye,
Thorsten


-- 
| Thorsten Kranzkowski        Internet: dl8bcu@gmx.net                        |
| Mobile: ++49 170 1876134       Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
  2000-06-25 20:15           ` Linux-2.4.0-test2 Richard Henderson
@ 2000-06-26  0:05             ` werner
  0 siblings, 0 replies; 13+ messages in thread
From: werner @ 2000-06-26  0:05 UTC (permalink / raw)
  To: axp-list

Richard Henderson wrote:

> On Sun, Jun 25, 2000 at 09:26:37AM -0800, werner@darkwing.uoregon.edu wrote:
> > can you post the patch on the list, I'll be glad to test it using the
> > latest SRM.
>
> Note that it's not a problem with SRM in general.  It works
> just fine on my SX164.  But last time I tried it on the DS20,
> I saw corruption in the memory being allocated for the PCI
> configury.
>

Thanks for the patch.

With your patch applied to 2.4.0-test2-ac1 and aboot-0.7 I now see

Jun 25 16:52:04 d23-155 kernel: Memory: 252120k/261400k available (1266k kernel
code, 7232k reserved, 323k data, 232k init)

but it is still not quite up to the 255072k available with 2.2.17pre5+aboot-0.6






^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
  2000-06-25 21:40     ` Linux-2.4.0-test2 Thorsten Kranzkowski
@ 2000-06-26 10:41       ` Ivan Kokshaysky
  0 siblings, 0 replies; 13+ messages in thread
From: Ivan Kokshaysky @ 2000-06-26 10:41 UTC (permalink / raw)
  To: axp-list, Kernel Mailing List

On Sun, Jun 25, 2000 at 09:40:30PM +0000, Thorsten Kranzkowski wrote:
> mount: Exception at [<fffffc000057c760>] (fffffc000057c7a0) handled successfully
>
It's annoying but harmless.
copy_mount_options() in fs/super.c:
...
	size = TASK_SIZE - (unsigned long)data;
	if (size > PAGE_SIZE)
		size = PAGE_SIZE;

	i = size - copy_from_user((void *)page, data, size);
...
Usually it tries to copy PAGE_SIZE bytes while much less are available.
x86 folks don't print anything on exception, so they don't care ;-)

> mount actually succeeds (unlike -test1-acXX where it oopsed).
I don't think it's related. Most test1-ac kernels worked fine for me.

Ivan.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
       [not found]         ` <Pine.LNX.4.21.0006251933250.20731-100000@inspiron.random>
@ 2000-06-27 22:24           ` Richard Henderson
  2000-06-28 14:44             ` Linux-2.4.0-test2 Robert Williams
  0 siblings, 1 reply; 13+ messages in thread
From: Richard Henderson @ 2000-06-27 22:24 UTC (permalink / raw)
  To: Andrea Arcangeli; +Cc: axp-list, Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 532 bytes --]

On Sun, Jun 25, 2000 at 07:35:19PM +0200, Andrea Arcangeli wrote:
> Exactly. We originally tried to reuse such memory (the one reported as
> real memory) but it caused my machine to hang at boot. Strange thing is
> that 2.2.x seems to reuse the memory before the kernel too.

I've just tried my recently posted patch on the ds20 and
it worked just fine.  That makes 5 machines total, all with
different memory configurations and representing all the
different boot loaders.

Give it a try on your machine and see what happens.


r~

[-- Attachment #2: d-2402-memory --]
[-- Type: text/plain, Size: 3270 bytes --]

--- arch/alpha/kernel/setup.c.orig	Sat Jun 24 13:06:24 2000
+++ arch/alpha/kernel/setup.c	Sun Jun 25 13:04:00 2000
@@ -246,11 +246,12 @@ get_mem_size_limit(char *s)
 }
 
 static void __init
-setup_memory(void * kernel_end)
+setup_memory(void *kernel_end)
 {
 	struct memclust_struct * cluster;
 	struct memdesc_struct * memdesc;
-	unsigned long start_pfn, bootmap_size, bootmap_pages, bootmap_start;
+	unsigned long start_kernel_pfn, end_kernel_pfn;
+	unsigned long bootmap_size, bootmap_pages, bootmap_start;
 	unsigned long start, end;
 	int i;
 
@@ -282,12 +283,13 @@ setup_memory(void * kernel_end)
 		max_low_pfn = mem_size_limit;
 	}
 
-	/* Find the end of the memory used by the kernel.  */
-	start_pfn = PFN_UP(virt_to_phys(kernel_end));
+	/* Find the bounds of kernel memory.  */
+	start_kernel_pfn = PFN_DOWN(KERNEL_START_PHYS);
+	end_kernel_pfn = PFN_UP(virt_to_phys(kernel_end));
 	bootmap_start = -1;
 
  try_again:
-	if (max_low_pfn <= start_pfn)
+	if (max_low_pfn <= end_kernel_pfn)
 		panic("not enough memory to boot");
 
 	/* We need to know how many physically contiguous pages
@@ -301,14 +303,19 @@ setup_memory(void * kernel_end)
 
 		start = cluster->start_pfn;
 		end = start + cluster->numpages;
-		if (end <= start_pfn)
-			continue;
 		if (start >= max_low_pfn)
 			continue;
-		if (start < start_pfn)
-			start = start_pfn;
 		if (end > max_low_pfn)
 			end = max_low_pfn;
+		if (start < start_kernel_pfn) {
+			if (end > end_kernel_pfn
+			    && end - end_kernel_pfn >= bootmap_pages) {
+				bootmap_start = end_kernel_pfn;
+				break;
+			} else if (end > start_kernel_pfn)
+				end = start_kernel_pfn;
+		} else if (start < end_kernel_pfn)
+			start = end_kernel_pfn;
 		if (end - start >= bootmap_pages) {
 			bootmap_start = start;
 			break;
@@ -329,22 +336,28 @@ setup_memory(void * kernel_end)
 			continue;
 
 		start = cluster->start_pfn;
-		if (start < start_pfn)
-			start = start_pfn;
-
 		end = cluster->start_pfn + cluster->numpages;
+		if (start >= max_low_pfn)
+			continue;
 		if (end > max_low_pfn)
 			end = max_low_pfn;
-
+		if (start < start_kernel_pfn) {
+			if (end > end_kernel_pfn) {
+				free_bootmem(PFN_PHYS(start),
+					     (PFN_PHYS(start_kernel_pfn)
+					      - PFN_PHYS(start)));
+				printk("freeing pages %ld:%ld\n",
+				       start, start_kernel_pfn);
+				start = end_kernel_pfn;
+			} else if (end > start_kernel_pfn)
+				end = start_kernel_pfn;
+		} else if (start < end_kernel_pfn)
+			start = end_kernel_pfn;
 		if (start >= end)
 			continue;
 
-		start = PFN_PHYS(start);
-		end = PFN_PHYS(end);
-
-		free_bootmem(start, end - start);
-		printk("freeing pages %ld:%ld\n",
-		       PFN_UP(start), PFN_DOWN(end));
+		free_bootmem(PFN_PHYS(start), PFN_PHYS(end) - PFN_PHYS(start));
+		printk("freeing pages %ld:%ld\n", start, end);
 	}
 
 	/* Reserve the bootmap memory.  */
@@ -461,11 +474,12 @@ void __init unregister_srm_console(void)
 void __init
 setup_arch(char **cmdline_p)
 {
+	extern char _end[];
+
 	struct alpha_machine_vector *vec = NULL;
 	struct percpu_struct *cpu;
 	char *type_name, *var_name, *p;
-	extern char _end;
-	void * kernel_end = &_end; /* end of kernel */
+	void *kernel_end = _end; /* end of kernel */
 
 	/*
 	 * Let vmlinux.lds know where to put the kernel start.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Linux-2.4.0-test2
  2000-06-27 22:24           ` Linux-2.4.0-test2 Richard Henderson
@ 2000-06-28 14:44             ` Robert Williams
  0 siblings, 0 replies; 13+ messages in thread
From: Robert Williams @ 2000-06-28 14:44 UTC (permalink / raw)
  To: axp-list

Richard Henderson wrote:

> On Sun, Jun 25, 2000 at 07:35:19PM +0200, Andrea Arcangeli wrote:
> > Exactly. We originally tried to reuse such memory (the one reported as
> > real memory) but it caused my machine to hang at boot. Strange thing is
> > that 2.2.x seems to reuse the memory before the kernel too.
>
> I've just tried my recently posted patch on the ds20 and
> it worked just fine.  That makes 5 machines total, all with
> different memory configurations and representing all the
> different boot loaders.
>
> Give it a try on your machine and see what happens.

We have a PC164 machine booting and running fine so far
with 2.4.0-test2 + the test3-pre1 patch.

Bob Williams



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2000-06-28 14:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-25 13:12 Linux-2.4.0-test2 GReg meno
     [not found] <Pine.LNX.4.10.10006232158510.962-100000@penguin.transmeta.com>
2000-06-24 19:48 ` Linux-2.4.0-test2 Thorsten Kranzkowski
2000-06-24 21:56   ` Linux-2.4.0-test2 Richard Henderson
2000-06-25 11:35     ` Linux-2.4.0-test2 Ivan Kokshaysky
2000-06-25 16:27       ` Linux-2.4.0-test2 Richard Henderson
2000-06-25 17:26         ` Linux-2.4.0-test2 werner
2000-06-25 20:15           ` Linux-2.4.0-test2 Richard Henderson
2000-06-26  0:05             ` Linux-2.4.0-test2 werner
     [not found]         ` <Pine.LNX.4.21.0006251933250.20731-100000@inspiron.random>
2000-06-27 22:24           ` Linux-2.4.0-test2 Richard Henderson
2000-06-28 14:44             ` Linux-2.4.0-test2 Robert Williams
2000-06-25 17:24       ` Linux-2.4.0-test2 werner
2000-06-25 21:40     ` Linux-2.4.0-test2 Thorsten Kranzkowski
2000-06-26 10:41       ` Linux-2.4.0-test2 Ivan Kokshaysky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox