ACPI FADT reports missing 8042 keyboard under qemu

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
stdcall
Member
Member
Posts: 78
Joined: Thu Mar 14, 2013 1:30 am

ACPI FADT reports missing 8042 keyboard under qemu

Post by stdcall »

Hi.
I started working on keyboard driver, and for starters I would like to detect the existance using ACPI FADT table.
It appears that the 8042 flag is marked as 0 - missing.

I'm using qemu-system-i386 for testing, with no specific configuration. is the problem is in qemu configuration ?
“Meaningless! Meaningless!”
says the Teacher.
“Utterly meaningless!
Everything is meaningless.” - Ecclesiastes 1, 2

Educational Purpose Operating System - EPOS
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: ACPI FADT reports missing 8042 keyboard under qemu

Post by thepowersgang »

Have you checked that that field is valid in that table? If the table is of an earlier version, the field should be assumed to be "true"
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
stdcall
Member
Member
Posts: 78
Joined: Thu Mar 14, 2013 1:30 am

Re: ACPI FADT reports missing 8042 keyboard under qemu

Post by stdcall »

According to ACPI documentation, the 8042 is valid since V2. however I didn't find any reference in the FADT table to the current table version.
Where does the FADT version is written ?
“Meaningless! Meaningless!”
says the Teacher.
“Utterly meaningless!
Everything is meaningless.” - Ecclesiastes 1, 2

Educational Purpose Operating System - EPOS
stdcall
Member
Member
Posts: 78
Joined: Thu Mar 14, 2013 1:30 am

Re: ACPI FADT reports missing 8042 keyboard under qemu

Post by stdcall »

Found it. silly me.
“Meaningless! Meaningless!”
says the Teacher.
“Utterly meaningless!
Everything is meaningless.” - Ecclesiastes 1, 2

Educational Purpose Operating System - EPOS
stdcall
Member
Member
Posts: 78
Joined: Thu Mar 14, 2013 1:30 am

Re: ACPI FADT reports missing 8042 keyboard under qemu

Post by stdcall »

That was indeed the problem. FADT is version 1.
How come it's so old ? FADT is now at version 5. Qemu doesn't support later versions ?
“Meaningless! Meaningless!”
says the Teacher.
“Utterly meaningless!
Everything is meaningless.” - Ecclesiastes 1, 2

Educational Purpose Operating System - EPOS
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: ACPI FADT reports missing 8042 keyboard under qemu

Post by thepowersgang »

It doesn't need to - All the information qemu needs to provide is within the v1 structure - so it's a waste of space to provide the larger versions.
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
Post Reply