From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 07/20] arm: Avoid error messages in cache_v7
Date: Thu, 19 May 2016 17:22:41 +0200 [thread overview]
Message-ID: <573DDA41.5020806@denx.de> (raw)
In-Reply-To: <CAPnjgZ0Sn+vpQF=_5G-M_yfTOeiyURCB2=q1GpSP4STiS=mZQQ@mail.gmail.com>
On 05/19/2016 06:02 AM, Simon Glass wrote:
> Hi Marek,
>
> On 14 May 2016 at 15:41, Marek Vasut <marex@denx.de> wrote:
>> On 05/14/2016 11:22 PM, Simon Glass wrote:
>>> Hi Marek,
>>
>> Hi!
>>
>>> On 14 May 2016 at 14:23, Marek Vasut <marex@denx.de> wrote:
>>>> On 05/14/2016 10:02 PM, Simon Glass wrote:
>>>>> Move these to debug() like the one in check_cache range(), to save SPL space.
>>>>
>>>> This hides cache problems, which were visibly reported so far.
>>>> I am opposed to this patch.
>>>
>>> Sure, but see check_cache_range(). It uses debug(). In fact I found
>>> the at91 cache problem only after trying #define DEBUG in the code
>>> there.
>>
>> Which is the reason we should really be vocal about such cache misuse.
>> I had a few of such cache problems bite me too, which is why I would
>> like to avoid silencing this warning with debug() by default.
>>
>> I think check_cache_range() should also be fixed and should use printf()
>> by default.
>>
>>>>
>>>> Wouldn't it make more sense to completely disable printf() and co.
>>>> in SPL if you're after saving space?
>>>
>>> Or maybe we need something that prints a message in U-Boot proper, but
>>> not SPL? I'll take a look.
>>
>> But what if you trigger the issue only in SPL ?
>
> Yes, but is that likely? So far I don't think the cache is enabled in SPL...
Yeah, it's probably unlikely.
btw have you tried patching away all console IO support in SPL? Does it
save space?
>>
>>>>
>>>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>>>> ---
>>>>>
>>>>> arch/arm/cpu/armv7/cache_v7.c | 8 ++++----
>>>>> 1 file changed, 4 insertions(+), 4 deletions(-)
>>>>>
>>>>> diff --git a/arch/arm/cpu/armv7/cache_v7.c b/arch/arm/cpu/armv7/cache_v7.c
>>>>> index dc309da..68cf62e 100644
>>>>> --- a/arch/arm/cpu/armv7/cache_v7.c
>>>>> +++ b/arch/arm/cpu/armv7/cache_v7.c
>>>>> @@ -66,8 +66,8 @@ static void v7_dcache_inval_range(u32 start, u32 stop, u32 line_len)
>>>>> * invalidate the first cache-line
>>>>> */
>>>>> if (start & (line_len - 1)) {
>>>>> - printf("ERROR: %s - start address is not aligned - 0x%08x\n",
>>>>> - __func__, start);
>>>>> + debug("ERROR: %s - start address is not aligned - 0x%08x\n",
>>>>> + __func__, start);
>>>>> /* move to next cache line */
>>>>> start = (start + line_len - 1) & ~(line_len - 1);
>>>>> }
>>>>> @@ -77,8 +77,8 @@ static void v7_dcache_inval_range(u32 start, u32 stop, u32 line_len)
>>>>> * invalidate the last cache-line
>>>>> */
>>>>> if (stop & (line_len - 1)) {
>>>>> - printf("ERROR: %s - stop address is not aligned - 0x%08x\n",
>>>>> - __func__, stop);
>>>>> + debug("ERROR: %s - stop address is not aligned - 0x%08x\n",
>>>>> + __func__, stop);
>>>>> /* align to the beginning of this cache line */
>>>>> stop &= ~(line_len - 1);
>>>>> }
>
> Regards,
> Simon
>
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2016-05-19 15:22 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-14 20:02 [U-Boot] [PATCH 00/20] dm: rockchip: Move rockchip boards to to use CONFIG_BLK Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 01/20] tiny-printf: Tidy up a few nits Simon Glass
2016-05-16 9:29 ` Stefan Roese
2016-05-27 16:24 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 02/20] tiny-printf: Support snprintf() Simon Glass
2016-05-16 9:31 ` Stefan Roese
2016-05-27 16:24 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 03/20] reset: Drop the reset failure message Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 04/20] mmc: Drop mmc_register() Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 05/20] mmc: Drop dead mmc code for non-generic MMC Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 06/20] mmc: Use byte array for multipliers Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 07/20] arm: Avoid error messages in cache_v7 Simon Glass
2016-05-14 20:23 ` Marek Vasut
2016-05-14 21:22 ` Simon Glass
2016-05-14 21:41 ` Marek Vasut
2016-05-19 4:02 ` Simon Glass
2016-05-19 15:22 ` Marek Vasut [this message]
2016-06-29 3:27 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 08/20] rockchip: Check image name for the rksd image Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 09/20] rockchip: Drop unnecessary SPL properties Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 10/20] rockchip: video: Flush the cache when the display is updated Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 11/20] rockchip: Drop SPL GPIO support for rk3288 Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 12/20] dm: env: mmc: Convert env_mmc to support CONFIG_BLK Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 13/20] dm: mmc: Convert sdhci " Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 14/20] dm: efi: Update for CONFIG_BLK Simon Glass
2016-05-15 8:21 ` Alexander Graf
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 15/20] dm: mmc: spl: Add support " Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 16/20] dm: mmc: dwmmc: Support CONFIG_BLK Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 17/20] dm: rockchip: mmc: Allow use of CONFIG_BLK Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 18/20] dm: mmc: Fix up mmc_bread/bwrite() prototypes for SPL Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 19/20] dm: mmc: Use cfg directly in mmc_bind() Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 20/20] dm: rockchip: Enable CONFIG_BLK Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-25 2:34 ` [U-Boot] [PATCH 00/20] dm: rockchip: Move rockchip boards to to use CONFIG_BLK Simon Glass
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=573DDA41.5020806@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox