Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp151890ybl; Thu, 12 Dec 2019 15:44:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzyzQ7ZGYymbgAb/WVQMubrnNz3zYLyMqsXLJlqV0NxfrjNEYCwDobbFB7sczI5+WF/7ajO X-Received: by 2002:a05:6830:2111:: with SMTP id i17mr10540100otc.24.1576194274604; Thu, 12 Dec 2019 15:44:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576194274; cv=none; d=google.com; s=arc-20160816; b=XRkmA0UCR1zksALSG0Fcivln2ybkhfwVuDrHRI8XlI3MRiWhqkff4AWP+wdMSPyg6k BHZ0DReIy8xGHBLYqrMap5lut8tnnfLvi+18OD0TbbYeD/5OdRJQ67B1cO25NK+qanoY MCgUT+E3IoTP2vQVRRUN7zOfoWxCALdoPKV8CNBT1xyIS8ld8hWi0I9rUKxEzKqSlrjZ qwtej+nB1L0QsnIK0SOP948T/dux/tx7CtkphkVOmS+cVWTt5MsdKpNXjvR+wGVWGssD jp8C4xTVJQujjnusWV8yDnesbuDZjhJbbLBhvYXeeuy3cw4fIAaVg6EfXnOV9Zg0582O Rz/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Fc2RGJ3UClAMsvSW+fKzHU87UiE/9k4bA3dodgjrviE=; b=whNMmkUt8nRrDV2R/pWLAKX9DgWaHRhfgITPk3rh9zy5jwQkC+YPcFWx5+5vp0c9wu FXLa/VTHtgRo69e1WvZrcltWPYWpIyf0LMhgf5H6/vAwwW6OeEyLBNIY9uDwUn+SdE9L GHeKMUpVVlcObbbwWZQ2bA2myj+EZedczs5hoXVa0w6P1AFCEZX63ATz5IcnNgmmq6PV hp6X5OkZptHmDUArdPpnYn++gNABcXhAmiBerhlJ3Eb6DXRiu7AFEFQLH7Y4aJnoqLej ODqPqhVgsi97Qm38ytQAXVs9n9BsFmdojrsNroG+yV75knomaKPpM44jbdAP5KexkgTE MMDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DfOwrr8x; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t189si4187192oie.13.2019.12.12.15.44.21; Thu, 12 Dec 2019 15:44:34 -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=@gmail.com header.s=20161025 header.b=DfOwrr8x; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731123AbfLLXj3 (ORCPT + 99 others); Thu, 12 Dec 2019 18:39:29 -0500 Received: from mail-vk1-f196.google.com ([209.85.221.196]:34220 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbfLLXj2 (ORCPT ); Thu, 12 Dec 2019 18:39:28 -0500 Received: by mail-vk1-f196.google.com with SMTP id w67so260664vkf.1 for ; Thu, 12 Dec 2019 15:39:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Fc2RGJ3UClAMsvSW+fKzHU87UiE/9k4bA3dodgjrviE=; b=DfOwrr8xJ+MjAGBD5DPRK3CtrM98mBYbvY82OB7HXgLa1lSvy6Oh7roTWvGfy1vYmQ fkK8JvcONlBAl2dde0NnSED13jqqTXZ5ZuN8OUUdY4yirTMTd5eJfgCr0ry8TQ36uANH xdfhYjply1N4IvUEZb0K59zMzDOfBiJNVnbB2r0AW6CyGDbUwwgflvz5Zav1jhZHa2Hc w0YBOCUEr+bBToZQVHj23JGp9HlqIIDmA6NqcJtZxtvD0hBOtbXhVDnIgAt8g0/f/u6n HDWRnEdGP2SDVIYDxscK1eX/jRB4GSAjMlsJGzZvlc9NiCMDtNGeOxgcp0JjR8txI43q ZXQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Fc2RGJ3UClAMsvSW+fKzHU87UiE/9k4bA3dodgjrviE=; b=b7BpbJgf0hFUHs1T3Oa9wiE5ap4fCjWSciOHr+2Y9swB4UiwgPliUm0XmXPB70yS7a U0ExYn/gQSSG5wOU5JVspFdeaLEfRmlWsOQAYDGN6td51KC1UtGIUSxK2s4NkBH3ap7x icObLVHcVBHb55x+FBlH/6yT1KG5jC0rDqevwWV/Dtr7Rh01UiKv/91h2IYdIlL0cL9n FrIpHwlpZWFBld3jy/xYUxCe7uod5izexA0A+GXCi+CxxdZFVlqerHN/VDY7AOSBeEPJ gbFa3S2bXyXuRxPYRdncE1l22QrDQ/NfYf6rl2VviQRc5UbKlK8FHwgQlT2F2FXumHVr 5exQ== X-Gm-Message-State: APjAAAUQtOZ21nv87Vd453jUMrSRMfDsnzzt0E1IFIFewkz7EeHxeAf4 PRVC6Wc+4gQHJxX3sNo9NUk8siHhj3+jl4/LALrI74Rl X-Received: by 2002:a05:6122:2b6:: with SMTP id 22mr11219224vkq.49.1576193967753; Thu, 12 Dec 2019 15:39:27 -0800 (PST) MIME-Version: 1.0 References: <20191206075321.18239-1-hslester96@gmail.com> <8736dq2c66.fsf@intel.com> In-Reply-To: <8736dq2c66.fsf@intel.com> From: Ben Skeggs Date: Fri, 13 Dec 2019 09:39:16 +1000 Message-ID: Subject: Re: [PATCH] drm/dp_mst: add missed nv50_outp_release in nv50_msto_disable To: Jani Nikula Cc: Chuhong Yuan , David Airlie , ML nouveau , LKML , ML dri-devel , Ben Skeggs Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Dec 2019 at 18:14, Jani Nikula wrote: > > On Fri, 06 Dec 2019, Chuhong Yuan wrote: > > nv50_msto_disable() does not call nv50_outp_release() to match > > nv50_outp_acquire() like other disable(). > > Add the missed call to fix it. This is intentional, and it's called at a later time (nv50_mstm_prepare()) to avoid confusing HW. Ben. > > The subject prefix "drm/dp_mst" implies drm core change, but this is > about nouveau. Please fix. > > BR, > Jani. > > > > > Signed-off-by: Chuhong Yuan > > --- > > drivers/gpu/drm/nouveau/dispnv50/disp.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c > > index 549486f1d937..84e1417355cc 100644 > > --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c > > +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c > > @@ -862,8 +862,10 @@ nv50_msto_disable(struct drm_encoder *encoder) > > > > mstm->outp->update(mstm->outp, msto->head->base.index, NULL, 0, 0); > > mstm->modified = true; > > - if (!--mstm->links) > > + if (!--mstm->links) { > > mstm->disabled = true; > > + nv50_outp_release(mstm->outp); > > + } > > msto->disabled = true; > > } > > -- > Jani Nikula, Intel Open Source Graphics Center > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel