Date: Fri, 30 Sep 2005 08:43:00 -0400 From: "Paul V. Bolotoff" <walter@alasir.com> To: freebsd-alpha@freebsd.org Subject: [patch] cia BWX oddity in RELENG4 Message-ID: <E1ELKE8-0004RA-1b@webmail05.int.bizland.net>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format... ------------=_1128084180-9986-2 Content-Disposition: inline Content-Transfer-Encoding: binary Content-Type: text/plain Good time of day, There is a strange issue in alpha/pci/cia.c, which prevents the kernel from utilising the BWX features of the Alcor 2 chipset (21172). In fact, the code makes no difference between Alcor 2 and Alcor (21171), which has no BWX support at all. The patch attached fixes this behaviour. Before and after the patch. As you can see, BWX has been enabled successfully. The system (AlphaServer 800) is up and running as usual. # sysctl -a | grep hw.chipset hw.chipset.type: cia hw.chipset.bwx: 0 hw.chipset.ports: 573378134016 hw.chipset.memory: 549755813888 hw.chipset.dense: 575525617664 hw.chipset.hae_mask: 3758096384 hw.chipset.type: alcor2 hw.chipset.bwx: 1 hw.chipset.ports: 588410519552 hw.chipset.memory: 584115552256 hw.chipset.dense: 575525617664 hw.chipset.hae_mask: 0 By the way, I see this issue has been fixed in RELENG5 some time ago, though in somewhat different way. Why not in RELENG4? PVB ------------=_1128084180-9986-2 Content-Type: application/octet-stream; name="cia.patch" Content-Disposition: inline; filename="cia.patch" Content-Transfer-Encoding: base64 LS0tIC91c3Ivc3JjL3N5cy9hbHBoYS9wY2kvY2lhLmMJRnJpIERlYyAgMyAw ODo0MDo1MyAxOTk5CisrKyAvdXNyL3NyYy9zeXMvYWxwaGEvcGNpL2NpYS5j Lm5ldwlUaHUgU2VwIDI5IDIzOjI4OjQ2IDIwMDUKQEAgLTg3MCwxNSArODcw LDE5IEBACiAKIAlpZiAoYWxwaGFfaW1wbHZlcigpICE9IEFMUEhBX0lNUExW RVJfRVY1CiAJICAgIHx8IGFscGhhX2FtYXNrKEFMUEhBX0FNQVNLX0JXWCkK LQkgICAgfHwgIShjaWFfY29uZmlnICYgQ05GR19CV0VOKSkK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nd4ID0g MTsKKwlpZiAoY2hpcHNldF9id3gpIHsKKwkJaWYgKGNpYV9pc3B5eGlzKQor CQkgICAgIHNucHJpbnRmKGNoaXBzZXRfdHlwZSwgc2l6ZW9mKGNoaXBzZXRf dHlwZSksICJweXhpcyIpOworCQllbHNlIHNucHJpbnRmKGNoaXBzZXRfdHlw ZSwgc2l6ZW9mKGNoaXBzZXRfdHlwZSksICJhbGNvcjIiKTsKIAkJY2hpcHNl dF9wb3J0cyA9IENJQV9FVjU2X0JXSU87CiAJCWNoaXBzZXRfbWVtb3J5ID0g Q0lBX0VWNTZfQldNRU07Ci0JCWNoaXBzZXRfZGVuc2UgPSBDSUFfUENJX0RF TlNFOwogCX0gZWxzZSB7Ci0JCXNucHJpbnRmKGNoaXBzZXRfdHlwZSwgc2l6 ZW9mKGNoaXBzZXRfdHlwZSksICJjaWEiKTsKLQkJY2hpcHNldF9id3ggPSAw OworCQlzbnByaW50ZihjaGlwc2V0X3R5cGUsIHNpemVvZihjaGlwc2V0X3R5 cGUpLCAiYWxjb3IiKTsKIAkJY2hpcHNldF9wb3J0cyA9IENJQV9QQ0lfU0lP MTsKIAkJY2hpcHNldF9tZW1vcnkgPSBDSUFfUENJX1NNRU0xOwotCQljaGlw c2V0X2RlbnNlID0gQ0lBX1BDSV9ERU5TRTsKIAkJY2hpcHNldF9oYWVfbWFz ayA9IDdMIDw8IDI5OwogCX0KKwkJY2hpcHNldF9kZW5zZSA9IENJQV9QQ0lf REVOU0U7CiAKIAlidXNfZ2VuZXJpY19hdHRhY2goZGV2KTsKIAlyZXR1cm4g MDsK ------------=_1128084180-9986-2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1ELKE8-0004RA-1b>