From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by sourceware.org (Postfix) with ESMTPS id B992D3861C56 for ; Mon, 16 Mar 2020 06:44:21 +0000 (GMT) Received: by mail-pj1-x1044.google.com with SMTP id dw20so3706868pjb.0 for ; Sun, 15 Mar 2020 23:44:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bDfTZHaJZGmZfV/qcD56k96wrDWa4szZJPjY1CopG50=; b=kXaDq+RIT8sz0CkK+iN07QuTWbDhN2N3cquBbGLvTtItTBEaJWBBxU+00G6FvTLRJm LOlZn7R7RdUAkZf/1+TD/TStZBkKj0U88umEnRk8c3+1k3LLrKMnW4myK/Grf0kbsHFz zc2pNQBFEvbLSrDdcHWS9L6i2TvoYkcYioVmJZM7N+K6hCAfx0Ui9+ChuvbHlXLiYnv8 PU+aAHoMWlzhSDFEqoBNavMXPCiO53uO+Q44XMspFdKA0a6vY3zHoLbbabRSw6eacoRA J6/glN3g8VHOSJww/T1f1DygddgWIEKS8XmKbFmhf8nniW5KNR2B5j4qI8i8nQIhjpFI uSTA== X-Gm-Message-State: ANhLgQ226bgqLHE17nSDAsSQOg6N3y4qQbSChz3lfb/C/STE7UWBYSo5 5AulrPsAwoFpQkQ+e98xzGUrGbpb X-Google-Smtp-Source: ADFU+vuXkS/eNMn1xW0qRZTFQkNHcWCAQgFc++U5MxuO+ooZwS3okdeFkX9Onljz60UsX3XmRupfvA== X-Received: by 2002:a17:902:ee93:: with SMTP id a19mr13892210pld.258.1584341060574; Sun, 15 Mar 2020 23:44:20 -0700 (PDT) Received: from Myrtle-ZP-Model0.amd.com.amd.com ([165.204.156.251]) by smtp.gmail.com with ESMTPSA id k67sm63347598pga.91.2020.03.15.23.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 23:44:19 -0700 (PDT) From: Prem Mallappa X-Google-Original-From: Prem Mallappa To: libc-help@sourceware.org, codonell@redhat.com, schwab@suse.com, FWeimer@redhat.com Cc: Prem Mallappa Subject: [PATCH 0/3] RFC: Platform Support for AMD Zen and AVX2/AVX Date: Mon, 16 Mar 2020 12:14:05 +0530 Message-Id: <20200316064408.13808-1-PMallappa@amd.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_2, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2020 06:44:22 -0000 From: Prem Mallappa Hello Glibc Community, This is in response to [1] https://sourceware.org/bugzilla/show_bug.cgi?id=24979 [2] https://sourceware.org/bugzilla/show_bug.cgi?id=24080 [3] https://sourceware.org/bugzilla/show_bug.cgi?id=23249 It is clear that there is no panacea here. However, here is an attempt to address them in parts. >From [1], enable customers who already have "haswell" libs and has seen perf benifits by loading them on AMD Zen. (Load libraries by placing them in LD_LIBRARY_PATH/zen or by a symbolic link zen->haswell) >From [2] and [3] And, A futuristic generic-avx2/generic-avx libs, enables OS vendors to supply an optimized set. And haswell/zen are really a superset, hence keeping it made sense. By this we would like to open it up for discussion The haswell/zen can be intel/amd (or any other name, and supply ifunc based loading internally) Prem Mallappa (3): x86: Refactor platform support in cpu_features x86: Add AMD Zen and AVX2/AVX platform support x86: test to load from PLATFORM path sysdeps/x86/cpu-features.c | 113 ++++++++++++++++++++++--------------- sysdeps/x86_64/Makefile | 3 +- 2 files changed, 69 insertions(+), 47 deletions(-) -- 2.20.1