From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2C36C4332F for ; Sat, 17 Dec 2022 05:05:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230129AbiLQFFQ (ORCPT ); Sat, 17 Dec 2022 00:05:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbiLQFFK (ORCPT ); Sat, 17 Dec 2022 00:05:10 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C636680B8 for ; Fri, 16 Dec 2022 21:04:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671253455; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U5U9JSWe0Cb7QSDp7wHEROQEZPSJHdB4ZZYbZ5fNUQg=; b=Ih1xEFx5FLepq/1zolwCpkV2BP7C0WJtOL6Xd1AjLhoAeJQcv39ChZNdrMwbfHrockXSiD TnBtktEN65QBV+XwMQxIe3izvHgMwYIb0SRAzwuW0etyi/Lp5B1AWAydQEfqNGOeQkIiZm RxehtO2mXYRnnKjCySUSHhuVWlP2PDc= Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-536-hJL3x3qjMIyEQ9QuqqSo1Q-1; Sat, 17 Dec 2022 00:04:13 -0500 X-MC-Unique: hJL3x3qjMIyEQ9QuqqSo1Q-1 Received: by mail-oi1-f199.google.com with SMTP id bj30-20020a056808199e00b0035a0734664bso1357495oib.8 for ; Fri, 16 Dec 2022 21:04:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=U5U9JSWe0Cb7QSDp7wHEROQEZPSJHdB4ZZYbZ5fNUQg=; b=WZhO3QXgwE/b+saxECWbS8RREHmMF57R/zczgi9NCDMxLj8S9oX1oEfPdE83LMkFgx PVuvhp+DKfiOAn1tKmOks1Nm2fpzYVwHXiIC1SQ0UFEYYVxq+AzbXDl6QgdYa5lUNYQe HZfz08gIWqhI8KHIcgAXQNMowy47mtU5DCTEsf4Q/NK+pTqkMkxP3J06GPujG8fMF8zh XiBNgYT0Evb2VjfD4Ij3fjxBmTscBu33orz5qHFDt1tMpfLjcSKUCX+CQVIwTWdGq5UY dvmMTGwaVgXSvAgkfsJs02GkKJLhwP3ziPLSRDUEkIvMXELKAP7pZp82g3NH/niUqW9V XoLw== X-Gm-Message-State: ANoB5pnS6alPMFSvHDPaUGLBAXNIHBHiqGjAjdlw7zG0/j3zj6QKwMfn DCqSW7YIu0t2hmJ0fo4PJTcO4BTJvveexUhqGwNJHNpAX6vG9zTHILL0Hs5FLqg4+BX78ML6h9b bE4qjOfArM1MR/iiRxCdSIJFO X-Received: by 2002:a05:6830:26c3:b0:670:6c81:6e55 with SMTP id m3-20020a05683026c300b006706c816e55mr17070805otu.3.1671253452560; Fri, 16 Dec 2022 21:04:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7OcKfeIWpJo8DQSSLbUY371A1pSB8JS42w8afRBefYfX8GfTKt9XdbGTUa3+d37ndPA7Huog== X-Received: by 2002:a05:6830:26c3:b0:670:6c81:6e55 with SMTP id m3-20020a05683026c300b006706c816e55mr17070784otu.3.1671253452251; Fri, 16 Dec 2022 21:04:12 -0800 (PST) Received: from ?IPv6:2804:1b3:a803:128a:7e6a:b702:e62d:3eea? ([2804:1b3:a803:128a:7e6a:b702:e62d:3eea]) by smtp.gmail.com with ESMTPSA id g17-20020a9d6b11000000b00660e833baddsm1768808otp.29.2022.12.16.21.04.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Dec 2022 21:04:11 -0800 (PST) Message-ID: <5bf73d21c03d4a642eb81de35544a4d6cfa9294c.camel@redhat.com> Subject: Re: [PATCH v2 2/4] sched/isolation: Improve documentation From: Leonardo =?ISO-8859-1?Q?Br=E1s?= To: Frederic Weisbecker Cc: Steffen Klassert , Herbert Xu , "David S. Miller" , Bjorn Helgaas , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Tejun Heo , Lai Jiangshan , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Phil Auld , Antoine Tenart , Christophe JAILLET , Wang Yufen , mtosatti@redhat.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, netdev@vger.kernel.org Date: Sat, 17 Dec 2022 02:04:03 -0300 In-Reply-To: <20221129115439.GA1715045@lothringen> References: <20221013184028.129486-1-leobras@redhat.com> <20221013184028.129486-3-leobras@redhat.com> <20221129115439.GA1715045@lothringen> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2022-11-29 at 12:54 +0100, Frederic Weisbecker wrote: > On Thu, Oct 13, 2022 at 03:40:27PM -0300, Leonardo Bras wrote: > > Improve documentation on housekeeping types and what to expect from > > housekeeping functions. > >=20 > > Signed-off-by: Leonardo Bras > > --- > > include/linux/sched/isolation.h | 25 ++++++++++++++++--------- > > 1 file changed, 16 insertions(+), 9 deletions(-) > >=20 > > diff --git a/include/linux/sched/isolation.h b/include/linux/sched/isol= ation.h > > index 762701f295d1c..9333c28153a7a 100644 > > --- a/include/linux/sched/isolation.h > > +++ b/include/linux/sched/isolation.h > > @@ -7,18 +7,25 @@ > > #include > > =20 > > enum hk_type { > > - HK_TYPE_TIMER, > > - HK_TYPE_RCU, > > - HK_TYPE_MISC, > > - HK_TYPE_SCHED, > > - HK_TYPE_TICK, > > - HK_TYPE_DOMAIN, > > - HK_TYPE_WQ, > > - HK_TYPE_MANAGED_IRQ, > > - HK_TYPE_KTHREAD, > > + HK_TYPE_TIMER, /* Timer interrupt, watchdogs */ >=20 > More precisely: >=20 > /* Unbound timer callbacks */ >=20 > > + HK_TYPE_RCU, /* RCU callbacks */ >=20 > More generally, because it's more than just about callbacks: >=20 > /* Unbound RCU work */ Both updated, thanks! Out of curiosity, what does 'Unbound' means in this context? >=20 > > + HK_TYPE_MISC, /* Minor housekeeping categories */ > > + HK_TYPE_SCHED, /* Scheduling and idle load balancing */ > > + HK_TYPE_TICK, /* See isolcpus=3Dnohz boot parameter */ >=20 > Yes or nohz_full=3D >=20 > > + HK_TYPE_DOMAIN, /* See isolcpus=3Ddomain boot parameter*/ > > + HK_TYPE_WQ, /* Work Queues*/ >=20 > /* Unbound workqueues */ >=20 > > + HK_TYPE_MANAGED_IRQ, /* See isolcpus=3Dmanaged_irq boot parameter */ > > + HK_TYPE_KTHREAD, /* kernel threads */ >=20 > /* Unbound kernel threads */ >=20 >=20 > > HK_TYPE_MAX > > }; > > =20 > > +/* Kernel parameters like nohz_full and isolcpus allow passing cpu num= bers > > + * for disabling housekeeping types. > > + * > > + * The functions bellow work the opposite way, by referencing which cp= us > > + * are able to perform the housekeeping type in parameter. > > + */ >=20 > *below >=20 > Thanks! Done, done, done, done. Thanks a lot for reviewing! Best regards, Leo >=20 > > + > > #ifdef CONFIG_CPU_ISOLATION > > DECLARE_STATIC_KEY_FALSE(housekeeping_overridden); > > int housekeeping_any_cpu(enum hk_type type); > > --=20 > > 2.38.0 > >=20 >=20