Bug 231768
Summary: | [RHEL4] VIA EPIA-EK10000 does not reboot without PS/2 keyboard attached | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Hiroto Shibuya <hiroto.shibuya> | ||||||
Component: | kernel | Assignee: | Aristeu Rozanski <arozansk> | ||||||
Status: | CLOSED WONTFIX | QA Contact: | Martin Jenner <mjenner> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 4.5 | CC: | jbaron, leonard, leonard-rh-bugzilla | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i386 | ||||||||
OS: | Linux | ||||||||
URL: | http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.16.y.git;a=commit;h=59f4e7d572980a521b7bdba74ab71b21f5995538 | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2012-06-20 13:24:27 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Hiroto Shibuya
2007-03-11 13:09:42 UTC
Created attachment 149791 [details]
patch to pull in the fix from 2.6.15 kernel
Still issue with 2.6.9-55 in 4.6. My assumption is that this affect more than this particular class of motherboard. Since it is such a safe and straight forward back merge from the future version of kernel, I would appreciate if this is considered for 4.6 update. To add credibility, I attached a reference to the original commit in 2.6.16 stable tree. Created attachment 213701 [details]
test patch
patch based on commits
59f4e7d572980a521b7bdba74ab71b21f5995538
8b93789808756bcc1e5c90c99f1b1ef52f839a51
Hiroto, please test the kernel available in http://people.redhat.com/arozansk/reboot/ or just apply the patch I've attached here and let me know the results. I don't have any machine VIA based available. I suspect the new box I got at home is VIA based. I'll check at night. Thanks Aristeu. Unfortunately, that kernel didn't reboot. I see that you pulled in the latest patch from 2.6.23-rc which has some added logic about reading command control byte. That seems to be not working out with my VIA MB for some reason. Is it too much to ask to exclude the lastest change and just apply the one in between? Or I should figure out how to make this new code with VIA and send in patch again 2.6.23-rc. Do you know of any documentation in this area I can refer to. I mailed Truxton Fulton, the original author of those patches for information. Got response back from Mr. Fulton. After making the change he suggested, it rebooted fine on my MB. ---- Hello Hiroto-san, Do you mean that my original patch (59f4e7d572980a521b7bdba74ab71b21f5995538) fixes your reboot problem, but the new patch (8b93789808756bcc1e5c90c99f1b1ef52f839a51) does not work? When I debugged this problem, I found that the keyboard controller would refuse to pulse the reset low if there was no keyboard attached. Forcing the system flag to 1 seemed to satisfy the VIA chip, and the reboot could proceed. I used google to find documentation for the AT keyboard controller. Here are some links : http://homepages.cwi.nl/~aeb/linux/kbd/scancodes-8.html http://www.computer-engineering.org/ps2keyboard/ Unfortunately, I no longer have access to a machine with the rebooting problem, so I was unable to verify that my second patch worked for machines that could not reboot normally. Perhaps the controller command byte need to have _EN (Disable keyboard) also set (which is what the first patch did). Can you please try changing this line : outb(cmd | 0x04, 0x60); /* set "System flag" */ to this : outb(cmd | 0x14, 0x60); /* set "System flag" and "Disable Keyboard" */ To see if that works for you? Thanks, -Truxton Related kernel bugzilla entry. Mr. Fulton posted additional patch with above change against 2.6.23-rc9 at the bottom. http://bugzilla.kernel.org/show_bug.cgi?id=8378 Hiroto, I saw Truxton message on lkml. Before including the fix, I have to wait for it to be included into Linus' tree. I've just checked for the fix and it's not included yet. Do you need a new test kernel with this patch included? I have tested it myself so I'm confident the patch itself is ok. If you have to wait for commit in main tree anyway, and for me to test right now will not speed up the process, I can wait. It's on -mm but not pulled into Linus' tree yet. The patch is upstream: 05dfa35e84331c6921ab394463069e9376f0bd76 Hiroto, the test kernels are on: http://people.redhat.com/arozansk/kernel-2.6.9-60.EL.reboot.i686.rpm http://people.redhat.com/arozansk/kernel-smp-2.6.9-60.EL.reboot.i686.rpm please test and let me know how it goes. Thanks Hmm, sorry to say that it didn't work, although commit 05dfa35e84331c6921ab394463069e9376f0bd76 looks good. Could you upload the source RPM so I can take a look? It's on http://people.redhat.com/arozansk/kernel-2.6.9-60.EL.reboot.src.rpm the patch is linux-kernel-test.patch It seems there's something else missing Aristeu, you added the variable "cmd" as "int" while on the main line it is "u8". Since this is an include file with only two short inline functions defined, and all we are doing is to patch it up to be identical to the latest, isn't it easier to simply grab the copy of the latest and drop it in, rather than hand edit the source? Nope, upstream cmd is int. http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=include/asm-x86/mach-default/mach_reboot.h;hb=HEAD Did you tried the last upstream version? Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. Please See https://access.redhat.com/support/policy/updates/errata/ If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue. |