Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3591862pxk; Tue, 29 Sep 2020 00:34:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyq0PNoGFpSLcp3G4q405DrPTi4LQmrhnkgUj2/llmkSn5dZLwPcor5aUnlgMEgNo2Z+oTu X-Received: by 2002:a05:6402:1212:: with SMTP id c18mr1781022edw.344.1601364858076; Tue, 29 Sep 2020 00:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601364858; cv=none; d=google.com; s=arc-20160816; b=QfuTiL5HmAOjDopVb8/dHdirF7zWLEDnUP6HQUFMlWfzibhThcyo7DcXk5gBmZj+gO jtfcDJQj7YwINLDRj1Em/+G/NhbvPGCXY3XkCUC2K94PucY/CnM89wLpOlbUoJdKC6M8 XcM13SVNNbLAZ+JNKLMXBRDHC/xjGOjnOAB9pfiO/v5IRKg4SAcJOiSJJN+FA+NOFImR dFxl65Lh8WwnwX0MdiXqN7G+TV6ka0Nnqlqe9TAL3Yc5xeZLsO3fgctrM2DGVfCCGS13 6Sr+aB95Wyfs52zmF4l3GFRSIqBTqLQ4RgIxo4T28togjAgjOcDBGR36uOOoOaKunfqk 9Fdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=0uoPzOVI1jdwxCzzSQZftoYEFSmbEP+XPL93ujLJ/78=; b=jiTViolCrd5sS9nzhynFxAvgoiTBm5fzktTZT2nLVbAs6Ix+AaPk2uoQAbCPOjrG+A bwdVZGzNDm7oV3dcvoFi9Y/Np5uE/uQ9I9VbR96lUmCS3QuMCyTsZaG9kEaAzTS5XxzM dUVUnfHOk7pHGh31AhMWPk75xN8nPAgGBAXS08tOF7TK62SImVMO92u91s00UStpqQB3 sBQ+sx3SvNyc+vRVB5+lC6FXf9pwVwr/ehaXV5Jfa4WW+o20+DWQtMVIcJCm4PaBUphY Qax/lbCjtMxdpXgPXmsX+hMZDvCO/jlobPyUOxZ/5/+zHjl2nthsYWguDIGoHphomvNG HRjQ== 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 m3si2487708edp.33.2020.09.29.00.33.54; Tue, 29 Sep 2020 00:34:18 -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 S1727403AbgI2HaP (ORCPT + 99 others); Tue, 29 Sep 2020 03:30:15 -0400 Received: from mga12.intel.com ([192.55.52.136]:1576 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbgI2HaP (ORCPT ); Tue, 29 Sep 2020 03:30:15 -0400 IronPort-SDR: UwxE/3y0e3Y20HW5P009s5Hi/iJWNM4xWLYxopyuOVHaktvcmUMx3HngpTwjO6KUr69LkSARyl cHEbpXggajGQ== X-IronPort-AV: E=McAfee;i="6000,8403,9758"; a="141539332" X-IronPort-AV: E=Sophos;i="5.77,317,1596524400"; d="scan'208";a="141539332" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 00:30:12 -0700 IronPort-SDR: kCpdJM79QM6ljb1NM5zqFnI2IByWgGBnuQ9BQLRacgDFF6XRelJeGoADijH5BH/wMpHOLvlL4n Zj5LH3ojEK3Q== X-IronPort-AV: E=Sophos;i="5.77,317,1596524400"; d="scan'208";a="489216932" Received: from dmcenean-mobl.ger.corp.intel.com (HELO localhost) ([10.252.31.147]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 00:30:08 -0700 From: Jani Nikula To: Matt Roper , Lucas De Marchi Cc: "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 In-Reply-To: <20200928231022.GF2157395@mdroper-desk1.amr.corp.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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> <20200928231022.GF2157395@mdroper-desk1.amr.corp.intel.com> Date: Tue, 29 Sep 2020 10:30:25 +0300 Message-ID: <87mu19nipa.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Sep 2020, Matt Roper wrote: > 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. Yeah, I know, my bad. BR, Jani. > > > Matt > >> >> Lucas De Marchi >> >> > >> > BR, >> > Jani. >> > >> > >> > -- >> > Jani Nikula, Intel Open Source Graphics Center -- Jani Nikula, Intel Open Source Graphics Center