Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1451054pxa; Sun, 2 Aug 2020 08:07:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwe6yrzj8pwGCOmoMdO9V6jydZtsWxC8aGwoOSUS2iHrlYN8b4xQzUXxruIOYXHGvKosS6o X-Received: by 2002:a17:907:2087:: with SMTP id pv7mr12562943ejb.452.1596380878336; Sun, 02 Aug 2020 08:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596380878; cv=none; d=google.com; s=arc-20160816; b=AmN6hxj4Dj7J50bEp9Y1/Vq2+Rj403+7WNq8cwZkNFhmHAResImPwde2cd+vdDUacF Sb7JeHUEQtY7owWbeBsXjWR1pSw8/keSVEg2CJRM92Euwur0DOfYs0LOE6iYFIqlSPiV GRlZ0QWXcsurm/id4jpYFSKg0yt0FadEOU+4lYyflWquEdQxX+csBv3vGLg6jKeKwpoJ 0YS54DZqhjkhCpxEvZcXuFfqht7BHomsIR5k5g32WvFv3OnEjqmV+nV2N8tGUOwRZGdo hYvwhmHCbsX5rs1FCGQgEwUUzjze97d0Vw0+Vi73KaW79STKrR4OgvrQz6SVaIU6HcuF foyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ktVLBFd43fD/eCb8YK9ZxYTtVy6PozeLeiaxDNrbCIY=; b=ZS+unhpeU5MqWfJOP9zFmoRzjTF6HrsTaAJfz628KEZrfFi8yYN4KqrqdxURSaER9/ NpjVHnkd2vdIErwXSd6bnp9xk7RHcnJlkB68hllgqm7zBGSc9e0qJxlwLPLBP9tM1nhD TySKliRT5qU/Y2AdxzGsIg5pllkxxmZOVeVz8vqzyNXngPZjRV3Ufes4vF99sk1XkpLi zd3bmizLhf3dux5i3fakfp1tNGHTMNYKexR5b/D67pcYi/gpmFubQf4M2JXbq3ht6Yk3 YUgkd/8CQzqG/uuxpZMfk2RFvrnKsl4Xq0sOHTJO8q2ayu4NQVBr1ZFx8+kYdAM9H5Uq 8IgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metafoo.de header.s=default2002 header.b=DltUqc7x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=metafoo.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si3826293edx.530.2020.08.02.08.07.35; Sun, 02 Aug 2020 08:07:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@metafoo.de header.s=default2002 header.b=DltUqc7x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=metafoo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726356AbgHBPF7 (ORCPT + 99 others); Sun, 2 Aug 2020 11:05:59 -0400 Received: from www381.your-server.de ([78.46.137.84]:58950 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbgHBPF6 (ORCPT ); Sun, 2 Aug 2020 11:05:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=ktVLBFd43fD/eCb8YK9ZxYTtVy6PozeLeiaxDNrbCIY=; b=DltUqc7xv2cOsxVu3312QuF/pd UE8syqqFOb/DmcoMf7oEtX0biJm8eKdxfiJOkowC2kDnCdzrA2g63qtiHMMyFxIiHD/pMPZsLT7Z4 XL2Md6pDSBeU83RZXfYPzHLHGQ2Vai5ompByyPgMd+3Svx7MugMJJY7Jp7QErHJ7+45uBBdtw9mzd Wl2DTYZHEl9UJIlSz+DFpqymt/eFsO8ee8cbKZ2ndcdphGejrb+SjwQsCmaAZ1132A1ukAwIBhcNA cOd7d6AiO3MV0BpcQfYFvE6xsLWvGXBuNOD6OU9i4vNk3khMQcMqUnJqfvga+3m2zxRYU+42AQJTo OquTh1Ag==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1k2FYd-0002jf-MF; Sun, 02 Aug 2020 17:05:51 +0200 Received: from [2001:a61:2517:6d01:9e5c:8eff:fe01:8578] by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2FYd-0001BI-Gc; Sun, 02 Aug 2020 17:05:51 +0200 Subject: Re: [PATCH] iio: trigger: sysfs: Disable irqs before calling iio_trigger_poll() To: Jonathan Cameron , Christian Eggers Cc: stable@vger.kernel.org, Hartmut Knaack , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200727145714.4377-1-ceggers@arri.de> <20200801170234.2953b087@archlinux> From: Lars-Peter Clausen Message-ID: <28c6add2-311e-5638-e890-53a2248f560a@metafoo.de> Date: Sun, 2 Aug 2020 17:05:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200801170234.2953b087@archlinux> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.102.4/25891/Sat Aug 1 16:57:39 2020) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/1/20 6:02 PM, Jonathan Cameron wrote: > On Mon, 27 Jul 2020 16:57:13 +0200 > Christian Eggers wrote: > >> iio_trigger_poll() calls generic_handle_irq(). This function expects to >> be run with local IRQs disabled. > Was there an error or warning that lead to this patch? > Or can you point to what call in generic_handle_irq is making the > assumption that we are breaking? > > Given this is using the irq_work framework I'm wondering if this is > a more general problem? > > Basically more info please! There is this series https://lkml.org/lkml/2020/3/6/433 which causes generic_handle_irq() to issue an warning if it is called with IRQs on, for a IRQ controller that can't handle it. But I'm not convinced this applies to the IIO code, since this is a purely virtual interrupt and is not interfering with any interrupt controller hardware.