Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp593223lqc; Fri, 8 Mar 2024 06:38:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU4ilebzaeQZwtspwLR/mpLDqDMJU0PBC4K8cvFjBM81p/b00Ap1ivsUmW0rMiXdWCAse9XVR1eNB6uZfXsnBBVrjHQ/wfBL9qBrTC0zw== X-Google-Smtp-Source: AGHT+IGmy5Q+sd+ovMFasXDY04sWP+DXAdDhTaPn5qocdYACu0e6ZeMmgP8p0awiGXYEWZqEoeQz X-Received: by 2002:a05:620a:3bcd:b0:788:252d:80cc with SMTP id yf13-20020a05620a3bcd00b00788252d80ccmr11016323qkn.53.1709908686373; Fri, 08 Mar 2024 06:38:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709908686; cv=pass; d=google.com; s=arc-20160816; b=iScXaukcQvLysVgd9KRinPZJYXapdvj28MiooSDMQkGa46QTply4JsN0JC1HP/5pQE LbcO8E68gWG28mh4p2vzNd5om+KL4k7KOYe2PPD6xy2eVDXR81gmNIrMUvEj9bxgw0Qr GJGMn5aPsnO3GKsiqaurLnYEDvdziyUPF90mD70BP38Eq8IeaDUYKCchvpT4PFjQrwnb kWIDH8WuS/QELZ/sgtRCaCvyXF8vgr5ZA9n7sqhC5JCI4Fdl1Lv9klFDK/v/oIysOXO7 wgjNBrlFsLQH9pwpoTl/gYmbIOn93674b62hvcnb1td8cPIY7+f9ANv9ONI+CB1ZSq3U sz7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=4zIPCFN1AXWsYUD1rswmD8zDUKpUwF66ovwF4Z3fSqI=; fh=IEcjESnGfutFPHd4MWfwqldASUek/ynJfnyYrgHPauY=; b=wL0Rt96chocTSIQNJOObd+GZEjwqIizHMlY4yc4Xj2f2W6hQ5G/gb1Czlw6v0q/uG0 ULJT302325q/WTq1cbISLP5QnEdUnExq5nNMux3u08OdLZwrl+DrGAiZngYipoo59Vx8 rx1GALP6LxZekbrLCwOMSrS32jnMdpl4FiIMcXH9ssxxvupCVM1WB+XwPVQ4uDXW55vh 0Fyg+cqmLtdh4CJ/ZrM7A0QcIwELxJqJzTYCiEXbx0MNONYnKnX1V3jFWH7vN/mzuxzu +DqNfqzukGKsspq5g8CCIGcUDMvPFHbJgTQhoiR3jhyW9C+46Js7AD5B89VVuAN/RheE QYsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S4R9Tdfy; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-97171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bj14-20020a05620a190e00b00787f3723dcesi21509015qkb.619.2024.03.08.06.38.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 06:38:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S4R9Tdfy; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-97171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 11AFF1C21D92 for ; Fri, 8 Mar 2024 14:38:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CFE61FB5; Fri, 8 Mar 2024 14:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="S4R9Tdfy" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34C9A15AF for ; Fri, 8 Mar 2024 14:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709908679; cv=none; b=tjVvNq/OmYbSnP/snQOkdAi7Bmwq+b5cWVjlUDl6JsOjzp6Lyo4reojZruqLGBdUu+XGnS/4RtTkW9l9a1E98UPIQQNLljUA0bwoeB9tSrPWpyxaCLmDWdnfhQkT0OWx3WAmMxk6x/6dgMVDqZUpZvb0OKMrsCJ2PklZNYBMYH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709908679; c=relaxed/simple; bh=4zIPCFN1AXWsYUD1rswmD8zDUKpUwF66ovwF4Z3fSqI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=SZrkF1fbvdI6R7GthsAgu9JZ6KmDBirVFovyib2CLOmQ4MAdNLxavZB7y0C67DacG6DjMABa0aH4LaaP0SsM5lyivxGOUP2KFZHS91sQcEUqqZLLDY1f6xKJ4pBmPVUkEjIwUJRfVV4X0y+AR+sMZRf1HPhKkanlNrbD4TtQf4w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=S4R9Tdfy; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709908676; bh=4zIPCFN1AXWsYUD1rswmD8zDUKpUwF66ovwF4Z3fSqI=; h=Date:From:To:Cc:Subject:From; b=S4R9TdfyaMdsZC9aIRjbpi/QDIJoWA9SsoPnNRpEx1tcvJ1m/JvlObUCxxWMmyeMC TWw1CuopTw+KezJtLJmqLIL3LMHzq9NiY/msIVetY1tI2Ov0YklXlYEBj2RP5O7dW7 TzRdMtPlFhl1VqgKMFltgQC84rDJMhtVqdDQtefT6cYz1cC/cdYZsDgZLhaClf9m+c kVLxI9L/JXdRaRPQdZyPmdkpZoTROVGQE1CUaD2CeoIXchVoAEzibpM2AeZp1PYMA4 HsZw5x7JEKjBVb9oU6hUQODOnHL66hBmkT8Z+foZ27CXyFJRatr3cXnrIIM29LYoHT xJX8xewaJUPVQ== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sebastianfricke) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 1BF4F37820C3; Fri, 8 Mar 2024 14:37:56 +0000 (UTC) Date: Fri, 8 Mar 2024 15:37:55 +0100 From: Sebastian Fricke To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, maz@kernel.org, bartosz.golaszewski@linaro.org Subject: RFC: fake IRQchip Message-ID: <20240308143755.jey6kr3ftlzxt6lg@basti-XPS-13-9310> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Hey, I am one of the maintainers of the media subsystem and we are currently reviewing a patch [1], where the author has developed a polling mechanism for a driver, while the hardware (Wave5 Codec) actually always expects an interrupt line to be present and the only reason why this isn't uphold is because the SoC has a defect, causing the interrupt line to be disabled. As I am a bit reluctant to litter a driver with workarounds for defective hardware, I suggested to the author, that he could implement fake IRQchip, which does polling in the background. This could first be implemented in the driver directory and then later possibly upstreamed to /drivers/irqchip. So, far I've got a few approving comments for that idea, but I would really like to know what the irqchip folks think about this. Now my question is basically, what do you think about such a solution? Would you accept such a fake irqchip driver, that can be used by hardware without an interrupt line to fake one? Do you think there is a better solution or do you think that my suggestion has hidden traps? Thomas has already pointed me to IRQ sim, any further help is highly appreciated. [1][https://patchwork.linuxtv.org/project/linux-media/patch/20240125130833.1953617-1-devarsht@ti.com/#155281] Greetings, Sebastian