Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1437305rdh; Mon, 25 Sep 2023 12:47:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPYc33ZtePKC797PrQdwlXTn6qhqujvWuBS/QW6UXImb6pBzCnlAk1kmwqmcYroiB02gJb X-Received: by 2002:a9d:62c9:0:b0:6b8:7880:de9 with SMTP id z9-20020a9d62c9000000b006b878800de9mr10086565otk.19.1695671270965; Mon, 25 Sep 2023 12:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695671270; cv=none; d=google.com; s=arc-20160816; b=ooGTnWIgBpdfluGIw474PXfah6kxEH6dbc4uccK9KCLaTUFh3DpZIDe4sn2qmFvq9d a3FpAV95qXrDKBYckKIZ+qk0vVcijIpiwVuRHJYdJwS7ilrGpWnhFlTE8UH2j1hdBqzo GR2THNSx6FxVntpRPOCAeuMtga13fK0TQQtz8rFF/X1LXMSwNw/RNiXhCx4f2XIIyrJb B+GR6bH9fgI8a7ZWjUEqsQZWK1m/xAp6Bvsc4YG7mnMQDRzVTMiBQ4a8JBDKIdmIzzvM zCu8Vp6mvSsi9XkbVYDSAUJRiaJLtXFEkuzozZy1leUKAdR19WSAFCQIkbeNxbnQqOd3 exhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EAfvn5Umz0Xm32CW9jU3KWE1v6BcGMGPVKtXd2FLkXs=; fh=WxcXzAXi1awalX5nBNdKiu2pCszhVA/a0vtqlN5we7w=; b=a+Cbb+19j5MK2c1NYW4i5zoQmpd8V5VwCeUvbBqEiOZmaPFI2Cn+wW4JUXb7tat4S/ FUkOg9cpEeHS2Ae1nTpTXB97Kn5RgrDRu7q5bB9O5kvtjLn9hok8FRJZm6ZdFjcFfxi3 M0G78YBq0ICGgTkZWZVI+JC7S2B31u7kqCpWK+PTCTCa4Ko4svTg+YUj6J9dWAeoPC99 H8ScRjYq/1A8kkOrjqRRveky5uiTZgfaZrQUzinAKfT2SfEW5ZDWcDa2vnvDTqdmTTu+ zMiDh4hROvYH13v02lydp1MvIeZIrumFrw5ls0OeeBfJJFmZwmug9pVoVAUwmufgOWFM dpQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Me/Jignt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id ca13-20020a056a02068d00b005789fd9b2ebsi12345469pgb.69.2023.09.25.12.47.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 12:47:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Me/Jignt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2D4B68073DF1; Mon, 25 Sep 2023 12:46:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233368AbjIYTqK (ORCPT + 99 others); Mon, 25 Sep 2023 15:46:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233296AbjIYTqG (ORCPT ); Mon, 25 Sep 2023 15:46:06 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FDA510C; Mon, 25 Sep 2023 12:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695671160; x=1727207160; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iN3fQmnFkelTRYjRoB7okJVo4cjl4KcrIYSO1I1EF78=; b=Me/JigntKOShlBpmUXO1X9PIrlQefMkBCHmLLQzsqBoZvUIrUzlU+dcK wPNwwsaMO5IlueTdHMMuZM67faE7GTvDCgNI/aHDWs82TJqVTlAsTfcuS xHTgfw1qoXgULZSgTFQoWXXJUwPuTmWx/UIvXorT4JOwmGXxqhJX7/3s3 cZJAA3nnE0NHpL3nNKTEDN5KlmEtkW0Pifs0W5AOIeawtQbrVkDOtdvhb 3GO+3nNq/DOgj/Bk10l8AV4yOW9NAjSvguSTi8Pz1Hek1RLxcrtJckt1t N5Xd9ji/3kRD3jnow26etdIm1yUahI7aQ/aMiggzQkoJ2nBrOc7gUijEi Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="380233037" X-IronPort-AV: E=Sophos;i="6.03,176,1694761200"; d="scan'208";a="380233037" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 12:45:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="814114297" X-IronPort-AV: E=Sophos;i="6.03,176,1694761200"; d="scan'208";a="814114297" Received: from spandruv-desk.jf.intel.com ([10.54.75.14]) by fmsmga008.fm.intel.com with ESMTP; 25 Sep 2023 12:45:57 -0700 From: Srinivas Pandruvada To: hdegoede@redhat.com, markgross@kernel.org, ilpo.jarvinen@linux.intel.com, andriy.shevchenko@linux.intel.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH 2/3] platform/x86: ISST: Allow level 0 to be not present Date: Mon, 25 Sep 2023 12:45:54 -0700 Message-Id: <20230925194555.966743-3-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230925194555.966743-1-srinivas.pandruvada@linux.intel.com> References: <20230925194555.966743-1-srinivas.pandruvada@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 25 Sep 2023 12:46:19 -0700 (PDT) It is possible that SST level 0 or base level is not present in some configurations. So don't set level 0 mask in level_en_mask by default. Signed-off-by: Srinivas Pandruvada --- drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c index 48465636aadb..e6d84ce0e7a5 100644 --- a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c +++ b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c @@ -372,9 +372,6 @@ static int sst_main(struct auxiliary_device *auxdev, struct tpmi_per_power_domai /* Read PP header */ *((u64 *)&pd_info->pp_header) = readq(pd_info->sst_base + pd_info->sst_header.pp_offset); - /* Force level_en_mask level 0 */ - pd_info->pp_header.level_en_mask |= 0x01; - mask = 0x01; levels = 0; for (i = 0; i < 8; ++i) { -- 2.41.0