qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: David Gibson <david@gibson.dropbear.id.au>,
	"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: qemu-ppc@nongnu.org, paulus@samba.org,
	Anton Blanchard <anton@samba.org>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] target-ppc: Use right page size with hash table lookup
Date: Thu, 29 Jan 2015 14:11:52 +0100	[thread overview]
Message-ID: <54CA3198.3060603@suse.de> (raw)
In-Reply-To: <20150129004847.GK14681@voom>



On 29.01.15 01:48, David Gibson wrote:
> On Mon, Jan 26, 2015 at 07:51:58PM +0530, Aneesh Kumar K.V wrote:
>> We look at two sizes specified in ISA (4K, 64K). If not found matching,
>> we consider it 16MB.
>>
>> Without this patch we would fail to lookup address above 16MB range.
>> Below 16MB happened to work before because the kernel have a liner
>> mapping and we always looked up hash for 0xc000000000000000. The
>> actual real address was computed by using the 16MB offset
>> with the real address found with the above hash.
>>
>> Without Fix:
>> (gdb) x/16x 0xc000000001000000
>> 0xc000000001000000 <list_entries+453208>:       Cannot access memory at address 0xc000000001000000
>> (gdb)
>>
>> With Fix:
>> (gdb)  x/16x 0xc000000001000000
>> 0xc000000001000000 <list_entries+453208>:       0x00000000      0x00000000      0x00000000      0x00000000
>> 0xc000000001000010 <list_entries+453224>:       0x00000000      0x00000000      0x00000000      0x00000000
>> 0xc000000001000020 <list_entries+453240>:       0x00000000      0x00000000      0x00000000      0x00000000
>> 0xc000000001000030 <list_entries+453256>:       0x00000000      0x00000000      0x00000000      0x00000000
>>
>> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
> 
> This doesn't fully implement the sllp page size encodings, but it's
> certainly better than what's there now.
> 
> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>

Thanks, applied to ppc-next.


Alex

      reply	other threads:[~2015-01-29 13:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-26 14:21 [Qemu-devel] [PATCH] target-ppc: Use right page size with hash table lookup Aneesh Kumar K.V
2015-01-29  0:48 ` David Gibson
2015-01-29 13:11   ` Alexander Graf [this message]

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=54CA3198.3060603@suse.de \
    --to=agraf@suse.de \
    --cc=aneesh.kumar@linux.vnet.ibm.com \
    --cc=anton@samba.org \
    --cc=david@gibson.dropbear.id.au \
    --cc=paulus@samba.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).