Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2662692pxb; Tue, 21 Sep 2021 05:07:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwocPxBqVz2udO0DnDWbtVC9ttWsEx1X0vUY52D16NA+K8jsE6AGd6jAxDhG2BdznYHIh5U X-Received: by 2002:a92:cd8c:: with SMTP id r12mr13889258ilb.164.1632226066936; Tue, 21 Sep 2021 05:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632226066; cv=none; d=google.com; s=arc-20160816; b=Gk0crpDXNXApN5XUy5sns4s6BcmgUbFVwcV1POR88HaKlGzw/qkOWwNNxqrIwVck7Y 7SkZCIXrIAjJcKEI1y5txIWtz5eGw/6as6081FAI59fQiGOF1+ksERTQYx7hKHTdoNbD 3YZO9ZTlii7y+wfxaU8CntejoDargclc8BnXSIEIHpnxlSzDumMkC5KKWMO88DQiKzzi qsizzItzNcRmUypIV7Gwt6CTKStopQKhuaqjn3wydPTW9p+ZjmsjqOMM8UN/fpzdeHM4 ihyWroUB+cjdCPOHkyh5vsKPil12kYphlwqUgzs+osjOanPP+cNPgrcOY+SAY82YMKHS YV+Q== 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=qnWTodEwspkSMdWf5XON5Ep7daBqF5kbGbudj8UJ3BM=; b=eqUDF1rpGGsh7AHtiG9jdTqSBokkx9ICx9nffxE9ynrZpMpiPlco9aQ8sQ56T0mh06 gwIYsSyO/jpi8Qk+KCv3Y2slIT+kaGyQXh2NDBe6PMSNPX/66u3xyFoL99UGlO3R6HK3 BIBxDpKMXM2e9yBh6w7U8rvc63H+RG+ZHsjPBO+YrZUfJhul3OPMODwW8EV+uKueLiIs gdcMhiLLspoWET4Jrmcpt9fKo2biMcIqxi59aS6DpQPDZpBMAWhX42QLVthDImbLyJlS WKPa+KJ/BHULck5WpPni/QH4mDZAL+eHqlSHyTJAPf2Zf0CoWApuHMzyAdQhaOex2n7W LDuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AqKDYakb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 138si462247iob.37.2021.09.21.05.07.31; Tue, 21 Sep 2021 05:07:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AqKDYakb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231532AbhIUMIF (ORCPT + 99 others); Tue, 21 Sep 2021 08:08:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:59888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230160AbhIUMIE (ORCPT ); Tue, 21 Sep 2021 08:08:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6E0A66126A; Tue, 21 Sep 2021 12:06:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632225996; bh=qnWTodEwspkSMdWf5XON5Ep7daBqF5kbGbudj8UJ3BM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AqKDYakbUVbx323nFcNrRgWy01h3JK7NhWkadTqGI2CjV4jpJ1GWL97jA4orZZzAH XUIZuG5H+2+GtcxT5b2qT+uCdJa7SEBUN2LigkTvwpHm7xnqlCzrWXVM4zyiq3d/fy pD1nF0rp8CyvUG8OxbFloC/QGB8iJDTbLHhlyh1yg4dno4mfgMgHOPm0GhTCh9IqnV 9tqnYqbdFGteLVIQUlEGX6b9nEcp+XzfpWgphtvwG4SzxpsYDwDvkga0iA1YGPeLBf GAK6jZeK0iVdleRljCp+OCFHp6MUXO3a9TxpP/52YLnqnnecas2EICZcztf8Kn6jUT 2qHogEKNYd3qQ== Received: by mail-oi1-f172.google.com with SMTP id s69so21824002oie.13; Tue, 21 Sep 2021 05:06:36 -0700 (PDT) X-Gm-Message-State: AOAM532QWmGJ1HlvITAHiOoLhkNvjLJmlCuTLB6UpRKl+LeD1yTgJgm0 uydPRnPnJsZlE9aD6TqmOiK1gEexDmXcUm3T+GI= X-Received: by 2002:a05:6808:1148:: with SMTP id u8mr1242229oiu.33.1632225995730; Tue, 21 Sep 2021 05:06:35 -0700 (PDT) MIME-Version: 1.0 References: <20210914121036.3975026-1-ardb@kernel.org> <20210914135527.GC30247@C02TD0UTHF1T.local> In-Reply-To: <20210914135527.GC30247@C02TD0UTHF1T.local> From: Ard Biesheuvel Date: Tue, 21 Sep 2021 14:06:24 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 0/8] Move task_struct::cpu back into thread_info To: Mark Rutland , Michael Ellerman , Benjamin Herrenschmidt , Palmer Dabbelt , Paul Walmsley , Albert Ou , Heiko Carstens , Paul Mackerras , Borislav Petkov , Peter Zijlstra , Thomas Gleixner , Christian Borntraeger , Vasily Gorbik , Ingo Molnar Cc: Linux Kernel Mailing List , Keith Packard , Russell King , Catalin Marinas , Will Deacon , Christophe Leroy , Kees Cook , Andy Lutomirski , Linus Torvalds , Arnd Bergmann , Linux ARM , "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , linux-riscv , "open list:S390" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Sept 2021 at 15:55, Mark Rutland wrote: > > On Tue, Sep 14, 2021 at 02:10:28PM +0200, Ard Biesheuvel wrote: > > Commit c65eacbe290b ("sched/core: Allow putting thread_info into > > task_struct") mentions that, along with moving thread_info into > > task_struct, the cpu field is moved out of the former into the latter, > > but does not explain why. > > From what I recall of talking to Andy around that time, when converting > arm64 over, the theory was that over time we'd move more and more out of > thread_info and into task_struct or thread_struct, until task_struct > supplanted thread_info entirely, and that all became generic. > > I think the key gain there was making things more *generic*, and there > are other ways we could do that in future without moving more into > task_struct (e.g. with a geenric thread_info and arch_thread_info inside > that). > > With that in mind, and given the diffstat, I think this is worthwhile. > > FWIW, for the series: > > Acked-by: Mark Rutland > Thanks. Any comments on this from the various arch maintainers? Especially power, as Christophe seems happy with this but there are 3 different patches affecting power that need a maintainer ack.