From patchwork Fri Jun 24 02:48:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 12893372 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A27511FC8; Fri, 24 Jun 2022 02:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656038905; x=1687574905; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=IZV2+Qzn1GFQ0O0/0eUqPJi4hlZE+XDgqXsjxKM1npc=; b=YHWTLP4i0Exq7/Tmoug+0wA5ES6QM9xYqXvSBa8qX1xP5cPL9F4x/E0H 95zaZnFKj4eVtJ1lqWeJijgcfqGAx97q0S1gudnV4UVvP86HP2cOQehYB GArs0dCnxzX/wSr7GcvOGF1eY0ABzXGFzRO0DwIyR0M1Bf8U4foJY06Dq acbxMqxlIfBzMY5ot+TBwMqkQ2oXzU38BVBS9YXAJCLjSAX3gGXfpoyAS C3LemvVjk+d5cbCwp7BkLP+aO2Z6VfrB/gHne644U5Dswj9c5oZUwZJVj LILQME32hUEoeLEMY0VjVHT7D3fnCoURhRhPcylqojAFjUrlaiENKHP91 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="263941820" X-IronPort-AV: E=Sophos;i="5.92,217,1650956400"; d="scan'208";a="263941820" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 19:48:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,217,1650956400"; d="scan'208";a="678352815" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by FMSMGA003.fm.intel.com with ESMTP; 23 Jun 2022 19:48:24 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 23 Jun 2022 19:48:23 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Thu, 23 Jun 2022 19:48:23 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.102) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 23 Jun 2022 19:48:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PFPHcIkDeY+4UtU3zC94nboPXRO6jmltJVINWrYoA9sUN2LzEACR9ZUBacB88AMTQF/stWwApEtud9pmBDJMuxs6kP9ACxO7DGGMBS+X65iWcgcYBFeX1+wfnshVV7MNHn5qghVZ2coQfWJZHw3AHkTkxauBksbVdeKMAIZ6pfOYJKzQRjRDY4ibuYYP6HjOEedZ1t78c5j6A+2IbDrkSjE3Z5iY+FW6w03AW42cI+NdEYVlqA53G0fFyHa6+1TUcTsk5GDE9WSUpDjO7Xu+ZcTFv7B4apFdnu68igNZQckMP9cqra7hy7+vVUra+7DlCFQuWTLDmbsfElPYnoKHYQ== 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=AfCXqxN3oa0+Nv2NlwubJnhY3OlRpK2UjchkPbMmD3Y=; b=iVrzpA+kONmqwNNzbhvC5y4gCaB52Lwqk0Nv4VlOPObQ5bpb2mlEyjNYRpikLTj8rxl85sPxiidvLpezrmQbwv91C7IKBPmvaSjOaQK0fvzc89yit0txuA4wWH7y3wit0BK89OtOTFm7KuShnuNyqLqIqU2xGf7x1o2d/CIxxc4vkJFrkMSe/+bGWo0mkZvSPa5KDdQpbagOsEFnZuYRUMkQxecmi3Fw7P9e9iFK92zie3QzNBsw8T6lmBDx6TYe6I0e8u4M9VK+HV4IxYePyy1eQCVrt4uLKeoXHblu95tWZtLUr2aUsOH7MXJ8lIXGpWwCfgeSiyFRCuypA3FwSg== 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 MWHPR1101MB2126.namprd11.prod.outlook.com (2603:10b6:301:50::20) by BN6PR11MB1876.namprd11.prod.outlook.com (2603:10b6:404:ff::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.15; Fri, 24 Jun 2022 02:48:21 +0000 Received: from MWHPR1101MB2126.namprd11.prod.outlook.com ([fe80::f50c:6e72:c8aa:8dbf]) by MWHPR1101MB2126.namprd11.prod.outlook.com ([fe80::f50c:6e72:c8aa:8dbf%7]) with mapi id 15.20.5353.022; Fri, 24 Jun 2022 02:48:19 +0000 Date: Thu, 23 Jun 2022 19:48:01 -0700 From: Dan Williams To: CC: , , , , Subject: [PATCH 24/46] tools/testing/cxl: Fix decoder default state Message-ID: <165603888091.551046.6312322707378021172.stgit@dwillia2-xfh> References: <165603869943.551046.3498980330327696732.stgit@dwillia2-xfh> Content-Disposition: inline In-Reply-To: <165603869943.551046.3498980330327696732.stgit@dwillia2-xfh> User-Agent: StGit/0.18-3-g996c X-ClientProxiedBy: MWHPR02CA0002.namprd02.prod.outlook.com (2603:10b6:300:4b::12) To MWHPR1101MB2126.namprd11.prod.outlook.com (2603:10b6:301:50::20) Precedence: bulk X-Mailing-List: nvdimm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: be69c194-6c30-4d95-7bf7-08da558bf4d8 X-MS-TrafficTypeDiagnostic: BN6PR11MB1876:EE_ 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: UmEQXnvIOKEH9qbDwC/EJk4UJbkOOju1AIvfMJ2Z4zTp3vV1IFGGIRu1Ls40EiJRSd4a9QzWLgR16fWiqzrk5SVfHGcTSf3vaaUdVRWWTQdhyc225sFPZnEd0cOHwIZ7yayiMdoDU6UuOl/E1sBTEPBBx+Dpyzb7aus8D2z/LqSJEeXKDjjO/jKLcWF3mL7S2qW3dgukmu9eypKaQC6zCllWelq7C+d1xjxkhdtDWBh8XX3d8dw8ZmeCEAnlhvVC4PqkI3vQbBd55Pjm0/AQYhcG/b4LEUZ4bv3N1RkQI8vtkb6VB54zsOW7OW5FTQYViytMIulatMqvR18PL4Y1wzZ7Ii/5PUPml7rgzo44U1d6J0BryUAUkYaUv+OUsVc2v/VmrsFwhF/RaSk3L7KiyAr1qEGMK6Jb9eFVgkJY9pDlTibh3zx1LExHXVMRYsbMB91Uln5ymsH+z/HpipDaMPPVQZwulMfaLVlqDh9pFYEJZCzoybo7xVZXwbAYK3+kdD0KuDBhlcPL9qjFUhyczWkp6/R6h7EhLNxdcO6CmHcvvd5ushtNL5j0p+zNRJ5YSgf5wqHHVpVOqCsJMW50sVkZlwOge7rkO/vhoMjU2j706oMEp5EfxbWy35NjGyCK5SHNZhdvLXuRKtn1skHZnXxcPR3LZ5Qh4Vzq44Zabdm/bHX1LceJkv7N7Kw4vl9A4XVKXlEisRf3bqpnzgQJL5D5Fduf1ZbmpdCtg1s3x0ROjd6fNB2Cr/Xuk0KmFzEL X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1101MB2126.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(7916004)(346002)(39860400002)(376002)(136003)(396003)(366004)(103116003)(9686003)(6916009)(316002)(5660300002)(6666004)(66476007)(2906002)(86362001)(41300700001)(26005)(82960400001)(6486002)(6512007)(478600001)(66556008)(38100700002)(83380400001)(6506007)(186003)(4326008)(66946007)(33716001)(8676002)(4744005)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Sb1KjrlY0lW8h/XlciBzfBysMDCaQU1dEeUKh9zmeZMx0bcWwdktCMbVUuMa4NqRA/mFr/VzziWDPSt29ExFY4GueAKOsiht7ZILfXHHb4iYSR40LekRq06dbNqSStgvo2kTmCOG6674ouLBbr5/6nm/ks4RNG2lHs8ESz6bbQOxMzizYDu0yqaee7mpR1mfF9uytakHWAWY2gAL26C5Kw4MiPL31DGqs0OB+obW1jB2pG5DJ7x4NFlvlgH0r+TlT1PcQTRFmVdCbacCQCNo03ZHIONrHGuivrAeT0r1Z6U3iMJbqVOX7V6xwSrKQ80Ch3OpOnNnND7NL4DzcrrzfG/gfVYbSqqUg+tXlvTpuMRrNqMjAZryPDC6d/z1e3rT9EjzjNbUUeCB9DjM6/HhIww0CWdztQwMdRZ6ZrmmrhqBdJi/IGKnyCjMNnwUspczHtiNqvpFCgXeaa0edB6DOUznsPrUU2GRLseFnR7dDLh3r2nwPeBlYs9nzuxVX2pjQuc8qtwadrs0h/hm5STh0rOxdwglGbZnzOjKKGO0PNNOG8ufsln8968adsLX+CZTNJtBHCT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bf7-08da558bf4d8 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1101MB2126.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2022 02:48:02.4395 (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: 3H8aJu9DYhTQ0WsqqidoIs8Ao9oQP2E8UXiFCNS1FetG8+lgGQBT9JdNSuvFfkm385g+dAcpz0Efbm/VcNWti2kQf/kMnZDmPmh3DuupBbQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1876 X-OriginatorOrg: intel.com The 'enabled' state is reserved for committed decoders. By default, cxl_test decoders are uncommitted at init time. Fixes: 7c7d68db0254 ("tools/testing/cxl: Enumerate mock decoders") Signed-off-by: Dan Williams Reviewed-by: Jonathan Cameron --- tools/testing/cxl/test/cxl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/cxl/test/cxl.c b/tools/testing/cxl/test/cxl.c index c396f20a57dd..51d517fa62ee 100644 --- a/tools/testing/cxl/test/cxl.c +++ b/tools/testing/cxl/test/cxl.c @@ -479,7 +479,6 @@ static int mock_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm) .end = -1, }; - cxld->flags = CXL_DECODER_F_ENABLE; cxld->interleave_ways = min_not_zero(target_count, 1); cxld->interleave_granularity = SZ_4K; cxld->target_type = CXL_DECODER_EXPANDER;