From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932818AbdBHLPp (ORCPT ); Wed, 8 Feb 2017 06:15:45 -0500 Received: from mga06.intel.com ([134.134.136.31]:41317 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754178AbdBHLOZ (ORCPT ); Wed, 8 Feb 2017 06:14:25 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,346,1477983600"; d="scan'208";a="62213394" From: Jarkko Sakkinen To: tpmdd-devel@lists.sourceforge.net Cc: linux-security-module@vger.kernel.org, Jerry Snitselaar , Jarkko Sakkinen , Jason Gunthorpe , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 0/3] Locality support for tpm_crb Date: Wed, 8 Feb 2017 13:11:34 +0200 Message-Id: <20170208111137.15153-1-jarkko.sakkinen@linux.intel.com> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The tpm_crb driver should follow the policy of reserving and relinquishing the locality it uses when multiple localities are used, like when TXT is another locality. [This is a resend of v3 as this has been asked from me for a few times now and there wasn't anything obvious to fix.] Jarkko Sakkinen (3): tpm_crb: map locality registers tpm_crb: encapsulate crb_wait_for_reg_32 tpm_crb: request and relinquish locality 0 drivers/char/tpm/tpm_crb.c | 185 +++++++++++++++++++++++++++++++++------------ 1 file changed, 137 insertions(+), 48 deletions(-) -- v2: added sanity check for start address of the control area v3: do locality request/relinquish as part of send/recv check priv->regs_h before using it just assing the base address to regs_h instead of using crb_map_res 2.9.3 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarkko Sakkinen Subject: [PATCH v3 0/3] Locality support for tpm_crb Date: Wed, 8 Feb 2017 13:11:34 +0200 Message-ID: <20170208111137.15153-1-jarkko.sakkinen@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Cc: linux-security-module-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jerry Snitselaar , open list List-Id: tpmdd-devel@lists.sourceforge.net The tpm_crb driver should follow the policy of reserving and relinquishing the locality it uses when multiple localities are used, like when TXT is another locality. [This is a resend of v3 as this has been asked from me for a few times now and there wasn't anything obvious to fix.] Jarkko Sakkinen (3): tpm_crb: map locality registers tpm_crb: encapsulate crb_wait_for_reg_32 tpm_crb: request and relinquish locality 0 drivers/char/tpm/tpm_crb.c | 185 +++++++++++++++++++++++++++++++++------------ 1 file changed, 137 insertions(+), 48 deletions(-) -- v2: added sanity check for start address of the control area v3: do locality request/relinquish as part of send/recv check priv->regs_h before using it just assing the base address to regs_h instead of using crb_map_res 2.9.3 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot