lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DM8PR02MB8169809493BF2822E6C29EECF3DB9@DM8PR02MB8169.namprd02.prod.outlook.com>
Date:   Tue, 7 Feb 2023 16:40:24 +0000
From:   Vikash Garodia <vgarodia@....qualcomm.com>
To:     Javier Martinez Canillas <javierm@...hat.com>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "mka@...omium.org" <mka@...omium.org>
CC:     Albert Esteve <aesteve@...hat.com>,
        "stanimir.varbanov@...aro.org" <stanimir.varbanov@...aro.org>,
        Matthias Kaehlcke <mka@...omium.org>,
        Enric Balletbo i Serra <eballetb@...hat.com>,
        Andy Gross <agross@...nel.org>,
        Bjorn Andersson <andersson@...nel.org>,
        Konrad Dybcio <konrad.dybcio@...aro.org>,
        Mauro Carvalho Chehab <mchehab@...nel.org>,
        Stanimir Varbanov <stanimir.k.varbanov@...il.com>,
        "Vikash Garodia (QUIC)" <quic_vgarodia@...cinc.com>,
        "linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
        "linux-media@...r.kernel.org" <linux-media@...r.kernel.org>,
        Fritz Koenig <frkoenig@...gle.com>,
        "Dikshita Agarwal (QUIC)" <quic_dikshita@...cinc.com>,
        "Rajeshwar Kurapaty (QUIC)" <quic_rkurapat@...cinc.com>
Subject: RE: [PATCH] Revert "venus: firmware: Correct non-pix start and end
 addresses"

Hi Javier and Matthias,
Can we try the attached patch if that fixes the suspend issue for sc7180 and sc7280 ?

> -----Original Message-----
> From: Javier Martinez Canillas <javierm@...hat.com>
> Sent: Tuesday, February 7, 2023 3:53 PM
> To: linux-kernel@...r.kernel.org
> Cc: Albert Esteve <aesteve@...hat.com>; stanimir.varbanov@...aro.org;
> Matthias Kaehlcke <mka@...omium.org>; Enric Balletbo i Serra
> <eballetb@...hat.com>; Javier Martinez Canillas <javierm@...hat.com>; Andy
> Gross <agross@...nel.org>; Bjorn Andersson <andersson@...nel.org>; Konrad
> Dybcio <konrad.dybcio@...aro.org>; Mauro Carvalho Chehab
> <mchehab@...nel.org>; Stanimir Varbanov
> <stanimir.k.varbanov@...il.com>; Vikash Garodia (QUIC)
> <quic_vgarodia@...cinc.com>; linux-arm-msm@...r.kernel.org; linux-
> media@...r.kernel.org
> Subject: [PATCH] Revert "venus: firmware: Correct non-pix start and end
> addresses"
> 
> WARNING: This email originated from outside of Qualcomm. Please be wary of
> any links or attachments, and do not enable macros.
> 
> This reverts commit a837e5161cfffbb3242cc0eb574f8bf65fd32640, which
> broke probing of the venus driver, at least on the SC7180 SoC HP X2
> Chromebook:
> 
>   [   11.455782] qcom-venus aa00000.video-codec: Adding to iommu group 11
>   [   11.506980] qcom-venus aa00000.video-codec: non legacy binding
>   [   12.143432] qcom-venus aa00000.video-codec: failed to reset venus core
>   [   12.156440] qcom-venus: probe of aa00000.video-codec failed with error -
> 110
> 
> Matthias Kaehlcke also reported that the same change caused a regression in
> SC7180 and sc7280, that prevents AOSS from entering sleep mode during
> system suspend. So let's revert this commit for now to fix both issues.
> 
> Fixes: a837e5161cff ("venus: firmware: Correct non-pix start and end
> addresses")
> Reported-by: Matthias Kaehlcke <mka@...omium.org>
> Signed-off-by: Javier Martinez Canillas <javierm@...hat.com>
> ---
> 
>  drivers/media/platform/qcom/venus/firmware.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/media/platform/qcom/venus/firmware.c
> b/drivers/media/platform/qcom/venus/firmware.c
> index 142d4c74017c..d59ecf776715 100644
> --- a/drivers/media/platform/qcom/venus/firmware.c
> +++ b/drivers/media/platform/qcom/venus/firmware.c
> @@ -38,8 +38,8 @@ static void venus_reset_cpu(struct venus_core *core)
>         writel(fw_size, wrapper_base + WRAPPER_FW_END_ADDR);
>         writel(0, wrapper_base + WRAPPER_CPA_START_ADDR);
>         writel(fw_size, wrapper_base + WRAPPER_CPA_END_ADDR);
> -       writel(0, wrapper_base + WRAPPER_NONPIX_START_ADDR);
> -       writel(0, wrapper_base + WRAPPER_NONPIX_END_ADDR);
> +       writel(fw_size, wrapper_base + WRAPPER_NONPIX_START_ADDR);
> +       writel(fw_size, wrapper_base + WRAPPER_NONPIX_END_ADDR);
> 
>         if (IS_V6(core)) {
>                 /* Bring XTSS out of reset */
> --
> 2.39.1

Thanks,
Vikash

Download attachment "0001-firmware-video-configure-the-secure-and-non-secure-r.patch" of type "application/octet-stream" (2481 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ