Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752334AbdLDUei (ORCPT ); Mon, 4 Dec 2017 15:34:38 -0500 Received: from mail-by2nam01on0044.outbound.protection.outlook.com ([104.47.34.44]:35200 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751205AbdLDUeg (ORCPT ); Mon, 4 Dec 2017 15:34:36 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Harry.Wentland@amd.com; Subject: Re: [PATCH] drm: amd: dc: don't use FP math when Kcov is enabled To: Arnd Bergmann , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= Cc: David Airlie , Jordan Lazare , Roman Li , Shirish S , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20171204131031.1418828-1-arnd@arndb.de> From: Harry Wentland Message-ID: <7a8f0af3-89cf-81d2-cedc-3d80905b9458@amd.com> Date: Mon, 4 Dec 2017 15:34:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171204131031.1418828-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [165.204.55.250] X-ClientProxiedBy: CY4PR14CA0029.namprd14.prod.outlook.com (10.172.162.143) To DM5PR1201MB2474.namprd12.prod.outlook.com (10.172.87.136) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 252a19b7-085e-4f19-a0d3-08d53b566e95 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603286);SRVR:DM5PR1201MB2474; X-Microsoft-Exchange-Diagnostics: 1;DM5PR1201MB2474;3:bYosgV4PsR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qd2TdrOhF8Zbd7k72n6mPo5d6MKVYCDySR+MqwAVELYnpWEsuaHav+5EgbJ/G/WkQcsQdyg68tNwSk3SffTlr/L+a6y+DM38fEE1ttIoy1ii0818at8gOUbi1tPCDclTIotxZolPs5n022wBwWmPPd22PddmMZ9qScNTObJJw6+MNVRSF2VIBgH31/mA8N6L8bSPr+3sMOz93FyMCXd955KHtvwXJLlpSN4NCorRFLo+AAeLcfahuCJnm+vaCDOm69nX0Fpw4vMYiz5CLyaRBCh65OYJ1JapRPjBUrpVq1YMG0KascqxIhbGtVJNcX7zI+pxohz/jmcbgBq4ST1+;4:CjtOegf+tBc1u1Bzp5q+Y9TV3n0fJsKeJF391m6alUCl8a9QD4n0OgF/xHifnmrpKFJ8T+42HGawekLOl044e5kyy8X1BwMjBtlPDldPsjw+nY59R+GeKNL2rDfxnAikfughOFPpGqzfIXsYRBGd4AYY2E7X+R6v+M5HL0xa9BIVvSJRa8L/rKckFyTN+Ap6sIBM4pt8sd2kuBO2fIMvrpUWy9fMJ0RBUGm9vVRa3gt+ywnNFUiQRCIUka2qJjGjLkamJoG+wsHAWqYyOV6T5A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123564025)(20161123562025)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011);SRVR:DM5PR1201MB2474;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DM5PR1201MB2474; X-Forefront-PRVS: 051158ECBB X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6049001)(346002)(376002)(366004)(39860400002)(189002)(24454002)(377424004)(199003)(97736004)(6116002)(3846002)(101416001)(72206003)(68736007)(31696002)(64126003)(50466002)(86362001)(575784001)(478600001)(2870700001)(106356001)(6666003)(6636002)(189998001)(8676002)(33646002)(25786009)(36756003)(81156014)(81166006)(8936002)(105586002)(53546010)(2950100002)(23676004)(2906002)(65826007)(31686004)(5660300001)(316002)(110136005)(58126008)(65806001)(65956001)(53936002)(6246003)(47776003)(66066001)(52116002)(16576012)(229853002)(7736002)(305945005)(76176011)(4326008)(90366009)(54906003)(83506002)(77096006)(16526018)(6486002)(54356011)(2486003)(52146003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR1201MB2474;H:[172.29.156.71];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyMDFNQjI0NzQ7MjM6Ynd4c1ZwWkR6Qkx3L1RUdmhZdkxScjJF?= =?utf-8?B?U2hVQUc5ZlAvaGFHVlpXMTk1ZkpFZnZRYzhVbHBpWVZLS2dOSWdUMFRuRkJk?= =?utf-8?B?WFpNZWVONjJ5VUZ5YmpFZ0x3cUFxSWNlSkNsQ1QzKzFUbGxkTzcwdlhXSDVD?= =?utf-8?B?THVSNVVacXUyTHlGbUhlTEhRMlBMbUt1REcyRkwvTGFPNEh3N1d5UWJVa3U1?= =?utf-8?B?SjdjVnlDQUpTRmo3RStDUTVqeVFRbS93OW9TUExrVE9LTE9LSWZyWWpIRkgz?= =?utf-8?B?YmVScUE5WWl0UldsRG1kV3RBTWhiaGY4VHhGUkRiSXJBdGRzQzR0TkxzaGRD?= =?utf-8?B?T0NybFk5eUp1YzJucnV6L3dHNlA3SVVsajVoVnEwSzNESkovY1pITEY1bDU1?= =?utf-8?B?M2lLYmsyRVBSZThyTG1zSURrQWR3a3JYODEybjgwcjJPckt1azVpS1lubm5L?= =?utf-8?B?TXQ2d2ZSQXN2ZWl3bnRUTWRjdXptYVF4eUpaOGJJTkwxMHV3MzRuTExFWUxt?= =?utf-8?B?d1djbG5OdmQzZk1mV0FBWXpYZkc2Tk9Jb2JCUlR0Qm84TFJZY2dNTzM5a3E0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ljWvSULpvx7E1oUSdvfWAShxAU8cWPBABvEcPiSiuUxgdfAY=;5:C/Vg2k8iUjjg1zmgalLeOgsSiAaab6UB3psWJSJeOSo2Qr+iLJOPexVY05ryYmnTwHjMQl/kV1/f37cNZx0pO+ItYfg8OQQ9wQEkH2WDaPh/OvdElxB4hlvfZSMDiZVTawArjjvJMD/gJagyuPKCNaX5K06BlihBOtwSJ4HAEwg=;24:gKupoa7wdXbai+JX+FgEkwC35EdT9ZSJEDIWf2flCrzhnZ08ja/7+t120YlBjikRdvg+6NqzyoF1jijbxRRwR1i47p3GYe/MZyiC1FOTgxQ=;7:s1BY+9UVwunvTdHW45BeB4ac1YWgfSsz/LXSNLkjC6hboJr29OtKZupuNXYl5gwoUk3fcJ2PxmUHxOpZNqIg+d07XRMsAzZTl7SF8OD3gUBF1ek9grpIwhEAnqXEfvNCFKHgqO/eY4JpWspoJcDqXGSRTLRZvx6GtDY0YpLfzNK8Jxl335//WXmke5uFg2PcLIUnLTwvSm/pnxj/qJOHVBd2fwXSgCzhmI6veXSnrQjfcblhL6LYsO+aKJUduAvI SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR1201MB2474;20:iaEmjWi51iCIaWxUXGACrltvNV6DnVyP/9ymaW7hJsHcLM0u+eMF7wruFYx4e1k+E+3ajmHMyBRkq6cJJjdCXZWlNGmOFZ5tgPyOTlGcaZ5BKMqAvOmDaouDispJH7Vx+uToU7sn76K+tqGYajWvUyfKZflQgyedoWBcMNeuHbq5piXABtGae2FRLRwyTG2MEdAVeI6yWxsTQmk6fMi5rkq/cmYuhFdCpvQFQdUWr6BimvfbUqzFyahz8aYpIxgB X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2017 20:34:34.1006 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 252a19b7-085e-4f19-a0d3-08d53b566e95 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB2474 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8025 Lines: 110 On 2017-12-04 08:08 AM, Arnd Bergmann wrote: > Building the DCN 1.0 Raven display driver with CONFIG_KCOV_INSTRUMENT_ALL=y > and CONFIG_KCOV_ENABLE_COMPARISONS=y results in warnings about many functions > that do a comparison of floating-point variables: > > drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.o: In function `dcn_bw_calc_rq_dlg_ttu': > dcn_calcs.c:(.text+0x263): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.o: In function `hack_force_pipe_split': > dcn_calcs.c:(.text+0x155b): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.o: In function `dcn_find_dcfclk_suits_all': > dcn_calcs.c:(.text+0x190e): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.o: In function `dcn_validate_bandwidth': > dcn_calcs.c:(.text+0xe121): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_math.o: In function `dcn_bw_mod': > dcn_calc_math.c:(.text+0x22): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_math.o: In function `dcn_bw_min2': > dcn_calc_math.c:(.text+0xb2): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_math.o: In function `dcn_bw_ceil2': > dcn_calc_math.c:(.text+0x2a0): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_math.o: In function `dcn_bw_max3': > dcn_calc_math.c:(.text+0x325): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_math.o: In function `dcn_bw_max5': > dcn_calc_math.c:(.text+0x3c3): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_math.o: In function `dcn_bw_log': > dcn_calc_math.c:(.text+0x54e): undefined reference to `__sanitizer_cov_trace_cmpd' > dcn_calc_math.c:(.text+0x57c): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.o: In function `scaler_settings_calculation': > dcn_calc_auto.c:(.text+0x5c5): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.o: In function `mode_support_and_system_configuration': > dcn_calc_auto.c:(.text+0x137c): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.o: In function `mode_support_and_system_configuration': > dcn_calc_auto.c:(.text+0x9233): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.o: In function `mode_support_and_system_configuration': > dcn_calc_auto.c:(.text+0xb70f): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.o: In function `mode_support_and_system_configuration': > dcn_calc_auto.c:(.text+0x121fd): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.o: In function `display_pipe_configuration': > dcn_calc_auto.c:(.text+0x15a2f): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.o: In function `dispclkdppclkdcfclk_deep_sleep_prefetch_parameters_watermarks_and_performance_calculation': > dcn_calc_auto.c:(.text+0x17c2d): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.o: In function `dispclkdppclkdcfclk_deep_sleep_prefetch_parameters_watermarks_and_performance_calculation': > dcn_calc_auto.c:(.text+0x19362): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.o: In function `dispclkdppclkdcfclk_deep_sleep_prefetch_parameters_watermarks_and_performance_calculation': > dcn_calc_auto.c:(.text+0x25575): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.o: In function `dispclkdppclkdcfclk_deep_sleep_prefetch_parameters_watermarks_and_performance_calculation': > dcn_calc_auto.c:(.text+0x27f33): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_calc.o: In function `get_refcyc_per_delivery': > display_rq_dlg_calc.c:(.text+0xb5): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_calc.o: In function `calculate_ttu_cursor.isra.1': > display_rq_dlg_calc.c:(.text+0x9f6): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_calc.o: In function `dml_rq_dlg_get_dlg_params': > display_rq_dlg_calc.c:(.text+0x82cc): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.o: In function `get_refcyc_per_delivery.isra.0': > dml1_display_rq_dlg_calc.c:(.text+0x6c4): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.o: In function `get_vratio_pre.isra.2': > dml1_display_rq_dlg_calc.c:(.text+0x957): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.o: In function `get_swath_need.isra.3': > dml1_display_rq_dlg_calc.c:(.text+0xc8e): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.o: In function `dml1_extract_rq_regs': > dml1_display_rq_dlg_calc.c:(.text+0x30a8): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.o: In function `dml1_rq_dlg_get_dlg_params': > dml1_display_rq_dlg_calc.c:(.text+0x41ee): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.o: In function `dml1_rq_dlg_get_dlg_params': > dml1_display_rq_dlg_calc.c:(.text+0x8f95): undefined reference to `__sanitizer_cov_trace_cmpf' > drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.o: In function `dml_round': > dml_common_defs.c:(.text+0x77): undefined reference to `__sanitizer_cov_trace_cmpd' > drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.o: In function `adjust_ReturnBW': > display_mode_vba.c:(.text+0x4490): undefined reference to `__sanitizer_cov_trace_cmpd' > Is this with clang? I don't seem to get these with gcc. > We already prevent the driver from being built on non-x86 architectures > because of its use of floating-point arithmetic, this extends the > dependency to also cover Kcov-enabled builds, which arguably is a much > more severe limitation. > > I tried implementing the two functions in KCOV: __sanitizer_cov_trace_cmpd > and __sanitizer_cov_trace_cmpf, but that fails to build on architectures > that do not support any floating-point functions, or would require making > that code x86 specific as well. I also looked at what it would take to > convert the code to fixed-point arithmetic, but quickly gave up. This > is probably the right approach, but it requires a non-trivial amount of > work and certainly won't be appropriate as a bugfix. > > Fixes: bf2e2e2e0ea9 ("drm/amd/display: Limit DCN to x86 arch") > Signed-off-by: Arnd Bergmann > --- > drivers/gpu/drm/amd/display/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig > index ec3285f65517..5cd5906c9bee 100644 > --- a/drivers/gpu/drm/amd/display/Kconfig > +++ b/drivers/gpu/drm/amd/display/Kconfig > @@ -30,6 +30,8 @@ config DRM_AMD_DC_FBC > config DRM_AMD_DC_DCN1_0 > bool "DCN 1.0 Raven family" > depends on DRM_AMD_DC && X86 > + # x86 floating point math here breaks with KCOV: > + depends on !(KCOV_INSTRUMENT_ALL && KCOV_ENABLE_COMPARISONS) || BROKEN I don't think it makes sense to make this depend on BROKEN as it works and is quite useful to people with Raven systems. Harry > help > Choose this option if you want to have > RV family for display engine >