mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.5.50] oops while read accessing to /proc/bus/pnp/escd
@ 2002-12-06 12:39 Ruslan U. Zakirov
  0 siblings, 0 replies; only message in thread
From: Ruslan U. Zakirov @ 2002-12-06 12:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: Adam Belay

cat /proc/bus/pnp/escd couses an oops.
oops caused while executing this func.
static int __pnp_bios_read_escd(char *data, u32 nvram_base)
{
        u16 status;
        if (!pnp_bios_present())
                return ESCD_FUNCTION_NOT_SUPPORTED;
        status = call_pnp_bios(PNP_READ_ESCD, 0, PNP_TS1, PNP_TS2, PNP_DS, 0, 0, 0,
                               data, 65536, (void *)nvram_base, 65536);
        return status;
}
but i don't have access to my computer and can't send full oops.
I've tried to solve this problem myself, but couldn't.
I think that the problem is in nvram_base because we don't alocate
memory page for it. We get address from pnp_bios_escd_info, but in PnP
BIOS spec wrote that
  "In this case, it is the responsibility of the caller to construct a
16-bit data segment descriptor with base = NVStorageBase, a limit
of 64K and read/write access."
I didn't find something like memory aloc between getting escd info and
calling this func.
Best regards.
             Ruslan.
PS And please CC patch to me if it'll be fixed before I do it myself.
PS And last, any comments and explanations will be desirable.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-06 12:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-06 12:39 [2.5.50] oops while read accessing to /proc/bus/pnp/escd Ruslan U. Zakirov

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®