Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1842252lqa; Tue, 30 Apr 2024 00:14:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVKVWl8j++4Sh9aRl9jbrBbEQ1wXRpxnY8Xe1+wDeO3uiZK0l0QfYrcspa9k3QVbGVaVTKr6ASgfNlM+JAhZ7vbkvejls4Zguh3TAUXg== X-Google-Smtp-Source: AGHT+IEk6DxoQxnVsUJEigS2DrPii+RFHCRqlM/yD58a18R0/mng5VzSedvd6EQ1MnancioRreWU X-Received: by 2002:a05:6a00:8d08:b0:6ec:f28b:659f with SMTP id ik8-20020a056a008d0800b006ecf28b659fmr11723662pfb.3.1714461269494; Tue, 30 Apr 2024 00:14:29 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r6-20020a632046000000b005cd8486d5ccsi21386951pgm.65.2024.04.30.00.14.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 00:14:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163455-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=selector1 header.b=p4+OPv0R; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-163455-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C108C2822A1 for ; Tue, 30 Apr 2024 07:14:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27403374E3; Tue, 30 Apr 2024 07:14:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=marvell.com header.i=@marvell.com header.b="p4+OPv0R" Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (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 E3C9D1C291 for ; Tue, 30 Apr 2024 07:14:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=67.231.156.173 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714461263; cv=fail; b=eCrecuHKrwsmzDKhrsC6TAp7SrW+vdk2S74wT4NNunnnzsZa7KISLnLB+pIkiATUErsbNBQJPWykj5vm+s5iLvP1IymyeVVGCQkb0dyRty7g7GNS4iIGUh3iJ0lNBESNLRrUjwgoeH7DFDZWJl5vuEvYXlRipQ5D2sZEXsSBgDs= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714461263; c=relaxed/simple; bh=2CWJLgM0hJskxhwQ794lp13Oud/SnxroiR8y2b0SelU=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=EBOuuhmmBmXFuEvHuKHGTta5nOaO9PJNa7EpfbDkVc/HNtE4l7iJWgrfkuKe3oQ7azjCWMCcOx6i2NnaQcHe3kYJVo7iQ0dJPVW4cau4xajB1xHb86DB5IT0CQA4RCFYQV189y9quP+jiyVdFg9iCHSqYoVGxtTru/tY1+no3PE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (1024-bit key) header.d=marvell.com header.i=@marvell.com header.b=p4+OPv0R; arc=fail smtp.client-ip=67.231.156.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43U5oJVj005626; Tue, 30 Apr 2024 00:13:21 -0700 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2168.outbound.protection.outlook.com [104.47.56.168]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3xt43b13me-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Apr 2024 00:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FrSdThIWSbmDMFBlwsuwb809yl719wcJUD8pPk9ACzAsqumpKvFh4K2d5E+066LRYmomj8EV/Js0SOf4cau7Am8Vf+30fby3xmvjhkMA8vKDT54zQA6U/uNqX1pKlsGt47mS4k5bliowC60lFwuZA3v2i5Z39jdlwsiUhmSOjHVkhdSAhs827Xlx7i7L1rdj8mlpPc4iscwg3nYqAN3iF5ZCWFMxBSiVpt5UDnNNDQWId66LP+ANQWq1bEFdUUgTbem9ne1Ubuj5hx9jRf+5adpInblC2YmNkq8iczgI5d1Tr0sMOgjLE+WFN4uLPbHKk5T2s9UDByjSdIxNHv3qKQ== 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=5X/WKY+Q5wX1SzzQjyuh0Y1p5yD5TCZcPmPLkM0lVkU=; b=LxDrpgMX0aIxYe4lQldbxSEU4rKqkw5ebptja5F3FBk4D1jrloZBKqDNph8MDap0lRwSare/GT/pAURQmvrIynDSWIIr2KMhwWOcv/53NZRF9WgYJdBK3BdHFFDW/aPwrVb3EivUSBrmKXY+IoYhQfOmS62q1dXtk7EjFiHd8AH7nvJbcf/FNuT7jjUikrIWjv8GvmcVewUVhd2kBb96R8S8E0oJiMkazYeq9L7uU/y4V+VvAb6fy9dqR5UexgvvFwArt9wWV+l0F/U6DyILWYvDi1NEM2ZdV0q5wqi3OSd5tqG3dt5okReMxhZ0Vbxc7OgBcpU+vamOtMqqbvpUWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5X/WKY+Q5wX1SzzQjyuh0Y1p5yD5TCZcPmPLkM0lVkU=; b=p4+OPv0Rw7BLgHHBqHAEsY9MaNOavctc2M7vtd9/1C4u7tEqOemEjizkIyA+Wfq6nuxt05Bdtiv5F4cCv7JPx1ZoD4fxcdBZhOKfzgHpZuH4oX89gJcRTbPP2gkF+dlKAZGwL1YZVUfBTsziN59AR6j+NWmR+a9uQ1AnawiU490= Received: from MW4PR18MB5084.namprd18.prod.outlook.com (2603:10b6:303:1a7::8) by CO1PR18MB4668.namprd18.prod.outlook.com (2603:10b6:303:e7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Tue, 30 Apr 2024 07:13:17 +0000 Received: from MW4PR18MB5084.namprd18.prod.outlook.com ([fe80::1fe2:3c84:eebf:a905]) by MW4PR18MB5084.namprd18.prod.outlook.com ([fe80::1fe2:3c84:eebf:a905%5]) with mapi id 15.20.7519.031; Tue, 30 Apr 2024 07:13:17 +0000 Message-ID: Date: Tue, 30 Apr 2024 12:43:05 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 28/31] x86/resctrl: Drop __init/__exit on assorted symbols To: Dave Martin Cc: Reinette Chatre , James Morse , x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com, David Hildenbrand , Rex Nie References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-29-james.morse@arm.com> <47af4fef-35d3-4d88-9afa-42c1a99fbe07@marvell.com> Content-Language: en-US From: Amit Singh Tomar In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN3PR01CA0165.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:de::9) To MW4PR18MB5084.namprd18.prod.outlook.com (2603:10b6:303:1a7::8) 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: MW4PR18MB5084:EE_|CO1PR18MB4668:EE_ X-MS-Office365-Filtering-Correlation-Id: abb10117-7edb-487f-39f1-08dc68e501f4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|7416005|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?MGRITWQ5RGllcE5heEczTHh2ckVSb3dMZXMvM1k4ZGNJd3EwQkdzRysvVitz?= =?utf-8?B?M3gvQUNkaExtVWJPQXVvdXNnMEF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cwUXJzNFNQV2RKR0ZvZWNnVXgxWGEyMVdYamFHNUkrTVgy?= =?utf-8?B?OUwxNjNMKzVha0R1TnpTOE5kZDgyMEc2YXF1SmpCd0pvN0JJL3pNaWl5SVVN?= =?utf-8?B?emRmU1d0dUZmcW5hc3hzVzdFKzVpZHoyWnI1bjhTVnE5N05NUVFzaDhGaU1J?= =?utf-8?B?ZVdjSXY4VzFUWG5EUzNaRGJaNktRbGoxQTJwVWpTcHAyQTRRWXFMS0ozVHVB?= =?utf-8?B?WlhKdUU1ZU9jUjVSaEYzUkI4VEVVcTJBSDBVU0RmTzRYVWlWRGVldnRDQzA3?= =?utf-8?B?Z0pkQTN0UEVTYysvTlVvL2J0dVV3NGVzNVVZZmkrNHRNUlRYV1h0b1VtR1Ey?= =?utf-8?B?UjUxRm5zU2QraWZqMUc3SU5BUzd1by9Xa1FZVStsQ1c3UCtuY0YrWVlqd1pQ?= =?utf-8?B?QlI3a3FONjRFTWovd3p2UUJjYmVyTnJhL2V1WHMxU1ZkdStscllOMEd2K3M3?= =?utf-8?B?UEp5NXhzeUxmWWo4MVNjVm9SdjZXZC9JUTZvM2YzZGtLeldhdUJBZ3VmbzI0?= =?utf-8?B?a1ZvMm4yWVZmUktBNThrL2FEdEJLVktNRHgwdUZ2Q2xaVjVuN3VCTVFhdmlD?= =?utf-8?B?Z1d4T1JqbTJjV0N2VVZ6anZjOXk1Rk5yNjRnZVFvYzNYL2EranYzNVZWLytR?= =?utf-8?Q?v74dHQojKrdnnb+45A+UK/Ne+hkUY5Ws56FMTmRaFrs4=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR18MB5084.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(7416005)(376005)(366007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q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QThHUHZzNHh3NXBQVVMvTnBreUtr?= =?utf-8?B?TVpWaXBPVHRneWQvOGpiVDI5WWMzcEJ5VVQ2RmFXNWdXR0xwcUs4VG9neXhy?= =?utf-8?B?REQvZGdWSnA1U1Q5Y0xLNWtDNzVUclBNUmFYalVIS0E4N3NKUlBiOHlnNVRG?= =?utf-8?B?RWVwVk1vUTdZZkNBUU9KakRzMm9KQ2FGMG5rZklRRWI0enhGK3ZyamVncldx?= =?utf-8?B?SXZDMERvWW42R2J4UzhCNjBqSFJkTVUxYmhVR2ozL3FacHlrbWswZGJ1VlJG?= =?utf-8?B?T1VheFNWUE50N2MycGR5RXdjTDRqYVhhQ2FWRjRtN1BGUEhqUkNIeWtyU05l?= =?utf-8?Q?0hY1w3vKdIaJCuGJslZZRNxOS?= X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-Network-Message-Id: abb10117-7edb-487f-39f1-08dc68e501f4 X-MS-Exchange-CrossTenant-AuthSource: MW4PR18MB5084.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2024 07:13:17.2938 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eftPlTUJuUY02Ej6TT+RBpgdxRRdroYU9clpC4HNLO/oA+/0G9aQgDoDgR65DL5kqz7hj9mGaKyMoS33hNxUgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4668 X-Proofpoint-ORIG-GUID: hc_wp0TMjWEdZua-Mle_VwMcUqzkJMSR X-Proofpoint-GUID: hc_wp0TMjWEdZua-Mle_VwMcUqzkJMSR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-30_03,2024-04-29_01,2023-05-22_02 Hi Dave, > Is it possible to unmount resctrl once the system is in this state? No, it can't be unmounted, as there is no mount exist. >> # mount -t resctrl resctrl /sys/fs/resctrl >> mount: /sys/fs/resctrl: mount point does not exist. > > What if you now try to mount resctrl somewhere else, e.g.: > > # mount -t resctrl resctrl /mnt root@localhost:~# mount -t resctrl resctrl /test mount: /test: unknown filesystem type 'resctrl'. > > I'm guessing this _should_ fail if you weren't able to unmount resctrl, > since resctrl seems to forbid multiple mount instances. > > I'm not sure what the best behaviour is here. Leaving resctrl "half- > mounted" might be a good thing: at this point the system is in a semi- > bad state we want to make sure it can't be remounted. Unregistering the > resctrl filesystem from the fs core feels cleaner if feasible though. > > Leaving an impossible unmount operation for init to do during reboot/ > shutdown feels unfortunate. > > We might have to look at what other filesystems do in this area. > > The mount machinery does provide other ways of getting into broken, > impossible situations from userspace, so this doesn't feel like an > entirely new problem. > >> >> Additionally, a question regarding this, Is a complete system restart >> necessary to regain the mount? >> >> Thanks >> -Amit > > I think James will need to comment on this, but I think that yes, it > is probably appropriate to require a reboot. I think an MPAM error > interrupt should only happen if the software did something wrong, so > it's a bit like hitting a BUG(): we don't promise that everything works > 100% properly until the system is restarted. Misbehaviour should be > contained to MPAM though. > if "resctrl" is nonfunctional in this state, then this comment[1] here does *not* make sense. "restore any modified controls to their reset values." Thanks -Amit [1]: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/tree/drivers/platform/mpam/mpam_devices.c?h=mpam/snapshot/v6.7-rc2#n2228 root@localhost:~# mount tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=32923772k,nr_inodes=8230943,mode=700) resctrl on /sys/fs/resctrl type resctrl (rw,relatime) root@localhost:~# devmem msc_addr 32 0x9999 [ 687.096276] mpam: error irq from msc:1 'PARTID_SEL_Range', partid:39321, pmg: 0, ris: 0 root@localhost:~# mount tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=32923772k,nr_inodes=8230943,mode=700) resctrl on /sys/fs/resctrl type resctrl (rw,relatime) root@localhost:~# umount resctrl umount: /sys/fs/resctrl: no mount point specified. root@localhost:~# mount tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=32923772k,nr_inodes=8230943,mode=700) root@localhost:~# mount -t resctrl resctrl /test mount: /test: unknown filesystem type 'resctrl'.