Received: by 10.223.176.5 with SMTP id f5csp1107116wra; Wed, 7 Feb 2018 12:49:31 -0800 (PST) X-Google-Smtp-Source: AH8x2241wuwon0hHOwEeGYxhu0kbX88QFrPgsTvCuF8l8/Pc5TEb6OIlcCWePGguCDOrDTly2u79 X-Received: by 10.101.67.202 with SMTP id n10mr5707259pgp.116.1518036571010; Wed, 07 Feb 2018 12:49:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518036570; cv=none; d=google.com; s=arc-20160816; b=cF9DFLG8BMu8gzjpz2nRDRIfXQuwrLGTqIGa7W/9S/ohJbLS+jT02OCN2mVSbfOcNS tPqs4FwhZGSBqdGYodvLvTBiX5PA72azRa1Ni/GmSrlSY36fudI30vzBtzS/gK7TQAGe 3Fwb9p4Mwja+VQW3bDKf3btL66RKScEHjUg+BiecR/xMH3Ere2DVI0N126eu/mIessBc /l5bpwUKpaiIGnXWVZ2v0o92UzQVavqzYcC0Rw67T/KdlhLBzp+CslrQqaYR63NGl1Bw mVJPd0pIpoY5DHa8jP/xVOStG1B6/lpjAcjWRVAg9NY+F6YKOblX/RyZONA5OZOqxU2a uy/Q== 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=n5tXbOxiI+dckwplnO5dqONrac9OqNb1D+ual0lmnTg=; b=PyrK5SjeogmOVXKxM7xpE6xUnLQuWDtWNW85cpv34WNvcHIvMlVdBBn8L11Rq6knPQ YcdMar+fnTkcyOxjI6kmwVAaFdFas24GCCREW0i4yx5DSeACbjIkcwljSNoG0hnnwwNR 9PAqEQz5UtV9cYVcwGZlOVGCVta/q4o9DYW3ZcGhGSu31Suy/iKTLwv0QaPIxF6onH4x JvMW0HHpI1HaY1LADYOiMV2tyAg+941WsftDSRDoAXUQYzHngfvnH2fONUeIVkFCSgNj fm6BhzTA9fTkTB/3YArwMod3scC5Cxf7BEhwyrPFQTgZWcmMRx/GTLjsVq1QY6IKeLAw U9LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=2gEXwtXx; 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 t76si1397687pgc.273.2018.02.07.12.49.16; Wed, 07 Feb 2018 12:49:30 -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=2gEXwtXx; 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 S1754718AbeBGUsd (ORCPT + 99 others); Wed, 7 Feb 2018 15:48:33 -0500 Received: from mail-by2nam03on0048.outbound.protection.outlook.com ([104.47.42.48]:32864 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754591AbeBGUs1 (ORCPT ); Wed, 7 Feb 2018 15:48:27 -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=n5tXbOxiI+dckwplnO5dqONrac9OqNb1D+ual0lmnTg=; b=2gEXwtXxd8orKgFUdMnWGnPelsJ95uhOU2ZHwnmfjbxs+4ec9w64FjHIoB5uEJWywVZjvaTc5Wudb94bi9Ggul688dTGe5tr1BHvwZ8FWlcbofzEfeOIoN4HoeexQ+GzatTTCtki47YUV8X6uEZ74aW+t/h7wFYyZ4xj7+qCF9I= 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.464.11; Wed, 7 Feb 2018 20:48:23 +0000 Subject: Re: [PATCH] drm/amd/display: Remove extra pairs of parentheses in dce_calcs.c To: Matthias Kaehlcke , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , David Zhou , David Airlie , Tony Cheng , Dmytro Laktyushkin , Joshua Aberback Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Guenter Roeck , Justin TerAvest , Craig Bergstrom References: <20180207194928.93869-1-mka@chromium.org> From: Harry Wentland Message-ID: Date: Wed, 7 Feb 2018 15:48:19 -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: <20180207194928.93869-1-mka@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.55.250] X-ClientProxiedBy: CY4PR02CA0041.namprd02.prod.outlook.com (10.175.57.155) 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: 8a1a889b-9dab-4259-ff58-08d56e6c21f2 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-Diagnost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IabLguWtLfSH36HU6Wcz182/sW0gfbQ16t5hpxHa4VNhHZOJ01bPfJIEcGLTaypPWjZbm/BjcW1pID/9eVmShrZ1w+N6B1pXC+fEk7HHU4Z+U6ypZRqxCBbBe1UxOpHwxI4JhBHdCQnrg3MGl3VgbtUEAR1EsD6LeqrCtVWpYkpggipdtnnZDQLa12ddhV1q86ie+S1IS5UMtZGUvc+TdIOS5TyL373GnJteViKM8WGp0XBIKUgb3Tg1E9ma/eYjy5Ga3VftZP/1U2rJPOJm4+O070c9P2hIkyOtVX8PaUzxkDm8Pzq1vQQm7BqXftqnnOTF8arEHn3h8RwvNr9DMWOHavgRaQ3VNqdvzF/+n;4:MVdS14j1ribuXuJwcQWfqGl4tN2YvJpc9KrrvHLa5H9ZSWRhpM+mdGWuhOI+Ftv2LKqG4qJLH8hkl/eOxXUk8V3db1OeeqYEoI4+c6ud3HjV+s9vPHLQV+n5faX8qDZlrxHmOakQo2nBM9VflTAL68uIxkD3BaiTSYAXW6mBgghBohhhW1dtFzLr7/rb7N7zAS9arJOadDmRJtrm2XD8RoUvuQ94ASCZZ+OQeslNUkDuPbODAKw3togncoIVTCVgkDGEl3XyOXuYC1zsEI0pr0rIoAQN84tdHOP42u1NIwTx41XySmuI69cYCyzpXCjm 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)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041288)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011);SRVR:MWHPR1201MB2477;BCL:0;PCL:0;RULEID:;SRVR:MWHPR1201MB2477; X-Forefront-PRVS: 0576145E86 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(366004)(39860400002)(396003)(376002)(39380400002)(346002)(377424004)(199004)(189003)(36756003)(31696002)(76176011)(230700001)(65806001)(97736004)(229853002)(105586002)(186003)(77096007)(26005)(31686004)(16526019)(72206003)(386003)(68736007)(59450400001)(50466002)(83506002)(86362001)(53546011)(81166006)(54906003)(65826007)(64126003)(5660300001)(2906002)(8676002)(16576012)(53936002)(110136005)(58126008)(478600001)(106356001)(316002)(3846002)(2486003)(6116002)(6246003)(52116002)(6486002)(52146003)(23676004)(90366009)(6666003)(6636002)(66066001)(4326008)(8936002)(2950100002)(47776003)(305945005)(25786009)(7736002)(81156014)(65956001);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?MTtNV0hQUjEyMDFNQjI0Nzc7MjM6VzVDYjRoM1hGQm50RDhDLzZWUkNYVmtJ?= =?utf-8?B?dENLaEMzVTd0RmpGOWFjREFKZUFzUEMwTEhPM3J2NkRqY1cra3BGQm02Y0g2?= =?utf-8?B?SUw3YXVxa1k4alR3RDk2NVgwZ2ZiN2pEbzd2dGp5RHlLem1NOGFjaU1DajV1?= =?utf-8?B?aURkNnJYMisvOXo2dWNZYWxKV1RVY0NyakltWno4cTFuREsyNGVtVHdUR1NP?= =?utf-8?B?dzhIcWY1UTh2NmN2Q0ZncjlsbTdidjNwNEh1dytVQmJhZlgxa2htWFZ3QUw5?= =?utf-8?B?WHZyU1VWMGlXQVd2RFE5OFNsdlpNNzNlOVpqWUFqYnFYWndlYjhTSjcxYlBY?= =?utf-8?B?VTZvRnVWbzA2U2lUOG15QnRpeHFnRC9mUDRDUzBFTFk2akZjNGJGcU1XTC9G?= =?utf-8?B?VG9RTFNYb1Z3dmRsSWtUblE4L24veTducy91ZFFLMldDdmNZVnBhME1Gbktu?= =?utf-8?B?NE1yL003OGdNc2FPSEN1WmpOMUticDg0a0lRRkxrY0N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NPLYwNxCcohJYjRef8XsnQAQhcVHm4UpqKB40+B6RP+nG8M4DY=;5:BoGvqDymM4zRvWidmt4HPObGzET4IzG1TYCeCsd7Ap1zj2Dv+jd4GHPkTYcPvwpXx3Fky/Eyw3tIgzqzb+B+8lh5FqD5gVlRXb53erCGQ9N8ff4yZXTGmOZqST2CtX0UGdmxPa4vejBISL8lBLzjFljg0XdLWUkwIxDSbQ1sarI=;24:CL0RniW+4SyMvAihgOwO51eN/o0su54cypo/uPmeLnVw+hqF5H5whJecA4C5FqJc3c+/VR2YHY1G47CG1XyLDuiEUd74wlxJU10jbF6sBtk=;7:ABaSD0fwVVkVHRcZfHG/9ONWK5/AzEmiDr4McBZOM9iTS5jMmitI3OYpX8EEh+wpa7koGn8TjPpA/7noLDBp05y5R9TA6YxsGJvG5DLBpFn1KC/zwLQZoqyIDgb4Cd4K7HUQ1FHNItS95R8pGD6vmIfJagO+RwoF0yrqyqQkOz6VyfDaSp5PQeoyJIzrUokmromT/ziRKCMNrbMtIMI7QgxICIr67rSzsAgFN8FHnQ62CYkD3ckVwqDqMtrZDB+2 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR1201MB2477;20:jrBzZH2wBayd78uG48Jg8o4PLFpr/L+MxjL3Pp6FjUY9yiugTqd+fqt32i48eqaooFFWhShIJ1MBDFT7iNCzSA0dKgE2P35Gf0CxoFltQY5TxZO08UFqtr07IeUFOaUod+vB017IQAQrkakFsFp3ZPGBtLR1Nq0CQa5hNba/Df6rjBbdNYOJHBnw0FiRr4Ax4E+TRBf7eqMJ9HYE2N+BNeUVJJfXJH64VenkMXmcPYu5J4OfENlVrC5TkMk982Zu X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2018 20:48:23.3982 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8a1a889b-9dab-4259-ff58-08d56e6c21f2 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-07 02:49 PM, Matthias Kaehlcke wrote: > The double parentheses are not needed. Removing them fixes multiple > warnings like this when building with clang: > > drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:617:42: > error: equality comparison with extraneous parentheses > [-Werror,-Wparentheses-equality] > if ((data->graphics_micro_tile_mode == bw_def_rotated_micro_tiling)) { > > Signed-off-by: Matthias Kaehlcke Thanks. Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c | 22 +++++++++++----------- > 1 file changed, 11 insertions(+), 11 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c > index 2e11fac2a63d..bb03a9c64d5a 100644 > --- a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c > +++ b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c > @@ -623,7 +623,7 @@ static void calculate_bandwidth( > } > else { > /*graphics portrait tiling mode*/ > - if ((data->graphics_micro_tile_mode == bw_def_rotated_micro_tiling)) { > + if (data->graphics_micro_tile_mode == bw_def_rotated_micro_tiling) { > data->orthogonal_rotation[i] = 0; > } > else { > @@ -634,7 +634,7 @@ static void calculate_bandwidth( > else { > if ((i < 4)) { > /*underlay landscape tiling mode is only supported*/ > - if ((data->underlay_micro_tile_mode == bw_def_display_micro_tiling)) { > + if (data->underlay_micro_tile_mode == bw_def_display_micro_tiling) { > data->orthogonal_rotation[i] = 0; > } > else { > @@ -643,7 +643,7 @@ static void calculate_bandwidth( > } > else { > /*graphics landscape tiling mode*/ > - if ((data->graphics_micro_tile_mode == bw_def_display_micro_tiling)) { > + if (data->graphics_micro_tile_mode == bw_def_display_micro_tiling) { > data->orthogonal_rotation[i] = 0; > } > else { > @@ -947,14 +947,14 @@ static void calculate_bandwidth( > } > for (i = 0; i <= maximum_number_of_surfaces - 1; i++) { > if (data->enable[i]) { > - if ((data->number_of_displays == 1 && data->number_of_underlay_surfaces == 0)) { > + if (data->number_of_displays == 1 && data->number_of_underlay_surfaces == 0) { > /*set maximum chunk limit if only one graphic pipe is enabled*/ > data->outstanding_chunk_request_limit[i] = bw_int_to_fixed(127); > } > else { > data->outstanding_chunk_request_limit[i] = bw_ceil2(bw_div(data->adjusted_data_buffer_size[i], data->pipe_chunk_size_in_bytes[i]), bw_int_to_fixed(1)); > /*clamp maximum chunk limit in the graphic display pipe*/ > - if ((i >= 4)) { > + if (i >= 4) { > data->outstanding_chunk_request_limit[i] = bw_max2(bw_int_to_fixed(127), data->outstanding_chunk_request_limit[i]); > } > } > @@ -1337,7 +1337,7 @@ static void calculate_bandwidth( > /*if stutter and dram clock state change are gated before cursor then the cursor latency hiding does not limit stutter or dram clock state change*/ > for (i = 0; i <= maximum_number_of_surfaces - 1; i++) { > if (data->enable[i]) { > - if ((dceip->graphics_lb_nodownscaling_multi_line_prefetching == 1)) { > + if (dceip->graphics_lb_nodownscaling_multi_line_prefetching == 1) { > data->maximum_latency_hiding[i] = bw_add(data->minimum_latency_hiding[i], bw_mul(bw_frc_to_fixed(8, 10), data->total_dmifmc_urgent_latency)); > } > else { > @@ -1396,7 +1396,7 @@ static void calculate_bandwidth( > } > /*determine the number of displays with margin to switch in the v_active region*/ > for (k = 0; k <= maximum_number_of_surfaces - 1; k++) { > - if ((data->enable[k] == 1 && data->display_pstate_change_enable[k] == 1)) { > + if (data->enable[k] == 1 && data->display_pstate_change_enable[k] == 1) { > number_of_displays_enabled_with_margin = number_of_displays_enabled_with_margin + 1; > } > } > @@ -1442,7 +1442,7 @@ static void calculate_bandwidth( > data->nbp_state_change_enable = bw_def_no; > } > /*dram clock change is possible only in vblank if all displays are aligned and have no margin*/ > - if ((number_of_aligned_displays_with_no_margin == number_of_displays_enabled)) { > + if (number_of_aligned_displays_with_no_margin == number_of_displays_enabled) { > nbp_state_change_enable_blank = bw_def_yes; > } > else { > @@ -1470,7 +1470,7 @@ static void calculate_bandwidth( > } > } > /*compute minimum time to read one chunk from the dmif buffer*/ > - if ((number_of_displays_enabled > 2)) { > + if (number_of_displays_enabled > 2) { > data->chunk_request_delay = 0; > } > else { > @@ -1804,7 +1804,7 @@ static void calculate_bandwidth( > data->stutter_exit_watermark[i] = bw_add(bw_sub(vbios->stutter_self_refresh_exit_latency, data->total_dmifmc_urgent_latency), data->urgent_watermark[i]); > data->stutter_entry_watermark[i] = bw_add(bw_sub(bw_add(vbios->stutter_self_refresh_exit_latency, vbios->stutter_self_refresh_entry_latency), data->total_dmifmc_urgent_latency), data->urgent_watermark[i]); > /*unconditionally remove black out time from the nb p_state watermark*/ > - if ((data->display_pstate_change_enable[i] == 1)) { > + if (data->display_pstate_change_enable[i] == 1) { > data->nbp_state_change_watermark[i] = bw_add(bw_add(vbios->nbp_state_change_latency, data->dmif_burst_time[data->y_clk_level][data->sclk_level]), bw_max2(data->line_source_pixels_transfer_time, data->dram_speed_change_line_source_transfer_time[i][data->y_clk_level][data->sclk_level])); > } > else { > @@ -1816,7 +1816,7 @@ static void calculate_bandwidth( > data->urgent_watermark[i] = bw_add(bw_add(bw_add(bw_add(bw_add(vbios->mcifwrmc_urgent_latency, data->mcifwr_burst_time[data->y_clk_level][data->sclk_level]), bw_max2(data->line_source_pixels_transfer_time, data->line_source_transfer_time[i][data->y_clk_level][data->sclk_level])), vbios->blackout_duration), data->chunk_request_time), data->cursor_request_time); > data->stutter_exit_watermark[i] = bw_int_to_fixed(0); > data->stutter_entry_watermark[i] = bw_int_to_fixed(0); > - if ((data->display_pstate_change_enable[i] == 1)) { > + if (data->display_pstate_change_enable[i] == 1) { > data->nbp_state_change_watermark[i] = bw_add(bw_add(vbios->nbp_state_change_latency, data->mcifwr_burst_time[data->y_clk_level][data->sclk_level]), bw_max2(data->line_source_pixels_transfer_time, data->dram_speed_change_line_source_transfer_time[i][data->y_clk_level][data->sclk_level])); > } > else { >