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 X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96139C433FE for ; Thu, 2 Sep 2021 18:01:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 61E0160F4B for ; Thu, 2 Sep 2021 18:01:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 61E0160F4B Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=keithp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=y/SCy+KtfDQREwUdJfDMbJysIRsgE2a5ksdhinK0BI8=; b=KrAZ2STIxA9pCcKMxgaf3B4t0V szFYto8wxr7nWHajl4wxUjHEo+wWaBsNwsaG2+AFhExp1juh2FCu48kw1UWGuLDh6eTf3a8U6fD+L OrBWyAFMhzqXJBruHxqDoTDABcsfUvI2sYHU/ssZ3wK670FgQ4BwQNQJdVq/MmjJM/GaJzAtCbhVX 8EPneHeK/Oxs1GDKvQq9IYGIucemmT9ZJqeu5LbSi/7T1IQffux72QuUjAG4Mgu0DI5qjZnLAQqBU wloaQnrbZPURDeuRc8xWYy2vTBoPr+Pe89OENGbWANysCxZlw8IzC+pPy96Zt0nVN4oYfTv8cQgZP zapiBmdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLqz9-00AErW-TB; Thu, 02 Sep 2021 17:58:48 +0000 Received: from home.keithp.com ([63.227.221.253] helo=elaine.keithp.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLqz2-00AEok-Bo for linux-arm-kernel@lists.infradead.org; Thu, 02 Sep 2021 17:58:43 +0000 Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id A49CB3F30805; Thu, 2 Sep 2021 10:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1630605495; bh=TYiDI4/h43REKTZqe6SThSKOMp9tdXU7h56KuM3s8uU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=HXr3afV3CIQ4pvhYRHMGCmFA9GlxeL+hMHgwJGdkhOpcXJ02iSnkFHz4JBxYeNoxb G+y543USj5pysieM+es1LpnCem7yr9rV0P932yyQs8pSt86gfdC6lQqMCh5l9YlCci YyJToSMdCQeh2pSQhinAGX6PJwcXBaWz4ud6+nLAJhy2kY/A0JkQ2IA2t29ud9z7x3 lQZ7+Jp3loWfJKVypsHTp9do3pPEG7jIyjBYRKm/Q3pDd3DsRRPN6xs768YvLYv/qS f1d7a/0E2RovDnXTB0+xzrfCDvuwpt00po+7STDfw80xmlMel239FeAVTMIiWLVmBZ liU9JM11/schA== X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id W0TBSWDwJTET; Thu, 2 Sep 2021 10:58:10 -0700 (PDT) Received: from keithp.com (168-103-156-98.tukw.qwest.net [168.103.156.98]) by elaine.keithp.com (Postfix) with ESMTPSA id C815A3F30803; Thu, 2 Sep 2021 10:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1630605490; bh=TYiDI4/h43REKTZqe6SThSKOMp9tdXU7h56KuM3s8uU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=hqPDiRun0rYLMssA2cdH5hnWaVPr3uROXZrwRL9eb/glrR+NIi7nYEMl6F+vebH57 QI8FUlLqvKQ3IkGAfwrQGpuMM64DfqCNrrku0ay8efhpP+WifI8NZLE803Kzo54mbp Jvdnk9KaRz/EJo/sTDa0XCHXj1E2BfjZdCVEBaGbMGafHcJGKw3vn3wGlOrjt2J2PM ku1g1ZuPmRcg5kS8NWo144W7v0FziGIDaJUw8BUhsrzBDd7r9K96OokIqhtMi+R+uN m9JCvHgqUtZw6ScytXmMsxP+4pqU3+CgpErBqpSxxNhradiRXvcugpjSDe4mCq4eNu CbjSm/ytGA85w== Received: by keithp.com (Postfix, from userid 1000) id 9D65B1E60119; Thu, 2 Sep 2021 10:58:32 -0700 (PDT) From: Keith Packard To: "Russell King (Oracle)" Cc: linux-kernel@vger.kernel.org, Abbott Liu , Alexander Sverdlin , Al Viro , Andrew Morton , Anshuman Khandual , Ard Biesheuvel , Arnd Bergmann , Bjorn Andersson , Florian Fainelli , Geert Uytterhoeven , Hartley Sweeten , Jens Axboe , Jian Cai , Joe Perches , Linus Walleij , linux-arm-kernel@lists.infradead.org, Maninder Singh , Manivannan Sadhasivam , Marc Zyngier , Masahiro Yamada , Mike Rapoport , Nick Desaulniers , Nick Desaulniers , Nicolas Pitre , Peter Zijlstra , Thomas Gleixner , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Valentin Schneider , Vaneet Narang , "Wolfram Sang (Renesas)" , YiFei Zhu Subject: RE: [PATCH 0/2]: ARM: Enable THREAD_INFO_IN_TASK In-Reply-To: <20210902165353.GI22278@shell.armlinux.org.uk> References: <20210902155429.3987201-1-keithp@keithp.com> <20210902165353.GI22278@shell.armlinux.org.uk> Date: Thu, 02 Sep 2021 10:58:32 -0700 Message-ID: <87a6kuhnav.fsf@keithp.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210902_105840_553583_23E28161 X-CRM114-Status: GOOD ( 15.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5197389491228194359==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5197389491228194359== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable "Russell King (Oracle)" writes: > I think you're introducing a circular dependency with this for > certain kernel configurations: > > E.g. Have you tried running this with CONFIG_CPU_V6 enabled? That's very useful feedback -- no, I hadn't ever tried this configuration (presumably the compiler would have complained). > #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) I've read through the v6 architecture reference manual (again) and cannot find any place to store either a per_cpu_offset or even a small processor id, which I didn't find surprising as I would have expected it to already be used for this purpose. I'll re-spin the changes making them conditional on !CONFIG_CPU_V6, unless someone has an idea of how to identify the current core in a multi-core ARMv6 system. =2D-=20 =2Dkeith --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAmExEMgACgkQ2yIaaQAA ABH/ug/9ELJJBXQv/84eOLswDo8KROwQ23CzASf0Nz0YaullHqpG6xKO/DYiFFvp 3EceURpqdgbIyLI/o9K8l9k//A2cTx62u3kB6JgYcJVouADBFZmcmUrgf1Aqb55i uK16O3iMOUbTcCp8Ye1A3IEKuqfUx/f6199pRh775JUwSbZdWXum3poOSwouxVcz G2C9bRYtbcO7u92O+CHCqXnnUDib39SnWyRs1eu31pYaHsqwNCBC+ECKn+zKi66f K1WKjth/X/+sUQLYQasf6HfvT+503dAl0NyxpjS0TknDPgXDtUU/+sOitxS9AY2/ fSzTHd3cXxIUWgr6gShvPVH1/hdtXk2oajADHBwXmRqdjCaZYXWGX1YzpWL0/sTv mEiiK05x0ORbgWBhjAiwzcqPGNdJkNsFOVr+zgABlwjRxfmn3Mr/7BgDWuEamgUe x/UMqlYJDYLAkOO6xedgiJ6MKvkVxS8r/yBx8kNHCKbqf1/5JewOFIExpYAnE9G1 VAbaEnV0DY6usJFg05zktEoIfMikBO388YjqOrWSKYN5R1GqCc63so71pfLI0lXx gbiPRuvWNW6+p/rvGP38r9ckS/e/BAQBOMV2bcIay153qEZvBpIq3N0sAmk1gKei K4k0jWVWtMT63NnYqUCYMly9CPntUy3+OPmY4dRvx9wrFoyD0QQ= =S1aA -----END PGP SIGNATURE----- --=-=-=-- --===============5197389491228194359== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5197389491228194359==-- 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 X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97E6EC433EF for ; Thu, 2 Sep 2021 17:58:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 699096109E for ; Thu, 2 Sep 2021 17:58:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346811AbhIBR7j (ORCPT ); Thu, 2 Sep 2021 13:59:39 -0400 Received: from home.keithp.com ([63.227.221.253]:54500 "EHLO elaine.keithp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346809AbhIBR7h (ORCPT ); Thu, 2 Sep 2021 13:59:37 -0400 Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id A49CB3F30805; Thu, 2 Sep 2021 10:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1630605495; bh=TYiDI4/h43REKTZqe6SThSKOMp9tdXU7h56KuM3s8uU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=HXr3afV3CIQ4pvhYRHMGCmFA9GlxeL+hMHgwJGdkhOpcXJ02iSnkFHz4JBxYeNoxb G+y543USj5pysieM+es1LpnCem7yr9rV0P932yyQs8pSt86gfdC6lQqMCh5l9YlCci YyJToSMdCQeh2pSQhinAGX6PJwcXBaWz4ud6+nLAJhy2kY/A0JkQ2IA2t29ud9z7x3 lQZ7+Jp3loWfJKVypsHTp9do3pPEG7jIyjBYRKm/Q3pDd3DsRRPN6xs768YvLYv/qS f1d7a/0E2RovDnXTB0+xzrfCDvuwpt00po+7STDfw80xmlMel239FeAVTMIiWLVmBZ liU9JM11/schA== X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id W0TBSWDwJTET; Thu, 2 Sep 2021 10:58:10 -0700 (PDT) Received: from keithp.com (168-103-156-98.tukw.qwest.net [168.103.156.98]) by elaine.keithp.com (Postfix) with ESMTPSA id C815A3F30803; Thu, 2 Sep 2021 10:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1630605490; bh=TYiDI4/h43REKTZqe6SThSKOMp9tdXU7h56KuM3s8uU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=hqPDiRun0rYLMssA2cdH5hnWaVPr3uROXZrwRL9eb/glrR+NIi7nYEMl6F+vebH57 QI8FUlLqvKQ3IkGAfwrQGpuMM64DfqCNrrku0ay8efhpP+WifI8NZLE803Kzo54mbp Jvdnk9KaRz/EJo/sTDa0XCHXj1E2BfjZdCVEBaGbMGafHcJGKw3vn3wGlOrjt2J2PM ku1g1ZuPmRcg5kS8NWo144W7v0FziGIDaJUw8BUhsrzBDd7r9K96OokIqhtMi+R+uN m9JCvHgqUtZw6ScytXmMsxP+4pqU3+CgpErBqpSxxNhradiRXvcugpjSDe4mCq4eNu CbjSm/ytGA85w== Received: by keithp.com (Postfix, from userid 1000) id 9D65B1E60119; Thu, 2 Sep 2021 10:58:32 -0700 (PDT) From: Keith Packard To: "Russell King (Oracle)" Cc: linux-kernel@vger.kernel.org, Abbott Liu , Alexander Sverdlin , Al Viro , Andrew Morton , Anshuman Khandual , Ard Biesheuvel , Arnd Bergmann , Bjorn Andersson , Florian Fainelli , Geert Uytterhoeven , Hartley Sweeten , Jens Axboe , Jian Cai , Joe Perches , Linus Walleij , linux-arm-kernel@lists.infradead.org, Maninder Singh , Manivannan Sadhasivam , Marc Zyngier , Masahiro Yamada , Mike Rapoport , Nick Desaulniers , Nick Desaulniers , Nicolas Pitre , Peter Zijlstra , Thomas Gleixner , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Valentin Schneider , Vaneet Narang , "Wolfram Sang (Renesas)" , YiFei Zhu Subject: RE: [PATCH 0/2]: ARM: Enable THREAD_INFO_IN_TASK In-Reply-To: <20210902165353.GI22278@shell.armlinux.org.uk> References: <20210902155429.3987201-1-keithp@keithp.com> <20210902165353.GI22278@shell.armlinux.org.uk> Date: Thu, 02 Sep 2021 10:58:32 -0700 Message-ID: <87a6kuhnav.fsf@keithp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable "Russell King (Oracle)" writes: > I think you're introducing a circular dependency with this for > certain kernel configurations: > > E.g. Have you tried running this with CONFIG_CPU_V6 enabled? That's very useful feedback -- no, I hadn't ever tried this configuration (presumably the compiler would have complained). > #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) I've read through the v6 architecture reference manual (again) and cannot find any place to store either a per_cpu_offset or even a small processor id, which I didn't find surprising as I would have expected it to already be used for this purpose. I'll re-spin the changes making them conditional on !CONFIG_CPU_V6, unless someone has an idea of how to identify the current core in a multi-core ARMv6 system. =2D-=20 =2Dkeith --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAmExEMgACgkQ2yIaaQAA ABH/ug/9ELJJBXQv/84eOLswDo8KROwQ23CzASf0Nz0YaullHqpG6xKO/DYiFFvp 3EceURpqdgbIyLI/o9K8l9k//A2cTx62u3kB6JgYcJVouADBFZmcmUrgf1Aqb55i uK16O3iMOUbTcCp8Ye1A3IEKuqfUx/f6199pRh775JUwSbZdWXum3poOSwouxVcz G2C9bRYtbcO7u92O+CHCqXnnUDib39SnWyRs1eu31pYaHsqwNCBC+ECKn+zKi66f K1WKjth/X/+sUQLYQasf6HfvT+503dAl0NyxpjS0TknDPgXDtUU/+sOitxS9AY2/ fSzTHd3cXxIUWgr6gShvPVH1/hdtXk2oajADHBwXmRqdjCaZYXWGX1YzpWL0/sTv mEiiK05x0ORbgWBhjAiwzcqPGNdJkNsFOVr+zgABlwjRxfmn3Mr/7BgDWuEamgUe x/UMqlYJDYLAkOO6xedgiJ6MKvkVxS8r/yBx8kNHCKbqf1/5JewOFIExpYAnE9G1 VAbaEnV0DY6usJFg05zktEoIfMikBO388YjqOrWSKYN5R1GqCc63so71pfLI0lXx gbiPRuvWNW6+p/rvGP38r9ckS/e/BAQBOMV2bcIay153qEZvBpIq3N0sAmk1gKei K4k0jWVWtMT63NnYqUCYMly9CPntUy3+OPmY4dRvx9wrFoyD0QQ= =S1aA -----END PGP SIGNATURE----- --=-=-=--