[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <013401d12d04$75928230$60b78690$@samsung.com>
Date: Wed, 02 Dec 2015 16:22:13 +0300
From: Pavel Fedin <p.fedin@...sung.com>
To: 'Sunil Kovvuri' <sunil.kovvuri@...il.com>
Cc: 'Eric Dumazet' <eric.dumazet@...il.com>,
'Linux Netdev List' <netdev@...r.kernel.org>,
'LKML' <linux-kernel@...r.kernel.org>,
'LAKML' <linux-arm-kernel@...ts.infradead.org>,
'Sunil Goutham' <Sunil.Goutham@...iumnetworks.com>,
'Sunil Goutham' <sgoutham@...ium.com>
Subject: RE: [PATCH 3/6] net: thunderx: Increase transmit queue length
Hello!
> >After getting it working in guest i tried to apply it to host. With total of 128 virtual
> functions (= 128 interfaces) it does not work at all.
> > Even after bumping cma region size to insane value of 2GB more than half of interfaces still
> failed to allocate queues.
> > And after setting cma=3G i could not mount my rootfs.
>
> Here what you are saying is half of the interfaces were initialized
> succesfully and rest didn't.
After setting cma=2G. With default setting of 16M none of them initialized.
> So this issue is not something which is introduced by this patch.
Before this patch all my interfaces were working.
I would say the problem with your patch is that it introduces memory requirements which cannot be satisfied by the platform. It's combination of several factors which stops the thing from working, not a single factor. Using dma_alloc_coherent() is not all wrong by itself, of course.
Perhaps you did some tricks with your configuration, which make it working. Then, i guess, you should have at least described them in commit message of your patch. Or describe all dependencies in KConfig of your driver, which is better. Or, if the platform needs some very special defconfig, add it to arch/arm64/configs (however, i guess, the goal of ARM64 Linux is to run on all possible hardware, so this would not be good from maintainers' POV).
Sorry, but this is all i can say. In previous messages i have already suggested several ways to solve the problem (too lazy to quite here, 4 IIRC), or you can suggest your own one and let us test it, or you can even stick to "It works for me, i am the only right guy in the world, and i don't care if it doesn't work for you" position and let David decide who of us is right (and he already did that once).
Basically, here is what i did: i took kernel 4.2, added ThunderX PCI drivers to it (they were posted but NAKed those days back, there's some lazy progress on them currently), added necessary errata patches (also posted on lists, all merged into 4.4), took defconfig, adjusted it according to my needs, and this is what i'm running on my board and this is what i'm using for development. If you point me at what i'm doing wrong way, i'll be glad to accept this.
I'm over.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
--
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