Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3726187ybt; Tue, 23 Jun 2020 09:14:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeVbpPAOFUtSSWTOoemUP/SqbTF8EFJYXja6SOo/QpHL4z19kjrdSX170nO9gdMC2dwrqE X-Received: by 2002:a50:ee93:: with SMTP id f19mr21817347edr.256.1592928865138; Tue, 23 Jun 2020 09:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592928865; cv=none; d=google.com; s=arc-20160816; b=eOCeUhIh4xkXL0ymyaNFSAn0vAoP20kfl2ewknn4rSVKD0kDL4YUeNW67zTtnetaZ+ nR7eBH86GnSWiam0uT7WlTRMRiV9QecUX34AZjVE9O/uYRepOCeqie8KQVHiUn+H52lW XREw71MTJk3jx5Ffj/nW299Hr0Q5PPA99lxZx/BP/xBhmpK9oO1M9wR8H1fsd9Ml51Vg GgGuVHfr7KKJNPQcCrMgkQRRrLUBhuUp3tByt0eMBYjvgA4GRnpzPsUeu3ILlySpMi2P AhtYVRHZbHZKM1YEhU+u89OiKq+YISu0k2FlmK15dQvax1FMsNouqf0EsiM/N8AdTvFu YlAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:reply-to:dmarc-filter :dkim-signature; bh=tpu3koTLioptT4rbuRuixAw5FvFwl/Ar2ZGPQtaJuds=; b=dEwt1h8cG6qbgDbTfzuE9Fasyps6ztKciJ+axOLN2KCvCwmc6E/eLQ5VcxtTRd+uwY 9TdLqWm0nOG/8h/zskRCpvNmeMRkw5GAfcsU5AQVPR5lbmxIZLGFoAuvoYE5bBfq8WRC wwMeD56y5oG/JdDgNMSjagiVQS0vQPz6QeHCJI/SWVNmOXjyh6fRliErWNtsA7oKX2bu WS+Im50PcWDYEgWb6+/KrWg8mo/5kOVILuCBFRnQpjxzuXhIxQ5rzauPA0YzVH22lMN3 CealMkKrVUwfTjrubWCWDT6irHKqqOJRzv84vb/RJkkvH3RF6uq6xYJRAV5IamIy4qaA iPng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=kgyHKYH+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id md3si11678093ejb.206.2020.06.23.09.14.01; Tue, 23 Jun 2020 09:14:25 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=kgyHKYH+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732312AbgFWQMN (ORCPT + 99 others); Tue, 23 Jun 2020 12:12:13 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:47920 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728916AbgFWQMM (ORCPT ); Tue, 23 Jun 2020 12:12:12 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592928732; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: In-Reply-To: References: Cc: To: From: Reply-To: Sender; bh=tpu3koTLioptT4rbuRuixAw5FvFwl/Ar2ZGPQtaJuds=; b=kgyHKYH+dbE973OMmJOgxjlEYM46qO8kiD+2UznxXkvdjFYV32X+6NkvL96ktlltwhx8a/tm pnFSVUByeSzRjDxabF1SaNGXQP/bJnW38nHwRElx1JsDG2K4RUxrbTlK2sN/a3B5ycoQQz9K Z9kmeR+QRn9MWqiEy31eTu4bgD4= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 5ef229bb3a8a8b20b8e2f66e (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 23 Jun 2020 16:11:39 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5B052C43391; Tue, 23 Jun 2020 16:11:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from BCAIN (104-54-226-75.lightspeed.austtx.sbcglobal.net [104.54.226.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bcain) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5DBDEC433C6; Tue, 23 Jun 2020 16:11:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5DBDEC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=bcain@codeaurora.org Reply-To: From: "Brian Cain" To: "'Christian Brauner'" , Cc: "'Linus Torvalds'" , References: <20200622234326.906346-1-christian.brauner@ubuntu.com> <20200622234326.906346-12-christian.brauner@ubuntu.com> In-Reply-To: <20200622234326.906346-12-christian.brauner@ubuntu.com> Subject: RE: [PATCH 11/17] hexagon: switch to copy_thread_tls() Date: Tue, 23 Jun 2020 11:11:37 -0500 Message-ID: <14e701d64978$f9a2af60$ece80e20$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHblW6eodCfbmmuDWKuTMw/1BiW7AJ/OGz0qMfM2cA= Content-Language: en-us Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ... > Cc: Brian Cain > Cc: linux-hexagon@vger.kernel.org > Signed-off-by: Christian Brauner > --- > arch/hexagon/Kconfig | 1 + > arch/hexagon/kernel/process.c | 6 +++--- > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig index > 667cfc511cf9..19bc2f2ee331 100644 > --- a/arch/hexagon/Kconfig > +++ b/arch/hexagon/Kconfig > @@ -31,6 +31,7 @@ config HEXAGON > select GENERIC_CLOCKEVENTS_BROADCAST > select MODULES_USE_ELF_RELA > select GENERIC_CPU_DEVICES > + select HAVE_COPY_THREAD_TLS > help > Qualcomm Hexagon is a processor architecture designed for high > performance and low power across a wide variety of applications. > diff --git a/arch/hexagon/kernel/process.c b/arch/hexagon/kernel/process.c > index ac07f5f4b76b..d756f9556dd7 100644 > --- a/arch/hexagon/kernel/process.c > +++ b/arch/hexagon/kernel/process.c > @@ -50,8 +50,8 @@ void arch_cpu_idle(void) > /* > * Copy architecture-specific thread state > */ > -int copy_thread(unsigned long clone_flags, unsigned long usp, > - unsigned long arg, struct task_struct *p) > +int copy_thread_tls(unsigned long clone_flags, unsigned long usp, > + unsigned long arg, struct task_struct *p, unsigned long tls) > { > struct thread_info *ti = task_thread_info(p); > struct hexagon_switch_stack *ss; > @@ -100,7 +100,7 @@ int copy_thread(unsigned long clone_flags, unsigned > long usp, > * ugp is used to provide TLS support. > */ > if (clone_flags & CLONE_SETTLS) > - childregs->ugp = childregs->r04; > + childregs->ugp = tls; > > /* > * Parent sees new pid -- not necessary, not even possible at > -- > 2.27.0 Acked-by: Brian Cain