Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5581151rwb; Wed, 21 Sep 2022 09:35:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM40oTN+HcwaAs3Xzcb4TE5YKjHINIRXozeOMq/b8kOcWkU3WNZCvC3ZS7GNmPLfOVGCrdCL X-Received: by 2002:a17:907:2ccb:b0:77b:bdab:674a with SMTP id hg11-20020a1709072ccb00b0077bbdab674amr21660365ejc.241.1663778124219; Wed, 21 Sep 2022 09:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663778124; cv=none; d=google.com; s=arc-20160816; b=IctZYfeCv9nYH5nGMFjalSxADQ4+wTGC6aGF7ar06s1er0FjlTM8J/OiKcN4GQZqbt BJ6ptIe/Jr2RxwsF6qfbnrJce2SqoKDvp8MKK4i+H2JWLEndczKUMDMuW0X34yKKHzWT k5OW2YDxxABJkqZEhhLJ98YEqNJYZUAXyFjTHd49abma+m1j7VBdPtdW33mJUM8p9ZQg 0bttP99yF+4ZVNSIeDaDAt26Cs5917tcLqCAEmO9gscNla8RnCmsmIevdQOJaHc5FmgC XyFZo/Lr7qScYnsiFlMtiibw8UZplVogdLjLCea3IeQUnP912bFFSNz3mDZWMbxCEVk3 YEzw== 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=g98Pnb5jYf8l3mJFpjsY4Nrl8A6+/Rocw9eBikJJK9A=; b=YaEIoJXumBCPZXawrsVucn6/OqDdK30c6dBXw2WpxNwbUXoPxe1GOMXwZAmTci67/W V7RAtnj1kBvPNrt2bKAjVSS8iGxdbHDefOiFZey8dNPLNwOSCP1RcQO8K8GHZZt1mi1y CFhQVCS1PRyZU6ukt3r00shlTuEGGO1zM8uOupzbFyR8g7On+NFb80TYPuFfVmRTuwSs SNlSTsmwji1cw8z+kIy0va6pU4zfhzISdLWs2wLzMjQeAQVQSP67pay0JvU1gXfTlz4Q 1+Y7Lx9gCEqxE6+Fr8qb3vAeeteY30ltNkxXj23Bfz5IxuCmjxyw47erkWzlQTsaVFCA oMbw== 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 y17-20020a056402359100b00448ce617058si2930840edc.463.2022.09.21.09.34.57; Wed, 21 Sep 2022 09:35:24 -0700 (PDT) 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 S231433AbiIUPjP (ORCPT + 99 others); Wed, 21 Sep 2022 11:39:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231378AbiIUPi6 (ORCPT ); Wed, 21 Sep 2022 11:38:58 -0400 Received: from mx.gpxsee.org (mx.gpxsee.org [37.205.14.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 84F8B99B42; Wed, 21 Sep 2022 08:35:17 -0700 (PDT) Received: from [192.168.4.25] (unknown [62.77.71.229]) by mx.gpxsee.org (Postfix) with ESMTPSA id 768F847A38; Wed, 21 Sep 2022 17:35:15 +0200 (CEST) Message-ID: <7a5e5b07-2870-d47e-c364-b09d004cf873@gpxsee.org> Date: Wed, 21 Sep 2022 17:35:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [PATCH v2 2/3] Added Xilinx XDMA IP core driver Content-Language: en-US To: Lizhi Hou Cc: dmaengine@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, martin.tuma@digiteqautomotive.com, mchehab@kernel.org, michal.simek@xilinx.com, vkoul@kernel.org References: <19bd8ce4-2dde-e985-00f4-09b48decd3dc@amd.com> <921a1da6-e378-2632-7b68-ac59e3c24f68@amd.com> From: =?UTF-8?Q?Martin_T=c5=afma?= In-Reply-To: <921a1da6-e378-2632-7b68-ac59e3c24f68@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.6 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 On 21. 09. 22 17:15, Lizhi Hou wrote: > > On 9/21/22 02:25, Martin Tůma wrote: >> > Currently, the V3 patch series does not support register user logic >> > interrupt yet. >> >> This is a showstopper for almost every XDMA based PCIe card. As the >> driver "consumes" the whole register space (including the user IRQs >> enable/disable registers), there is AFAIK no way how to enable the >> user IRQs when this driver is loaded. >> >> > Could you convert your driver to use this? >> >> Not without the user IRQs. > > I provided the patch link for user logic IRQ support in previous reply. > You may pull it and patch it on top of the V3 patch series. > > > Lizhi > >> >> M. I'm sorry, I have missed that. With that modification it should be (theoretically - haven't tested it yet) possible to use our v4l2 driver with this XDMA driver instead of the one I have provided in my patches. I will now try to rewrite our driver and test it with your XDMA driver to be sure it works. It will however definitely need a "V4" of your XDMA driver with that patch on github before it can be included into the kernel and be usable for all XDMA-based PCIe cards. M.