From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4574BC07E9D for ; Thu, 29 Sep 2022 07:32:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234756AbiI2Hcx (ORCPT ); Thu, 29 Sep 2022 03:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235249AbiI2Hcv (ORCPT ); Thu, 29 Sep 2022 03:32:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3FB8138F0B; Thu, 29 Sep 2022 00:32:50 -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 1B00162063; Thu, 29 Sep 2022 07:32:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF21DC433C1; Thu, 29 Sep 2022 07:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664436769; bh=fdtYhFuA7lgdfB8bFDS9FiJx6x5oeWMDaKJz1jOPrTc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iqsG+jXtCf3FSgMAgNOu6AT+t9bNVWxxgbrAFPxP43atrflCISowZi5CfJaNoW6DX TyhztZNoF2yeAJ8DtsnyXPmZiWYWSa6HAv2pL1htjdA4h4D6n3dmxL3X6n+N91ujXm fGXKiP8JHcHoRXf5oGBY1AQGtlaQSjf07I1IizXXmx5E8azDEfvnhkN4YIYgBHk2S0 9Pen7uNlk+gUhyikTJMPsbOLhAQ7UDW0iI4sSJ8yA7bCfqQkfm03BjtJQYcJAQAVF4 bq5rIfRcZG8OmZ8kK8COquwuqpH81KaNvUpDIELc7Ii5aax6ZWbGQO68BBK2LsqwHQ dyWoU4WotjLKg== Date: Thu, 29 Sep 2022 13:02:45 +0530 From: Vinod Koul To: Jerry Snitselaar Cc: linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Fenghua Yu , Dave Jiang Subject: Re: [PATCH v2 0/2] dmaengine: idxd: Fix up re-enabling device workqueues Message-ID: References: <20220928154856.623545-1-jsnitsel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220928154856.623545-1-jsnitsel@redhat.com> Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 28-09-22, 08:48, Jerry Snitselaar wrote: > Currently if a software reset is attempted on an idxd device > the workqueues will not be re-enabled, because it will see > incorrectly see that wq->state is already set to IDXD_WQ_ENABLED. > So set the workqueue state to disabled in idxd_wq_disable_cleanup(), > and use a bitmap to track which workqueues have been enabled so they > can be re-enabled during device re-initialization. Applied, thanks -- ~Vinod