Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2525979pxb; Tue, 21 Sep 2021 01:38:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgdpf11N6BAkBSkT/8cYerf1h8mr9lVj0ghKartFpyo2HLWDdGSjJ6dL7HQ9AMEsaID/be X-Received: by 2002:a6b:cd01:: with SMTP id d1mr19221311iog.88.1632213528382; Tue, 21 Sep 2021 01:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632213528; cv=none; d=google.com; s=arc-20160816; b=p6h+rObt3jlg2OSmcdOSyLf+0H+rjluCmhLHbJVs62k1TsG9avQ5uCi/t4bwihSsy1 JluxJwo0yrsOLIf30icgGsfaMoaQT/ltygiZoFqZc+7do3kUNmfjML886VVNOptc9JkW sWhDcCBRO717aYOS4k2vFguHH2fpVHA59FkeHIQbUMWlW1UZcURjIyZpb1rX8WGnxoA3 rtTE2iDGg8QNYLBT3hK+khiNVv4qzNKvKRvDKdz6KivAX9swGc04/PtqP3wBc7bDVjuV 9RDV9jSwZwzwtvLh787kCgfrnd0lGIxfSahE4ESgdmdY3OZhsCc7wKoGYXmN+ub0Zuon g8eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bg3GdEDta4alq5EcpFnKMHpnaJigutsFTYZs6RKXRos=; b=Hw0Lfp+JQnJ70gBFMgwRh8s/dWLC5O6ONIPigsUHdrxH2cYEIvRh62jke65dZwiqLP W41bKz+6z7mc+z/0mPQ7tYpbjTj5GRFNxrx7UktX0N+f4Vxl2KfaPsW1w5udXKZGFjxQ lJtD+/hVeb2SSz2iVgVFEDY0e8GmFF2mRXTML1fuhosGJe+//xooG7gvmprGKFMLI1O9 5kgBzaMbmTFtzrQqr6M1fYs9L2ubefUF+cWXpzKfPm3HJcYRPkOKCZNRZ9IEAgoB3bWZ XdT7In+eMfm7NM5uCx1U5MupnJm7qiMdOZ1WdaGiwMt7FmbvWmQag5t6oqXRsbOmPv8D MW0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZcFBBgvc; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si16711727jak.129.2021.09.21.01.38.36; Tue, 21 Sep 2021 01:38:48 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZcFBBgvc; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231222AbhIUIiV (ORCPT + 99 others); Tue, 21 Sep 2021 04:38:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230497AbhIUIiU (ORCPT ); Tue, 21 Sep 2021 04:38:20 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 489FAC061574 for ; Tue, 21 Sep 2021 01:36:52 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id a3so3829658oid.6 for ; Tue, 21 Sep 2021 01:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=bg3GdEDta4alq5EcpFnKMHpnaJigutsFTYZs6RKXRos=; b=ZcFBBgvctstgt5BhYORG28cC2JeYUdHavEY11rLRXIZvTkm8Yu5uJVKhUXDjwFImiZ r/axHGTlAB+yxUTSTbKqOhuVqpsHspq+986dff4TH6985kUVPib7cXfSjIB+G7pVNBzn dMtirIg9a9z4Cg58clgML0lnqbFg9H7GuwArqrNOEowK0V+S3oN75xO8adhAugIfY4Uj 2QXgCUbmQGJ2KqCwDfSscJiIn/MWaqf7s69HTZlNS1Eq4zO10K3NSaHZzNYjQ9O4ASoF K7VirpStOPOKGScn4nNYRoG2AC6YuDVoR6wEf57DeA0h8DQsGJeKqCQdY+nBxCw55Aey IMTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=bg3GdEDta4alq5EcpFnKMHpnaJigutsFTYZs6RKXRos=; b=UGmqct8cLZR8+1T7UqJiwL8wjKNP1NxzvN4I1EwIpkoJDOuSnQ7lFgUgJxSGmtFqz/ MZpnyH+7tZU6aq9MFS8quxWkbPI2zoJKbAY6SiehjGZO0JdWqUFnjCnBurmskGKwy396 3KuxFo7V/6Fs/aun74XARHJ3TAZHKL2t7UsuhJtmdhgqWiKCBMRG/3rdMDoksZCJndJX cnDK89IX1X6WAq0LHM2L9Mexs3Bto+/Y0xRTogBOulGWuJ1uaJjpflHEvVOXHbjE10pb w97Uw9fCKNN3dZgBEr9cMjkpEEMCP8a7r9jglWnTEuM0/9GLg6wU7fSFTsNsWO2sc7t/ 4/IQ== X-Gm-Message-State: AOAM53183ZdWsw0bzxQdzhxL+DuF0ENL3UOc8U/oASbmYSgONkbIJEdB d7HWAnSYUAC0pc6sU6TgHsqR/uNddbV95VLNAtw= X-Received: by 2002:aca:210d:: with SMTP id 13mr2651010oiz.47.1632213411694; Tue, 21 Sep 2021 01:36:51 -0700 (PDT) MIME-Version: 1.0 References: <20210808234733.14782-1-chunkuang.hu@kernel.org> In-Reply-To: From: Enric Balletbo Serra Date: Tue, 21 Sep 2021 10:36:39 +0200 Message-ID: Subject: Re: [PATCH v2 0/4] CMDQ refinement of Mediatek DRM driver To: Chun-Kuang Hu Cc: Philipp Zabel , David Airlie , Daniel Vetter , Yongqiang Niu , linux-kernel , DRI Development , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chun-Kuang, (again without html format, sorry for the noise) Missatge de Chun-Kuang Hu del dia dj., 12 d=E2=80=99ag. 2021 a les 2:13: > > Chun-Kuang Hu =E6=96=BC 2021=E5=B9=B48=E6=9C=88= 9=E6=97=A5 =E9=80=B1=E4=B8=80 =E4=B8=8A=E5=8D=887:47=E5=AF=AB=E9=81=93=EF= =BC=9A > > > > These refinements include using standard mailbox callback interface, > > timeout detection, and a fixed cmdq_handle. > > For this series, applied to mediatek-drm-next [1]. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.gi= t/log/?h=3Dmediatek-drm-next > These patches seem to break the display on the Acer Chromebook R 13 (MT8173) in the current mainline. After running a bisection it pointed me to the following commit commit f4be17cd5b14dd73545b0e014a63ebe9ab5ef837 Author: Chun-Kuang Hu Date: Sun Jul 4 15:36:48 2021 +0800 drm/mediatek: Remove struct cmdq_client Reverting this patch alone is not trivial, so I ended up reverting the full series, and I can confirm that reverting the full series makes the display work again. Unfortunately, after the merge window, different things broke for this device, and I didn't finish isolating them, and it is not clear to me yet whether the logs I'm getting are useful for this specific issue or not. Basically with this series merged the kernel seems to be stuck, and the display is not working. Latest message is [ 12.329173] mtk-iommu 10205000.iommu: Partial TLB flush timed out, falling back to full flush Without the series, the kernel goes far and display works, however there are other issues affecting the cros-ec, but I think that's another issue. I'll try to dig a bit more, but, meanwhile, if you have any idea please let me know. Thanks, Enric > Regards, > Chun-Kuang. > > > > > Changes in v2: > > 1. Define mtk_drm_cmdq_pkt_create() and mtk_drm_cmdq_pkt_destroy() > > when CONFIG_MTK_CMDQ is reachable. > > > > Chun-Kuang Hu (4): > > drm/mediatek: Use mailbox rx_callback instead of cmdq_task_cb > > drm/mediatek: Remove struct cmdq_client > > drm/mediatek: Detect CMDQ execution timeout > > drm/mediatek: Add cmdq_handle in mtk_crtc > > > > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 110 ++++++++++++++++++++---- > > 1 file changed, 91 insertions(+), 19 deletions(-) > > > > -- > > 2.25.1 > >