Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1509922rwp; Thu, 13 Jul 2023 11:59:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlHX3gw+pJAPcYJERxHgxM7CrPTccUY2G6Bs4z/FTT8yUPIDWMKfY4zha0hHxCaFY60NQdlq X-Received: by 2002:a17:902:b70c:b0:1b7:fd82:973c with SMTP id d12-20020a170902b70c00b001b7fd82973cmr2069586pls.39.1689274742968; Thu, 13 Jul 2023 11:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689274742; cv=none; d=google.com; s=arc-20160816; b=yrCVen3sh/O24hE8R5qk0hMAVlnTvjakRBK2cp75G9Lo1rAMRdsIS43dz3GaOT4On/ 87xDaQwZC5bFY3bTi8r0Hfo2yOXKyeLbFUbx9xDxLhmeb7ZAkBTZhGp9PWEYLlFKWyka 98MV4jOtwjjhip+nzHUCiLugxGBs6lM3hOh6Rur48SrnqwRwZpe33qXuMDSw5KsG59go wCPeSJ5ZKUgzMMEyY/qKGxJDLcVc2Efm0dbSjVnWbB54/eJbO9Y4iouvWMjrzb8eF4Dv us9GTiUuD6nyC6FaIgFZ+1hPHaL2J+rB9FZyB/Z5lYySHF5KsIx8erVUbZHMldKl13v/ Fwng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5eTbts8cHZSzakMKK2Zdyg4qGmgVnQqsmrB4hVj4oIo=; fh=Tg2quYsQ9VoTFlu5uhTGExMq+c/+dvg7LlA9aQ7ChDY=; b=jO/3a5qkNbjb51IsLuuz2B6byrkNufqnUUz5DpBqIrTThmSYLt9pNIATmiUKEuSOu6 BQb0SMBejuyYtqhusdPgT6q4eD2hEkQ3nbQpQm5tebjiwNqMpJFr9P3ajC7lSmg6cM6M P5Ff4QNTUHnVpeE9uXlJXMPxGjMcn0XWHBPmBmMSWyh7oi7U4+Jia2u6BubDBwdihuFm ifqY/PswghFXv37RMjLLXfs5DHUVtbaYmMtOVg2PROzPrHJs73TMdFSCSyEGcPZF/fkw nLq6DFiQ4KrvucbDCHVLkdCvUWV/sLTB4NFr1hoW2jlW8vH/Zn8K1EFVwJMhHROfEw0d wKnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=MfvQrnz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a170903018e00b001b8a88cba84si5855496plg.129.2023.07.13.11.58.50; Thu, 13 Jul 2023 11:59:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=MfvQrnz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232041AbjGMSdS (ORCPT + 99 others); Thu, 13 Jul 2023 14:33:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjGMSdR (ORCPT ); Thu, 13 Jul 2023 14:33:17 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 734162D46 for ; Thu, 13 Jul 2023 11:33:16 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-98df3dea907so145005366b.3 for ; Thu, 13 Jul 2023 11:33:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1689273195; x=1691865195; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5eTbts8cHZSzakMKK2Zdyg4qGmgVnQqsmrB4hVj4oIo=; b=MfvQrnz3HQM5uz3bUzlEICp3/ZryjhT3ML1rJzkGnCys+HNir8SHdMag1/s/C5Xa53 2eQ0aNkn7mmeFhB12PYRwc6FjzzoC2QIuUXZ9Mb10qoenWygdzZZtTvdjmeCrDzurzbG I9iBCPSNZhXadon5dPLLPeuXPC6d+ISaE6qrw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689273195; x=1691865195; h=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=5eTbts8cHZSzakMKK2Zdyg4qGmgVnQqsmrB4hVj4oIo=; b=IPpl1Vmw7ieY6YPfA4xOOnm2crcc0tdUcHtRgA6CtZbkQazc17Qxt4qYoSxQdbfV7A oTYYU75Fs/BnQcWyxxbJcHrBvBBk6srWwy+nZqbYvjVrZNz6h1YDxgl+u0FVRMl/gT89 36bFN6jqH+rJTImAnRK3NJcV5wtEA+YWtIZJHCNq0CcuBM+NUyxkUUOX4t0o9NwNCIJr APDNOCNyeMeVeYCiR9JkwDqGHIyBqyUdVxV5O0X11aKdZtL1gocquuyDxufnYiwWWGde dcczLXRLp7rxWZFwmHDJXrpNThE5Q/rmKFeoqcfgXJUJLIhpF4C9gh3SdPrn8Wazj9YO CSDA== X-Gm-Message-State: ABy/qLbT5dAzY9eXEH4ZWLs45e059bZ/+hArt1CNv7MYs7FLSxzKmbDW iFVrb+3OxMpWbIwzma7Wz6z+Do2j64lmG7dIBXEzbS/B X-Received: by 2002:a17:906:7a58:b0:988:6bd2:b0b3 with SMTP id i24-20020a1709067a5800b009886bd2b0b3mr2254876ejo.60.1689273194911; Thu, 13 Jul 2023 11:33:14 -0700 (PDT) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com. [209.85.218.46]) by smtp.gmail.com with ESMTPSA id e6-20020a170906080600b00993470682e5sm4316521ejd.32.2023.07.13.11.33.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jul 2023 11:33:14 -0700 (PDT) Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-991c786369cso146127866b.1 for ; Thu, 13 Jul 2023 11:33:14 -0700 (PDT) X-Received: by 2002:aa7:d511:0:b0:51d:91d2:335b with SMTP id y17-20020aa7d511000000b0051d91d2335bmr2839984edq.1.1689273173806; Thu, 13 Jul 2023 11:32:53 -0700 (PDT) MIME-Version: 1.0 References: <20230711011412.100319-1-tj@kernel.org> <20230711011412.100319-28-tj@kernel.org> In-Reply-To: From: Linus Torvalds Date: Thu, 13 Jul 2023 11:32:37 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 27/34] sched_ext: Implement SCX_KICK_WAIT To: Andrea Righi Cc: Tejun Heo , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@kernel.org, joshdon@google.com, brho@google.com, pjt@google.com, derkling@google.com, haoluo@google.com, dvernet@meta.com, dschatzberg@meta.com, dskarlat@cs.cmu.edu, riel@surriel.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, kernel-team@meta.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Jul 2023 at 06:46, Andrea Righi wrote: > > I'm not sure if we already have an equivalent of > smp_store_release_u64/smp_load_acquire_u64(). Otherwise, it may be worth > to add them to a more generic place. Yeah, a 64-bit atomic load/store is not necessarily even possible on 32-bit architectures. And when it *is* possible, it might be very very expensive indeed (eg on 32-bit x86, the way to do a 64-bit load would be with "cmpxchg8b", which is ridiculously slow) Linus