Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-20 Thread Rich Felker
On Mon, Jul 20, 2020 at 10:53:26AM -0400, Rich Felker wrote: > On Mon, Jul 20, 2020 at 03:42:38PM +0200, John Paul Adrian Glaubitz wrote: > > Hi Christoph! > > > > On 7/20/20 3:38 PM, Christoph Hellwig wrote: > > > On Wed, Jul 15, 2020 at 01:12:33AM +0200, John Paul Adrian Glaubitz wrote: > > >> H

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-20 Thread Rich Felker
On Mon, Jul 20, 2020 at 03:42:38PM +0200, John Paul Adrian Glaubitz wrote: > Hi Christoph! > > On 7/20/20 3:38 PM, Christoph Hellwig wrote: > > On Wed, Jul 15, 2020 at 01:12:33AM +0200, John Paul Adrian Glaubitz wrote: > >> Hello! > >> > >> I have applied Christoph's full series on top of Linus' t

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-20 Thread John Paul Adrian Glaubitz
Hi Christoph! On 7/20/20 3:38 PM, Christoph Hellwig wrote: > On Wed, Jul 15, 2020 at 01:12:33AM +0200, John Paul Adrian Glaubitz wrote: >> Hello! >> >> I have applied Christoph's full series on top of Linus' tree and I can >> confirm that >> the kernel boots fine on my SH-7785LCR board. >> >> Thu

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-20 Thread Christoph Hellwig
On Wed, Jul 15, 2020 at 01:12:33AM +0200, John Paul Adrian Glaubitz wrote: > Hello! > > I have applied Christoph's full series on top of Linus' tree and I can > confirm that > the kernel boots fine on my SH-7785LCR board. > > Thus, for the whole series of patches: > > Tested-by: John Paul Adria

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread John Paul Adrian Glaubitz
On 7/16/20 9:28 PM, Peter Zijlstra wrote: > For some reason I had a whole bunch of junk left in my checkout and had > to basically: rm `git status -s | awk '{print $2}'`. > > Sorry for the noise. > > OK, let me go try my own patches :-) FWIW, I just successfully built the "defconfig" configurati

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread Peter Zijlstra
On Thu, Jul 16, 2020 at 08:14:38PM +0200, John Paul Adrian Glaubitz wrote: > Hi Peter! > > On 7/16/20 2:04 PM, pet...@infradead.org wrote: > > On Thu, Jul 16, 2020 at 01:37:20PM +0200, pet...@infradead.org wrote: > >> $ /opt/cross/bin/sh4-linux-gcc --version > >> sh4-linux-gcc (GCC) 10.1.0 > > >

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread John Paul Adrian Glaubitz
Hi Peter! On 7/16/20 2:04 PM, pet...@infradead.org wrote: > On Thu, Jul 16, 2020 at 01:37:20PM +0200, pet...@infradead.org wrote: >> $ /opt/cross/bin/sh4-linux-gcc --version >> sh4-linux-gcc (GCC) 10.1.0 > > $ git checkout origin/master # linus' tree > $ mkdir sh-defconfig > $ make O=sh-defconfig

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread peterz
On Thu, Jul 16, 2020 at 01:37:20PM +0200, pet...@infradead.org wrote: > $ /opt/cross/bin/sh4-linux-gcc --version > sh4-linux-gcc (GCC) 10.1.0 $ git checkout origin/master # linus' tree $ mkdir sh-defconfig $ make O=sh-defconfig/ ARCH=sh CROSS_COMPILE=/opt/cross/bin/sh4-linux- defconfig # shx3_def

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread peterz
On Thu, Jul 16, 2020 at 01:03:36PM +0200, John Paul Adrian Glaubitz wrote: > Hi Peter! > > On 7/16/20 1:01 PM, pet...@infradead.org wrote: > >> The build fails with: > >> > >> CC mm/mmu_gather.o > >> mm/mmu_gather.c: In function ‘tlb_table_invalidate’: > >> mm/mmu_gather.c:180:6: error: imp

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread John Paul Adrian Glaubitz
Hi Geert! On 7/15/20 9:27 AM, Geert Uytterhoeven wrote: > Any plans to take "[PATCH v2 0/9] sh: Modernize printing of kernel messages"? > https://lore.kernel.org/r/20200617143639.18315-1-geert+rene...@glider.be @Rich: Any chance we can pick this one up? Adrian -- .''`. John Paul Adrian Glaubi

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread John Paul Adrian Glaubitz
On 7/15/20 6:18 PM, John Paul Adrian Glaubitz wrote: > Found the culprit: > > c5b27a889da92f4a969d61df77bd4f79ffce57c9 is the first bad commit > commit c5b27a889da92f4a969d61df77bd4f79ffce57c9 > Author: Peter Zijlstra > Date: Tue Sep 4 14:45:04 2018 +0200 > > sh/tlb: Convert SH to generic

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread John Paul Adrian Glaubitz
Hi Peter! On 7/16/20 1:01 PM, pet...@infradead.org wrote: >> The build fails with: >> >> CC mm/mmu_gather.o >> mm/mmu_gather.c: In function ‘tlb_table_invalidate’: >> mm/mmu_gather.c:180:6: error: implicit declaration of function >> ‘tlb_needs_table_invalidate’; did you mean ‘tlb_table_inv

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread peterz
On Thu, Jul 16, 2020 at 12:54:51PM +0200, John Paul Adrian Glaubitz wrote: > Hi Peter! > > On 7/16/20 12:29 PM, pet...@infradead.org wrote: > >> Then Aneesh got a bunch of those patches merged because he needed it for > >> Power, but the rest bitrotted again. > >> > >> Let me rebase/refresh the re

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread John Paul Adrian Glaubitz
Hi Peter! On 7/16/20 12:29 PM, pet...@infradead.org wrote: >> Then Aneesh got a bunch of those patches merged because he needed it for >> Power, but the rest bitrotted again. >> >> Let me rebase/refresh the rest of that and send it out again. > > OK, latest patches here: > > git://git.kernel.o

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread peterz
On Thu, Jul 16, 2020 at 11:40:39AM +0200, Peter Zijlstra wrote: > On Wed, Jul 15, 2020 at 08:21:27PM +0200, Geert Uytterhoeven wrote: > > > Oh, we actually discussed that: > > https://lore.kernel.org/linux-mm/20191204133454.gw2...@hirez.programming.kicks-ass.net/ > > but there was no conclusion...

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread John Paul Adrian Glaubitz
Hi Peter! On 7/16/20 11:40 AM, Peter Zijlstra wrote: > On Wed, Jul 15, 2020 at 08:21:27PM +0200, Geert Uytterhoeven wrote: > >> Oh, we actually discussed that: >> https://lore.kernel.org/linux-mm/20191204133454.gw2...@hirez.programming.kicks-ass.net/ >> but there was no conclusion... > > Urgh..

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-16 Thread Peter Zijlstra
On Wed, Jul 15, 2020 at 08:21:27PM +0200, Geert Uytterhoeven wrote: > Oh, we actually discussed that: > https://lore.kernel.org/linux-mm/20191204133454.gw2...@hirez.programming.kicks-ass.net/ > but there was no conclusion... Urgh.. clearly that fell off the table :-( So yes, that patch works, bu

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread John Paul Adrian Glaubitz
On 7/15/20 8:21 PM, Geert Uytterhoeven wrote: >> CC'ing the author (Peter Zijlstra ). > > Oh, we actually discussed that: > https://lore.kernel.org/linux-mm/20191204133454.gw2...@hirez.programming.kicks-ass.net/ > but there was no conclusion... Aha, interesting. The question is whether someone ca

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread Geert Uytterhoeven
On Wed, Jul 15, 2020 at 6:18 PM John Paul Adrian Glaubitz wrote: > On 7/15/20 4:37 PM, John Paul Adrian Glaubitz wrote: > > Okay, kernel 5.0.0 does not suffer from this bug. So I should be able to > > bisect > > this particular issue. > > > > I'm glad I don't have to start bisecting with earlier

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread John Paul Adrian Glaubitz
On 7/15/20 4:37 PM, John Paul Adrian Glaubitz wrote: > Okay, kernel 5.0.0 does not suffer from this bug. So I should be able to > bisect > this particular issue. > > I'm glad I don't have to start bisecting with earlier kernels because these > won't build easily with my current toolchain based on

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread John Paul Adrian Glaubitz
On 7/15/20 4:37 PM, John Paul Adrian Glaubitz wrote: > Will report once I found the bad commit that introduced the problem. git bisect lead me to a merge commit: glaubitz@epyc:..glaubitz/linux> git bisect log git bisect start # good: [1c163f4c7b3f621efff9b28a47abb36f7378d783] Linux 5.0 git bisect

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread John Paul Adrian Glaubitz
Hi Geert! On 7/15/20 10:27 AM, John Paul Adrian Glaubitz wrote: >> Lemme gues: does commit 002ae7057069538a ("mm, dump_page(): do not crash >> with invalid mapping pointer") in v5.8-rc1 help? > > Hmm, it seems I already have that patch (I'm using Linus' main tree): > > commit 002ae7057069538aa3a

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread John Paul Adrian Glaubitz
Hi! On 7/15/20 10:11 AM, Geert Uytterhoeven wrote: >> Btw, booting with systemd as init causes a lot of hickups which I didn't see >> with 3.16: > >> [ 25.184000] BUG: Bad page state in process systemd-hiberna pfn:5d91a > > Lemme gues: does commit 002ae7057069538a ("mm, dump_page(): do not c

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread Geert Uytterhoeven
Hi Adrian, On Wed, Jul 15, 2020 at 9:51 AM John Paul Adrian Glaubitz wrote: > On 7/15/20 9:46 AM, John Paul Adrian Glaubitz wrote: > > Indeed, it does. This patch should be picked up as well. > > > > Kernel boots without any errors now. > > Btw, booting with systemd as init causes a lot of hickup

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread Geert Uytterhoeven
Hi Adrian, On Wed, Jul 15, 2020 at 9:46 AM John Paul Adrian Glaubitz wrote: > On 7/15/20 9:27 AM, Geert Uytterhoeven wrote: > >> [5.464000] WARNING: CPU: 0 PID: 1 at mm/slab.c:2589 > >> cache_alloc_refill+0x216/0x6a0 > >> [5.464000] Modules linked in: > >> [5.464000] > >> [5.4640

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread Geert Uytterhoeven
Hi Adrian, On Wed, Jul 15, 2020 at 9:37 AM John Paul Adrian Glaubitz wrote: > On 7/15/20 9:27 AM, Geert Uytterhoeven wrote: > > On Wed, Jul 15, 2020 at 1:14 AM John Paul Adrian Glaubitz > > wrote: > >> However, independent of Christoph's series, the kernels throws two > >> backtraces during > >

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread John Paul Adrian Glaubitz
On 7/15/20 9:46 AM, John Paul Adrian Glaubitz wrote: > Indeed, it does. This patch should be picked up as well. > > Kernel boots without any errors now. Btw, booting with systemd as init causes a lot of hickups which I didn't see with 3.16: [ 25.184000] 9d903e2c [ 25.184000] 8062124c [

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread John Paul Adrian Glaubitz
On 7/15/20 9:27 AM, Geert Uytterhoeven wrote: >> [5.464000] WARNING: CPU: 0 PID: 1 at mm/slab.c:2589 >> cache_alloc_refill+0x216/0x6a0 >> [5.464000] Modules linked in: >> [5.464000] >> [5.464000] CPU: 0 PID: 1 Comm: swapper Not tainted >> 5.8.0-rc5-00026-g22b7a96ece82 #3 >> [5

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread John Paul Adrian Glaubitz
Hi Geert! On 7/15/20 9:27 AM, Geert Uytterhoeven wrote: > Hi Adrian, > > On Wed, Jul 15, 2020 at 1:14 AM John Paul Adrian Glaubitz > wrote: >> However, independent of Christoph's series, the kernels throws two >> backtraces during >> boot which I think should require a git bisect (unless I miss

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread Geert Uytterhoeven
Hi Adrian, On Wed, Jul 15, 2020 at 1:14 AM John Paul Adrian Glaubitz wrote: > However, independent of Christoph's series, the kernels throws two backtraces > during > boot which I think should require a git bisect (unless I missed a > configuration option > as I trimmed down the kernel a bit to

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-14 Thread John Paul Adrian Glaubitz
On 7/15/20 5:12 AM, Rich Felker wrote: >> See the traces below and let me know what you think. > > I've got a slightly earlier version (my for-next) built for qemu r2d > board, and don't get any such messages. Do you have a lock-debugging > option enabled that's catching a problem, perhaps? Which

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-14 Thread Rich Felker
On Wed, Jul 15, 2020 at 01:12:33AM +0200, John Paul Adrian Glaubitz wrote: > Hello! > > I have applied Christoph's full series on top of Linus' tree and I can > confirm that > the kernel boots fine on my SH-7785LCR board. > > Thus, for the whole series of patches: > > Tested-by: John Paul Adria

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-14 Thread John Paul Adrian Glaubitz
On 7/15/20 1:12 AM, John Paul Adrian Glaubitz wrote: > See the traces below and let me know what you think. (The second trace is redundant, I actually meant to post the two traces only and not the whole kernel boot sequence). Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-14 Thread John Paul Adrian Glaubitz
Hello! I have applied Christoph's full series on top of Linus' tree and I can confirm that the kernel boots fine on my SH-7785LCR board. Thus, for the whole series of patches: Tested-by: John Paul Adrian Glaubitz However, independent of Christoph's series, the kernels throws two backtraces d

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-14 Thread John Paul Adrian Glaubitz
On 7/14/20 5:59 PM, Rich Felker wrote: > I'd like to have a way to test the DMA changes or testing feedback > from someone using an affected configuration just because they're > sufficiently nontrivial (Adrian might be able to do this? If so that'd > be great; if not let me know if it's testable in

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-14 Thread Rich Felker
On Tue, Jul 14, 2020 at 02:31:00PM +0200, John Paul Adrian Glaubitz wrote: > Hi Christoph! > > On 7/14/20 2:18 PM, Christoph Hellwig wrote: > > can you take a look and possibly pick up the series below that untangles > > and sorts out minor issues with the sh ioremap and dma code? > > > > I sent

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-14 Thread John Paul Adrian Glaubitz
Hi Christoph! On 7/14/20 2:18 PM, Christoph Hellwig wrote: > can you take a look and possibly pick up the series below that untangles > and sorts out minor issues with the sh ioremap and dma code? > > I sent this out a few times, but never got an answer. If you don't > want to pick up the series

Re: ioremap() called early from pnv_pci_init_ioda_phb()

2020-05-09 Thread Oliver O'Halloran
On Sun, May 10, 2020 at 1:51 AM Christophe Leroy wrote: > > > > Le 08/05/2020 à 19:41, Qian Cai a écrit : > > > > > >> On May 8, 2020, at 10:39 AM, Qian Cai wrote: > >> > >> Booting POWER9 PowerNV has this message, > >> > >> "ioremap() called early from pnv_pci_init_ioda_phb+0x420/0xdfc. Use > >

Re: ioremap() called early from pnv_pci_init_ioda_phb()

2020-05-09 Thread Christophe Leroy
Le 08/05/2020 à 19:41, Qian Cai a écrit : On May 8, 2020, at 10:39 AM, Qian Cai wrote: Booting POWER9 PowerNV has this message, "ioremap() called early from pnv_pci_init_ioda_phb+0x420/0xdfc. Use early_ioremap() instead” but use the patch below will result in leaks because it will neve

Re: ioremap() called early from pnv_pci_init_ioda_phb()

2020-05-09 Thread Qian Cai
> On May 9, 2020, at 4:38 AM, Nicholas Piggin wrote: > > Your patch to use early_ioremap is faulting? I wonder why? Yes, I don’t know the reasons either. I suppose not many places in other parts of the kernel which keep using those addresses from early_ioremap() after system booted. Otherwi

Re: ioremap() called early from pnv_pci_init_ioda_phb()

2020-05-09 Thread Nicholas Piggin
Excerpts from Oliver O'Halloran's message of May 9, 2020 6:11 pm: > On Sat, May 9, 2020 at 12:41 AM Qian Cai wrote: >> >> Booting POWER9 PowerNV has this message, >> >> "ioremap() called early from pnv_pci_init_ioda_phb+0x420/0xdfc. Use >> early_ioremap() instead” >> >> but use the patch below w

Re: ioremap() called early from pnv_pci_init_ioda_phb()

2020-05-09 Thread Nicholas Piggin
Excerpts from Qian Cai's message of May 9, 2020 3:41 am: > > >> On May 8, 2020, at 10:39 AM, Qian Cai wrote: >> >> Booting POWER9 PowerNV has this message, >> >> "ioremap() called early from pnv_pci_init_ioda_phb+0x420/0xdfc. Use >> early_ioremap() instead” >> >> but use the patch below will

Re: ioremap() called early from pnv_pci_init_ioda_phb()

2020-05-09 Thread Oliver O'Halloran
On Sat, May 9, 2020 at 12:41 AM Qian Cai wrote: > > Booting POWER9 PowerNV has this message, > > "ioremap() called early from pnv_pci_init_ioda_phb+0x420/0xdfc. Use > early_ioremap() instead” > > but use the patch below will result in leaks because it will never call > early_iounmap() anywhere.

Re: ioremap() called early from pnv_pci_init_ioda_phb()

2020-05-08 Thread Qian Cai
> On May 8, 2020, at 10:39 AM, Qian Cai wrote: > > Booting POWER9 PowerNV has this message, > > "ioremap() called early from pnv_pci_init_ioda_phb+0x420/0xdfc. Use > early_ioremap() instead” > > but use the patch below will result in leaks because it will never call > early_iounmap() anywh

Re: ioremap cleanups

2019-09-02 Thread Geert Uytterhoeven
Hi Christoph, On Fri, Aug 30, 2019 at 6:12 PM Christoph Hellwig wrote: > these are three cleanups from my generic ioremap series that needed > a few edits, and which I'd like you to pick up through your respective > arch trees for 5.4 if possible. Thanks, [1/3] applied and queued for v5.4 in the

Re: ioremap vs remap_pfn_range, VMSPLIT, etc

2015-01-09 Thread Russell King - ARM Linux
On Fri, Jan 09, 2015 at 06:46:24PM +0100, Mason wrote: > On 09/01/2015 14:13, Russell King - ARM Linux wrote: > > > On Fri, Jan 09, 2015 at 01:59:10PM +0100, Mason wrote: > >> I was expecting it to fail. > >> > >> - the kernel is configured with VMSPLIT_3G (3G/1G user/kernel) > > > > This has no

Re: ioremap vs remap_pfn_range, VMSPLIT, etc

2015-01-09 Thread Mason
Hello Vladimir, On 09/01/2015 19:06, Vladimir Murzin wrote: > On 09/01/15 17:46, Mason wrote: >> On 09/01/2015 14:13, Russell King - ARM Linux wrote: >> >>> On Fri, Jan 09, 2015 at 01:59:10PM +0100, Mason wrote: >>> Yesterday, I used /dev/mem to mmap 2 GB and (to my surprise) it worked.

Re: ioremap vs remap_pfn_range, VMSPLIT, etc

2015-01-09 Thread Vladimir Murzin
On 09/01/15 17:46, Mason wrote: > On 09/01/2015 14:13, Russell King - ARM Linux wrote: > >> On Fri, Jan 09, 2015 at 01:59:10PM +0100, Mason wrote: >> >>> Yesterday, I used /dev/mem to mmap 2 GB and (to my surprise) it worked. >>> Specifically, I opened /dev/mem O_RDWR | O_SYNC >>> then called >>>

Re: ioremap vs remap_pfn_range, VMSPLIT, etc

2015-01-09 Thread Mason
On 09/01/2015 14:13, Russell King - ARM Linux wrote: > On Fri, Jan 09, 2015 at 01:59:10PM +0100, Mason wrote: > >> Yesterday, I used /dev/mem to mmap 2 GB and (to my surprise) it worked. >> Specifically, I opened /dev/mem O_RDWR | O_SYNC >> then called >> mmap(NULL, 1U<<31, PROT_WRITE, MAP_SHARE

Re: ioremap vs remap_pfn_range, VMSPLIT, etc

2015-01-09 Thread Russell King - ARM Linux
On Fri, Jan 09, 2015 at 01:59:10PM +0100, Mason wrote: > Hello everyone, > > Yesterday, I used /dev/mem to mmap 2 GB and (to my surprise) it worked. > Specifically, I opened /dev/mem O_RDWR | O_SYNC > then called > mmap(NULL, 1U<<31, PROT_WRITE, MAP_SHARED, fd, 0x8000); So you asked to map

Re: ioremap() and port of linux to MPC7400 based SBC (VME board)

2005-02-07 Thread Heinz-Jürgen Oertel
him wrote: > I have run into a problem I am having a hard time figuring out. > > I have an MPC7400 SBC (PCI bus based) that has a device X residing > at the following locations in memory: > > 0x1860 - 0x186f device control register space > 0xb000 - 0xbfff device memor

Re: ioremap of pci base addresses

2000-10-12 Thread Jeff Garzik
Francois romieu wrote: > token = (unsigned long)ioremap(pci_resource_start(pdev, 0), > pci_resource_len(pdev, 0)); Looks great except for one small point -- we have been going through drivers cleaning up where they start casting like this. You sh

Re: ioremap of pci base addresses

2000-10-12 Thread Francois romieu
The Thu, Oct 12, 2000 at 11:02:50AM +0530, [EMAIL PROTECTED] wrote : > once i have got the pci_dev structure( by calling pci_find*), do i > explicitly need to call ioremap for remapping mmio. > i think pci_enable_device does this. correct me if i am wrong.. ioremap does not only remap mmio but re

Re: IOREMAP

2000-09-22 Thread Alan Cox
> > the physical address you request. It's intended for PCI memory, but you can > > use it on normal memory is mark the pages reserved in the mem_map_t structures. > > Well no. It specifically disallows using space already used by RAM. The original poster is correct for 2.4 and 2.2.18pre+. For

Re: IOREMAP

2000-09-22 Thread Timur Tabi
** Reply to message from "Richard B. Johnson" <[EMAIL PROTECTED]> on Fri, 22 Sep 2000 12:48:06 -0400 (EDT) > Well no. It specifically disallows using space already used by RAM. Sorry, I should have said that in 2.4, you can use ioremap on normal RAM, although I'm having some problems getting it

Re: IOREMAP

2000-09-22 Thread Richard B. Johnson
On Fri, 22 Sep 2000, Timur Tabi wrote: > ** Reply to message from MOHAMMED AZAD <[EMAIL PROTECTED]> on Fri, 22 Sep > 2000 21:26:56 +0530 > > > > How does ioremap work???... does it allocate memory after a remap > > operation.. can someone throw some light on this... any help appreciated... > >

Re: IOREMAP

2000-09-22 Thread Richard B. Johnson
On Fri, 22 Sep 2000, MOHAMMED AZAD wrote: > Hi all, > > How does ioremap work???... does it allocate memory after a remap > operation.. can someone throw some light on this... any help appreciated... > > thanks > azad ioremap takes address-space, presumably occupied by a device (like on the PC

Re: IOREMAP

2000-09-22 Thread Timur Tabi
** Reply to message from MOHAMMED AZAD <[EMAIL PROTECTED]> on Fri, 22 Sep 2000 21:26:56 +0530 > How does ioremap work???... does it allocate memory after a remap > operation.. can someone throw some light on this... any help appreciated... Well, as they say around here ... "the source code is t

Re: ioremap & Co i386 -> sparc64

2000-09-18 Thread David S. Miller
Date:Mon, 18 Sep 2000 16:11:37 +0200 From: Florian Lohoff <[EMAIL PROTECTED]> This is all Kernel 2.2.17 ioremap is buggy on sparc64 in 2.2.x, but fixing it would break a lot of drivers. See drivers/net/sk98lin/skge.c, grep for __sparc__, for how to deal with this problem. Late