Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1473846 > unrolled thread
| Started by | Loic Pallardy <loic.pallardy@st.com> |
|---|---|
| First post | 2016-08-31 23:00 +0200 |
| Last post | 2016-09-08 11:50 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 06/19] remoteproc: core: Add explicit message error if cached table failed Loic Pallardy <loic.pallardy@st.com> - 2016-08-31 23:00 +0200
Re: [PATCH v2 06/19] remoteproc: core: Add explicit message error if cached table failed Lee Jones <lee.jones@linaro.org> - 2016-09-01 09:10 +0200
Re: [PATCH v2 06/19] remoteproc: core: Add explicit message error if cached table failed loic pallardy <loic.pallardy@st.com> - 2016-09-08 11:50 +0200
| From | Loic Pallardy <loic.pallardy@st.com> |
|---|---|
| Date | 2016-08-31 23:00 +0200 |
| Subject | [PATCH v2 06/19] remoteproc: core: Add explicit message error if cached table failed |
| Message-ID | <sckM2-7eb-11@gated-at.bofh.it> |
In rproc_fw_boot, add error message if kmemdump failed
as done for other errors.
Signed-off-by: Loic Pallardy <loic.pallardy@wanadoo.fr>
---
drivers/remoteproc/remoteproc_core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index 96bc8c644..3282a4e 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -1139,8 +1139,10 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw)
* cached_table will be copied into device memory.
*/
rproc->cached_table = kmemdup(table, tablesz, GFP_KERNEL);
- if (!rproc->cached_table)
+ if (!rproc->cached_table) {
+ dev_err(dev, "Failed to create cached table\n");
goto clean_up;
+ }
rproc->table_ptr = rproc->cached_table;
--
1.9.1
[toc] | [next] | [standalone]
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2016-09-01 09:10 +0200 |
| Subject | Re: [PATCH v2 06/19] remoteproc: core: Add explicit message error if cached table failed |
| Message-ID | <scuin-5Pb-49@gated-at.bofh.it> |
| In reply to | #1473846 |
On Wed, 31 Aug 2016, Loic Pallardy wrote:
> In rproc_fw_boot, add error message if kmemdump failed
> as done for other errors.
>
> Signed-off-by: Loic Pallardy <loic.pallardy@wanadoo.fr>
> ---
> drivers/remoteproc/remoteproc_core.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
> index 96bc8c644..3282a4e 100644
> --- a/drivers/remoteproc/remoteproc_core.c
> +++ b/drivers/remoteproc/remoteproc_core.c
> @@ -1139,8 +1139,10 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw)
> * cached_table will be copied into device memory.
> */
> rproc->cached_table = kmemdup(table, tablesz, GFP_KERNEL);
> - if (!rproc->cached_table)
> + if (!rproc->cached_table) {
> + dev_err(dev, "Failed to create cached table\n");
This is an OOM error message, which are not allowed upstream.
I believe if kmemdup() fails, the OOM handler will inform the user.
> goto clean_up;
> + }
>
> rproc->table_ptr = rproc->cached_table;
>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
[toc] | [prev] | [next] | [standalone]
| From | loic pallardy <loic.pallardy@st.com> |
|---|---|
| Date | 2016-09-08 11:50 +0200 |
| Subject | Re: [PATCH v2 06/19] remoteproc: core: Add explicit message error if cached table failed |
| Message-ID | <sf481-44o-3@gated-at.bofh.it> |
| In reply to | #1474116 |
On 09/01/2016 09:09 AM, Lee Jones wrote:
> On Wed, 31 Aug 2016, Loic Pallardy wrote:
>
>> In rproc_fw_boot, add error message if kmemdump failed
>> as done for other errors.
>>
>> Signed-off-by: Loic Pallardy <loic.pallardy@wanadoo.fr>
>> ---
>> drivers/remoteproc/remoteproc_core.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
>> index 96bc8c644..3282a4e 100644
>> --- a/drivers/remoteproc/remoteproc_core.c
>> +++ b/drivers/remoteproc/remoteproc_core.c
>> @@ -1139,8 +1139,10 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw)
>> * cached_table will be copied into device memory.
>> */
>> rproc->cached_table = kmemdup(table, tablesz, GFP_KERNEL);
>> - if (!rproc->cached_table)
>> + if (!rproc->cached_table) {
>> + dev_err(dev, "Failed to create cached table\n");
>
> This is an OOM error message, which are not allowed upstream.
>
> I believe if kmemdup() fails, the OOM handler will inform the user.
Yes true, I'll drop this patch in v2
Regards,
Loic
>
>> goto clean_up;
>> + }
>>
>> rproc->table_ptr = rproc->cached_table;
>>
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web