Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3378428pxk; Mon, 28 Sep 2020 16:20:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySspNgIsFTgVhacKuWmizNbMcyAXvO/58X+uyySv1Ib+pr2UpkLJnh4CS5r2rjrV5D3S0V X-Received: by 2002:a05:6402:3075:: with SMTP id bs21mr368832edb.236.1601335239406; Mon, 28 Sep 2020 16:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601335239; cv=none; d=google.com; s=arc-20160816; b=VtLhuJuJw4rvUZ6zfPF253/AJu1kRW+EdWzKOPN0DFlQgUS3sHASOluvj0h62pHwu7 aHcZYVA5NC+c+0PS7sMtxRYzufp62K4SLEtlLGnjjcln+PSxxDa34B5EbivYfB4TJbMQ 0SFk9dDEpgxC5RTw8hI+R8wtPCtoIsncwHkXi3kckdMinU0rxa95+1Ar9reOITiidiRI SeH1iKHZqW4Rc0dOkwhvisJ8jZgNqJ9zUMzUAtHtZhEb2JsqEB8upV/2Z5AzcEV1mCFe cr07GI810ZWftxZKUZcn49hjTyJ9utTtBLXex4cQ+w65yD8dgr1tFE4GiFFNw4SdlsPM 9m8A== 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=Pk8xCSchyh7Wap0zHoPJo4jlm8+VH51hMDD9LAwED4c=; b=uUrdRMdshWxmT7OZmJISvWZLYM0KJSVK6iQAqWOsZRjrwTmjCwt7ywCcBmS1gxEy8+ inyTeZ9WG7INcqrEBSAgRLisFz0xTSUB04W7BommKsVFEGGUuKRaoFBzudM+iMvDSzmc Ej+mog1Ts0ssQbCsxY3xmxHarNT8x/KBD2VgxKfP2olEwkB5himKG3lyy01aMSFQQfF1 z6bj1SrtcQ6+2s2XnBfsDTHtlhf7ar6sS1e+4yQELWLeXFszWto9lwYScxjbb6A2RwLS gUs0xSS1y//uI6KTH9sChNkOJDPdeempOn3H2cehLizhNcb+kZIX9c+JiMN4TAl+iVJ/ IZSw== 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 bk4si1503485ejb.215.2020.09.28.16.20.07; Mon, 28 Sep 2020 16:20: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 S1727000AbgI1XPX (ORCPT + 99 others); Mon, 28 Sep 2020 19:15:23 -0400 Received: from mga01.intel.com ([192.55.52.88]:30710 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727251AbgI1XOq (ORCPT ); Mon, 28 Sep 2020 19:14:46 -0400 IronPort-SDR: eayjO9fC1DYqjeGB8m/ntb/tH1UZk5ZyOZErM4Q288iXryDCshcNFobk4ox07iQsoYWPULLHCb OG1ORKdmDmZQ== X-IronPort-AV: E=McAfee;i="6000,8403,9758"; a="180234029" X-IronPort-AV: E=Sophos;i="5.77,315,1596524400"; d="scan'208";a="180234029" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2020 16:07:40 -0700 IronPort-SDR: 9XkV9aLbK1uAODE88byKKp4MRaliHvhMU2hA+PTmt3T8XPM+w0ywCelOZNty1UJdqIhZAm4dv8 RTFYnpFF8n1g== X-IronPort-AV: E=Sophos;i="5.77,315,1596524400"; d="scan'208";a="340597549" Received: from pchilaka-mobl.amr.corp.intel.com (HELO ldmartin-desk1) ([10.212.247.146]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2020 16:07:39 -0700 Date: Mon, 28 Sep 2020 16:07:39 -0700 From: Lucas De Marchi To: Jani Nikula 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" , "Roper, Matthew D" , "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: <20200928230739.vpj22bwebqhtehuk@ldmartin-desk1> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <871rilq0um.fsf@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Lucas De Marchi > >BR, >Jani. > > >-- >Jani Nikula, Intel Open Source Graphics Center