Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp177222imd; Wed, 31 Oct 2018 16:52:30 -0700 (PDT) X-Google-Smtp-Source: AJdET5ceppDlltbKHEW18LXkiWxO98UfudmkwiuX78ZyK1N6csUJqgBIwz6s+9jtvvvqUQxM4TgP X-Received: by 2002:a63:2019:: with SMTP id g25-v6mr5050516pgg.235.1541029950179; Wed, 31 Oct 2018 16:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541029950; cv=none; d=google.com; s=arc-20160816; b=btq1Ps0L4jP5KhhbWU7nJty9Kgp5UbR2zYTvMWi0bmMplfVYTjDpLRsumNvwuOCjOH iWbKul5Upy0OQrPZzeGdubfX/dv8ySM5BdafBWg2XlJ1TaHdKRPnZqfI2dT1JmBpvgp/ by1WjBixYlzSS+bqlNB5T+vQf68MmUfKYSmIKtuZp+VUv2befH0xbjURS9FSFKh9Tcuo GVZmB0Nj8RejkWuRSDUTZSjZ2BpDNwoRX0ub2H6vqwk5WvD+zKYd80DnO5FrBJ9H8Run ocFfDRXDtl9SwBsXbcVCVv2cBZgTWjSmpinqsDJiDdiViEyo1ThmXYWGyEQCKlCBcPCQ vKUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=M0AE5u2BDhkNv/BJ+8KjFPUAaHexMCZRbJ1Icdxpx+E=; b=aAl4P/mOh8Xsq5KEBX/lxOVmUfZf4xPMhUvKSXYEoI1UDc+lt3BJKA6aIEJ4VkwgmY WNnp5/ycGBL5wF9/wjxxhk3UVpTYQ5zmqYj21LnXDJmY4AzVLHVBtHKZAJZnwaBjRRJ9 q5WF+S7BQSvikfrvlFssLVnszUqmWkzG+aLazcrXcQ3WWR/RH/tP0yOAeHu462jt6AV9 RXZUGfh4LHre1aN4xskbDEYPz9Pr7+nuRCIOweNlYqfKWHpkDfivkYX8ukyFWN6P2qAb 0PNf+c2C/TWByE9CB7QZKpB65wqPcslqToqCFSFOpDuw0RYOudYKPnhV5Oq0D8CPpn1U oyzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IWWRQ2Jk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10-v6si27310326pgs.362.2018.10.31.16.52.15; Wed, 31 Oct 2018 16:52:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IWWRQ2Jk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728019AbeKAIG1 (ORCPT + 99 others); Thu, 1 Nov 2018 04:06:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:53340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727984AbeKAIG0 (ORCPT ); Thu, 1 Nov 2018 04:06:26 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3306F20840; Wed, 31 Oct 2018 23:06:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541027176; bh=/2kSpEwGHLo2dhGBW8I3mkSDZ1pBLaswz3+kTHKuK+U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IWWRQ2JkubYG+ekYPa3uTIWYDqELU2CzJfEqJe5KpjISlADWwqcM2SnNj8I6b/pS7 zd+E9DPMmMey9kpZy4ejpUSp89MzSQRmUtOg2P3cbOGW9QXmEVSOJdpz50ZVzIoeae tzLeiXmfUkkoe3cPFkXpcsId7j6P+mdCyrw4RxYY= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Xiaochen Shen , Fenghua Yu , Thomas Gleixner , "H Peter Anvin" , "Tony Luck" , Sasha Levin Subject: [PATCH AUTOSEL 4.19 037/146] x86/intel_rdt: Show missing resctrl mount options Date: Wed, 31 Oct 2018 19:03:52 -0400 Message-Id: <20181031230541.28822-37-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181031230541.28822-1-sashal@kernel.org> References: <20181031230541.28822-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiaochen Shen [ Upstream commit 2cc81c6992248ea37d0241bc325977bab310bc3b ] In resctrl filesystem, mount options exist to enable L3/L2 CDP and MBA Software Controller features if the platform supports them: mount -t resctrl resctrl [-o cdp[,cdpl2][,mba_MBps]] /sys/fs/resctrl But currently only "cdp" option is displayed in /proc/mounts. "cdpl2" and "mba_MBps" options are not shown even when they are active. Before: # mount -t resctrl resctrl -o cdp,mba_MBps /sys/fs/resctrl # grep resctrl /proc/mounts /sys/fs/resctrl /sys/fs/resctrl resctrl rw,relatime,cdp 0 0 After: # mount -t resctrl resctrl -o cdp,mba_MBps /sys/fs/resctrl # grep resctrl /proc/mounts /sys/fs/resctrl /sys/fs/resctrl resctrl rw,relatime,cdp,mba_MBps 0 0 Signed-off-by: Xiaochen Shen Signed-off-by: Fenghua Yu Signed-off-by: Thomas Gleixner Cc: "H Peter Anvin" Cc: "Tony Luck" Link: https://lkml.kernel.org/r/1536796118-60135-1-git-send-email-fenghua.yu@intel.com Signed-off-by: Sasha Levin --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c index b140c68bc14b..643670fb8943 100644 --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c @@ -2805,6 +2805,13 @@ static int rdtgroup_show_options(struct seq_file *seq, struct kernfs_root *kf) { if (rdt_resources_all[RDT_RESOURCE_L3DATA].alloc_enabled) seq_puts(seq, ",cdp"); + + if (rdt_resources_all[RDT_RESOURCE_L2DATA].alloc_enabled) + seq_puts(seq, ",cdpl2"); + + if (is_mba_sc(&rdt_resources_all[RDT_RESOURCE_MBA])) + seq_puts(seq, ",mba_MBps"); + return 0; } -- 2.17.1