Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6647299rwb; Wed, 18 Jan 2023 07:44:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXtm+b2JXlQZ/K3/phvVPDBai8GjOeQVEWScJPFc0/gj3nsOQDPxFP4DnI4SmBg97HaA7lQw X-Received: by 2002:a17:907:1759:b0:85e:c4e4:cfbf with SMTP id lf25-20020a170907175900b0085ec4e4cfbfmr7592406ejc.15.1674056676880; Wed, 18 Jan 2023 07:44:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674056676; cv=none; d=google.com; s=arc-20160816; b=CxoBCmifyKPVkIRNu0QYDltwFjFQooellKq/LvtmQUbJL1qM4125fUa1OKowcgK/it LI3MA5xtUUHaz7/9M8h/pAB6G+yYQZibTMczw76IW7M81nNMaBJd4QV3p/+i0+5eQNSm grJ+jGAW21E7fqqo4C+WyJbYZqE0TRmL5LFv3/KLxLb8VuzHVxa4TuEaCo9l0d9T7vL+ Nju/Un+Jf5D8qgbhiPc7vH5bUjm9FoNib4gxoa4cq8FZ8rPLCs3BPK2KAVQ/lQFiq9oi b+fMqYxjEIvv3cq3XzxkGU8NbgH3kZAgNZ2XwOzwRV9BE6yd/LN/+5J4wGwbxIPpA2zr MenA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=l1kI0D/zPKco9mziV2QYoYgEj1Gam7oqMwPow9yfsaE=; b=gSBui+cHyy1DtEJq1F3TPNoyoFZZkoqt25gbpNXjDBOQMuRxnS2nRaCbUV0B5q36PB Vxpp7aRbvEfUpE8WqcDgrgVIPG0b4iqQiUbTzpyR3gjHMXkPcYGNzyS6NMz/ozvDOYES VPzk3Nld/7Iw8/Qx70R0POiGXdO3r7DL0apopqDlqHyS8DWj0hnitM4NDb4bNa8u7UR4 xP75pzr3yzp7Xvw2zQ84F0BZYoBKovznH9qOyK5yUwHWA0y07UdF0+fvqIDEGxyrpaXv iHsdhBO5P3qHZOwHQ6OWUTagAcmmuUCPKIh8k3oiIick/UIYAcGEBhMS6zIZJDS6JuNc j/WA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz6-20020a1709072ce600b00864e9806bbfsi25003227ejc.142.2023.01.18.07.44.25; Wed, 18 Jan 2023 07:44:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231580AbjARP3J (ORCPT + 46 others); Wed, 18 Jan 2023 10:29:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231248AbjARP2q (ORCPT ); Wed, 18 Jan 2023 10:28:46 -0500 Received: from mx.gpxsee.org (mx.gpxsee.org [37.205.14.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2081346141; Wed, 18 Jan 2023 07:28:14 -0800 (PST) Received: from [192.168.4.25] (unknown [62.77.71.229]) by mx.gpxsee.org (Postfix) with ESMTPSA id A15943758A; Wed, 18 Jan 2023 16:28:13 +0100 (CET) Message-ID: <85d1e660-1df4-6e84-a329-751197ef7eec@gpxsee.org> Date: Wed, 18 Jan 2023 16:28:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [RESEND PATCH V11 XDMA 2/2] dmaengine: xilinx: xdma: Add user logic interrupt support Content-Language: en-US To: Vinod Koul , Lizhi Hou Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, max.zhen@amd.com, sonal.santan@amd.com, larry.liu@amd.com, brian.xu@amd.com References: <1673988842-43631-1-git-send-email-lizhi.hou@amd.com> <1673988842-43631-3-git-send-email-lizhi.hou@amd.com> From: =?UTF-8?Q?Martin_T=c5=afma?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> +++ b/include/linux/dma/amd_xdma.h >> @@ -0,0 +1,16 @@ >> +/* SPDX-License-Identifier: GPL-2.0-or-later */ >> +/* >> + * Copyright (C) 2022, Advanced Micro Devices, Inc. >> + */ >> + >> +#ifndef _DMAENGINE_AMD_XDMA_H >> +#define _DMAENGINE_AMD_XDMA_H >> + >> +#include >> +#include >> + >> +int xdma_enable_user_irq(struct platform_device *pdev, u32 irq_num); >> +void xdma_disable_user_irq(struct platform_device *pdev, u32 irq_num); >> +int xdma_get_user_irq(struct platform_device *pdev, u32 user_irq_index); > > who is the user of these APIs? It is not clear to me how this is to be > used... > The APIs are used by the PCIe card devices/drivers that use XDMA. Without them the "user IRQs" provided by the XDMA HW can not be used by the PCIe card drivers. If you look at the XDMA HW overview: https://docs.xilinx.com/r/en-US/pg195-pcie-dma/Overview?tocId=O_EMX26J5IsdubL4i3XJ_w those APIs control the "IRQ module" block. For a linux driver using them see the mgb4 v4l2 driver: https://patchwork.kernel.org/project/linux-media/patch/20230113172636.2590-2-tumic@gpxsee.org/ M.