Re: [PATCH v2 09/10] mm, cma: move output param to the end of param list

2014-06-12 Thread Michal Nazarewicz
ce code to the position > where it is really needed. > > Signed-off-by: Joonsoo Kim Acked-by: Michal Nazarewicz > > diff --git a/arch/powerpc/kvm/book3s_hv_builtin.c > b/arch/powerpc/kvm/book3s_hv_builtin.c > index 28ec226..97613ea 100644 > --- a/arch/powerpc/kvm/book3s

Re: [PATCH v2 08/10] mm, cma: clean-up cma allocation error path

2014-06-12 Thread Michal Nazarewicz
On Thu, Jun 12 2014, Joonsoo Kim wrote: > We can remove one call sites for clear_cma_bitmap() if we first > call it before checking error number. > > Signed-off-by: Joonsoo Kim Reviewed-by: Michal Nazarewicz > diff --git a/mm/cma.c b/mm/cma.c > index 1e1b017..01a0713 10064

Re: [PATCH v2 05/10] DMA, CMA: support arbitrary bitmap granularity

2014-06-12 Thread Michal Nazarewicz
arbitrary bitmap granularity for following generalization. > > Signed-off-by: Joonsoo Kim Acked-by: Michal Nazarewicz > diff --git a/drivers/base/dma-contiguous.c b/drivers/base/dma-contiguous.c > index bc4c171..9bc9340 100644 > --- a/drivers/base/dma-contiguous.c > +++ b/drivers/bas

Re: [PATCH v2 04/10] DMA, CMA: support alignment constraint on cma region

2014-06-12 Thread Michal Nazarewicz
big issue. > cma region. So support it to prepare generalization of cma area > management functionality. > > Additionally, add some comments which tell us why alignment > constraint is needed on cma region. > > Signed-off-by: Joonsoo Kim Acked-by: Michal Nazarewicz > di

Re: [PATCH v2 03/10] DMA, CMA: separate core cma management codes from DMA APIs

2014-06-12 Thread Michal Nazarewicz
lity in following patches. > This separation helps us not to touch DMA APIs while extending > core functions. > > Signed-off-by: Joonsoo Kim Acked-by: Michal Nazarewicz -- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of

Re: [PATCH v2 01/10] DMA, CMA: clean-up log message

2014-06-12 Thread Michal Nazarewicz
On Thu, Jun 12 2014, Michal Nazarewicz wrote: > I used “function(arg1, arg2, …)” at the *beginning* of functions when > the arguments passed to the function were included in the message. In > all other cases I left it at just “function:” (or just no additional > prefix). IMO that&#x

Re: [PATCH v2 02/10] DMA, CMA: fix possible memory leak

2014-06-12 Thread Michal Nazarewicz
Joonsoo Kim Reviewed-by: Michal Nazarewicz > diff --git a/drivers/base/dma-contiguous.c b/drivers/base/dma-contiguous.c > index bd0bb81..fb0cdce 100644 > --- a/drivers/base/dma-contiguous.c > +++ b/drivers/base/dma-contiguous.c > @@ -177,14 +177,24 @@ static int

Re: [PATCH v2 01/10] DMA, CMA: clean-up log message

2014-06-12 Thread Michal Nazarewicz
print function name consistently. > > Lastly, I add one more debug log on cma_activate_area(). I don't particularly care what format of logs you choose, so: Acked-by: Michal Nazarewicz even though I'd go without empty “()”. > Signed-off-by: Joonsoo Kim > > diff

Re: [PATCH v2 01/10] DMA, CMA: clean-up log message

2014-06-12 Thread Michal Nazarewicz
>> Joonsoo Kim writes: >> >> > We don't need explicit 'CMA:' prefix, since we already define prefix >> > 'cma:' in pr_fmt. So remove it. >> > >> > And, some logs print function name and others doesn't. This looks >> > bad to me, so I unify log format to print function name consistently. >> > >> >

Re: [RFC PATCH 2/3] DMA, CMA: use general CMA reserved area management framework

2014-06-11 Thread Michal Nazarewicz
On Tue, Jun 10 2014, Joonsoo Kim wrote: > Without including device.h, build failure occurs. > In dma-contiguous.h, we try to access to dev->cma_area, so we need > device.h. In the past, we included it luckily by swap.h in > drivers/base/dma-contiguous.c. Swap.h includes node.h and then node.h > in

Re: [RFC PATCH 3/3] PPC, KVM, CMA: use general CMA reserved area management framework

2014-06-03 Thread Michal Nazarewicz
On Tue, Jun 03 2014, Joonsoo Kim wrote: > Now, we have general CMA reserved area management framework, > so use it for future maintainabilty. There is no functional change. > > Signed-off-by: Joonsoo Kim Acked-by: Michal Nazarewicz --

Re: [RFC PATCH 2/3] DMA, CMA: use general CMA reserved area management framework

2014-06-03 Thread Michal Nazarewicz
On Tue, Jun 03 2014, Joonsoo Kim wrote: > Now, we have general CMA reserved area management framework, > so use it for future maintainabilty. There is no functional change. > > Signed-off-by: Joonsoo Kim Acked-by: Michal Nazarewicz > diff --git a/include/linux/dma-contiguous.h

Re: [RFC PATCH 1/3] CMA: generalize CMA reserved area management functionality

2014-06-02 Thread Michal Nazarewicz
a management code. > > Signed-off-by: Joonsoo Kim Some small comments below, but in general Acked-by: Michal Nazarewicz > > diff --git a/include/linux/cma.h b/include/linux/cma.h > new file mode 100644 > index 000..60ba06f > --- /dev/null > +++ b/inclu

Re: [PATCH -V2 1/4] mm/cma: Move dma contiguous changes into a seperate config

2013-07-01 Thread Michal Nazarewicz
requiring DMA contiguous. > > Signed-off-by: Aneesh Kumar K.V Acked-by: Michal Nazarewicz > diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig > index 07abd9d..74b7c98 100644 > --- a/drivers/base/Kconfig > +++ b/drivers/base/Kconfig > @@ -202,11 +202,10 @@ config DMA_SHAR

Re: [PATCH 5/5] usb: gadget: composite: parse dt overrides

2012-06-26 Thread Michal Nazarewicz
On 06/26/2012 09:27 AM, Alexandre Pereira da Silva wrote: Grab the devicetree node properties to override VendorId, ProductId, bcdDevice, Manucacturer, Product and SerialNumber Like before, the code looks good to me: Acked-by: Michal Nazarewicz Not commenting on the other aspects of the

Re: [RFC PATCH 0/9] Remove useless on_each_cpu return value

2012-01-03 Thread Michal Nazarewicz
On Tue, 03 Jan 2012 15:19:04 +0100, Gilad Ben-Yossef wrote: on_each_cpu() returns as its own return value the return value of smp_call_function(). smp_call_function() in turn returns a hard coded value of zero. Some callers to on_each_cpu() waste cycles and bloat code space by checking the ret

Re: [PATCH v2] USB: fsl_udc_core: use usb_endpoint_xfer_isoc to judge ISO XFER

2011-11-21 Thread Michal Nazarewicz
: Michal Nazarewicz @@ -877,7 +877,7 @@ fsl_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) VDBG("%s, bad ep", __func__); return -EINVAL; } - if (ep->desc->bmAttributes == USB_ENDPOINT_XFER_ISOC) { + if (usb_en

Re: [PATCH] USB: fsl_udc_core: Use (&) instead of (==) to compare ISO XFER

2011-11-21 Thread Michal Nazarewicz
>bmAttributes == USB_ENDPOINT_XFER_ISOC) { + if (ep->desc->bmAttributes & USB_ENDPOINT_XFER_ISOC) { On Tue, 22 Nov 2011 02:22:10 +0100, Michal Nazarewicz wrote: What you really meant is: (ep->desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == USB_ENDPOINT_XFER_ISOC It would probably

Re: [PATCH] USB: fsl_udc_core: Use (&) instead of (==) to compare ISO XFER

2011-11-21 Thread Michal Nazarewicz
On Tue, 22 Nov 2011 02:15:21 +0100, Peter Chen wrote: Some ISO gadgets, like audio, has SYNC attribute as well as USB_ENDPOINT_XFER_ISOC for their bmAttributes at ISO endpoint descriptor. So, it needs to use & instead of == to judge if it is ISO XFER. Signed-off-by: Peter Chen --- drivers/us