Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1262843
| From | Sinan Kaya <okaya@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions |
| Date | 2015-11-05 03:50 +0100 |
| Message-ID | <qriMF-ys-1@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <qqBeG-69S-9@gated-at.bofh.it> <qqDq9-7tu-9@gated-at.bofh.it> <qqEvU-8a2-13@gated-at.bofh.it> <qqF8B-cW-7@gated-at.bofh.it> <qqMjN-53W-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 11/3/2015 11:08 AM, Vinod Koul wrote: > On Tue, Nov 03, 2015 at 10:22:25AM +0200, Andy Shevchenko wrote: >> On Tue, Nov 3, 2015 at 9:44 AM, Dan Williams <dan.j.williams@intel.com> wrote: >>> On Mon, Nov 2, 2015 at 10:30 PM, Vinod Koul <vinod.koul@intel.com> wrote: >>>> On Mon, Nov 02, 2015 at 11:18:37PM -0500, Sinan Kaya wrote: >>>>> On 11/2/2015 11:15 PM, Vinod Koul wrote: >>>>>> On Mon, Nov 02, 2015 at 01:07:38AM -0500, Sinan Kaya wrote: >> >> >>>>> This one; on the other hand, is selftest to verify hardware is >>>>> working as expected during power up. >> >> I prefer to have such nice case by run time parameter (let's say >> common to all DMA Engine drivers) >> >>>> We can have common code which is used for dmatest as well as selftest. I do >>>> not want to see same code duplicated.. >> >> First thought was to merge this to dmatest, however, some DMA >> controllers doesn't have a memcpy capability. > > The tests should be based on capablity of memcpy > >> How would we test them? Here is what I proposed. - a common file that gets compiled into a module that wants to use self-test with a public API. It can be called from driver's probe routine. - the test is independent of my implementation. It uses dmaengine API and should be portable to most drivers. - there *are* still drivers in the kernel that has selftest code embedded inside them. I followed the design pattern from other drivers thinking this must have been a good idea and it paid off for me. As far as I understand, there is interest in doing more than this and reusing the dmatest code for code duplication. Facts: - Dmatest can be actually configured to run during boot. - Nobody besides the dma driver developer uses dmatest. This leaves holes for regressions that are really hard to debug due to interaction with the rest of the system. - Dmatest doesn't exist in most distribution kernels. If we want to do something else, I need clear directions. I can remove the self test code completely from my driver. But, I need an equivalent functionality. > > That part is tricky, you need to do so thru clients, spi/audio/serial etc > My selftest code actually attaches to all slave devices and issues a memcpy command and then detaches from the slave devices. -- Sinan Kaya Qualcomm Technologies, Inc. on behalf of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Sinan Kaya <okaya@codeaurora.org> - 2015-11-02 07:10 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Sinan Kaya <okaya@codeaurora.org> - 2015-11-03 05:20 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Vinod Koul <vinod.koul@intel.com> - 2015-11-03 07:40 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Dan Williams <dan.j.williams@intel.com> - 2015-11-03 08:50 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Andy Shevchenko <andy.shevchenko@gmail.com> - 2015-11-03 09:30 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Vinod Koul <vinod.koul@intel.com> - 2015-11-03 17:10 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Sinan Kaya <okaya@codeaurora.org> - 2015-11-05 03:50 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Vinod Koul <vinod.koul@intel.com> - 2015-11-05 13:10 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Sinan Kaya <okaya@codeaurora.org> - 2015-11-05 17:20 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Sinan Kaya <okaya@codeaurora.org> - 2015-11-07 07:30 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Vinod Koul <vinod.koul@intel.com> - 2015-11-08 15:00 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions okaya@codeaurora.org - 2015-11-13 21:30 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Sinan Kaya <okaya@codeaurora.org> - 2015-11-03 17:00 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Vinod Koul <vinod.koul@intel.com> - 2015-11-03 17:10 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Timur Tabi <timur@codeaurora.org> - 2015-11-03 15:40 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Vinod Koul <vinod.koul@intel.com> - 2015-11-03 17:10 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Sinan Kaya <okaya@codeaurora.org> - 2015-11-03 17:30 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Timur Tabi <timur@codeaurora.org> - 2015-11-03 17:50 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Sinan Kaya <okaya@codeaurora.org> - 2015-11-03 18:00 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Timur Tabi <timur@codeaurora.org> - 2015-11-03 17:50 +0100
Re: [PATCH V2 2/3] dmaselftest: add memcpy selftest support functions Vinod Koul <vinod.koul@intel.com> - 2015-11-03 05:20 +0100
csiph-web