From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Omkhar Arasaratnam <iamroot@ca.ibm.com>,
Linux Kernel list <linux-kernel@vger.kernel.org>,
tgall@us.ibm.com, antonb@au1.ibm.com,
James Bottomley <James.Bottomley@SteelEye.com>,
Matthew Wilcox <matthew@wil.cx>
Subject: Re: [BUG] 2.6.11- sym53c8xx Broken on pp64
Date: Thu, 10 Mar 2005 16:59:43 +1100 [thread overview]
Message-ID: <1110434383.32525.184.camel@gaston> (raw)
In-Reply-To: <Pine.LNX.4.58.0503091944030.2530@ppc970.osdl.org>
On Wed, 2005-03-09 at 19:47 -0800, Linus Torvalds wrote:
>
> On Wed, 9 Mar 2005, Omkhar Arasaratnam wrote:
> >
> > I confirmed that this occurs with the 2.6.11 code straight from
> > kernel.org Here is an error from the bringup:
>
> So if 2.6.9 works, and 2.6.11 does not, can you check 2.6.10? And perhaps
> hunt it down even more, to a -rc release?
>
> > sym0: No NVRAM, ID 7, Fast-80 LVD, parity checking
> > CACHE TEST FAILED: DMA error (dstat=0xa0) .sym0: CACHE INCORRECTLY CONFIGURED
> > sym0: giving up ...
>
> There are certainly sym changes in there too since 2.6.9, let's see if
> James or Willy have any suggestions. It might not be ppc64-specific.
Ok, we have it working here on a similar machine with 2.6.11 and failing
in a similar way with bk which is why I asked ;)
The bk problem is found & fixed here tho. I'll send a patch later, it's
a bug with ppc64 iounmap() not properly flushing the hash table after
the set_pte_at() patch due to some crap in our custom implementation of
that guy.
Here's the patch, but I want to get rid of that stuff anyway (at least
make unmap_vm_area take the "mm", or rather make an unmap_vm_area_mm()
and make unmap_vm_area() just call it and then use that instead of our
own implementation, but I'm waiting for Hugh cleanup to get in before
touching any of this).
--
This patch fixes a bug in ppc64 local implementation of iounmap() that
would cause it to incorrectly flush the hash table since the changes to
set_pte have been applied.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Index: working-2.6/arch/ppc64/mm/init.c
===================================================================
--- working-2.6.orig/arch/ppc64/mm/init.c 2005-03-07 13:06:23.000000000 +1100
+++ working-2.6/arch/ppc64/mm/init.c 2005-03-10 12:59:50.000000000 +1100
@@ -288,7 +288,7 @@
static void unmap_im_area_pte(pmd_t *pmd, unsigned long address,
unsigned long size)
{
- unsigned long end;
+ unsigned long base, end;
pte_t *pte;
if (pmd_none(*pmd))
@@ -300,6 +300,7 @@
}
pte = pte_offset_kernel(pmd, address);
+ base = address & PMD_MASK;
address &= ~PMD_MASK;
end = address + size;
if (end > PMD_SIZE)
@@ -307,7 +308,7 @@
do {
pte_t page;
- page = ptep_get_and_clear(&ioremap_mm, address, pte);
+ page = ptep_get_and_clear(&ioremap_mm, base + address, pte);
address += PAGE_SIZE;
pte++;
if (pte_none(page))
@@ -321,7 +322,7 @@
static void unmap_im_area_pmd(pgd_t *dir, unsigned long address,
unsigned long size)
{
- unsigned long end;
+ unsigned long base, end;
pmd_t *pmd;
if (pgd_none(*dir))
@@ -333,13 +334,14 @@
}
pmd = pmd_offset(dir, address);
+ base = address & PGDIR_MASK;
address &= ~PGDIR_MASK;
end = address + size;
if (end > PGDIR_SIZE)
end = PGDIR_SIZE;
do {
- unmap_im_area_pte(pmd, address, end - address);
+ unmap_im_area_pte(pmd, base + address, end - address);
address = (address + PMD_SIZE) & PMD_MASK;
pmd++;
} while (address < end);
Ben.
next prev parent reply other threads:[~2005-03-10 6:09 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-10 1:51 Omkhar Arasaratnam
2005-03-10 2:10 ` Benjamin Herrenschmidt
2005-03-10 2:25 ` Linus Torvalds
2005-03-10 5:06 ` Ryan Anderson
2005-03-10 5:40 ` Sam Ravnborg
2005-03-13 4:32 ` [PATCH] Auto-append localversion for BK users needs to use CONFIG_SHELL Ryan Anderson
2005-04-03 19:17 ` Sam Ravnborg
2005-03-10 3:11 ` [BUG] 2.6.11- sym53c8xx Broken on pp64 Omkhar Arasaratnam
2005-03-10 3:34 ` Omkhar Arasaratnam
2005-03-10 3:47 ` Linus Torvalds
2005-03-10 4:53 ` Omkhar Arasaratnam
2005-03-10 5:59 ` Benjamin Herrenschmidt [this message]
2005-03-10 12:17 ` Matthew Wilcox
2005-03-10 15:17 ` James Bottomley
2005-03-10 17:05 ` Omkhar Arasaratnam
2005-03-10 22:02 ` Benjamin Herrenschmidt
2005-03-11 14:54 ` Omkhar Arasaratnam
2005-03-13 20:32 ` Omkhar Arasaratnam
2005-03-15 15:54 ` Omkhar Arasaratnam
2005-03-15 23:38 ` Benjamin Herrenschmidt
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=1110434383.32525.184.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=James.Bottomley@SteelEye.com \
--cc=antonb@au1.ibm.com \
--cc=iamroot@ca.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=tgall@us.ibm.com \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®