From: Jani Nikula <jani.nikula@linux.intel.com>
To: Radhakrishna Sripada <radhakrishna.sripada@intel.com>,
intel-gfx@lists.freedesktop.org
Cc: Ashok Raj <ashok.raj@intel.com>
Subject: Re: [Intel-gfx] [topic/core-for-ci v2] iommu/vt-d: Check domain flags before setting snp bit in page-control
Date: Fri, 25 Aug 2023 09:54:16 +0300 [thread overview]
Message-ID: <87ttsn3947.fsf@intel.com> (raw)
In-Reply-To: <20230824224249.365665-1-radhakrishna.sripada@intel.com>
On Thu, 24 Aug 2023, Radhakrishna Sripada <radhakrishna.sripada@intel.com> wrote:
> From: Ashok Raj <ashok.raj@intel.com>
>
The *why* goes here, along with a link to a gitlab issue.
Please don't expect topic/core-for-ci to have lower standards than any
other branches. That's not the case. On the contrary, you'll need the
*additional* justification for the commit being in topic/core-for-ci,
and the gitlab issue.
BR,
Jani.
> Signed-off-by: Ashok Raj <ashok.raj@intel.com>
> Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
> ---
> drivers/iommu/intel/iommu.c | 2 +-
> drivers/iommu/intel/pasid.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
> index 5c8c5cdc36cf..71da6f818e96 100644
> --- a/drivers/iommu/intel/iommu.c
> +++ b/drivers/iommu/intel/iommu.c
> @@ -2150,7 +2150,7 @@ __domain_mapping(struct dmar_domain *domain, unsigned long iov_pfn,
> if ((prot & (DMA_PTE_READ|DMA_PTE_WRITE)) == 0)
> return -EINVAL;
>
> - attr = prot & (DMA_PTE_READ | DMA_PTE_WRITE | DMA_PTE_SNP);
> + attr = prot & (DMA_PTE_READ | DMA_PTE_WRITE);
> attr |= DMA_FL_PTE_PRESENT;
> if (domain->use_first_level) {
> attr |= DMA_FL_PTE_XD | DMA_FL_PTE_US | DMA_FL_PTE_ACCESS;
> diff --git a/drivers/iommu/intel/pasid.c b/drivers/iommu/intel/pasid.c
> index c5d479770e12..a057ecf84d82 100644
> --- a/drivers/iommu/intel/pasid.c
> +++ b/drivers/iommu/intel/pasid.c
> @@ -538,7 +538,7 @@ int intel_pasid_setup_first_level(struct intel_iommu *iommu,
> if (flags & PASID_FLAG_FL5LP)
> pasid_set_flpm(pte, 1);
>
> - if (flags & PASID_FLAG_PAGE_SNOOP)
> + if ((flags & PASID_FLAG_PAGE_SNOOP) && ecap_sc_support(iommu->ecap))
> pasid_set_pgsnp(pte);
>
> pasid_set_domain_id(pte, did);
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2023-08-25 6:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 22:42 [Intel-gfx] [topic/core-for-ci v2] iommu/vt-d: Check domain flags before setting snp bit in page-control Radhakrishna Sripada
2023-08-24 23:51 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for iommu/vt-d: Check domain flags before setting snp bit in page-control (rev2) Patchwork
2023-08-25 0:07 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-08-25 6:54 ` Jani Nikula [this message]
2023-08-25 14:15 ` [Intel-gfx] [topic/core-for-ci v2] iommu/vt-d: Check domain flags before setting snp bit in page-control Sripada, Radhakrishna
2023-08-25 17:23 ` Rodrigo Vivi
2023-08-26 0:47 ` Sripada, Radhakrishna
2023-08-25 11:58 ` [Intel-gfx] ✓ Fi.CI.IGT: success for iommu/vt-d: Check domain flags before setting snp bit in page-control (rev2) Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ttsn3947.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=ashok.raj@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=radhakrishna.sripada@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.