From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751705AbdJFI2i (ORCPT ); Fri, 6 Oct 2017 04:28:38 -0400 Received: from mga01.intel.com ([192.55.52.88]:62993 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbdJFI2h (ORCPT ); Fri, 6 Oct 2017 04:28:37 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,482,1500966000"; d="scan'208";a="907349170" Date: Fri, 6 Oct 2017 11:19:49 +0300 From: Mika Westerberg To: Grygorii Strashko Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , Chris Gorman , Heikki Krogerus Subject: Re: [PATCH] pinctrl: cherryview: fix issues caused by dynamic gpio irqs mapping Message-ID: <20171006081949.GX2761@lahna.fi.intel.com> References: <20171003170049.24480-1-grygorii.strashko@ti.com> <20171004064249.GP2761@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171004064249.GP2761@lahna.fi.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.0 (2017-09-02) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 04, 2017 at 09:42:49AM +0300, Mika Westerberg wrote: > On Tue, Oct 03, 2017 at 12:00:49PM -0500, Grygorii Strashko wrote: > > New GPIO IRQs are allocated and mapped dynamically by default when > > GPIO IRQ infrastructure is used by cherryview-pinctrl driver. > > This causes issues on some Intel platforms [1][2] with broken BIOS which > > hardcodes Linux IRQ numbers in their ACPI tables. > > > > On such platforms cherryview-pinctrl driver should allocate and map all > > GPIO IRQs at probe time. > > Side effect - "Cannot allocate irq_descs @ IRQ%d, assuming pre-allocated\n" > > can be seen at boot log. > > > > NOTE. It still may fail if boot sequence will changed and some interrupt > > controller will be probed before cherryview-pinctrl which will shift Linux IRQ > > numbering (expected with CONFIG_SPARCE_IRQ enabled). > > > > [1] https://bugzilla.kernel.org/show_bug.cgi?id=194945 > > [2] https://lkml.org/lkml/2017/9/28/153 > > Cc: Andy Shevchenko > > Cc: Chris Gorman > > Cc: Mika Westerberg > > Cc: Heikki Krogerus > > Signed-off-by: Grygorii Strashko > > Reported-by: Chris Gorman > > Reported-by: Mika Westerberg > > Looks reasonable to me. Thanks for taking care of this! > > Chris, can you try if this fixes the issue and provide your Tested-by? Linus, Chris gave his tested-by in another thread: https://patchwork.kernel.org/patch/9985087/ Chris, please let me know if that was not your intention. I'm fine with the patch as well, Acked-by: Mika Westerberg I guess this requires stable tag because if I understand comments in that bug right, it affects the whole v4.13.