Re: GEOM_BDE
In message <[EMAIL PROTECTED]>, Pawel Jakub Dawidek wrote: >On Wed, Oct 15, 2003 at 09:56:57AM +0200, Poul-Henning Kamp wrote: >+> >>I have problem with compiling my kernel. I wanted to play with gbde so= > i >+> >>added options GEOM_BDE.I have been doing cvsup at Tue Oct 14 20:43:17 = >2003 CEST >+> >>My config kernel: >+> > >+> >>/usr/src/sys/geom/bde/g_bde.h:180: undefined reference to `rijndael_ci= >pherInit' >+> >>/usr/src/sys/geom/bde/g_bde.h:207: undefined reference to `rijndael_bl= >ockDecrypt' >+> > >+> >I had same problem until I added device random to kernel config file. >+>=20 >+> Yes, the recent commits to the rijndael code must have messed up somethi= >ng=20 > >No, this always was a problem. There were no chance to use BDE when >'device random' isn't compiled in kernel, but is loaded as kernel module. Adding MODULE_DEPEND(g_bde, rc4, 1, 1, 1); solve your problem? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Nvidia driver
In message <[EMAIL PROTECTED]>, Justin Smith wrote: >MY system: >FreeBSD jsmith.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Oct 1 >13:55:06 EDT 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC >i386 > > >Whenever I try to use the nividia driver for X windows, my system >reboots. Any suggestions? Which chipset do you using? And what your dmesg saying about agp0 ? I had a problem when I use i845G + GeForceMX400, like you. This was because kernel recognzie AGP controller as agp0: mem 0xd000-0xd3ff at device 0.0 so it failed to manipulate. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ACPI on Tyan Motherboard
In message <[EMAIL PROTECTED]>, Stephen Montgomery-Smith wrote : >I have a Tyan S2462 Thunder K7 motherboard. I was hoping to get power-down to >work. So I installed FreeBSD current with ACPI enabled. When I typed "shutdo >wn >-p now" the computer halted, and then the video card switched off, and the fan >s >kept running. The computer was frozen - even the power-off power-on button >wouldn't work. > >Actually the power-off button doesn't work at all under FreeBSD-current. (It >is >a soft power-off button that dmesg shows is detected by the OS.) > >I should add that power-down works great with Windows 2000. Also, the power-o >ff >button works properly with FreeBSD-stable. > >I am thinking that maybe I need to wait a few more months until ACPI is fully >debugged. On the other hand, maybe you guys would like to work on this. I ca >n >send all info like dmesg, and the kernel configuration (which is basically >GENERIC with stuff removed, and SMP and pcm added, but actually it didn't work > >with the generic kernel either.) > >Is it possible that power is cut to the CPU's, but not to the fans? Is there >anyway to tell? > >Will I have to "program" the ACPI (that is take the output of acpidump and edi >t it)? > >It does seem to me that ACPI is working in some form, just not properly. If I > >boot up with ACPI disabled, then it works just as in FreeBSD-stable, that is, >the power-off button works well. Try # sysctl hw.acpi.disable_on_poweroff=0 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newbus questions
In message <[EMAIL PROTECTED]>, Nate Lawson wrote: >I'm working on ECDT support for ACPI and ran into a couple newbus-related >questions. > >1. I'm using the identify entry as a way to get called early on in the >boot process. However, this does not happen before $PIR evaluation. How >should I hook in a routine for pre-$PIR execution? It may be called in if (ACPI_FAILURE(status = AcpiInstallAddressSpaceHandler(ACPI_ROOT_OBJECT, ACPI_ADR_SPACE_PCI_CONFIG, ACPI_DEFAULT_HANDLER, NULL, NULL))) { device_printf(dev, "could not initialise PciConfig handler: %s\n", AcpiF ormatException(status)); goto out; at acpi_attach(). >2. I need to call bus_alloc_resource() to get access to some io ports. >However, calling BUS_READ_IVAR in the identify routine gets a bad pointer >deref. So how do I get a handle to use for allocating the IO ports >(first arg of bus_alloc_resource)? If you want to use IDENTIFY method, you have to imprement 'bus_driver_added' method on parent driver to initialize ivars in device object. >3. It appears bus_alloc_resource() takes a range of values. If I know the >exact value to use, I request it via "value, value" instead of "0, ~0". >Is this correct? It is correct in that context. When parent driver enumlate device and set the resorce for device, That is used for allocate 'default' resource. >The framework for this code is in ec_identify() and ec_attach() in >sys/dev/acpica/acpi_ec.c. You may want to set up ACPI EC register space before ACPI name space is probed. So I think it is possible to call the initialization routine in acpi_attach() explicitly for the time being. The generalized way is that we have to imprement simple ACPI table parser other than DSDT that is used before ACPI-CA initialization. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Screen saver: bsd_saver.
In message <[EMAIL PROTECTED]>, Pawel Jakub Dawidek wrote : >Hello there. > >I've wrote screen saver for FreeBSD 5.x with rotating "bsd" logo. > > http://garage.freebsd.pl/bsd_saver.tbz > >Any chance to add it to tree? I don't know whether it works or not, but this contains floating point instruction, which is hardly used and needs cafeful treatment. (As far as I know, FP instruction is used only on i586_bcopy) What do you think about it? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ACPI and USB
In message <[EMAIL PROTECTED]>, Anish Mistry wrote: >Hi, > > I finally got -CURRENT to install on my laptop as of 2003-03-25 and have >been playing around with the acpi code trying to figure it out. One of the >main problems is to get my USB bus to wake up after a suspend, currently all >the USB devices dies when suspended and resumed. >How can I tell the USB PowerResource to turn on? I've been able to access >devices that have a HID and create drivers for those, but I don't know how to >access resources with only _ADR addresses. >below: You may get know PCI bus number where the USB bridge connected to and use _ADR to pick Device and Function number. In following structure, The \SB.PCI1.FOO0 device has Bus no 2, Device No 4 Function number 0.And this is accessible with pci2:4:0 by pciconf(8). Device(\_SB){ Device(PCI0){ ... } Device(PCI1){ Name(_ADR, 0); Name(_BBN, 2) ... Device(FOO0){ Name(_ADR, 0x4) } } } > The USB portion of my acpidump > >Device(USB_) { >Name(_ADR, 0x0002) >Name(_PR0, Package(0x1) { >USBP, >}) >Name(_PR1, Package(0x1) { >USBP, >}) >Name(_PR2, Package(0x1) { >USBP, >}) >PowerResource(USBP, 1, 0) { >Name(RSTA, 0x1) >Method(_STA) { >Return(RSTA) >} >Method(_ON_) { >Store(One, RSTA) >} >Method(_OFF) { >Store(Zero, RSTA) >} >} >} I want to know RSTA imprementation.(Probably, it is defined by Field Op.) Please show me full dump. Temporally work around may done by accessing Hardware registers as same way as accessing RSTA ACPI object. But we will have to have framework to bind PowerResource and Device together. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ACPI suspend problem (ThinkPad X23)
In message <[EMAIL PROTECTED]>, FUJITA Kazutoshi wrote : >Hi, > >My -CURRENT(2003/03/12) laptop(ThinkPad X23) can't be suspended. > >When I try > ># acpiconf -s 1 > >I have console message > >'acpi0: AcpiGetSleepTypeData failed - AE_NOT_FOUND' > >How can I solve this? > > >dmesg output is attached. > It seems that Your machine does not support S1 sleep. See the result of # acpidump |grep _S1 If there is no line like Name(\_S1_, Package(0x4){ Use S2, S3 instead. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Sony VAIO, psm and acpi
In message <[EMAIL PROTECTED]>, Paul Wankadia wrote: >After seeing the "yet another Sony Vaio PS/2 mouse ID" commits to >src/sys/isa/psm.c from six weeks ago, I've hacked my >src/sys/dev/acpica/acpi.c so now acpi_isa_pnp_probe() will try the >compatibility ID like isa_pnp_probe() does in src/sys/isa/isa_common.c. >It's quite trivial, so is there some reason why an acpi_isa_get_compatid() >wasn't written before? (Please Cc: to me.) I also wrote it before. But I didn't commit because I don't tested it. If you tested your patch, I'll willing to commit. Here is my patch. == Index: acpi.c === RCS file: /home/ncvs/src/sys/dev/acpica/acpi.c,v retrieving revision 1.83 diff -u -r1.83 acpi.c --- acpi.c 28 Dec 2002 14:58:50 - 1.83 +++ acpi.c 23 Jan 2003 23:17:05 - @@ -113,6 +113,7 @@ static struct resource *acpi_alloc_resource(device_t bus, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags); static int acpi_release_resource(device_t bus, device_t child, int type, int rid, struct resource *r); +static u_int32_t acpi_isa_get_compatid(device_t dev); static u_int32_t acpi_isa_get_logicalid(device_t dev); static int acpi_isa_pnp_probe(device_t bus, device_t child, struct isa_pnp_id *ids); @@ -590,10 +591,11 @@ /* ISA compatibility */ case ISA_IVAR_VENDORID: case ISA_IVAR_SERIAL: -case ISA_IVAR_COMPATID: *(int *)result = -1; break; - +case ISA_IVAR_COMPATID: + *(int *)result = acpi_isa_get_compatid(child); + break; case ISA_IVAR_LOGICALID: *(int *)result = acpi_isa_get_logicalid(child); break; @@ -697,7 +699,32 @@ | (PNP_HEXTONUM(s[3]) << 20) \ | (PNP_HEXTONUM(s[6]) << 24) \ | (PNP_HEXTONUM(s[5]) << 28)) +#define MAX_VALID_EISAID 9 +static u_int32_t +acpi_isa_get_compatid(device_t dev) +{ + ACPI_HANDLE h; + ACPI_OBJECT *obj; + ACPI_BUFFER resbuf; + char resbufbody[sizeof(ACPI_OBJECT) + MAX_VALID_EISAID +1]; + + /* + *resbuf size is allocated so that it can hold ACPI_OBJECT + *with EISAID string + */ + obj = (ACPI_OBJECT *)resbufbody; + resbuf.Length = sizeof(resbufbody); + resbuf.Pointer = resbufbody; + h = acpi_get_handle(dev); + if(ACPI_FAILURE(AcpiEvaluateObject(h, "_CID", NULL, &resbuf))) + return 0; + if(obj->Type == ACPI_TYPE_INTEGER) +return obj->Integer.Value; + else if(obj->Type == ACPI_TYPE_STRING) +return PNP_EISAID(obj->String.Pointer); + return 0; +} static u_int32_t acpi_isa_get_logicalid(device_t dev) { --- acpi.c.prev Fri Jan 24 10:14:10 2003 +++ acpi.c Fri Jan 24 10:15:24 2003 @@ -757,7 +757,7 @@ acpi_isa_pnp_probe(device_t bus, device_t child, struct isa_pnp_id *ids) { intresult; -u_int32_t pnpid; +u_int32_t pnpid, compatid; ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); @@ -770,8 +770,10 @@ /* scan the supplied IDs for a match */ pnpid = acpi_isa_get_logicalid(child); +compatid = acpi_isa_get_compatid(child); while (ids && ids->ip_id) { - if (pnpid == ids->ip_id) { + if (pnpid == ids->ip_id|| + compatid == ids->ip_id) { result = 0; goto out; } To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: update from 4.7 to 5.0
In message <[EMAIL PROTECTED]>, Odhiambo Washington wrote : >acpi_cpu: CPU throttling enabled, 2 steps from 100% to 50.0% > > >Where is that explained? I'd really love to know about it ;) Don't worry. This is do with ACPI CPU power management feature. Your machine is capable to change speed in two step. 1.5G/750MHz This value can also be reffered as hw.acpi.cpu.max_speed sysctl value. you can change the speed by changing hw.acpi.cpu.performance_speed sysctl value. (Your machine is desktop system, don't you?) Where is that explained? Here, or /sys/dev/acpica/acpi_cpu.c ;-) ..There are lack of document especially in sysctl value for ACPI. Regards. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: [acpi-jp 2051] ACPI Issues in FreeBSD 5.0-DP2
In message <004b01c2aade$812bfb00$f100a8c0@JEREMIAH>, "Jeremiah Gowdy" wrote: >I am currently testing FreeBSD 5.0-DP2 on my Sony Vaio FX-210 laptop. I am >having some error messages from the ACPI driver, so I figured I would report >them just in case. If anyone needs any more information, perhaps more >verbose debug output or something, please let me know. > >I am getting the following messages repeatedly at startup. > >ACPI-0432: *** Error: Handler for [EmbeddedControl returned AE_ERROR >ACPI-1287: *** Error: Method execution failed, AE_AML_NO_RETURN_VALUE Please boot with set hw.acpi.ec.event_driven=1 And see the result. >When I hit the sleep button on my computer I get: > >acpi0: AcpiGetSleepTypeDate failed - AE_NOT_FOUND Probably your system does not support the sleep state you want to go. > >This is the output of acpidump: Please use acpidump after booting with following parameter. set acpi_load="NO" To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: APM on 5.0 RC1
In message <[EMAIL PROTECTED]>, Sean LeBlanc wrote: >Hello, > >I'm trying to figure out how to get apm to run on 5.0 RC1. I have a Thinkpad >390x; apm worked on 4.7. > >If I run apmd -d, I get: >apmd[776]: start >apmd: cannot open device file `/dev/apmctl': No such file or directory You are running ACPI system, and ACPI does not support apmd, though it supports /dev/apm interface. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: [acpi-jp 1855] Re: no floppy drive with acpi.ko loaded
In message <[EMAIL PROTECTED]>, "David O'Brien" wrote: > >I never heard an answer to this: > >Did this test a "bug" fix; or should this maybe be committed into the >CVS repository for use by others with the same mobo I have? This is always needed until the BIOS maker fix it and you replace with the bug-fixed version. >A stock 10-DEC-2002 10:00 PST kernel still does not give me a working >floppy drive. Should the latest ACPI import have fixed my problem? >Should a future ACPI code drop fix this problem, or will I forever have >to use a custom .AML with this motherboard? I don't think the problem will fixed in the future, because the problem is occured by the strict checking of byte-code validity. > If this mobo will always >require a custom .AML file I want to commit the one I have and start a >table of mobo/BIOS's and the custom .AML files we offer. You will need version information of the bytecode. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: ACPI errors
In message <[EMAIL PROTECTED]>, Hongbo Li wrot e: >I installed FBSD-current on my laptop(IBM Thinkpad >A21m). These were some error messages about ACPI in >dmesg: > >system power profile changed to 'economy' >ACPI-0432: *** Error: Handler for >[EmbeddedControl] returned AE_ERROR >ACPI-1287: *** Error: Method execution failed, >AE_ERROR >ACPI-0432: *** Error: Handler for >[EmbeddedControl] returned AE_ERROR >ACPI-1287: *** Error: Method execution failed, >AE_ERROR Try specifying hw.acpi.ec.event_driven="1" in device.hints . To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message