Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7586889ybi; Mon, 22 Jul 2019 16:17:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9tLzoHXqw7urabLtl3x1ZHEKbTlLByqCQXSE28RDcWSUajK0V0MIDLYJPPOHNi4JpGBzJ X-Received: by 2002:a17:90a:ab0d:: with SMTP id m13mr75844739pjq.84.1563837420359; Mon, 22 Jul 2019 16:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563837420; cv=none; d=google.com; s=arc-20160816; b=007thUxTPgDZ7rAjDOBe8Xwm+PI5QX8Ad9VFeRVq3FoSvHBzG/lmhI6OAr4sqOTTz/ CxLl2mnAaurb49NefM3yJ+OE32nIrR7SXAAnq3NcDlV4FognZw9FWrfsnD0aArGNlQGF RkmDmQkoaFcswGE9prtWAvHyn/3x9VuNdPSK8I7CgkDy/VYBIarzfRerrzOigrks/W+0 Lg1TuTYMmeKteWnAvrW2al3+v8ETz+DM3DLokxtB6Zf6hB6is1f+QxkH98WTjufQPya+ FLFLR9NCKNYq/k95ANncvW1un8gpKXdOSDGvkrnduerztoAEe9fYURtLCP4xR/ddtiB8 IE0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=i9YD5G8HAMrMrwipZFF5d7e55WgOTsCxcFVl1IuaGhA=; b=qoHZbOtlbbA+jDLusea3DXeLE6l/xOjnAEJUc99rgHmJ06Ewr2p8TyJXuXZEuT7NTF XbpcqO05UoNvy6AeVGAlRP5Qkb8+lYi8m1laUlbD3EFZCKYjt0Wmubd+KgMUE3ORVrL/ b9l+gnqRDULCckwVH9P9DchG9+3I306i7h15oh6JGWlcgg9mb0udzU+88CCNyeB5iAKt QFUu4BGLRYmqdGJ0OcuLOAdQ78nT4krTs/OUpuTPOZsGh5wqTUghJxCDy8JU5r0mCpHi pUPJpQ7JitSai0m5GPkVvnWTmFkrqQyQ9ySlMXHB/1CikhMEfr288ReRqnj3jK2eft0C 1ZNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=ak5c6nSt; 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 23si9954933pfi.265.2019.07.22.16.16.44; Mon, 22 Jul 2019 16:17:00 -0700 (PDT) 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=@poorly.run header.s=google header.b=ak5c6nSt; 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 S1731454AbfGVSU2 (ORCPT + 99 others); Mon, 22 Jul 2019 14:20:28 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:46175 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726604AbfGVSU1 (ORCPT ); Mon, 22 Jul 2019 14:20:27 -0400 Received: by mail-yb1-f195.google.com with SMTP id a5so15272102ybo.13 for ; Mon, 22 Jul 2019 11:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=i9YD5G8HAMrMrwipZFF5d7e55WgOTsCxcFVl1IuaGhA=; b=ak5c6nStqCuj2CKoFKbZr8QeS33wn5Tkzs0ZNi0q36+RLFltvOc0xeXTsHIz3N4UPk QJOy5ScCXwQm/3oHhiQaIpuojW2iEccYAtg35XNPm0ZlLjgw08ka4xl+NLI1yhxGKvRH j6vEXEAz/p4xsMvBZEflj7DTIX37B05LXzhVk58xGpC2nt+tKbMV5UO2QYXFtxADJcTZ 0YUjHcpfFssACDyQZD2Pd2K9Emq+rQPEcUhyFCuwv4gM4l86SpyIiOzB215sShGcxpA7 UtSy4Bplog61zuI3HZX5BnDFxnRFYGq7e2dGsnSFlTGpuk5PKHBcWBEOq9v/k1WxPReP E+rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=i9YD5G8HAMrMrwipZFF5d7e55WgOTsCxcFVl1IuaGhA=; b=rWWm1TsLCbaeOs3iM9omv/TIvnrHr5njdufmktekdrxgZxKyJQea1Fuslra0/qKAQ/ ViBJUu1gczMjUuCv68KWpCpuODyh7jC7EwU3UkTTuJHqCHn5i0mPnAcjcy3DmvZbtH8h Niafu214pyuACkm2eG8sgViL87WNUKgNC5j8dd//s9PDB/V/iwz5uEO404EK/AiORgFy l4I/tBPuYmG0uo6bXNkU8rR8nw75VOtM7DaiSUx9S/bcJDHeKEEXmtAkjS0Dge3PKg6I PKxnsI3doUF+9s1RUxYlm6wlwYH7z7KqvJzY59ws26GDZJCJ7VTK3hs6Cz5CBn2zxa+x nNFw== X-Gm-Message-State: APjAAAU69iTv05j+F5UOGxkYabbcFgLdiAf4CoZuZEml2Y2hQ+Lcs/H/ gW0JpwVxvZi9Y+ACaGpPmVqJQw== X-Received: by 2002:a5b:405:: with SMTP id m5mr45459571ybp.261.1563819626843; Mon, 22 Jul 2019 11:20:26 -0700 (PDT) Received: from localhost ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id 206sm9444775ywk.44.2019.07.22.11.20.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 22 Jul 2019 11:20:26 -0700 (PDT) Date: Mon, 22 Jul 2019 14:20:25 -0400 From: Sean Paul To: Shubhashree Dhar Cc: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robdclark@gmail.com, seanpaul@chromium.org, hoegsberg@chromium.org, abhinavk@codeaurora.org, jsanka@codeaurora.org, chandanu@codeaurora.org, nganji@codeaurora.org, jshekhar@codeaurora.org Subject: Re: drm/msm/dpu: Correct dpu encoder spinlock initialization Message-ID: <20190722182025.GF104440@art_vandelay> References: <1561357632-15361-1-git-send-email-dhar@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1561357632-15361-1-git-send-email-dhar@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 11:57:12AM +0530, Shubhashree Dhar wrote: > dpu encoder spinlock should be initialized during dpu encoder > init instead of dpu encoder setup which is part of commit. > There are chances that vblank control uses the uninitialized > spinlock if not initialized during encoder init. > > Change-Id: I5a18b95fa47397c834a266b22abf33a517b03a4e > Signed-off-by: Shubhashree Dhar Thanks for your patch. I've resolved the conflict and tweaked the commit message a bit to reflect current reality. Applied to drm-misc-fixes for 5.3 Sean > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c > index 5f085b5..22938c7 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c > @@ -2195,8 +2195,6 @@ int dpu_encoder_setup(struct drm_device *dev, struct drm_encoder *enc, > if (ret) > goto fail; > > - spin_lock_init(&dpu_enc->enc_spinlock); > - > atomic_set(&dpu_enc->frame_done_timeout, 0); > timer_setup(&dpu_enc->frame_done_timer, > dpu_encoder_frame_done_timeout, 0); > @@ -2250,6 +2248,7 @@ struct drm_encoder *dpu_encoder_init(struct drm_device *dev, > > drm_encoder_helper_add(&dpu_enc->base, &dpu_encoder_helper_funcs); > > + spin_lock_init(&dpu_enc->enc_spinlock); > dpu_enc->enabled = false; > > return &dpu_enc->base; > -- > 1.9.1 > -- Sean Paul, Software Engineer, Google / Chromium OS