Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2090844pxb; Fri, 29 Jan 2021 12:57:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/TXTITLe52vyLdv2q53/gs5o6lPSKw95i3tAH9ghuouSpi2CfVLPKzsbKfrX5ckpL+lUJ X-Received: by 2002:a17:907:1701:: with SMTP id le1mr6538900ejc.68.1611953869501; Fri, 29 Jan 2021 12:57:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611953869; cv=none; d=google.com; s=arc-20160816; b=trzcHToyMTue/u7/Nmcpwkl/PFiIjpcH/rHexJOwEm6tz6fvzeyM5QXYjpgUMi7hYX gM4MUM4NjaC8y0wF0TSkFUmAEozsY5cKRpL/Vonty7c0SLaE0ux2q1pTOw7ql7T/7yQR RCS8FurDk6rnrotew4maGZP/eK/BWfKVW8Lvp5UrhZmuRkDglLLFJ9g2C0+ITpLc/d3U eKpSh2/aYSQEnZuy5spm6It8y0aYYc6JchTYksjgDE6Q0vLJITd1at9lMTnOwbrw3WQp WAFXVPP0FMOJf/T4fToDusls7QXYxmtfOmTMaTOteKiT1OXH+gvxTZho4lQXhFuD/UsI vUXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version; bh=qKz+3wQ3wSh+rVYD56JxtTgCKMsuaptNOdkhOcZ1FWI=; b=IwB1ntMybgvMpx0vqKr19+Oz6bYM5jmltI4mTQbQA55VrTjs0X2qr0+v5BvYbK73S9 iywjYrzuh8Z/iiqIgPjV9ukC6WoGtvLX7Fh38DQVHQLNus24VeCxZ2ve2IFDp0uEoJzt H7vwFskV5QZ+7GkelWTYIH0R/PbE0+BzDHSHRjTl9m+xoOwrjk2T+P6C5np/i28DDNL3 dEMfCbGzody3Q5sJJVjDm8IObuUH3sFMOfBluBF5Teov9IOjqHDiT3k2VFbN9DAWGZQB 1OuZ5ADmB0e3uCQoFJAH9FWtOo8wugI305iFc6+Ews0qDs0zEnRAHRJ5ksdnejO2cTka v6CQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si5976758edr.294.2021.01.29.12.57.24; Fri, 29 Jan 2021 12:57:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233278AbhA2U4u convert rfc822-to-8bit (ORCPT + 99 others); Fri, 29 Jan 2021 15:56:50 -0500 Received: from mail.fireflyinternet.com ([77.68.26.236]:54778 "EHLO fireflyinternet.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233055AbhA2U4t (ORCPT ); Fri, 29 Jan 2021 15:56:49 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 23741559-1500050 for multiple; Fri, 29 Jan 2021 20:55:55 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT In-Reply-To: <20210129181519.69963-1-viniciustinti@gmail.com> References: <20210129181519.69963-1-viniciustinti@gmail.com> Subject: Re: [PATCH] drm/i915: Remove unreachable code From: Chris Wilson Cc: Nathan Chancellor , Nick Desaulniers , Vinicius Tinti , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Vinicius Tinti Date: Fri, 29 Jan 2021 20:55:54 +0000 Message-ID: <161195375417.17568.2762721732398065240@build.alporthouse.com> User-Agent: alot/0.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Vinicius Tinti (2021-01-29 18:15:19) > By enabling -Wunreachable-code-aggressive on Clang the following code > paths are unreachable. That code exists as commentary and, especially for sdvo, library functions that we may need in future. The ivb-gt1 case => as we now set the gt level for ivb, should we not enable the optimisation for ivb unaffected by the w/a? Just no one has taken the time to see if it causes a regression. For error state, the question remains whether we should revert to uncompressed data if the compressed stream is larger than the original. -Chris