From patchwork Fri May 24 12:36:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 10959795 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DE1EB112C for ; Fri, 24 May 2019 12:38:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC865287B8 for ; Fri, 24 May 2019 12:38:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C11E02883B; Fri, 24 May 2019 12:38:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 669B0287B8 for ; Fri, 24 May 2019 12:38:45 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hU9RD-0003An-0U; Fri, 24 May 2019 12:36:43 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hU9RB-0003Ag-Au for xen-devel@lists.xenproject.org; Fri, 24 May 2019 12:36:41 +0000 X-Inumbo-ID: 92d2f714-7e20-11e9-972b-13702c0ed696 Received: from prv1-mh.provo.novell.com (unknown [137.65.248.33]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 92d2f714-7e20-11e9-972b-13702c0ed696; Fri, 24 May 2019 12:36:38 +0000 (UTC) Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Fri, 24 May 2019 06:36:37 -0600 Message-Id: <5CE7E555020000780023204E@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.1.1 Date: Fri, 24 May 2019 06:36:37 -0600 From: "Jan Beulich" To: "xen-devel" Mime-Version: 1.0 Content-Disposition: inline Subject: [Xen-devel] [PATCH] x86/CPUID: adjust SSEn dependencies X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Wei Liu , Roger Pau Monne Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Along the lines of b9f6395590 ("x86/cpuid: adjust dependencies of post-SSE ISA extensions") further convert SSEn dependencies to be more chain like, with each successor addition depending on its immediate predecessor. This is more in line with how hardware has involved, and how other projects like gcc and binutils connect things together. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- a/xen/tools/gen-cpuid.py +++ b/xen/tools/gen-cpuid.py @@ -196,18 +196,16 @@ def crunch_numbers(state): # instructions. Several futher instruction sets are built on core # %XMM support, without specific inter-dependencies. Additionally # AMD has a special mis-alignment sub-mode. - SSE: [SSE2, SSE3, SSSE3, SSE4A, MISALIGNSSE], + SSE: [SSE2, MISALIGNSSE], # SSE2 was re-specified as core instructions for 64bit. Also ISA # extensions dealing with vectors of integers are added here rather # than to SSE. - SSE2: [LM, AESNI, PCLMULQDQ, SHA], + SSE2: [SSE3, LM, AESNI, PCLMULQDQ, SHA], - # SSE4.1 explicitly depends on SSE3 and SSSE3 - SSE3: [SSE4_1], - SSSE3: [SSE4_1], - - # SSE4.2 explicitly depends on SSE4.1 + # Other SSEn each depend on their predecessor versions. + SSE3: [SSSE3], + SSSE3: [SSE4_1, SSE4A], SSE4_1: [SSE4_2], # AMD specify no relationship between POPCNT and SSE4.2. Intel