Bug 123251

Summary: LTC5420 ioctl TIOCGICOUNT not implemented in 32bit for 64bit kernel
Product: Red Hat Enterprise Linux 3 Reporter: Wendy Cheng <nobody+wcheng>
Component: kernelAssignee: David Howells <dhowells>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: petrides, riel, tao
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-02 04:31:35 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 Flags
Attach customer's test case. none

Description Wendy Cheng 2004-05-14 20:24:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1)
Gecko/20020830

Description of problem:
IBM reports that the RHEL 3 ppc64 is missing two ioctls - TIOCMIWAIT
and TIOCGICOUNT via IT#29785. The IT ticket also includes their kernel
patch as:

--- ioctl32.c.orig      2003-06-12 12:27:26.000000000 -0500
+++ ioctl32.c   2003-06-19 12:40:16.000000000 -0500
@@ -3709,6 +3709,8 @@
COMPATIBLE_IOCTL(TIOCSSERIAL),
COMPATIBLE_IOCTL(TIOCSERGETLSR),
COMPATIBLE_IOCTL(TIOCSLTC),
+COMPATIBLE_IOCTL(TIOCMIWAIT),
+COMPATIBLE_IOCTL(TIOCGICOUNT),
/* Big F */
COMPATIBLE_IOCTL(FBIOGET_VSCREENINFO),
COMPATIBLE_IOCTL(FBIOPUT_VSCREENINFO),


Version-Release number of selected component (if applicable):
kernel-2.4.21-xx

How reproducible:
Always

Steps to Reproduce:
On IBM p-series machine:

1. Download attached testcase (serialtest.c)
2. compile & run as 32bit executable
3. compile & run as 64bit executable


Actual Results:  When run as a 32 bit executable, testcase fails with:

Java_com_ibm_comm_SerialStatusEventThread_monitorSerialStatusNC:
ioctl(TIOCGICOUNT) error 22!
fd = 3, &oldIcount = 0xfffff018, stateP->rc = -1

When run as a 64bit executable the testcase runs as expected.


Expected Results:  Test should exit, with no errors.

Additional info:

The kernel generates the following message:
kernel: sys32_ioctl(serialtest:12732): Unknown cmd fd(3) cmd(0000545d)
arg (fffff018)

when it is run. This corresponds with the error message in in
linux/arch/ppc64/kernel/ioctl32.c:sys_ioctl32()
The 32bit emulation layer doesn't implement the ioctl we are wanting
to call.

Comment 1 Wendy Cheng 2004-05-14 20:27:13 UTC
Created attachment 100235 [details]
Attach customer's test case.

Comment 3 Ernie Petrides 2004-06-08 04:55:32 UTC
A fix for this problem has just been committed to the RHEL3 U3
patch pool this evening (in kernel version 2.4.21-15.7.EL).


Comment 4 John Flanagan 2004-09-02 04:31:35 UTC
An errata has been issued which should help the problem 
described in this bug report. This report is therefore being 
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, 
please follow the link below. You may reopen this bug report 
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2004-433.html