lkml.org 
[lkml]   [2015]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] hvc_dcc: bind driver to core0 for reads and writes
Will Deacon wrote:
>> >Selecting this option will enable code that serializes all console
>> >input and output to core 0. The DCC driver will create input and
>> >output FIFOs that all cores will use. Reads and writes from/to DCC
>> >are handled by a workqueue that runs only core 0.

> What happens if CPU0 is hotplugged off?

I guess the whole thing just breaks.

I don't know what to say. Trace32's DCC window is latched to CPU0. If
that CPU is hotplugged off, then I don't think there's a mechanism for
Trace32 to migrate to another CPU. It will broken no matter what.

That's why this feature is disabled by default. If you're working on an
SMP ARM system and using Trace32, you will need this patch. It might be
possible for Lauterbach to fix Trace32 to provide this feature
internally in some situations (e.g. SMP mode where there's one window
for all cores), but not in every situation.

I can add a "depends on !CPU_HOTPLUG" to the Kconfig, but I think that's
overkill. This is really a "use it if you need it" patch, and DCC is
used mostly for debugging.

--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the
Code Aurora Forum, hosted by The Linux Foundation.


\
 
 \ /
  Last update: 2015-06-30 16:41    [W:0.051 / U:1.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site