Date: Sat, 29 Aug 2015 11:35:47 -0700 From: Justin Hibbits <jrh29@alumni.cwru.edu> To: Adrian Chadd <adrian.chadd@gmail.com> Cc: John Baldwin <jhb@freebsd.org>, "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>, Marcel Moolenaar <marcel@xcllnt.net> Subject: Re: Devices with 36-bit paddr on 32-bit system Message-ID: <CAHSQbTAGD=4A20XZL09YXbEm9hdf5K2_QCRPFOAjrXHF4eg9sQ@mail.gmail.com> In-Reply-To: <CAJ-VmomduZBYT6=e7HUm2V1m0taM0MAMXxMojYV8wvgEKyUEyA@mail.gmail.com> References: <CAHSQbTDsvB32%2BLyzHJO78VwUwAfUTMOUQp13BMCUpapSMT0fbg@mail.gmail.com> <ED4B5B25-D7A7-440C-9452-4C79B0800D2E@xcllnt.net> <1568331.OrSoeYfXsf@ralph.baldwin.cx> <CAJ-VmomduZBYT6=e7HUm2V1m0taM0MAMXxMojYV8wvgEKyUEyA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--001a1141f3be08c46f051e777817 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey, I already had that thought, too, you just encouraged me to take it :) Anyway, here's an initial patch. I've *only* tested it on one PowerPC board (the one needing this change), none of my other devices, and no other architectures. Thoughts? tl;dr I went with using bus_addr_t for the addresses, and kept u_long for the sizes (I can change it to use bus_size_t instead, but it's already vm_offset_t on PowerPC, which is long anyway). Since I took the diff as a whole, and erased unrelated bits, there may still be unrelated bits in the diff, which can be ignored (all part of my larger work). - Justin On Fri, Aug 28, 2015 at 1:59 PM, Adrian Chadd <adrian.chadd@gmail.com> wrot= e: > +1 on this. > > Also - justin/i figured it out (well, I made the suggestion, he did > the suggestion) which is just to do a big/single mapping of the > relevant hardware window into vmem early in boot, and hack that bus > nexus to treat things as being in that vmem region. He's gotten pretty > far along the device bringup path now. That way the rmem allocation is > just from that vmem region. > > > > -adrian > > > > On 28 August 2015 at 10:35, John Baldwin <jhb@freebsd.org> wrote: >> On Tuesday, August 25, 2015 08:55:45 AM Marcel Moolenaar wrote: >>> >>> > On Aug 24, 2015, at 11:44 PM, Justin Hibbits <jrh29@alumni.cwru.edu> = wrote: >>> > >>> > With my work porting FreeBSD to PowerPC e500mc and e5500, I have >>> > devices in my device tree mapped well above the 4GB mark >>> > (0xffexxxxxx), and have no idea how to properly address them for >>> > resources in rman. Do we already have a solution to support this? >>> > Part of the problem is the powerpc nexus does a straight convert to >>> > vm_offset_t of rman_get_start() (itself returning a u_long), and >>> > vm_offset_t is not necessarily equal to vm_paddr_t (on Book-E powerpc >>> > vm_offset_t is 32-bits, vm_paddr_t is 64-bits). >>> >>> I think the best solution is to represent a resource address >>> space with a type other than u_long. It makes sense to have >>> it use bus_addr_t or vm_paddr_t for example. Such a change >>> comes at a high price for sure, but you=E2=80=99ll fix it once and >>> for all. I don=E2=80=99t think you should kluge your way out of this... >> >> Expanding beyond u_long is the right solution. PAE doesn't generally su= ffer >> from this on i386 (though the ram0 device "punts" and ignores RAM ranges= above >> 4G as a workaround). >> >> However, u_long is baked into the bus resource API quite a bit. Specifi= cally, >> the values 0ul and ~0ul are used as magic numbers in lots of places to r= equest >> "anywhere" locations. Some of this has been mitigated by >> bus_alloc_resource_any(), but that doesn't cover all cases. You will pr= obably >> want to add some explicit constants and do a sweep replacing the magic n= umbers >> with those first (and MFC the constants at least to make it easier to po= rt >> drivers across branches). Then you can change the type. >> >> As far as the best type: rman's are in theory generic and not just for b= us >> addresses. I'd be tempted to let each platform define an rman_addr_t al= ong >> with RMAN_ADDR_MAX constants, but in practice it is probably fine to use >> bus_addr_t and BUS_SPACE_MAXADDR. If you do that it also means you can = skip >> the step of having to MFC new constants. >> >> Note that various bus APIs will have to change to use bus_addr_t instead= of >> u_long as well. >> >> -- >> John Baldwin >> _______________________________________________ >> freebsd-arch@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arch >> To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" --001a1141f3be08c46f051e777817 Content-Type: text/plain; charset=US-ASCII; name="rman.diff" Content-Disposition: attachment; filename="rman.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_idxeo38y0 SW5kZXg6IHN5cy9kZXYvYXRhL2F0YS1wY2kuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBzeXMvZGV2L2F0YS9h dGEtcGNpLmMJKHJldmlzaW9uIDI4NzE4OSkKKysrIHN5cy9kZXYvYXRhL2F0YS1wY2kuYwkod29y a2luZyBjb3B5KQpAQCAtMjE3LDcgKzIxNyw3IEBACiAKIHN0cnVjdCByZXNvdXJjZSAqCiBhdGFf cGNpX2FsbG9jX3Jlc291cmNlKGRldmljZV90IGRldiwgZGV2aWNlX3QgY2hpbGQsIGludCB0eXBl LCBpbnQgKnJpZCwKLQkJICAgICAgIHVfbG9uZyBzdGFydCwgdV9sb25nIGVuZCwgdV9sb25nIGNv dW50LCB1X2ludCBmbGFncykKKwkJICAgICAgIGJ1c19hZGRyX3Qgc3RhcnQsIGJ1c19hZGRyX3Qg ZW5kLCB1X2xvbmcgY291bnQsIHVfaW50IGZsYWdzKQogewogCXN0cnVjdCBhdGFfcGNpX2NvbnRy b2xsZXIgKmNvbnRyb2xsZXIgPSBkZXZpY2VfZ2V0X3NvZnRjKGRldik7CiAJc3RydWN0IHJlc291 cmNlICpyZXMgPSBOVUxMOwpJbmRleDogc3lzL2Rldi9hdGEvYXRhLXBjaS5oCj09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0K LS0tIHN5cy9kZXYvYXRhL2F0YS1wY2kuaAkocmV2aXNpb24gMjg3MTg5KQorKysgc3lzL2Rldi9h dGEvYXRhLXBjaS5oCSh3b3JraW5nIGNvcHkpCkBAIC01MzUsNyArNTM1LDcgQEAKIGludCBhdGFf cGNpX3ByaW50X2NoaW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RfaW50cihkZXZpY2VfdCBkZXYsIGRldmljZV90 IGNoaWxkLApAQCAtNDA1LDExICs0MDYsMTEgQEAKIAogc3RydWN0IHJlc291cmNlICoKIAlidXNf Z2VuZXJpY19ybF9hbGxvY19yZXNvdXJjZSAoZGV2aWNlX3QsIGRldmljZV90LCBpbnQsIGludCAq LAotCQkJCSAgICAgICB1X2xvbmcsIHVfbG9uZywgdV9sb25nLCB1X2ludCk7CisJCQkJICAgICAg IGJ1c19hZGRyX3QsIGJ1c19hZGRyX3QsIHVfbG9uZywgdV9pbnQpOwogdm9pZAlidXNfZ2VuZXJp Y19ybF9kZWxldGVfcmVzb3VyY2UgKGRldmljZV90LCBkZXZpY2VfdCwgaW50LCBpbnQpOwotaW50 CWJ1c19nZW5lcmljX3JsX2dldF9yZXNvdXJjZSAoZGV2aWNlX3QsIGRldmljZV90LCBpbnQsIGlu dCwgdV9sb25nICosCitpbnQJYnVzX2dlbmVyaWNfcmxfZ2V0X3Jlc291cmNlIChkZXZpY2VfdCwg ZGV2aWNlX3QsIGludCwgaW50LCBidXNfYWRkcl90ICosCiAJCQkJICAgICB1X2xvbmcgKik7Ci1p bnQJYnVzX2dlbmVyaWNfcmxfc2V0X3Jlc291cmNlIChkZXZpY2VfdCwgZGV2aWNlX3QsIGludCwg aW50LCB1X2xvbmcsCitpbnQJYnVzX2dlbmVyaWNfcmxfc2V0X3Jlc291cmNlIChkZXZpY2VfdCwg ZGV2aWNlX3QsIGludCwgaW50LCBidXNfYWRkcl90LAogCQkJCSAgICAgdV9sb25nKTsKIGludAli dXNfZ2VuZXJpY19ybF9yZWxlYXNlX3Jlc291cmNlIChkZXZpY2VfdCwgZGV2aWNlX3QsIGludCwg aW50LAogCQkJCQkgc3RydWN0IHJlc291cmNlICopOwpAQCAtNDM5LDEwICs0NDAsMTAgQEAKIAkJ CSAgICAgIHN0cnVjdCByZXNvdXJjZSAqKnJlcyk7CiAKIGludAlidXNfYWRqdXN0X3Jlc291cmNl KGRldmljZV90I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l9kZXYpOwotdm9pZAlybWFuX3NldF9lbmQoc3RydWN0IHJlc291 cmNlICpfciwgdV9sb25nIF9lbmQpOwordm9pZAlybWFuX3NldF9lbmQoc3RydWN0IHJlc291cmNl ICpfciwgYnVzX2FkZHJfdCBfZW5kKTsKIHZvaWQJcm1hbl9zZXRfcmlkKHN0cnVjdCByZXNvdXJj ZSAqX3IsIGludCBfcmlkKTsKLXZvaWQJcm1hbl9zZXRfc3RhcnQoc3RydWN0IHJlc291cmNlICpf ciwgdV9sb25nIF9zdGFydCk7Cit2b2lkCXJtYW5fc2V0X3N0YXJ0KHN0cnVjdCByZXNvdXJjZSAq X3IsIGJ1c19hZGRyX3QgX3N0YXJ0KTsKIHZvaWQJcm1hbl9zZXRfdmlydHVhbChzdHJ1Y3QgcmVz b3VyY2UgKl9yLCB2b2lkICpfdik7CiAKIGV4dGVybglzdHJ1Y3Qgcm1hbl9oZWFkIHJtYW5faGVh ZDsK --001a1141f3be08c46f051e777817--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTAGD=4A20XZL09YXbEm9hdf5K2_QCRPFOAjrXHF4eg9sQ>