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=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 6B359C33C9B for ; Tue, 7 Jan 2020 17:45:18 +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 442E4214D8 for ; Tue, 7 Jan 2020 17:45:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XTymYsAF"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="YbkRh/Jo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 442E4214D8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2CiLSnaQXNPJ8qXTq8SvEaqRMXehj7Zo67lSzJrl294=; b=XTymYsAFBwZ0+P r/xJcytRx/wEPooglGR1ZtwN/5IWu6nYH77dtRJGAJWX0NNIKBWhEZ7g/DyEIlm2afKPZckX9EBT2 /bD/vzqS29b4GKGq928erdWn+S+U0dRdoH2wpHGAhNp0+ypCv+Yq9Ntdv9RVDTBo3piSp5Kwd99bB lMvuKrSykZlFI7/shgiM6xQoPoS1B+a76otMy5L2anOPc9bIwfVsXvc3Zv4bXkOpxi2INaVxsIBg4 Ydz+nUD+Qx29K92FDfhmHGzooCF1alOVt+hwZkBsAVbhlErjSbPp78Tj/O/BEziFiBx8HuqLpZQj6 uZcoXVOUzYOSv8oQF64A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iosur-0005hQ-L0; Tue, 07 Jan 2020 17:45:17 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iosuo-0005gd-N0 for linux-arm-kernel@lists.infradead.org; Tue, 07 Jan 2020 17:45:15 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7AD992087F; Tue, 7 Jan 2020 17:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578419114; bh=M513xx9aW4iTXzxgBQtHXhndgn/SODuepiJRUK+eM7I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YbkRh/JoQJSbTUir4FFdQGp2dTetaYhozBWn1KLHijLhjGocJSnXGTWmIXpssfckn LKfYzP3x4Sa4MC3IMDOShFVS85iurs1AZtc2GpxehTzUHVG32MTJbf1okn+fAtFII6 kX0aRor1c/IMgN9KHEVY1m4OXGNi5jBEo0ArixDE= Date: Tue, 7 Jan 2020 17:45:09 +0000 From: Will Deacon To: Christian Brauner Subject: Re: [PATCH 2/7] arm64: Implement copy_thread_tls Message-ID: <20200107174508.GC32009@willie-the-truck> References: <20200102172413.654385-1-amanieu@gmail.com> <20200102172413.654385-3-amanieu@gmail.com> <20200102180130.hmpipoiiu3zsl2d6@wittgenstein> <20200106173953.GB9676@willie-the-truck> <20200107090219.jl4py4u2zvofwnbh@wittgenstein> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200107090219.jl4py4u2zvofwnbh@wittgenstein> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200107_094514_771671_6D0EBF67 X-CRM114-Status: GOOD ( 15.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amanieu d'Antras , keescook@chromium.org, Will Deacon , linux-kernel@vger.kernel.org, "# 3.4.x" , Christian Brauner , linux-kselftest@vger.kernel.org, Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jan 07, 2020 at 10:02:27AM +0100, Christian Brauner wrote: > [Cc Kees in case he knows something about where arch specific tests live > or whether we have a framework for this] > > On Mon, Jan 06, 2020 at 07:03:32PM +0100, Amanieu d'Antras wrote: > > On Mon, Jan 6, 2020 at 6:39 PM Will Deacon wrote: > > > I also ran the native and compat selftests but, unfortunately, they all > > > pass even without this patch. Do you reckon it would be possible to update > > > them to check the tls pointer? > > > > Here's the program I used for testing on arm64. I considered adding it > > to the selftests but there is no portable way of reading the TLS > > register on all architectures. > > I'm not saying you need to do this right now. Agreed, these patches should be merged in their current state and my ack stands for that. > It feels like we must've run into the "this is architecture > specific"-and-we-want-to-test-this issue before... Do we have a place > where architecture specific selftests live? For arch-specific selftests there are tools/testing/selftests/$ARCH directories, although in this case maybe it's better to have an #ifdef in a header so that architectures with __builtin_thread_pointer can use that. Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel