qcom: add firmware files for Adreno A200
PATCH 1/1 qcom: add firmware files for Adreno A200
Add firmware files for Adreno A20x (codenamed yamato), found in Freescale i.MX51/i.MX53 and in some prehistoric Qualcomm Snapdragon SoCs.
The firmware were generated from the header files from EfikaMX kernel sources ([1]), which bear copyright by QUALCOMM Incorporated and have BSD-3-Clause licence.
[1] https://github.com/genesi/linux-legacy/tree/master/drivers/mxc/amd-gpu
---
Note: the following patch needs to be applied to get this firmware to work. It is most likely to find its way into the 6.3 kernel.
https://lore.kernel.org/dri-devel/[email protected]/
--- LICENSE.qcom_yamato | 25 +++++++++++++++++++++++++ WHENCE | 13 +++++++++++++ qcom/yamato_pfp.fw | Bin 0 -> 1156 bytes qcom/yamato_pm4.fw | Bin 0 -> 9220 bytes 4 files changed, 38 insertions(+) create mode 100644 LICENSE.qcom_yamato create mode 100644 qcom/yamato_pfp.fw create mode 100644 qcom/yamato_pm4.fw
LICENSE.qcom_yamato new file +25 -0
@@ -0,0 +1,25 @@ +Copyright (c) 2008-2011, QUALCOMM Incorporated. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of QUALCOMM Incorporated nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE.
WHENCE +13 -0
@@ -5742,6 +5742,19 @@ https://developer.qualcomm.com/hardware/dragonboard-410c/tools -------------------------------------------------------------------------- +Driver: adreno - Qualcomm Adreno GPU firmware + +File: qcom/yamato_pfp.fw +File: qcom/yamato_pm4.fw + +Licence: Redistributable, BSD-3-Clause licence, See LICENSE.qcom_yamato + +Binary files generated from header files in EfikaMX kernel sources. A prefix of +four zero bytes was prepended to make them work with the DRM MSM driver. See +https://github.com/genesi/linux-legacy/tree/master/drivers/mxc/amd-gpu + +-------------------------------------------------------------------------- + Driver: qcom_q6v5_pas - Qualcomm remoteproc firmware File: qcom/apq8096/adsp.mbn
qcom/yamato_pfp.fw new file binary +0 -0
qcom/yamato_pm4.fw new file binary +0 -0
Signature · 1 line
2.39.0
Quoted 9 lines · Dmitry Baryshkov
Add firmware files for Adreno A20x (codenamed yamato), found in Freescale i.MX51/i.MX53 and in some prehistoric Qualcomm Snapdragon SoCs.
The firmware were generated from the header files from EfikaMX kernel sources ([1]), which bear copyright by QUALCOMM Incorporated and have BSD-3-Clause licence.
[1] https://github.com/genesi/linux-legacy/tree/master/drivers/mxc/amd-gpu
For the reference, the same original files are available from CAF:
Signature · 2 lines
With best wishes Dmitry
Quoted 8 lines · Dmitry Baryshkov
Add firmware files for Adreno A20x (codenamed yamato), found in Freescale i.MX51/i.MX53 and in some prehistoric Qualcomm Snapdragon SoCs.
The firmware were generated from the header files from EfikaMX kernel sources ([1]), which bear copyright by QUALCOMM Incorporated and have BSD-3-Clause licence.
How did you generate it?
josh
Quoted 161 lines
[1] https://github.com/genesi/linux-legacy/tree/master/drivers/mxc/amd-gpu
Cc Rob Clark <[email protected]>Cc Jonathan Marek <[email protected]>Cc Fabio Estevam <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>---
Note: the following patch needs to be applied to get this firmware to work. It is most likely to find its way into the 6.3 kernel.
https://lore.kernel.org/dri-devel/[email protected]/
--- LICENSE.qcom_yamato | 25 +++++++++++++++++++++++++ WHENCE | 13 +++++++++++++ qcom/yamato_pfp.fw | Bin 0 -> 1156 bytes qcom/yamato_pm4.fw | Bin 0 -> 9220 bytes 4 files changed, 38 insertions(+) create mode 100644 LICENSE.qcom_yamato create mode 100644 qcom/yamato_pfp.fw create mode 100644 qcom/yamato_pm4.fwLICENSE.qcom_yamato new file +25
-0@@ -0,0 +1,25 @@ +Copyright (c) 2008-2011, QUALCOMM Incorporated. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of QUALCOMM Incorporated nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE.WHENCE +13
-0@@ -5742,6 +5742,19 @@ https://developer.qualcomm.com/hardware/dragonboard-410c/tools -------------------------------------------------------------------------- +Driver: adreno - Qualcomm Adreno GPU firmware + +File: qcom/yamato_pfp.fw +File: qcom/yamato_pm4.fw + +Licence: Redistributable, BSD-3-Clause licence, See LICENSE.qcom_yamato + +Binary files generated from header files in EfikaMX kernel sources. A prefix of +four zero bytes was prepended to make them work with the DRM MSM driver. See +https://github.com/genesi/linux-legacy/tree/master/drivers/mxc/amd-gpu + +-------------------------------------------------------------------------- + Driver: qcom_q6v5_pas - Qualcomm remoteproc firmware File: qcom/apq8096/adsp.mbnqcom/yamato_pfp.fw new file binary +0
-0qcom/yamato_pm4.fw new file binary +0
-1--2.39.0
Quoted 7 lines · Josh Boyer
Quoted 5 lines · Dmitry Baryshkov
Add firmware files for Adreno A20x (codenamed yamato), found in Freescale i.MX51/i.MX53 and in some prehistoric Qualcomm Snapdragon SoCs.
Quoted 5 lines
Quoted 3 lines
The firmware were generated from the header files from EfikaMX kernel sources ([1]), which bear copyright by QUALCOMM Incorporated and have BSD-3-Clause licence.
How did you generate it?
I hope you don't mind putting the program here.
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (C) 2022 Linaro Ltd.
* Author: Dmitry Baryshkov
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
typedef uint32_t uint32;
#include "pm4_microcode.inl"
#include "pfp_microcode_nrt.inl"
int dump(const char *name, uint32_t *data, size_t n)
{
FILE *f;
int ret;
uint32_t zero = 0;
f = fopen(name, "w");
if (!f) {
fprintf(stderr, "fopen: %s: %s\n", name, strerror(errno));
return 1;
}
if (fwrite(&zero, 4, 1, f) != 1) {
fprintf(stderr, "error writing data\n");
fclose(f);
unlink(name);
return 1;
}
ret = fwrite(data, 4, n, f);
if (ret != n) {
fprintf(stderr, "error writing data\n");
fclose(f);
unlink(name);
return 1;
}
fclose(f);
return 0;
}int main(int argc, char **argv)
{
if (argc != 3) {
fprintf(stderr, "Usage: %s <pfp> <pm4>\n", argv[0]);
return 1;
}
if (dump(argv[1], aPFP_Microcode_nrt, PFP_MICROCODE_SIZE_NRT))
return 1;
if (dump(argv[2], &aPM4_Microcode[0][0], PM4_MICROCODE_SIZE * 3))
return 1;
return 0;
}Quoted 76 lines
josh
Quoted 73 lines
[1] https://github.com/genesi/linux-legacy/tree/master/drivers/mxc/amd-gpu
Cc Rob Clark <[email protected]>Cc Jonathan Marek <[email protected]>Cc Fabio Estevam <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>---
Note: the following patch needs to be applied to get this firmware to work. It is most likely to find its way into the 6.3 kernel.
https://lore.kernel.org/dri-devel/[email protected]/
--- LICENSE.qcom_yamato | 25 +++++++++++++++++++++++++ WHENCE | 13 +++++++++++++ qcom/yamato_pfp.fw | Bin 0 -> 1156 bytes qcom/yamato_pm4.fw | Bin 0 -> 9220 bytes 4 files changed, 38 insertions(+)create mode 100644 LICENSE.qcom_yamato
create mode 100644 qcom/yamato_pfp.fw
create mode 100644 qcom/yamato_pm4.fwLICENSE.qcom_yamato new file +25
-0@@ -0,0 +1,25 @@ +Copyright (c) 2008-2011, QUALCOMM Incorporated. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of QUALCOMM Incorporated nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE.WHENCE +11
-0@@ -5742,6 +5742,19 @@ https://developer.qualcomm.com/hardware/dragonboard-410c/tools -------------------------------------------------------------------------- +Driver: adreno - Qualcomm Adreno GPU firmware + +File: qcom/yamato_pfp.fw +File: qcom/yamato_pm4.fw + +Licence: Redistributable, BSD-3-Clause licence, See LICENSE.qcom_yamato + +Binary files generated from header files in EfikaMX kernel sources. A prefix of +four zero bytes was prepended to make them work with the DRM MSM driver. See +https://github.com/genesi/linux-legacy/tree/master/drivers/mxc/amd-gpu +
Signature · 2 lines
With best wishes Dmitry
Quoted 9 lines · Dmitry Baryshkov
Quoted 7 lines · Josh Boyer
Quoted 5 lines · Dmitry Baryshkov
Add firmware files for Adreno A20x (codenamed yamato), found in Freescale i.MX51/i.MX53 and in some prehistoric Qualcomm Snapdragon SoCs.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
The firmware were generated from the header files from EfikaMX kernel sources ([1]), which bear copyright by QUALCOMM Incorporated and have BSD-3-Clause licence.
How did you generate it?
I hope you don't mind putting the program here.
Not at all. Thanks. Patch applied and pushed out.
josh
Quoted 149 lines
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (C) 2022 Linaro Ltd.
* Author: Dmitry Baryshkov
*/#include <
stdio.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>typedef
uint32_tuint32;#include "pm4_microcode.inl"
#include "pfp_microcode_nrt.inl"int
dump(const char *name, uint32_t *data, size_t n){ FILE *f; int ret; uint32_t zero = 0; f = fopen(name, "w"); if (!f) { fprintf(stderr, "fopen: %s: %s\n", name, strerror(errno)); return 1; } if (fwrite(&zero, 4, 1, f) != 1) { fprintf(stderr, "error writing data\n"); fclose(f); unlink(name); return 1; } ret = fwrite(data, 4, n, f); if (ret != n) { fprintf(stderr, "error writing data\n"); fclose(f); unlink(name); return 1; } fclose(f); return 0; }int
main(int argc, char **argv)
{if (argc != 3) { fprintf(stderr, "Usage: %s <pfp> <pm4>\n", argv[0]); return 1; } if (dump(argv[1], aPFP_Microcode_nrt, PFP_MICROCODE_SIZE_NRT)) return 1; if (dump(argv[2], &aPM4_Microcode[0][0], PM4_MICROCODE_SIZE * 3)) return 1; return 0; }Quoted 65 lines
josh
Quoted 62 lines
[1] https://github.com/genesi/linux-legacy/tree/master/drivers/mxc/amd-gpu
Cc Rob Clark <[email protected]>Cc Jonathan Marek <[email protected]>Cc Fabio Estevam <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>---
Note: the following patch needs to be applied to get this firmware to work. It is most likely to find its way into the 6.3 kernel.
https://lore.kernel.org/dri-devel/[email protected]/
--- LICENSE.qcom_yamato | 25 +++++++++++++++++++++++++ WHENCE | 13 +++++++++++++ qcom/yamato_pfp.fw | Bin 0 -> 1156 bytes qcom/yamato_pm4.fw | Bin 0 -> 9220 bytes 4 files changed, 38 insertions(+)create mode 100644 LICENSE.qcom_yamato
create mode 100644 qcom/yamato_pfp.fw
create mode 100644 qcom/yamato_pm4.fwLICENSE.qcom_yamato new file +25
-0@@ -0,0 +1,25 @@ +Copyright (c) 2008-2011, QUALCOMM Incorporated. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of QUALCOMM Incorporated nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE.WHENCE +0
-0@@ -5742,6 +5742,19 @@ https://developer.qualcomm.com/hardware/dragonboard-410c/tools --------------------------------------------------------------------------Quoted 11 lines
WHENCE https://developer.qualcomm.com/hardware/dragonboard-410c/tools · line 5755
Quoted 11 lines
WHENCE +11
-0+Driver: adreno - Qualcomm Adreno GPU firmware + +File: qcom/yamato_pfp.fw +File: qcom/yamato_pm4.fw + +Licence: Redistributable, BSD-3-Clause licence, See LICENSE.qcom_yamato + +Binary files generated from header files in EfikaMX kernel sources. A prefix of +four zero bytes was prepended to make them work with the DRM MSM driver. See +https://github.com/genesi/linux-legacy/tree/master/drivers/mxc/amd-gpu +--
With best wishes
Dmitry
Quoted 16 lines · Josh Boyer
Quoted 13 lines · Dmitry Baryshkov
Quoted 11 lines · Josh Boyer
Quoted 8 lines · Dmitry Baryshkov
Add firmware files for Adreno A20x (codenamed yamato), found in Freescale i.MX51/i.MX53 and in some prehistoric Qualcomm Snapdragon SoCs.
The firmware were generated from the header files from EfikaMX kernel sources ([1]), which bear copyright by QUALCOMM Incorporated and have BSD-3-Clause licence.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
How did you generate it?
I hope you don't mind putting the program here.
Not at all. Thanks. Patch applied and pushed out.
Thank you!
Signature · 2 lines
With best wishes Dmitry