coresight: etb: Remove simple announcement message
PATCH 1/1 coresight: etb: Remove simple announcement message
It's generally preferred that drivers not print initialisation messages on startup that don't contain information gained at runtime such as specific hardware revision information. This provides a small speedup on systems with serial consoles and keeps the boot less noisy.
--- drivers/hwtracing/coresight/coresight-etb10.c | 1 - 1 file changed, 1 deletion(-)
drivers/hwtracing/coresight/coresight-etb10.c +0 -1
@@ -481,7 +481,6 @@ static int etb_probe(struct amba_device *adev, const struct amba_id *id)if (ret) goto err_misc_register; -dev_info (dev,"ETB initialized\n" );return 0 ; err_misc_register:
Signature · 1 line
2.7.0
PATCH 1/1 coresight: etb: Remove simple announcement message
Quoted 15 lines · Mark Brown
It's generally preferred that drivers not print initialisation messages on startup that don't contain information gained at runtime such as specific hardware revision information. This provides a small speedup on systems with serial consoles and keeps the boot less noisy.
Signed-off-by Mark Brown <[email protected]>--- drivers/hwtracing/coresight/coresight-etb10.c | 1 - 1 file changed, 1 deletion(-)drivers/hwtracing/coresight/coresight-etb10.c +0
-0
drivers/hwtracing/coresight/coresight-etb10.c static int etb_probe(struct amba_device *adev, const struct amba_id *id) · line 484
Quoted 5 lines
drivers/hwtracing/coresight/coresight-etb10.c +0
-1@@ -481,7 +481,6 @@ static int etb_probe(struct amba_device *adev, const struct amba_id *id)if (ret) goto err_misc_register; -dev_info (dev,"ETB initialized\n" );return 0 ;
Didn't we touch base on that topic before? I'm not against moving forward with this but it has to be all or nothing - whether we remove all the CS boot log message or they all stay. Otherwise people could mistakenly come to the conclusion that some of the CS components did not boot properly.
ETB, funnel and TMCs don't output any useful HW related information but tracers (ETMv3, PTM and ETMv4) actually do.
People concerned about boot time will definitely set their loglevel accordingly on the kernel cmd line. Otherwise we are likely talking about developers interested in knowing what happened when their kernel booted.
Thanks,
Mathieu
Quoted 5 lines
drivers/hwtracing/coresight/coresight-etb10.c +0
-1err_misc_register: --2.7.0
PATCH 1/1 coresight: etb: Remove simple announcement message
Quoted 6 lines · Mathieu Poirier
Quoted 2 lines · Mark Brown
- dev_info(dev, "ETB initialized\n"); return 0;Didn't we touch base on that topic before? I'm not against moving
We did and you said that there was a patch pending which would change it to print something useful but the patch still applies so I guess that didn't happen.
Quoted 7 lines
forward with this but it has to be all or nothing - whether we remove all the CS boot log message or they all stay. Otherwise people could mistakenly come to the conclusion that some of the CS components did not boot properly.
ETB, funnel and TMCs don't output any useful HW related information but tracers (ETMv3, PTM and ETMv4) actually do.
I think people are familiar enough with the general policy on this stuff to be able to cope with this, it's certainly not something that's ever come up with ASoC where we do have a similar multi-device structure.
Quoted 4 lines
People concerned about boot time will definitely set their loglevel accordingly on the kernel cmd line. Otherwise we are likely talking about developers interested in knowing what happened when their kernel booted.
That applies equally to all drivers so from that point of view we should
be doing something in the driver core - there is actually some logging
there that can be enabled, though it's not that widely used.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160212/4aa128c5/attachment.sig>
PATCH 1/1 coresight: etb: Remove simple announcement message
Quoted 17 lines · Mark Brown
Quoted 6 lines · Mathieu Poirier
Quoted 2 lines · Mark Brown
- dev_info(dev, "ETB initialized\n"); return 0;Didn't we touch base on that topic before? I'm not against moving
We did and you said that there was a patch pending which would change it to print something useful but the patch still applies so I guess that didn't happen.
Quoted 4 lines
forward with this but it has to be all or nothing - whether we remove all the CS boot log message or they all stay. Otherwise people could mistakenly come to the conclusion that some of the CS components did not boot properly.
Quoted 6 lines
Quoted 2 lines
ETB, funnel and TMCs don't output any useful HW related information but tracers (ETMv3, PTM and ETMv4) actually do.
I think people are familiar enough with the general policy on this stuff to be able to cope with this, it's certainly not something that's ever come up with ASoC where we do have a similar multi-device structure.
Ok - please send me another patch that removes the boot log messages for the TMC, funnel and TPIU drivers. That way only the tracers (ETMv3/4) get to keep their boot logs.
Thanks,
Mathieu
Quoted 9 lines
Quoted 5 lines
People concerned about boot time will definitely set their loglevel accordingly on the kernel cmd line. Otherwise we are likely talking about developers interested in knowing what happened when their kernel booted.
That applies equally to all drivers so from that point of view we should be doing something in the driver core - there is actually some logging there that can be enabled, though it's not that widely used.