CN109144805A - The method and device of Above 4G distribution register size in a kind of test b IOS - Google Patents

The method and device of Above 4G distribution register size in a kind of test b IOS Download PDF

Info

Publication number
CN109144805A
CN109144805A CN201810975586.1A CN201810975586A CN109144805A CN 109144805 A CN109144805 A CN 109144805A CN 201810975586 A CN201810975586 A CN 201810975586A CN 109144805 A CN109144805 A CN 109144805A
Authority
CN
China
Prior art keywords
pcie device
test
option
register size
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810975586.1A
Other languages
Chinese (zh)
Inventor
梁恒勋
迟江波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810975586.1A priority Critical patent/CN109144805A/en
Publication of CN109144805A publication Critical patent/CN109144805A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

The present invention provides a kind of method and device of Above 4G distribution register size in test b IOS, and wherein method includes: the Above 4G option in SS1, modification BIOS;SS2, configuration server PCIE device;Whether SS3, to compare in PCIE device BUS information register size consistent with the modification option of Above 4G.Above 4G distributes the method and device of register size whether normal to Above 4G function in a kind of test b IOS proposed by the present invention, while whether PCIE device really carries out the test of distribution of Above 4G in actual register, test preciseness with higher, testing efficiency is higher simultaneously, has broad application prospects.

Description

The method and device of Above 4G distribution register size in a kind of test b IOS
Technical field
The present invention relates to BIOS the field of test technology, and in particular to Above 4G distribution register is big in a kind of test b IOS Small method and device.
Background technique
BIOS (Basic Input Output System) is basic input output system, and major function is for meter Calculation machine provides the bottom, the most direct hardware setting and control, in addition, BIOS also provides some system ginsengs to operating system Number.
Increase with current internet company to server B ios feature demand, the refinement of the requirement to BIOS, test Engineer also increasingly refines the test of BIOS.It at this stage, is only to modify to the test of Above 4G function in BIOS Above 4G option, it is rear to carry PCIE device test, check whether server can operate normally.But above-mentioned test method is simultaneously Do not test whether Above 4G function is normal, whether PCIE device really carries out the distribution of Above 4G in actual register.For It solves the above problems, refines the test of Above 4G in BIOS, the present invention proposes that Above 4G distribution is posted in a kind of test b IOS The method and device of storage size.
Summary of the invention
It is an object of the present invention to propose the method and dress of Above 4G distribution register size in a kind of test b IOS It sets, to solve the above technical problems.
In a first aspect, the method that the present invention proposes Above 4G distribution register size in a kind of test b IOS, comprising:
Above 4G option in SS1, modification BIOS;
SS2, configuration server PCIE device;
Whether SS3, to compare in PCIE device BUS information register size consistent with the modification option of Above 4G.
Further, between step SS2 and step SS3 further include:
Identify PCIE device:
PCIE device is identified if normal, executes step SS3;
If not identifying PCIE device, return step SS2 normally.
Further, step SS3 is specifically included:
The option of identification modification Above 4G;
When the option for modifying Above 4G is Enable, the ground of " Region " corresponding 16 system in BUS information is searched Location, if the address be greater than or equal to 100000000, the register size that this PCIE device is currently distributed be more than or equal to 4G;
When the option for modifying Above 4G is Disable, the ground of " Region " corresponding 16 system in BUS information is searched Location, if the address, less than 100000000, the register size that this PCIE device is currently distributed is less than 4G.
Further, right by " Region " in lspci-s xx:xx.x-vvv command lookup BUS information in step SS3 The address for 16 systems answered.
Second aspect, the present invention propose a kind of device of Above 4G distribution register size in test b IOS, comprising:
Above 4G option modified module: for modifying the Above 4G option in BIOS;
PCIE device configuration module: it is used for configuration server PCIE device;
Comparison module: for compare register size in PCIE device BUS information whether the option with modification Above 4G Unanimously.
Further, in the test b IOS Above 4G distribute register size device further include: PCIE device know Other module: PCIE device for identification:
PCIE device is identified if normal, into comparison module;
If not identifying PCIE device normally, PCIE device configuration module is returned.
Further, above-mentioned comparison module is specifically used for:
The option of identification modification Above 4G;
When the option for modifying Above 4G is Enable, the ground of " Region " corresponding 16 system in BUS information is searched Location, if the address be greater than or equal to 100000000, the register size that this PCIE device is currently distributed be more than or equal to 4G;
When the option for modifying Above 4G is Disable, the ground of " Region " corresponding 16 system in BUS information is searched Location, if the address, less than 100000000, the register size that this PCIE device is currently distributed is less than 4G.
Further, above-mentioned comparison module passes through " Region " in lspci-s xx:xx.x-vvv command lookup BUS information The address of corresponding 16 system.
The method that Above 4G distributes register size in a kind of test b IOS proposed by the present invention, by modification BIOS Above 4G option be Enabled or Disabled after, the practical register distributed of PCIE device is compared under Linux environment Whether size meets the setting of current Above 4G, and then realizes to refine Above 4G function and test.It is proposed by the present invention Above 4G distributes the method for register size whether normal to Above 4G function, in actual register in test b IOS While whether PCIE device really carries out the test of distribution of Above 4G, test preciseness with higher is tested simultaneously Efficiency is higher, has broad application prospects.
The beneficial effect of the device of Above 4G distribution register size is as above in a kind of test b IOS proposed by the present invention Described, it is no longer repeated.
Detailed description of the invention
Illustrate the embodiment of the present invention in order to clearer, attached drawing needed in the embodiment is done into simple Jie below It continues, it is clear that, drawings in the following description are only some embodiments of the invention, for those of ordinary skill in the art For, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the method flow that Above 4G distributes register size in test b IOS disclosed in the embodiment of the present invention 1 Schematic diagram.
Fig. 2 is the principle of device that Above 4G distributes register size in test b IOS disclosed in the embodiment of the present invention 3 Schematic diagram.
Specific embodiment
With reference to the attached drawing in the embodiment of the present invention, clear and complete retouch is carried out to the technical solution in inventive embodiments It states, it is clear that described embodiment is only a part of the embodiments of the present invention, rather than whole embodiments.Based on the present invention In embodiment, those of ordinary skill in the art without making creative work, every other implementation obtained Example, belongs to the scope of the present invention.
In order to make those skilled in the art better understand the present invention program, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
Embodiment 1
The present embodiment provides the methods that Above 4G in a kind of test b IOS distributes register size, comprising:
Above 4G option is Enable or Disable in SS1, modification BIOS;
SS2, configuration server PCIE device;
Whether SS3, to compare in PCIE device BUS information register size consistent with the modification option of Above 4G.
Embodiment 2
The present embodiment provides the methods that Above 4G in a kind of test b IOS distributes register size, specifically include:
Above 4G option is Enable or Disable in SS1, modification BIOS.
SS2, configuration server PCIE device.
SS3, identification PCIE device:
PCIE device is identified if normal, executes step SS4;
If not identifying PCIE device, return step SS2 normally.
It is as follows to implement script:
#!/bin/bash
rm-fr*.log
NET=`/usr/sbin/lspci | grep " net " `
NON=`/usr/sbin/lspci | grep " Non " `
function net(){
echo-e"$NET""\n""$NON"
}
net>>lspci-net-Non.log
Whether SS4, to compare in PCIE device BUS information register size consistent with the modification option of Above 4G, specifically Include:
The option of identification modification Above 4G;
When the option for modifying Above 4G is Enable, pass through lspci-s xx:xx.x-vvv command lookup BUS information In " Region " corresponding 16 system address, if the address be greater than or equal to 100000000, this PCIE device is currently divided The register size matched is more than or equal to 4G;
When the option for modifying Above 4G is Disable, believed by lspci-s xx:xx.x-vvv command lookup BUS The address of " Region " corresponding 16 system in breath, if the address, less than 100000000, what this PCIE device was currently distributed posts Storage size is less than 4G.
It is as follows to implement script:
#!/bin/bash
rm-fr*.log
A=`/usr/bin/cat lspci-net-Non.log | awk'{ print $ 1 } ' `
functionbus(){
echo-e"$A"
}
bus>>lspci-bus.log
/usr/bin/cat lspci-bus.log|while read line
do
/usr/sbin/lspci-s$line-vvv>>lspci-vvv.log
done
/usr/bin/cat lspci-vvv.log|grep"Region 0:">>Region.log
/usr/bin/cat Region.log|awk'{print$5}'>>Region-2.log
/usr/bin/cat egion-2.log|while read line
do
if[$line-gt 100000000]
then
Echo " $ line is greater than 4G network interface card " > > above-4G.log
Elif [$ line==100000000]
then
Echo " $ line just 4G network interface card " > > above-4G.log
elif[$line-lt 100000000]
then
Echo " $ line is less than 4G network interface card " > > above-4G.log
done
Embodiment 3
The present embodiment provides the devices that Above 4G in a kind of test b IOS distributes register size, comprising:
Above 4G option modified module: for modifying the Above 4G option in BIOS;
PCIE device configuration module: it is used for configuration server PCIE device;
Comparison module: for compare register size in PCIE device BUS information whether the option with modification Above 4G Unanimously.
Embodiment 4
The present embodiment provides the devices that Above 4G in a kind of test b IOS distributes register size, specifically include:
Above 4G option modified module: for modifying the Above 4G option in BIOS;
PCIE device configuration module: it is used for configuration server PCIE device;
PCIE device identification module: PCIE device for identification:
PCIE device is identified if normal, into comparison module;
If not identifying PCIE device normally, PCIE device configuration module is returned.
Comparison module: for compare register size in PCIE device BUS information whether the option with modification Above 4G Unanimously.
Specifically, comprising:
The option of identification modification Above 4G;
When the option for modifying Above 4G is Enable, pass through lspci-s xx:xx.x-vvv command lookup BUS information In " Region " corresponding 16 system address, if the address be greater than or equal to 100000000, this PCIE device is currently divided The register size matched is more than or equal to 4G;
When the option for modifying Above 4G is Disable, believed by lspci-s xx:xx.x-vvv command lookup BUS The address of " Region " corresponding 16 system in breath, if the address, less than 100000000, what this PCIE device was currently distributed posts Storage size is less than 4G.
In a kind of test b IOS proposed by the present invention Above 4G distribute register size method and device, by After BIOS option is revised as Enabled or Disabled, the practical register distributed of PCIE equipment is checked under Linux environment Whether size meets the setting of current Above 4G, and then realizes to refine Above 4G function and test.It is proposed by the present invention Above 4G distributes the method for register size whether normal to Above 4G function, in actual register in test b IOS While whether PCIE device really carries out the test of distribution of Above 4G, test preciseness with higher is tested simultaneously Efficiency is higher, has broad application prospects.
Above to the method and device of Above 4G distribution register size in a kind of test b IOS disclosed by the invention into It has gone and has been discussed in detail.Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts in each embodiment may refer to each other.For disclosed in embodiment For system, since it is corresponded to the methods disclosed in the examples, what is described is relatively simple, and correlation can go out referring to method portion It defends oneself bright.The above is only a preferred embodiment of the present invention, it should be pointed out that: for the ordinary skill of the art For personnel, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications It should be regarded as protection scope of the present invention.

Claims (8)

1. a kind of method that Above 4G distributes register size in test b IOS characterized by comprising
Above 4G option in SS1, modification BIOS;
SS2, configuration server PCIE device;
Whether SS3, to compare in PCIE device BUS information register size consistent with the modification option of Above 4G.
2. the method that Above 4G distributes register size in test b IOS according to claim 1, which is characterized in that step Between rapid SS2 and step SS3 further include:
Identify PCIE device:
PCIE device is identified if normal, executes step SS3;
If not identifying PCIE device, return step SS2 normally.
3. the method that Above 4G distributes register size in test b IOS according to claim 1, which is characterized in that step Rapid SS3 is specifically included:
The option of identification modification Above 4G;
When the option for modifying Above 4G is Enable, the address of " Region " corresponding 16 system in BUS information is searched, if The address is greater than or equal to 100000000, then the register size that this PCIE device is currently distributed is more than or equal to 4G;
When the option for modifying Above 4G is Disable, the address of " Region " corresponding 16 system in BUS information is searched, If the address, less than 100000000, the register size that this PCIE device is currently distributed is less than 4G.
4. the method that Above 4G distributes register size in test b IOS according to claim 3, which is characterized in that logical Cross the address of " Region " corresponding 16 system in lspci-s xx:xx.x-vvv command lookup BUS information.
5. Above 4G distributes the device of register size in a kind of test b IOS characterized by comprising
Above 4G option modified module: for modifying the Above 4G option in BIOS;
PCIE device configuration module: it is used for configuration server PCIE device;
Comparison module: whether consistent with the modification option of Above 4G for comparing register size in PCIE device BUS information.
6. Above 4G distributes the device of register size in test b IOS according to claim 5, which is characterized in that also Include:
PCIE device identification module: PCIE device for identification:
PCIE device is identified if normal, into comparison module;
If not identifying PCIE device normally, PCIE device configuration module is returned.
7. Above 4G distributes the device of register size in test b IOS according to claim 5, which is characterized in that ratio It is specifically used for compared with module:
The option of identification modification Above 4G;
When the option for modifying Above 4G is Enable, the address of " Region " corresponding 16 system in BUS information is searched, if The address is greater than or equal to 100000000, then the register size that this PCIE device is currently distributed is more than or equal to 4G;
When the option for modifying Above 4G is Disable, the address of " Region " corresponding 16 system in BUS information is searched, If the address, less than 100000000, the register size that this PCIE device is currently distributed is less than 4G.
8. Above 4G distributes the device of register size in test b IOS according to claim 7, which is characterized in that logical Cross the address of " Region " corresponding 16 system in lspci-s xx:xx.x-vvv command lookup BUS information.
CN201810975586.1A 2018-08-24 2018-08-24 The method and device of Above 4G distribution register size in a kind of test b IOS Pending CN109144805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810975586.1A CN109144805A (en) 2018-08-24 2018-08-24 The method and device of Above 4G distribution register size in a kind of test b IOS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810975586.1A CN109144805A (en) 2018-08-24 2018-08-24 The method and device of Above 4G distribution register size in a kind of test b IOS

Publications (1)

Publication Number Publication Date
CN109144805A true CN109144805A (en) 2019-01-04

Family

ID=64828016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810975586.1A Pending CN109144805A (en) 2018-08-24 2018-08-24 The method and device of Above 4G distribution register size in a kind of test b IOS

Country Status (1)

Country Link
CN (1) CN109144805A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040024556A1 (en) * 2002-07-24 2004-02-05 Jing-Rung Wang Method for testing chip configuration settings
CN101634960A (en) * 2008-07-23 2010-01-27 鸿富锦精密工业(深圳)有限公司 Method for revising BIOS parameter and regenerating checksum
CN105843698A (en) * 2016-04-22 2016-08-10 浪潮电子信息产业股份有限公司 Method for automatically adjusting BIOS (basic input/output system) option value
CN107133137A (en) * 2017-05-26 2017-09-05 郑州云海信息技术有限公司 It is a kind of easily to obtain the method that RMT tests information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040024556A1 (en) * 2002-07-24 2004-02-05 Jing-Rung Wang Method for testing chip configuration settings
CN101634960A (en) * 2008-07-23 2010-01-27 鸿富锦精密工业(深圳)有限公司 Method for revising BIOS parameter and regenerating checksum
CN105843698A (en) * 2016-04-22 2016-08-10 浪潮电子信息产业股份有限公司 Method for automatically adjusting BIOS (basic input/output system) option value
CN107133137A (en) * 2017-05-26 2017-09-05 郑州云海信息技术有限公司 It is a kind of easily to obtain the method that RMT tests information

Similar Documents

Publication Publication Date Title
CN104506522B (en) vulnerability scanning method and device
CN109447287B (en) Multi-energy operation and maintenance system establishing method and terminal equipment
CN106682036A (en) Data exchange system and exchange method thereof
CN109726136A (en) Test method, device, equipment and the storage medium of database
CN103414535A (en) Data sending method, data receiving method and relevant devices
CN106201288A (en) Storage method, device and the mobile terminal of a kind of finger print information
CN111563014A (en) Interface service performance test method, device, equipment and storage medium
CN107506145B (en) Physical storage scheduling method and cloud host creation method
CN106776337A (en) Performance analysis method and device and electronic equipment
CN110990053A (en) Method for creating and using machine learning scheme template and device
CN109669794A (en) A kind of data in magnetic disk conformance test method, device, terminal and storage medium
CN107329849A (en) A kind of data verification method and system based on Java systems
CN106533825A (en) Linux system-based SR-IOV function testing method
CN113961473A (en) Data testing method and device, electronic equipment and computer readable storage medium
CN106294719A (en) Information display method and device
CN109376079A (en) The test method and server that interface calls
CN109522181A (en) A kind of performance test methods of distributed memory system, device and equipment
CN103425580A (en) Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device
CN105159834B (en) A kind of software dynamic testing service data extracting method
CN109358998A (en) A kind of server detection method, apparatus and system
CN108459960A (en) Method of automatic configuration, device, equipment and the storage medium of test environment
CN109144805A (en) The method and device of Above 4G distribution register size in a kind of test b IOS
CN106933750A (en) For data in multi-level buffer and the verification method and device of state
CN105912417A (en) Detection method of virtual system, related software running method and related device
CN103759951B (en) The method of testing of the brake performance tester of multiple stage agricultural vehicle can be measured simultaneously

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190104

RJ01 Rejection of invention patent application after publication