Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6395664ybp; Tue, 15 Oct 2019 14:23:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTtq5DK2QcJ3rpy/SmvRHgJXYmSFiQRt4OtACMDExeQgumQIIScRKaJlmH7rcXZDS5xvKy X-Received: by 2002:a05:6402:68b:: with SMTP id f11mr34808459edy.173.1571174634638; Tue, 15 Oct 2019 14:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571174634; cv=none; d=google.com; s=arc-20160816; b=wj3apMHtGdyn0pkkTCO0KK9eKajl3aXl/xMZ1idb7VtkeyqihdUAHNDGiouV4s3chB O808K7VakvYJw2qAKLqB7On5iEpBEM+fS+lZ73vVkT5loFeRd3qzuxSq5cmgmBZ3AriR bb3fSKQ7fO6F1EMDuOPgFBleTa0yToGEPLwtszhG8jewh9eFX15tWrF9UyGVm4WOtLTs h5fbjApYIIeFYonAsx372a7FU2oOF/EL6MAldw+69NoZV48sFxm/1IJ8DcJ/vXObNMww kaapwEqRtiwt4ls3iiyiRoh0socDI3VlnV38bKdvvenYBg0aKiYje/uHDLOTXwHkK6jC t5OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=0za/Sp4Qykw4QW51/H0d9M7C13yw8IHUmkWtTzYXed4=; b=1Loten/XG/AJlSWer3oQHPXCQfhyRZ7ku/n3Dproq1rPUfJye+i7hqaswE35f/Kh5i YS095YVsxHFvAerW2oFjWZFfl6yG+xuuBDKuAQJCbxIH9EBsYDspEP5TatDMl8llTVbh 0EIWI7RUKNeeociSCIN69E+4J2QeKR6cPI3x3V0eJ97G3OJqeNI6274z19g65diQRnHa m6h4gJcf073a55IkR96XOoMgUcjcfaKfg7Uxe0JAY8ttmScy/6i8igp2PFUWFqDc5A9i v4If9YKA0ySjbZb1/zMMk23kLRaa/WdqFyMb/UngmGRieDVJJXac48xni7hjdBTDdb+E V5wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VMmKiwez; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si15625961edj.448.2019.10.15.14.23.31; Tue, 15 Oct 2019 14:23:54 -0700 (PDT) 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=@google.com header.s=20161025 header.b=VMmKiwez; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730063AbfJOSLl (ORCPT + 99 others); Tue, 15 Oct 2019 14:11:41 -0400 Received: from mail-pg1-f175.google.com ([209.85.215.175]:40392 "EHLO mail-pg1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbfJOSLk (ORCPT ); Tue, 15 Oct 2019 14:11:40 -0400 Received: by mail-pg1-f175.google.com with SMTP id e13so4408868pga.7 for ; Tue, 15 Oct 2019 11:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0za/Sp4Qykw4QW51/H0d9M7C13yw8IHUmkWtTzYXed4=; b=VMmKiwezo3wfATGWffS9Sj68ypdRb4vEBPOvGMn7MGGOcQbnOAkXbVztO2NQGMzoJO YPZ5YpKlG2/tQLjWaXlryfMt/l/SH+kE8rvK4L6ocAO+A/ZxMmFeFRe1KdYZSwcvgpeH maasw7nZfvZGkCMsSglYvJAXnW2TqXI3ziNYlI5L7DkGrFNShEEirRIpbDdCKcB1MoKk g7UaGWlLWG6SInBMl5iDCvNrl2qqIzepqa8aZe6Jcpa77ap4QzpOYkHKhBAG0g3+s3lL i3ikKMjlVLlAFMOe4BbolGxDrrc4tWN10WL70e806SpXDWKQLWdTkGxV8q4Y3WKE0vC4 0Sjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0za/Sp4Qykw4QW51/H0d9M7C13yw8IHUmkWtTzYXed4=; b=IWAq/RyDjVGtOCoImJuFYolf+b0/k1kwfNovoYCHgIsymYE+/mLAHElfcelDeTJGJI yr0zoSlsxYp19u1J2V1X1M8v7y3Xbhw6C5WjFDL0MXot9170/0U0OOgX9JPknZwoj5SN OodwybborIXOYSGP62fPyjle9eueeXcYk55bT7/UxYFO0/n+rDrqESDklyOGklrQc7Sg pIVfezekSgx+Ooa8Au2LLSw7so8WP/YQ5mAa9T28E1N/k4OFgtOHnh36Rfp17Mf6htUt 1buwzLuxHRgNSK0gqFw2FXc6uVjXA1ffasDYCQYuKXsOytSNlFakOKJhdqw9TXR2kfiE bR0A== X-Gm-Message-State: APjAAAVotD6dXlAoc9b7HNr3k2V7b9NSFdTz1GgKBede0YidSqW6CH1e u+3Tc8/W+20OC8f4Z957VkiUhXASBwp/J87tbIHNwg== X-Received: by 2002:a65:464b:: with SMTP id k11mr22065858pgr.263.1571163099433; Tue, 15 Oct 2019 11:11:39 -0700 (PDT) MIME-Version: 1.0 References: <9e4d6378-5032-8521-13a9-d9d9519d07de@amd.com> In-Reply-To: From: Nick Desaulniers Date: Tue, 15 Oct 2019 11:11:28 -0700 Message-ID: Subject: Re: AMDGPU and 16B stack alignment To: Arnd Bergmann , "S, Shirish" Cc: "Wentland, Harry" , "Deucher, Alexander" , "yshuiv7@gmail.com" , "andrew.cooper3@citrix.com" , clang-built-linux , Matthias Kaehlcke , "S, Shirish" , "Zhou, David(ChunMing)" , "Koenig, Christian" , amd-gfx list , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 15, 2019 at 11:05 AM Nick Desaulniers wrote: > > On Tue, Oct 15, 2019 at 12:19 AM Arnd Bergmann wrote: > > > > On Tue, Oct 15, 2019 at 9:08 AM S, Shirish wrote: > > > On 10/15/2019 3:52 AM, Nick Desaulniers wrote: > > > > > My gcc build fails with below errors: > > > > > > dcn_calcs.c:1:0: error: -mpreferred-stack-boundary=3 is not between 4 and 12 > > > > > > dcn_calc_math.c:1:0: error: -mpreferred-stack-boundary=3 is not between 4 and 12 > > I was able to reproduce this failure on pre-7.1 versions of GCC. It > seems that when: > 1. code is using doubles > 2. setting -mpreferred-stack-boundary=3 -mno-sse2, ie. 8B stack alignment > than GCC produces that error: > https://godbolt.org/z/7T8nbH > Also, I suspect that very error solves the mystery of "why was 16B stack alignment ever specified?" -- Thanks, ~Nick Desaulniers