Received: by 10.223.185.116 with SMTP id b49csp2167472wrg; Thu, 22 Feb 2018 09:09:00 -0800 (PST) X-Google-Smtp-Source: AH8x2279VkJpGHj8r3OAxEHEfhRP/BXPZLhmxkY+tP2EYrbFOrp3MggHWr5lEcCvW9CidHIDKrKj X-Received: by 2002:a17:902:6805:: with SMTP id h5-v6mr7243402plk.46.1519319340027; Thu, 22 Feb 2018 09:09:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519319339; cv=none; d=google.com; s=arc-20160816; b=KFl9hGYapWUH5qZ/uc0movdNCRFdi7viO88eQvNJ4OkSpctuABkZpyOfqhFslR6Esc UAuoCXe0oQDSYqWyv+Y9jNKVXDsDkyDqnuH2lr84oZIihO3MhOivEj+JhzW6cfS9PwyX Yj7/1zr/1J5mLjpg4tEC6Ih/ugYgu9OyLxStJ89kSGZnlko41J8xt2okin8ix5nGbXSA cW0JRPatoZxr77FeF/Qqh+9xtcIXM5eFvaN7rosyoRMR/o2uF6Pt2AKmziNgUccToCPJ Z7yUL/YwJiYTXZIMHQ2DlkkhugzJMfRB5P3MZOiDIPLwBagaAeonseIH8ozest6J22nu CUtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=XSTAQTvziA+lwZz1diT5Rj7EesMJiHBG2E6wVBJ9x9s=; b=BVc9fqIzDI0WzVk1jFL3BSwOPM7kfY0QdickTMSeSrfAFY2UyJ57zYoainiNmcbegw fow7lHtcXnMBl48/xiylSIFHjBUyHtv5JXDF+byopuJ9K1pMzhrwIxmA+YUmNSkHChAw uxAILOEnwGZrWTuOVUqMLJmdaPR6/4tsCgHBv0sD3Gf/dTYLaJRNNrBFkLJNjDzggcdc rRVmcQbXv+m4cSLNv8FtZQwbpYf3rzobRrBA8FJN4gq2agI1NfgbukV+ug5HUKzdnh9p A2ojDM3wjAW63KaQnjPWXZ5PlMYEorzFaVH7xmDFqOmfkqKCfms0ibGGhrgGclhxakNl 6qbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10si269364pgn.140.2018.02.22.09.08.45; Thu, 22 Feb 2018 09:08:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933378AbeBVRHd (ORCPT + 99 others); Thu, 22 Feb 2018 12:07:33 -0500 Received: from mga14.intel.com ([192.55.52.115]:22972 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933139AbeBVRHc (ORCPT ); Thu, 22 Feb 2018 12:07:32 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Feb 2018 09:07:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,378,1515484800"; d="scan'208";a="33360573" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.7.199.155]) by orsmga001.jf.intel.com with ESMTP; 22 Feb 2018 09:07:30 -0800 Date: Thu, 22 Feb 2018 09:09:29 -0800 From: Jacob Pan To: Yves-Alexis Perez Cc: "Raj, Ashok" , Joerg Roedel , Sohil Mehta , Alex Williamson , David Woodhouse , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Gayatri Kammela , Ravi V Shankar , Andy Shevchenko , Lu Baolu , Fenghua Yu , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v7 0/5] Add Intel IOMMU debugfs support Message-ID: <20180222090929.12cc8344@jacob-builder> In-Reply-To: <1519285717.2388.11.camel@debian.org> References: <1517619001-148586-1-git-send-email-sohil.mehta@intel.com> <20180213140303.42mbzfxpypljy37l@8bytes.org> <20180213214002.GA27066@otc-nc-03> <1518992132.2542.5.camel@debian.org> <20180220142512.039309aa@jacob-builder> <1519285717.2388.11.camel@debian.org> Organization: OTC X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Feb 2018 08:48:37 +0100 Yves-Alexis Perez wrote: > On Tue, 2018-02-20 at 14:25 -0800, Jacob Pan wrote: > > I didn't know about chipsec but reading the code seems to rely on an > > out-of-tree kernel module. I don't think it matches what we need > > here. > > Yes good indeed, I had forgot about that. Maybe the userland part is > still useful, but there's definitely a need for (protected) access to > privileged memory (and access to /dev/mem is less practical than > debugfs, I guess). > Another reason we can't use /dev/mem is that the context entries are not static, they are created for each device when the first map() comes. So we need to rely on the list in the intel iommu driver to dump the context. > Regards, [Jacob Pan]