Patent ID: 8423584
Filing Date: 2013-04-16
Classification: G06F

Abstract:
1. A computer implemented method for creating a device tree, the computer implemented method comprising: determining, by a service processor, whether more than one version of a hardware resource for a data processing system exists in a resource location code array table, wherein the hardware resource is one of a plurality of hardware resources, and wherein the resource location code array table includes different types of conditional entries for different versions of the hardware resource; responsive to the service processor determining that more than one version of the hardware resource for the data processing system does exist in the resource location code array table, determining, by the service processor, which version of the hardware resource was installed in the data processing system; performing, by the service processor, a presence detection procedure for the hardware resource in the data processing system; determining, by the service processor, whether the hardware resource is present in the data processing system; responsive to the service processor determining that the hardware resource is present in the data processing system, creating, by the service processor, an entry in the device tree for the hardware resource based on the version of the hardware resource, wherein a type one conditional entry for the hardware resource in the resource location code array table is included in the device tree only when an identification number of a parent hardware resource for the hardware resource is listed within the type one conditional entry, and wherein a type two conditional entry for the hardware resource in the resource location code array table is included in the device tree only when a hardware version level of the service processor specified in a registry of the service processor is greater than or equal to a service processor hardware version level listed within the type two conditional entry, and wherein a type three conditional entry for the hardware resource in the resource location code array table is included in the device tree only when a resource identification number of a specified hardware resource in a list of optional hardware resource versions is listed within the type three conditional entry, and wherein each hardware resource in the plurality of hardware resources of the data processing system in the resource location code array table is assigned a unique resource identification number; and caching, by the service processor, the device tree in firmware located in the service processor.