Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4289930rdh; Tue, 28 Nov 2023 18:12:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFg3bUU2Hdcjm5VeKNfoywurK5Yr+Ja2tBaApjFpsbU6Qzx+pwsxoRxZysamIj0nr1vAtSq X-Received: by 2002:a17:90a:e7c8:b0:285:b6a6:c506 with SMTP id kb8-20020a17090ae7c800b00285b6a6c506mr11430765pjb.43.1701223959174; Tue, 28 Nov 2023 18:12:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701223959; cv=none; d=google.com; s=arc-20160816; b=KDg4wEa3dtFrpFvsaZHbwDrhIoBMaIXAPI+9UbMO4EBIpMBIJjmVIMZJ5BmBGPhKtu 9hrHDNMefTsRhC/aSai38bgIPCTUEr/QKWj/LCqfMs4NocidI4KcTuU50WPV87nvuJaY SD1ZLidKXYe81/XKTY+MnngyK/fWwPypaJKgMjxN3rczJ9Y+4Tc0xiQNBxfFG8wE0bE1 gp2qEMSHpt+hvWimPPdybqZbMliY9UJciO/tdKwe7+NxLl8isuuW4vkgvVq+GF7RjLPZ BJ4WgChHAo8bEhf5e1/W6twTx+XFaXuh5f5XafifE5z1O25dIrQgTsVGYKZXCGU1+Yj3 vr8w== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=yaVTVjwPsRLQvhHQX/AWNDhOssIGmmbDVerq5y+xWjc=; fh=1bho9rYr6tmJU5Sb7AFj8/cJYCfgprsU40Q1vnufmW8=; b=z5zs88kKFpnaaaPFl0OzfDuCtSRcFdOmhzTmHS2Yjdx4FuyL1OLP3TG0CwzcVis3gm vJ5Jw7xGoLWorCfiy408IyJXRrWibAngscOSqDR2BJAMGlnD4JG1873/rOd/unL8tNKu y08FkTtlCisZ04PCRZD/4WtW33YIcTaB1yErEKb4i5VOdK85epCfukvJ2Tog2V8004Uv hO7+bh60fIgIl2nFa84rkfxfhj8VnTU8ZaL++wN10V8ZQ3JxPtXY6Fz8m+iUtTej0ZvQ wq9JneitoGpx/rtovDHrlE4CZpjMk+1Hx5BsuMIICW6ISzrbenXv1gzvhd9M33FZIE0O rR0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dsNFDOqt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id gj15-20020a17090b108f00b0028593e9eab0si307937pjb.91.2023.11.28.18.12.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:12:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dsNFDOqt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id BAF3E80BD267; Tue, 28 Nov 2023 18:12:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbjK2CJK (ORCPT + 99 others); Tue, 28 Nov 2023 21:09:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjK2CJJ (ORCPT ); Tue, 28 Nov 2023 21:09:09 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 018EC1735 for ; Tue, 28 Nov 2023 18:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701223753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yaVTVjwPsRLQvhHQX/AWNDhOssIGmmbDVerq5y+xWjc=; b=dsNFDOqtd5alsOcWCw4QrKAC4LNN62AZxVhKUCMenysNzqkGCkz8AXbqV0iyaexW+DMiiY HkOcbtmhPn5iX3quHwZ819Kr4nGKn2K8LS2M/M1ZtjkTwivYtZg/q0pU6X4dSADytxAY5s tZYIzjGnrScwXKapuzmUCf+DBGgIJDQ= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-453-FO9fiMhMPo6RHoba12kjLQ-1; Tue, 28 Nov 2023 21:09:12 -0500 X-MC-Unique: FO9fiMhMPo6RHoba12kjLQ-1 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-54af6c23f5aso3414170a12.0 for ; Tue, 28 Nov 2023 18:09:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701223751; x=1701828551; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yaVTVjwPsRLQvhHQX/AWNDhOssIGmmbDVerq5y+xWjc=; b=R/X2JewYm7OsWY5HLINSq5tUUWUyEUTkN6muNGNUHitmfOm6TQn3YPm2GWTp0utnXV vhPvIMkTuE79rujFp2NtfQPt/EcYdGf5Ry+h0hRq+luqrgN3fh+qnBdLyRtqcPjzYt/J YHnkXWsu//4hyaTUiWnPiv0MP30+nXUYM0Jwvxmu/S3dMSt1zP9cWkh28p/UJjln8ydn DV/0hcgZ6T0QYRB0HE+0eskbbq/O93PHvVUnA0q9rkwrjoDT/g086UdqI0ciOkDtXxe+ fCfsc6saZELqSLw519soVcJaVxdIEmaIFdM/wQPtsLZ06fqgtxltLqUNrJlkmMybkpfl 73Cg== X-Gm-Message-State: AOJu0YxTyQGB4Z2OLTPl34gqQRbNo6boFFMLdfdT4yCxBU3tP6cbl+9E YUe+DtZnR/DfGGEbZLlqOsOMB5+6gxM+0i/1c64evpf3v3/x2kfwi+p4WYCJXJyHqYCS0nXqmie 5L6kpq/vT1joh+Y615Moi64oc X-Received: by 2002:a50:c014:0:b0:548:5629:81d0 with SMTP id r20-20020a50c014000000b00548562981d0mr10471182edb.42.1701223751273; Tue, 28 Nov 2023 18:09:11 -0800 (PST) X-Received: by 2002:a50:c014:0:b0:548:5629:81d0 with SMTP id r20-20020a50c014000000b00548562981d0mr10471168edb.42.1701223751013; Tue, 28 Nov 2023 18:09:11 -0800 (PST) Received: from ?IPV6:2a02:810d:4b3f:de9c:abf:b8ff:feee:998b? ([2a02:810d:4b3f:de9c:abf:b8ff:feee:998b]) by smtp.gmail.com with ESMTPSA id eg36-20020a05640228a400b0054bc5624616sm540233edb.53.2023.11.28.18.09.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Nov 2023 18:09:10 -0800 (PST) Message-ID: <0dd7741c-b2f0-4593-b286-de918ffe8955@redhat.com> Date: Wed, 29 Nov 2023 03:09:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] nouveau/gsp/r535: remove a stray unlock in r535_gsp_rpc_send() Content-Language: en-US To: Dan Carpenter Cc: Lyude Paul , David Airlie , Daniel Vetter , Dave Airlie , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Karol Herbst References: From: Danilo Krummrich Organization: RedHat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 28 Nov 2023 18:12:37 -0800 (PST) On 11/27/23 13:56, Dan Carpenter wrote: > This unlock doesn't belong here and it leads to a double unlock in > the caller, r535_gsp_rpc_push(). > > Fixes: 176fdcbddfd2 ("drm/nouveau/gsp/r535: add support for booting GSP-RM") > Signed-off-by: Dan Carpenter Good catch - applied to drm-misc-fixes. - Danilo > --- > drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c > index dc44f5c7833f..818e5c73b7a6 100644 > --- a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c > +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c > @@ -365,10 +365,8 @@ r535_gsp_rpc_send(struct nvkm_gsp *gsp, void *argv, bool wait, u32 repc) > } > > ret = r535_gsp_cmdq_push(gsp, rpc); > - if (ret) { > - mutex_unlock(&gsp->cmdq.mutex); > + if (ret) > return ERR_PTR(ret); > - } > > if (wait) { > msg = r535_gsp_msg_recv(gsp, fn, repc);