Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3377911pxk; Mon, 28 Sep 2020 16:19:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpGegeZmcJFdjo7ljrSA7SeyMOgCnjE4VW+2E3ZTcZmBDswDJ8W0T/d+k2R6UnLEBtkbIg X-Received: by 2002:a50:88c6:: with SMTP id d64mr345079edd.141.1601335179513; Mon, 28 Sep 2020 16:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601335179; cv=none; d=google.com; s=arc-20160816; b=tSjmhVezml/85uHdGTb3otZ4O7vdhFnme2Imy387uPlRD3PAQ7simsd4XfGAHpNIPc r1GAayXSiuSBBzmszO/vB0TME9nnfPwq21odONNWXJ50Sy4bfyGO69s9O/WhazY61Pus 8N8MP77NqkDZ59aD8dhZ4TQ9hToL2DQDrB6OvHh1cKWZxV9BM+ei+KGuQV33VaZaXlTh 8EFCbgwBaC7vaZ3grzoTYKh6iEVTDWy7BvqD4Aoqz3KnhQmDp7bx8vofKYGudwgF5ecq ues//GjcBQydAUWzkt/5bUodHQQctFCgNPYK3auwcBXYwqjBuYZG0N3IpOTZydLQodVg W21Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=DsJ1+ojQwST75KNO5HQ07jjeJw34+Tx5MXf91ZAsC4E=; b=FfPyeqrkQcv+Fceo5TrdW7kbH5q6QoOa+o2oWczsfoNl712CjYBYLy996xvC2ecPy6 XG1ChvHDQ2KU0fJbosDZ32yBh/obXOmc+itrfFUNHeYQ3MnQRXxQAEfj064TN/hoQHo5 P+HqtcI6ADEEQAFXS6i5k+6xKikxml7iWg5uH9X7TF4cbUbXXXZfNclX0cuccF7b7OCl LblDLBJ/hIERcgEQwajfrMfCjVXraGY6PHsssIYGN4L0GEmCTMZyRzE9HXTPyosJ2a2v /EF55LW61A6gT4cUDC+jI8AzpWpXXB9thacz6H7BVDpOZP7WdyDqF+nHTHKkvSZSkxJn mGoQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oq13si1538100ejb.308.2020.09.28.16.19.10; Mon, 28 Sep 2020 16:19:39 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727007AbgI1XN2 (ORCPT + 99 others); Mon, 28 Sep 2020 19:13:28 -0400 Received: from mga14.intel.com ([192.55.52.115]:43207 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726984AbgI1XN2 (ORCPT ); Mon, 28 Sep 2020 19:13:28 -0400 IronPort-SDR: oOcRo+Z6RighYYP/VKtkCLsBqZNFJf5YUz6pvL2+BDKdYnOMi60eh6ylqfx2pR1VYg1+TurTli kurwS+PPh0dQ== X-IronPort-AV: E=McAfee;i="6000,8403,9758"; a="161305096" X-IronPort-AV: E=Sophos;i="5.77,315,1596524400"; d="scan'208";a="161305096" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2020 16:10:23 -0700 IronPort-SDR: jzzB2ktw+5o9UilhvKjWJ6uYd6yq1BpHpPLyEHNdX0M5ASEIiNL8oqeVQlfsxn+nq4yEki9aY6 sNlJlaGid8LQ== X-IronPort-AV: E=Sophos;i="5.77,315,1596524400"; d="scan'208";a="350003184" Received: from mdroper-desk1.fm.intel.com (HELO mdroper-desk1.amr.corp.intel.com) ([10.1.27.168]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2020 16:10:23 -0700 Date: Mon, 28 Sep 2020 16:10:22 -0700 From: Matt Roper To: Lucas De Marchi Cc: Jani Nikula , "Surendrakumar Upadhyay, TejaskumarX" , "Vivi, Rodrigo" , "airlied@linux.ie" , "daniel@ffwll.ch" , "intel-gfx@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "Ausmus, James" , "Souza, Jose" , "ville.syrjala@linux.intel.com" , "Pandey, Hariom" Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915/edp/jsl: Update vswing table for HBR and HBR2 Message-ID: <20200928231022.GF2157395@mdroper-desk1.amr.corp.intel.com> References: <20200928080931.246347-1-tejaskumarx.surendrakumar.upadhyay@intel.com> <20200928080931.246347-3-tejaskumarx.surendrakumar.upadhyay@intel.com> <87a6xaow40.fsf@intel.com> <871rilq0um.fsf@intel.com> <20200928230739.vpj22bwebqhtehuk@ldmartin-desk1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200928230739.vpj22bwebqhtehuk@ldmartin-desk1> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 28, 2020 at 04:07:39PM -0700, Lucas De Marchi wrote: > On Mon, Sep 28, 2020 at 08:15:29PM +0300, Jani Nikula wrote: > > On Mon, 28 Sep 2020, "Surendrakumar Upadhyay, TejaskumarX" wrote: > > > This is a good example of a potential trap that having > > > IS_ELKHARTLAKE() cover both ELK and JSP creates. An unsuspecting coder > > > might change the if ladder to have IS_ELKHARTLAKE() first, and the > > > subsequent IS_JASPERLAKE() branch would never be taken. > > > > > > BR, > > > Jani. > > > > > > Tejas : In that case I will put attention note in comment about > > > platform checks such that ladder distrubance can be avoided. What you > > > suggest? > > > The solution is to make IS_ELKHARTLAKE() mean ELK and only ELK. > > Since we are talking about the TLA for JSL in the other patch, for > elkhartlake it is EHL, not ELK. ELK is something else, but I'm not sure > what: > > $ git grep -w ELK -- drivers/gpu/drm/ > drivers/gpu/drm/i915/gem/i915_gem_stolen.c: IS_GM45(i915) ? "CTG" : "ELK", reg_val); > drivers/gpu/drm/i915/gem/i915_gem_stolen.c: * Whether ILK really reuses the ELK register for this is unclear. > drivers/gpu/drm/i915/intel_pm.c: * Not 100% sure which way ELK should go here as the > drivers/gpu/drm/i915/intel_pm.c: * assume ELK doesn't need this. Yeah, ELK = Eagle Lake, CTG = Cantiga. Both are old gen5 platforms IIRC. Matt > > Lucas De Marchi > > > > > BR, > > Jani. > > > > > > -- > > Jani Nikula, Intel Open Source Graphics Center -- Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795