Received: by 10.223.176.5 with SMTP id f5csp1974920wra; Thu, 8 Feb 2018 06:34:59 -0800 (PST) X-Google-Smtp-Source: AH8x2266Nx9biqCeLZuPrdbETsBXxA5DHJLJoDTm8CoC8kCcyKUE3daHvWZ5cyUXPosiRHfH0PI2 X-Received: by 2002:a17:902:8c89:: with SMTP id t9-v6mr830894plo.2.1518100499537; Thu, 08 Feb 2018 06:34:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518100499; cv=none; d=google.com; s=arc-20160816; b=KUKqhHEk5majEbFxVhm4TkXmXyIqmIHT8azTYsgKlOeay45IezKifpqV28VHnkeWTi yxXA/lu509s31wY7Ok+ScLKDYC2k0IpACJAbEAKVub0LCJFfAMG9z7O+0CSl8ptulCTC klFyJGs/QsM0FmcXk22770l5YPmAdgDFoNssfKwsNGWtjDWrAqbfgs24hxVX8DF1j/p8 bMo54SaiM50rxqL1uKcHpR1xdga3SNuKOZavYu0vPQv3amTpYHg3Ph50G7VaT0VRO3rD qpovL++FCmvX6bxEtAPlQioISC9tkdAGKBQ5jN+xIAEXW0Ar8KpBLtva4GeDIOG9wMLG vckQ== 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=raeePuOe6jAOfQ5H7EAy2eif4moIVoGAP0+QOgBz5DM=; b=eV7qRPl6Znp6x+0pZcED4vhbr8zK3yn8KTE6oOIL5FhBQen6DgMVNtEFXew/dbZqf8 1JhfGnF39MEaTrd5RL8X5ZIoOGQ2yQPuD5VLn0Qlx2kNM73rM3zaAqTp3KW/wDi3Ubzz eMJwAEBZ0ryzsSwD5Dr9RIQWSw4OELdNd9d4ZcG4gZvQoKUZ4C1jeHkByuXAzpZ9+UqP MCGJ9ErW07+0/PP80pO5MQwGC+cTIKvNf1FoBWXBMm0cb+kV0VrYlRcYzcNXNqnOb/bb RTB/cI4HiJ0fNcQb51ZTRvPAutFZNDA7g4Euwuzh9JpGVjLJOq5DjsLGUlmkzh2uGiqE HYEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=mVf6+zZm; 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 y5si17617pgy.715.2018.02.08.06.34.45; Thu, 08 Feb 2018 06:34:59 -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=mVf6+zZm; 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 S1751986AbeBHOeE (ORCPT + 99 others); Thu, 8 Feb 2018 09:34:04 -0500 Received: from mail-dm3nam03on0060.outbound.protection.outlook.com ([104.47.41.60]:13798 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750929AbeBHOeC (ORCPT ); Thu, 8 Feb 2018 09:34:02 -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=raeePuOe6jAOfQ5H7EAy2eif4moIVoGAP0+QOgBz5DM=; b=mVf6+zZmUfhtIW/S/fSoRgdYik9wNWDvw0EXFq9YYVlTkXUXRoEFnJOekiG1TPFFvPAwRJHiApYhMPXY/xDnO52ykPEZHaeR6GuezbpTcwiwsGVUm4SsIQgZdLHv0EBNgclspyG8QcMhaeix3OjgcxPvnnI7E+Y2UIEiU4B3MlU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Harry.Wentland@amd.com; Received: from [172.29.157.161] (165.204.55.250) by MWHPR1201MB2479.namprd12.prod.outlook.com (10.172.95.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Thu, 8 Feb 2018 14:33:58 +0000 Subject: Re: [PATCH v2 1/2] amdgpu/dc/dml: Consolidate redundant CFLAGS To: Matthias Kaehlcke , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , David Zhou , David Airlie , Felix Kuehling , Dmytro Laktyushkin Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Guenter Roeck , Justin TerAvest , Craig Bergstrom References: <20180208015103.169603-1-mka@chromium.org> From: Harry Wentland Message-ID: Date: Thu, 8 Feb 2018 09:33:53 -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: <20180208015103.169603-1-mka@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [165.204.55.250] X-ClientProxiedBy: BN4PR10CA0012.namprd10.prod.outlook.com (10.164.240.22) To MWHPR1201MB2479.namprd12.prod.outlook.com (10.172.95.137) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cbdd69aa-12b4-4e2f-c12b-08d56f00fe5e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:MWHPR1201MB2479;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H9IIAoiM5GighrR9IvByr3QHdgug5vTMpOmF5XOPt2dRmlaW7RcFfnf2ZWGhLrDasRbM4yN31dFKCDjBxlNvDIpEW5/nKcpM3AOpb4QkcJYb0KjUPMmnkB+IJ7MPhzzN59dPM9KGeyAuShEB6unprGyy9+z+lvIpttc9klZjUFKO9VzvN9p6eB98yf9oq5YVFFrPJyaN034Xj/X5Qu0ODJjyTGOklmwLlzf7hQ68+eit4lc+p0XV7rl4pKrph8lLZOJ8G2A9YPWW5rKGz9uoHue83wQWj1IXCbzt39T+d2QSBSa8Ag59d1lP3SNVsScODOQVQUDQzIjXsfGHj6UpZ3VzKBW+biSZUBOuh1cmVv/nJ9eo/0TLn3eHywAlDaAlfTEFkUmv;4:E1wCooJ3zO3IT0xkyIQ013bAN6YkfegrL0/Hd6cyw2kvDM/S+ez+l8ah/+ve2tOC4vkppaP/XdiddNlRAFPTtxTD/juC1pC/lJLaE/1+ZK7NoEtul96SzNEZxT7wKpwScy9dqsW9ELebfP+ETHsll6s2KWoZejGjmI08ay25SwSqERSpStODuyTzShqeNIs+ZiqPzF8pS4IpzhoFKig8vFjKECZtIyuQa8SOm3nLtaGeCPtV0nmXJ+87bnoj9ugz1qofl4BMaoJbj6IOCmuasg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231101)(2400082)(944501161)(3002001)(6055026)(6041288)(20161123562045)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:MWHPR1201MB2479;BCL:0;PCL:0;RULEID:;SRVR:MWHPR1201MB2479; X-Forefront-PRVS: 0577AD41D6 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(39380400002)(39860400002)(366004)(346002)(376002)(396003)(199004)(189003)(377424004)(316002)(58126008)(25786009)(5660300001)(47776003)(65826007)(65956001)(65806001)(66066001)(2906002)(97736004)(478600001)(6246003)(31696002)(81156014)(966005)(81166006)(72206003)(2950100002)(6116002)(3846002)(106356001)(16576012)(86362001)(6666003)(8676002)(6636002)(64126003)(54906003)(36756003)(76176011)(8936002)(229853002)(2870700001)(52116002)(2486003)(31686004)(53546011)(386003)(52146003)(186003)(50466002)(16526019)(105586002)(90366009)(6306002)(77096007)(26005)(68736007)(110136005)(53936002)(83506002)(305945005)(4326008)(6486002)(7736002)(23676004);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR1201MB2479;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?MTtNV0hQUjEyMDFNQjI0Nzk7MjM6Zmw1bndqM2JBZzM4WVJNTTdnb1IzL0F1?= =?utf-8?B?aE9PZ1owZjJYWk9HOG1JY2pJYjJySnlyQ2pOVm5qaGpib3JLT21qR0Mxdklt?= =?utf-8?B?ekphMmM2NjNDc24rODNjZWhzYzdXRXFTUkgxT0xkb1hoUHV0cWpTUWFOUXpL?= =?utf-8?B?eDN4elZSbk8vODlJNVJqb2k2VnhKRmwvNURiZUtzYmVUQmN0eFRXem1qcSt4?= =?utf-8?B?TGFyZWxQOTl2a09iMWdvVkdOeXVrVUltWXN1c1pHM1IzWVBOMDhsM3pMUGly?= =?utf-8?B?cXQ5K0tzdG9KT0VTamJnNG9QaEg5Zlp1VUU0M25KRTR6NnZQT0V2TnJHeEsx?= =?utf-8?B?WDQrTFBycFBlYVdVeDFkNm1RTU9HeFN3WVFBOFRoTVh1Y3VqdytWSkMvZldo?= =?utf-8?B?R1plTFIyeEVEV0pwek05ZjZvMGlKVTNDc1dUTmYzUWZPVFZqalFyWG5TZDBL?= =?utf-8?B?ZW5oYVlGY1VEV0NRdEo0anE2Y1AzdHRqbGF1SzBUdXBRRkF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Th+QXrXh35gbSCuYXGV6PVjk+iAL9zwNPXk18BPEZFeZwCMlFPm4GGBnU75zII5gfcSoJYNBgq7n6iJptXANjjfJ0PJxk+XQqa+KcHjhe23BwM9MoEXNZo=;5:zBNGMjs7gxMdt5ENsIaqogbkSZKNQMfAzTWlcsj/q4yDlT37soHrZFWbuth4G7cDseF0zceHkYblcOda+IC97HjXsQl1FeFqpa1Bs9hPcbFmVghwiCtxbSn3M00EAdz/oY7w5gm73fcV+6iLaPT8RuTpJGc3uZpE8bfY2iWzzsA=;24:BlzLzqvQcJmVd78zU9Qf3N5tF4VUewT1KWHZXWUAtGBZcfTv3QWAKK0Fsj3EJIbn6FhD6sAKoweRl72B3iFpTKuHZBmSrIFaB7UuZO3yF7M=;7:NDItitwOpiglE1vyapkvQcp09DmFGWRGDm1DqvzkwEBYYAKxoyQahzLbh5YYMVVgFbTpAvnxNPGujAugLmG1htOLj/kHngFiriMolu2p2arI9fRQdGfWf8XsUw+0abfaN8vsD7z+kQloHLcvHWic6uGnLncdSIHYgZqLxz5OZqQiDg7ZG25dKB6SvaIZ1pFyvz9nTHxBlGDUtvJ5saqsPOxJl+q4HwHgbBO/al3XhQNHwAYTRliGXG8EsreVw2yA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR1201MB2479;20:uLnjCQ3F/n4DUGNyHjIC9r2fymV/3K8RJkZME1Mvgjpa1lRmZEOt0ARRRkYnE/4aHvz/gwohwe7V0mA8kzN25Wii/3yuU8wTSZI6exC/N2aU0gDISuKSruA4qax6YYYfdap5SZQFqSvS76N7oHzSCv2e46ZmJErrxDWuYPFXUGyOuXQgMyXxdm2aF+E1VBLrisU57HyARzEsFsXm/z9UFviy+5FMW+ZWhS9A3tuw0aQ2tmrKSakhJ9sd01bsLof0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2018 14:33:58.1411 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cbdd69aa-12b4-4e2f-c12b-08d56f00fe5e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB2479 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-07 08:51 PM, Matthias Kaehlcke wrote: > Use subdir-ccflags instead of specifying the same flags for every source > file. > > Signed-off-by: Matthias Kaehlcke > Reviewed-by: Guenter Roeck > --- > Changes in v2: > - added 'Reviewed-by: Guenter Roeck ' tag > > drivers/gpu/drm/amd/display/dc/dml/Makefile | 10 +--------- > 1 file changed, 1 insertion(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu/drm/amd/display/dc/dml/Makefile > index 3488af2b5786..b8cadf833e71 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/Makefile > +++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile > @@ -24,15 +24,7 @@ > # It provides the general basic services required by other DAL > # subcomponents. > > -CFLAGS_display_mode_vba.o := -mhard-float -msse -mpreferred-stack-boundary=4 > -CFLAGS_display_mode_lib.o := -mhard-float -msse -mpreferred-stack-boundary=4 > -CFLAGS_display_pipe_clocks.o := -mhard-float -msse -mpreferred-stack-boundary=4 > -CFLAGS_display_rq_dlg_calc.o := -mhard-float -msse -mpreferred-stack-boundary=4 > -CFLAGS_dml1_display_rq_dlg_calc.o := -mhard-float -msse -mpreferred-stack-boundary=4 > -CFLAGS_display_rq_dlg_helpers.o := -mhard-float -msse -mpreferred-stack-boundary=4 > -CFLAGS_soc_bounding_box.o := -mhard-float -msse -mpreferred-stack-boundary=4 > -CFLAGS_dml_common_defs.o := -mhard-float -msse -mpreferred-stack-boundary=4 > - > +subdir-ccflags-y += -mhard-float -msse -mpreferred-stack-boundary=4 Are you sure this will only apply to dc/dml? The way the amdgpu build is setup I've seen this flag apply to all of amdgpu, even if specified in a subdirectories build file. The reason being that amdgpu/Makefile recursively includes all other Makefiles in the module. According to kbuild/makefiles.txt this will have effect for the kbuild file where it's present and all subdirectories: https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt: > subdir-ccflags-y, subdir-asflags-y > The two flags listed above are similar to ccflags-y and asflags-y. > The difference is that the subdir- variants have effect for the kbuild > file where they are present and all subdirectories. > Options specified using subdir-* are added to the commandline before > the options specified using the non-subdir variants. > > Example: > subdir-ccflags-y := -Werror For your 2nd patch you probably want to make a dml_cflags variable that's set different for clang and gcc, and then still set it for all files in DML individually. You'll probably also have to do the same for dc/calcs/Makefile. Thanks for finding a good solution for supporting clang. It's been on my list but I haven't had time to find the right flag yet. Harry > > DML = display_mode_lib.o display_rq_dlg_calc.o \ > display_rq_dlg_helpers.o dml1_display_rq_dlg_calc.o \ >