Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp577591ybv; Thu, 13 Feb 2020 06:01:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzRwB4Z8ub6Bsm/jtfJagiItw+I8C6SumOEwAglyotxzEIYS4vhjkC225OK7eukvC/5dpiU X-Received: by 2002:a05:6830:128e:: with SMTP id z14mr13207360otp.184.1581602503444; Thu, 13 Feb 2020 06:01:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581602503; cv=none; d=google.com; s=arc-20160816; b=uukcIKPlRLIjhRM7lgcmrqlkyU5xn4pvM0xOwmXc5jk9ENxxaoZ66wxnf0XG2b0/8R SP9jdZPU0C+XoqSTWW5L0pxQWa39OkA9ABkZq1TQhBrn/uNxWq092wICNUTT8IrFttTG BmTT3HUJrDCUOZ74LG79q7Y6lKKZmF8eLmh3ZxGrLe1wbsBEqyA+e4T6s7YlWq4qZXLs qfF9p5zyimHoAM4Gpe2eGjeIPFoRtEakrkTMKcnHGBOwiNXo5AI+EXRboL9WjafEPI4E uBembbBzync/oR+WKV7gWgVGZNy/8m/d7WHdO1EeSssDqMC73WnfMzx1owj+AKo78Np/ Of4g== 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=GwvJtBvLYgXHz2Xkjo28kGnQcGUFvmoCc8Tq+skqxFM=; b=kbGjx7R6JwJjzlgtTUA5v9YLu9pBkOK8YcFB+gGlMIrD6bx4b5fcsqbwr6RizhFgH+ aVyZPLkLqTgvMXAWF2npsRxlIEdQNcQPdJb105Y+Qc0/TuQM9v7aopukIzzzdlFo7Bh0 8lkOoHMa+xz0kbxHPutxKe0Nt1WsLbxsqd1BNcr79u9dO/rjlbHrPhZPhXFhfzUImGBc ESnNImuEGY9lxxu7vHqzNOwEcp37rgEwr1Gc/fgutw9hoXCjIgM+kIV3Z3yVJDuQ6/yb ZeOt6PZl4rFFlppZHP0mx/JfQkEhOKLzLgcZeX7ciTwVJvMAlLpInF1ehTJY2AydqS1G vi3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WoSPPLB6; 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 c20si1055586oic.113.2020.02.13.06.01.27; Thu, 13 Feb 2020 06:01:43 -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=WoSPPLB6; 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 S1730202AbgBMOBB (ORCPT + 99 others); Thu, 13 Feb 2020 09:01:01 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:44362 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730036AbgBMOBB (ORCPT ); Thu, 13 Feb 2020 09:01:01 -0500 Received: by mail-qk1-f194.google.com with SMTP id v195so5683258qkb.11 for ; Thu, 13 Feb 2020 06:01:00 -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=GwvJtBvLYgXHz2Xkjo28kGnQcGUFvmoCc8Tq+skqxFM=; b=WoSPPLB6quBGtBpRywwrlPUN/efg7Ughe/HaH3khTmKhm8TtRvn1omHwpi/Uje11Nc pJJ434RD5vc6K56AF1flgXq7rGgQL4eIbgy0vNQWX3Ilo6r1XlrPGVcQUkzDZJVdNAqL CQWRmZ6MDJKjdXiViv85LIZth9OYzoQf4NKp2R4S9uMoWLn4jAzJvRHErhw/tberXn1U afxPCPN8yIbn8R73x0dy1qStRMFKKk0TU7EJIVtQo9A5/go6CKtMqKAybDD7f1leMzbr RkHP02AhsZ8v09CuFrX1byfuhGihLXF2U77kvpA2MNTc/JMV0yrMCE7PJN/PnIDh9OCX EVqQ== 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=GwvJtBvLYgXHz2Xkjo28kGnQcGUFvmoCc8Tq+skqxFM=; b=fKKFwfSsDflt2/E4MEl9M/z7OTpAt0nPJGQVqJ1mdFjAFwJXCErO/DzgFO/JeaWfUY t+TdXxlChcjILpxosFBWGzy4BfrMcOovjdTdHcLJ5YApS6gPmrCnmLpcH0QESHkaOhca TwO+/RHXFnIqIuxUwwcwbwzgxiGMEILJY8937EVMnxS6B5lOcPl1drlefrqKglXNuzRC 2PtK4A6VVcofyili/ycUsQulXF7lCGBvg9XKexuuOxhIsoXO6r4H7wcJOHMuMyuJ3FQr huXJ90AcTImgbIRbbAxD/tfrwiPLb5ECtXdJRyzu+nQxkd1h0GLv0Q7Jn+S8jifLdH5V 5UWQ== X-Gm-Message-State: APjAAAWBbIZHXckkTFTBlLzknXqPm1wupSstMBQu/Wlx958pHb0bROgg S+NKfCtXxiM2rJoN8fDSiFhKwoF8nlJAQqAf+jk= X-Received: by 2002:a37:a642:: with SMTP id p63mr16214664qke.85.1581602456914; Thu, 13 Feb 2020 06:00:56 -0800 (PST) MIME-Version: 1.0 References: <20200213012353.26815-1-bibby.hsieh@mediatek.com> <20200213012353.26815-2-bibby.hsieh@mediatek.com> <1581566763.12071.1.camel@mtksdaap41> In-Reply-To: <1581566763.12071.1.camel@mtksdaap41> From: Enric Balletbo Serra Date: Thu, 13 Feb 2020 15:00:45 +0100 Message-ID: Subject: Re: [PATCH 2/2] drm/mediatek: add fb swap in async_update To: CK Hu Cc: Bibby Hsieh , Nicolas Boichat , srv_heupstream , David Airlie , Daniel Vetter , linux-kernel , dri-devel , Tomasz Figa , Thierry Reding , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , Linux ARM 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 Hi, Missatge de CK Hu del dia dj., 13 de febr. 2020 a les 5:06: > > Hi, Bibby: > > On Thu, 2020-02-13 at 09:23 +0800, Bibby Hsieh wrote: > > Besides x, y position, width and height, > > fb also need updating in async update. > > > > Reviewed-by: CK Hu > > > Fixes: 920fffcc8912 ("drm/mediatek: update cursors by using async atomic update") > > > > Signed-off-by: Bibby Hsieh > > --- This patch actually fixes two issues as explained in [1], I send the patch without seeing that another one was already sent. Both do the same thing. So, Tested-by: Enric Balletbo i Serra [1] https://lkml.org/lkml/2020/2/13/286 > > drivers/gpu/drm/mediatek/mtk_drm_plane.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.c b/drivers/gpu/drm/mediatek/mtk_drm_plane.c > > index d32b494ff1de..e084c36fdd8a 100644 > > --- a/drivers/gpu/drm/mediatek/mtk_drm_plane.c > > +++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.c > > @@ -122,6 +122,7 @@ static void mtk_plane_atomic_async_update(struct drm_plane *plane, > > plane->state->src_y = new_state->src_y; > > plane->state->src_h = new_state->src_h; > > plane->state->src_w = new_state->src_w; > > + swap(plane->state->fb, new_state->fb); > > state->pending.async_dirty = true; > > > > mtk_drm_crtc_async_update(new_state->crtc, plane, new_state); > > -- > CK Hu > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel