Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751727AbeABFbd convert rfc822-to-8bit (ORCPT + 1 other); Tue, 2 Jan 2018 00:31:33 -0500 Received: from mga07.intel.com ([134.134.136.100]:12541 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751216AbeABFbc (ORCPT ); Tue, 2 Jan 2018 00:31:32 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,495,1508828400"; d="scan'208";a="7165388" From: "Shaikh, Azhar" To: "Shaikh, Azhar" , Jason Gunthorpe CC: "jarkko.sakkinen@linux.intel.com" , "peterhuewe@gmx.de" , "linux-security-module@vger.kernel.org" , "linux-integrity@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data Thread-Topic: [PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data Thread-Index: AQHTg4Pc4iQT2sM6Nkm3KvpW3RJZT6NgBKmwgAAGEJA= Date: Tue, 2 Jan 2018 05:31:30 +0000 Message-ID: <5FFFAD06ADE1CA4381B3F0F7C6AF582898A05E@ORSMSX109.amr.corp.intel.com> References: <1514865944-95086-1-git-send-email-azhar.shaikh@intel.com> <1514865944-95086-2-git-send-email-azhar.shaikh@intel.com> <20180102044044.GA29208@ziepe.ca> <5FFFAD06ADE1CA4381B3F0F7C6AF582898A03C@ORSMSX109.amr.corp.intel.com> In-Reply-To: <5FFFAD06ADE1CA4381B3F0F7C6AF582898A03C@ORSMSX109.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYmMyYjBhYmYtZTJlOS00M2YwLTkwNmEtZGFiNWVlNDg4MzBjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJjTDNPU290XC9jd3VXTmpjeVZibTdQNnFrXC9YUVwvOFQxVFBjWFBKS2dSMU9ZbWtxcjRoUTFcL2VZNGtsRjFJd3hKRSJ9 dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: >-----Original Message----- >From: linux-integrity-owner@vger.kernel.org [mailto:linux-integrity- >owner@vger.kernel.org] On Behalf Of Shaikh, Azhar >Sent: Monday, January 1, 2018 9:02 PM >To: Jason Gunthorpe >Cc: jarkko.sakkinen@linux.intel.com; peterhuewe@gmx.de; linux-security- >module@vger.kernel.org; linux-integrity@vger.kernel.org; linux- >kernel@vger.kernel.org >Subject: RE: [PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data > > > >>-----Original Message----- >>From: Jason Gunthorpe [mailto:jgg@ziepe.ca] >>Sent: Monday, January 1, 2018 8:41 PM >>To: Shaikh, Azhar >>Cc: jarkko.sakkinen@linux.intel.com; peterhuewe@gmx.de; linux-security- >>module@vger.kernel.org; linux-integrity@vger.kernel.org; linux- >>kernel@vger.kernel.org >>Subject: Re: [PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data >> >>On Mon, Jan 01, 2018 at 08:05:43PM -0800, Azhar Shaikh wrote: >> >>> - return tpm_chip_register(chip); >>> + rc = tpm_chip_register(chip); >>> + if (rc && is_bsw()) >>> + iounmap(priv->ilb_base_addr); >>> + >>> + return rc; >>> out_err: >>> tpm_tis_remove(chip); >>> + if (is_bsw()) >>> + iounmap(priv->ilb_base_addr); >>> + >>> return rc; >>> } >> >>I thought you were resending this to fix the above, why is is it still wonky? >> > >Oh! I fixed it in the second patch ("tpm: Keep CLKRUN enabled throughout >the duration of transmit_cmd()"). Should have fixed in this patch instead. My >bad, didn't see it was introduced in this patch. I thought it was part of second >patch. Will fix this. > On checking, the ops->clk_enable is not still introduced yet. It is introduced in the second patch. The cleanup is done in the next patch. So do you want me to still fix this here? >>Jason Regards, Azhar Shaikh