Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp117165rdh; Mon, 18 Dec 2023 06:06:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXQasTPeL/nRpADSGkrJrYl1IGCRJNEdIHNeP6eBZqYespvUdyyZ4VlTVZWEpJrTbH0XtX X-Received: by 2002:a17:903:1c4:b0:1d3:6605:db01 with SMTP id e4-20020a17090301c400b001d36605db01mr8657739plh.64.1702908394665; Mon, 18 Dec 2023 06:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702908394; cv=none; d=google.com; s=arc-20160816; b=Dz2duzDZDFnDCyoJBJQUyuYg9unaX8ILx8n/+kVwTOnPBTRC7DZIxzE7FztOC6nCws js6xfDKrXrkqnAPJEaw5uG8p4lYmQzMFvaXEaVPDo+SdKJ9PBhTNyz8jX4uEb18RbA/a /QneasPYTbpxocNWO666iBiydf+Db628NYQqCp6O7HV/ouy0/A4Fl8ywOjZeMlYL8oS5 MdBaCHg5TzuVfsnm5IyaAhAIyX7o1ngp2MdDyKFGk+dYEsVloreYLUlf2ROVntioWUXs OT0LOh0yfB72koFsPG6YZSnJgh/hrUMLjwKeMNZ/JXCQJHanhJbgmNLyXlohCEY/hqI8 yvAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=801k8/cpcdJNojr//CVmwN6MefVG1M2oNgg9WBA1ID0=; fh=YT0S4Qj3vtF51c5uKm20T1UG02Ach6LjTvgbUTc/VEk=; b=v5dGif9fCzi9CozNQmCg4erAYM0vM98W72m7/7uAd5GaADtfUC1KJDBKaIQj0gj3j7 1quG3jzGGoGMSWggnoJNHNRYyPpOpoirpJx6shOW9xENvQjkUOwFw/+7+hj0cjMQhaaA oVLuO8bYMKjG/+alZcEe219mPXh6Qh/F095I2psqYKgDVueUqLVMmduGYCJi2S9AsVLU rbomsPJ/DRQkf9oM2pbXPvLpr8nyVRmZbq/CYFZfenT3twufXVJMKi5C/OUkipI7YBmr VCXGIIOwbFCLT4F5MQPEBVkgqsUGFsr2m1K4B0AKS2u/606GNZB2pUfy3q5dAqO4IanH DHDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L6KTsVxN; spf=pass (google.com: domain of linux-kernel+bounces-3801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id by35-20020a056a0205a300b005c200b11630si4087430pgb.45.2023.12.18.06.06.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 06:06:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L6KTsVxN; spf=pass (google.com: domain of linux-kernel+bounces-3801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D5104B236E1 for ; Mon, 18 Dec 2023 14:04:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D039E5BFAC; Mon, 18 Dec 2023 14:00:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="L6KTsVxN" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECBB73A1B0 for ; Mon, 18 Dec 2023 14:00:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702908038; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=801k8/cpcdJNojr//CVmwN6MefVG1M2oNgg9WBA1ID0=; b=L6KTsVxNMauOEH8ObwEhy+v+vFnuJuNL+ypl0yxVm8VUZrJ/evv6SBy+rfX5WBPVv7Ie39 F378m1vjb/oBgCsgT3qtOnTs9i3d+paD5yBO4OfsdOIwCq7xIbQAa8jADOV537tHwrf2KP i18lqAkttWL1YH9a2KNCp1XS2kYa3o4= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-296-Ptvz_gj-OB-61Q6mUWW5-A-1; Mon, 18 Dec 2023 09:00:34 -0500 X-MC-Unique: Ptvz_gj-OB-61Q6mUWW5-A-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a22f129e5acso170914866b.1 for ; Mon, 18 Dec 2023 06:00:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702908033; x=1703512833; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=801k8/cpcdJNojr//CVmwN6MefVG1M2oNgg9WBA1ID0=; b=m4Oe8bxdSdj4C2Cmqfu1hPSh4f1siPocl77MU849S3KSHyXryAVFiPc5BSJQ4EU8Fe FdtjgSuZMxelEEKjN1BWkm0xNgVZeaeBOtXwzCIcAMr6gryt4qwpVPsq4TMGKiDtKoTq TomcVaU9asz9CcFNh9JmHdovwNGxuwfqKfP5bCfeizGjGUwiZBgYtnwWvYgd2Kx6gaq2 tmkMHo84Ta6cdbSaLK4dbhQgUeazwpKPcaggTZ/uAsCV0TL6l6o7i64UvhEsjPgym3Bp Q2zVRZbqxF0ezkDanbcb52BPqE/wDj7UU9Dde3NawEok2vvNMe5hhwY5wS6QWuBe3Ecc TXQw== X-Gm-Message-State: AOJu0YxmMNQVqrnW78u3rt8SJ8fTJENIcWj1uK+LLshwbnQOs7HUG/oZ j4ZyWDyPScE1PLxq5cmUC3SSPq292FL2hJ6sQObl3sWnCr3IN3amkq8ue8CpzFbwe/zbbl5ngNh TIsNh0vGs2qCMoo2O9kSCrC5B1ps6YRjw X-Received: by 2002:a17:907:72c1:b0:a23:6462:4d66 with SMTP id du1-20020a17090772c100b00a2364624d66mr609513ejc.85.1702908033012; Mon, 18 Dec 2023 06:00:33 -0800 (PST) X-Received: by 2002:a17:907:72c1:b0:a23:6462:4d66 with SMTP id du1-20020a17090772c100b00a2364624d66mr609498ejc.85.1702908032679; Mon, 18 Dec 2023 06:00:32 -0800 (PST) Received: from [10.40.98.142] ([78.108.130.194]) by smtp.gmail.com with ESMTPSA id cx7-20020a170907168700b009fc576e26e6sm14059747ejd.80.2023.12.18.06.00.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Dec 2023 06:00:31 -0800 (PST) Message-ID: <9234691b-5667-4c6c-a1d0-0bea386cf31e@redhat.com> Date: Mon, 18 Dec 2023 15:00:31 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] platform/x86/intel/pmc: Fix in pmc_core_ssram_get_pmc() Content-Language: en-US To: rjingar , irenic.rajneesh@gmail.com, david.e.box@intel.com, ilpo.jarvinen@linux.intel.com, markgross@kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231216011702.1976408-1-rajvi.jingar@linux.intel.com> From: Hans de Goede In-Reply-To: <20231216011702.1976408-1-rajvi.jingar@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 12/16/23 02:17, rjingar wrote: > From: Rajvi Jingar > > Passing PMC_IDX_MAIN in pmc_core_pmc_add() adds only primary pmc to pmcdev. > Use pmc_idx instead to add all available pmcs. > > Fixes: a01486dc4bb1 ("platform/x86/intel/pmc: Cleanup SSRAM discovery") > Signed-off-by: Rajvi Jingar Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > drivers/platform/x86/intel/pmc/core_ssram.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/intel/pmc/core_ssram.c b/drivers/platform/x86/intel/pmc/core_ssram.c > index 3501c7bd6b33..55e54207987c 100644 > --- a/drivers/platform/x86/intel/pmc/core_ssram.c > +++ b/drivers/platform/x86/intel/pmc/core_ssram.c > @@ -287,7 +287,7 @@ pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset) > if (!map) > return -ENODEV; > > - return pmc_core_pmc_add(pmcdev, pwrm_base, map, PMC_IDX_MAIN); > + return pmc_core_pmc_add(pmcdev, pwrm_base, map, pmc_idx); > } > > int pmc_core_ssram_init(struct pmc_dev *pmcdev)