All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhou Wang <wangzhou1@hisilicon.com>
To: Alex Williamson <alex.williamson@redhat.com>,
	Will Deacon <will.deacon@arm.com>
Cc: <linux-arm-kernel@lists.infradead.org>,
	Linux PCI <linux-pci@vger.kernel.org>, <wangzhou1@hisilicon.com>
Subject: [Question] PCI ACS is broken for ARM SMMU v3?
Date: Thu, 31 Aug 2017 22:21:00 +0800	[thread overview]
Message-ID: <59A81B4C.3020402@hisilicon.com> (raw)

Hi Will and Alex,

pci_request_acs is called in drivers/iommu/arm-smmu-v3.c to set pci_acs_enable.

PCI subsystem tries to enable ACS as below:

	pci_device_add
		--> pci_init_capabilities
			--> pci_enable_acs

in ACPI PCI driver. However, ACPI PCI driver will be called before SMMU v3 driver,
which will lead pci_enable_acs to return directly as pci_acs_enable is not set
before SMMU v3 driver loading.

I think this is a bug, what do you think about this problem?

Best,
Zhou

WARNING: multiple messages have this Message-ID (diff)
From: wangzhou1@hisilicon.com (Zhou Wang)
To: linux-arm-kernel@lists.infradead.org
Subject: [Question] PCI ACS is broken for ARM SMMU v3?
Date: Thu, 31 Aug 2017 22:21:00 +0800	[thread overview]
Message-ID: <59A81B4C.3020402@hisilicon.com> (raw)

Hi Will and Alex,

pci_request_acs is called in drivers/iommu/arm-smmu-v3.c to set pci_acs_enable.

PCI subsystem tries to enable ACS as below:

	pci_device_add
		--> pci_init_capabilities
			--> pci_enable_acs

in ACPI PCI driver. However, ACPI PCI driver will be called before SMMU v3 driver,
which will lead pci_enable_acs to return directly as pci_acs_enable is not set
before SMMU v3 driver loading.

I think this is a bug, what do you think about this problem?

Best,
Zhou

             reply	other threads:[~2017-08-31 14:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-31 14:21 Zhou Wang [this message]
2017-08-31 14:21 ` [Question] PCI ACS is broken for ARM SMMU v3? Zhou Wang
2017-09-04 12:33 ` Zhou Wang
2017-09-04 12:33   ` Zhou Wang
2017-09-04 15:59   ` Lorenzo Pieralisi
2017-09-04 15:59     ` Lorenzo Pieralisi
2017-09-05 12:47     ` Zhou Wang
2017-09-05 12:47       ` Zhou Wang
2017-09-06  9:55       ` Lorenzo Pieralisi
2017-09-06  9:55         ` Lorenzo Pieralisi

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=59A81B4C.3020402@hisilicon.com \
    --to=wangzhou1@hisilicon.com \
    --cc=alex.williamson@redhat.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=will.deacon@arm.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.