Received: by 10.223.176.5 with SMTP id f5csp915869wra; Fri, 2 Feb 2018 08:10:34 -0800 (PST) X-Google-Smtp-Source: AH8x224auHqAKmSBT3ARgDDKU+XSDRKEWqMZ43vhtnPvyvR7BvbSQYT/86r8GKkdXXZWCrjfWkNO X-Received: by 2002:a17:902:4523:: with SMTP id m32-v6mr27148851pld.449.1517587834206; Fri, 02 Feb 2018 08:10:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517587834; cv=none; d=google.com; s=arc-20160816; b=z7basWWsrv3LZOWq4tps33JU8XrJE0vYUvAz5ytre3dKQtrIJcF/pw4pSQEr1bxXgD 5plgpENaDhtA1J3qJZlWdykB/K5+fc0KxDpw+Je5H6Z+Z00U9I2QWHy2SyEAlVmlCdqT m6zfThq5xkwMGOrZF24ll6zrr4m6bDlObqA32uIMSgNcVycu6fd4lXl1cTFUcUbz/GeB Nuj1e8ooZ0DgqVrpBQ2vvTUhR+Fx7N/HChBcfP+Ijl2X0H6fIwPAjA2mQhAWt8n0Hj5j 9mD3pofv0h41coM7FWrw11EisZ1rSrZJlJ4v+QCP7j+1v0LxoB5q4TRGFhLUosVDs+Kj CVdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=V59HWH3c6G4PJC/2qMdRwNuA5Kd8iHNu0yfqXyLpK5k=; b=YXVtL0EOWqx+CY9m7o8ME0xhtkN3lmqiCbQJnXv65AfiVlGdA6lUZJPPvBBMXU7M+q REa8je9lvFPmQ7PMsb5eLHUsfY5AjqrfCt/8FwQgcJHRR3pKntlb+qa6Po/E5tgNRmfk zYhnDUK8hotlx80uDTuP+pYJCsMExRzrIztiEhjRDTuYvQEd8wl0Ol5dsujKm0qn4fVX siuLbmgUyG56Q7iP16upwJsWZo1jnl122H9TEhIZaTMYobQVTNqufWrCnM//tvkdEWSt zro6h/+vBzr8tGWxTsBMUXYxmCq6vhrHzWp91+jznNv1RGZGkW9X7v+8UmZ06qU7jTmE znCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=KUdDD32u; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c129si1999111pfa.362.2018.02.02.08.10.18; Fri, 02 Feb 2018 08:10:34 -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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=KUdDD32u; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752072AbeBBQIS (ORCPT + 99 others); Fri, 2 Feb 2018 11:08:18 -0500 Received: from mail-cys01nam02on0087.outbound.protection.outlook.com ([104.47.37.87]:21640 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751655AbeBBQIM (ORCPT ); Fri, 2 Feb 2018 11:08:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=V59HWH3c6G4PJC/2qMdRwNuA5Kd8iHNu0yfqXyLpK5k=; b=KUdDD32uH++KzWDirdJ7Jf3+Yy0ReJQ19HLITBKp5/NIZjpsVb7DG9Hy2JOsYAa1PZ5oeO/lBbmb4fKx1dsz/8kpFLtBwuuUhA25sysuGQ83x3wNo60nNmjc46mJPGH1Z5NExIfhg0SNVh5lGfExsz+f7w7emOcMxDDRXOcROjM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Harry.Wentland@amd.com; Received: from [172.29.157.161] (165.204.55.250) by MWHPR1201MB2477.namprd12.prod.outlook.com (10.172.95.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Fri, 2 Feb 2018 16:08:09 +0000 Subject: Re: [PATCH] drm/amd/display: fix incompatible structure layouts To: Arnd Bergmann Cc: Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "David (ChunMing) Zhou" , David Airlie , Linux Kernel Mailing List , amd-gfx@lists.freedesktop.org, dri-devel References: <20180202123232.477388-1-arnd@arndb.de> <5307dea1-61f6-2c7b-75db-4e1a0885de30@amd.com> From: Harry Wentland Message-ID: <0e880a52-768e-c476-84a5-3e9638b62f1b@amd.com> Date: Fri, 2 Feb 2018 11:08:03 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.55.250] X-ClientProxiedBy: SN4PR0601CA0004.namprd06.prod.outlook.com (10.162.115.142) To MWHPR1201MB2477.namprd12.prod.outlook.com (10.172.95.135) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 62a1d090-cfbc-469c-afe0-08d56a5727a3 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:MWHPR1201MB2477; X-Microsoft-Exchange-Diagnostics: 1;MW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dkm5EMdfvX9IrkhRQZWqT/GRD2cmWqVMyk3eTTQ2HeWDfkVHnocOR2LY98Q3JLnBC32lyh+EcVeJbWBvpKIcJfAhzWcFSwvv9QrfUeItxMchRNaFYoTKYMA/8FXNAFv68JGKcWSqJSFv53qS/5I788AmOGedR3Y7YhRRDKUtTRnPk6NfxcWS7DtDRdHg7KqLGxBU0ebn05cEXjJdEew2d+KuipX1wiH7lbD1fIz9mU2IFpNqKq50N+locAIH64v+CEmTOpxaNZdEAaZr4JzpjD7N4vAxgV5PM/GjiX52kgIdfNlGKrC7+qEOQgwFTVXHhpVEDSy/HWmR+K/qUYJbl8TVNpfxdV9HzQC;4:JPE4HfQmD5vJj/wS4gGlXAwO2OrvWpcWapLZ5quqRl+q29na0dENvThR35N0wr97jD6n1oRmKC/Ly9SPi7PXYGiAyEDWKHMTGKkxJRtjEzm1s7qZ7czq8Ii4PAI9EJXcfH4ir9yMFGcyF3OzhPcNdA3BEJJ6n49kqiUWpqVq52WM7RYR12fvlymopb5nDF48ftLXHhJZnD1Ys6OT9dQUn9ISdGOOWoUzq8+OHk4JBt71VwPBIZBRbzmBFywzGRuoTUmKFQwlobndk/QztmeUSlX5c1J9wXI36cKP2kgh/JKZYy7coL1FFKZCppkf/RSn X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(3231101)(2400082)(944501161)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041288)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:MWHPR1201MB2477;BCL:0;PCL:0;RULEID:;SRVR:MWHPR1201MB2477; X-Forefront-PRVS: 05715BE7FD X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(346002)(366004)(396003)(39860400002)(376002)(39380400002)(199004)(189003)(11905935001)(377424004)(58126008)(68736007)(47776003)(86362001)(54906003)(316002)(52116002)(186003)(229853002)(230700001)(83506002)(106356001)(31696002)(25786009)(26005)(16576012)(105586002)(97736004)(77096007)(66066001)(36756003)(2486003)(52146003)(386003)(23676004)(53546011)(65956001)(76176011)(478600001)(16526019)(65806001)(64126003)(4326008)(6306002)(8936002)(6116002)(3846002)(6916009)(72206003)(50466002)(5660300001)(65826007)(53936002)(8676002)(6666003)(81156014)(81166006)(2950100002)(966005)(2906002)(31686004)(7736002)(90366009)(305945005)(6486002)(6246003);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR1201MB2477;H:[172.29.157.161];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjEyMDFNQjI0Nzc7MjM6SURNUjkxZ0pKWTFhenBFeXVRS0NSVXU5?= =?utf-8?B?ZkFOOGZWeW1BMERDZVBWVk91WkNjaTAxOU9SeUxWWEcwZ1lnUHYybzJYS0ZH?= =?utf-8?B?bmNxZnU4bjloM0xuTE95V0xkbWxqcFdzUjdkNU5hVkFTclVnZlY4a2lLc0RZ?= =?utf-8?B?eFQyQzR1eDdpRHR0bTBNNStKSlh4akJrK1RrVWlyQkFEc2JPMlVGQ1o4Q3k5?= =?utf-8?B?VmluQ2o0elFIb1J1c0krNUxmRC83OXBLOVpxL09pWGdoM0UvejRHMVJGTmNL?= =?utf-8?B?RFJCRU1ML2VzZGRrYnF1S0ZUR2NrK1J2b1kyeUF1cktRVmM0YjNQLzVXVjlC?= =?utf-8?B?aHNCWXEzWmN6cHMraXhxZXh0aTdGaVRyTTdCZkM2L0FTSyswWVFNVlh3a2F5?= =?utf-8?B?aHJ4WFlQSCsrbmdUTkp3Ym1WU21nZWo0QzFmUnhTTVdwellFYUJOQXpVSTB4?= =?utf-8?B?SnloRTdkeG1IbUZzRXYyZnVnMXgwOFo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cWEjdDYtB5eB/N6Ok9L7LPumqmbDm3WOkD/GTaPQXCx76PMPOxGjrP7tnUm/5Zc24WARHUA5H++dcapODHzia81e4TLZzbPo8z5MVhQoYWo0oe68ap3f67EKiLtnmP7V3jQRXzRA5NjO2FGFM8kU=;5:say6vJBxjWD3AQfwy3sqpLgprmlp66VN/pq8e6L7xw4YNB5Yw+/PmO3cHna1QsW1E7J1V+hXrU0tWUNS4mrLjMcP0cez1b9RzzdK4B5uJ5nCgn8BtMhWDGtDITkNK0x3w0KRfhXt3V1sxyA25Sugayfo8ThO7IRJEvXBXOa4XQE=;24:LX9dKxmi6Y9SDTQhwd7tz1BAvf5gbN3A8lQ5XoXdrtjPnHgCkiScvzywnX/ws9OOa/EeCwkKNHnJm7LOgyNz9vmu4szwI6tiBDnZA0zEkAY=;7:+1oINAnyW+kL869Ip7UIjeuTOHE4VyOuOzTkSgbhM9i/+TkxXES/ssZJgjRpb8qtZumdaBXi2TVsQrOkOhphEvibvlh1dAoZDutuW1omUWM1P7HC/DJS5QB6PZvAvfa1qlOZ/WArI949EybXN6ZtHMmtLJ95AD+nK1p0KD+uRCSMLwN7WzU44xpDwwCx0oUuVPTW7E7Nb4m9fasM/uF8J19eQxwFLeVNdBbkZxCc9GZPvgo07262J60AhiqqVx1W SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR1201MB2477;20:6i/jfSNBdORSV3MrgOPoySfe+zK/Eef3ops/TvaqtSnJeuCgiaMJ5mXtzrs/EMX4pPiGBl9peDqfEefiHQEGD7r0svkVuLAdtDqpuWeVQ5/MjQeuw6QRFBUsioGryCTDSDxN5PX1vMrNBspCc0gmj0ixlzKqjytCkOR5/TOJjRL0ozjcdiehqSHlMBoRBIutj5fqccJpHIEKPGCrSXELEAPBQ3FaGyvyvg83SV1SIXtx5X5wxFkbz5jpK1kCbXZM X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2018 16:08:09.0655 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 62a1d090-cfbc-469c-afe0-08d56a5727a3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB2477 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-02 11:02 AM, Arnd Bergmann wrote: > On Fri, Feb 2, 2018 at 4:39 PM, Harry Wentland wrote: >> On 2018-02-02 07:31 AM, Arnd Bergmann wrote: >>> Building the amd display driver with link-time optimizations revealed a bug >> >> Curious how I'd go about building with link-time optimizations. > > I got the idea from last week's LWN article on the topic, see > https://lwn.net/Articles/744507/. I needed the latest gcc version to > avoid some compiler bugs, and a few dozen kernel patches on top > to get a clean build in random configurations (posted them all today). > > Most normal configurations probably work out of the box, but I have > not actually tried running any ;-) > Thanks. Learn something new every day. I like this bit from the article: > So it is basically just like if it concatenated all source files into a single one and made everything static. Probably not a bad idea to think that way when doing kernel development. :) Harry > Arnd >