Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3780174rwd; Mon, 22 May 2023 20:53:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5imNr59mfZ7gocTSsIUGFM/VQBiBLJvXef85G6DDSzHwZ2c7SfJRae5u4UgSvtgguivsG6 X-Received: by 2002:a17:902:daca:b0:1ad:dbea:6e09 with SMTP id q10-20020a170902daca00b001addbea6e09mr15564359plx.66.1684814004257; Mon, 22 May 2023 20:53:24 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a170902e88a00b001a656596b9esi97793plg.608.2023.05.22.20.53.09; Mon, 22 May 2023 20:53:24 -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=@intel.com header.s=Intel header.b=J7dhvcjc; arc=fail (signature failed); 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232266AbjEWDbI (ORCPT + 99 others); Mon, 22 May 2023 23:31:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbjEWDbG (ORCPT ); Mon, 22 May 2023 23:31:06 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FD9B90; Mon, 22 May 2023 20:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684812665; x=1716348665; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=A/fc/7oMq531j7KpOurejbbDn44fdGqklGwAXntbKYA=; b=J7dhvcjco0LF6A2O6Ld2j16HdqqmQrpXoXkTEqwhJJkUXcdg7wRXFrMZ /xS5bbQ4Eo5onShrihMCkxAg6jZMLzjWYklCoJg5ecUktbIy2iE7b9ioh BA9pnIRZuomioVxNMAdC6xvRT11+H22M/DlL7Omi6eyQ/le/fgnMq9myQ W7hlgT214VRcekCW3a4MYgRXDz7Nidls8jmqK4qZ+vcNF3h4ZIDDuz+VJ GwKJoXxp9Y4CP1+qBO5S6LBFN0JJcCelHKU7ief2kZ4ilSNvw+OMlAyjq WUvJ7p8C1d197OiiT11xBKjIEe/kKmcHEtXg/CP/+3FvrT6Tx6huTOI4p A==; X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="333478495" X-IronPort-AV: E=Sophos;i="6.00,185,1681196400"; d="scan'208";a="333478495" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 20:31:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="773634871" X-IronPort-AV: E=Sophos;i="6.00,185,1681196400"; d="scan'208";a="773634871" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga004.fm.intel.com with ESMTP; 22 May 2023 20:31:04 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 22 May 2023 20:31:04 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 22 May 2023 20:31:04 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Mon, 22 May 2023 20:31:04 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.109) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Mon, 22 May 2023 20:31:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g9Z4QwyvOrbPW7SRCOcu7AQ3El527pTLa5s9Y40uPyGuNi3aZZSUp2/JxsTbKEElZAeMckhdfRQ5ZKvkrj8+1KchKjsqHDzwWn2YQI6l7ux8ymqwdTF5l6LLiORlv/IbLqHdySjnK0278stNT8tzoRerMAIRLH4TffZnS7FUCUTlUA8HVNhMOp7EAQSHkgz8jT0tDHiLRcTCsbjVhu1Tx74OgqObPKAscl0J3nZC0iQsv/xyT/kMae+KkUGprCG4OK0/jsQ2ca+dbrsp34Jefi2I68XzPt8PYkpKkoqiAZg08bruHhE9n7fN8PJja3WqG2fj/0UqVNhDPH2qgHCxZA== 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=OJ1wYwSLBFdcdcnm3saVJ5ENQaF/vvaK977Nd5tzhvQ=; b=GqcqyA9bzHa8wjOuUkQ/rET6ZDzaBRJ7upoqxBk9FJ19mhHhsWzId1OrfvzlxNZbzil3azczSlaUa+XrcE7/S6oaAIXECN2FcTF02OqYuxx54hLGQrsj0uOsOYIgxCyTX2VPwTWfCQLxBHtzF7CX0+qF9B4UFAnV5V0vsijJvTmZSjTkH7fJCieK37XWkv7h+0lN8e3gA1/llUOMP81mjSRnlMeQ9wjpQDwY+n2IjZeNr9o1J7li9hdtF4vJ2PvwJflhs2yofsNulNjc9vQmj8/UI1ZIb4iekP1NUrhJ1hhceMpQm22yEub+TgKOEJOqEP1yGCi4hVZz7LYSLEWT2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) by MW5PR11MB5883.namprd11.prod.outlook.com (2603:10b6:303:19f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Tue, 23 May 2023 03:31:01 +0000 Received: from PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::95c6:c77e:733b:eee5]) by PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::95c6:c77e:733b:eee5%5]) with mapi id 15.20.6411.028; Tue, 23 May 2023 03:31:01 +0000 Date: Mon, 22 May 2023 20:30:58 -0700 From: Dan Williams To: Vishal Verma , Alison Schofield , Ira Weiny , Dave Jiang , Ben Widawsky , Dan Williams CC: , , "Davidlohr Bueso" , Russ Weight , "Vishal Verma" Subject: RE: [PATCH 4/4] tools/testing/cxl: add firmware update emulation to CXL memdevs Message-ID: <646c3372b3330_33fb3294b2@dwillia2-xfh.jf.intel.com.notmuch> References: <20230421-vv-fw_update-v1-0-22468747d72f@intel.com> <20230421-vv-fw_update-v1-4-22468747d72f@intel.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230421-vv-fw_update-v1-4-22468747d72f@intel.com> X-ClientProxiedBy: BY5PR13CA0012.namprd13.prod.outlook.com (2603:10b6:a03:180::25) To PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR11MB8107:EE_|MW5PR11MB5883:EE_ X-MS-Office365-Filtering-Correlation-Id: d98f4499-0129-475f-e401-08db5b3e2182 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c33+oJ9uFBVeisWkHEfLyVYlebQ65TSyLRhAC7nNFjRWavtAtBG9qwVATz/hpgYushgrQY+Ty7xfDCWkQJDx2Am53k8rQINQdf8RZwgkJ5hdj4aNVHmY5IGNNqcmKM1+uy2Qu8QS2ruE01TebVr5ewjyblYgVY6AdOCgILLUROYu0txJZJkZOfPoLkDV3DDtYVf9jM3l67Jios2Jx0bp7iumNqFw1nRVk8zuiRPxzx37lAoc9SdRNB5hRWRnOcpLfk+7SE7G2pA0fcXG6UOYO2y4b7hcN6rZ/ncwkdIZgSN6qf2INHWm5sWO79Ju6V+HP6g6YMZa09mir13WragPtgDH60KUp9ek4Ks5fP5VGLR1DeyJGUdxK1vuMrL5Vlf2zuqNIGhTXRGyNzJ6DCiEAcrkYG1/B2PQjhAVx1Jn8p5jHhaE/GgO7ONckNgBfLvZZ3QAMtNSygQM8XFJVujlvMMctxc3l8hQcmRkwJKTNRxldsl2/RzG/zlmvwqumwEpgXDLCyl8TLtvAfFzJahNeFsxjsXf3G3BIjOuCRqUl3oUGahPqJbpuuMSIbj7wc6X X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH8PR11MB8107.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(39860400002)(346002)(376002)(366004)(396003)(451199021)(54906003)(41300700001)(6486002)(110136005)(316002)(66946007)(66556008)(66476007)(4326008)(6666004)(8676002)(8936002)(5660300002)(478600001)(86362001)(107886003)(38100700002)(82960400001)(15650500001)(6506007)(9686003)(6512007)(186003)(26005)(4744005)(2906002)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?i3kQNrM+DaGX4JHbsOL+63po2GG2BgdKkQrSxYyLSJbL+RtXhlicm2vC/C2b?= =?us-ascii?Q?hIxweXWmAFXp00WSz+qunHzoaACVjA+GBiFbg4n6djUWgSZjusnOcZG1hMNc?= =?us-ascii?Q?muvH4tbbuSC6aDqo0LLiu5aHSzC6VH5tt7bYHqImQ04lNbOA2s2QZfGADJkl?= =?us-ascii?Q?7iCochkC6uOf7UaGIFiqkPW7GtVBUYsiCqjTszAmz6KqldfLXsrcr32u65O3?= =?us-ascii?Q?v6y2IWtSkmf1W9Cwxl7v2qLCnb+LzA249bnoFrValXvUWBD+hUqi8D61WbrU?= =?us-ascii?Q?tcq8I0Lh0o6IZlws/3AOjQjAsOA2Me/HYxLsoWjmgZJD3qT7c+ifALWDYOSr?= =?us-ascii?Q?I5bL1QDkyz31AuOfJ2r4vqFysY68EnOmtuy184gN7cW3eCLQpJ8tDN5tjy7Q?= =?us-ascii?Q?7sQVLw/zS1nzov+SvptCD+XqRLrgjzY7p8SoPwJtdUieCVnBxr2+DY0EpqT4?= =?us-ascii?Q?IEmithsCoML+pcYbln0xuCUNFioNXUWRM4vfI0Hbu0fcMYYPKhQJr8X9Ia4L?= =?us-ascii?Q?XwvPbeJF9g2vePJlD6uP/7AgdEQeyfVpBv7MsdPkklldvfUwlSbcAqHf0g8T?= =?us-ascii?Q?RLBYG2MPOjPRdppgBQ2ByX4OmW/CS9CWNwYF9Blr0ISrnj9G/BLR8iH7OdS5?= =?us-ascii?Q?HkNTr2U3DSnjI53yhK9k17CFLHMCblkryaocD2itpxK6qnWUBBqfiADaRRyV?= =?us-ascii?Q?T6tY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LJ?= =?us-ascii?Q?3Q=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: d98f4499-0129-475f-e401-08db5b3e2182 X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB8107.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2023 03:31:01.3550 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OCFdPNk0EMPpbHXZgukFR+vVaJHlIWsoJFFhr34u1VklHpWu/CWc64IDn13diuoZJ4kkbd1DOvmOWYeNa6rTn7voF6NYVuKfOJqyIpSiVs0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR11MB5883 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 Vishal Verma wrote: > Add emulation for the 'Get FW Info', 'Transfer FW', and 'Activate FW' > CXL mailbox commands to the cxl_test emulated memdevs to enable > end-to-end unit testing of a firmware update flow. For now, only > advertise an 'offline activation' capability as that is all the CXL > memdev driver currently implements. > > Add some canned values for the serial number fields, and create a > platform device sysfs knob to calculate the sha256sum of the firmware > image that was received, so a unit test can compare it with the original > file that was uploaded. > Looks good.