[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190516134725.GA53952@sx9>
Date: Thu, 16 May 2019 15:47:25 +0200
From: Fredrik Noring <noring@...rew.org>
To: Laurentiu Tudor <laurentiu.tudor@....com>
Cc: Robin Murphy <robin.murphy@....com>, "hch@....de" <hch@....de>,
"stern@...land.harvard.edu" <stern@...land.harvard.edu>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
"marex@...x.de" <marex@...x.de>,
"JuergenUrban@....de" <JuergenUrban@....de>,
Leo Li <leoyang.li@....com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH v2 0/3] prerequisites for device reserved local mem
rework
Hi Laurentiu,
> > The kernel oopses with "unable to handle kernel paging request at virtual
> > address 000aba0b" in hcd_alloc_coherent via usb_hcd_map_urb_for_dma.
>
> By any chance, does this address looks like the dma_addr that the device
> should target?
Yes, that looks like a typical device address suitable for its DMA.
> Actually, I think I'm misusing genalloc and also it appears that i need
> to add a mapping on the phys address. So my plan is to change the
> "unsigned long virt" to be the void * returned by the mapping operation
> and the phys_addr_t be the dma_addr_t. I'll return with a patch.
Great, I'm happy to test your next patch revision.
Fredrik
Powered by blists - more mailing lists