[Skiboot] [PATCH] cpufeatures: Add tm-suspend-hypervisor-assist and tm-suspend-xer-so-bug node

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Wed Apr 10 02:46:53 AEST 2019


On 04/03/2019 11:18 AM, Stewart Smith wrote:
> tm-suspend-hypervisor-assist for P9 >=DD2.2
> And a tm-suspend-xer-so-bug node for P9 DD2.2 only.

.../...

> 
>   static void add_cpu_feature_nodeps(struct dt_node *features,
> @@ -905,7 +942,20 @@ void dt_add_cpufeatures(struct dt_node *root)
>   		if (is_power9n(version) &&
>   			   (PVR_VERS_MAJ(version) == 2)) {
>   			/* P9N DD2.x */
> -			cpu_feature_cpu = CPU_P9_DD2;
> +			switch (PVR_VERS_MIN(version)) {
> +			case 0:
> +			case 1:
> +				cpu_feature_cpu = CPU_P9_DD2_0_1;
> +				break;
> +			case 2:
> +				cpu_feature_cpu = CPU_P9_DD2_2;
> +				break;
> +			case 3:
> +				cpu_feature_cpu = CPU_P9_DD2_3;
> +				break;
> +			default:
> +				assert(0);

Better add warning here and use "cpu_feature_cpu=DD2_3"?

-Vasant



More information about the Skiboot mailing list