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 B6B05C38142 for ; Tue, 31 Jan 2023 22:17:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbjAaWRc (ORCPT ); Tue, 31 Jan 2023 17:17:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjAaWR2 (ORCPT ); Tue, 31 Jan 2023 17:17:28 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AB45460BA; Tue, 31 Jan 2023 14:17:27 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 119C1B81EB5; Tue, 31 Jan 2023 22:17:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 072CBC433EF; Tue, 31 Jan 2023 22:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675203444; bh=PJSvYLHcRpS9dbzIMih0FP+oXT/wdW6kY7rfhEtLzKA=; h=From:To:Cc:Subject:Date:From; b=Ygi679fQSEyO7ZcNdesDQOCNvrDlqqi9yDKz0+2k+46LCplrJWbu3qpXPqlXlDrJG QY8NBhs15zL+jPwDO0nUDIOp+boS9DL3iHtCvLm7tMJhdw90KfyR/OJVb/HPVsrGtU 8Ple7yv1+7V3P84CupQNlbh4jk5O+fFai9HoF0qEUQaaG0e94OfCG9D5GxC9d4SIGu lxHe3tEjzeARnmfifNmlcwkk7chXl4elUZsJg25f9dmss5Ec/GM7zWMdwjQaTM7LxJ ORI4ojxwz/tDR6G3fmco+u6Nf+tOIZ9mLTlzAnjoRVSwU/SzfAnJ5aK7vzthufb2A8 F/6OV29psiVEQ== From: Will Deacon To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, Will Deacon , Peter Zijlstra , Waiman Long , Zefan Li , Tejun Heo , Johannes Weiner , cgroups@vger.kernel.org Subject: [PATCH 0/2] Fix broken cpuset affinity handling on heterogeneous systems Date: Tue, 31 Jan 2023 22:17:17 +0000 Message-Id: <20230131221719.3176-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, These two patches fix a couple of CPU affinity issues involving cpusets on heterogeneous systems. A concrete example of this is running 32-bit tasks on recent arm64 SoCs, where some of the cores are only capable of 64-bit execution. The first patch (from Peter) fixes a regression introduced during the recent merge window which is causing test failures in Android where the problematic patches have been backported. The second patch fixes a longer-standing issue, which I noticed while testing fixes for the initial regression. Ideally, both of these would land together, but fixing the regression for 6.2 is my main concern. Anyway, I don't think either Peter or I would call ourselves cpuset experts (far from it!), so please have a look. Cheers, Will Cc: Peter Zijlstra Cc: Waiman Long Cc: Zefan Li Cc: Tejun Heo Cc: Johannes Weiner Cc: cgroups@vger.kernel.org --->8 Peter Zijlstra (1): cpuset: Fix cpuset_cpus_allowed() to not filter offline CPUs Will Deacon (1): cpuset: Call set_cpus_allowed_ptr() with appropriate mask for task kernel/cgroup/cpuset.c | 57 +++++++++++++++++++++++++++++++++--------- 1 file changed, 45 insertions(+), 12 deletions(-) -- 2.39.1.456.gfc5497dd1b-goog