From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7257D45B3B; Mon, 14 Oct 2024 20:30:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1ADD7402C3; Mon, 14 Oct 2024 20:30:00 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 96AE84026C for ; Mon, 14 Oct 2024 20:29:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1728930597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vRWqGxlNEafpPVCD4kCzOAhLQX/LD1C5bFDv0wo3X4U=; b=AB+SD7YuljcqDiI4a/D6FDuvBxF57aW5txBxdAlxvLf1rIbl+58RwQ6Qa4aj+18tpd/DuM k3/XHN7pp2ApUkNab1Lv+gXzRb3y8x7/JhfHdwbObKamsSPJBJYxbWP5mnV8NMBqn72q9g LAQw12liUXOFqIJHHZgcwx/c0wfEQXs= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-640-e1cqzqrnOZugCUwg5Kyurg-1; Mon, 14 Oct 2024 14:29:56 -0400 X-MC-Unique: e1cqzqrnOZugCUwg5Kyurg-1 Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-539fe4e75c4so103886e87.0 for ; Mon, 14 Oct 2024 11:29:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728930595; x=1729535395; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vRWqGxlNEafpPVCD4kCzOAhLQX/LD1C5bFDv0wo3X4U=; b=j2Ixk4AEvmCBXVl4kQOj8lqAf+WDKNVT2CGluo8BREI+nxgMr0g69D3y6OyKcobVa+ /UMzCLEN7frlZ6IGQU6LtbRRMH6mHzNd+/nDo7ohqS02CE1TznylWN+gzUdNoAmYyJaZ IMJBimRtfJmduwvh4BXOGgOl/XRbpQwKJIH3xl6VrwRVBu0x2FY/DOCBT/gAh+rwYdV1 tec3VPq+vCDFj2j9bTW6srgYb2H2epnCj3xpoqtyXG1lwmTn9pq+xL3o7BBu7Z2tbquh Vn8GFPLbe+MWN9Ga2WfDwLBA8g2BeH5R5SXQRw1Kxjf00khHfZKpjbmJIrhCzC4y0rWg U35g== X-Forwarded-Encrypted: i=1; AJvYcCViYAFJUoB6e2LML4ohIetUayKsLIZuOqe96qefWfHyVDlpotvuT3fSmUkJFBDTZsehJkU=@dpdk.org X-Gm-Message-State: AOJu0Yyr1G157oLw2lGsqLX06g6Vy/xkSgIg/rLaKomr3LSeVsrleKw4 Y/UdeLHQHj9Ke6JRCgQo/LkZrLN6lNVOfWzqggEhbIBz6qwEvas1K3vZaRULFoJMEATbCeqw0nb 8egXW2kQq08YIShqRAOodvimVffQDvurdSlZypK5xlH0k+aRybckydkEM0nl+O7UEUWptDk96Me z0rqd+/uqrsWFVNac= X-Received: by 2002:a05:6512:694:b0:535:6baa:8c5d with SMTP id 2adb3069b0e04-539e54e8226mr4956727e87.20.1728930595273; Mon, 14 Oct 2024 11:29:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbPGzNZkA8ktZ687f9XE5NoaLVEP/YJKDmiObvTpHikcjrCr+WUcCRgYB1ZSTXFMb/EBE6i4JWeCLcrPlxITQ= X-Received: by 2002:a05:6512:694:b0:535:6baa:8c5d with SMTP id 2adb3069b0e04-539e54e8226mr4956705e87.20.1728930594907; Mon, 14 Oct 2024 11:29:54 -0700 (PDT) MIME-Version: 1.0 References: <20241007110725.377550-1-bruce.richardson@intel.com> <20241011133303.1496014-1-bruce.richardson@intel.com> In-Reply-To: From: David Marchand Date: Mon, 14 Oct 2024 20:29:43 +0200 Message-ID: Subject: Re: [PATCH v2] eal/x86: cache queried CPU flags To: Bruce Richardson Cc: Konstantin Ananyev , "dev@dpdk.org" , "wathsala.vithanage@arm.com" X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, Oct 11, 2024 at 3:37=E2=80=AFPM Konstantin Ananyev wrote: > > Rather than re-querying the HW each time a CPU flag is requested, we ca= n > > just save the return value in the flags array. This should speed up > > repeated querying of CPU flags, and provides a workaround for a reporte= d > > issue where errors are seen with constant querying of the AVX-512 CPU > > flag from a non-AVX VM. > > > > Bugzilla ID: 1501 > > > > Signed-off-by: Bruce Richardson > Acked-by: Konstantin Ananyev Applied, thanks Bruce. --=20 David Marchand