Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2547672ybc; Sun, 24 Nov 2019 23:47:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzAeVFX14MlqhZ1k7IYnN5CEdJFcP38icbyWjdO13L8Y5TK0qjo/mYKXvx7cF8w6hLqgJgs X-Received: by 2002:aa7:d294:: with SMTP id w20mr10640593edq.134.1574668048083; Sun, 24 Nov 2019 23:47:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574668048; cv=none; d=google.com; s=arc-20160816; b=SU7c8GEfe42Voy/nMWq5eGhgkF7NBtcsrfF0sh+D0r9XHeG5sdUbg7scKCzy4dUqa9 D9axaoPPXceFpf1lbzBsdFH5uwENdrr8L3kMce/UbiqXxFfO1MTTP30eWrtlO6mB/ESA Gt/Oqcs0NDi+l+nvJfHGa2YWVob5W447apFw4MUyN+llzRnZIBonTe5Z9aP+o50fpuDR OCd30XONQEfKELZaCrdjuRAduNjgbZJeaerNiwnb3DQnWWTqdG2GxBo/TA46X4cNZ3/M 1x4qQobbsblgEVz7eAd6NGC3ljlWoZs2imSMOT8ucdcaIqsNUOV8+O44P9Gwp0b6FWR3 We1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:user-agent:message-id :references:in-reply-to:subject:cc:to:from:date :content-transfer-encoding:mime-version:dkim-signature :dkim-signature; bh=wiF/qUPMfz4UEzwIdPlWZouyA1+3zc1D92pZkNn8an0=; b=WFXwHv9DF7tdNFhexOlQnw9cd4vJMVwXRq7bd+hEUD3MXrC4dPiOXjqQvA7a7XLeJx hEzFgWrVyYLXn4grVk+aR8L6vq8j/TibFg4GdTSG72gKe4qqgxWdW572A8GIydTHUfaw Bsh8z8KD7Gsh/fHsqdxjx0nzg49QDJ7jHsg355uOG9S35iljUCAbvQegDIx1fmitEryJ dpkDfNMTnyAhcCI6aozrT7KR3iYWGaASIU1bGly8roLumtIIiuvkupbny8dhfIjLI4ED 4iT048Ki0/zKUiTkjtu2Te4DEJAUOPnyXv+Wxw0iI7atG5iTfTXP1mH5JgjvQDwU+wAf ew2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=jZjGIWCD; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=Ze8vI+uQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m4si3922305ejr.90.2019.11.24.23.47.03; Sun, 24 Nov 2019 23:47:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=jZjGIWCD; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=Ze8vI+uQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725938AbfKYHnp (ORCPT + 99 others); Mon, 25 Nov 2019 02:43:45 -0500 Received: from a27-21.smtp-out.us-west-2.amazonses.com ([54.240.27.21]:47308 "EHLO a27-21.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbfKYHnp (ORCPT ); Mon, 25 Nov 2019 02:43:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1574667824; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID; bh=38XBh07YX5GeTtsELU1klOdb/Ja+dN91/lAfvPbITss=; b=jZjGIWCD3iQqHlEwFp64qAXEdAaUp6iFixe+xafbgop8f+zPucTx1m5TAZP6kgKH 7uAmO+2y+pdn79UGhAJtAuZY4atAHYagd7j63O7+rxJ0Fc4AiTJdTjV5cffgEdNkMaN 0Ghh9YcobxHtmGxyq/MPC6YyW+YYUvDqk8hLRbA8= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx; d=amazonses.com; t=1574667824; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID:Feedback-ID; bh=38XBh07YX5GeTtsELU1klOdb/Ja+dN91/lAfvPbITss=; b=Ze8vI+uQmXGkIxWi7uQWxQ9ghIZe/CkgF5UqQoeTr8hFAvlG+fcyG1nOzq5zZAo3 NeBpB4A28izJIENqBvBwasvbLCZilVS7iRONEMw80G8HV0Lylq4b1AtO3knBrFjPYO7 ioS6NXCxEpTptFa1nwnoCTW58yNPh7oHSSg5bUBM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 25 Nov 2019 07:43:44 +0000 From: cang@codeaurora.org To: Avri Altman Cc: asutoshd@codeaurora.org, nguyenb@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, Alim Akhtar , Pedro Sousa , "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , Bean Huo , Tomas Winkler , open list Subject: Re: [PATCH v4 5/5] scsi: ufs: Do not free irq in suspend In-Reply-To: References: <1573624824-671-1-git-send-email-cang@codeaurora.org> <1573624824-671-6-git-send-email-cang@codeaurora.org> Message-ID: <0101016ea1842c0d-bbb3ea3d-c240-472f-87a6-d6b55edfb4a5-000000@us-west-2.amazonses.com> X-Sender: cang@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 X-SES-Outgoing: 2019.11.25-54.240.27.21 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-11-20 23:36, Avri Altman wrote: >> >> If PM QoS is enabled and we set request type to PM_QOS_REQ_AFFINE_IRQ >> then freeing up the irq makes the free_irq() print out warning with >> call stack. >> We don't really need to free up irq during suspend, disabling it >> during suspend >> and reenabling it during resume should be good enough. >> >> Signed-off-by: Can Guo > Your approach seems reasonable, > However I failed to locate in the kernel PM_QOS_REQ_AFFINE_IRQ, > Just in codeaurora. > > Is the WARN_ON in free_irq still applies? > > Thanks, > Avri Hi Avri, Thanks for pointing. It seems PM_QOS_REQ_AFFINE_IRQ is not present on upstream yet. But this change is still applicable. How about changing the commit message to below? "Since ufshcd irq resource is allocated with the device resource management aware IRQ request implementation, we don't really need to free up irq during suspend, disabling it during suspend and reenabling it during resume should be good enough." Thanks, Can Guo