Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1189750

Re: Linux-next, Exynos Octa boot fail, bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible"

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Joonyoung Shim <jy0922.shim@samsung.com>
Newsgroups linux.kernel
Subject Re: Linux-next, Exynos Octa boot fail, bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible"
Date Wed, 22 Jul 2015 10:50:02 +0200
Message-ID <pOXSW-1JX-15@gated-at.bofh.it> (permalink)
References <pOFMn-18q-27@gated-at.bofh.it> <pORDP-1ka-5@gated-at.bofh.it> <pOUin-51h-15@gated-at.bofh.it> <pOXpU-1bI-27@gated-at.bofh.it> <pOXJg-1yo-7@gated-at.bofh.it>
X-Original-To Inki Dae <inki.dae@samsung.com>, Krzysztof Kozlowski <k.kozlowski@samsung.com>, Seung-Woo Kim <sw0312.kim@samsung.com>
X-Auditid cbfee68e-f79c56d000006efb-aa-55af5779a298
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8BIT
User-Agent Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
X-Brightmail-Tracker H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsWyRsSkQLcyfH2owafzAhZXvr5ns5h0fwKL xesXhhb9j18zW5xtesNucXnXHDaLGef3MVmsPXKX3WLG5JdsDpwem1Z1snnc7z7O5NG3ZRWj x+dNcgEsUVw2Kak5mWWpRfp2CVwZGy7fYS84rVTxY/URpgbG1ZJdjJwcEgImEi3bVrJB2GIS F+6tB7K5OIQEljJKNHduZ4MpuvenESoxnVHi65ET7CAJXgFBiR+T77F0MXJwMAuoS0yZkgsS ZhYQkfj8eg0ThK0tsWzha2aI3gdAQ1/0sUH0akjseDUbrJdFQFXi2iE/kDCbgJ7EnW3HwXpF BcIkzszoYAGxRQTqJHqP/ACbwyxwn1GisW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D xSFGAQ5GJR7eCUfXhQqxJpYVV+YeYpTgYFYS4VXmXh8qxJuSWFmVWpQfX1Sak1p8iNEU6LmJ zFKiyfnApJNXEm9obGJmZGlkbmhhZGyuJM57Mt8nVEggPbEkNTs1tSC1CKaPiYNTqoHR7nAv 397zu/T1HXkqX6nZbK04UhM+zVeY/UDjt3ViCqs3WSvdf9WqsU779nIHr1lbtbv/dNT7hl15 cej0oXui4r3Mn77v/RBz8WjQrd0rd9z+f+eG3WOfLOaDeVf3CR7XXfHV8NCMf0J+M2M4y53+ 1Hxwm6y+64DwXB3ub5MmnL66Kn3lUt0XykosxRmJhlrMRcWJAExyZWoCAwAA
Dlp-Filter Pass
X-Mtr 20000000000000000@CPGS
X-Cfilter-Loop Reflected
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 98
Organization linux.* mail to news gateway
X-Original-Cc dri-devel@lists.freedesktop.org, Kyungmin Park <kyungmin.park@samsung.com>, Kukjin Kim <kgene@kernel.org>, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Szyprowski <m.szyprowski@samsung.com>
X-Original-Date Wed, 22 Jul 2015 17:42:39 +0900
X-Original-Message-ID <55AF577F.10606@samsung.com>
X-Original-References <CAJKOXPehvV2jbxaiBmdgj98T59Y5aeK+6px6zTHR9Z=SdTDC8w@mail.gmail.com> <55AEF9AD.6090709@samsung.com> <55AF222F.1060303@samsung.com> <55AF5058.3060106@samsung.com> <55AF52BF.4030201@samsung.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1189750

Show key headers only | View raw


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 <jy0922.shim@samsung.com>
>>>>> 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 <jy0922.shim@samsung.com>
>>>>>     Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
>>>>>     Signed-off-by: Inki Dae <inki.dae@samsung.com>
>>>>>
>>>>> :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.
--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Linux-next, Exynos Octa boot fail,  bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible" Joonyoung Shim <jy0922.shim@samsung.com> - 2015-07-22 10:20 +0200
  Re: Linux-next, Exynos Octa boot fail,  bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible" Inki Dae <inki.dae@samsung.com> - 2015-07-22 10:40 +0200
    Re: Linux-next, Exynos Octa boot fail,  bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible" Joonyoung Shim <jy0922.shim@samsung.com> - 2015-07-22 10:50 +0200
      Re: Linux-next, Exynos Octa boot fail,  bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible" Inki Dae <inki.dae@samsung.com> - 2015-07-24 09:40 +0200

csiph-web