[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/5] x86/mwait-idle: mention assumption that WBINVD is not needed


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Tue, 18 Jan 2022 11:18:32 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2tgf4MXKWPkhZJdX9p26p28RqL6p0tLHs30ZpbPiOGE=; b=AaHBs9pvYUeb9ex6KTF4u0ldQqZiePdbe639Ij55IwQyyL3lirf/o+FOueIFvvWaSeJshGhedJOktUqgpXFJcd7wiZgZwySTZkq5mV/OcOKxSZ2/56qyblyYP5XKmmPTZNZtENCIaWoNI8My01kNi8zH0/1O/2voOJo/fPbR1a72SSh0KyU3PWQzm88JizV57M58NUaFU1UrhkeSPHOp647/FVTIIOZFrZyy8Jvrk+xqAC1Ja/WIq7+dxRPEdLxFKR242mE8LCmzWxz7i78vkh0gu99lJi9Ec/nakuygHWMmV0oFXWSy8HJYVBBOgVKd828e/rqRe8zwmwV+fqUU7g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YWE0mJTeDmqalH/txl6aoCQXOccMPMngOeVmsRi27b7GxRKNngoXq6wuY80eXmkYhqgPFigNJNPtsiXy7RE6JOBxdHca5Qtj1dAXh+Up5wnuOUSbC2lgJPr5W1HPEIGZBbV34EgZoKT7TCiI6xN3C95rInw4yeMdmkSimc8Sl9P5gRT+idcDHD+l9/XfokG8fwh6/XHRpbClSOIQqHg45cpXeuyI5Vg6YONWplfbno0cCPjsCt4/egPLVcJq0lx5E7hjQxi3YrPIgARwIOY4SScbCBXRKtfrg3ky7N25tHJlad83NyB0TVEQF3r5gOGvQZj+l7wrFo3z3i/ya/h+8w==
  • Authentication-results: esa6.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 18 Jan 2022 10:18:55 +0000
  • Ironport-data: A9a23:6n1aVqsmLbwqZKVCIQBatyDY4OfnVLZZMUV32f8akzHdYApBsoF/q tZmKTiFaKzZZGbze9xybYjlp0pTuZSBzdI2TgJprC0yES0U+JbJXdiXEBz9bniYRiHhoOOLz Cm8hv3odp1coqr0/0/1WlTZQP0VOZigHtIQMsadUsxKbVIiGHdJZS5LwbZj2NYx2IjhWmthh PupyyHhEA79s9JLGjp8B5Kr8HuDa9yr5Vv0FnRnDRx6lAe2e0s9VfrzFonoR5fMeaFGH/bSe gr25OrRElU1XfsaIojNfr7TKiXmS1NJVOSEoiI+t6OK2nCuqsGuu0qS2TV1hUp/0l20c95NJ Npl67upayFyBfPwvPU6WkUCSTxeA6ZM5+qSSZS/mZT7I0zudnLtx7NlDV0sPJ1e8eFyaY1M3 aVGcnZXNEnF3r/ohuLgIgVvrp1LwM3DJoQQt2sm1TjEJf0nXYrCU+PB4towMDIY2JoXR62OO pRxhTxHdEXySQEUFk4sM8x9vMuXqFuiQhZmgQfAzUYwyzeKl1EguFT3C/LKfvSaSMMTmVyXz krW8mK8DhwEOdi3zTue7mnqluLJhTn8Wo8ZCPu/7PECqF+Zy3EXCRYWfUCmuvT/gUm7M++zM GRNpHBo9/JrshX2EJ+tBHVUvUJooDZCfMNyNbYBtj2p243dv1zDG0g6RTRePYlOWNANeRQm0 VqAntXMDD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Z2njALz9I+rDum8rJ9ITjJjVWPHlXgslbnnlE422gYytLrWd9dP4E/M 323Ls5m9PsQwVdUu2LQl0+G8TTrdzCk5zrJTYAGh4c8QGLyRel8qTzHRS01goXF2on+8ZuzU H11yjCoomzufCyzRHRk0fV8pRtgdPkjv9OHtaFhMQ5IijlziyoeINicbufuy1dmpDk1H8a1P 335zswNcV67H3cOkmzvBvWwgHllA0j7nfzoGXo90fLkIjcfnYXGsBBjYVWfl/y8Ew7puxx16 pNwiawq4dXJQmoplWy2/H4EzVR0makq3srluAey1ZFV5EFVbNXpYsDuGtIDZY7Gj7g4oxPKp ggMCjl3ocXTbqmVQGbgoE2q+bcHEjbXy32DnTqg/blkgS/xxtCvg4lLM92pAZ2yHtycegB2w 3+CNUaqFh5dL5jUUtMPpZwfSKJMB2+ffvtChPaHb21LtBOB5ryw6SHlYndotvaP6A18A==
  • Ironport-sdr: 1lh6RYAEaDucqum+IADq/clDzhu7xtlkhJ05xAogjqk1Ot1inOxvzZuV1EPle4S13+POd/UYwD qUD0RS2Vhq0nW1C4GbbSZ/VvhAqGvqKjCh72+KB92UtwGPcQY7iWdR7tsaK9DhZr0q283mxtxf c2YBuW6QzqPxYgbAluhM6V85UqMqi0a2O7nksqXbze7XGpr/f5Magt1VETbIRQDl3K7by6wm+X 8v0eFDsgrrRtxzXrZXxJl3L7N2iozNMGs25XkMi23qcmYhz+5mr2E+FCQg6T4Z3cGVcHtuAMNp 1WWOZ4C1S8YkwXgSGI9bRwaK
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Sep 06, 2021 at 02:59:46PM +0200, Jan Beulich wrote:
> From: Alexander Monakov <amonakov@xxxxxxxxx>
> 
> Intel SDM does not explicitly say that entering a C-state via MWAIT will
> implicitly flush CPU caches as appropriate for that C-state. However,
> documentation for individual Intel CPU generations does mention this
> behavior.
> 
> Since intel_idle binds to any Intel CPU with MWAIT, list this assumption
> of MWAIT behavior.
> 
> In passing, reword opening comment to make it clear that the driver can
> load on any old and future Intel CPU with MWAIT.
> 
> Signed-off-by: Alexander Monakov <amonakov@xxxxxxxxx>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> [Linux commit: 8bb2e2a887afdf8a39e68fa0dccf82a168aae655]
> 
> Dropped "reword opending comment" part - this doesn't apply to our code:
> First thing mwait_idle_probe() does is call x86_match_cpu(); we do not
> have a 2nd such call looking for just MWAIT (in order to the use _CST
> data directly, which we can't get our hands at _CST at this point yet).
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.