Bug 1001308 - FEAT: expresscard test should use dmidecode data to plan expresscard test
Summary: FEAT: expresscard test should use dmidecode data to plan expresscard test
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (tests)
Version: 1.6.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Rob Landry
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks: 1001233
TreeView+ depends on / blocked
 
Reported: 2013-08-26 21:00 UTC by Rob Landry
Modified: 2013-11-13 09:56 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
: 1001311 1012070 (view as bug list)
Environment:
Last Closed: 2013-11-13 09:56:42 UTC
Embargoed:


Attachments (Terms of Use)
patch to use dmidecode as an expresscard slot detection (1.36 KB, patch)
2013-09-24 18:17 UTC, Rob Landry
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1515 0 normal SHIPPED_LIVE hwcert-client-1.6 bug fix and enhancement update 2013-11-13 14:54:06 UTC

Description Rob Landry 2013-08-26 21:00:36 UTC
Description of problem:

Currently the expresscard test uses battery + pcie + usb to say there is probably an expresscard slot.  At least recent versions of dmidecode provide expresscard data, though it must be researched which versions in RHEL6.x provide this and which versions provide correct information and how often some set of laptop vendors properly populate this field. 


Additional info:

From a Lenovo X220

[rlandry@unused ~]$ rpm -qf /etc/redhat-release
redhat-release-server-6Server-6.4.0.4.el6.x86_64


[rlandry@unused ~]$ uname -a
Linux unused 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux


[root@unused ~]# rpm -q dmidecode
dmidecode-2.11-2.el6_1.x86_64


Handle 0x0027, DMI type 9, 17 bytes
System Slot Information
        Designation: ExpressCard Slot
        Type: x1 PCI Express
        Current Usage: Available
        Length: Other
        ID: 1
        Characteristics:
                Hot-plug devices are supported
        Bus Address: 0000:00:00.0



...My understanding is the x1 is referring to the capabilities of the slot, and the fact that there is only a single entry is referring to there being a single slot.

Comment 1 Rob Landry 2013-09-24 18:17:20 UTC
Created attachment 802418 [details]
patch to use dmidecode as an expresscard slot detection

I couldn't find what object we're storing the dmidecode data in the harness, it didn't look like we were so I just added a new call.  This over time should probably just be part of the hardware dictionary object?  Also I only added detection but from the output I think we could look for multiple stanza's with express card, and use the count of those as the number of expresscard slots.  Unfortunately I have no way to test that as my box only has a single slot

Comment 5 Brian Brock 2013-10-08 14:55:49 UTC
Patch appears to be present, and expresscard at least partially pass.  Tests with the USB expresscard pass as expected, tests for pcie on expresscard fail due to lack of a peripheral.  Will retry later with a drive attached.

Comment 11 errata-xmlrpc 2013-11-13 09:56:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1515.html


Note You need to log in before you can comment on or make changes to this bug.