From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] fix phys. address conversion in ia64_pal_tr_read
Date: Tue, 16 Nov 2004 01:22:41 +0000 [thread overview]
Message-ID: <200411151722.41157.jbarnes@engr.sgi.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
The palinfo module may call ia64_pal_tr_read using an IPI. If the processor
receiving the IPI is idle, the call will fail since the idle process stack is
in region 5 and ia64_pal_tr_read uses __pa rather than ia64_tpa. This small
patch fixes the problem by making it use ia64_tpa instead.
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Thanks,
Jesse
[-- Attachment #2: tr-info-fix-2.patch --]
[-- Type: text/plain, Size: 551 bytes --]
===== include/asm-ia64/pal.h 1.9 vs edited =====
--- 1.9/include/asm-ia64/pal.h 2003-11-25 00:23:21 -08:00
+++ edited/include/asm-ia64/pal.h 2004-11-15 17:07:51 -08:00
@@ -1531,7 +1531,7 @@
ia64_pal_tr_read (u64 reg_num, u64 tr_type, u64 *tr_buffer, pal_tr_valid_u_t *tr_valid)
{
struct ia64_pal_retval iprv;
- PAL_CALL_PHYS_STK(iprv, PAL_VM_TR_READ, reg_num, tr_type,(u64)__pa(tr_buffer));
+ PAL_CALL_PHYS_STK(iprv, PAL_VM_TR_READ, reg_num, tr_type,(u64)ia64_tpa(tr_buffer));
if (tr_valid)
tr_valid->piv_val = iprv.v0;
return iprv.status;
next reply other threads:[~2004-11-16 1:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-16 1:22 Jesse Barnes [this message]
2004-11-16 2:03 ` [PATCH] fix phys. address conversion in ia64_pal_tr_read David Mosberger
2004-11-16 17:01 ` Jesse Barnes
2004-11-16 17:57 ` David Mosberger
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=200411151722.41157.jbarnes@engr.sgi.com \
--to=jbarnes@engr.sgi.com \
--cc=linux-ia64@vger.kernel.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