Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp722514lqd; Wed, 24 Apr 2024 15:11:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUasREt1l5g2UjqT/LI+FBIFsCUu6F19VaFvejrnk8w+i/qH5agyj2Iu8Cp8HeOK0Wevb+Pc1l+l4r8ISrtRXBzms5NkPJ+P/m6wV1HmA== X-Google-Smtp-Source: AGHT+IHKJtgF2fkXi/GxgKHTp5owuFAG+aWIpi3kMFAMFtFQ3E6qYk2kE+mC4wcV4odKlr5JJl+a X-Received: by 2002:a05:6a00:cd3:b0:6e7:32a0:806a with SMTP id b19-20020a056a000cd300b006e732a0806amr4278660pfv.28.1713996694517; Wed, 24 Apr 2024 15:11:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713996694; cv=pass; d=google.com; s=arc-20160816; b=ejaiGOxgAZ05IklcnWfOxSGbq0S7ofOI2x3pt2GXH5peeAP0PZww++6OGFffu1Fex8 KSWFL63hbsrUesOBdXGl9hvg/XdR5bVur00j90Q9SrDOAtzyKceDkRrnTi4TnXiN8bJk Jd2+rHpf7beVz1XsCxihCe5QvFJnpN6gk9THc0iYZaTExOOpqazxsF5z2HF0v87obvEh SAn5ezpZO7ZEzMXgNkp80oPlx3oTJYTahBngx21120IuvoIiqcOmpLJk80woxqlRj1df dAauUf7PbiGON8gHiF7rH3CcIFxz81msoL6Z10UOSZmLurus4vVogc76WAC1820JwXYG oYmA== 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=jgt4Rq8oQX1Q2D+aH1r3rvlbzhsDiXKmddEJ93F7/Ls=; fh=x9lpokaX7uj2+k31XyA5f5tpUeife0koYxkDSW1UMe0=; b=RLW/wmum+YjJU3yYCsXHpwO1XbVWaxF8k7M/eDzt86Ixjs3O08ya0NPP9n6U+whQe5 YvC9t2WttZX4cR2kXKs2SSRaGIVXDs+LJFOk3lMGDO5QO0RfAUn1i8ur/tIqPj/hg91+ S6KOfpe16H7HLuM2E7eK0zZFjZBnN3TdlRRwxBs7XPbfR/NQrIry6EXOMVOQJGhgnVj3 d1FotMzq/iXP0EfwoHKakobWMKypyNtskpb/tvNf+1uLkhlhI8BaCtri00epDu+jaGIV TmepuGZr7IVakq6Yf7Z0+p4DF/V04QltPwxI3kgPpLDq6JdwT3pl1BD2ot2B1WQIX+SC wlAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mmvq6rPf; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-157621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b7-20020a056a000cc700b006e718338847si12380856pfv.385.2024.04.24.15.11.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 15:11:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mmvq6rPf; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-157621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157621-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9BAA9B23322 for ; Wed, 24 Apr 2024 19:42:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D10D13BAE7; Wed, 24 Apr 2024 19:42:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mmvq6rPf" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 07CD81386AA; Wed, 24 Apr 2024 19:42:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713987729; cv=none; b=D81YQWmn1BaUWr3wqI1Co/gqvhv6YeJC31ayWyI5ialtwdVDPKcX/tNr+9fWqL2LysIi37dAPEFLkHB4BKt0/pWDRf7jwgMLe7VSDuRCVyznSPuY7+W1cf5tqKybkcQwTTrE3ZmpAPYJJ3YlKiBxUZnLNRNKDy9dYX8NtZ4/5Pg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713987729; c=relaxed/simple; bh=SmGdTOXSTu0eJ97+MElF8nFJnR06zsOp19Qt7IFFhSw=; h=Content-Type:To:Cc:Subject:References:Date:MIME-Version:From: Message-ID:In-Reply-To; b=rPdKbvbpfwKwOg3Vq7G5wp6tUlZmxBN4OsSl3r48f30FHqew44kW7rI6rhjPT1Vh3IPg4Q9ZpHApLsHx5fOqqU6hIP8xgd2hoh5d/WFEUoS9il/LViIvbBJTtLa7USDVLovbe/5FRzLgdjmTZsQ7ZHbEM/NE5Bvpen1kQA5MhUs= 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=mmvq6rPf; arc=none smtp.client-ip=198.175.65.21 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=1713987728; x=1745523728; h=to:cc:subject:references:date:mime-version: content-transfer-encoding:from:message-id:in-reply-to; bh=SmGdTOXSTu0eJ97+MElF8nFJnR06zsOp19Qt7IFFhSw=; b=mmvq6rPf4rQsAhjI720M4L3OOtUPWMJ4yMWSXRgAH8WJxQiUQ+FhRsXg maDjrVmU4zaxexqUr9CDsEmr3W6UKyy8nrYAKwBvTPwRheQn1tAHDBSIL NUZWTuS75Yr6Jn72cqWyyPtsPJnG8XFkHLqEjD+Rwmw07tzy1zekVUvCX lh/8T/WRkrPj5IyepRBYGTLOA7NNo9eGSDKwpJasaH4mQhQJc65pUAKI4 2bbQMcmDG6Ftyz8juq2rOcPx9JJfEJ23q2EoFDTaGrZLIygWKhlsGk1K9 f/wSaPjFKPUxi3j+zfRdr7V3MIdemCvlBO2HuvmVTUF10Nt/Jql22IbGi A==; X-CSE-ConnectionGUID: 5sUE9eslQW602PrRHY32YA== X-CSE-MsgGUID: AWYy+J5YS9qz+Ih+ACHIHA== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9570992" X-IronPort-AV: E=Sophos;i="6.07,227,1708416000"; d="scan'208";a="9570992" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 12:42:07 -0700 X-CSE-ConnectionGUID: +5AZYzF3QfuZAYOPi9tPMg== X-CSE-MsgGUID: 8T+28TDfTn2FXwjxuzXVPA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,227,1708416000"; d="scan'208";a="29619025" Received: from hhuan26-mobl.amr.corp.intel.com ([10.125.85.20]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/AES256-SHA; 24 Apr 2024 12:42:04 -0700 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: dave.hansen@linux.intel.com, kai.huang@intel.com, tj@kernel.org, mkoutny@suse.com, linux-kernel@vger.kernel.org, linux-sgx@vger.kernel.org, x86@kernel.org, cgroups@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, sohil.mehta@intel.com, tim.c.chen@linux.intel.com, "Jarkko Sakkinen" Cc: zhiquan1.li@intel.com, kristen@linux.intel.com, seanjc@google.com, zhanb@microsoft.com, anakrish@microsoft.com, mikko.ylinen@linux.intel.com, yangjie@microsoft.com, 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> Date: Wed, 24 Apr 2024 14:42:03 -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) Hi Jarkko On Tue, 16 Apr 2024 11:08:11 -0500, Jarkko Sakkinen wrote: > On Tue Apr 16, 2024 at 5:54 PM EEST, Haitao Huang wrote: >> I did declare the configs in the config file but I missed it in my patch >> as stated earlier. IIUC, that would not cause this error though. >> >> Maybe I should exit with the skip code if no CGROUP_MISC (no more >> CGROUP_SGX_EPC) is configured? > OK, so I wanted to do a distro kernel test here, and used the default > OpenSUSE kernel config. I need to check if it has CGROUP_MISC set. I couldn't figure out why this failure you have encountered. I think OpenSUSE kernel most likely config CGROUP_MISC. Also if CGROUP_MISC not set, then there should be error happen earlier on echoing "+misc" to cgroup.subtree_control at line 20. But your log indicates only error on echoing "sgx_epc ..." to /sys/fs/cgroup/...//misc.max. I can only speculate that can could happen (if sgx epc cgroup was compiled in) when the cgroup-fs subdirectories in question already have populated config that is conflicting with the scripts. Could you double check or start from a clean environment? Thanks Haitao