21 Feb, 2021

3 commits


04 Feb, 2021

2 commits


03 Feb, 2021

1 commit


02 Feb, 2021

1 commit

  • Mailbox driver needs to wait and read all the words in response to a
    SCFW API call, else the protocol gets messed up and results in kernel hang.
    When the responses are longer than 3 words its possible that SCFW will
    take some time to fill up the rest of the words in the MU, a timeout of
    100us is arbritrary and too short. While waiting for Linux to consume the
    first 3 words of the response SCFW can be busy doing other stuff and hence
    Linux needs to wait for the rest of the words.
    Similar restriction applies when writing messages that are longer than
    3 words.
    This patch increases the timeout to 5secs while waiting for response
    or writing long messages to SCFW.

    Signed-off-by: Ranjani Vaidyanathan

    Ranjani Vaidyanathan
     

30 Jan, 2021

4 commits

  • Add a new member jpeg_parse_error in mxc_jpeg_src_buf, to indicate
    an error while parsing the input jpeg stream.
    Do not run the decoder when the source buffer is marked with
    jpeg_parse_error, instead mark both the source and destination
    buffer with VB2_BUF_STATE_ERROR. This will prevent an application
    getting stuck waiting to dequeue the destination buffer.

    Signed-off-by: Mirela Rabulea

    Mirela Rabulea
     
  • End of buffer was not properly detected in case of an invalid
    buffer stream, such as a stream of null bytes, for example.
    This was leading to a kernel oups.
    Let get_byte return type be int, so it can return an error for
    reaching end of stream.

    While at it, replace 0 with NULL, for null pointer initialization.

    Fixes: 36649dec0eb7 ("mxc-jpeg: Fix result independent of operands")
    Signed-off-by: Mirela Rabulea

    Mirela Rabulea
     
  • Clocks are always on when DSP PD is on. Use dummy clocks
    for minimal code impact for now.

    This is similar with the approach on i.MX8QM.

    Signed-off-by: Daniel Baluta

    Daniel Baluta
     
  • This is similar with the refactor for i.MX8MP added in commit
    ba2d283f5d9 ("LF-3026-2 ASoC: SOF: imx8m: Remove internal
    priv->suspended variable").

    Because SOF state machine assumes that even if the DSP wasn't previously
    active at a System resume, will re-load the firmware we need to make sure
    that all needed resources are active.

    Kernel core will take care of enabling the PD, we need to make sure that
    we request the MU channels.

    Signed-off-by: Daniel Baluta

    Daniel Baluta
     

29 Jan, 2021

2 commits

  • For normal case, userspace should call streamon/streamoff balance, but
    for some special case, the process will be killed or terminated and the
    streamoff ioctl will be ignored. So driver need to handle the case.

    Signed-off-by: Guoniu.zhou
    Reviewed-by: Robby Cai

    Guoniu.zhou
     
  • For some tough multi channels test, the default priority of channel0 may
    not be scheduled in 500us so that channel context can't be loaded as the
    below warning, hence sdma channel transfer will be failed. So raise up
    channel0 to the highest one since context load is important to all
    channels. Besides, enlarge 500us to 5ms for safe since many highest channel
    also may run at the same time like asrc/easrc tough test(8 channel run).

    "imx-sdma 30e10000.dma-controller: Timeout waiting for CH0 ready"

    Signed-off-by: Robin Gong
    Reviewed-by: Peng Zhang

    Robin Gong
     

28 Jan, 2021

7 commits


27 Jan, 2021

3 commits


26 Jan, 2021

9 commits


25 Jan, 2021

5 commits


22 Jan, 2021

3 commits