From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Inderpal Singh <inderpal.singh@linaro.org>
Cc: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>,
Lonsn <lonsn2005@gmail.com>,
linux-samsung-soc@vger.kernel.org, linux-media@vger.kernel.org,
Boojin Kim <boojin.kim@samsung.com>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
Subject: Re: SMDKV210 support issue in kernel 3.8 (dma-pl330 and HDMI failed)
Date: Wed, 27 Feb 2013 12:22:20 +0100 [thread overview]
Message-ID: <512DEC6C.60607@samsung.com> (raw)
In-Reply-To: <CAG17yqQ3d+3Uwpfo+_r0Jwm4TQXcSY-bcW4qRcygzjq=9qXvvA@mail.gmail.com>
On 02/27/2013 11:51 AM, Inderpal Singh wrote:
> On 27 February 2013 02:52, Sylwester Nawrocki
> <sylvester.nawrocki@gmail.com> wrote:
>> On 02/22/2013 01:00 PM, Lonsn wrote:
>>>
>>> Hi,
>>> I have tested the kernel 3.8 with a SMDKV210 like board. But I failed
>>> with dma-pl330 and HDMI driver.
>>> For dma-pl330, kernel print:
>>> dma-pl330 dma-pl330.0: PERIPH_ID 0x0, PCELL_ID 0x0 !
>>> dma-pl330: probe of dma-pl330.0 failed with error -22
>>> dma-pl330 dma-pl330.1: PERIPH_ID 0x0, PCELL_ID 0x0 !
>>> dma-pl330: probe of dma-pl330.1 failed with error -22
>>
>>
>> Maybe there is some issue with the PL330 DMA controller clocks and the
>> read values are all 0 because the clocks are disabled ?
>>
>> It seems arch/arm/mach-s5pv210/clock.c might be missing "apb_pclk" clock
>> supply names, which I suspect may be required after commits:
>>
>> commit 7c71b8eb268ee38235f7e924d943ea9d90e59469
>> Author: Inderpal Singh <inderpal.singh@linaro.org>
>> Date: Fri Sep 7 12:14:48 2012 +0530
>>
>> DMA: PL330: Remove redundant runtime_suspend/resume functions
>>
>> The driver's runtime_suspend/resume functions just disable/enable
>> the clock which is already being managed at AMBA bus level
>> runtime_suspend/resume functions.
>>
>> Hence, remove the driver's runtime_suspend/resume functions.
>>
>> Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
>> Tested-by: Chander Kashyap <chander.kashyap@linaro.org>
>> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
>>
>> commit faf6fbc6f2ca3b34bf464a8bb079a998e571957c
>> Author: Inderpal Singh <inderpal.singh@linaro.org>
>> Date: Fri Sep 7 12:14:47 2012 +0530
>>
>> DMA: PL330: Remove controller clock enable/disable
>>
>> The controller clock is being enabled/disabled in AMBA bus
>> infrastructre in probe/remove functions. Hence, its not required
>> at driver level probe/remove.
>>
>> Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
>> Tested-by: Chander Kashyap <chander.kashyap@linaro.org>
>> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
>>
>> I have added people who made related changes at Cc, hopefully they
>> can provide some help in debugging this.
>>
>
> The mentioned patches just removed the redundant clock enable/disable
> from the driver as clock is already being managed at amba bus level in
> the same code path. As per my understanding the issue should come even
> without these patches.
But were the clocks managed directly by the pl330 driver same as those
managed at amba bus level ? The first patch as above removed chunk
@@ -2887,24 +2884,17 @@ pl330_probe(struct amba_device *adev, const struct
amba_id *id)
goto probe_err1;
}
- pdmac->clk = clk_get(&adev->dev, "dma");
- if (IS_ERR(pdmac->clk)) {
- dev_err(&adev->dev, "Cannot get operation clock.\n");
- ret = -EINVAL;
- goto probe_err2;
- }
-
which suggest the driver was enabling directly "dma" clocks, defined at
S5PV210 platform level as:
{
.name = "dma",
.devname = "dma-pl330.0",
.parent = &clk_hclk_psys.clk,
.enable = s5pv210_clk_ip0_ctrl,
.ctrlbit = (1 << 3),
}, {
.name = "dma",
.devname = "dma-pl330.1",
.parent = &clk_hclk_psys.clk,
.enable = s5pv210_clk_ip0_ctrl,
.ctrlbit = (1 << 4),
}, {
And amba bus was getting only dummy clocks behind "apb_pclk" clock
conn_id.
> @Lonsn: Can you please test without these patches?
I suspect reverting only patch
DMA: PL330: Remove redundant runtime_suspend/resume functions
with PM_RUNTIME enabled might fix the issue.
--
Regards,
Sylwester
WARNING: multiple messages have this Message-ID (diff)
From: s.nawrocki@samsung.com (Sylwester Nawrocki)
To: linux-arm-kernel@lists.infradead.org
Subject: SMDKV210 support issue in kernel 3.8 (dma-pl330 and HDMI failed)
Date: Wed, 27 Feb 2013 12:22:20 +0100 [thread overview]
Message-ID: <512DEC6C.60607@samsung.com> (raw)
In-Reply-To: <CAG17yqQ3d+3Uwpfo+_r0Jwm4TQXcSY-bcW4qRcygzjq=9qXvvA@mail.gmail.com>
On 02/27/2013 11:51 AM, Inderpal Singh wrote:
> On 27 February 2013 02:52, Sylwester Nawrocki
> <sylvester.nawrocki@gmail.com> wrote:
>> On 02/22/2013 01:00 PM, Lonsn wrote:
>>>
>>> Hi,
>>> I have tested the kernel 3.8 with a SMDKV210 like board. But I failed
>>> with dma-pl330 and HDMI driver.
>>> For dma-pl330, kernel print:
>>> dma-pl330 dma-pl330.0: PERIPH_ID 0x0, PCELL_ID 0x0 !
>>> dma-pl330: probe of dma-pl330.0 failed with error -22
>>> dma-pl330 dma-pl330.1: PERIPH_ID 0x0, PCELL_ID 0x0 !
>>> dma-pl330: probe of dma-pl330.1 failed with error -22
>>
>>
>> Maybe there is some issue with the PL330 DMA controller clocks and the
>> read values are all 0 because the clocks are disabled ?
>>
>> It seems arch/arm/mach-s5pv210/clock.c might be missing "apb_pclk" clock
>> supply names, which I suspect may be required after commits:
>>
>> commit 7c71b8eb268ee38235f7e924d943ea9d90e59469
>> Author: Inderpal Singh <inderpal.singh@linaro.org>
>> Date: Fri Sep 7 12:14:48 2012 +0530
>>
>> DMA: PL330: Remove redundant runtime_suspend/resume functions
>>
>> The driver's runtime_suspend/resume functions just disable/enable
>> the clock which is already being managed at AMBA bus level
>> runtime_suspend/resume functions.
>>
>> Hence, remove the driver's runtime_suspend/resume functions.
>>
>> Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
>> Tested-by: Chander Kashyap <chander.kashyap@linaro.org>
>> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
>>
>> commit faf6fbc6f2ca3b34bf464a8bb079a998e571957c
>> Author: Inderpal Singh <inderpal.singh@linaro.org>
>> Date: Fri Sep 7 12:14:47 2012 +0530
>>
>> DMA: PL330: Remove controller clock enable/disable
>>
>> The controller clock is being enabled/disabled in AMBA bus
>> infrastructre in probe/remove functions. Hence, its not required
>> at driver level probe/remove.
>>
>> Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
>> Tested-by: Chander Kashyap <chander.kashyap@linaro.org>
>> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
>>
>> I have added people who made related changes at Cc, hopefully they
>> can provide some help in debugging this.
>>
>
> The mentioned patches just removed the redundant clock enable/disable
> from the driver as clock is already being managed at amba bus level in
> the same code path. As per my understanding the issue should come even
> without these patches.
But were the clocks managed directly by the pl330 driver same as those
managed at amba bus level ? The first patch as above removed chunk
@@ -2887,24 +2884,17 @@ pl330_probe(struct amba_device *adev, const struct
amba_id *id)
goto probe_err1;
}
- pdmac->clk = clk_get(&adev->dev, "dma");
- if (IS_ERR(pdmac->clk)) {
- dev_err(&adev->dev, "Cannot get operation clock.\n");
- ret = -EINVAL;
- goto probe_err2;
- }
-
which suggest the driver was enabling directly "dma" clocks, defined at
S5PV210 platform level as:
{
.name = "dma",
.devname = "dma-pl330.0",
.parent = &clk_hclk_psys.clk,
.enable = s5pv210_clk_ip0_ctrl,
.ctrlbit = (1 << 3),
}, {
.name = "dma",
.devname = "dma-pl330.1",
.parent = &clk_hclk_psys.clk,
.enable = s5pv210_clk_ip0_ctrl,
.ctrlbit = (1 << 4),
}, {
And amba bus was getting only dummy clocks behind "apb_pclk" clock
conn_id.
> @Lonsn: Can you please test without these patches?
I suspect reverting only patch
DMA: PL330: Remove redundant runtime_suspend/resume functions
with PM_RUNTIME enabled might fix the issue.
--
Regards,
Sylwester
next prev parent reply other threads:[~2013-02-27 11:22 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-22 12:00 SMDKV210 support issue in kernel 3.8 (dma-pl330 and HDMI failed) Lonsn
2013-02-26 12:59 ` Lonsn
2013-02-26 12:59 ` Lonsn
2013-02-26 20:07 ` Sylwester Nawrocki
2013-02-26 20:32 ` Sylwester Nawrocki
2013-02-27 15:13 ` Lonsn
2013-02-27 15:48 ` Lonsn
2013-02-27 15:48 ` Lonsn
2013-02-27 21:41 ` Sylwester Nawrocki
2013-02-28 12:28 ` Lonsn
2013-02-28 15:09 ` Lonsn
2013-02-28 15:09 ` Lonsn
2013-02-28 15:54 ` Sylwester Nawrocki
2013-02-26 21:22 ` Sylwester Nawrocki
2013-02-26 21:22 ` Sylwester Nawrocki
2013-02-27 10:51 ` Inderpal Singh
2013-02-27 10:51 ` Inderpal Singh
2013-02-27 11:22 ` Sylwester Nawrocki [this message]
2013-02-27 11:22 ` Sylwester Nawrocki
2013-02-27 15:32 ` Inderpal Singh
2013-02-27 15:32 ` Inderpal Singh
2013-02-27 15:22 ` Lonsn
2013-02-27 15:22 ` Lonsn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=512DEC6C.60607@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=boojin.kim@samsung.com \
--cc=inderpal.singh@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=lonsn2005@gmail.com \
--cc=sylvester.nawrocki@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.