From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751429AbdKUWfc (ORCPT ); Tue, 21 Nov 2017 17:35:32 -0500 Received: from vulcan.natalenko.name ([104.207.131.136]:35628 "EHLO vulcan.natalenko.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751345AbdKUWfb (ORCPT ); Tue, 21 Nov 2017 17:35:31 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 vulcan.natalenko.name CC6BF299F5F Authentication-Results: vulcan.natalenko.name; dmarc=fail (p=none dis=none) header.from=natalenko.name From: Oleksandr Natalenko To: Hans de Goede Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Failed IRQ assignment for INT0002 on Braswell Date: Tue, 21 Nov 2017 23:35:28 +0100 Message-ID: <1902393.IdeYHqtVB8@natalenko.name> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=arc-20170712; t=1511303729; h=from:subject:date:message-id:to:cc:mime-version:content-type:content-transfer-encoding; bh=/p2x25bsyDja0nDnuXHc1s7zdQdbo6weuSkfQUwEiQY=; b=R8pJgO24oK9tVz3RXDBExc+/LSsi+SDbZJWOAbvCk3O9ZBPfgzXpK4OxjCg0FRF1XWM6/k Li7qE5cesmSNtcpf6fgvklRKS5PhYzvIQwilyHNpDM1VloLQHLuynRCUHL/3iHDIsmSOi9 KKGGzm0L8Bb7c3zrmbGbIt32/N4ZihQ= ARC-Seal: i=1; s=arc-20170712; d=natalenko.name; t=1511303729; a=rsa-sha256; cv=none; b=M8gLIWGEVPnaJlVLC27TuCWmhRGF/B1f7kMqrvuUc0Tz7cQ0+LKU/JJs3NjoKg1lY/wmceYLIAWz7mpbewqF3V9FEAzHjRe3huvsByDxlD/IQK9ucCxvkCVI96DLBZNVZD1QFx8FWeo2O+H/xmKf/kTm6g4/LSyzXSRGjLSNdUA= ARC-Authentication-Results: i=1; auth=pass smtp.auth=oleksandr@natalenko.name smtp.mailfrom=oleksandr@natalenko.name Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Hans. v4.13 kernel introduced new fancy warning in the dmesg: === kernel: acpi INT0002:00: Device [GPED] is in always present list kernel: genirq: Flags mismatch irq 9. 00010084 (INT0002) vs. 00002080 (acpi) kernel: INT0002 Virtual GPIO INT0002:00: Error requesting IRQ 9: -16 kernel: INT0002 Virtual GPIO: probe of INT0002:00 failed with error -16 === Looking at git log, I've found that this driver was indeed introduced in v4.13 by the following commit: === commit 63dada87f7ef7d4a536765c816fbbe7c4b9f3c85 Author: Hans de Goede Date: Mon Jun 12 22:55:46 2017 +0200 platform/x86: Add driver for ACPI INT0002 Virtual GPIO device === I've checked DSDT disassembly for this device, and here is relevant snippet [1]. The only thing I currently understand there is that IRQ 9 is hard coded (line 64), but I'm not sure where those flags come from. The hardware in J3710 CPU on ASRock J3710-ITX motherboard. Next, I've found that you also faced this warning and posted some RFC patch [2], but unfortunately I do not see what that discussion ended up with. It is not that I really need GPIO on this board, but it would be nice to get rid of this warning. Could you please point me to a possible fix or a way for further investigation? Thanks. Regards, Oleksandr [1] https://gist.github.com/2c69d6e4eb4b5c256601847a9c6aec45 [2] https://patchwork.kernel.org/patch/9671783/