Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2061323rdh; Sat, 25 Nov 2023 11:59:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcXI8jbnZvu7FV7catAVznXDddCa+ZecSDpongtJzflt9TM3O0Dk37ZvdIxHNXNhjZH9gX X-Received: by 2002:a9d:7f0c:0:b0:6ce:37a2:a93e with SMTP id j12-20020a9d7f0c000000b006ce37a2a93emr8180275otq.3.1700942396719; Sat, 25 Nov 2023 11:59:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700942396; cv=none; d=google.com; s=arc-20160816; b=DGlzFxbAI+ten42D0FKxCZ7x6hZl1/kgbFeAYj1uv54By04JU1OoYdokBtmL8RgwK3 TB5eR3Dh3V75XFvcJaUNfaG1PtZGl9ECDb1aZLiCJDh5EiArpuWg8Lb6qYGrM1dpxTsc Ev6e/a6KI0m5aslzskIGSXllUFUbVtUCXkYHa7Cekw8LHhm6Tn3f/rF7V5YKYLyWoz2j 5BEzh89PPDmnexPIT3FJFuI0cToEoI6wgST3p0S7F1D4k5xJg10yL7WLcG0lJJAxX0kg yot4Zv/fiTgmO4Om3TqDu6irt9yiMS2x3unJIWQnM7HQDqcgtiJncmv8qRTLbByP97KV 2gYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=VO2STeGiEdMah3Rs2OqrcrAeByRtw44j2ObgacSxxiE=; fh=4JQb8ckKrY1PoxkxZVJEhP52rtJlpjqV5iZIUwWbqCE=; b=tAUZ7797KiXFE/WjHhwIsjIAcGpaokQ2yAPwJX7l2LM6nuGOTE5FDPDyvvfBzy2hu1 j4WcRFY+Q/QWJkYxpJQ8GH/8It9RjN6YXI+hRRRlgNiEAWJlq9sXiRpIMOzYyftRmkyO GEHrOdbpB7P7/gG4dBXGOTb6GAZyMiyMvONBzp/miYXiCe5fpj1bcSpjugBtVciD4vQV 6YKyk0PiY/zfaU/D5NFw66eM6J65LnDOhipokAdYxhUE4TJ2+TLsrQ4Qwqe9Tv9in1se c20Uedgz41UTjsck6XAZeMfYDyBNvxsON7amYyH7VBBx/y97zRFv5prx86pqoUrIMh0O AzNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LgST56Qj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id i25-20020a635419000000b005bd2c1c6f60si6078679pgb.459.2023.11.25.11.59.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 11:59:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LgST56Qj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5C977803DB39; Sat, 25 Nov 2023 11:59:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229511AbjKYT7k (ORCPT + 99 others); Sat, 25 Nov 2023 14:59:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjKYT7j (ORCPT ); Sat, 25 Nov 2023 14:59:39 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70370C1; Sat, 25 Nov 2023 11:59:46 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-3b2e4107f47so1962924b6e.2; Sat, 25 Nov 2023 11:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700942385; x=1701547185; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=VO2STeGiEdMah3Rs2OqrcrAeByRtw44j2ObgacSxxiE=; b=LgST56Qjx/YIMLqSoJqVxm7x1UXV50JBAtyTWhCiz6WJRtG81EJjSIMCCXLcYPvNY1 dmnNypoWAmRiiW1hde5W9KFzIjPSUZ5Zfonxey8nC9SitwMqvcgFyefuJFnthGLlA6vN mnpR/iaEV4BCSViF1SdyTwZQ8+RIAWaPmUiJiM60gBmsk6N3NIeV3ekz1xH1v55DpCxw yIHxy7WrWFRmhdC8YEdJuhwlAtc0HQnLEWO6Ahnl0A3sN51JiDrrrSA8qkCsjrjqduI3 qH/YnyBy8TUrr3azmuuGutQcqjQPeDIac7HSBPQshmngX4RjUcisL9I/4e4QtF1WLTsl BGcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700942385; x=1701547185; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VO2STeGiEdMah3Rs2OqrcrAeByRtw44j2ObgacSxxiE=; b=gb8VKhmRT/4EALhWPolmcYd465T7iZ8YwyzqrkG6YAiQRC6Euf78oOb2TJgj+/yjgN u65+tnlvSLPaRo2OivXB8C1Mvqh8gSp/9EmYjq+ofvNROlg+zQZ1RPSqyDOKiwQQGXpl cwPnau5pWj3ymBzQSvDxONnJafRQMwbk+k3W6NFaPXdxirIIXZpcp/knQ/fm0fTf3rio yAPIabBkXILZIbjcDhK4gcGvkiir2NajKDNxJCybGNr0EP0sIWBrm4p7QKmkPdIVBNqR f7Hm0bpHnCB5gL/TkJHKpjgJU8eJRH3sVSwgdpOquDW/A1sHvb0asqnaAiaW/p78siJP DZvg== X-Gm-Message-State: AOJu0Yy3haYYMZ2RkEuebDfGj/sRElwvqeTzRoTtme+KtYVnlj6CVxNI DOKrzvcTT/rKyPbZLDU7paU= X-Received: by 2002:a05:6808:1a1d:b0:3b5:c587:d9ed with SMTP id bk29-20020a0568081a1d00b003b5c587d9edmr9808829oib.26.1700942385503; Sat, 25 Nov 2023 11:59:45 -0800 (PST) Received: from localhost (dhcp-72-253-202-210.hawaiiantel.net. [72.253.202.210]) by smtp.gmail.com with ESMTPSA id fb2-20020a056a002d8200b006c4d371ef7csm4860212pfb.14.2023.11.25.11.59.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 11:59:44 -0800 (PST) Sender: Tejun Heo Date: Sat, 25 Nov 2023 09:59:43 -1000 From: Tejun Heo To: Andrea Righi Cc: torvalds@linux-foundation.org, 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, changwoo@igalia.com, himadrics@inria.fr, memxor@gmail.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH 12/36] sched_ext: Implement BPF extensible scheduler class Message-ID: References: <20231111024835.2164816-1-tj@kernel.org> <20231111024835.2164816-13-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sat, 25 Nov 2023 11:59:54 -0800 (PST) Hello, On Thu, Nov 23, 2023 at 09:07:35AM +0100, Andrea Righi wrote: > On Fri, Nov 10, 2023 at 04:47:38PM -1000, Tejun Heo wrote: ... > > +#ifdef CONFIG_SCHED_CLASS_EXT > > + p->scx.dsq = NULL; > > + INIT_LIST_HEAD(&p->scx.dsq_node); > > + p->scx.flags = 0; > > + p->scx.weight = 0; > > + p->scx.sticky_cpu = -1; > > + p->scx.holding_cpu = -1; > > + p->scx.kf_mask = 0; > > + atomic64_set(&p->scx.ops_state, 0); > > We probably need atomic_long_set() here or in 32-bit arches (such as > armhf) we get this: > > kernel/sched/core.c:4564:22: error: passing argument 1 of ‘atomic64_set’ from incompatible pointer type [-Werror=incompatible-pointer-types] > 4564 | atomic64_set(&p->scx.ops_state, 0); > | ^~~~~~~~~~~~~~~~~ > | | > | atomic_long_t * {aka atomic_t *} > ... > > +static void set_next_task_scx(struct rq *rq, struct task_struct *p, bool first) > > +{ > > + if (p->scx.flags & SCX_TASK_QUEUED) { > > + WARN_ON_ONCE(atomic64_read(&p->scx.ops_state) != SCX_OPSS_NONE); > > Ditto. Even if this line is replaced later by > "[PATCH 31/36] sched_ext: Implement core-sched support" > > > + dispatch_dequeue(&rq->scx, p); > > + } > > + > > + p->se.exec_start = rq_clock_task(rq); > > +} Sorry about that. I updated them and will include the changes in the next iteration. Will test 32bit build too next time. Thanks. -- tejun