Received: by 10.192.165.148 with SMTP id m20csp837485imm; Fri, 27 Apr 2018 08:17:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrvt4cg7sB/sdFi8kIc21ocFvqvfs42/sUbUaX2pP22uUgaPojfI9bZ1rQWkUs/RONBKjNs X-Received: by 10.98.217.5 with SMTP id s5mr2624581pfg.20.1524842239913; Fri, 27 Apr 2018 08:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524842239; cv=none; d=google.com; s=arc-20160816; b=SBAZKlr6OV6HkOho8hr2HnONOlOctxfu3e0NJXwNQM4+rsj8eXhKvd8IxmtWXGtvq+ hDnM9LNWMdHRxF5qeP6upmFI3gqI89SQGA1aYVatfRos4rSSuDa6vCKpXqrDJg8Pj/cd nnmmKLNNHzrdQ/klbwQUnaNR9/4kljKWR7eVOjWlaNqfkdSXLYs0w+tP9x3ncGudVFbZ 8r8ERwte0N/OhCpXMKa83AKq6Quf/LWPJWG0tLG0HbB9PC5YDXCFYXTo7gM/onDQwF5T E3RQ6tJfGc79LhRn5n6Bb/RT5PidkhBCZ5MLQL4HE8h+U3eZIhWTotqTfgjpUH+6FAuN i2eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=rZbXGV8kaCRItpGRHnScwOelTWwRQ0YL0An1f+ewTsY=; b=A98w7Ra6zujXa9Qo8A54TjAd4nhT8gV4RKiKbEBpOpobAIK6j3xoJvrDQYHXXz9x7r v5hKLZ7kccLjSw5mAU9f5cenkn5lfZ28yUfzi+wMqgkKFpMCxYoL39sjGkXnQ5596q2X DkPvghRU9i1U1nV/iJ00FXHPYFHJRTP3vHFvkYDKl3JiB1UKgjka0CL3CBwulEqPfC7W h2+dFGRy2drKM5vheaU1/synBWc+523VCU1Ac+4csc3HDucfVqU0C3hJRVEunZctdvKs 5HHFO70+qP7kb/rIdWimHhmrWoxQpd5Cc+WVH/4MzLnTXRgImSUj2WTMeTSW23ba5e5M XOKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XZMfmlJr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23-v6si1421781plo.597.2018.04.27.08.17.06; Fri, 27 Apr 2018 08:17:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XZMfmlJr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933745AbeD0PPh (ORCPT + 99 others); Fri, 27 Apr 2018 11:15:37 -0400 Received: from mail-qt0-f173.google.com ([209.85.216.173]:42805 "EHLO mail-qt0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933223AbeD0PPd (ORCPT ); Fri, 27 Apr 2018 11:15:33 -0400 Received: by mail-qt0-f173.google.com with SMTP id c2-v6so2687866qtn.9; Fri, 27 Apr 2018 08:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rZbXGV8kaCRItpGRHnScwOelTWwRQ0YL0An1f+ewTsY=; b=XZMfmlJr+QQoeEFXdomEvChO2eTBY72n2MtUWy9+zu+/8RmaOf8K1Y6D6pFBOdskfH uYwiiKqnBYl/w7CVnqV0lbOcQWYGCI/phYpBXJE9OXMP2DlE/a+OH5s1PR9Gz164AfwY pWMMDDz4FP/DMzsIPviQ/ml142si4qdzM7yQeFM3djXd0UPb7Lb+9mVOL+wqPRTZweFs KdoULUhxfWU7AnYT54CIuNDxrLcMnCNwcnYl/vlzNv6UXFjlnuo21XAsXUDOcH832KjM Ma5miorspO8Ch1CZ5t+EiQ8m2TP1kwD7m4sBN2H/1vaRM1i0ofRypOUy2TxlRDa2NIJ1 OxlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rZbXGV8kaCRItpGRHnScwOelTWwRQ0YL0An1f+ewTsY=; b=Fj3cbZEwbpFjuIeyrPUs8imPPtrh0Ul74Rf9KaBpN7SLpqpIxTLubiR1WpwvG+dmZ5 /ZCVestCXVdgYtkRUaEzzf6eoTBNrHLT4cCGCiNjegmFFXyL2q8Tirn+RaDyyefkGyzI QQdv+AM65WoJv4Qm6iz31a61RR2L1ZsiIG/L9YM79FPQXLUc0ejuHCinmbS0HyWY6yBB yHzFjQ5f/TqBF4mgnJ3XQxX3dhby3P7nWha8ARcX1mWe3WLF/U+zulkjdJQ3q1Ki3Asq slb/Bo9xZJX374Bs50iZYFeSIoiahHQRCuoasEMSpcSsihDnD7b6Epg9odX+KySJOJ4v ZCLw== X-Gm-Message-State: ALQs6tDgO3JeEBfB1UhNKjtX2FcXB//gfDo8r/yiMhtqZfqtceaBi006 inSTrWdWwalJymnkPPyJ1irXgJMyVU87EQNfqOV9g/nC X-Received: by 2002:ac8:2315:: with SMTP id a21-v6mr2449806qta.73.1524842132753; Fri, 27 Apr 2018 08:15:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.129.240 with HTTP; Fri, 27 Apr 2018 08:15:32 -0700 (PDT) In-Reply-To: <20180427070830.GC6014@localhost> References: <20180426174000.12008-1-mdf@kernel.org> <20180427051115.GX6014@localhost> <748ffc14-de12-c11e-eb12-65c599fe5f4e@metafoo.de> <20180427070830.GC6014@localhost> From: Moritz Fischer Date: Fri, 27 Apr 2018 08:15:32 -0700 Message-ID: Subject: Re: [PATCH v2] dmaengine: axi-dmac: Request IRQ with IRQF_SHARED To: Vinod Koul Cc: Lars-Peter Clausen , Linux Kernel Mailing List , dmaengine@vger.kernel.org, dan.j.williams@intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vinod, On Fri, Apr 27, 2018 at 12:08 AM, Vinod Koul wrote: > On Fri, Apr 27, 2018 at 08:53:39AM +0200, Lars-Peter Clausen wrote: >> On 04/27/2018 07:11 AM, Vinod Koul wrote: >> > On Thu, Apr 26, 2018 at 10:40:00AM -0700, Moritz Fischer wrote: >> >> Request IRQ with IRQF_SHARED flag. This works since the interrupt >> >> handler already checks if there is an actual IRQ pending and returns >> >> IRQ_NONE otherwise. >> > >> > hmmm what are we trying to fix here? Is your device on a shared line or not? >> >> IRQF_SHARED does not mean that the IRQ is on a shared line. It means that >> the driver can handle it if the IRQ is on a shared line. Since the driver >> can handle it setting the flag is a good idea since this enables usecases >> where the line is shared. > > Yes that is correct indeed, but what is the motivation for the change. > > If you never expect this to be in shared environment why to do this? > Sorry but "it works" is not a good enough reason for this change, to enable > usecases where the line is shared is a good reason :) Remember, this is an FPGA soft core. I happen to have a design [1] where it is hooked up with multiple of them on one IRQ line, so to make this work, I need this change. Thanks, Moritz [1] https://www.ettus.com/product/details/USRP-N310