Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp353903rdb; Tue, 31 Oct 2023 09:14:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZAvANSbTSCezoAeZNxoh4rKIIolBmSyOodhEgOnD1PqwRxGSiN9mB2Y/wl2r2Y039TV7K X-Received: by 2002:a05:6a21:4983:b0:180:132:e082 with SMTP id ax3-20020a056a21498300b001800132e082mr9557231pzc.58.1698768845962; Tue, 31 Oct 2023 09:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698768845; cv=none; d=google.com; s=arc-20160816; b=WazRs0FXhAVhNFEch6Hi/nekx+HdU1gVgSgY1K8n71F/x25nxKDGtRkKEyutAMlYiy DX2E1vwFDO+yEyCYL4VmMzML+BTBgwcTfwilkvfKn1MnMCjgY6245WzdRVmB9CNYVku2 NsUvK8VDrN/t1iYVj8f8WrXB0SZU8u4Z7yBBhai1ayC85G8Bv+57W33Iq7ErwaIXvlBB NiWD0ImLlJZW6vFqLOdjzXv5cAsjdWscu88dS9IP8fCbox/mOM1odUBoY7cvm1lKub0v eVGGR1mHdHhMZkty/nAgY600MWRVokqULZvH/fV8wRwsdjc4yoxvdBOAj4goqChbFOsC fm/g== 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:dkim-signature; bh=hfNbY2AmnmOKK0h6VK9HtZx1Vqfd5+Nfz21HDYq/4xA=; fh=5DbVeAuBJfkUkGlAFX2fl/EiZvU7JD0CgOs2M4KVGVs=; b=EzpdJxXw+Qth7k0yFz15dLx2gkDMjZv/tbiGOJd+XOdbtoOoAf+1TT7ioBHsuvCMlv awdqIwnZtFj6Gq2hsuvFvHtEQOa4hOWj0WhLstdApTPniI6REAkKPFoea26Upisl2VqE thiK3BixNMdNxpmmxUjApIa8hX+gaM4Ih5OCHiYqBF28sLnZc7NMU8clxjRyG+8Jadnw GrYB06w06Z3X49YiaUqJL9+df23jzN8o+Mz6+MUqD/ekD3pK94BiuzBU+OvSlMyy9aRD 97wzNlvom83D9YdONvAdzfoitiG/2PM8D98E+XOUnU9Jg+QrIzvNYw/C87rYHkmkamf2 SZfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EBZnQQoY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id v70-20020a638949000000b005aa0af5b62esi1150706pgd.511.2023.10.31.09.14.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:14:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EBZnQQoY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9D9E0804A9D4; Tue, 31 Oct 2023 09:14:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344957AbjJaQN5 (ORCPT + 99 others); Tue, 31 Oct 2023 12:13:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344932AbjJaQNw (ORCPT ); Tue, 31 Oct 2023 12:13:52 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E67BA6 for ; Tue, 31 Oct 2023 09:13:50 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39VGDY9f129042; Tue, 31 Oct 2023 11:13:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1698768814; bh=hfNbY2AmnmOKK0h6VK9HtZx1Vqfd5+Nfz21HDYq/4xA=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=EBZnQQoYJi7WPOLBNKcqfKCQQbC46uBoGqv9Zk2gU7+niavim+2aYmXuF+MNbDPMP BfcRVQDkDY0n4Pvot9dWM/snVmaVVVhLrybPw5Z/L6tyftFU3R6/IKqvGX1Ky6sQZp lTydj0gPEfJYzEtlKE1EFMfzPzNZjwqUW4sPucPg= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39VGDYQV081239 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 31 Oct 2023 11:13:34 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 31 Oct 2023 11:13:34 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 31 Oct 2023 11:13:34 -0500 Received: from [10.249.132.69] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39VGDURk016065; Tue, 31 Oct 2023 11:13:31 -0500 Message-ID: Date: Tue, 31 Oct 2023 21:43:30 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH] drm/tilcdc: Fix irq free on unload Content-Language: en-US To: Tomi Valkeinen , Jyri Sarha , David Airlie , Daniel Vetter , Thomas Zimmermann , Sam Ravnborg CC: , References: <20230919-lcdc-v1-1-ba60da7421e1@ideasonboard.com> From: Aradhya Bhatia In-Reply-To: <20230919-lcdc-v1-1-ba60da7421e1@ideasonboard.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Tue, 31 Oct 2023 09:14:03 -0700 (PDT) On 19-Sep-23 12:42, Tomi Valkeinen wrote: > The driver only frees the reserved irq if priv->irq_enabled is set to > true. However, the driver mistakenly sets priv->irq_enabled to false, > instead of true, in tilcdc_irq_install(), and thus the driver never > frees the irq, causing issues on loading the driver a second time. > > Fixes: b6366814fa77 ("drm/tilcdc: Convert to Linux IRQ interfaces") > Cc: Thomas Zimmermann > Signed-off-by: Tomi Valkeinen > --- Reviewed-by: Aradhya Bhatia Regards Aradhya > drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c > index fe56beea3e93..83233bdc0526 100644 > --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c > +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c > @@ -138,7 +138,7 @@ static int tilcdc_irq_install(struct drm_device *dev, unsigned int irq) > if (ret) > return ret; > > - priv->irq_enabled = false; > + priv->irq_enabled = true; > > return 0; > } > > --- > base-commit: 0663e1da5ba8e6459e3555ac12c62741668c0d30 > change-id: 20230919-lcdc-9e09e94f4e93 > > Best regards,