From daniel_frazier@hp.com Wed, 7 Feb 2001 23:48:02 -0700 (MST) Date: Wed, 7 Feb 2001 23:48:02 -0700 (MST) From: PA-RISC Linux bug Tracking System daniel_frazier@hp.com Subject: [palinux-palo] Processed: your mail Processing commands for control@bugs.parisc-linux.org: > close 29 bug#29: syscall #166 sigaltstack needs 32-on-64-bit implementation bug closed, send any further explanations to Paul Bame > severity 17 wishlist bug#17: palo should check for attempts to boot from unusable partitions Severity set to `wishlist'. > severity 18 wishlist bug#18: elucidate usage message Severity set to `wishlist'. > severity 19 wishlist bug#19: ABI: change struct timeval to simplify 64-bit wrappers Severity set to `wishlist'. > close 16 bug#16: timer granularity sucks bug closed, send any further explanations to Paul Bame > End of message, stopping processing here. Please contact me if you need assistance. dann frazier (administrator, PA-RISC Linux bugs database) From None Date: None From: Subject: [palinux-palo] bug#31: palo's PDC calls fail with >= 2G RAM X-PA-RISC Linux-PR-Message: report 31 X-PA-RISC Linux-PR-Package: palo X-Loop: daniel_frazier@hp.com Received: via spool by bugs@bugs.parisc-linux.org id=B.98176728517060 (code B ref -1); Sat, 10 Feb 2001 01:18:01 GMT To: submit@bugs.parisc-linux.org Cc: grundler@cup.hp.com Date: Fri, 09 Feb 2001 17:00:00 -0700 From: Paul Bame Message-Id: Version: 9Feb2001 Package: palo Recent palo changes place stack in high memory according to the value of PAGE0->imm_mem_max. With >= 2G in the box, HPMCs occur inside PDC (pdc_boodio.c:boodev_read()). From None Date: None From: Subject: [palinux-palo] bug#31: Hack for palo with >= 2G RAM X-PA-RISC Linux-PR-Message: report 31 X-PA-RISC Linux-PR-Package: palo X-Loop: daniel_frazier@hp.com Received: via spool by 31-bugs@bugs.parisc-linux.org id=B31.98218986324623 (code B ref 31); Wed, 14 Feb 2001 22:33:02 GMT Message-Id: From: bame@riverrock.org Errors-To: bame@riverrock.org To: parisc-linux-cvs@parisc-linux.org, 31@bugs.parisc-linux.org Date: Wed, 14 Feb 2001 14:44:11 -0700 Sender: bame@bame.riverrock.org When palo's stack and heap got moved up to the top of the first memory module, things went wrong for machines with >= 2G ram. The culprit appears to be sign extension into the upper half of the double-word registers. Perhaps palo could be changed to prevent this sign extension, but for now it's easier to limit the "top" of RAM to 1G. This still allows for a more than generous ram disk while also using small-ram boxes efficiently. Index: crt0.S =================================================================== RCS file: /home/cvs/parisc/palo/ipl/crt0.S,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- crt0.S 2001/02/09 04:06:22 1.10 +++ crt0.S 2001/02/14 21:31:44 1.11 @@ -45,6 +45,16 @@ ldo R%(IMM_MAX_MEM)(%r3), %r3 ldw 0(%r3), %r3 + /* due to sign extension problems and PDC, limit RAM to 1G */ + /* this isn't efficient assembly but it doesn't matter here either */ +#define ARTIFICIAL_LIMIT (1*1024*1024*1024) + ldil L%(ARTIFICIAL_LIMIT), %r4 + ldo R%(ARTIFICIAL_LIMIT)(%r4), %r4 + cmpb,<< %r3, %r4, limit_ok + nop + copy %r4, %r3 + +limit_ok: /* stack is at top of initial mem module */ #define STACK_SIZE (64 * 1024) ldil L%(STACK_SIZE), %r4 From daniel_frazier@hp.com Wed, 14 Feb 2001 15:33:02 -0700 (MST) Date: Wed, 14 Feb 2001 15:33:02 -0700 (MST) From: PA-RISC Linux bug Tracking System daniel_frazier@hp.com Subject: [palinux-palo] Processed: your mail Processing commands for control@bugs.parisc-linux.org: > close 31 bug#31: palo's PDC calls fail with >= 2G RAM bug closed, send any further explanations to Paul Bame > End of message, stopping processing here. Please contact me if you need assistance. dann frazier (administrator, PA-RISC Linux bugs database) From None Date: None From: Subject: [palinux-palo] bug#31: [parisc-linux-cvs] Hack for palo with >= 2G RAM X-PA-RISC Linux-PR-Message: report 31 X-PA-RISC Linux-PR-Package: palo X-Loop: daniel_frazier@hp.com Received: via spool by 31-bugs@bugs.parisc-linux.org id=B31.98220453327571 (code B ref 31); Thu, 15 Feb 2001 02:48:01 GMT Message-Id: <200102150238.SAA11941@milano.cup.hp.com> X-Authentication-Warning: milano.cup.hp.com: grundler@localhost [127.0.0.1] didn't use HELO protocol To: bame@riverrock.org Cc: parisc-linux-cvs@parisc-linux.org, 31@bugs.parisc-linux.org In-reply-to: Your message of "Wed, 14 Feb 2001 14:44:11 PST." Date: Wed, 14 Feb 2001 18:37:55 -0800 From: Grant Grundler bame@riverrock.org wrote: > When palo's stack and heap got moved up to the top of the first memory > module, things went wrong for machines with >= 2G ram. The culprit > appears to be sign extension into the upper half of the double-word > registers. read "double-word registers" == PA2.0 CPU. I only saw this on A500. ie PAT PDC. Did this also occur on C3K/J5K/C200 type boxes as well? (Just curious and perhaps good for the record as well) thanks, grant Grant Grundler parisc-linux {PCI|IOMMU|SMP} hacker +1.408.447.7253