Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp499255ybl; Tue, 7 Jan 2020 09:46:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyn6yprfiRFp0MFQXCmSE2349HqNJGx/7hmVSDiohikcvgdSyosoNk3Ahm/2u8qK+/KlOxr X-Received: by 2002:aca:aa15:: with SMTP id t21mr562291oie.177.1578419187323; Tue, 07 Jan 2020 09:46:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578419187; cv=none; d=google.com; s=arc-20160816; b=zIaQic7epzHeRI9c+2/0rZz2Gm/64PWuvtlHVlwrgXgHlVKauTzeAlbFNrRgK7Q74A V362tXBO+bD+Ueyn37zoJXrmerHyGknyAgBOyi+iVpxilkVYYfy4/G0CxN1ThuP1m7aw AqOSrVuAEJ6551eo2VUGN3e6vEgClfD+N+6c6mF3Sy68QygnrYphr0umOGZtfY+jKSE+ JB8CWh5+jDArJt0+Ntppwkw1NEI8xwcKFnlTmzDcb+jQFOiOIF4txAlWEGVDRr4j+VXt +ahsuQri+tiPxsjxOlMbbAmHP2Uk+a8Lhezj/DKdkRhpMiha6Flkg20a1CvzjRb1b7rG nhng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FweMppTZUGsq/b/4cNpxP8+b+NaMUTucLDjSQ57JkkY=; b=jPvygYljM6ZPZHTyF0eF71EZqwuA/y/fThg+cFNn5HbycMLCu9YKCn5lY6EQpw5scX N+OgBApXWNj7MzGsa59UXY9gMJW987EiaELsyKxY0bWTzjC4wUHTJ2vqKKN0FUjvaGlx 4ptjZuuKoxDVKselmdpXPv3Dun91MTrHEmH0haBlxkwbzj0quM3G0MVyGItjiZIhtKHT AFphFEie7bG8oy2NpOtmL6U3IpmSU9TGUzJ6pmGpWyPchXe+cmJ8wO4n64FGM1zp0IBZ 20Qjebzkf1uefzVGE70OAkFc2g8it/FfBj46GcHUu+vAA6z42m/q6vYyLkZYAEN7JC2R x4bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="YbkRh/Jo"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i65si291971oif.15.2020.01.07.09.46.15; Tue, 07 Jan 2020 09:46:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="YbkRh/Jo"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728514AbgAGRpO (ORCPT + 99 others); Tue, 7 Jan 2020 12:45:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:35584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728325AbgAGRpO (ORCPT ); Tue, 7 Jan 2020 12:45:14 -0500 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 Cc: Amanieu d'Antras , Will Deacon , linux-kernel@vger.kernel.org, Christian Brauner , "# 3.4.x" , Linux ARM , keescook@chromium.org, linux-kselftest@vger.kernel.org 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200107090219.jl4py4u2zvofwnbh@wittgenstein> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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