Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753272AbbGABhL (ORCPT ); Tue, 30 Jun 2015 21:37:11 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52249 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751591AbbGABhD (ORCPT ); Tue, 30 Jun 2015 21:37:03 -0400 Message-ID: <5593443C.5070800@codeaurora.org> Date: Tue, 30 Jun 2015 18:37:00 -0700 From: Stephen Boyd User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Timur Tabi , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shanker Donthineni , awallis@codeaurora.org, abhimany@codeaurora.org, will.deacon@arm.com, Vipul Gandhi Subject: Re: [PATCH 1/4] hvc_dcc: bind driver to core0 for reads and writes References: <1435699387-32591-1-git-send-email-timur@codeaurora.org> In-Reply-To: <1435699387-32591-1-git-send-email-timur@codeaurora.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1828 Lines: 40 On 06/30/2015 02:23 PM, Timur Tabi wrote: > From: Shanker Donthineni > > Some debuggers, such as Trace32 from Lauterbach GmbH, do not handle > reads/writes from/to DCC on secondary cores. Each core has its > own DCC device registers, so when a core reads or writes from/to DCC, > it only accesses its own DCC device. Since kernel code can run on > any core, every time the kernel wants to write to the console, it > might write to a different DCC. > > In SMP mode, Trace32 only uses the DCC on core 0. In AMP mode, it > creates multiple windows, and each window shows the DCC output > only from that core's DCC. The result is that console output is > either lost or scattered across windows. > > 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. > > Signed-off-by: Shanker Donthineni > Acked-by: Adam Wallis > Signed-off-by: Timur Tabi > --- Maybe we should look into making the console number (i.e. ttyHVC0, ttyHVC1, etc.) correspond to the logical CPU number 0, 1, etc? We would need some hotplug notifier to tear down and restore the console when the CPU comes online and goes offline, but it may work out nicer than taking the approach this patch does. -- 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/