Lines Matching +full:used +full:- +full:by +full:- +full:rtas
1 // SPDX-License-Identifier: GPL-2.0-or-later
14 * keyword - value pairs that specify the configuration of the partition.
22 #include <asm/papr-sysparm.h>
30 #include <asm/rtas.h>
51 * Track sum of all purrs across all processors. This is used to further
52 * calculate usage values by different applications
71 * Methods used to fetch LPAR data when running on a pSeries platform.
97 * XXXX - reserved (0)
98 * XXXX - reserved (0)
99 * XXXX - Group Number
100 * XXXX - Pool Number.
102 * XX - reserved. (0)
103 * XX - bit 0-6 reserved (0). bit 7 is Capped indicator.
104 * XX - variable processor Capacity Weight
105 * XX - Unallocated Variable Processor Capacity Weight.
106 * XXXX - Active processors in Physical Processor Pool.
107 * XXXX - Processors active on platform.
108 * R8 (QQQQRRRRRRSSSSSS). if ibm,partition-performance-parameters-level >= 1
109 * XXXX - Physical platform procs allocated to virtualization.
110 * XXXXXX - Max procs capacity % available to the partitions pool.
111 * XXXXXX - Entitled procs capacity % available to the
121 ppp_data->entitlement = retbuf[0]; in h_get_ppp()
122 ppp_data->unallocated_entitlement = retbuf[1]; in h_get_ppp()
124 ppp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_ppp()
125 ppp_data->pool_num = retbuf[2] & 0xffff; in h_get_ppp()
127 ppp_data->capped = (retbuf[3] >> 6 * 8) & 0x01; in h_get_ppp()
128 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp()
129 ppp_data->unallocated_weight = (retbuf[3] >> 4 * 8) & 0xff; in h_get_ppp()
130 ppp_data->active_procs_in_pool = (retbuf[3] >> 2 * 8) & 0xffff; in h_get_ppp()
131 ppp_data->active_system_procs = retbuf[3] & 0xffff; in h_get_ppp()
133 ppp_data->phys_platform_procs = retbuf[4] >> 6 * 8; in h_get_ppp()
134 ppp_data->max_proc_cap_avail = (retbuf[4] >> 3 * 8) & 0xffffff; in h_get_ppp()
135 ppp_data->entitled_proc_cap_avail = retbuf[4] & 0xffffff; in h_get_ppp()
156 memset(&buf->params, 0, sizeof(buf->params)); in show_gpci_data()
157 buf->params.counter_request = cpu_to_be32(0xB1); in show_gpci_data()
158 buf->params.starting_index = cpu_to_be32(-1); /* local LPAR */ in show_gpci_data()
159 buf->params.counter_info_version_in = 0x5; /* v5+ for score */ in show_gpci_data()
164 ret, be32_to_cpu(buf->params.detail_rc)); in show_gpci_data()
167 affinity_score = buf->bytes[0xB]; in show_gpci_data()
241 * valid if the ibm,partition-performance-parameters-level in parse_ppp_data()
247 "ibm,partition-performance-parameters-level", in parse_ppp_data()
278 if (mpp_data.mapped_mem != -1) in parse_mpp_data()
291 if (mpp_data.pool_size != -1) in parse_mpp_data()
326 * Read the lpar name using the RTAS ibm,get-system-parameter call.
328 * The name read through this call is updated if changes are made by the end
341 return -ENOMEM; in read_rtas_lpar_name()
345 seq_printf(m, "partition_name=%s\n", buf->val); in read_rtas_lpar_name()
354 * The value read in the DT is not updated if the end-user is touching the LPAR
363 ret = of_property_read_string(root, "ibm,partition-name", &name); in read_dt_lpar_name()
366 return -ENOENT; in read_dt_lpar_name()
383 * through the get-system-parameter rtas call. Replace keyword strings as
405 splpar_strlen = be16_to_cpu(buf->len); in parse_system_parameter_string()
406 local_buffer = buf->val; in parse_system_parameter_string()
438 local_buffer -= 2; /* back up over strlen value */ in parse_system_parameter_string()
515 maxmem += (unsigned long)drmem_info->n_lmbs * drmem_info->lmb_size; in maxmem_data()
528 rtas_node = of_find_node_by_path("/rtas"); in pseries_lparcfg_data()
530 lrdrp = of_get_property(rtas_node, "ibm,lrdr-capacity", NULL); in pseries_lparcfg_data()
533 partition_potential_processors = vdso_data->processorCount; in pseries_lparcfg_data()
542 /* this call handles the ibm,get-system-parameter contents */ in pseries_lparcfg_data()
610 return -EINVAL; in update_ppp()
656 return -EINVAL; in update_mpp()
688 return -EINVAL; in lparcfg_write()
691 return -EINVAL; in lparcfg_write()
694 return -EFAULT; in lparcfg_write()
696 kbuf[count - 1] = '\0'; in lparcfg_write()
699 return -EINVAL; in lparcfg_write()
707 return -EINVAL; in lparcfg_write()
724 return -EINVAL; in lparcfg_write()
731 return -EINVAL; in lparcfg_write()
738 return -EINVAL; in lparcfg_write()
742 return -EINVAL; in lparcfg_write()
747 retval = -EBUSY; in lparcfg_write()
749 retval = -EIO; in lparcfg_write()
751 retval = -EINVAL; in lparcfg_write()
773 tmp = of_get_property(rootdn, "system-id", NULL); in lparcfg_data()
776 lp_index_ptr = of_get_property(rootdn, "ibm,partition-no", in lparcfg_data()
813 return -EIO; in lparcfg_init()