Message ID | 20230920185153.613706-1-srinivas.pandruvada@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4569409vqi; Wed, 20 Sep 2023 19:49:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeiryI0dhKoVR9QFpThoW4sYoUfG35G2wNXjncO5mx4wRViFh2O2yMW4Ux7nfkEEh6iGp4 X-Received: by 2002:a17:903:124b:b0:1b3:d4ed:8306 with SMTP id u11-20020a170903124b00b001b3d4ed8306mr4277091plh.19.1695264586257; Wed, 20 Sep 2023 19:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695264586; cv=none; d=google.com; s=arc-20160816; b=Le/R2yHD5KTJATRUeCqI0Y2TSjklvWHrYJOODkyjS7DidiPTGyIvp0ei9GWUhTHKGE 0RxgC19ANwG4Z3pqc3oXopoIwN7NcXjyaiMmbVWUcLSLp8XLp8AyUsurQBtMQ13QDerY Lw9Miu7JBgAJlhRgQP9NcU11Yblhd1gKSs6x8rVUquW98MOWhY9S628pRr0CGyWHxeri gECX6kS+x9sPX70Q2vPmslAHNmxFHFOgGVzKfb8gBmKxuj/2FCUtr9/PpIR567GjmLC2 lTjs8TtOM0JQ25pKpNKi4NzOtN19iZ1mYNy5k/+9fgfXAl/SgNkYXgjrCNg8Z2o5GCGh ssNg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=41xcW191JntumeD0Q7I1OoSB3ZX8+IiMePkhy+8/0mE=; fh=HlKkiquNc46jVE3LHXufgrfsbaUPEXN8C6VLDpazkiQ=; b=gA2MZfVJSotnjJCUkiJ91fd98taP5NbZHGXPNlZfw/P8Je5kABaEh7tF2Uu8+jx8an NU788qPaNGFiT5uWPv9UtFvh9YgPr9RC5D//rcbFnkvwa2HqLD+VKvtn5XTqaZu0Ezx2 KBrb63i3c2PoV2/16rpFwxjX82czBMiGIipPW5kfCi13kHYAeA5wd6gvul4cKxmKtqmi sYQi7vNuPAjItlRsezNswq7ZNZ3Q+U16fFRM4PLlBFistqk8uUa5EUrFPu8cfJDLpUJa AkwbSQesWgJIf4ShaYjvejD6Io/T9cY4vJbkeoQYZ7nx4e3XspkgHscJGXCpfxf3Q2sX 70FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lXkQnLPg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e18-20020a170902e0d200b001bd9c43c896si395722pla.287.2023.09.20.19.49.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 19:49:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lXkQnLPg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id DB47F81E7277; Wed, 20 Sep 2023 11:52:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229579AbjITSwJ (ORCPT <rfc822;ruipengqi7@gmail.com> + 28 others); Wed, 20 Sep 2023 14:52:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjITSwH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 20 Sep 2023 14:52:07 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17606AF; Wed, 20 Sep 2023 11:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695235922; x=1726771922; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=M54V96/a5JNvmtpGTO55S8B6KkQoazOnDcAbzhvWxAs=; b=lXkQnLPgYbiov/uheohU1+/fwSuuVVarDva+dUQsgBWtmG8XlznFwwzn XMGO6247NbPGMlrrJlJu2HDLUa5vgyGeFML2IMY2IeJ9UhywT5TfyhF9F zWK6R78CXGXg3AI5SO0FPtdNs/T8bjO8thXla0ZT6NKsDaMYbf0X9f2gM fWxePK+4L4N8l350JLthwCGW50RfXH/Ex2Oe+IfNUcXSK9QGfUsEkINo7 0mhsQJSACzDZfM8i5Y2vmK5e2NJebcBsq5QDAZPnvvEwov0yEqPWZG196 q2y9Z7ePzxLR0P+USCka240nIYtnMYqUktGVZm5R8K66h05R4HbFNbIxu A==; X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="377611672" X-IronPort-AV: E=Sophos;i="6.03,162,1694761200"; d="scan'208";a="377611672" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 11:52:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="812280570" X-IronPort-AV: E=Sophos;i="6.03,162,1694761200"; d="scan'208";a="812280570" Received: from spandruv-desk.jf.intel.com ([10.54.75.14]) by fmsmga008.fm.intel.com with ESMTP; 20 Sep 2023 11:52:01 -0700 From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> To: daniel.lezcano@linaro.org, rafael@kernel.org, rui.zhang@intel.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Subject: [PATCH linux-next] thermal: int340x: processor_thermal: Ack all PCI interrupts Date: Wed, 20 Sep 2023 11:51:53 -0700 Message-Id: <20230920185153.613706-1-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 20 Sep 2023 11:52:10 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777586510047468305 X-GMAIL-MSGID: 1777613758258490940 |
Series |
[linux-next] thermal: int340x: processor_thermal: Ack all PCI interrupts
|
|
Commit Message
srinivas pandruvada
Sept. 20, 2023, 6:51 p.m. UTC
All interrupts from the processor thermal PCI device requires ACK. This
is done by writing 0x01 at offset 0xDC in the config space. This is
already done for the thereshold interrupt. Extend this for the workload
hint interrupt.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
.../intel/int340x_thermal/processor_thermal_device_pci.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Wed, 2023-09-20 at 21:21 +0200, Rafael J. Wysocki wrote: > On Wed, Sep 20, 2023 at 8:52 PM Srinivas Pandruvada > <srinivas.pandruvada@linux.intel.com> wrote: > > > > All interrupts from the processor thermal PCI device requires ACK. > > This > > is done by writing 0x01 at offset 0xDC in the config space. This is > > already done for the thereshold interrupt. Extend this for the > > workload > > hint interrupt. > > > > Signed-off-by: Srinivas Pandruvada > > <srinivas.pandruvada@linux.intel.com> > > Is this a fix for one of the commits in linux-next? If so, which > one? This is on top of workload hints patches. I marked linux-next as they are not in mainline kernel. This can alternatively merged to e682b86211a1 thermal: int340x: Handle workload hint interrupts But not sure how to mark the commit id as they will change. Whatever you prefer. Thanks, Srinivas > > > --- > > .../intel/int340x_thermal/processor_thermal_device_pci.c | 3 > > ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git > > a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pc > > i.c > > b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pc > > i.c > > index 44b179ce9bc9..3c5ced79ead0 100644 > > --- > > a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pc > > i.c > > +++ > > b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pc > > i.c > > @@ -154,10 +154,11 @@ static irqreturn_t > > proc_thermal_irq_handler(int irq, void *devid) > > if (status) { > > /* Disable enable interrupt flag */ > > proc_thermal_mmio_write(pci_info, > > PROC_THERMAL_MMIO_INT_ENABLE_0, 0); > > - pci_write_config_byte(pci_info->pdev, 0xdc, 0x01); > > pkg_thermal_schedule_work(&pci_info->work); > > } > > > > + pci_write_config_byte(pci_info->pdev, 0xdc, 0x01); > > + > > return ret; > > } > > > > -- > > 2.40.1 > >
On Wed, Sep 20, 2023 at 9:29 PM srinivas pandruvada <srinivas.pandruvada@linux.intel.com> wrote: > > On Wed, 2023-09-20 at 21:21 +0200, Rafael J. Wysocki wrote: > > On Wed, Sep 20, 2023 at 8:52 PM Srinivas Pandruvada > > <srinivas.pandruvada@linux.intel.com> wrote: > > > > > > All interrupts from the processor thermal PCI device requires ACK. > > > This > > > is done by writing 0x01 at offset 0xDC in the config space. This is > > > already done for the thereshold interrupt. Extend this for the > > > workload > > > hint interrupt. > > > > > > Signed-off-by: Srinivas Pandruvada > > > <srinivas.pandruvada@linux.intel.com> > > > > Is this a fix for one of the commits in linux-next? If so, which > > one? > This is on top of workload hints patches. I marked linux-next as they > are not in mainline kernel. > > This can alternatively merged to > e682b86211a1 thermal: int340x: Handle workload hint interrupts > > But not sure how to mark the commit id as they will change. As a rule, commits in my linux-next branch don't change (they sometimes change, but that is not a common case), so you can use the current one. If it changes, I'll update the tag accordingly. I'm going to add a Fixes: tag pointing to the above commit to it. Thanks!
diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c index 44b179ce9bc9..3c5ced79ead0 100644 --- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c +++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c @@ -154,10 +154,11 @@ static irqreturn_t proc_thermal_irq_handler(int irq, void *devid) if (status) { /* Disable enable interrupt flag */ proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_INT_ENABLE_0, 0); - pci_write_config_byte(pci_info->pdev, 0xdc, 0x01); pkg_thermal_schedule_work(&pci_info->work); } + pci_write_config_byte(pci_info->pdev, 0xdc, 0x01); + return ret; }