[Sound-open-firmware] [PATCH] arch: xtensa: set SRAM window error codes during bootloader

Ranjani Sridharan ranjani.sridharan at linux.intel.com
Tue Jun 12 05:51:27 CEST 2018


On Mon, 2018-06-11 at 13:10 +0800, Pan, Xiuli wrote:
> 
> On 6/9/2018 03:06, Liam Girdwood wrote:
> > On Fri, 2018-06-08 at 19:42 +0100, Liam Girdwood wrote:
> > > From: Kamil Kulesza <kamil.kulesza at linux.intel.com>
> > > 
> > > Set status (0x05) and error (0x00) code in Memory Window 0 when
> > > the bootloader
> > > starts.
> > > boot_entry.S - set status (0x05) and error (0x00) code before
> > > wnd0 reprogram
> > > platform/memory.h - increase bootloader size
> > > 
> > > Signed-off-by: Kamil Kulesza <kamil.kulesza at linux.intel.com>
> > > ---
> > >   src/arch/xtensa/boot_entry.S                  | 22
> > > +++++++++++++++++++
> > >   .../apollolake/include/platform/memory.h      |  2 +-
> > >   .../cannonlake/include/platform/memory.h      |  2 +-
> > >   3 files changed, 24 insertions(+), 2 deletions(-)
> > > 
> > > 
> 
> This patch seems to be a workaround for the firmware boot up. The
> status 
> (0x05) should be set by the rom.
> With the rmbox and dump data from status registers. It seems all
> memory 
> window is fulled with rodata of the firmware. I think there is some 
> potential bugs for memory window.
> If this is not a bug maybe we need to add memset for memory windows.

Xiuli/Liam/Tomasz,

There is a regression due to the set of the bootloader patches on my up
squared board. The audio is distorted now. 

I reverted these patches and I could hear clean audio. 

Thanks,
Ranjani

> 
> Thanks
> Xiuli
> 
> > Applied.
> > 
> > Thanks
> > 
> > Liam
> > _______________________________________________
> > Sound-open-firmware mailing list
> > Sound-open-firmware at alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/sound-open-firmwar
> > e
> 
> _______________________________________________
> Sound-open-firmware mailing list
> Sound-open-firmware at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/sound-open-firmware


More information about the Sound-open-firmware mailing list