Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9345518rwd; Wed, 21 Jun 2023 06:23:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ70YaarwIb7qXwVunOr9t29ngRNks4ptb8u+2nPIwc48xGrXZxF1hVV3rMuBo3FT+DurXlD X-Received: by 2002:a17:90b:38c8:b0:260:fd64:a20 with SMTP id nn8-20020a17090b38c800b00260fd640a20mr1520237pjb.9.1687353783011; Wed, 21 Jun 2023 06:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687353782; cv=none; d=google.com; s=arc-20160816; b=D5ZpCrwrJtI6cdZ86liRVTiGX4CWjzHmfTX/Y66IMffPVKCUZIvNZXOTnVNWlvwTPq MSnfpl1JjQBgSH8RTyeyW1yULj1VHL5T3Ykt44SK8an5wyjn4azl6uifcr9O3/IRXqVH GTITF/llh58ih3KUMFc8OQs7bVUsG6+la73M799SWIA/FDmFHOEiqg6rt86BPoeolv0b akf9/qf2QEbJCGSUJyjkkUuVu0z0mJIcBeUdUga+7c5ykmFdmOxatF31r+cuwheF926z Mh1VU12d6DW2/DsaPskyadXVT8SsEmbqlrn3Lr3B0mfjwLyOJSOCCrszhcNCZmYxAU07 +uFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=5dWRuH89Ilyk+Eum5Le0jx45SYBFgGknhsbmLYsC0Hc=; b=RbVgheO11RhGOourqlU+pwu8oKVK3aU43rbAnilFYQE1PUStmVlQktsuFieixz7E4e W4A90OCeXoQncDjpQbW6kCFLHlsWTN3+ax6hqSQChtjcX8y18kN2JFLFpVtqvdBYdEWw cCEQt/QgDMtb9N/R/LTXPyX2h3nOXNQCrEmvPxVPWqBSoVbRITNElZUcC7A85VpBAlbf l/FQixKTnb5bVsUdh865pjG4pycK0IeB3MZvTHiS44WdpcZzTDIF7gZpsFDoMAx1bSqO WnJkFBr6DWrWE8SvEEQnygGu2rY6q53TaD6GU6yrGIkpdskzoZIK1DQCCSt0y+ymyIit 02yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=i3XeniyB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rj6-20020a17090b3e8600b00260f28b14e4si1850551pjb.4.2023.06.21.06.22.49; Wed, 21 Jun 2023 06:23:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=i3XeniyB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232199AbjFUNG7 (ORCPT + 99 others); Wed, 21 Jun 2023 09:06:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232206AbjFUNG5 (ORCPT ); Wed, 21 Jun 2023 09:06:57 -0400 Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E24AE57 for ; Wed, 21 Jun 2023 06:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1687352813; bh=5dWRuH89Ilyk+Eum5Le0jx45SYBFgGknhsbmLYsC0Hc=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=i3XeniyB32M1KpXMPq7niwPRSVa4qDtOCcEB/SAqUBZTYCtBIQK4RvrldO79W+Fj8 6Ajr9EBtK/Wlqg9GG2zkFt+3n2pHYfHz1CkvBCJ1DnU9bE4caLVQ5Yopup8a3JPM8o zdLhqz1cHZBVHURrHK1yV/bKdLhYuQtryqgJxavM= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id C7F5E65DD0; Wed, 21 Jun 2023 09:06:52 -0400 (EDT) Message-ID: Subject: Re: A question about prefetchw detection in "x86/asm: Cleanup prefetch primitives" From: Xi Ruoyao To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner Date: Wed, 21 Jun 2023 21:06:51 +0800 In-Reply-To: <20230621125749.GGZJLzzUw0rA3goV1X@fat_crate.local> References: <0b663d8f6802e8dbf443397718234bcb6d0811c8.camel@xry111.site> <20230621111346.GFZJLbavDw1JiLi34n@fat_crate.local> <20230621125749.GGZJLzzUw0rA3goV1X@fat_crate.local> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2023-06-21 at 14:57 +0200, Borislav Petkov wrote: > On Wed, Jun 21, 2023 at 08:04:39PM +0800, Xi Ruoyao wrote: > > Hmm, while it's true for AMD, the Intel SDM claims otherwise.=C2=A0 It > > says > > prefetchw is only (really) supported with "Intel=C2=AE Core=E2=84=A2 M = processor > > family; 5th Generation Intel=C2=AE Core=E2=84=A2 processor family, Inte= l Atom > > processor based on Silvermont microarchitecture" or later.=C2=A0 On the > > earlier Intel CPUs supporting LM, the prefetchw instruction is > > treated > > as NOP. >=20 > And this is a problem because? I think it's not an issue in the kernel itself, but announcing 3dnowprefetch in /proc/cpuinfo for an old Intel CPU w/o real prefetchw implementation seems problematic (to me). >=20 --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University