[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130804.185146.1621476659301936865.davem@davemloft.net>
Date: Sun, 04 Aug 2013 18:51:46 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: hpa@...or.com
Cc: dh.herrmann@...il.com, linux-fbdev@...r.kernel.org,
linux-kernel@...r.kernel.org, plagnioj@...osoft.com,
tomi.valkeinen@...com, santiago@...reenet.org
Subject: Re: [PATCH] fbdev: suppress warning when assigning
vga-save/restore base
From: "H. Peter Anvin" <hpa@...or.com>
Date: Sun, 04 Aug 2013 10:33:46 -0700
> Anyone who can dig backwards and summarize? In other words:
>
> Where in the current code do we stuff a physical address in a pointer,
> or a virtual address into a non-pointer?
The VGA register accessors try to accomodate iomem and ioport
accesses.
If they are given a non-NULL iomem pointer 'regbase' they use
iomem accesses, otherwise they do direct ISA port poking.
And yes the drivers in question are making some brash assumptions.
I suspect they should be using ioremap() or similar.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists