Re: ACPI update

看板DFBSD_submit作者時間16年前 (2009/10/27 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/9 (看更多)
: I am working on updating ACPI to modern state and ACPI interrupt : routing. You can get the current code here [1]. It's going not bad but : I have some questions which I need answers for before moving on. : : 1) Locking. I have no idea which one should be used. There're 2 : families of locking macros: ACPI_SERIAL_* and ACPI_LOCK_* : (see sys/dev/acpica5/acpivar.h). FreeBSD uses mtx_* for ACPI_LOCK : and sx_* for ACPI_SERIAL. Either a lockmgr lock or our new mtx* lock (which are blockable locks like lockmgr locks) for both. Our mtx lock API is different from FreeBSD's (not meant to be API compatible). : 2) APIC. Current APIC code doesn't allow setting interrupts from other : subsystems and changing interrupts after boot, but this is required for : BUS_CONFIG_INTR to work. Could you expand on this a bit? We set aside a fixed number of vectors but that's the only real limitation that I can think of. -Matt Matthew Dillon <dillon@backplane.com>
文章代碼(AID): #1AvUicIw (DFBSD_submit)
文章代碼(AID): #1AvUicIw (DFBSD_submit)