pcibios_bus_to_resource()
-v6: use pci_find_bus_resource()
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
Cc: sparcli...@vger.kernel.org
---
arch/sparc/kernel/pci.c| 1 +
arch/sparc/kernel/pci_c
pcibios_bus_to_resource()
-v6: use pci_find_bus_resource()
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
Cc: sparcli...@vger.kernel.org
---
arch/sparc/kernel/pci.c| 1 +
arch/sparc/kernel/pci_common.c | 59 ++
arch/sparc/kernel/pci_impl.h | 1
If host bridge does not have mmio64 above 4G, We don't need to
treat device non-pref mmio64 as as pref mmio64.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
drivers/pci/setup-bus.c | 2 +-
1 file changed, 1 insertion(+), 1 delet
check them for
child device resources.
-v2: check all bus resources instead of just res[15].
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
drivers/pci/setup-bus.c | 31 +--
1 file changed, 29 insertions(+),
If host bridge does not have mmio64 above 4G, We don't need to
treat device non-pref mmio64 as as pref mmio64.
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
---
drivers/pci/setup-bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/setup-bus.c b/drivers/pci
check them for
child device resources.
-v2: check all bus resources instead of just res[15].
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
---
drivers/pci/setup-bus.c | 31 +--
1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/setup-bus.c b
Same as sparc version.
Make resource with consistent sequence
like other arch or directly from pci_read_bridge_bases(),
even when non-pref mmio is missing, or out of ordering in firmware reporting.
Just hold i = 1 for non pref mmio, and i = 2 for pref mmio.
Signed-off-by: Yinghai Lu <y
all.
The patch restore to old logic:
when host bridge does not have has_mem64, put children pref mmio64 and
pref mmio32 all under bridges pref bars.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
drivers/pci/bus.c | 4 +++-
dr
mmio64 and pref mmio32 under bridge pref bar.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
drivers/pci/probe.c | 7 +++
include/linux/pci.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/drivers/pci/probe.c b/drivers/pci/p
Add pci_find_bus_resource() to return bus resource for input resource.
In some case, we may only have bus instead of dev.
It is same as pci_find_parent_resource, but take bus as input.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
---
drivers/pci/pci.c
Same as sparc version.
Make resource with consistent sequence
like other arch or directly from pci_read_bridge_bases(),
even when non-pref mmio is missing, or out of ordering in firmware reporting.
Just hold i = 1 for non pref mmio, and i = 2 for pref mmio.
Signed-off-by: Yinghai Lu
Cc
all.
The patch restore to old logic:
when host bridge does not have has_mem64, put children pref mmio64 and
pref mmio32 all under bridges pref bars.
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
---
drivers/pci/bus.c | 4 +++-
drivers/pci/setup-bus.c | 13 +
drivers/pci/se
mmio64 and pref mmio32 under bridge pref bar.
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
---
drivers/pci/probe.c | 7 +++
include/linux/pci.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 5d11dec..90091fa 100644
--- a/drivers/pci
Add pci_find_bus_resource() to return bus resource for input resource.
In some case, we may only have bus instead of dev.
It is same as pci_find_parent_resource, but take bus as input.
Signed-off-by: Yinghai Lu
---
drivers/pci/pci.c | 27 ---
include/linux/pci.h | 2
or support 64bit mmio.
-v13: update patchset with pci/resource that have pci_resource_to_user
changes. date 2016-06-17
Hope we can get them into v4.8.
Thanks
Yinghai
Yinghai Lu (16):
PCI: Let pci_mmap_page_range() take resource address
PCI: Remove __pci_mmap_make_offset()
PCI: Check
<david.ah...@oracle.com>
Tested-by: David Ahern <david.ah...@oracle.com>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=81431
Tested-by: TJ <li...@iam.tj>
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
Cc: sparcli..
ove change in pci_resource_to_user()
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
Cc: sparcli...@vger.kernel.org
---
arch/sparc/kernel/pci.c| 6 +++---
arch/sparc/kernel/pci_common.c | 32
arch/sparc/kernel/pci_impl.
in pci_mmap_fits().
-v2: add pci_user_to_resource and remove __pci_mmap_make_offset
-v3: pass resource pointer with pci_mmap_page_range()
-v4: put __pci_mmap_make_offset() removing to following patch
seperate /sys io access alignment checking to another patch
updated after Bjorn's pci_r
On Fri, Jun 17, 2016 at 12:52 PM, Bjorn Helgaas wrote:
>>
>> and respin the whole patchset today.
>
> I added your acks and pushed the result to pci/resource. I'll also
> post these formally on the list so they're easier to find.
Please review patchset v13 that is against
or support 64bit mmio.
-v13: update patchset with pci/resource that have pci_resource_to_user
changes. date 2016-06-17
Hope we can get them into v4.8.
Thanks
Yinghai
Yinghai Lu (16):
PCI: Let pci_mmap_page_range() take resource address
PCI: Remove __pci_mmap_make_offset()
PCI: Check
rn
Tested-by: David Ahern
Link: https://bugzilla.kernel.org/show_bug.cgi?id=81431
Tested-by: TJ
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
Cc: sparcli...@vger.kernel.org
---
arch/sparc/kernel/pci_common.c | 2 +-
drivers/pci/pci.c | 8 +---
drivers/pci/pci.h
ove change in pci_resource_to_user()
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
Cc: sparcli...@vger.kernel.org
---
arch/sparc/kernel/pci.c| 6 +++---
arch/sparc/kernel/pci_common.c | 32
arch/sparc/kernel/pci_impl.h | 4
3 files changed, 31 insertions(+), 11
in pci_mmap_fits().
-v2: add pci_user_to_resource and remove __pci_mmap_make_offset
-v3: pass resource pointer with pci_mmap_page_range()
-v4: put __pci_mmap_make_offset() removing to following patch
seperate /sys io access alignment checking to another patch
updated after Bjorn's pci_r
On Fri, Jun 17, 2016 at 12:52 PM, Bjorn Helgaas wrote:
>>
>> and respin the whole patchset today.
>
> I added your acks and pushed the result to pci/resource. I'll also
> post these formally on the list so they're easier to find.
Please review patchset v13 that is against your new pci/resource
After
PCI: Let pci_mmap_page_range() take resource address
No user for __pci_mmap_make_offset in those arch.
Remove them.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Cc: linuxppc-...@lists.ozlabs.org
Cc: sparcli...@vger.kernel.org
Cc: linux-xte...@linux-xtensa.org
---
arch/microbla
After
PCI: Let pci_mmap_page_range() take resource address
No user for __pci_mmap_make_offset in those arch.
Remove them.
Signed-off-by: Yinghai Lu
Cc: linuxppc-...@lists.ozlabs.org
Cc: sparcli...@vger.kernel.org
Cc: linux-xte...@linux-xtensa.org
---
arch/microblaze/pci/pci-common.c | 63
idge_bases(),
even when non-pref mmio is missing, or out of ordering in firmware reporting.
Just hold i = 1 for non pref mmio, and i = 2 for pref mmio.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
Cc: sparcli...@vger.kernel.org
---
arch/
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Cc: "David S. Miller" <da...@davemloft.net>
Cc: sparcli...@vger.kernel.org
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
arch/sparc/kernel/of_device_32.c | 5 +++--
arch/spa
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Cc: Grant Likely <grant.lik...@linaro.org>
Cc: Rob Herring <robh...@kernel.org>
Cc: devicet...@vger.kernel.org
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
drivers/of/address.c | 4
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org>
Cc: Paul Mackerras <pau...@samba.org>
Cc: Michael Ellerman <m...@ellerman.id.au>
Cc: Gavin Shan <gws...@linux.vnet.ibm.com>
Cc: Yiji
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu
Cc: Grant Likely
Cc: Rob Herring
Cc: devicet...@vger.kernel.org
Tested-by: Khalid Aziz
---
drivers/of/address.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/of/address.c b/drivers/of/address.c
index
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu
Cc: Benjamin Herrenschmidt
Cc: Paul Mackerras
Cc: Michael Ellerman
Cc: Gavin Shan
Cc: Yijing Wang
Cc: Anton Blanchard
Cc: linuxppc-...@lists.ozlabs.org
---
arch/powerpc/kernel/pci_of_scan.c | 4 +++-
1 file changed, 3 insertions
idge_bases(),
even when non-pref mmio is missing, or out of ordering in firmware reporting.
Just hold i = 1 for non pref mmio, and i = 2 for pref mmio.
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
Cc: sparcli...@vger.kernel.org
---
arch/sparc/kernel/pci.c | 8 +++-
1 file changed, 7 insert
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu
Cc: "David S. Miller"
Cc: sparcli...@vger.kernel.org
Tested-by: Khalid Aziz
---
arch/sparc/kernel/of_device_32.c | 5 +++--
arch/sparc/kernel/of_device_64.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletion
ci_read_resource_io
/pci_write_resource_io path instead.
user code should be like:
fd = open(argv[1], O_RDONLY);
...
sscanf(argv[2], "0x%lx", );
for (i = 0; i < 8; i++) {
pread(fd, , 1, i + offset);
}
close(fd);
Signed-off-by: Yinghai Lu <ying...@kernel.org>
ci_read_resource_io
/pci_write_resource_io path instead.
user code should be like:
fd = open(argv[1], O_RDONLY);
...
sscanf(argv[2], "0x%lx", );
for (i = 0; i < 8; i++) {
pread(fd, , 1, i + offset);
}
close(fd);
Signed-off-by: Yinghai Lu
---
drivers/pci/pci-sysfs.c |
On Thu, Jun 16, 2016 at 7:15 PM, Bjorn Helgaas <helg...@kernel.org> wrote:
> On Thu, Jun 09, 2016 at 03:25:52PM -0700, Yinghai Lu wrote:
>> In 8c05cd08a7 ("PCI: fix offset check for sysfs mmapped files"), try
>> to check exposed value with resource start/end in proc
On Thu, Jun 16, 2016 at 7:15 PM, Bjorn Helgaas wrote:
> On Thu, Jun 09, 2016 at 03:25:52PM -0700, Yinghai Lu wrote:
>> In 8c05cd08a7 ("PCI: fix offset check for sysfs mmapped files"), try
>> to check exposed value with resource start/end in proc mmap path.
>>
&g
On Fri, Jun 17, 2016 at 8:44 AM, Kees Cook wrote:
>>
>> There's no explanation in the code or in the changelog of why 512M was
>> picked as
>> the lower limit.
>
> Yinghai, do you have a rationale for this selection? I understood it
> to just be a very conservative target
On Fri, Jun 17, 2016 at 8:44 AM, Kees Cook wrote:
>>
>> There's no explanation in the code or in the changelog of why 512M was
>> picked as
>> the lower limit.
>
> Yinghai, do you have a rationale for this selection? I understood it
> to just be a very conservative target to avoid anything in
Commit-ID: 00bdbb0a0d6e5c7235cb8faa298c9f494e088499
Gitweb: http://git.kernel.org/tip/00bdbb0a0d6e5c7235cb8faa298c9f494e088499
Author: Yinghai Lu <ying...@kernel.org>
AuthorDate: Wed, 25 May 2016 15:45:34 -0700
Committer: Ingo Molnar <mi...@kernel.org>
CommitDate: Fri, 17 Ju
Commit-ID: 00bdbb0a0d6e5c7235cb8faa298c9f494e088499
Gitweb: http://git.kernel.org/tip/00bdbb0a0d6e5c7235cb8faa298c9f494e088499
Author: Yinghai Lu
AuthorDate: Wed, 25 May 2016 15:45:34 -0700
Committer: Ingo Molnar
CommitDate: Fri, 17 Jun 2016 11:03:49 +0200
x86/KASLR: Allow
On Wed, Jun 15, 2016 at 12:03 PM, Kees Cook wrote:
> index cfeb0259ed81..03a6f5d85a6b 100644
> --- a/arch/x86/boot/compressed/kaslr.c
> +++ b/arch/x86/boot/compressed/kaslr.c
> @@ -485,6 +485,9 @@ unsigned char *choose_random_location(unsigned long input,
>
>
On Wed, Jun 15, 2016 at 12:03 PM, Kees Cook wrote:
> index cfeb0259ed81..03a6f5d85a6b 100644
> --- a/arch/x86/boot/compressed/kaslr.c
> +++ b/arch/x86/boot/compressed/kaslr.c
> @@ -485,6 +485,9 @@ unsigned char *choose_random_location(unsigned long input,
>
> boot_params->hdr.loadflags |=
On 6/9/16, Lukas Wunner wrote:
>
> Well, the PCI core would also scan such a bus twice AFAICS.
> And the performance penalty of scanning it twice seems negligible.
> Early quirks can prevent double execution by setting QFLAG_APPLY_ONCE.
> (Three quirks have set that flag
On 6/9/16, Lukas Wunner wrote:
>
> Well, the PCI core would also scan such a bus twice AFAICS.
> And the performance penalty of scanning it twice seems negligible.
> Early quirks can prevent double execution by setting QFLAG_APPLY_ONCE.
> (Three quirks have set that flag already.)
>
> So I think
On Wed, Jun 8, 2016 at 5:00 PM, Yinghai Lu <ying...@kernel.org> wrote:
> On Wed, Jun 8, 2016 at 3:35 PM, Yinghai Lu <ying...@kernel.org> wrote:
>
>> At the same time, can you kill __pci_mmap_set_pgprot() for powerpc.
>
> Can you please put your two patches and this
On Wed, Jun 8, 2016 at 5:00 PM, Yinghai Lu wrote:
> On Wed, Jun 8, 2016 at 3:35 PM, Yinghai Lu wrote:
>
>> At the same time, can you kill __pci_mmap_set_pgprot() for powerpc.
>
> Can you please put your two patches and this attached one into to pci/next?
>
> Then I cou
in pci_mmap_fits().
-v2: add pci_user_to_resource() and remove __pci_mmap_make_offset()
-v4: update after three patches with __pci_mmap_set_pgprot()
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Cc: linuxppc-...@lists.ozlabs.org
Cc: sparcli...@vger.kernel.org
Cc: linux-xte...@l
in pci_mmap_fits().
-v2: add pci_user_to_resource() and remove __pci_mmap_make_offset()
-v4: update after three patches with __pci_mmap_set_pgprot()
Signed-off-by: Yinghai Lu
Cc: linuxppc-...@lists.ozlabs.org
Cc: sparcli...@vger.kernel.org
Cc: linux-xte...@linux-xtensa.org
---
arch/microblaze/pc
the
> root bus is numbered 0, this implies that secondary buses may not be 0.
> Do the same on early scanning.
>
> Suggested-by: Yinghai Lu <ying...@kernel.org>
> Fixes: 625a99d9bfd0 ("x86/quirks: Add early quirk to reset Apple AirPort
> card")
> Signed-of
numbered 0, this implies that secondary buses may not be 0.
> Do the same on early scanning.
>
> Suggested-by: Yinghai Lu
> Fixes: 625a99d9bfd0 ("x86/quirks: Add early quirk to reset Apple AirPort
> card")
> Signed-off-by: Lukas Wunner
> ---
> arch/x86/kernel/early-
On Wed, Jun 8, 2016 at 3:35 PM, Yinghai Lu <ying...@kernel.org> wrote:
> At the same time, can you kill __pci_mmap_set_pgprot() for powerpc.
Can you please put your two patches and this attached one into to pci/next?
Then I could send updated PCI: Let pci_mmap_page_range() take resourc
On Wed, Jun 8, 2016 at 3:35 PM, Yinghai Lu wrote:
> At the same time, can you kill __pci_mmap_set_pgprot() for powerpc.
Can you please put your two patches and this attached one into to pci/next?
Then I could send updated PCI: Let pci_mmap_page_range() take resource address.
Thanks
Ying
> vm_area_struct *vma,
> return -EINVAL;
>
> vma->vm_pgoff = offset >> PAGE_SHIFT;
> - vma->vm_page_prot = __pci_mmap_set_pgprot(dev, rp,
> - vma->vm_page_
gt; vma->vm_pgoff = offset >> PAGE_SHIFT;
> - vma->vm_page_prot = __pci_mmap_set_pgprot(dev, rp,
> - vma->vm_page_prot,
> - mmap_state, write_combine);
> + vma->vm_pag
On Wed, Jun 8, 2016 at 7:23 AM, tip-bot for Lukas Wunner
wrote:
> Commit-ID: 625a99d9bfd038ea492f57308555bf4e607ce591
> Gitweb: http://git.kernel.org/tip/625a99d9bfd038ea492f57308555bf4e607ce591
> Author: Lukas Wunner
> AuthorDate: Sun, 29 May 2016
On Wed, Jun 8, 2016 at 7:23 AM, tip-bot for Lukas Wunner
wrote:
> Commit-ID: 625a99d9bfd038ea492f57308555bf4e607ce591
> Gitweb: http://git.kernel.org/tip/625a99d9bfd038ea492f57308555bf4e607ce591
> Author: Lukas Wunner
> AuthorDate: Sun, 29 May 2016 01:35:28 +0200
...
> ---
>
-by: Yinghai Lu <ying...@kernel.org>
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-cris-ker...@axis.com
Cc: linux-i...@vger.kernel.org
Cc: linux-m...@linux-mips.org
Cc: linux-am33-l...@redhat.com
Cc: linux-par...@vger.kernel.org
Cc: linuxppc-...@lists.ozlabs.org
Cc: linux...@vger.kernel.org
Cc: s
-by: Yinghai Lu
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-cris-ker...@axis.com
Cc: linux-i...@vger.kernel.org
Cc: linux-m...@linux-mips.org
Cc: linux-am33-l...@redhat.com
Cc: linux-par...@vger.kernel.org
Cc: linuxppc-...@lists.ozlabs.org
Cc: linux...@vger.kernel.org
Cc: sparcli...@vger.kernel.org
in pci_mmap_fits().
-v2: add pci_user_to_resource and remove __pci_mmap_make_offset
-v3: pass resource pointer with pci_mmap_page_range()
update for fixing bisectibility problem found by build test robot.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Cc: linuxppc-...@lists.ozlabs.org
Cc: s
in pci_mmap_fits().
-v2: add pci_user_to_resource and remove __pci_mmap_make_offset
-v3: pass resource pointer with pci_mmap_page_range()
update for fixing bisectibility problem found by build test robot.
Signed-off-by: Yinghai Lu
Cc: linuxppc-...@lists.ozlabs.org
Cc: sparcli...@vger.kernel.org
Cc: l
Same as sparc version.
Make resource with consistent sequence
like other arch or directly from pci_read_bridge_bases(),
even when non-pref mmio is missing, or out of ordering in firmware reporting.
Just hold i = 1 for non pref mmio, and i = 2 for pref mmio.
Signed-off-by: Yinghai Lu <y
Same as sparc version.
Make resource with consistent sequence
like other arch or directly from pci_read_bridge_bases(),
even when non-pref mmio is missing, or out of ordering in firmware reporting.
Just hold i = 1 for non pref mmio, and i = 2 for pref mmio.
Signed-off-by: Yinghai Lu
Cc
idge_bases(),
even when non-pref mmio is missing, or out of ordering in firmware reporting.
Just hold i = 1 for non pref mmio, and i = 2 for pref mmio.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
Cc: sparcli...@vger.kernel.org
---
arch/
idge_bases(),
even when non-pref mmio is missing, or out of ordering in firmware reporting.
Just hold i = 1 for non pref mmio, and i = 2 for pref mmio.
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
Cc: sparcli...@vger.kernel.org
---
arch/sparc/kernel/pci.c | 8 +++-
1 file changed, 7 insert
check them for
child device resources.
-v2: check all bus resources instead of just res[15].
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
drivers/pci/setup-bus.c | 31 +--
1 file changed, 29 insertions(+),
pcibios_bus_to_resource()
-v6: use pci_find_bus_resource()
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
Cc: sparcli...@vger.kernel.org
---
arch/sparc/kernel/pci.c| 1 +
arch/sparc/kernel/pci_c
check them for
child device resources.
-v2: check all bus resources instead of just res[15].
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
---
drivers/pci/setup-bus.c | 31 +--
1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/setup-bus.c b
pcibios_bus_to_resource()
-v6: use pci_find_bus_resource()
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
Cc: sparcli...@vger.kernel.org
---
arch/sparc/kernel/pci.c| 1 +
arch/sparc/kernel/pci_common.c | 59 ++
arch/sparc/kernel/pci_impl.h | 1
in pci_mmap_fits().
-v2: add pci_user_to_resource and remove __pci_mmap_make_offset
-v3: pass resource pointer with pci_mmap_page_range()
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Cc: linuxppc-...@lists.ozlabs.org
Cc: sparcli...@vger.kernel.org
Cc: linux-xte...@l
in pci_mmap_fits().
-v2: add pci_user_to_resource and remove __pci_mmap_make_offset
-v3: pass resource pointer with pci_mmap_page_range()
Signed-off-by: Yinghai Lu
Cc: linuxppc-...@lists.ozlabs.org
Cc: sparcli...@vger.kernel.org
Cc: linux-xte...@linux-xtensa.org
---
arch/microblaze/pci/pci-common.c
If host bridge does not have mmio64 above 4G, We don't need to
treat device non-pref mmio64 as as pref mmio64.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
drivers/pci/setup-bus.c | 2 +-
1 file changed, 1 insertion(+), 1 delet
If host bridge does not have mmio64 above 4G, We don't need to
treat device non-pref mmio64 as as pref mmio64.
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
---
drivers/pci/setup-bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/setup-bus.c b/drivers/pci
: root bus resource [mem 0x20001-0x2000d] (bus
address [0x1-0xd])
-v3: put back mem64_offset, as we found T4 has mem_offset != mem64_offset
check overlapping between mem64_space and mem_space.
-v7: after new pci_mmap_page_range patches.
Signed-off-by: Yingha
: root bus resource [mem 0x20001-0x2000d] (bus
address [0x1-0xd])
-v3: put back mem64_offset, as we found T4 has mem_offset != mem64_offset
check overlapping between mem64_space and mem_space.
-v7: after new pci_mmap_page_range patches.
Signed-off-by: Yinghai
<david.ah...@oracle.com>
Tested-by: David Ahern <david.ah...@oracle.com>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=81431
Tested-by: TJ <li...@iam.tj>
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
Cc: sparcli..
Add pci_find_bus_resource() to return bus resource for input resource.
In some case, we may only have bus instead of dev.
It is same as pci_find_parent_resource, but take bus as input.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
---
drivers/pci/pci.c
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Cc: "David S. Miller" <da...@davemloft.net>
Cc: sparcli...@vger.kernel.org
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
arch/sparc/kernel/of_device_32.c | 5 +++--
arch/spa
rn
Tested-by: David Ahern
Link: https://bugzilla.kernel.org/show_bug.cgi?id=81431
Tested-by: TJ
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
Cc: sparcli...@vger.kernel.org
---
arch/sparc/kernel/pci_common.c | 2 +-
drivers/pci/pci.c | 8 +---
drivers/pci/pci.h
Add pci_find_bus_resource() to return bus resource for input resource.
In some case, we may only have bus instead of dev.
It is same as pci_find_parent_resource, but take bus as input.
Signed-off-by: Yinghai Lu
---
drivers/pci/pci.c | 27 ---
include/linux/pci.h | 2
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu
Cc: "David S. Miller"
Cc: sparcli...@vger.kernel.org
Tested-by: Khalid Aziz
---
arch/sparc/kernel/of_device_32.c | 5 +++--
arch/sparc/kernel/of_device_64.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletion
mmio64 and pref mmio32 under bridge pref bar.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
drivers/pci/probe.c | 7 +++
include/linux/pci.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/drivers/pci/probe.c b/drivers/pci/p
mmio64 and pref mmio32 under bridge pref bar.
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
---
drivers/pci/probe.c | 7 +++
include/linux/pci.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 5d11dec..90091fa 100644
--- a/drivers/pci
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Cc: Grant Likely <grant.lik...@linaro.org>
Cc: Rob Herring <robh...@kernel.org>
Cc: devicet...@vger.kernel.org
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
drivers/of/address.c | 4
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org>
Cc: Paul Mackerras <pau...@samba.org>
Cc: Michael Ellerman <m...@ellerman.id.au>
Cc: Gavin Shan <gws...@linux.vnet.ibm.com>
Cc: Yiji
This one is preparing patch for next one:
PCI: Let pci_mmap_page_range() take resource addr
We need to pass extra resource pointer to avoid searching that again
for powerpc and microblaze prot set operation.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Cc: linux-a
or support 64bit mmio.
-v12: add two pci_mmap_page_range() related patches, and
only include sparc related patches at first.
will submit other later.
Hope we can get them into v4.8.
Thanks
Yinghai
Yinghai Lu (15):
PCI: Let pci_mmap_page_range() take extra resource pointer
PCI: Let
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu
Cc: Grant Likely
Cc: Rob Herring
Cc: devicet...@vger.kernel.org
Tested-by: Khalid Aziz
---
drivers/of/address.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/of/address.c b/drivers/of/address.c
index
://bugzilla.kernel.org/show_bug.cgi?id=96241
Signed-off-by: Yinghai Lu
Cc: Benjamin Herrenschmidt
Cc: Paul Mackerras
Cc: Michael Ellerman
Cc: Gavin Shan
Cc: Yijing Wang
Cc: Anton Blanchard
Cc: linuxppc-...@lists.ozlabs.org
---
arch/powerpc/kernel/pci_of_scan.c | 4 +++-
1 file changed, 3 insertions
This one is preparing patch for next one:
PCI: Let pci_mmap_page_range() take resource addr
We need to pass extra resource pointer to avoid searching that again
for powerpc and microblaze prot set operation.
Signed-off-by: Yinghai Lu
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-cris-ker
or support 64bit mmio.
-v12: add two pci_mmap_page_range() related patches, and
only include sparc related patches at first.
will submit other later.
Hope we can get them into v4.8.
Thanks
Yinghai
Yinghai Lu (15):
PCI: Let pci_mmap_page_range() take extra resource pointer
PCI: Let
all.
The patch restore to old logic:
when host bridge does not have has_mem64, put children pref mmio64 and
pref mmio32 all under bridges pref bars.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
Tested-by: Khalid Aziz <khalid.a...@oracle.com>
---
drivers/pci/bus.c | 4 +++-
dr
all.
The patch restore to old logic:
when host bridge does not have has_mem64, put children pref mmio64 and
pref mmio32 all under bridges pref bars.
Signed-off-by: Yinghai Lu
Tested-by: Khalid Aziz
---
drivers/pci/bus.c | 4 +++-
drivers/pci/setup-bus.c | 13 +
drivers/pci/se
On Thu, May 19, 2016 at 1:17 PM, Jiang, Dave wrote:
>> > > And I checked the config and found the CONFIG_PCI_MMCONFIG=y. The
>> > > following string also can be observed in the dmesg:
>> > >
>> > > [1.419853] PCI: MMCONFIG for domain [bus 00-ff] at
>> > >
On Thu, May 19, 2016 at 1:17 PM, Jiang, Dave wrote:
>> > > And I checked the config and found the CONFIG_PCI_MMCONFIG=y. The
>> > > following string also can be observed in the dmesg:
>> > >
>> > > [1.419853] PCI: MMCONFIG for domain [bus 00-ff] at
>> > > [mem0x8000-0x8fff] (base
On Fri, May 6, 2016 at 11:26 AM, Bjorn Helgaas wrote:
>> v3, that have more change to pass *res to make powerpc prot setting simple.
>
> This looks corrupted. On v4.6-rc2:
>
> $ stg import -M m/yh3
> Checking for changes in the working directory ... done
> Importing
On Fri, May 6, 2016 at 11:26 AM, Bjorn Helgaas wrote:
>> v3, that have more change to pass *res to make powerpc prot setting simple.
>
> This looks corrupted. On v4.6-rc2:
>
> $ stg import -M m/yh3
> Checking for changes in the working directory ... done
> Importing patch
_resource and remove __pci_mmap_make_offset
-v3: pass resource pointer with pci_mmap_page_range()
Signed-off-by: Yinghai Lu <ying...@kernel.org>
---
arch/microblaze/pci/pci-common.c | 78 ++
arch/powerpc/kernel/pci-common.c | 78 ++--
This one is preparing patch for next one:
PCI: Let pci_mmap_page_range() take resource addr
We need to pass extra resource pointer to avoid searching that again
for powerpc and microblaze prot set operation.
Signed-off-by: Yinghai Lu <ying...@kernel.org>
---
arch/arm/include/asm
201 - 300 of 8821 matches
Mail list logo