Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933814AbbGVKI5 (ORCPT ); Wed, 22 Jul 2015 06:08:57 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:47484 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933007AbbGVKIx convert rfc822-to-8bit (ORCPT ); Wed, 22 Jul 2015 06:08:53 -0400 X-AuditID: cbfee691-f79ca6d00000456a-5e-55af6bb3a30a MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT Message-id: <55AF6BB3.9000505@samsung.com> Date: Wed, 22 Jul 2015 19:08:51 +0900 From: Inki Dae User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 To: Joonyoung Shim , Krzysztof Kozlowski , Seung-Woo Kim Cc: dri-devel@lists.freedesktop.org, Kyungmin Park , Kukjin Kim , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Szyprowski Subject: Re: Linux-next, Exynos Octa boot fail, bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible" References: <55AEF9AD.6090709@samsung.com> <55AF222F.1060303@samsung.com> <55AF5058.3060106@samsung.com> <55AF52BF.4030201@samsung.com> <55AF577F.10606@samsung.com> In-reply-to: <55AF577F.10606@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsWyRsSkSHdz9vpQg7knBC2ufH3PZvHi3kUW i9cvDC36H79mtjjb9Ibd4vKuOWwWM87vY7JYe+Quu8WMyS/ZHDg9Nq3qZPO4332cyaNvyypG j8+b5AJYorhsUlJzMstSi/TtErgyLi79y1SwWb1izqljrA2MO2S7GDk5JARMJA4sm88EYYtJ XLi3nq2LkYtDSGApo8Sq00uZYYr2n3vCCJFYxCgxYdFiNpAEr4CgxI/J91i6GDk4mAXUJaZM yQUJMwuISFydvowFwtaWWLbwNTNE731GiVvH5kP1ak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E+xYwMq9iFE0tSC4oTkrPNdQrTswtLs1L10vOz93ECI7tZ1I7GFc2WBxi FOBgVOLhnXB0XagQa2JZcWXuIUYJDmYlEV5l7vWhQrwpiZVVqUX58UWlOanFhxhNgb6byCwl mpwPTDt5JfGGxiZmRpZG5oYWRsbmSuK8J/N9QoUE0hNLUrNTUwtSi2D6mDg4pRoYm9X+yyWe iGLL97VfybVit0Od5LefW+5KpC2vuCpQcydZYNptDaXpXt/1xKeoR249erpXQCAqRifo5BsH /mSDJHOzWXz1OlqvxV7NnstYW7yz6oabyo5N7Klts8qVZt16+D9w+4WNB/b8fSbmO3Xa3NzV x+U9NDLSFbZuWmqlyKK2W5DpSu8mJZbijERDLeai4kQA5wzNogMDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5114 Lines: 111 On 2015년 07월 22일 17:42, Joonyoung Shim wrote: > On 07/22/2015 05:22 PM, Inki Dae wrote: >> On 2015년 07월 22일 17:12, Joonyoung Shim wrote: >>> On 07/22/2015 01:55 PM, Inki Dae wrote: >>>> On 2015년 07월 22일 11:02, Joonyoung Shim wrote: >>>>> On 07/21/2015 10:19 PM, Krzysztof Kozlowski wrote: >>>>>> Hi, >>>>>> >>>>>> Today's linux-next (next-20150721) encounters boot failures on Exynos >>>>>> Octa (Exynos5422) based boards. The boards hangs. I bisected it to: >>>>>> >>>>>> d80167b85024982c5f18d0481a5c248100360118 is the first bad commit >>>>>> commit d80167b85024982c5f18d0481a5c248100360118 >>>>>> Author: Joonyoung Shim >>>>>> Date: Thu Jul 2 21:49:39 2015 +0900 >>>>>> >>>>>> drm/exynos: remove drm_iommu_attach_device_if_possible >>>>>> >>>>>> Already drm_iommu_attach_device checks whether support iommu internally. >>>>>> It should clear channels always regardless iommu support. We didn't know >>>>>> because we can detect the problem when iommu is enabled, so we don't >>>>>> have to use drm_iommu_attach_device_if_possible and then we can remove >>>>>> drm_iommu_attach_device_if_possible and clear_channels function pointer. >>>>>> >>>>>> Signed-off-by: Joonyoung Shim >>>>>> Tested-by: Marek Szyprowski >>>>>> Signed-off-by: Inki Dae >>>>>> >>>>>> :040000 040000 83379efbf4960f58d680371628ec04387935bd53 >>>>>> da03c338b88e7cb6bda895b3dd52d78d9b6eba30 M drivers >>>>>> >>>>>> >>>>>> Config: exynos >>>>>> Boot log from Odroid XU3-Lite attached. >>>>>> >>>>>> Any hints or ideas? >>>>> >>>>> The point that hangs is when accesses fimd register in >>>>> fimd_clear_channels function, so i doubt clock setting for fimd. >>>>> >>>>> It's gone something that hangs after i enable gating for ACLK_200_DISP1 >>>>> clock. >>>>> >>>>> If ACLK_200_DISP1 clock needs for fimd really, i'm thinking how can it >>>>> support. Any ideas? >>>> >>>> I think bootloader should have enabled ACLK_200_DISP1 clock and also >>>> device driver should enable all relevant clocks before the device >>>> accesses its own registers. >>>> >>>> Best way would be that the clock is enabled by common clock framework >>>> but it seems there is no anything that the clock framework can do it. So >>>> I think what we have to do is to add the clock support to device tree. >>> >>> It's not easy problem to me. Should we add which clock? I think we >>> cannot control ACLK_200_DISP1 or CLKDIV2_DISP1_BLK directly by below >>> hierarchy, right? Then we should control gate clocks, but we have not >>> controlled any gate clocks using BTS_ prefix. >>> >>> The clock hierarchy from Exynos5422 user manual, >>> ACLK_200_DISP1 -- CLKDIV2_DISP1_BLK -- HDMI LINK >>> HDMI PHY >>> MIC1 >>> DSIM1 >>> DPTX LINK >>> MDNIE1 >>> SYSMMU_MIXER >>> SYSMMU_FIMD1_M0 >>> SYSMMU_FIMD1_M1 >>> BTS_TVM0 >>> BTS_TVM1 >>> BTS_FIMD1_M0 >>> BTS_FIMD1_M1 >>> >>> Other way, IMHO, fimd driver doesn't have to enable ACLK_200_DISP1 clock, >>> just it should be controlled by connector drivers, e.g. dsi, dp because >>> fimd only cannot operate, so dsi or dp must need (Actually i'm not sure >>> about this, just i thought that Exynos5 SoCs don't have any gpios for >>> dpi, so they cannot use dpi, right?). >>> >>> It needs to probe connector driver like dsi or dp earlier than fimd and >>> fimd_bind function should return error if connector driver like dsi or >>> dp was not probed. This is also not easy to me. >> >> In this case, if one of above gate clocks is enabled, the ACLK_200_DISP1 >> should be enabled. So I guess the problem would be due to below line of >> clk-exynos5420.c, >> >> GATE(CLK_FIMD1, "fimd1", "aclk300_disp1", GATE_IP_DISP1, 0, 0, 0), >> >> Can you check it again after modifying it like below?, >> GATE(CLK_FIMD1, "fimd1", "aclk200_disp1", GATE_IP_DISP1, 0, 0, 0), > > No, parent clock of fimd1 gate clock is ACLK_300_DISP1. Yes, I checked just it through exynos5420 and exynos5422 document. I just guessed. So do you mean that aclk200_disp1 affects FIMD controller even though aclk200_disp1 isn't a parent clock of FIMD? If so, it's very strange. > -- > To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/