From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Masters Subject: Re: [PATCH] ACPI: SPCR: Use access width to determine mmio usage Date: Mon, 8 May 2017 15:50:05 -0400 Message-ID: References: <1493910330-17913-1-git-send-email-jon.mason@broadcom.com> <4e11bb2b-7cec-6a7b-ca2b-88be31a98b7d@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com ([209.132.183.28]:11610 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754862AbdEHTuJ (ORCPT ); Mon, 8 May 2017 15:50:09 -0400 In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Loc Ho Cc: Jon Mason , Rafael Wysocki , Len Brown , Robert Moore , Lv Zheng , linux-acpi@vger.kernel.org, Linux Kernel Mailing List , devel@acpica.org, bcm-kernel-feedback-list@broadcom.com On 05/08/2017 03:11 PM, Loc Ho wrote: > Hi Jon, > >>> The current SPCR code does not check the access width of the mmio, and >>> uses a default of 8bit register accesses. This prevents devices that >>> only do 16 or 32bit register accesses from working. By simply checking >>> this field and setting the mmio string appropriately, this issue can be >>> corrected. To prevent any legacy issues, the code will default to 8bit >>> accesses if the value is anything but 16 or 32. >> >> Thanks for this. Just as an FYI I've a running discussion with Microsoft >> about defining additional UART subtypes in the DBG2 for special case >> UARTs. Specifically, I want to address AppliedMicro's special 8250 dw IP >> that also has a non-standard clock. At this time, there is general >> agreement to use the access width for some cases rather than defining >> yet more subtypes - so your patch is good. >> >> Loc/Applied: please track this thread, incorporate feedback, and also >> track the other general recent discussions of 8250 dw from this week. > > Thanks for forward me this patch. This patch does not work with X-Gene > v1 and v2 SoC's. As BIOS SPCR encodes these info as: > > Bit Width: 32 > Bit Offset: 0 > Encoded Access Width: 01 (Byte Access) > > With this patch, it would use the "mmio" instead the "mmio32" as with > this patch - https://patchwork.kernel.org/patch/9460959 I think this is why we need the DBG2 subtype for Applied X-Gene1. I'm hoping the update to the SPCR/DBG2 spec is done soon. Jon. -- Computer Architect | Sent from my Fedora powered laptop