Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp660533iog; Mon, 13 Jun 2022 10:04:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt4DsJPjIeDG9NajBeJK5r7AnIo7PvBqqLQwRBT9QneWRtfbUAe0nc4OBqET3bTsOWUzYk X-Received: by 2002:a62:7cca:0:b0:4fd:e594:fac0 with SMTP id x193-20020a627cca000000b004fde594fac0mr153715pfc.79.1655139872393; Mon, 13 Jun 2022 10:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655139872; cv=none; d=google.com; s=arc-20160816; b=D2tmaXP1cMegrfiriiT6mahveX0Exy31Ta5dD4VvbgKdM4KR5xZK8FcDCEaVV/Bvwx fRT/9Ud+K/lQRTd967+ADRr66/PKh8pP4ZBKUdYsOys3ONXgK+qFIRdEcng/82ouWO7A jtKh++MiOCV6m/vcch7w3Fu2hHT4Bi50AeOj56JE5X05vAp4t5N2l0seE/0D9HExgEYx 7yVQEOSQMDtpqiJZv/BY1mCLGPPb8OaZ+WS86EA6DolcJnOkqS+foV/XzUEa1CTDFwTB yeM1GnS9H5HQVDnG5rNAJhHKkfNhZzHEwiDxLRmiRAMaMcoIqjDlcQXyU7QgRaCracmC gEvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=J/0U6MGsdzBDMxaqaBhVdYI1HVbvxadIUBRm0KzRCkE=; b=ZP5dT7k+76XucGiuAhbj9cje23dqqtJKiTftKysOxPRTYG1kbUjLCN+QH9P09Ei3Ca ayE8WRveKT/LNZDZEM6+sK1t/CusvcznIn4iPNWw3fvlbEt+O0ALwEoYCfPAx4YpUu7Y 82/UvT2xWFyEIOiqf9KgVr/oRHchDQlFxenTmxuhwr/ocd7s5fj2UK/bvPol8nKHNyXZ /5oPyLs8wz25RFss1QyCroi7si+b+PdjTQQPFWm+Jwqbbp6CTYKtM7ro0rrb06vSg7Po DDZueJ3NTUetOj8jD0elL5+D015J5Q34ouYpuTUnG8ZSQcxJkd6xjeuKNSsqeFTghaZ9 C1Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lEY+l748; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 23-20020a630717000000b003fda62fb969si10060344pgh.590.2022.06.13.10.04.18; Mon, 13 Jun 2022 10:04:32 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lEY+l748; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379488AbiFMNs7 (ORCPT + 99 others); Mon, 13 Jun 2022 09:48:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378217AbiFMNmO (ORCPT ); Mon, 13 Jun 2022 09:42:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9F8B2A72F; Mon, 13 Jun 2022 04:31:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4A39361037; Mon, 13 Jun 2022 11:31:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A56BC34114; Mon, 13 Jun 2022 11:31:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655119886; bh=5UwgwA5uk3m1yjQ3cSjIclyEbz390K7LIh5k5M5FNEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lEY+l748/kNDAMEzKGnWYVP/b8eSv+u8WOUKxXZBKOHcV8YfhB73XjmUPA5ytQGUe 8cA4thF4FqblVjImiduVW6T/UpAK/8tUEveKb+IOBohkVTaZd2djvWcajIy/BE5aGJ MPIRhhxauAptMS+MP7LKuQCenDAZo1hkWWqFuk/8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Walker , Dave Jiang , Vinod Koul , Sasha Levin Subject: [PATCH 5.18 154/339] dmaengine: idxd: set DMA_INTERRUPT cap bit Date: Mon, 13 Jun 2022 12:09:39 +0200 Message-Id: <20220613094931.354949193@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094926.497929857@linuxfoundation.org> References: <20220613094926.497929857@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Dave Jiang [ Upstream commit 4e5a4eb20393b851590b4465f1197a8041c2076b ] Even though idxd driver has always supported interrupt, it never actually set the DMA_INTERRUPT cap bit. Rectify this mistake so the interrupt capability is advertised. Reported-by: Ben Walker Signed-off-by: Dave Jiang Link: https://lore.kernel.org/r/164971497859.2201379.17925303210723708961.stgit@djiang5-desk3.ch.intel.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/idxd/dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/idxd/dma.c b/drivers/dma/idxd/dma.c index bfff59617d04..13e061944db9 100644 --- a/drivers/dma/idxd/dma.c +++ b/drivers/dma/idxd/dma.c @@ -193,6 +193,7 @@ int idxd_register_dma_device(struct idxd_device *idxd) INIT_LIST_HEAD(&dma->channels); dma->dev = dev; + dma_cap_set(DMA_INTERRUPT, dma->cap_mask); dma_cap_set(DMA_PRIVATE, dma->cap_mask); dma_cap_set(DMA_COMPLETION_NO_ORDER, dma->cap_mask); dma->device_release = idxd_dma_release; -- 2.35.1