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 3D305C4332F for ; Sat, 17 Dec 2022 05:05:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229948AbiLQFFM (ORCPT ); Sat, 17 Dec 2022 00:05:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbiLQFFH (ORCPT ); Sat, 17 Dec 2022 00:05:07 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB7C5680BC for ; Fri, 16 Dec 2022 21:04:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671253456; 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=dASn1E+KpevZmdjmF1oSqsgoOvv3DQMKzyEz7Ty1V+hLSXL/1mFSPsa6F8HJMlJX2CopHf VNa3cobdI97Cdxod90nCnIEmgBj71P/obSQ9wmQ7id/f0OstJe2ELMqX5mdSikZJaRzb/q D1s0xSEsb0xgBr+vzALMgB0pXbGjWrs= Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-227-x2fombQdPOWrrvY47fFhew-1; Sat, 17 Dec 2022 00:04:13 -0500 X-MC-Unique: x2fombQdPOWrrvY47fFhew-1 Received: by mail-oo1-f71.google.com with SMTP id y19-20020a4a9c13000000b0049dd7ad41c4so2087544ooj.3 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=YyXy77D1uXN3U5shiU0WZgrZxP2jKiT4MIQCoenYjeYCh+j2TMELWwenp5Tfo+dOMQ deuvY6QoHN/atKECkM63Nxrm8vhiFvy3Y6auC5fm9fWCc+G2pvUEaVzj/cNjcjH8EtSU SB2LTgeA50vFp1hFkVJX313MOgBuW63B/d30VZUBEwgzh0UG0x39sv+24K+/KQ3IsC1H F0O1hcM8rzppFBgv5oxkGYVKAIz22SbdQ5Qu1vMudX8/4wde6u4q17PshoYS4gCRXKKa VR80VAUIo1PacF8QV/g8nxiQli+n8aKCFtMFOXAFjLtXuTdCL+OptcQ95NwnmpzsWAzK 6+SQ== X-Gm-Message-State: ANoB5pkkoDuzZqqsd95pdDLi9EM5JlGfvGZOg5jg5qpaYHlwxo46o08r aLsLj86nsULm2VfG98DDgN+hEv83d89lahfDCibycDcY95QeMtRICR0hwXggU1RIC7UqC2e9jQL AOucnBeynDevEnIVuG9Hh X-Received: by 2002:a05:6830:26c3:b0:670:6c81:6e55 with SMTP id m3-20020a05683026c300b006706c816e55mr17070812otu.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-pci@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