From owner-freebsd-ppc@freebsd.org Mon Nov 7 19:34:08 2016 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9300C35262 for ; Mon, 7 Nov 2016 19:34:08 +0000 (UTC) (envelope-from xelalex_maker@web.de) Received: from mout.web.de (mout.web.de [212.227.17.12]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.web.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 428CD3BF for ; Mon, 7 Nov 2016 19:34:07 +0000 (UTC) (envelope-from xelalex_maker@web.de) Received: from [192.168.1.4] ([2.162.202.132]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0MEVYz-1c1vri2kEj-00FnZq for ; Mon, 07 Nov 2016 20:33:59 +0100 Date: Mon, 7 Nov 2016 20:33:50 +0100 (CET) From: Alexander Klein X-X-Sender: xelalex_maker@Apfelinchen To: freebsd-ppc@freebsd.org Subject: A few glitches with 10.3-RELEASE on an iBook G4 Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-ID: X-Provags-ID: V03:K0:5jl5PMmQ9MfMkVlwIGM22M3W5O2woCKASS+Y2Vx85ewnCvcnV1q j6uevubMLy1RDa9ZvHbSq7FQ1k3OfGUOwbowrQChnTL6BuolccHINqV0YXMyIIPVpcFlX02 lAfj6lp8UqwM62/+tYL1yiI2KokTY7YE1CLHJ+iiVh6IjeaJmcauV5blG0LpIMNW4JZh8Y7 yh0eZIu7u4traNgaqNcwg== X-UI-Out-Filterresults: notjunk:1;V01:K0:6QsnajB2ZxY=:zxgKs9ioElLkTLaznApAdR nrJQfCMZkwegzWxPZSgaieLNJDofanbO6tYT6XQy6bSvwnZ5KABwXtEHmxw49B9BzQK2UL13g gbnxjs4ZSksTYO6uow7Wluf+R99z59fEjKS4Q3att6qd3IB+niAiYKsUf+KNwH66I3ykIbPnj +qGwiclDv0/FRE1wTRxYwoqcoKEWQwirdb4igl6IrDXmTH1HUoWfrkGrw5/xzQzKJT7h3BPOK A4IsPxnuqU7d08fFKKdq7oZkfSZVymXDG0IATal7fy26dy9RLnE5nsowBZjP8CT2x5QNhOGGG 5kQmtMyw2jVzEmN4hciFmfdh974PCh3Dt1tvbC7dNfu+mDjmU1SLmpZTVb7Iw4a1aFp5jNj5d WkWtHHFpTOTiq9IUnHN7APc14TL1PCT1VphqlK+iQ9ZXXDpIRx60RTztWFu7x5YgtmBVPDWz2 RzPACZtVkIQt5zOeBLvTCsdRfjKnMlaUH2+CvnVXDENQggsYUC3D+nHmLwCD6hdIfsVF67K0s FntIg/kfQ8EB86AHcZxf/SGiG0KNB1AFHPfk1Q7JYRiLaOd5uoxXTV4MOppnVyRFO0BmZwP3B Yxw8PPUAu9z59cI0gj/UX/2hKL9a6iKNJVx485J8hwr/4NatvVfSPcvrEn+jFCnVdlx7EDI4B ey7SGutzEYlpKmTLXI2EFgPUZLQzUjxCHE77M4fbWUS9xgflbPTRk1opUm0pwVLmPtE+K4Q0m E/mZ3fddwZ4OzhgdnhsozVvVSdh/6+5s1Hp3Bd8LsJg4B1YXiLarR0spj83fojDcsi5fVfNYE L0KkFky Content-Type: text/plain; CHARSET=ISO-8859-15; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2016 19:34:08 -0000 Hello, the other day I decided to resurrect my old iBook G4 using FreeBSD just to= =20 see how far I'd get in setting up an evironment without X or whatever. Since the hardware is pretty old, I really wasn't expecting everything to= =20 work right out of the box with a modern system, but generally most things= =20 work pretty well. There are a few points, however, where I simply got=20 stuck, and maybe someone on the list has a few hints for me: 1. Keyboard: The keymaps I could choose during install weren't all that useful, but I=20 modified an existing one to suit my needs for the time being. However,=20 there are still a few quirks left: The machine has a German keyboard, and it seems that both, the ^/=B0-key in= =20 the top left corner, as well as the fn-key in the bottom left corner get=20 mapped to scancode 0, which results in some unwelcome duplicated features= =20 for fn, such as generating additional carets when switching virtual=20 consoles with fn+ctrl+alt+ 2. Screen: I can't seem to do anything useful with vidcontrol when it comes to=20 switching video modes. First of all, vidcontrol -i mode only provides me=20 with the following: mode# flags type size font window linear buff= er ---------------------------------------------------------------------------= --- 0 (0x000) 0x00000000 T 0x0 0x1099121152 0xffffd948 1074888k = -9k 0xffffd900 1073243k 1 (0x001) 0x00000000 T 0x0 0x1099121152 0xffffd948 1074888k = -9k 0xffffd900 1073243k =2E.. and so on for another few hundred lines. This may be related to the video card not being detected properly. I'm=20 pretty sure it's ATI, but look what sysctl says with respect to the=20 backlight: dev.backlight.0.level: 0 dev.backlight.0.%parent: vgapci0 dev.backlight.0.%pnpinfo:=20 dev.backlight.0.%location:=20 dev.backlight.0.%driver: backlight dev.backlight.0.%desc: PowerBook backlight for nVidia graphics dev.backlight.%parent: Needless to say that changing the backlight-level doesn't do a thing, and= =20 vidcontrol -c blink as well as vidcontrol -t 10 don't do anything useful,= =20 either. 3. Sound: While a sound device is detected, and the startup sound works just fine,=20 FreeBSD has yet to produce a single beep; here's /dev/soundstat: Installed devices: pcm0: (play) default And this is what sysctl knows about sound: device=09snd_ai2s device=09snd_davbus device=09snd_uaudio hw.snd.default_auto: 1 hw.snd.version: 2009061500/powerpc hw.snd.default_unit: 0 hw.snd.maxautovchans: 16 hw.snd.verbose: 0 hw.snd.vpc_mixer_bypass: 1 hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97 hw.snd.feeder_rate_polyphase_max: 183040 hw.snd.feeder_rate_min: 1 hw.snd.feeder_rate_max: 2016000 hw.snd.feeder_rate_round: 25 hw.snd.feeder_rate_quality: 1 hw.snd.feeder_eq_presets: PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,8= 8200,96000,176400,192000 hw.snd.feeder_eq_exact_rate: 0 hw.snd.compat_linux_mmap: 0 hw.snd.basename_clone: 1 hw.snd.report_soft_formats: 1 hw.snd.report_soft_matrix: 1 hw.snd.latency: 5 hw.snd.latency_profile: 1 hw.snd.vpc_autoreset: 1 hw.snd.vpc_0db: 45 hw.snd.vpc_reset: 0 However, there's no /dev/dsp 4. CPU: The machine ought to be running at 800MHz, but it seems to come up with=20 some kind of frequency throttling according to dmesg: cpu0: Motorola PowerPC 7455 revision 3.3, 614.62 MHz cpu0: Features 9c000000 cpu0: HID0 8450c0bc cpulist0: on ofwbus0 cpu0: on cpulist0 Anything related to cpufreq is missing from sysctl -a output. Are those bugs, or am I doing something wrong? I'll be grateful for any hints. Best regards, =09Alexander From owner-freebsd-ppc@freebsd.org Mon Nov 7 19:40:30 2016 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A1E2C3534F for ; Mon, 7 Nov 2016 19:40:30 +0000 (UTC) (envelope-from brenohl@br.ibm.com) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "thawte SHA256 SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A0927AC for ; Mon, 7 Nov 2016 19:40:29 +0000 (UTC) (envelope-from brenohl@br.ibm.com) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uA7JceEA028284 for ; Mon, 7 Nov 2016 14:40:28 -0500 Received: from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208]) by mx0a-001b2d01.pphosted.com with ESMTP id 26jsq5mvpj-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 07 Nov 2016 14:40:27 -0500 Received: from localhost by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 7 Nov 2016 14:40:27 -0500 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 7 Nov 2016 14:40:24 -0500 Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id C545C38C8041 for ; Mon, 7 Nov 2016 14:40:20 -0500 (EST) Received: from b01ledav03.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uA7JeLdm32112788 for ; Mon, 7 Nov 2016 19:40:21 GMT Received: from b01ledav03.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E7B41B2050 for ; Mon, 7 Nov 2016 14:40:20 -0500 (EST) Received: from [9.86.26.163] (unknown [9.86.26.163]) by b01ledav03.gho.pok.ibm.com (Postfix) with ESMTP id 9B2D2B204E for ; Mon, 7 Nov 2016 14:40:20 -0500 (EST) To: freebsd-ppc@freebsd.org Subject: Why Huge pages must be enabled to boot a FreeBSD VM? From: Breno Leitao Date: Mon, 7 Nov 2016 17:40:19 -0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16110719-0044-0000-0000-000001ACCAE0 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006040; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000189; SDB=6.00777829; UDB=6.00374534; IPR=6.00555145; BA=6.00004861; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013241; XFM=3.00000011; UTC=2016-11-07 19:40:25 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16110719-0045-0000-0000-000005D9D02F Message-Id: <0c4b5c7e-1078-4d42-426c-3091da17e501@br.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-11-07_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611070360 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2016 19:40:30 -0000 Hello, I am wondering why Huge pages must be enabled in the hypervisor (KVM) in order to boot FreeBSD as a guest. I was facing the issue below, and then I found that I didn't have enough huge pages available. Enabling the amount of huge pages available solved this issue. Kernel entry at 0x1023c0 ... panic: Page replacement error: -4 cpuid = 0 KDB: stack backtrace: #0 0x6144fc at ??+0 #1 0x614598 at ??+0 #2 0xa7b078 at ??+0 #3 0xa31544 at ??+0 #4 0xa33010 at ??+0 #5 0xa7b480 at ??+0 #6 0xa6b2bc at ??+0 #7 0xa64c74 at ??+0 #8 0x102458 at ??+0 Uptime: 1s If huge pages is not enabled, is there a way to proceed with normal pages other than crashing the VM? Thank you, Breno