Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1252383
| From | Yinghai Lu <yinghai@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v7 02/60] sparc/PCI: Use correct bus address to resource offset |
| Date | 2015-10-21 02:10 +0200 |
| Message-ID | <qlP8B-2OF-1@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <qhrog-7CK-37@gated-at.bofh.it> <qlLeH-5i7-25@gated-at.bofh.it> <qlLol-5IJ-23@gated-at.bofh.it> <qlLRo-6h1-31@gated-at.bofh.it> <qlOYV-2mY-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Oct 20, 2015 at 4:51 PM, Khalid Aziz <khalid.aziz@oracle.com> wrote: > On 10/20/2015 02:34 PM, Yinghai Lu wrote: >> >> On Tue, Oct 20, 2015 at 1:07 PM, Khalid Aziz <khalid.aziz@oracle.com> >> wrote: >>>> >>>> I don't want to argue about pci_resource_to_user() right now, so I >>>> guess you can just panic if the mem64 offset is different from the >>>> mem32 offset. But you should at least add a comment about why you're >>>> doing that. Otherwise it looks like you were just lazy. >> >> >> I had one version for that, but it has big change to >> __pci_mmap_make_offset_bus >> for making pci_mmap_resource() working. >> And took it for granted that MEM/MEM64 should have same offet. >> >>> >>> >>> I just hit this condition on a sparc platform where mem32 offset != mem64 >>> offset. We need to handle this case, and not just call panic. I had not >>> seen >>> this on 5 platforms and another 3 ldoms I had tested this on when I >>> tested >>> this code earlier. I have sent panic log to Yinghai separately. >> >> >> Did you get test result with updated patch2 and patch3? >> > > Hi Yinghai, > > The failing T4 booted up with updated patches. > Thanks, will post updated patch2 and patches3 and patch 4 with pcibios_bus_to_resource as Bjorn requested. Yinghai -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v7 02/60] sparc/PCI: Use correct bus address to resource offset Bjorn Helgaas <helgaas@kernel.org> - 2015-10-20 22:00 +0200
Re: [PATCH v7 02/60] sparc/PCI: Use correct bus address to resource offset Khalid Aziz <khalid.aziz@oracle.com> - 2015-10-20 22:10 +0200
Re: [PATCH v7 02/60] sparc/PCI: Use correct bus address to resource offset Yinghai Lu <yinghai@kernel.org> - 2015-10-20 22:40 +0200
Re: [PATCH v7 02/60] sparc/PCI: Use correct bus address to resource offset Khalid Aziz <khalid.aziz@oracle.com> - 2015-10-20 22:50 +0200
Re: [PATCH v7 02/60] sparc/PCI: Use correct bus address to resource offset Khalid Aziz <khalid.aziz@oracle.com> - 2015-10-21 02:00 +0200
Re: [PATCH v7 02/60] sparc/PCI: Use correct bus address to resource offset Yinghai Lu <yinghai@kernel.org> - 2015-10-21 02:10 +0200
Re: [PATCH v7 02/60] sparc/PCI: Use correct bus address to resource offset Yinghai Lu <yinghai@kernel.org> - 2015-10-21 02:30 +0200
csiph-web