Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp588127lqt; Thu, 6 Jun 2024 12:02:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqMSyI+iogA5tTbVe8JdcreQOMt89s000sDM9UeKOAW2KcSCkAVZLr2mFDjI2FEbGKJ1pkxa/QmT4lF2+P4B7c5sLlXmVYwP6nkmrQ3w== X-Google-Smtp-Source: AGHT+IGGTt4FWBW/wOLxmpGS+5yQBKWaNZDvy7i7lS7Vv9mftKpmTKwd9nkOUUvdOsVk8IkACG8b X-Received: by 2002:a50:9509:0:b0:57a:339f:1b2d with SMTP id 4fb4d7f45d1cf-57c5086e237mr184613a12.5.1717700575469; Thu, 06 Jun 2024 12:02:55 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae23f9f8si1012274a12.472.2024.06.06.12.02.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 12:02:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204930-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="bnklHX//"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-204930-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204930-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 4F9DB1F225E9 for ; Thu, 6 Jun 2024 19:02:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A70E24E1D1; Thu, 6 Jun 2024 19:02:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="bnklHX//" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.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 00536376E1 for ; Thu, 6 Jun 2024 19:02:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.16 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717700561; cv=fail; b=s21UivEiErfL0eiKrFSi/2fOSJEV3cx0EgSCsCzNZCZzZYDIwGfflDAiFOIXpPyhlvP9aMdCIllaDlWvHs0OVu4RR/YnnxnlL/nzQvKBBhQ2baZ2GpIrWrN3wi4Rx9uP3BtVoBIRs76gdupMfibAPX8TyUT3y9xNDN8KWXPpaHg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717700561; c=relaxed/simple; bh=YeBFHL1eL/GJhpNv7d9as9cHSCkJaUD1YHnJt8i49/8=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=rqwS1uP2hEfGxubT+KvYbLcvOgKg31LH5CHlwVOsffXB+8wAxYiLK10WXPjCa7Q88T2+y0smb6R2MXW12KEXnWqoEKcP6pGiqpqKxJy57kYATAih4llEPT28zeS3FGRzzXq+UJk6OZaCg4ahlvyhaaFjLxd7KV9IdOacDzqRa0I= 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=bnklHX//; arc=fail smtp.client-ip=192.198.163.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=1717700560; x=1749236560; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=YeBFHL1eL/GJhpNv7d9as9cHSCkJaUD1YHnJt8i49/8=; b=bnklHX//n0yUmOgewnANYjxRaZg/NIdv2o56PHlTGs5nMyLPJdtKSv39 IJd/1jF4ie4XtinTkyWrIMF4dj7ia52qsHfMRZH37M4duSTbEhkZhaNxG TJ1KaBIR0Ejk/86loKuYsR7dL3kjlwV7S9l2tn9BzOcvpCev9whyS9Kpc kuooa4EhFs0qdj/gUi3ww9d+7chgegCzZ6YNNspc9pMakrga6Xj69zp2L z9Fh42Fw1S6Fadp2k8YNGtZDWXSfNWm5ySOwpbvNojttqlxYt5FHL0liM fzjOh79EAHDmymDccu1Tv8elLnvO/HEu9B2SEQgv45q6mFvx/+xFjmoDK g==; X-CSE-ConnectionGUID: mMfDYC0gRAirffoRnQ//JQ== X-CSE-MsgGUID: ncPO+h3yTdq+YYgg/1wPyQ== X-IronPort-AV: E=McAfee;i="6600,9927,11095"; a="11948572" X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="11948572" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 12:02:40 -0700 X-CSE-ConnectionGUID: FddT5jk0QwmedvLUHQa2ZA== X-CSE-MsgGUID: Wc9Aktw3QDu5GQluToRYAg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="43001291" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 06 Jun 2024 12:02:40 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) 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:02:39 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX611.amr.corp.intel.com (10.22.229.24) 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:02:39 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx611.amr.corp.intel.com (10.22.229.24) 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:02:39 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.168) by edgegateway.intel.com (134.134.137.102) 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:02:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FPdF3efekVf1thQx0ssmRoE6Grj26K2bTN/L5knEiIBYt3JC16SRq98DLkkIDIwtu68Q65ULvN/fuEpoMRlMrgiR48s5fAemQ3y3MU/tzNb3lVht8Ug2UiiBsEL/fNqDIKQks69Cu4pf8y3KKoIw9rt1NPZauCpLBdAMgqrQKyJEk1dDTGMF7st8W8wfM3ML73ttSogh189Ttjkotpm9kvRvg9QSrrDeLNZFTBPd81hiYSoxoa1ujCZHMzhUQoFEKudU1FIB9L2hl4XBHZGgTv3vxnzKjVj03f5E0sB4rofD6YwHQci6zBEnVZW1nRAMAyBu825zTzGzTVt90X+qVg== 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=ozVwylsjcy/aqG2e/gjkEwXEcs16//qz62yqLKRFFzg=; b=IHicwk4rnjKpoRxnZPnohlX/PtjXUlNZQlZcupdZ9lJHqfGmrMdq1SYVq25wdIQFtyKnbu3HZBgonURn7h0OwmUh/7CXmBSiE9W0MylPE27/IySyoHGxf/mAtUERHbHVXn2qtB9GoW2ngQ2Zy/uiXyIWQ5gMu1gHj+xGQZ8LmbjcyGbmCMhW3rizx1TvjnPkFG4/dfWH6BQWO2NrT0LtQ6CF9/Gh9UG9YJVlMKowh3dWXwSnriymLUb+YXOEss27iO0GBMhNMGd6MBbRFj9E/zocpA39ny+rz+AvO41fWhHVvAnvX58E6vJebUzI1LW2jS8Z6fe6tY/eoM1nRfNF2g== 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 BL3PR11MB6505.namprd11.prod.outlook.com (2603:10b6:208:38c::17) 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:02:36 +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:02:36 +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: AQHauDBdYeGsvVFf40e5nFEfBMSU4rG7FovA Date: Thu, 6 Jun 2024 19:02:36 +0000 Message-ID: References: <20240606164047.318378-1-tony.luck@intel.com> <20240606164047.318378-2-tony.luck@intel.com> In-Reply-To: <20240606164047.318378-2-tony.luck@intel.com> 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_|BL3PR11MB6505:EE_ x-ms-office365-filtering-correlation-id: 090aa8ae-867c-4555-e298-08dc865b3a75 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|366007|1800799015|376005|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?bU0SwToYUd+JQ+b+KMsgXQerRsPEdeTLDU7frZQmStQcx5hloCLmnGE7BXG2?= =?us-ascii?Q?MScujO8k+GDfWQn203QiCagxABqJtKMA2iMWsGpVdYHWUfDIgyoCS7MiLbcg?= =?us-ascii?Q?w5VQpRj6f+D3qfPnDPw1MKXzuKglPfOiS72O1h62hrUR1BYtbHwxn9Uy/wKh?= =?us-ascii?Q?OlqNCBfAkpqcaM+W2e+JSXKJ/qizJTQOOJ8sIHIJ4t25qK71xKRJFn4DOvwd?= =?us-ascii?Q?InSu8vW1TQTmU96kFPC4GtTfdQ1UEFUlLuGFmVv9uNmRG6MBkzql+Zc+ezbF?= =?us-ascii?Q?lRYqHBREJDHq6TpG41H/CE/6EEjNpLlOe5p7o2QC3TD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IB9ndUaJZ6okw48frEQbpsdGVsffmlBXt5hoZ/VQmB7vj21?= =?us-ascii?Q?+3lXIvCfe0O/Jb8cWnAguncAfFJ/dyaN8vdbLxsVZOII9b9nKSom+8FsQwk5?= =?us-ascii?Q?pyysL73iEncS1BbqMdhOa/+ZP70sv1bUDou98lQarR+uFOkXC5nfxLbt81QM?= =?us-ascii?Q?kO//wlI=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)(366007)(1800799015)(376005)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?yqS3RonNn2ZHqyqa6GsyCozCxvnHPenYQJXLHMuPSnde1OBsbKba4KPvO9OG?= =?us-ascii?Q?FgLMzy0/U0b0+zsq9Uc5M6rLIN60/FimHdl3dWGyu3RzIsrLvD0KO22KbKmO?= =?us-ascii?Q?KaXKrYHVX613dZVJAbPttcMzICBxpEKGsxIPotMxatPh6/owYkbihWzM1mU1?= =?us-ascii?Q?dENDCAEkMEx4v6eL7ZgXWP+lJJJpZBBqknWPfAgdzQODf7eJIfFEiUuILzgK?= =?us-ascii?Q?DRaykBBby5Z0bqwFpR2jc5j6/vs4SiXVwNcNS9za6xfTQgsKltl5E5aFDvsZ?= =?us-ascii?Q?qDazzxDIhzavkeu8/TyvHb7IWGTtNmYW00Opv1aT6AWcqpr/VE50RoroAjP5?= =?us-ascii?Q?7D9nPbo195BmDis+1naCzaInz+MJ3AWkIDiW1HUvms5WL3RXHtcSKVa8yzYB?= =?us-ascii?Q?dLRAxhbWft9UMszh2NceCopNkakE986j8hsS2QCXg3swer6Nx5yBYzIj5fBn?= =?us-ascii?Q?QYOpcvZg9xC7p21i2s3xtKd5sqcYHSPfZu2LNHfLWjP/pvo6PRyBJZdWZYKE?= =?us-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60Xi3JMzE7Zc1yibyQ7ou60P?= =?us-ascii?Q?HVbhpV1ua9LUktLiecRoKHs1E12NRmbxWHJbuAO711CQG5F7CEibEpWAXV95?= =?us-ascii?Q?z3MUBnEFPJMmc2Hww8sUeQcDWzhxXrLoJDKSQ+CeE8hzfu9oYkxR5oRGJnrr?= =?us-ascii?Q?exs8WNrHa3q8b5977qQgnKVo9yPXBbBf//xYKw8x?= 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: 090aa8ae-867c-4555-e298-08dc865b3a75 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2024 19:02:36.0597 (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: 3lAzMM1n3ETOJRTrjd7Yg5V2qvX4zQsSPVF2IEeLUyqxYzQPkssXdDI/ohNd25ditxGowoTidLvKgp3sT9pnnA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR11MB6505 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 'loc= kdep_assert_cpus_held'; ISO C99 and later do not support implicit function = 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. -Tony