Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1547659lqe; Mon, 8 Apr 2024 12:05:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkbVNS9/fzFNqs6LPRKem231OCnOm0aIsTOAX99Lq9TnsR8n9oXw2GYzn0r15doQJQQm+4bIIZEe7Wa1Dp3/UTnb+bZxqYlxBv7otIcQ== X-Google-Smtp-Source: AGHT+IHXp/M2gEwxFWKL66qC+PTNbvMyMWqR7+5GbUflEhQEZ3jIdcjOYrysG2zuLfAdMtHtD+k0 X-Received: by 2002:a05:6358:9603:b0:183:e05b:379e with SMTP id a3-20020a056358960300b00183e05b379emr7946905rwb.30.1712603149409; Mon, 08 Apr 2024 12:05:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712603149; cv=pass; d=google.com; s=arc-20160816; b=Tmt4HhcTxMFJZRK01PgMPfataoIfZIK6yAq2EpcZEAxWNf6Wo6/+9KnlTrTNd/fSCW 0yJ/zGyqnGJ1bjqUieLS9gPrFEnNeZMHuPiQqr5p7sGvmHribXfwc4SBOZdSGomWLigN FjLoned+yf0eatr9qj6krPWa7u1ecZScBWJ7oNsG4+zT92FOybLQob57hkDg0ecW3ep2 ENq2opCCz0LVud2dnxmxyp2BBtYBvKwoPSJ+v7mZrkAGNYeA53myokKQ3WniKlL7K1XT mf8F/YwjQu6JE2cSrC6RY51XkgtJoXUzCAVsUGIMcC8tfJLowENZZqGTiwg4SgxYPc6u q72Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=lbRobwJw3OdHZdZ4P+7nlZtLBU8BwFDhwjultMzXnbA=; fh=1Eu2gO5G4sT5crCBE3yQ4wZ1G/2x0U4dSpswL6KzGGo=; b=amsdbjoFzfWeJDHcKsONkFKrOadRyNKsEeBWY6o8IVUQ5NW2BnPExHaAsky222rO8H QUM3cOXC1lLVjVghfPktSS1s01V7lJzH+JY7mxsVhTavNwTV3dkpM6Yz06R9q5dWxxDI U5RiwwvsGh8Ju7R18mP2GI7E64vYRr49sM8Yr1CUNlouk2rEVbGR7wsotPoHDAao8v0K DOlxwy9Z/SC3Qzwnby2ef00itn/z818n6Ua+5JhcS8Tlf4qZ5hU0l9aoehhQwq4Se5Oj /eoTGICqn26ftmXlB9dvCsoJiDZSiUEXOIJWtUoQsJqkdYotyBBgXg2WIQ1JdvahrnLV op1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=rhSntl8j; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-135862-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135862-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x14-20020a63484e000000b005dc359d7e93si6806911pgk.806.2024.04.08.12.05.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 12:05:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135862-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=@google.com header.s=20230601 header.b=rhSntl8j; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-135862-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135862-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 12C83285830 for ; Mon, 8 Apr 2024 19:05:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A50A1144D3F; Mon, 8 Apr 2024 19:05:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="rhSntl8j" Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 692AAF51B for ; Mon, 8 Apr 2024 19:05:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712603142; cv=none; b=lL1twnSL+bPdVhOpxg4JbVxN320I32JodPSZoD35zUVCM7hAi0ZCEZKbG+ds+rOOQVJe1cFdptsqZnJxG16O3RzISO92b+YDpPakxL08T1A4rNgJ3W+WooKQlrvXAHG+KoRUorUuiNx2+AJnqwxooZLXEXZwyR/x9a6jwC7+uwE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712603142; c=relaxed/simple; bh=lbRobwJw3OdHZdZ4P+7nlZtLBU8BwFDhwjultMzXnbA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gDgVWqlc/iHMvbJkzjpeYooCsdxm0l8aoYbkooHnRQCVgHnIdshdWdgoysyS/fqdvJmjw4KPTR0Pz17Y1R49oYmYKBp3l7c2pXm62osWGNw9dEHEhNCgyS3s2cs4J3BNzO9uY+MJHxn7bQEAc+c7FgkFwsmxJofqzzTvTuRH/L0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=rhSntl8j; arc=none smtp.client-ip=209.85.166.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-il1-f174.google.com with SMTP id e9e14a558f8ab-36a0c8c5f18so27795ab.0 for ; Mon, 08 Apr 2024 12:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712603140; x=1713207940; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lbRobwJw3OdHZdZ4P+7nlZtLBU8BwFDhwjultMzXnbA=; b=rhSntl8jtQv6pcCjzJaiPNUmQ0hI6KkwSjcc8FfoI2EN/r9zIJxAF+gFO8Umr7umv4 PoBqFzjSjBKwZgSk34sv8szOPMDmzpXmLh5/lt2PN3+bRhT3ZtXqsyKYxFbG37b7n8lZ Z1E1BwuI8jAnMua43tHBpA+8+gH4YKZ4Imhb4U5zMcPJ4KtRzAqwWer/RyeEnHIOV/np qhyzuL/i1sScRSGgudr7emjjLkZxwTWbyAZr8Hu/z8Cprb1RYcJANfgi7+5Z8h5zU3xr Ue8+j9fbnr8y/EDoO/89+lAnI9tNTqD0lrejwD/kxi1zqIUrFrix+wK7XWFE/lrbK2t0 1BeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712603140; x=1713207940; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lbRobwJw3OdHZdZ4P+7nlZtLBU8BwFDhwjultMzXnbA=; b=J4BLNoR3gh63Teq0qmwNS6L3zc7mkjSrWX+FEUkhXX/ANtVF6G0B5xm95KGnuomcTi cCGf+RV56TaSBgyrv9xSJDKMBtBTVflNlPOfEcJo0o2/zexUqqhTRbhk7eYjCgiSmJ1d T5ZUhiCl6IehmMd48R1Zh4IFPq2cgzAT5X+wNxzgVBZMgOY7O5VUNr12FzDf1x/xoIG0 9aWRTG0pDOBybgKgQL8gzapdvNUadDSgvQK30awdFGWEjOhMh8GmZvLAnQFDK4kdPH31 iqqU3FxOpx929xDXUrp9qdm5tCmxi5FGkgulMgl0MTtwY/XSFCku6AFDdYTvQ/udu9sQ irAQ== X-Forwarded-Encrypted: i=1; AJvYcCVgOUQiYe7BE04VpR8lf5T/8Gf32Oeg7g6zYzFet0DOsS2NQsg8NPnGJzGwR6cx/PeKWQyLomLoMSDJvRlG9kQ5WPRAjA0BjqU3LLYt X-Gm-Message-State: AOJu0Yz7ymx9+3t31Gj1jcaFQv9OwAYOEENPkHhkRHL9Pamlytm/bhp8 6ro3t4fENamT3/uHysIH3t+zcKeaZ94B+Adp5wWtPzj10pXVV6LTmo9f6Xv+10tLcxBmmNSutkx E60zWOTDvs5jESKzC1UXT+Zbm1aTYV8fZ+XBX X-Received: by 2002:a92:b70c:0:b0:368:4204:7bf2 with SMTP id k12-20020a92b70c000000b0036842047bf2mr33697ili.12.1712603140332; Mon, 08 Apr 2024 12:05:40 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325172707.73966-1-peternewman@google.com> <20240325172707.73966-2-peternewman@google.com> In-Reply-To: From: Peter Newman Date: Mon, 8 Apr 2024 12:05:28 -0700 Message-ID: Subject: Re: [PATCH v1 1/6] x86/resctrl: Move __resctrl_sched_in() out-of-line To: Reinette Chatre Cc: Fenghua Yu , James Morse , Stephane Eranian , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Uros Bizjak , Mike Rapoport , "Kirill A. Shutemov" , Rick Edgecombe , Xin Li , Babu Moger , Shaopeng Tan , Maciej Wieczor-Retman , Jens Axboe , Christian Brauner , Oleg Nesterov , Andrew Morton , Tycho Andersen , Nicholas Piggin , Beau Belgrave , "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Reinette, On Sun, Apr 7, 2024 at 12:21=E2=80=AFPM Reinette Chatre wrote: > > I think this needs more thought. rdt_enable_key is x86 specific now and s= hould not > be in the fs code. Every architecture will have its own task switch code,= with > __resctrl_sched_in() belonging to x86 and thus not something to be direct= ly called > from the fs code. I think we will need to discuss whether __resctrl_sched_in() is really arch or FS code following the changes in this series. This series removes the explicit MSR access and James has already provided inline wrappers for the mon and alloc enable keys[1], so I can only assume they are architecture-independent in concept. Thanks! -Peter https://lore.kernel.org/r/20240213184438.16675-18-james.morse@arm.com