Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1505343lqa; Mon, 29 Apr 2024 10:14:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/7qODm5QSaKeuxhafKvLB3I21IzPXIWM/inuTtLXrKLn9Mjauc+iJ0Ejp6543s7NhmoSsCdHG1Lk8/L9alfBA5ZpW7KrSokPOS3jyww== X-Google-Smtp-Source: AGHT+IFh3QiytVKZy39Wh0qWGaVHrTcMGjHu573xKJMt3Gt3MkGDVHza6EHA/2qj+jX0BdUPdwKu X-Received: by 2002:a50:ab19:0:b0:571:bc22:e32 with SMTP id s25-20020a50ab19000000b00571bc220e32mr332854edc.8.1714410888589; Mon, 29 Apr 2024 10:14:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714410888; cv=pass; d=google.com; s=arc-20160816; b=CQOF/1KSQRHCqwpnVppekDZkdalRTeCwp7dlLqE67jI6nUhmXwHAmbvuxRfMMRwUQH H77/6lJiVYpJMtQxdsfjyEGkRghBNBnnO2AMXclANNh4A8J6xpUKge9s+3RsWHp0rWUb Q0WNVmpdlvnPfp6KYI6pisehzppqAG+yfYVHy9P9UsL8FQDmA8XZ2BFAi3HGoP/ZrXHT NwwBgaQ9u19+vsfss/ixA0rYtyKguI1vAnEinPy+H9fBngMCmzmIH7qQnuGfmxJ4p5KF GzHMRIgB/4PTiPsptGPuUYETIxwZ9xqq7KM3zrkePSHlr9hHrDzbLvQ+3tkU/JpYNc3N XlSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:message-id:organization:from :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:references:subject:cc:to :dkim-signature; bh=jHJ/IGkqa3F2Wfb1inqlX1fCpufSoNc5JN+PCH7bev4=; fh=suHtKsPNzIuwvZmelT3f8gXuMmwQnA2qIQ+fH8RNmlw=; b=H7dKy8MCyhwPeTyFBghZfRJPt8yHAe+UWQFw/KSzZ4DevTPNnFJzYSyYzAuGUxE5rx mDyq0cwHTE7CWUDSTB+ztpOYg9CxRmdL10JyozWXupulwMiJcy0ss9N0lSPaiXvb6Eiz f45YXhHvq4p9aydyiANJFYQYsN66zoB2LO/bz45LeDaOC589SXrPW8F7lxrFfpO6f+YZ 5BOy+kRpufdSTct8kPZavuHUe5psxiYn4qRycj7D+TEZrZuSxheLgBPoEHsJdF+iDpQd I1munzmcLc9VNTc2Bcc5R7OUeXqH5Pviq11mF6VThDQmPkcVNBq0ij6x/p3i1V4zAp/b lCXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FyLWtJPU; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-162733-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162733-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v22-20020aa7cd56000000b0057223108536si7754075edw.229.2024.04.29.10.14.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 10:14:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162733-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FyLWtJPU; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-162733-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162733-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 430CA1F20FFC for ; Mon, 29 Apr 2024 17:14:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBF0B8663A; Mon, 29 Apr 2024 17:14:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FyLWtJPU" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 6DB7C83CBA; Mon, 29 Apr 2024 17:14:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714410879; cv=none; b=AlRho7zv83soi+7+qWZPYXMbApPGsXxq66FpbUKxJ8vkjeAIYR4M7gGDmlV9lLLcIKe5w/1S4VQa4Evh91bdmfY4B5Ptz29sx/JldOjp14FVClT1K5dxfpIuWTr2l8V/xIOdhFpFdEF3E5vZ8YD+gj2SzrrH3k6pgaAEfd3NDvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714410879; c=relaxed/simple; bh=LFhDhAlcTNp4irr48KstARqghe7SJlpdE/8vhdM2+Lc=; h=Content-Type:To:Cc:Subject:References:Date:MIME-Version:From: Message-ID:In-Reply-To; b=oz0WlD34eiygpu9NrqeNXJYkfJmfty4L6iNidmMP1Oa+dkg2EVFfuWE/62F2ht/1xDMFEaem+Lqui7xvAUFLHigPUlng8HKNBSzP1GJCcOzjbuBsT/YT2I9Uc3Rrptshdg9MgkgWuuGMMz9k9NRye3ErlK/O3fBLSwy3svCceAM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FyLWtJPU; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714410877; x=1745946877; h=to:cc:subject:references:date:mime-version: content-transfer-encoding:from:message-id:in-reply-to; bh=LFhDhAlcTNp4irr48KstARqghe7SJlpdE/8vhdM2+Lc=; b=FyLWtJPU78TwnqquYRivTDAgPrE4mRoJyFLRw0/03K5q/ahaA8D/4ptF obAYt1M+pitfmlm3vNc7BqgJpkhUbgtjgSaQ42GpJ05YiMWFXtcoLwp+C Wyq5mxBmkE4zroAN1iO/oCwewY6nZoUwBFmfrEeAqH+uAh6xpChO316kN 28eIKxKT5+gHAZ/mZEPm0P0iGxPZDwxmPn30AYpKPYhqRVIV4NRiq316+ 2IGyl6XnypKWA104DvKuBt5ytdvVas9BvOxmVQ294z0pFGxXeTNAtaIJV Qc1NKPa11nCL3twyGKKviZyY0kTv+gimpsY5J6nCPNkJaa612D5WSz3rg g==; X-CSE-ConnectionGUID: 8FG4BPvhTqyrKzF0+8H7/g== X-CSE-MsgGUID: HLMo+Jx2SFW72wI8sYCtLw== X-IronPort-AV: E=McAfee;i="6600,9927,11059"; a="21236489" X-IronPort-AV: E=Sophos;i="6.07,240,1708416000"; d="scan'208";a="21236489" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2024 10:14:37 -0700 X-CSE-ConnectionGUID: 4wZwqHyiSB6OCwBv47OV8A== X-CSE-MsgGUID: Q9MowttDShiXJc9yKhRJWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,240,1708416000"; d="scan'208";a="30972200" Received: from hhuan26-mobl.amr.corp.intel.com ([10.125.99.222]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/AES256-SHA; 29 Apr 2024 10:14:33 -0700 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Dave Hansen" , "Huang, Kai" , "hpa@zytor.com" , "tim.c.chen@linux.intel.com" , "linux-sgx@vger.kernel.org" , "x86@kernel.org" , "dave.hansen@linux.intel.com" , "cgroups@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "mkoutny@suse.com" , "tglx@linutronix.de" , "Mehta, Sohil" , "tj@kernel.org" , "mingo@redhat.com" , "bp@alien8.de" , "Jarkko Sakkinen" Cc: "mikko.ylinen@linux.intel.com" , "seanjc@google.com" , "anakrish@microsoft.com" , "Zhang, Bo" , "kristen@linux.intel.com" , "yangjie@microsoft.com" , "Li, Zhiquan1" , "chrisyan@microsoft.com" Subject: Re: [PATCH v12 14/14] selftests/sgx: Add scripts for EPC cgroup testing References: <20240416032011.58578-1-haitao.huang@linux.intel.com> <20240416032011.58578-15-haitao.huang@linux.intel.com> <6b056faa6de2ba3a15c2e5dd576e96e3f85375ba.camel@intel.com> Date: Mon, 29 Apr 2024 12:14:31 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Haitao Huang" Organization: Intel Message-ID: In-Reply-To: User-Agent: Opera Mail/1.0 (Win32) On Mon, 29 Apr 2024 11:43:05 -0500, Jarkko Sakkinen wrote: > On Mon Apr 29, 2024 at 7:18 PM EEST, Haitao Huang wrote: >> Hi Jarkko >> >> On Sun, 28 Apr 2024 17:03:17 -0500, Jarkko Sakkinen >> wrote: >> >> > On Fri Apr 26, 2024 at 5:28 PM EEST, Dave Hansen wrote: >> >> On 4/16/24 07:15, Jarkko Sakkinen wrote: >> >> > On Tue Apr 16, 2024 at 8:42 AM EEST, Huang, Kai wrote: >> >> > Yes, exactly. I'd take one week break and cycle the kselftest part >> >> > internally a bit as I said my previous response. I'm sure that >> there >> >> > is experise inside Intel how to implement it properly. I.e. take >> some >> >> > time to find the right person, and wait as long as that person has >> a >> >> > bit of bandwidth to go through the test and suggest modifications. >> >> >> >> Folks, I worry that this series is getting bogged down in the >> selftests. >> >> Yes, selftests are important. But getting _some_ tests in the >> kernel >> >> is substantially more important than getting perfect tests. >> >> >> >> I don't think Haitao needs to "cycle" this back inside Intel. >> > >> > The problem with the tests was that they are hard to run anything else >> > than Ubuntu (and perhaps Debian). It is hopefully now taken care of. >> > Selftests do not have to be perfect but at minimum they need to be >> > runnable. >> > >> > I need ret-test the latest series because it is possible that I did >> not >> > have right flags (I was travelling few days thus have not done it >> yet). >> > >> > BR, Jarkko >> > >> >> Let me know if you want me to send v13 before testing or you can just >> use >> the sgx_cg_upstream_v12_plus branch in my repo. >> >> Also thanks for the "Reviewed-by" tags for other patches. But I've not >> got >> "Reviewed-by" from you for patches #8-12 (not sure I missed). Could you >> go >> through those alsoe when you get chance? > > So, I compiled v12 branch. Was the only difference in selftests? > > I can just copy them to the device. > > BR, Jarkko > The only other functional change is using BUG_ON() when workqueue allocation fails in sgx_cgroup_init(). It should not affect testing results. Thanks Haitao