Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp797057lqb; Wed, 29 May 2024 10:43:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWP6dag4tg/sOur3UxMBReZ/v5RUmVvQaFUmgaGOFp6nnjYkW6ip5RhgVkfDz8rgFkZGBDZ4wM3mueuWugB6pFYSOoXrZu2//l6aUUevQ== X-Google-Smtp-Source: AGHT+IG+PzA/gCcv7bO9vUU75hK+mf1cyAUrVIdFL+wR4Vy28e1YwRqcqOxKcZi6teiOJKYJmKEz X-Received: by 2002:a05:620a:1794:b0:793:c6:4096 with SMTP id af79cd13be357-794ab0f8b00mr2216929385a.54.1717004592418; Wed, 29 May 2024 10:43:12 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794ac5006e8si1454240885a.442.2024.05.29.10.43.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 10:43:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=in64U4rF; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-194520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8D9CF1C22D21 for ; Wed, 29 May 2024 17:43:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 918E11607BA; Wed, 29 May 2024 17:42:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="in64U4rF" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (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 813811581E7; Wed, 29 May 2024 17:42:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.16 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717004578; cv=fail; b=MtIF//XWuwvGSVxTKGQ7QPbiUjmQG9ybtb5Jpxoh7zisL8y0Ik9wjj01jIL9TGyVhE2SXAZsSRhskMc8AY77QsBt+wlWT2j5A1WoWyF2DDnNRThaisZMgQmds0LkxbKjvuFjs7IzmyXuvazDKwC5A6ETsr7N8SsnFthbTX5w7+0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717004578; c=relaxed/simple; bh=zssctieAaIBJ/reg3ymtEaZr2VsO8fyRGXRtXNpda0Q=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=UX+og4sZNnbCeMphOt00E+fCwrVslYkg9GCf3ajEPd+lYHbN2uvoHn2L56PzswWNOKHa1UqXavUhX2LuU6GFZg/3zunrZDpL63kaozihLksHnH37lTfDJjT7uLxgDC8DhsCNdEg3DuHFM1SCUsvywKcggX/PjZ7H3aiyJT+8A8o= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=in64U4rF; arc=fail smtp.client-ip=192.198.163.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717004577; x=1748540577; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=zssctieAaIBJ/reg3ymtEaZr2VsO8fyRGXRtXNpda0Q=; b=in64U4rFEmNwaYlV+PMWoRC0tHPH1Jasb1rtoKw3fLty2XpVhh42geLM p300+hd2s3ZTT+58Js8StA9ew9YRdfgTu0nWGX9HWSDKZCi35oHl5Zux4 9/j6Yn25q6m3Sn66teidA4okUQA4SpVSTX6j0qMJnEQIngXUeF18BPX6s Yufa2NK1jhyooCO7px5mZ9GW4We5n/n8U5+M4w2T6lCAO6U7X3YwGH4Xw uRjLU7tKf7nud9TSyeaI7RUQhkIb47MA3DS49lziN1muwhljLXS64tcnc IHRE5Hrk9N0dTfaynfWtt4rRgjz3CFwE6jGb2wl2T8+L8bAawOqtF8ifK A==; X-CSE-ConnectionGUID: fLbdCaWKTyOwDPVRIza4lA== X-CSE-MsgGUID: VGGkAtx/QTKagPioZ7wndA== X-IronPort-AV: E=McAfee;i="6600,9927,11087"; a="11755255" X-IronPort-AV: E=Sophos;i="6.08,199,1712646000"; d="scan'208";a="11755255" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2024 10:42:56 -0700 X-CSE-ConnectionGUID: e24UJaoYRr+8voio7aq0hw== X-CSE-MsgGUID: j4A2Ifg3SsGsr1TdaKitqw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,199,1712646000"; d="scan'208";a="35582536" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa009.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 29 May 2024 10:42:54 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 29 May 2024 10:42:54 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) 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.39; Wed, 29 May 2024 10:42:53 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Wed, 29 May 2024 10:42:53 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 29 May 2024 10:42:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QuuDyLlkD2pJuHFWN+S2vjHnzjoUhx2HJB+0rXRUoxlGH1vAuA2HyECXBFAm9HVxDLg7gbcqdbt5ItJ87pHpO9Nw87mkfiZo78CfbvX8E6bpue0R7qlyURH7sSRC2ZC9/r6HJX2lhPpCGcxjOIrGNy+8UUVdswyDGob5yLcMFav2cPl4BdMV9vXEtUo1u+uqku3WarlEvUKeHatcvxbGrQoyop2FKE8wvDq9mEpDSrenw3LR/TmR9At/IBCv6w+cuDwVW1H2PVPO61GAhgk6vK6QEt9d+TbkUuP/mMuOTQ9pVVRuLZRfHI55J8xU2eRfrgnVrkL9/hxVoUiUiTP0JA== 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=O9HpvaN4VuRoP9aIWz8qGubW63XKvTZTQZ0h/fkQPjQ=; b=DZeFjR5flZvirGw2XAlh0cu/rXVgOSwFN5oaF5953b4INyXnNeUFbvM1qq/wZFccsBu+nvKix3SGUTG+71JIMV7KE/3ybVX774C98nXXgMH9L/RtJFEx1Gc3SuNX4C86o3AOtqxUjxRP4mM8INwVFWapzALR/UmYY37RMsi19miLwoYq+aaDUB/m8Gb1XvoBHfDm2Ft67XMOMaOfs7kmSqmqdSbz15cl9928u//SeOpvj4fYmNZHfqXdP5h2MNO6iNf0YWijaspEE4/DhFle86w/4YE9VotJNL/5WMDhbWvrLwDof6G1f4TMpYJXdwkh1OrOHXN1eHf2GhsTPLpcBQ== 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 SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by IA1PR11MB7854.namprd11.prod.outlook.com (2603:10b6:208:3f6::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30; Wed, 29 May 2024 17:42:51 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::61a:aa57:1d81:a9cf]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::61a:aa57:1d81:a9cf%3]) with mapi id 15.20.7633.017; Wed, 29 May 2024 17:42:50 +0000 Message-ID: Date: Wed, 29 May 2024 10:42:47 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 01/16] selftests/resctrl: Fix closing IMC fds on error and open-code R+W instead of loops To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , , Shuah Khan , Babu Moger , =?UTF-8?Q?Maciej_Wiecz=C3=B3r-Retman?= CC: , Fenghua Yu , "Shuah Khan" References: <20240520123020.18938-1-ilpo.jarvinen@linux.intel.com> <20240520123020.18938-2-ilpo.jarvinen@linux.intel.com> From: Reinette Chatre Content-Language: en-US In-Reply-To: <20240520123020.18938-2-ilpo.jarvinen@linux.intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW4PR03CA0339.namprd03.prod.outlook.com (2603:10b6:303:dc::14) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|IA1PR11MB7854:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e782216-d14b-4ab0-4673-08dc8006c25c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|1800799015|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?NlpVRXBjZ2hTaWQvSHJUN08wZVZCOGJsUjg2OEJ0aG5BdzdQT3ljd1R3OXY1?= =?utf-8?B?WFJGVzg2d3FQeVdNTnVjUkhmU3I4ZWIwdjEwb09FYzVsZmlzVy9mSFpuVHVW?= =?utf-8?B?U2cwMml5Y3ZUV3pGdlN5VVhEU1JLaThCNnZ5RE02dUhTMi80OUQ0NVFuaUhY?= =?utf-8?B?NkdqRTUva1ZydzMwQ0FBWVIwWnlLWFBKVXNhVkkrbzBSYVRVeUFycGxRbUph?= =?utf-8?B?R2p4YXVzbEZVOU5GOGRlbS9IczFqekpYSEVJKzNETTh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NpSjlBQTFyMlIwbFRrVDBxcllPK1U3VXJl?= =?utf-8?B?OEJ2WkhxWjhEY25ROXFwV25EN0xlRFdicjVNejI4Skl3NnN0dGZDR0tGVFhC?= =?utf-8?B?MUhOVk5iTmFnSXROMndKdHVoNlQ2QVhiT1JtazZRRDNFY2xGSUw0MFBwU0w5?= =?utf-8?B?bStuWDFUbGEvZzBIbmJCaURYcmtCTTNuUmRJWmt4cmlCZVp2WHBsYUhzcytK?= =?utf-8?B?em1Qek5mVnRtRTZVcGtHM0VhY0ducjJjenF3Sm9oT3BEL2EyOGZsR3ZlQk5w?= =?utf-8?B?Y1E0eERXNWZkUHF1N0UzYUFnMXRucFpOUUVSbDNXcTYrenB0a1Z0cE1VRSs4?= =?utf-8?B?QUFyK3EyRmFXWXhuVHdvS3JrcFhzZmVkcXhWenpRWVEzTnBsTURQbnRZVk9R?= =?utf-8?B?b0VNZVBya29YYzJKQ2tQS291RVoxSmJwM1NIVnUxeXBkaVdOMDVNV1pHY2s3?= =?utf-8?B?b0xET0hHeWNybTl5K3FkM2lGcWRBbGxHUDE5MWdmd3NoZCtpZGN1NDc1M2tC?= =?utf-8?B?TmlkRlN1NkFHQVZZelo1OThCMmdXeEpaZ3l4cXZkZUdlYVZSNTBwcE5BPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB7573.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RHBoaU1Qc0VMZ0g4enpGLzFGSmxkRkRSUHhZV0xTQ2ltNEUxbnBUZmYrelk1?= =?utf-8?B?dGpENEZvOWdUSjdqZ25MV2w2ckFMNXpyell5R056L1IyaE1nbXZKc0U3MEE5?= =?utf-8?B?M1duOUhqYnd2U3l1Yk9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= =?utf-8?B?RmFGbm4vSmFpWkJma0tSKzBFbFg5U0w5ai95aS9iakV2NVdmb3Mzak9tSy8v?= =?utf-8?B?YzdLRU5aVmptc3E0d2NOVzFmSDBzbWN1OVlGY3dIZEFsRENrUDQvZDU1eDhB?= =?utf-8?B?dEFnQ1htMHI3aFZxbG00NlFGUEgrSFZPVG5GZlE1N1o4ZUdvQVJsS2xmK1BR?= =?utf-8?B?Um9LNUZGcVd0OTNFcWdSSXEwdElDSnFpWUF0UGk0NWJLZFo4MFVjdFc5TGFm?= =?utf-8?B?RVE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 3e782216-d14b-4ab0-4673-08dc8006c25c X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 17:42:50.0471 (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: Hw+0Aj/uOSiQdyMiHlnEcDMTHv2l2qcrV1Hgg3vS8Xd3jtg5QLuSiGGnt583OtyFktb4KYZfiCNeRJGhlCTn2+0HL3IHbsm9v5KhX2NMkTw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB7854 X-OriginatorOrg: intel.com Hi Ilpo, On 5/20/24 5:30 AM, Ilpo Järvinen wrote: > The imc perf fd close() calls are missing from all error paths. In > addition, get_mem_bw_imc() handles fds in a for loop but close() is > based on two fixed indexes READ and WRITE. > > Open code inner for loops to READ+WRITE entries for clarity and add a > function to close() IMC fds properly in all cases. > > Fixes: 7f4d257e3a2a ("selftests/resctrl: Add callback to start a benchmark") > Suggested-by: Reinette Chatre > Signed-off-by: Ilpo Järvinen > --- Thank you. Reviewed-by: Reinette Chatre Reinette