Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp615286lqt; Thu, 6 Jun 2024 12:59:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbI1Q9OPaPtwkXGcAdch73nogCeJCQvBVPI9DsFHW5GKf49D3r9CYlCTNgW7lRX8DFnhuaGhW8REVjSULQTh6keWn23P4asIvsUGJw7w== X-Google-Smtp-Source: AGHT+IG8s5Rh65W0szbT1K1kO0VDDy5gcSjUEkbZGl7k8prOqP5nupjFkGQrK37/AnLIIBDOHS9y X-Received: by 2002:a05:6a20:914c:b0:1af:d017:c13e with SMTP id adf61e73a8af0-1b2f9ca4662mr616017637.41.1717703947806; Thu, 06 Jun 2024 12:59:07 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd4c71b4si707913b3a.156.2024.06.06.12.59.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 12:59:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204965-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XRgxsNjf; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-204965-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204965-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5DDC928143C for ; Thu, 6 Jun 2024 19:59:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89BF273459; Thu, 6 Jun 2024 19:58:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XRgxsNjf" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 A1FAE73453 for ; Thu, 6 Jun 2024 19:58:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.16 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717703920; cv=fail; b=fe5OoYctkIyEQJ3pC9lYJWxirVvPQtxOUWRhPyZR6rj0jqKzRRng/mjjcXurXERMkJJZtX0X0bnYY2HSajT/cYMpdyugHGDjpMR0EoK7LcUFPo6sqWWo2QI+lg0mEYXrvVLggoE5oWhCYK8QT3KZ5hDX8VPPKMQddfVKl2LliDI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717703920; c=relaxed/simple; bh=a1GNBI/zktHy1x9p/iNkhdv5AiPKGcJ0LaDvOxoQnt0=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=BwbDeiw+eqXuDoGKkUiNRfw0S9zCuGwQuHpJ0gOiGbinO7CR/p4eFz1hrbkYBSaK/0yIXiGZKE3FWDKOdiaTLefUCC/OAY90CthN5vWclJBIMxMdwoLZFd2giNjUx3egSQhl6S+EuWLKBm2NF6F9H82AgNki6M0f8K+6ibpGqHI= 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=XRgxsNjf; arc=fail smtp.client-ip=198.175.65.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=1717703919; x=1749239919; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=a1GNBI/zktHy1x9p/iNkhdv5AiPKGcJ0LaDvOxoQnt0=; b=XRgxsNjfOeT1nCTt5y8WWBrXL2Dw2oWa0ie07yMbX7HsVQn7tkKUKvBv sfSTia3vaD3QY8bw5259r2R7EWuFzbpK+SowFCYvkgHvdu7feivxI+eO5 D2snxnW1L1fbbpuBWcdRJG9Zt9qqsln9FpBJrC9yvdtBqA2qSUZOUVRal wSc0NsJtaFwD3lX91ikya7mZ/M8WwqFaWEB2I1G8isfUVeyoSKLBa5nhD 3n/pg2AtMMfYjOJ5ZyRniSqW1qpPB5dhTZuqiBDf/DbtfbHAed3xnU3qn ZPlQTBVmIhqIytlHOjVgP5UzxwSXz4ii6YmtM27NPNocCyJcFAPOTjcS7 Q==; X-CSE-ConnectionGUID: mB+scbhsRgq24D5/9qsZgg== X-CSE-MsgGUID: YChFT+6bTPC6eLo+OyoFFQ== X-IronPort-AV: E=McAfee;i="6600,9927,11095"; a="14535268" X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="14535268" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 12:58:39 -0700 X-CSE-ConnectionGUID: Vz1HJ+FwQRK9PeXCP9Okyg== X-CSE-MsgGUID: Vzgv/RKzQOOQVQrpwYpwCw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="43185132" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orviesa004.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 06 Jun 2024 12:58:38 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 6 Jun 2024 12:58:37 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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; Thu, 6 Jun 2024 12:58:37 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.41) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 6 Jun 2024 12:58:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jzTS1qt/7ZtC+ugEUp/aPKMoN29G5ZSpYUeZqYf8THGhi1BC3h7eFNOaotzN4tLLm/Mxf2d/MHsEWOWB7TWYz6ZtbTvwpVQEZtgq9R3L4TCWhufXxmLYMT3reefCJAIWxXAe2UKRVRfL4td0jDx5E5My5AHMiS0MLQFMmTt4saxb/eX8s4TS0S/6l1Jd7TgJGaTto99criNkIAssd76pzvk+0uchH1XgIBHQ2HJMAJdmQYqUJyB/gXfzWfmwce17VsLXzHbJ1UEJTuxeVJYZKChGEQR1VUPUmt7SSvXk6XMXCN/jj5+Lxm5/nedN7eS7v7zfKYM27BhGK5AiXDBvRw== 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=ZzRNeswjoVM0JKw5i74mRMGSOToWPVeDikk2wtiNxkA=; b=mTlkYAHrD7qFnxZYXR5j9BmLGtvg5EjBNFMxv6K6noid/sXK9mWonzWoUEfZeZ3OEotMgkiII5FCXawT4FJT6bKpI8Q/0Y5VH/alVBYhpOiBWuF63Va3AEbHNNiMht1saa71ZpDFJTLN5/4klXeBPNWXHmBNrJ6jYv1B83I4Ozb+1mXJaX50nUToTDoWLYV06WKprv9MZTWXeuatumcH7e4/oQ1nmIio0pFa3XuMQ4yYZqd9fHYBTmLQ8Ot2XZhmHv39HcHjaG8O726Xqni3ePzU8SGPK+YNa5rCmrbo5TZt1jeUOrXPmtYY2Q6JamNrJVDlvBVfLcKkDIsSnyCpuA== 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 Received: from SJ1PR11MB6083.namprd11.prod.outlook.com (2603:10b6:a03:48a::9) by IA1PR11MB7774.namprd11.prod.outlook.com (2603:10b6:208:3f2::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.33; Thu, 6 Jun 2024 19:58:29 +0000 Received: from SJ1PR11MB6083.namprd11.prod.outlook.com ([fe80::acfd:b7e:b73b:9361]) by SJ1PR11MB6083.namprd11.prod.outlook.com ([fe80::acfd:b7e:b73b:9361%5]) with mapi id 15.20.7633.018; Thu, 6 Jun 2024 19:58:29 +0000 From: "Luck, Tony" To: Borislav Petkov CC: "x86@kernel.org" , "Yu, Fenghua" , "Chatre, Reinette" , "Wieczor-Retman, Maciej" , Peter Newman , James Morse , Babu Moger , "Drew Fustini" , Dave Martin , "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" Subject: RE: [PATCH v3 1/2] cacheinfo: Add function to get cacheinfo for a given (cpu, cachelevel) Thread-Topic: [PATCH v3 1/2] cacheinfo: Add function to get cacheinfo for a given (cpu, cachelevel) Thread-Index: AQHauDBdYeGsvVFf40e5nFEfBMSU4rG7FovAgAANIfA= Date: Thu, 6 Jun 2024 19:58:29 +0000 Message-ID: References: <20240606164047.318378-1-tony.luck@intel.com> <20240606164047.318378-2-tony.luck@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ1PR11MB6083:EE_|IA1PR11MB7774:EE_ x-ms-office365-filtering-correlation-id: 5cc9e33e-5d9a-49c6-3668-08dc8663090c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|376005|1800799015|366007|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?2IWUCdz4PJqsmqLrTGia+rKRPJEN8Dmh9oZs38YsRvoxB1paTYKC/frbK2Y9?= =?us-ascii?Q?tmgg9wTUcH7VhIrFMWNIU5UKGadzPWulxTT4/miTKUXzFMFEmqFkcCrB5OSz?= =?us-ascii?Q?hq+PtcHfOCBrWmQBTU/gnuZbZgFqAfjBttXI2ltqF5PEi9labkPwvJ5uI4sT?= =?us-ascii?Q?XTPNeqN2nd8XIeJnhe5hGSSaBmh5Wu6NnWsv9XLoh6qFHi6h1DkG5PCkuAih?= =?us-ascii?Q?5vS95xyMRWj/+4z3+kKfW6EQArUH3z/E6rm1E7LCeKdkB1LBQETu5pOGB4OD?= =?us-ascii?Q?aD2u7CNhBY3h+GUo5AfErxe3nncJpe9/W+0HTbpi3Kj9LEsSSMyFFdh036Hq?= =?us-ascii?Q?Ab3va1wjxuifxbCSklNbRpv7wIgSQdekOZzyDTl+poh2jj2rDFm4C1RGDE/z?= =?us-ascii?Q?x7SJwD13bk6+blokW6uwmbdl8y+T3rLH8XVFAYlUFMD6yZdRuHI7uVnuB7nk?= =?us-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onJTIOZbx1P4dhKxu6u4gXsL?= =?us-ascii?Q?LDXymMQ=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ1PR11MB6083.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4XJvdg8VARgc7RekvYda5YP4VBuHCG34SItC6DqxbUNPA5TZUZ8m8qcc6NB7?= =?us-ascii?Q?vfGvSOMoeSYvquWx4dl4lNwSbjT3x08LRrm3MjtelQcckmzHuGsN10w8H9dj?= =?us-ascii?Q?0bdecQBw5CdAmEH98Tqz/kzVTEejGm8kX/U/nFhgHpfIjLpT0pJNdOP2dts5?= =?us-ascii?Q?Iv8Xyr546SQ2DNPLX6b7Nmds0uKuSpZwq8AuMUnk9O/muDo0DZFRIVsmhbIP?= =?us-ascii?Q?1rvuJz+dI4zdu+6VVibvhbUFlaFRyKROvdx/yfnIS4eI631lYjY6L1xPptx+?= =?us-ascii?Q?F5wlNaRxlBgTM4xuLUYJOaavHjNKvisqXyPpf0I1ytoPSjw9K0akSMaYKPyJ?= =?us-ascii?Q?9/G7SC1hM0KZ5vL3izhWj19xBYubbJ+hMcZPDcztB0wyUUUb+dLUB7Tk9cNs?= =?us-ascii?Q?RRM/JbH4jxWEME8euLfhdkPYqXDbLmyifQ8QbBUNFqn1EZNTEBrQogstFWVf?= =?us-ascii?Q?tn6hHoVWpE2w+6+PRKU9e3jLhQNJB+lOcE7shVmVaDWExAUgb8pHPKd75Cxl?= =?us-ascii?Q?PA40qz+TE/YVhNuNg9XY8XvrqhraZjOuOCJFh6qWwx7aU6gP3jKGSFZmVSlx?= =?us-ascii?Q?AITAn4QAdCyMR7UbUCqJmO9r0L69ws/g6gz9OPOIrMprd+n7OMPcWKk+mDHb?= =?us-ascii?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qQDtrddGIdU0FOKKpdCIa8DE0oldJ?= =?us-ascii?Q?506ONmloUSnRxamV1hqiUtLCVbo3XVaoUUNKMI/j?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ1PR11MB6083.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5cc9e33e-5d9a-49c6-3668-08dc8663090c X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2024 19:58:29.1069 (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: KvJUdWFH3l/H6H4hAM4hJ9uMek6HL9HIa92eW/t/G6VRkCzG1SW5PnmnK81qBpR/WW0W9gpGbfdGm9e9m0VX1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB7774 X-OriginatorOrg: intel.com > + lockdep_assert_cpus_held(); > + > > lkp says this breaks riscv-allnoconfig and riscv-defconfig > > In file included from arch/riscv/include/asm/cacheinfo.h:9: > >> include/linux/cacheinfo.h:126:2: error: call to undeclared function 'l= ockdep_assert_cpus_held'; ISO C99 and later do not support implicit functio= n declarations [-Wimplicit-function-declaration] > 126 | lockdep_assert_cpus_held(); > > but I'm not really sure why. I added "#include " to to deal with similar warning when building for x86. Ah. The full trace from lkp explains: In file included from io_uring/io_uring.c:45: In file included from include/linux/syscalls.h:93: In file included from include/trace/syscall.h:5: In file included from include/linux/tracepoint.h:22: In file included from include/linux/static_call.h:135: In file included from include/linux/cpu.h:17: <<<< on= ly part way through cpu.h, lockdep_assert_cpus_held not defined yet In file included from include/linux/node.h:18: In file included from include/linux/device.h:32: In file included from include/linux/device/driver.h:21: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/riscv/include/asm/elf.h:16: In file included from arch/riscv/include/asm/cacheinfo.h:9: <<< doesn'= t matter that this includes cpu.h because of #ifndef _LINUX_CPU_H_ >> include/linux/cacheinfo.h:126:2: error: call to undeclared function 'loc= kdep_assert_cpus_held'; ISO C99 and later do not support implicit function = declarations [-Wimplicit-function-declaration] 126 | lockdep_assert_cpus_held(); So this is #include hell that many others have complained about. How much do you *REALLY* want that lockdep_assert_cpus_held() to be in The lack of an assert did not come up when James added get_cpu_cacheinfo_id= () https://lkml.kernel.org/r/20200708163929.2783-11-james.morse@arm.com -Tony