Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1161535rdh; Fri, 27 Oct 2023 06:32:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6Fu12VNEPPU5MKMn0P051hrYpsAqyCbLb92XY2TNQ02tLNi0BusB7RJAmjfDqFrl1vyK6 X-Received: by 2002:a05:6808:85:b0:3b2:f489:4499 with SMTP id s5-20020a056808008500b003b2f4894499mr2618980oic.14.1698413560215; Fri, 27 Oct 2023 06:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698413560; cv=none; d=google.com; s=arc-20160816; b=pjaFfnJxD5YM68ddDpKVvL9JxGVpK514MwmSY+nTnK7TpOFsKimtmA7XF/5n0VpgI3 7GM1RDBj7gzLRJzIc43bqQgctwe3EJvwDDWE3OyX4ZlTH9SmA/RyTZ7HI4AkvaHbcgQ9 JmGNOv2HVxszi7Y4kbcU98vqCEfV9VL/bOOfhT+ywdbMMqWZT66zv4ZK5p20Be+iRjTy UWlB6e+ptPhhyBdTX/DRA910+t7ycn1DqnDIkLoEBFvqpqAw/A3qDOrAUlXvkVhigFt9 2j7DlDXwqtVIYqPUj98OoMu+3dZ5ubn3AL3a3f2K1sSfTlLb37z+0mcpsobBSmRCoNBU cO4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=y/asV0jGE9KYJ5AX6cfLumj3ozye9Q5hc0awXOwxYCA=; fh=hS6K/UtX0dct3rrZISxZTz6QxFikRIWc+ww1nTyF1TQ=; b=GWTScYiLFIqsyIDQCL6YIuRWfCJiF4s2DcnGy3ugWEg0nmJTosaAicMTXa4pPSYOpE VQqgFKDmChvOZDUinB7CAmAjQSuJ98EOcFPck+qRshQYOawlnHtJ+amGdPRSFYePg929 mlyCXWcKeRknRXAf0DKwbbikS45RF2ZOYf5JiIEsk+9IDavQAlvp5anYEH78q4owfs0Q tbdwU/BHfd2AaJG3JsO+8pQwIKemdkmjwGI8pUiqX6hKLt/74uKikR5LDQtXiPcuiHDR cXwPpjAIVVde3szgiAr1GBmHtUpH6gG9JHf58gDDR0YFF0i609K+gfKfT5Y+8OFhtdkR Vuog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=dEYH22qj; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=ScyRCf4+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id p133-20020a25d88b000000b00d865b194026si2756382ybg.471.2023.10.27.06.32.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 06:32:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=dEYH22qj; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=ScyRCf4+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 18D12807EB01; Fri, 27 Oct 2023 06:30:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345892AbjJ0NaD (ORCPT + 99 others); Fri, 27 Oct 2023 09:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345458AbjJ0NaC (ORCPT ); Fri, 27 Oct 2023 09:30:02 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1CF2C9; Fri, 27 Oct 2023 06:29:59 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id F2B2C32009F8; Fri, 27 Oct 2023 09:29:55 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 27 Oct 2023 09:29:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1698413395; x=1698499795; bh=y/asV0jGE9KYJ5AX6cfLumj3ozye9Q5hc0a wXOwxYCA=; b=dEYH22qjxt/pOqINf9M2MS7SLiF793KNrKQttOs5Pk2ofveemOY ojyaQNHbO5es1CmWwc+6IxAd9RN1Vjak352mfiF6rSFmE1+Ll8jgOOSox2EW8Xnx CzSfaa0cYUO9SbTyqi4gxczIOpGGuUDqr7/kCNL7MUKTe0knyfL7aLO7aP8Nip5Y jLHfkjPc3ebwm2y+01f+Jpo7ACI9fZjU8slSnhVlMDXCGzIQ1D0PB4ZVo+k+j4ga 4Nbha+Xj5H8dFL7/gOCbNH59hWmEXEQveHfCbJuoO+EDZKePEp73PbM/LXODnbL4 SDQqqOnvtTPYIwyr5Wkg/njyCtadKFUhNXw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1698413395; x=1698499795; bh=y/asV0jGE9KYJ5AX6cfLumj3ozye9Q5hc0a wXOwxYCA=; b=ScyRCf4+KbB29Sya6lBwlUZ/2umSsqpe4jlIOEnfvqXuQo9nI7e B02TFzLUldHHvJly2IdP9WpEb4EWVtRBXMVCqFcmhWLeYUWi5lFrxYgU9/ROOQ8G 7q6l1ppmtu3uo62nX7Rj3AAjhv2Sw0lFtyMebq5eS66+ZJQv6S65SEcTG5R9Vwjb pPSNyd5pZMmO/hgvMZtsdbWxld4Z2hdaqdLrGgiMmeNUC6FJgLU8cymrPGRww7Yu NXVesT5VC8dF9R7i3yFIqzsWKRolFT/qeBiUUK1k1CP2XITSAGs/dMDPT59c+b+H WfsscRp0L9cqL4ID5OsANLiNWUAYOyewYTg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrleeggdeihecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnheptdeiteeiueekueetveetkeetieekieffudehlefftdejkedtvedtudfhffef hffgnecuffhomhgrihhnpehlfihnrdhnvghtpdhkvghrnhgvlhdrohhrghenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgu sgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E52D9B60089; Fri, 27 Oct 2023 09:29:54 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1048-g9229b632c5-fm-20231019.001-g9229b632 MIME-Version: 1.0 Message-Id: <7acec62a-6b5c-4635-b486-ceadee279f35@app.fastmail.com> In-Reply-To: <415ae047-0c9e-1e85-f4ff-e17a63aa0dfc@amd.com> References: <20231023160539.1537355-1-arnd@kernel.org> <20231023160539.1537355-2-arnd@kernel.org> <78427021-ddc0-45b6-a16b-bf8bc8f84003@app.fastmail.com> <415ae047-0c9e-1e85-f4ff-e17a63aa0dfc@amd.com> Date: Fri, 27 Oct 2023 15:29:34 +0200 From: "Arnd Bergmann" To: "Lizhi Hou" , "Arnd Bergmann" , "Martin Tuma" , "Mauro Carvalho Chehab" , "Hans Verkuil" , dmaengine@vger.kernel.org, "Brian Xu" , "Raj Kumar Rampelli" , "Vinod Koul" Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] media: pci: mgb4: remove bogus 'select' statements Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 27 Oct 2023 06:30:14 -0700 (PDT) On Tue, Oct 24, 2023, at 18:18, Lizhi Hou wrote: > On 10/24/23 06:27, Arnd Bergmann wrote: >> On Mon, Oct 23, 2023, at 18:05, Arnd Bergmann wrote: >> >> aarch64-linux-ld: drivers/media/pci/mgb4/mgb4_core.o: in function `in= it_i2c': mgb4_core.c:(.text+0x3ec): undefined reference to `xdma_get_use= r_irq' >> aarch64-linux-ld: mgb4_core.c:(.text+0x404): undefined reference to `= xdma_enable_user_irq' >> >> I couldn't easily figure out what a 'user_irq' is here, >> but I wonder if this is the expected way to use the DMA engine >> layer. Maybe this should have been a nested irqchip instead, >> or it should be encoded in the DMA request specifier? > > Hi Arnd, > > Here is a brief description of 'user_irq' and 'xdma_enable_user_irq' > > The XDMA subsystem is used in conjunction with the PCIe IP block. Plea= se=20 > see https://lwn.net/Articles/911496/ for the overall information. > > XDMA can forward PCIe msi-x interrupt to/from user logic hardware (e.g= .=20 > Digiteq device) which is connected to its user irq pin.=C2=A0 And XDMA= has a=20 > register to enable/disabe interrupt forwarding for a specific user irq= pin. > > 'xdma_enable_user_irq' and 'xdma_disable_user_irq' are provided for=20 > hardware driver which is designed to use XDMA to enable/disable its=20 > interrupt. And based on the previous discussion with Mark, Digiteq=20 > device does not use its own register to enable/disable interrupt but=20 > relies on XDMA.=C2=A0 Please see=20 > https://lore.kernel.org/lkml/daccee4a-ac3c-bfc1-4876-24e6ecf5bcf1@gpxs= ee.org/ Ok, in this case, I would suggest using 'depends on XILINX_XDMA' instead of the 'select' statement. I'll send a v2. Arnd