Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1312591
| From | Mathieu Poirier <mathieu.poirier@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V7 02/24] coresight: associating path with session rather than tracer |
| Date | 2016-01-20 01:00 +0100 |
| Message-ID | <qSOlP-6sp-1@gated-at.bofh.it> (permalink) |
| References | (4 earlier) <qNzGP-3gi-17@gated-at.bofh.it> <qPqpH-66L-3@gated-at.bofh.it> <qPqpH-66L-1@gated-at.bofh.it> <qQBsK-5De-1@gated-at.bofh.it> <qRzyy-53T-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 16 January 2016 at 06:54, Rabin Vincent <rabin@rab.in> wrote: > On Wed, Jan 13, 2016 at 02:47:10PM -0700, Mathieu Poirier wrote: >> On 10 January 2016 at 08:43, Rabin Vincent <rabin@rab.in> wrote: >> > - There is no reference taken for the csdev when it is assigned as >> > some other device's child_dev in coresight_orphan_match() >> >> The only time a device shouldn't be removed is when it is part of an >> active trace session, something that shouldn't happen due to the >> static nature of the coresight devices. > > # echo 1 > /sys/bus/coresight/devices/54162000.etb/enable_sink > # echo 1 > /sys/bus/coresight/devices/5414c000.ptm/enable_source > [ 22.853637] coresight-etb10 54162000.etb: ETB enabled > [ 22.859069] coresight-funnel 54164000.funnel: FUNNEL inport 0 enabled > [ 22.865814] coresight-replicator 44000000.ocp:replicator: REPLICATOR enabled > [ 22.873260] coresight-funnel 54158000.funnel: FUNNEL inport 0 enabled > [ 22.880187] coresight-etm3x 5414c000.ptm: ETM tracing enabled > # echo 44000000.ocp\:replicator > /sys/bus/platform/drivers/coresight-replicator/unbind > # echo 0 > /sys/bus/coresight/devices/5414c000.ptm/enable_source > [ 37.261840] coresight-etm3x 5414c000.ptm: ETM tracing disabled > [ 37.268066] Unable to handle kernel NULL pointer dereference at virtual address 0000023c > [ 37.276611] pgd = ec60c000 > [ 37.279571] [0000023c] *pgd=ac5d6831, *pte=00000000, *ppte=00000000 > [ 37.286163] Internal error: Oops: 817 [#1] SMP ARM > [ 37.291198] Modules linked in: > [ 37.294403] CPU: 0 PID: 857 Comm: sh Not tainted 4.4.0-rc8-00063-g15ed5a7c725c #196 That is a problem of a totally different nature - no amount of refcount management will prevent this splat. As you highlighted here the framework is not ready to deal with devices disappearing from a path - I need to ponder on that. Mathieu
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH V7 02/24] coresight: associating path with session rather than tracer Rabin Vincent <rabin@rab.in> - 2016-01-16 15:00 +0100 Re: [PATCH V7 02/24] coresight: associating path with session rather than tracer Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-01-20 01:00 +0100
csiph-web