From owner-freebsd-current@FreeBSD.ORG Fri Feb 18 03:24:15 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAFE516A4CE; Fri, 18 Feb 2005 03:24:15 +0000 (GMT) Received: from pne-smtpout1-sn2.hy.skanova.net (pne-smtpout1-sn2.hy.skanova.net [81.228.8.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32F3843D41; Fri, 18 Feb 2005 03:24:15 +0000 (GMT) (envelope-from pawel.worach@telia.com) Received: from [127.0.0.1] (81.225.14.129) by pne-smtpout1-sn2.hy.skanova.net (7.1.026.7) (authenticated as u86211448) id 41E32167005DE136; Fri, 18 Feb 2005 04:23:43 +0100 Message-ID: <42155FBD.5050701@telia.com> Date: Fri, 18 Feb 2005 04:23:41 +0100 From: Pawel Worach User-Agent: Mozilla Thunderbird 1.0 (X11/20050214) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson References: <4213F066.2050708@root.org> <4214119B.2010909@telia.com> <421537E9.8050203@root.org> In-Reply-To: <421537E9.8050203@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org cc: current@freebsd.org Subject: Re: patch: p4tcc and speedstep cpufreq drivers X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2005 03:24:15 -0000 Nate Lawson wrote: > > Apologies. I found 2 bugs, one was not calling cpufreq_register() and > the other was that the code to detect acpi_perf (in ichss and est) was > incorrect. I've committed fixes for that and have updated the patch. > Please ues this version and test again. > On boot pre-seed PRNG does 'sysctl -a' which panics like this. - only cpufreq.ko loaded - last line of 'sysctl -a' output is "dev.cpu.0.%parent: acpi0" Fatal trap 12: page fault while in kernel mode fault virtual address = 0x63204b53 fault code = supervisor read, page not present instruction pointer = 0x8:0xc08ac32b stack pointer = 0x10:0xe4d38ab8 frame pointer = 0x10:0xe4d38ac4 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 56 (sysctl) [thread pid 56 tid 100043 ] Stopped at est_settings+0x1b: movzwl 0(%ecx),%eax db> tr Tracing pid 56 tid 100043 td 0xc2329450 est_settings(c2367880,c23c2e00,e4d38af4,c231b800,c23c2e00) at est_settings+0x1b cf_levels_method(c2367980,c2590000,e4d38b50,5000,1) at cf_levels_method+0x18a cf_get_method(c2367980,c258b000,c06d2c98,1,c228b960) at cf_get_method+0xb5 cpufreq_curr_sysctl(c236c740,c231b800,0,e4d38c08,e4d38c08) at cpufreq_curr_sysctl+0x96 sysctl_root(0,e4d38c78,4,e4d38c08,c2329450) at sysctl_root+0x134 userland_sysctl(c2329450,e4d38c78,4,0,bfbfdbac) at userland_sysctl+0x13c __sysctl(c2329450,e4d38d14,18,0,e4d38d20) at __sysctl+0xdc syscall(2f,2f,2f,bfbfdbac,bfbfe470) at syscall+0x330 Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (202, FreeBSD ELF32, __sysctl), eip = 0x280bdc3f, esp = 0xbfbfdb2c, ebp = 0xbfbfdb58 --- db> call doadump Dumping 1023 MB 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 384 400 416 432 448 464 480 496 512 528 544 560 576 592 608 624 640 656 672 688 704 720 736 752 768 784 800 816 832 848 864 880 896 912 928 944 960 976 992 1008 (kgdb) l *est_settings+0x1b 0x243b is in est_settings (/usr/src/sys/modules/cpufreq/../../i386/cpufreq/est.c:723). 718 719 if (*count < EST_MAX_SETTINGS) 720 return (E2BIG); 721 722 i = 0; 723 for (f = sc->freq_list; f->freq != 0; f++) { 724 sets[i].freq = f->freq; 725 sets[i].volts = f->volts; 726 sets[i].power = CPUFREQ_VAL_UNKNOWN; 727 sets[i].lat = EST_TRANS_LAT; -- Pawel