Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2632pxu; Thu, 3 Dec 2020 17:25:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUJbMSrQnYdS4w93iJt9njDLcEDimKbNCJjEZskpJ29karSC8BW5bOCzlzA7vhF+XwzEx3 X-Received: by 2002:a17:906:eb5b:: with SMTP id mc27mr4929709ejb.163.1607045158578; Thu, 03 Dec 2020 17:25:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607045158; cv=none; d=google.com; s=arc-20160816; b=DJ0p4ZWrUbZnLrRhh2znTuzcjXCwzkOD6cun/v+iH5+J3eylVsPkIvU1m5UXtxBtLP ntA2ixREr+x22lyHQeWnwskcT2o5siA0HSQHRpIBxSBFaNUo52H9ka7v9enMvho7B1Pl ME9rb1vIiC7iPP/84WFge1dq9k5tLMHtnMGTOkYihE95ApWZh2FJXtMgxv9O2wWbFpje 5o1SrHjcyEo+FjtdICCYs7HQse3P/5pLFUzP7nbCXbehg42aLxrqQmd2mPtstxI6wV+y VCrzwlGAtWVsBXC1Rk2XndjaxY7WNZoME8iBrzQlKz7MFRedz2h5qt5I6KMX5e876Xhv dFpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:to:from; bh=h3TWBXbJ38bqnOh6bO8h1AlU8+5Sn63B+cwXPVnf3Is=; b=oXiL7ZOCMoNuu2AAGdvt1pdgmZg9xMKvELyekH+mcRUK4mtY1A6dOLVB3CrhF/+8JE l/zWfg2Tn0enjz74UCpXDw+DTKASZofjEDkraRJZoxXf9LVlJazxNLD+j1nUsfnqmUb3 O5/r72RXYAodDUArXCIiI8b0vhrp6Tdp3h+OMx0tDxBD38uhytfDb0AEVD1T//OG+n9j v1256ZPxxJzLGeqVRRDU6u3wwStg52xUjOs7p+rukNXMbzYC591qMxe1gQQnZdi8qTEB J0ebjCpr5tuKpAMwhd5w3ayxKPBX4ofPRW0g0AIM3bLUaEb4aGeir2kFWHGGvDBOX3mv cdmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si419704ejg.486.2020.12.03.17.25.36; Thu, 03 Dec 2020 17:25:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731981AbgLDBX6 (ORCPT + 99 others); Thu, 3 Dec 2020 20:23:58 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8634 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729022AbgLDBX6 (ORCPT ); Thu, 3 Dec 2020 20:23:58 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CnFLq4L7pz15X18; Fri, 4 Dec 2020 09:22:43 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Dec 2020 09:23:07 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH] gpu: ipu-v3: replace spin_lock_irqsave by spin_lock in hard IRQ Date: Fri, 4 Dec 2020 09:23:16 +0800 Message-ID: <1607044999-47666-11-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607044999-47666-1-git-send-email-tiantao6@hisilicon.com> References: <1607044999-47666-1-git-send-email-tiantao6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The code has been in a irq-disabled context since it is hard IRQ. There is no necessity to do it again. Signed-off-by: Tian Tao --- drivers/gpu/ipu-v3/ipu-image-convert.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-image-convert.c b/drivers/gpu/ipu-v3/ipu-image-convert.c index aa1d4b6..c28764c 100644 --- a/drivers/gpu/ipu-v3/ipu-image-convert.c +++ b/drivers/gpu/ipu-v3/ipu-image-convert.c @@ -1737,9 +1737,8 @@ static irqreturn_t eof_irq(int irq, void *data) struct ipu_image_convert_run *run; irqreturn_t ret = IRQ_HANDLED; bool tile_complete = false; - unsigned long flags; - spin_lock_irqsave(&chan->irqlock, flags); + spin_lock(&chan->irqlock); /* get current run and its context */ run = chan->current_run; @@ -1778,7 +1777,7 @@ static irqreturn_t eof_irq(int irq, void *data) if (tile_complete) ret = do_tile_complete(run); out: - spin_unlock_irqrestore(&chan->irqlock, flags); + spin_unlock(&chan->irqlock); return ret; } -- 2.7.4