Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1250990rdb; Mon, 19 Feb 2024 08:50:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWbuBwD+/tqWYc4MC9fAg1h3bf5V6ekYjr6Y5wkXLimPzJOkE8hJPhN+uUS0cKEz0cBja4G7WsOY/CvJTzCcE8NAg/a/9hLNpEbpLNzPw== X-Google-Smtp-Source: AGHT+IEGpYOYR+x5Mk0sLkZK/3oADWBUuU2gMTQZz0jxLrThJWsC8KHhfBQdpuKnWtMINi/kqqfi X-Received: by 2002:a05:6358:571a:b0:179:1a1:ca9b with SMTP id a26-20020a056358571a00b0017901a1ca9bmr12419209rwf.24.1708361417215; Mon, 19 Feb 2024 08:50:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708361417; cv=pass; d=google.com; s=arc-20160816; b=u84BlplUzqHF9EzUX6HM6l5xP8+ZlhECORdENGR4H7Gs8Ma8sRE2o40Zcl1RQqZXuW WPaA/1hV163aIyKSUICpc/w4+BTZb025LQL9S1FSaYBv3s/BOXmfM2KWOEpP9x50PprL G7KiL5w/fG874jW9hjfTBrmp8ljhJuOvXUdblu4nKKX31H+RLrKdNMhL6tqYNzx1/XcV k7Ijppk09cK49vGI69vOtdmeAANSiUKVPA4T5NCUmgWrBrtdwHXtQ0euRnjKZbKDqZQc ktwfU9TJaaVnqiGsBYWRHQXkqdZiDLoOwjO2n4gXDktUFOa1U6b4BWfGndvJGa8wEW0w KkuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=BU+4flsDNEBo83o/yPdzhjo6IBA6Ub/lrR12JPUBrfk=; fh=mfIshl5uPEIpczIIvulR0vKYD14NWhiQXaxLgRpjVY0=; b=blqeqDgLNYwgmCuw0BmDEDegdMpqPBfGsy0v5lrTH+RuKhov8mIJjOUYYVdvaSLREX PQ24gT2xS4XOU1Dk38wvlkApRp8Jxh+H5KKNh2fqu0/ZGwIUggaH75eGyMEyKWVit6RR WNduwaXvT066QJUwiq71YKcHzRxYrKVyafEfjCXBrtsfOUR2t0GgCKJodHWtP3KYeSx7 RDmvk56rWOX+8MDo/bIzz+3gW4Fn8YQ6fIPHGsraCz/VlOo/Buc19ldX4bDKupO1AUWS vGnkQpVzmRFYr4ReMaMYcDyDjqZjVJQDYZ+jbuBxYHrjkHg+Lopthd7nwcl4f+LD1tw+ LdKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Q8adDIMF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71707-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71707-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g6-20020a636b06000000b005dccf9afad5si4713387pgc.305.2024.02.19.08.50.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 08:50:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71707-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=@linutronix.de header.s=2020 header.b=Q8adDIMF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71707-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71707-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 D7EBB282823 for ; Mon, 19 Feb 2024 16:49:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C26AB40C1B; Mon, 19 Feb 2024 16:49:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Q8adDIMF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="MTWrsG8W" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 AD8FF23B9 for ; Mon, 19 Feb 2024 16:49:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708361374; cv=none; b=A+rjqW2L0xy1dnwpyz7opvYA0J8IaOu4nyV4L2kdUB2vaum17e1422HYRhjoWuEcKK/dcN5sXIpOWVNr1cmxww+2sVvNtEaYqfhUUWZ10Rqyq0ee2FB6cPq7M4iDDSredU8x7uCOqz94sd+jIN6faAnywazT4uBmhV52I2zxr8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708361374; c=relaxed/simple; bh=Y6EKdBCPl4p5Md0hUI02SPFaxQ5gQVhFLesx9SAjvRo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=h4QWzJ1duNWsAYNUWJUoJwUK9ruh/c3abeC+LbSYn4/OO/Ddk50rSG5q0fHEnAtrs+id7mxKODLyF549EjAkBguDReelxyho71EI4jh6bIUxcFLwqn7xMcuspEoWEav0LeZ5aq2GdX+Qo2CGFu0mPx6FDEy5Xp70vmGhks0JLxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Q8adDIMF; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=MTWrsG8W; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708361369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BU+4flsDNEBo83o/yPdzhjo6IBA6Ub/lrR12JPUBrfk=; b=Q8adDIMFh/RQwClkAghYdeCatkuI1NOnvyuEYoaipex+Df26d/QdX5O9q/TYf+wERymDdc rdHQ++rAkLskvlkl02f8T8pTT6QYRL1E/9WIOXArRdKD6SAnSk8NGchU+uDEZqBB0+YKio Vk8PRHY8VrpYzj/oTSPhz5pq1Dw49MkOo+j/lo9Y9swXtpKbiRygUYVRFHfq0+qk4y3ug1 hP3tvVy+MvIBhq0BX6Ixl+luScZeOVrFfP6zrG5pjCYzKoLTRNutuBuG67i9vTWS6TqvO8 KsXUGHVKYQ1vcFnVoriq/BDAcTvo0Ez5C5kf1OIyoFys4ZGVO0XIatNZ7aisIg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708361369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BU+4flsDNEBo83o/yPdzhjo6IBA6Ub/lrR12JPUBrfk=; b=MTWrsG8WwuF+xhBsAu0MhUpUCJ/6TJS6fuHyJvrW4Hvvhz/MqBgAOrGigyenYVRLFsm5SQ WoZV4yBSJ6qpsIAw== To: Borislav Petkov , James Morse Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , Reinette Chatre , Ingo Molnar , 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, amitsinght@marvell.com, David Hildenbrand Subject: Re: [PATCH v9 00/24] x86/resctrl: monitored closid+rmid together, separate arch/fs locking In-Reply-To: <20240217105543.GAZdCQr_nosDP4tGuO@fat_crate.local> References: <20240213184438.16675-1-james.morse@arm.com> <20240217105543.GAZdCQr_nosDP4tGuO@fat_crate.local> Date: Mon, 19 Feb 2024 17:49:29 +0100 Message-ID: <87zfvwieli.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Sat, Feb 17 2024 at 11:55, Borislav Petkov wrote: > On Tue, Feb 13, 2024 at 06:44:14PM +0000, James Morse wrote: >> Hello! >> >> It's been back and forth for whether this series should be rebased onto Tony's >> SNC series. This version isn't, its based on tip/x86/cache. >> (I have the rebased-and-tested versions if anyone needs them) > > The set applied ontop of tip:x86/cache gives: > > vmlinux.o: in function `get_domain_from_cpu': > (.text+0x150f33): undefined reference to `lockdep_is_cpus_held' > ld: vmlinux.o: in function `rdt_ctrl_update': > (.text+0x150fbc): undefined reference to `lockdep_is_cpus_held' Wants to be folded into patch 24. Thanks, tglx --- --- a/arch/x86/kernel/cpu/resctrl/core.c +++ b/arch/x86/kernel/cpu/resctrl/core.c @@ -368,8 +368,8 @@ struct rdt_domain *get_domain_from_cpu(i * about locks this thread holds will lead to false positives. Check * someone is holding the CPUs lock. */ - if (IS_ENABLED(CONFIG_LOCKDEP)) - lockdep_is_cpus_held(); + if (IS_ENABLED(CONFIG_HOTPLUG_CPU) && IS_ENABLED(CONFIG_LOCKDEP)) + WARN_ON_ONCE(!lockdep_is_cpus_held()); list_for_each_entry(d, &r->domains, list) { /* Find the domain that contains this CPU */