From: Sachin Kamat <sachin.kamat@linaro.org> To: Tomasz Figa <tomasz.figa@gmail.com> Cc: linux-samsung-soc <linux-samsung-soc@vger.kernel.org>, linux-arm-kernel <linux-arm-kernel@lists.infradead.org>, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, "robh+dt@kernel.org" <robh+dt@kernel.org>, "Tomasz Figa" <t.figa@samsung.com>, "Kukjin Kim" <kgene.kim@samsung.com>, "Arnd Bergmann" <arnd@arndb.de>, "Heiko Stübner" <heiko@sntech.de> Subject: Re: [PATCH v2 1/2] ARM: EXYNOS: Map SYSRAM through generic SRAM bindings Date: Wed, 7 May 2014 09:35:20 +0530 [thread overview] Message-ID: <CAK9yfHwXC1rc71-GiP3JxF2hpQGkA-GVv-1=MT9+GsA+Vq3o4w@mail.gmail.com> (raw) In-Reply-To: <CAK9yfHz6PVT2C-TZkFHqtdj4rT-R8w+aU=jTTnLMF5k4JOXGxg@mail.gmail.com> Hi Tomasz, On 6 May 2014 23:39, Sachin Kamat <sachin.kamat@linaro.org> wrote: > Hi Tomasz, > > On 6 May 2014 22:14, Tomasz Figa <tomasz.figa@gmail.com> wrote: >> Hi Sachin, >> >> Thanks for addressing the comments. I need to verify few things on Universal >> C210 board first, before I could give my Reviewed-by tag or further >> comments. >> >> I also have some general comments that I missed before, due to limited time >> for review. Please see inline. > > Thanks for your review. > >> >> >> On 06.05.2014 10:10, Sachin Kamat wrote: >>> >>> Instead of hardcoding the SYSRAM details for each SoC, >>> pass this information through device tree (DT) and make >>> the code SoC agnostic. Generic SRAM bindings are used >>> for achieving this. >>> >>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> >>> Acked-by: Arnd Bergmann <arnd@arndb.de> >>> Acked-by: Heiko Stuebner <heiko@sntech.de> >>> --- [snip] >>> >>> static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr) >>> { >>> - void __iomem *boot_reg = S5P_VA_SYSRAM_NS + 0x1c + 4*cpu; >>> + void __iomem *boot_reg; >>> + >>> + if (!sram_ns_base_addr) >>> + return 0; >> >> >> Shouldn't this return an error instead? I'm not sure which one would be >> appropriate, though, probably one of -ENODEV, -ENXIO or -EFAULT. > > IIRC, returning error here causes the system to hang and even primary > cpu does not boot. > Since any error or absence of sram nodes should atleast boot the > primary CPU, I thought > this is better. Small correction. The above explanation was for the absence of the check. Sorry about the confusion. Will add -ENODEV here. -- With warm regards, Sachin
WARNING: multiple messages have this Message-ID (diff)
From: sachin.kamat@linaro.org (Sachin Kamat) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/2] ARM: EXYNOS: Map SYSRAM through generic SRAM bindings Date: Wed, 7 May 2014 09:35:20 +0530 [thread overview] Message-ID: <CAK9yfHwXC1rc71-GiP3JxF2hpQGkA-GVv-1=MT9+GsA+Vq3o4w@mail.gmail.com> (raw) In-Reply-To: <CAK9yfHz6PVT2C-TZkFHqtdj4rT-R8w+aU=jTTnLMF5k4JOXGxg@mail.gmail.com> Hi Tomasz, On 6 May 2014 23:39, Sachin Kamat <sachin.kamat@linaro.org> wrote: > Hi Tomasz, > > On 6 May 2014 22:14, Tomasz Figa <tomasz.figa@gmail.com> wrote: >> Hi Sachin, >> >> Thanks for addressing the comments. I need to verify few things on Universal >> C210 board first, before I could give my Reviewed-by tag or further >> comments. >> >> I also have some general comments that I missed before, due to limited time >> for review. Please see inline. > > Thanks for your review. > >> >> >> On 06.05.2014 10:10, Sachin Kamat wrote: >>> >>> Instead of hardcoding the SYSRAM details for each SoC, >>> pass this information through device tree (DT) and make >>> the code SoC agnostic. Generic SRAM bindings are used >>> for achieving this. >>> >>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> >>> Acked-by: Arnd Bergmann <arnd@arndb.de> >>> Acked-by: Heiko Stuebner <heiko@sntech.de> >>> --- [snip] >>> >>> static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr) >>> { >>> - void __iomem *boot_reg = S5P_VA_SYSRAM_NS + 0x1c + 4*cpu; >>> + void __iomem *boot_reg; >>> + >>> + if (!sram_ns_base_addr) >>> + return 0; >> >> >> Shouldn't this return an error instead? I'm not sure which one would be >> appropriate, though, probably one of -ENODEV, -ENXIO or -EFAULT. > > IIRC, returning error here causes the system to hang and even primary > cpu does not boot. > Since any error or absence of sram nodes should atleast boot the > primary CPU, I thought > this is better. Small correction. The above explanation was for the absence of the check. Sorry about the confusion. Will add -ENODEV here. -- With warm regards, Sachin
next prev parent reply other threads:[~2014-05-07 4:05 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-05-06 8:10 [PATCH v2 1/2] ARM: EXYNOS: Map SYSRAM through generic SRAM bindings Sachin Kamat 2014-05-06 8:10 ` Sachin Kamat [not found] ` <1399363824-23543-1-git-send-email-sachin.kamat-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> 2014-05-06 8:10 ` [PATCH v2 2/2] Documentation: DT: Exynos: Bind SRAM though DT Sachin Kamat 2014-05-06 8:10 ` Sachin Kamat 2014-05-06 16:44 ` [PATCH v2 1/2] ARM: EXYNOS: Map SYSRAM through generic SRAM bindings Tomasz Figa 2014-05-06 16:44 ` Tomasz Figa 2014-05-06 18:09 ` Sachin Kamat 2014-05-06 18:09 ` Sachin Kamat 2014-05-07 4:05 ` Sachin Kamat [this message] 2014-05-07 4:05 ` Sachin Kamat 2014-05-07 17:03 ` Tomasz Figa 2014-05-07 17:03 ` Tomasz Figa 2014-05-07 18:26 ` Sachin Kamat 2014-05-07 18:26 ` Sachin Kamat -- strict thread matches above, loose matches on Subject: below -- 2014-05-02 5:06 Sachin Kamat 2014-05-02 5:06 ` Sachin Kamat 2014-05-02 17:54 ` Tomasz Figa 2014-05-02 17:54 ` Tomasz Figa 2014-05-04 15:17 ` Sachin Kamat 2014-05-04 15:17 ` Sachin Kamat
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='CAK9yfHwXC1rc71-GiP3JxF2hpQGkA-GVv-1=MT9+GsA+Vq3o4w@mail.gmail.com' \ --to=sachin.kamat@linaro.org \ --cc=arnd@arndb.de \ --cc=devicetree@vger.kernel.org \ --cc=heiko@sntech.de \ --cc=kgene.kim@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=robh+dt@kernel.org \ --cc=t.figa@samsung.com \ --cc=tomasz.figa@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: linkBe 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.