From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757482AbcEDHuA (ORCPT ); Wed, 4 May 2016 03:50:00 -0400 Received: from foss.arm.com ([217.140.101.70]:43447 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757295AbcEDHt7 (ORCPT ); Wed, 4 May 2016 03:49:59 -0400 Subject: Re: [PATCH 2/2] irqchip/gic-v2m: Add workaround for Broadcom NS2 GICv2m erratum To: Ray Jui , Thomas Gleixner , Jason Cooper References: <1462319245-32532-1-git-send-email-ray.jui@broadcom.com> <1462319245-32532-3-git-send-email-ray.jui@broadcom.com> Cc: linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, Alex Barba From: Marc Zyngier X-Enigmail-Draft-Status: N1110 Organization: ARM Ltd Message-ID: <5729A9A3.6070207@arm.com> Date: Wed, 4 May 2016 08:49:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0 MIME-Version: 1.0 In-Reply-To: <1462319245-32532-3-git-send-email-ray.jui@broadcom.com> 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 On 04/05/16 00:47, Ray Jui wrote: > Alex Barba discovered Broadcom NS2 GICv2m > implementation has an erratum where the MSI data needs to be the SPI > number subtracted by an offset of 32, for the correct MSI interrupt to > be triggered. > > We are aware that APM X-Gene GICv2m has a similar erratum where the > MSI data needs to be the offset from the spi_start. While APM's workaround > is triggered based on readings from the MSI_IIDR register, this patch > contains a more general solution by allowing this offset to be > specified with an optional DT property 'arm,msi-offset-spi'. This patch > also maintains compatibility with existing APM platforms It may be more generic, but it also fails to deal with less capable firmware implementations. In contrast, reading MSI_IIDR is always possible (assuming you have a unique ID for this v2m implementation). If you cannot uniquely identify it using an ID register, the usual alternative is to have a new "compatible" string identifying the defective part, and set the offset based on this string. This still fails the ACPI test, but is the least invasive DT-wise. Thanks, M. -- Jazz is not dead. It just smells funny...