From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752428AbdLKIdo convert rfc822-to-8bit (ORCPT ); Mon, 11 Dec 2017 03:33:44 -0500 Received: from mga09.intel.com ([134.134.136.24]:35272 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbdLKIdh (ORCPT ); Mon, 11 Dec 2017 03:33:37 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,391,1508828400"; d="scan'208";a="183170345" From: "Anand, Jerome" To: Thomas Gleixner , =?iso-8859-1?Q?Ville_Syrj=E4l=E4?= CC: "Chen, Augustine" , "intel-gfx@lists.freedesktop.org" , "alsa-devel@alsa-project.org" , "Bossart, Pierre-louis" , "tiwai@suse.de" , Ingo Molnar , "H. Peter Anvin" , Jiang Liu , Juergen Gross , Dou Liyang , "linux-kernel@vger.kernel.org" Subject: RE: [Intel-gfx] [PATCH] drm/i915: Remove unused IRQ chip data of HDMI LPE audio Thread-Topic: [Intel-gfx] [PATCH] drm/i915: Remove unused IRQ chip data of HDMI LPE audio Thread-Index: AQHTcAhlUO514wpRd0m1ABaUWBhTl6M52b0AgAC6gICAAz1SoA== Date: Mon, 11 Dec 2017 08:33:33 +0000 Message-ID: References: <20171208093323.2212-1-augustine.chen@intel.com> <20171208114404.GN10981@intel.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWZlZDFiODctN2MxOC00MGEwLWEzNTMtNTI2MTM1NWU2OWZhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJ1THFVazVQSW9vN3JyTTloVnJKRnJMRnRKOVwvd0VlUnl4WUs4UXFkNml3eWloenVcLzhqNUhYSjMzK0E0SjhGQ2IifQ== dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.1.200.107] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Thomas Gleixner [mailto:tglx@linutronix.de] > Sent: Saturday, December 9, 2017 4:22 AM > To: Ville Syrjälä > Cc: Chen, Augustine ; intel- > gfx@lists.freedesktop.org; alsa-devel@alsa-project.org; Anand, Jerome > ; Bossart, Pierre-louis louis.bossart@intel.com>; tiwai@suse.de; Ingo Molnar ; > H. Peter Anvin ; Jiang Liu ; Juergen > Gross ; Dou Liyang ; linux- > kernel@vger.kernel.org > Subject: Re: [Intel-gfx] [PATCH] drm/i915: Remove unused IRQ chip data of > HDMI LPE audio > > On Fri, 8 Dec 2017, Ville Syrjälä wrote: > > > On Fri, Dec 08, 2017 at 05:33:23PM +0800, Augustine.Chen wrote: > > > The chip data of HDMI LPE audio is set to drm_i915_private which is > > > not consistent with the expectation by x86 APIC driver. > > > > Hmm. Why is the apic code looking at data for an irq chip it hasn't > > created? > > apic code expects an irq domain to be place as generic approach. > > Do we need something like > > - dev_priv->lpe_audio.irq = irq_alloc_desc(0); > > + dev_priv->lpe_audio.irq = irq_alloc_desc(-1); > > #define irq_alloc_desc(node) > > So instead of handing in node 0 you hand in node -1 which is NUMA_NO_NODE > Agree - am not sure whether it will make any difference. > > That *looks* more correct to me based on a cursory glance at the x86 > > code, but I didn't trawl very deeply. > > The x86 core cares not at all about interrupt chips which are created in a driver > and not connected to an actual apic/ioapic/msi interrupt. This interrupt chip is > its own thing as we have others in GPIO etc. > > > > In the case of not enabling CONFIG_CPUMASK_OFFSTACK, this would > > > cause kernel panic while doing CPU hotplug. > > And why so? Surely not because you set irq_chip_data. That's really no > explanation at all. > Ideally, I feel there needs to be an irq domain for mapping the irq numbers with hwirq. It is not created as part of the hdmi lpe audio bridge. Since the logic to mask/unmask lpe audio interrupts is removed, there is no need of the Chip data or creation of the domain now. > Curing the symptom is never a good approach. > > Thanks, > > tglx