From patchwork Sun Dec 29 18:44:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182592 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp5506625ild; Sun, 29 Dec 2019 10:45:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyKcFWHKZiFpQ7rKvFCgrVmYGD5KN+k2RDACsdrgslXmd+b3FKaQhZKhBvDn1RWTWyyXKDI X-Received: by 2002:a63:1110:: with SMTP id g16mr46007926pgl.84.1577645130387; Sun, 29 Dec 2019 10:45:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577645130; cv=none; d=google.com; s=arc-20160816; b=CVmluXoRpvQx1AAL0ey1yXzQZQ1kEeiOV5N6v23ixMBcPW7nGNz+fBGe3LWklAVMwO p66vjtAelvHX2YUcTtphZqzqwl+0cPKfqLM5lEOBPl5DYgAokC9u/klouNtJNoun1jEX pvP59KYpd8BQAgRm7g+aOO5lQTzQNcXqUMv8riQ8Ph/uCn6y1nJeJ+wf3ZyL6EdV2hQj 0xAxcr1726eJMDfdRc9zknHVh3W7NJw9PJzM7Rxw1yfYLMMZ3hdJz0lqdDRHa4JW36rC HBhp/MiCB4cF67yp6eVUz6+bdxkXX/IgVvZZ26QZZxRbEZant4M6q99/IPxIEnfRrAHb MoAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=CZrZszbJT7ikkB8seyx8pLuk3FP+3/UGE1L82c+7fPQ=; b=e3KradEvd0N+7c2EBdUdUNHAzXZOxBTlyLNMjFDWr2SLXxAkeGXm/YG+QxPE8yql65 zTLU4+p/uonTRzgjfpnQNge61VurNs4UBQV7EyuHPlPI3SUAKQzz4BWAKChBCI3nN/nb SII7JNG7NZRhXRwRtfXzYxDhUZA0CDv0pj7R61+hruN09q6Raq2u89/sadvJek0s60xA rHxfQYWFp8Eyi2GX5favO17mIZmEyRSKco4UpwSkeiBntqju1ZbxP2nnkXkKbLDpj9eT JXeW9e3y/yO8vVSHiazfbrOJVS9/sRk7c8g/81VQq/wncEl0ZKh0KIrTvwEEgX1a17WO Ip4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=cph9TJvH; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id z12si33077217pfk.158.2019.12.29.10.45.30; Sun, 29 Dec 2019 10:45:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=cph9TJvH; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 9B5D77F8DB; Sun, 29 Dec 2019 18:44:55 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mail.openembedded.org (Postfix) with ESMTP id 19E787F884 for ; Sun, 29 Dec 2019 18:44:34 +0000 (UTC) Received: by mail-pg1-f174.google.com with SMTP id b137so16998556pga.6 for ; Sun, 29 Dec 2019 10:44:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0Y5vhabqW7djdwHdjCEPXH1majAzei6DlaJNMt3R/PY=; b=cph9TJvHKq4J6Wz3DBBxU4KLbK0CWP+aYapHvr8+z6m9zkJV4BfmBauODKmyFD62Xc CfNNXJxjhsSlV5jKgopXW30GZy9DsCpGfKLhH86R0HcWmyRyvl8VDHPty0YYgquC5Y+X TpC9HoApHLp8x0h4s7OBHtn2unONNfbXguzZ9C6D9RpBKLxV8QO2It3zUnIafv5ov++Q DAArMzuKgGjCiyTCDbEzZqmTEdnlP0Nyz1sMG8hRxZv98TvB8zMpAqsD3BFGsaEk/5Ok EN/3HS51WFariA2xGaLpHcQG1cnOs9IUEDpWw06B1b8iuxtNonCyvBvE5u1oyQLs0zqK 6o7g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=0Y5vhabqW7djdwHdjCEPXH1majAzei6DlaJNMt3R/PY=; b=twjsMsSy5UvdbC0bwP9023SM4pOG3U0KL8hbE0gubxDsj++Ti4hQn+s/gC7ugc0wA6 HiVJU8NYuqpMN1tcWSNDbFGee0XJZj8Lws/5d/7OZEsiz4u/C2T3UGMbnJLnnjG97rZb 1BnzcXELyE+DcXNGfVavKG7SQLDZu/nw6TnzTkaWVvMY65QSSqlwGm9ZgvlthpI1AAO4 rVifUYG4wStoQp89CYbOdZljFREeZwDOvLseg3EA12e5BXA+KbxlxNldzDLyH4RKFK9z sWXzLWB1PQAvGfJdQ4w7ek2VgSPSbTFIJRHGgfxGzMV6X37gGLs4UERO4Pswb9vtIaYb tJdg== X-Gm-Message-State: APjAAAXJiGAa0r3IgpQVQr3H6CvAh6ZSGrJeY0awhlSXPr0Nk1KpIxvI HaDmEFTDFzoKCEioKaLvHG72fmM9wgE= X-Received: by 2002:a63:1807:: with SMTP id y7mr64170064pgl.94.1577645075693; Sun, 29 Dec 2019 10:44:35 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::2f83]) by smtp.gmail.com with ESMTPSA id bo19sm21257085pjb.25.2019.12.29.10.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 10:44:34 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 29 Dec 2019 10:44:04 -0800 Message-Id: <20191229184415.19514-8-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229184415.19514-1-raj.khem@gmail.com> References: <20191229184415.19514-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 08/19] tune-power9: Add power9 tunings X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Add Little/big Endian, 32bit/64bit Signed-off-by: Khem Raj --- meta/conf/machine/include/tune-power9.inc | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 meta/conf/machine/include/tune-power9.inc -- 2.24.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/machine/include/tune-power9.inc b/meta/conf/machine/include/tune-power9.inc new file mode 100644 index 0000000000..81d6e8e9bf --- /dev/null +++ b/meta/conf/machine/include/tune-power9.inc @@ -0,0 +1,35 @@ +DEFAULTTUNE ?= "ppc64p9le" + +require conf/machine/include/powerpc/arch-powerpc64.inc + +TUNEVALID[power9] = "Enable IBM Power9 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'power9', ' -mcpu=power9', '', d)}" + +AVAILTUNES += "ppcp9 ppc64p9 ppcp9le ppc64p9le" + +TUNE_FEATURES_tune-ppcp9 = "m32 fpu-hard power9 altivec bigendian" +BASE_LIB_tune-ppcp9 = "lib" +TUNE_PKGARCH_tune-ppcp9 = "ppcp9" +PACKAGE_EXTRA_ARCHS_tune-ppcp9 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppcp9" + +TUNE_FEATURES_tune-ppc64p9 = "m64 fpu-hard power9 altivec bigendian" +BASE_LIB_tune-ppc64p9 = "lib64" +TUNE_PKGARCH_tune-ppc64p9 = "ppc64p9" +PACKAGE_EXTRA_ARCHS_tune-ppc64p9 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc64} ppc64p9" + +TUNE_FEATURES_tune-ppcp9le = "m32 fpu-hard power9 altivec" +BASE_LIB_tune-ppcp9le = "lib" +TUNE_PKGARCH_tune-ppcp9le = "ppcp9le" +PACKAGE_EXTRA_ARCHS_tune-ppcp9le = "${PACKAGE_EXTRA_ARCHS_tune-powerpcle} ppcp9le" + +TUNE_FEATURES_tune-ppc64p9le = "m64 fpu-hard power9 altivec" +BASE_LIB_tune-ppc64p9le = "lib64" +TUNE_PKGARCH_tune-ppc64p9le = "ppc64p9le" +PACKAGE_EXTRA_ARCHS_tune-ppc64p9le = "${PACKAGE_EXTRA_ARCHS_tune-powerpc64le} ppc64p9le" + +# glibc configure options to get power9 specific library +GLIBC_EXTRA_OECONF_powerpc64 += "${@bb.utils.contains('TUNE_FEATURES', 'power9', '--with-cpu=power9', '', d)}" +GLIBC_EXTRA_OECONF_powerpc += "${@bb.utils.contains('TUNE_FEATURES', 'power9', '--with-cpu=power9', '', d)}" + +# QEMU usermode fails with invalid instruction error +MACHINE_FEATURES_BACKFILL_CONSIDERED_append = "${@bb.utils.contains('TUNE_FEATURES', 'power9', ' qemu-usermode', '', d)}"