Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 87) sorted by relevance

1234

/misc/config_tools/data/generic_board/generic_code/boards/
A Dpci_devices.h23 #define HOST_BRIDGE .pbdf.bits = {.b = 0x00U, .d = 0x00U, .f = 0x00U}
25 #define HOST_BRIDGE_1 .pbdf.bits = {.b = 0x00U, .d = 0x10U, .f = 0x05U}
27 #define VGA_COMPATIBLE_CONTROLLER_0 .pbdf.bits = {.b = 0x00U, .d = 0x02U, .f = 0x00U}
29 #define USB_CONTROLLER_0 .pbdf.bits = {.b = 0x00U, .d = 0x0DU, .f = 0x00U}
31 #define USB_CONTROLLER_1 .pbdf.bits = {.b = 0x00U, .d = 0x14U, .f = 0x00U}
33 #define SERIAL_BUS_CONTROLLER_0 .pbdf.bits = {.b = 0x00U, .d = 0x10U, .f = 0x00U}
35 #define SERIAL_BUS_CONTROLLER_1 .pbdf.bits = {.b = 0x00U, .d = 0x15U, .f = 0x00U}
37 #define SERIAL_BUS_CONTROLLER_2 .pbdf.bits = {.b = 0x00U, .d = 0x1FU, .f = 0x05U}
39 #define RAM_MEMORY_0 .pbdf.bits = {.b = 0x00U, .d = 0x14U, .f = 0x02U}
41 #define COMMUNICATION_CONTROLLER_0 .pbdf.bits = {.b = 0x00U, .d = 0x16U, .f = 0x00U}
[all …]
/misc/config_tools/launch_config/
A Dlaunch_cfg_gen.py110 full_opt = f"{opt}"
116 full_opt = f"`{full_cmd}`"
124 s += f.read(99)
127 s += f"{self._vm_name}\n"
131 f.seek(99,0)
132 s += f.read()
143 s += f"{name}={value}\n"
148 s += f"{command}\n"
184 s += f" {param}\n"
192 s += f"{command}\n"
[all …]
/misc/config_tools/board_inspector/extractors/
A D70-device-classes.py19 with open(filepath, "r") as f:
20 res = f.read().strip()
52 add_child(serial_node, "dev_path", f"/dev/{serial_dev}")
65 status_path = f"{displays_path}/status"
66 device_path = f"{displays_path}/device/device"
72 f"{root} to board XML."
75 f"Failed to add {root} to board XML"
76 with open(f"{status_path}", "r") as f:
77 if f.read().strip() == "connected":
79 get_bdf_from_realpath(f"{device_path}")
[all …]
A D95-usb.py21 with open(os.path.join(devpath, 'devnum'), 'r') as f:
22 devnum = f.read().strip()
23 with open(os.path.join(devpath, 'busnum'), 'r') as f:
24 busnum = f.read().strip()
28 with open(devpath + '/port/firmware_node/path') as f:
29 acpi_path = f.read().strip()
30 usb_port_node = get_node(board_etree, f"//device[acpi_object='{acpi_path}']")
35 … logging.debug(f"{e}: please check if a USB device has been removed form usb port {d}.")
A D50-acpi-namespace.py66 buspath = f"\\{'.'.join(namesegs[:(i+1)])}"
92 add_child(elem, "resource", id=f"res{idx}", type="io_port",
96 add_child(elem, "resource", id=f"res{idx}", type="io_port",
100 add_child(elem, "resource", id=f"res{idx}", type="memory",
133 logging.debug(f"Parse ACPI TPM2 failed: {str(e)}")
418 if interpreter.context.has_symbol(f"{namepath}._STA"):
427 if interpreter.context.has_symbol(f"{namepath}._HID"):
450 if interpreter.context.has_symbol(f"{namepath}._CID"):
473 if interpreter.context.has_symbol(f"{namepath}._UID"):
480 if interpreter.context.has_symbol(f"{namepath}._STR"):
[all …]
A D60-pci.py27 with open("/proc/iomem", "r") as f:
28 for line in f.readlines():
30 if fields[1] == f"PCI Bus 0000:{bus_number:02x}":
119 device_node = get_node(bus_node, f"./device[@address='{adr}']")
126 logging.info(f"Try resuming {device_path}")
129 f.write("on")
132 logging.info(f"Resuming {device_path} failed: {str(e)}")
153 resource_path = os.path.join(device_path, f"resource{idx}")
164 resource_node.set("id", f"bar{idx}")
194 resource_path = os.path.join(device_path, f"resource{idx}")
[all …]
A D40-acpi-tables.py17 f = open("/dev/kmsg", 'r')
18 fd = os.dup(f.fileno())
19 f.close()
55 …cache_node = get_node(caches_node, f"cache[@level='{entry.cache_level}' and processors/processor='…
57 …logging.debug(f"Cannot find the level {entry.cache_level} cache of physical processor with apic ID…
78 …cache_node = get_node(caches_node, f"cache[@level='{entry.level}' and @id='{hex(entry.cache_id)}']…
80 … logging.debug(f"Cannot find the level {entry.level} cache with cache ID {entry.cache_id}")
125 … cache_node = get_node(caches_node, f"cache[@level='{entry.hierarchy}' and @id='{hex(cache_id)}']")
127 … logging.debug(f"Cannot find the level {entry.hierarchy} cache with cache ID {cache_id}")
151 logging.warning(f"Parse ACPI tables failed: {str(e)}")
[all …]
/misc/config_tools/static_allocators/
A Ds5_vuart.py25 acrn_config_utilities.append_node(f"./name", connection_name, vuart_connection_node)
26 acrn_config_utilities.append_node(f"./type", "legacy", vuart_connection_node)
29 acrn_config_utilities.append_node(f"./vm_name", service_vm_name, service_vm_endpoint)
33 acrn_config_utilities.append_node(f"./vm_name", user_vm_name, user_vm_endpoint)
34 acrn_config_utilities.append_node(f"./io_port", user_vm_port, user_vm_endpoint)
37 port = get_node(f"//vm[name = '{vm_name}']/console_vuart/text()", scenario_etree)
55 vm_id = int(get_node(f"//vm[load_order = 'SERVICE_VM']/@id", scenario_etree))
57 vm_id = int(get_node(f"//vm[name = '{vm_name}']/@id", scenario_etree))
75 user_vm_list = scenario_etree.xpath(f"//vm[load_order != 'SERVICE_VM']")
76 service_vm_id = get_node(f"//vm[load_order = 'SERVICE_VM']/@id", scenario_etree)
[all …]
A Dbdf.py33 devdict[f"{VUART}_{vuart_id}"] = free_bdf
43 devdict[f"{IVSHMEM}_{shm.get('id')}"] = bdf
52 pt_devs = vm_node_etree.xpath(f".//pci_dev/text()")
112 vm_node = get_node(f"/acrn-config/vm[@id = '{vm_id}']", allocation_etree)
115 dev_node = get_node(f"./device[@name = '{dev_name}']", vm_node)
118 if get_node(f"./bus", dev_node) is None:
119 acrn_config_utilities.append_node(f"./bus", f"{bdf.bus:#04x}", dev_node)
120 if get_node(f"./dev", dev_node) is None:
121 acrn_config_utilities.append_node(f"./dev", f"{bdf.dev:#04x}", dev_node)
122 if get_node(f"./func", dev_node) is None:
[all …]
A Dintx.py52 allocation_vm_node = get_node(f"/acrn-config/vm[@id = '{vm_id}']", etree)
57 if get_node(f"./legacy_vuart[@id = '{vuart_id}']", allocation_vm_node) is None:
180 print(f"\t{device}")
222 print(f"Interrupt line {irq} is shared by the following devices.")
225 print(f"\tVM {vm_id}: {device}")
226 raise lib.error.ResourceError(f"VMs have conflicting interrupt lines.")
243 dev_name = f"PTDEV_{bdf}"
244 dev_node = get_node(f"device[@name = '{dev_name}']", vm_node)
247 pt_intx_node = get_node(f"pt_intx", dev_node)
250 acrn_config_utilities.append_node(f"./pt_intx", f"({irq}, {virq})", dev_node)
[all …]
A Dgpa.py128 connection_type = get_node(f"./type/text()", vuart)
154 pt_devs = vm_node_etree.xpath(f".//pci_dev/text()")
173 devdict_32bits[(f"{dev_name}", f"{bar_region}")] = int(bar_len, 16)
175 devdict_64bits[(f"{dev_name}", f"{bar_region}")] = int(bar_len, 16)
178 pt_devs = vm_node_etree.xpath(f".//pci_dev/text()")
192 devdict[(f"{dev_name}", f"{bar_region}")] = int(pt_dev_resource.get('min'), 16)
225 bus = get_node(f"../@address", pt_dev_node)
229 devdict[(f"{dev_name}", f"bar{next_bar_region}")] = VMSIX_VBAR_SIZE
294 pt_devs = vm_node.xpath(f".//pci_devs/pci_dev/text()")
373 if get_node(f"./base", vuart_node) is None:
[all …]
A Dclos.py19 allocation_vm_node = get_node(f"/acrn-config/vm[@id = '{vm_id}']", scenario_etree)
25 acrn_config_utilities.append_node(f"./vcpu_clos", str(index), clos_node)
37 vcpu_list = scenario_etree.xpath(f"//POLICY[VM = '{vm_name}']/VCPU/text()")
48 allocation_hv_node = get_node(f"//hv", allocation_etree)
50 … allocation_hv_node = acrn_config_utilities.append_node(f"/acrn-config/hv", None, allocation_etree)
54 … length = get_node(f"//cache[@level='3']/capability/capacity_mask_length/text()", board_etree)
64 acrn_config_utilities.append_node(f"./clos", value, clos_mask)
66 …length = get_node(f"//cache[@level='2' and @id = '{cache2}']/capability/capacity_mask_length/text(…
79 acrn_config_utilities.append_node(f"./clos", value, clos_mask)
A Dmain.py29 … for script in sorted([f for f in os.listdir(scripts_path) if f.endswith(".py") and f != current]):
31 module = import_module(f"{module_name}")
/misc/config_tools/data/generic_board/generic_code/partitioned/
A Dpci_dev.c18 .vbdf.bits = {.b = 0x00U, .d = 0x00U, .f = 0x00U},
26 .f = 0x00U,
32 .f = 0x00U,
47 .f = 0x00U,
53 .f = 0x06U,
62 .vbdf.bits = {.b = 0x00U, .d = 0x00U, .f = 0x00U},
70 .f = 0x00U,
76 .f = 0x00U,
/misc/config_tools/board_inspector/acpiparser/aml/
A Dexception.py8 super().__init__(f"{hex(opcode)} is not a known opcode for {label}")
12 super().__init__(f"{label}: defer parsing of {seq}")
16 super().__init__(f"scope mismatch")
20 super().__init__(f"{name} is not a defined symbol under {context}")
24 super().__init__(f"{name} is not a valid ACPI namespace path")
A Dcontext.py23 print(f"{self.name}: {self.__class__.__name__}")
140 return f"\\{'.'.join(scope)}.{name}"
142 return f"\\{'.'.join(scope)}"
145 return f"\\{name}"
147 return f"{scope}.{name}"
152 return f"\\{name}"
154 return f"\\"
205 with open(val, "rb") as f:
206 stream = Stream(f.read())
361 logging.debug(f"Bind {sym.name} to {value}")
[all …]
/misc/config_tools/configurator/packages/configurator/thirdLib/
A Dmanager.py38 print(f'Install: {library_name}')
45 print(f"copy: {copy_to} success")
55 print(f'download: {download_to} success')
60 print(f'extract: {tar_file}')
82 print(f'extract: {tar_file} success')
89 print(f'remove: {remove_path} success')
97 print(f"replaceText: {filename} success")
101 print(f'Install: {library_name} success')
105 print(f'Clean: {library_name}')
111 print(f'remove: {clean_path} success')
[all …]
/misc/config_tools/board_inspector/acpiparser/
A D__init__.py20 path = f"/sys/firmware/acpi/tables/{signature}"
22 fn = getattr(sys.modules[f"acpiparser.{signature.lower()}"], signature)
39 path = f"/sys/firmware/acpi/tables/RTCT"
41 path = f"/sys/firmware/acpi/tables/PTCT"
42 fn = getattr(sys.modules[f"acpiparser.rtct"], "RTCT")
/misc/config_tools/board_inspector/
A Dboard_inspector.py34 …parser.error(f"{values} is ill-formed. The expected format is: <capacity_mask_length:int>,<clos_nu…
66 …logger.warning(f"Failed to invoke update-pciids. No functional impact is foreseen, but description…
82 logger.fatal(f"ACRN does not support platforms with multiple PCI domains {domain_ids}. " \
91 with open("/sys/devices/system/cpu/cpu{}/online".format(id), "w") as f:
92 f.write("1")
140 print(f"Generating board XML {board_name}. This may take a few minutes...")
181 extractors = [f for f in os.listdir(extractors_path) if f[:2].isdigit()]
184 module = import_module(f"extractors.{module_name}")
236 print(f"{args.loglevel} is not a valid log level")
237 print(f"Valid log levels (non case-sensitive): critical, error, warning, info, debug")
[all …]
/misc/config_tools/scenario_config/
A Dvalidator.py35 parser.error(f"can't open {arg}: Is not a file")
46 parser.error(f"{arg} is not a valid log level")
62 return f"{', '.join(self['paths'])}: {self['message']}"
118 paths.append(f"/{'/'.join(path)}")
166 value = f"[{s}]"
197 self.etree_tag = f"{etree_tag}_etree"
243 for f in os.listdir(board_dir):
244 if not f.endswith(".xml"):
246 if f == os.path.basename(board_xml) or "launch" in f:
255 for f in os.listdir(data_dir):
[all …]
/misc/config_tools/board_config/
A Dboard_c.py129 enable = scenario_etree.xpath(f"//RDT_ENABLED/text()")
137 enable = scenario_etree.xpath(f"//CDP_ENABLED/text()")
159 clos_number = get_node(f"./capability[@id='CAT']/clos_number/text()", cache)
162 cache_level = get_node(f"./@level", cache)
163 cache_id = get_node(f"./@id", cache)
239 cache_level = get_node(f"./@level", cache)
240 cache_id = get_node(f"./@id", cache)
241 clos_number = get_node(f"./capability/clos_number/text()", cache)
317 cache_list = board_etree.xpath(f"//cache[capability/@id = 'MBA']")
449 f = bdf_list[i].split(".")[1]
[all …]
/misc/config_tools/service_vm_config/
A Dserial_config.py25 connection_list0 = scenario_etree.xpath(f"//vuart_connection[endpoint/vm_name = '{vmname}']")
26 connection_list1 = allocation_etree.xpath(f"//vuart_connection[endpoint/vm_name = '{vmname}']")
28 type = get_node(f"./type/text()", connection)
32 port = get_node(f".//endpoint[vm_name = '{vmname}']/io_port/text()", connection)
34 … target_vm_name = get_node(f".//endpoint[vm_name != '{vmname}']/vm_name/text()", connection)
35 target_vm_id = get_node(f"//vm[name = '{target_vm_name}']/@id", scenario_etree)
/misc/config_tools/board_inspector/pcieparser/
A Dheader.py87 bar_list.append((f"bar{idx}", MemoryBar64))
90 bar_list.append((f"bar{idx}", MemoryBar32))
93 bar_list.append((f"bar{idx}", IOBar))
101 for f in self._fields_:
102 yield getattr(self, f[0])
127 bar_list.append((f"bar{idx}", MemoryBar64))
130 bar_list.append((f"bar{idx}", MemoryBar32))
133 bar_list.append((f"bar{idx}", IOBar))
141 for f in self._fields_:
142 yield getattr(self, f[0])
A Dextcaps.py66 return f"Reserved Extended ({hex(self.id)})"
130 vf_bars_list.append((f"vf_bar{idx}", MemoryBar64))
133 vf_bars_list.append((f"vf_bar{idx}", MemoryBar32))
136 vf_bars_list.append((f"vf_bar{idx}", IOBar))
145 for f in self._fields_:
146 yield getattr(self, f[0])
/misc/config_tools/board_inspector/inspectorlib/
A Dexternal_tools.py29 cmd = f"{full_path} {parts[1]}" if len(parts) == 2 else full_path
34 assert False, f"A command is expected either a list or a string: {command}"
56 logging.debug(f"Use {name} found at {path}.")
61 logging.critical(f"'{name}' cannot be found. Please install it and run again.")

Completed in 33 milliseconds

1234