From patchwork Wed May 10 22:12:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noah Goldstein X-Patchwork-Id: 1779705 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=cFGZwSL8; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QGq6Z6KT1z213w for ; Thu, 11 May 2023 08:13:26 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4A5623855591 for ; Wed, 10 May 2023 22:13:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A5623855591 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1683756804; bh=qnTJ2mT+gxcIuB98btex6OlvzSnmUGx3MQnC472k8G4=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=cFGZwSL8EBBkPh80zvUFcIwI7GmZK9Eg96RWoBFoE6wpe+AVVHx6pHBeb8Y8lQyCg 8Z6kulRvNwtCsm2q3OzHaC8HClE+wbev/13rp5yNXP7MpYpzCcdenoQ3WlNDjSgKe1 zaIB/zhihpOLsdgYdr0+MdLZWMQuKBEArzqO5yg4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by sourceware.org (Postfix) with ESMTPS id D2AD638582AB for ; Wed, 10 May 2023 22:12:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D2AD638582AB Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-50bd37ca954so73456659a12.0 for ; Wed, 10 May 2023 15:12:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683756760; x=1686348760; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qnTJ2mT+gxcIuB98btex6OlvzSnmUGx3MQnC472k8G4=; b=lr5SzrYb/7MgQkdgqcoLr+Vg/7ZBMdpMwFBg/ZgSk+LTf9mWIsYGdP3UBttByAh8FR JQmOmRK7N6hlp45OyZ3trrHzAxvoTDy6v2my7Z2YWqTzMEEYsEiInflIusPnnxau06QK o1aRxrDQS9ryAkIin/NfRzXaha2Km91mL3kCUQK/HLgPfuu/1SxsyUzcyOrg4Hz6ppm1 Hu+dhUfvJANW8Xwjb4a1U0cPlpSj71Kf8uVvCz35sMaZzsdyyHoVASji6CG9JJFotHfF TtJ3EZE/ow9U2TJKZ4CKPsaLZCmPhKTDddrEpaN9q86wCOprKNIhGTpwmco+sZ7Ze4gP raQg== X-Gm-Message-State: AC+VfDzDc8F3DPgEZlJP3fl+d7lhzq3arOWGUJkJEuQKAiOMlZw4q+W3 9b6sGPsvR8TyVX0CDa5U0Z8RdHE4phE= X-Google-Smtp-Source: ACHHUZ7RBy4xznlssotgy71AqaleuqjCj8GNEdewp5yx5HmFhcv920g9vKeSZEiq6boIFnrB2BMq8w== X-Received: by 2002:a17:907:1622:b0:965:aa65:233f with SMTP id hb34-20020a170907162200b00965aa65233fmr17696979ejc.2.1683756759576; Wed, 10 May 2023 15:12:39 -0700 (PDT) Received: from noahgold-desk.lan (2603-8080-1301-76c6-d514-288c-2603-6ec7.res6.spectrum.com. [2603:8080:1301:76c6:d514:288c:2603:6ec7]) by smtp.gmail.com with ESMTPSA id mc27-20020a170906eb5b00b00966330021e9sm3141378ejb.47.2023.05.10.15.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 15:12:38 -0700 (PDT) To: libc-alpha@sourceware.org Cc: goldstein.w.n@gmail.com, hjl.tools@gmail.com, carlos@systemhalted.org Subject: [PATCH v7 4/4] x86: Tune 'Saltwell' microarch the same was a 'Bonnell' Date: Wed, 10 May 2023 17:12:13 -0500 Message-Id: <20230510221213.765754-3-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230510221213.765754-1-goldstein.w.n@gmail.com> References: <20230424050329.1501348-1-goldstein.w.n@gmail.com>v7-0001-x86-Increase-non_temporal_threshold-to-roughly-si.patch> <20230510221213.765754-1-goldstein.w.n@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Noah Goldstein via Libc-alpha From: Noah Goldstein Reply-To: Noah Goldstein Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Saltwell is just a die shrink of Bonnell, so the same micro-architectural optimization preferences apply. --- sysdeps/x86/cpu-features.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c index 4cc1cd9fed..0fb02d2f39 100644 --- a/sysdeps/x86/cpu-features.c +++ b/sysdeps/x86/cpu-features.c @@ -672,7 +672,8 @@ init_cpu_features (struct cpu_features *cpu_features) { /* Atom / KNL tuning. */ case INTEL_ATOM_BONNELL: - /* BSF is slow on Bonnell. */ + case INTEL_ATOM_SALTWELL: + /* BSF is slow on Bonnell/Saltwell. */ cpu_features->preferred[index_arch_Slow_BSF] |= bit_arch_Slow_BSF; break; @@ -710,7 +711,6 @@ init_cpu_features (struct cpu_features *cpu_features) /* Default tuned atom microarch. */ case INTEL_ATOM_SIERRAFOREST: case INTEL_ATOM_GRANDRIDGE: - case INTEL_ATOM_SALTWELL: goto default_tuning; /* Bigcore Tuning. */