Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2010 18:27:24 +0530
From:      "Jayachandran C." <c.jayachandran@gmail.com>
To:        Luiz Otavio O Souza <lists.br@gmail.com>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: Merging 64 bit changes to -HEAD
Message-ID:  <AANLkTim_9-G6ZuA0vkpLeG4n4GVBpBlxhGBy_7eQoIM4@mail.gmail.com>
In-Reply-To: <25B9A19D-0A6B-4731-8FB1-A2C6722F0E9C@gmail.com>
References:  <AANLkTik8jFkB7FTIIhyjalkfv1c0yXqse57Jzz527uf_@mail.gmail.com> <897604F6-95C4-49A8-B11F-277A74C8DBAE@gmail.com> <AANLkTilfW_zOFKuIa0gJ3ahTo-vGC1VNk99a1H24uFRq@mail.gmail.com> <AANLkTil78NFxH016C7MntD8L3d4rFlCudJ0Lv22L0KCb@mail.gmail.com> <3C0AEF9B-AE0C-4459-A4E1-2C8C30C10FD6@gmail.com> <AANLkTint7Hyf79EH29OLsIfreQRd7dQMdvX9wRq4v_yG@mail.gmail.com> <C6D73C96-3640-4502-A9D7-B3597E37E80A@gmail.com> <AANLkTilQIqF4FCfgLdVcKdcsAUVjCmr89Lu0TEXUFdYN@mail.gmail.com> <25B9A19D-0A6B-4731-8FB1-A2C6722F0E9C@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00235418615830e8db048a3ee587
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Tue, Jun 29, 2010 at 10:32 PM, Luiz Otavio O Souza
<lists.br@gmail.com> wrote:
>
> On Jun 29, 2010, at 8:02 AM, Jayachandran C. wrote:
>
>> On Tue, Jun 29, 2010 at 2:28 AM, Luiz Otavio O Souza <lists.br@gmail.com=
> wrote:
>>>> Thanks for the the update. Looks like pmap_map for kernel is failing,
>>>> may be the new tlb_update code causes this. =A0Can you apply the
>>>> attached patch and see if the problem still persists, it replaces the
>>>> new tlb_update code with the older version.
>>>>
>>>> Obviously not a fix, but if we can narrow it down to this function,
>>>> fixing will be easier.
>>>>
>>>> JC.
>>>> <try.diff>
>>>
>>> JC,
>>>
>>> This fix the problem ! Thanks ! Now, at least, you know where to look :=
)
>>
>> The new tlb_update does not seem to update the tlb entry if the tlbp
>> fails. =A0Here's a patch that should make the new function behave like
>> the older one. =A0The patch is in attached file 'tlb-update.diff'.
>>
>> If that does not work, I'm not sure what the issue is. =A0You could also
>> try try the nop-change.diff attached. It tries to switch the ssnop
>> used for delay in the new code with 'nop' which was used by the old
>> code.
>>
>> Thanks,
>> JC.
>> <tlb-update.diff><nop-change.diff>
>
> JC,
>
> The nop-change seems to have no effect at all and with the tlb-update pat=
ch the kernel apparently crash at bzero(), here is the dmesg with TRAP_DEBU=
G enabled:
>
> http://mips.pastebin.com/jydPvJ20
>
> So hopefully you are on the right track and this may be something obvious=
 to you.

Not yet :) I really hoped the earlier change would fix it.  The number
of nop does not seem to be the issue as it is higher in the C code
than the assembly.

Can you try the attached patch (try.diff) - this re-implements the
assembly code functionality almost in the same way in C.  This really
should work, given that the patch which made it assembly worked...

If that works can you see if the second attached patch works, this
fixes a potential problem (ie, we should be masking 13bits for TLBHI).

Both patches should apply directly to SVN (not dependent on each
other, or on previous patches)

Thanks again,
JC.

--00235418615830e8db048a3ee587
Content-Type: text/plain; charset=US-ASCII; name="try.diff"
Content-Disposition: attachment; filename="try.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gb25y7ke0

SW5kZXg6IHN5cy9taXBzL21pcHMvdGxiLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL21pcHMvbWlwcy90
bGIuYwkocmV2aXNpb24gMjA5NTIxKQorKysgc3lzL21pcHMvbWlwcy90bGIuYwkod29ya2luZyBj
b3B5KQpAQCAtMjE3LDM0ICsyMTcsNDMgQEAKIHZvaWQKIHRsYl91cGRhdGUoc3RydWN0IHBtYXAg
KnBtYXAsIHZtX29mZ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k7CisJCWlmIChldmVuKSB7CisJCQltaXBzX3dyX2VudHJ5bG8wKHB0ZSk7
CisJCQltaXBzX3dyX2VudHJ5bG8xKG90aGVyKTsKKwkJfSBlbHNlIHsKKwkJCW1pcHNfd3JfZW50
cnlsbzAob3RoZXIpOworCQkJbWlwc193cl9lbnRyeWxvMShwdGUpOworCQl9CisJCXRsYl93cml0
ZV9yYW5kb20oKTsKIAl9CiAKLQltaXBzX3dyX2VudHJ5aGkoYXNpZCk7Ci0JbWlwc193cl9wYWdl
bWFzayhtYXNrKTsKKwltaXBzX3dyX2VudHJ5aGkob2xkaGkpOwogCWludHJfcmVzdG9yZShzKTsK
IH0KIAo=
--00235418615830e8db048a3ee587
Content-Type: text/plain; charset=US-ASCII; name="pte.h-fix.diff"
Content-Disposition: attachment; filename="pte.h-fix.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gb25yl9o1

SW5kZXg6IHN5cy9taXBzL2luY2x1ZGUvcHRlLmgKPT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL21pcHMvaW5j
bHVkZS9wdGUuaAkocmV2aXNpb24gMjA5NTIxKQorKysgc3lzL21pcHMvaW5jbHVkZS9wdGUuaAko
d29ya2luZyBjb3B5KQpAQCAtNzMsNyArNzMsOCBAQAogICogTm90ZSB0aGF0IGluIEZyZWVCU0Qs
IHdlIG1hcCAyIFRMQiBwYWdlcyBpcyBlcXVhbCB0byAxIFZNIHBhZ2UuCiAgKi8KICNkZWZpbmUJ
VExCSElfQVNJRF9NQVNLCQkoMHhmZikKLSNkZWZpbmUJVExCSElfRU5UUlkodmEsIGFzaWQpCSgo
KHZhKSAmIH5QQUdFX01BU0spIHwgKChhc2lkKSAmIFRMQkhJX0FTSURfTUFTSykpCisjZGVmaW5l
CVRMQkhJX1BBR0VfTUFTSwkJKH4oMiAqIFBBR0VfU0laRSAtIDEpKQorI2RlZmluZQlUTEJISV9F
TlRSWSh2YSwgYXNpZCkJKCgodmEpICYgVExCSElfUEFHRV9NQVNLKSB8ICgoYXNpZCkgJiBUTEJI
SV9BU0lEX01BU0spKQogCiAjaWZuZGVmIF9MT0NPUkUKIHR5cGVkZWYJdWludDMyX3QgcHRfZW50
cnlfdDsK
--00235418615830e8db048a3ee587--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim_9-G6ZuA0vkpLeG4n4GVBpBlxhGBy_7eQoIM4>