From: Chandru <chandru@in.ibm.com>
To: Vivek Goyal <vgoyal@redhat.com>, Muli Ben-Yehuda <muli@il.ibm.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
jdmason@kudzu.us
Subject: Re: [RFC] [Patch] calgary iommu: Use the first kernel's tce tables in kdump
Date: Wed, 12 Mar 2008 10:38:49 +0530 [thread overview]
Message-ID: <47D76561.8050805@in.ibm.com> (raw)
In-Reply-To: <20080311132921.GA10828@redhat.com>
> Hi Chandru,
>
> - How do we make sure that previous kernel's TCE tables are not
> overwritten
> by new kernel (In case previous kernel allocated TCE tables in first
> 640 KB?)
>
TCE tables are allocated using alloc_bootmem_low() with goal set to 0.
Don't know if this will be sufficient. Investigating...
> - How do we make sure that when new kernel tries to setup an entry in
> TCE table, then it does not try to clear up an existing entry which is
> still in use?
>
A bitmap is created once the first kernel's TCE table is found. This
bitmap is populated by reading the entries in the tce table. Non-zero
entries in the table are marked as used/reserved in the bitmap.
> Did you try the Muli suggestion of ignoring DMA error in exception
> handler?
With what I tried, I was not successful
> What happens if I setup new table and try to switch to new
> table?
This is the root cause of the problem.
> Some sort of error will occur.
The pci bus on that PHB goes into an undefined state ( returning
0xffffffff for all reads on that bus ).
> Can't we modify the handler and
> ignore it for kdump case and move on?
>
The system booted! , :) with the following change. Muli acceptable??
static void calgary_watchdog(unsigned long data)
{
...
...
/* Disable bus that caused the error and ignore if it's kdump kernel */
+ if ( !is_kdump_kernel()) {
target = calgary_reg(bbar, phb_offset(tbl->it_busno) |
PHB_CONFIG_RW_OFFSET);
val32 = be32_to_cpu(readl(target));
val32 |= PHB_SLOT_DISABLE;
writel(cpu_to_be32(val32), target);
+ }
readl(target); /* flush */
..
..
}
> Thanks
> Vivek
>
-Chandru
next prev parent reply other threads:[~2008-03-12 5:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-09 20:40 [RFC] [Patch] calgary iommu: Use the first kernel's tce tables in kdump chandru
2007-10-09 21:06 ` Muli Ben-Yehuda
2007-10-10 5:30 ` Vivek Goyal
2007-10-14 5:41 ` Muli Ben-Yehuda
2007-10-15 6:29 ` Vivek Goyal
2007-12-24 5:15 ` Chandru
2008-03-10 13:20 ` Chandru
2008-03-10 16:09 ` Andrew Morton
2008-06-21 12:11 ` Chandru
2008-06-21 12:25 ` Mark Salyzyn
2008-06-23 19:29 ` Muli Ben-Yehuda
2008-07-15 8:45 ` Chandru
2008-07-15 10:52 ` Muli Ben-Yehuda
2008-07-17 23:14 ` Andrew Morton
2008-07-20 9:42 ` Muli Ben-Yehuda
2008-03-11 13:29 ` Vivek Goyal
2008-03-12 5:08 ` Chandru [this message]
2008-03-12 9:58 ` Muli Ben-Yehuda
2008-03-12 18:08 ` Vivek Goyal
2008-03-13 15:49 ` Muli Ben-Yehuda
2007-10-10 5:37 ` Vivek Goyal
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=47D76561.8050805@in.ibm.com \
--to=chandru@in.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=jdmason@kudzu.us \
--cc=linux-kernel@vger.kernel.org \
--cc=muli@il.ibm.com \
--cc=vgoyal@redhat.com \
/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