Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp26199pxj; Thu, 10 Jun 2021 13:45:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQD5NQ/N5PRux4KttjLsPzENLeCzaaP+Vrjhn2FRAhlY/u+LR1gIwj3G+529YjFladCWof X-Received: by 2002:a05:6402:2789:: with SMTP id b9mr205946ede.142.1623357909006; Thu, 10 Jun 2021 13:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623357909; cv=none; d=google.com; s=arc-20160816; b=um/Si3Gt0rYuPnCXRlCvhvQWxz1LqsjG11+S0lBBj67NyeN3np7FINSAnP4LZIKaDf fhDxwTizUXKfjrLVY82HniM5FFEvsOXqc94tcGDXu6hlKLSiUwPc2PBiQYZLsg/4tk+A SNfoUgaEPwBd6Mb2RyBFZNhaBSduDJiq6JL0jBqFLiLsWdl88JAVKEyK54HmuvB4PIWO uGzZAKYtYpOFmX5czEaGmNhpAj0sfu7GOyqzJZN0oqBca3DxAJmpo8WX/MHt92ar1y+g LGjRZmZnKds3zUIL9EpaY1Vk78Zdl5i7tJTpIn2cFX7F7ajFR2d1QA5EN8zRh1lkuDW4 9n6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=HBYg/vbSIQux9BrKZxnk8PJi+hdQi3UK1NlAmeoACPY=; b=BAZYpM4sBlQZFBTlRMlS2Rs4ZvHRw0Jf1C5kFYjtYstAUh/BXrlglgQHcSMEhB7BZM x7t19izw/BdiNimky9bVApbKK6XbNQmE1lA8m4NrwYrrIsWwnYtboNP+yppmtzFuy9ME CAKimoaLjc8OQAA2QdtsSsF5NTB50FKB70U1hXlz742GYoFvrB4J8MbbfvcT2X7z/0I7 dayK+YNxGZG+108zSPwLQ9L3Mp7vrDrACw55s1+UX8CwUWWq3Ln/RTn3BZ5xLKHFqkcU unY2lKvrJtgt2Itjitjuc3kQM06MwF5DpZgYMOQMPMcopb7Y6yO1XiQe5YDn1X4gfaDx 7kVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T0SkyKAM; 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 j7si3677820ejm.492.2021.06.10.13.44.45; Thu, 10 Jun 2021 13:45:08 -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=T0SkyKAM; 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 S230427AbhFJUmQ (ORCPT + 99 others); Thu, 10 Jun 2021 16:42:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:39560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230211AbhFJUmH (ORCPT ); Thu, 10 Jun 2021 16:42:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 21D3F61429; Thu, 10 Jun 2021 20:40:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623357608; bh=cfPlMTfGXZjzDSIMKaRDT3uPARbvwJpdNQB661xjaDE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=T0SkyKAMumx70GptKP1ts1upsmUgHa2WyIbP+37ju/tIa3qR/yyFju5IcV+1nNcDa zl0hCC7wDd6dDdkCaz3Asouv/+xfL/gHZ55l+vpJkoF9YDn5VAog1zG+AHMexfDPJy QgKfvcbDzg9YkExqbJosGyPfSz/GSPyI9CnRTITFrBEn03Q78n6mlXL6uAX1KTCI4P BnRLHtj1LcxWo4Gp4VoyjLg1KXSrjX3Cud5g5Vj+CjT04us9gCnOEvtdWg+VgHSv6/ vR8JQ/dwSNh0hMceMuhcetqxz9ii1VYQlg3N3pO4cy/RPdDdvTNzJD8/mAOansQehr qbvB94MBMLItA== Subject: Re: [PATCH] x86/Makefile: make -stack-alignment conditional on LLD < 13.0.0 To: Tor Vic , Nick Desaulniers Cc: "linux-kernel@vger.kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "stable@vger.kernel.org" , "clang-built-linux@googlegroups.com" , "x86@kernel.org" References: <214134496.67043.1623317284090@office.mailbox.org> <156d8beb-2644-8c2b-789b-104cf9268c8a@mailbox.org> From: Nathan Chancellor Message-ID: <3e245a20-9e5b-9122-7add-11f6eed46ca1@kernel.org> Date: Thu, 10 Jun 2021 13:40:07 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <156d8beb-2644-8c2b-789b-104cf9268c8a@mailbox.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/10/2021 1:16 PM, Tor Vic wrote: > > > On 10.06.21 19:20, Nick Desaulniers wrote: >> On Thu, Jun 10, 2021 at 2:28 AM wrote: >>> >>> Since LLVM commit 3787ee4, the '-stack-alignment' flag has been dropped [1], >>> leading to the following error message when building a LTO kernel with >>> Clang-13 and LLD-13: >>> >>> ld.lld: error: -plugin-opt=-: ld.lld: Unknown command line argument >>> '-stack-alignment=8'. Try 'ld.lld --help' >>> ld.lld: Did you mean '--stackrealign=8'? >>> >>> It also appears that the '-code-model' flag is not necessary anymore starting >>> with LLVM-9 [2]. >>> >>> Drop '-code-model' and make '-stack-alignment' conditional on LLD < 13.0.0. >> >> Please include this additional context in v2: >> ``` >> These flags were necessary because these flags were not encoded in the >> IR properly, so the link would restart optimizations without them. Now >> there are properly encoded in the IR, and these flags exposing >> implementation details are no longer necessary. >> ``` >> That way it doesn't sound like we're not using an 8B stack alignment >> on x86; we very much are so; AMDGPU GPFs without it! >> > > Will do so. > Does this have to be a v2 (with a "changes from v1" info) or just a > resend? It is based on mainline now and the line numbers have changed. Yes, this should be a v2 because the commit message changed. It would be considered a resend if nothing changed and the patch just needed to be picked up rather than re-reviewed. Cheers, Nathan