Skip to contentSkip to conversation

s5p-mfc: Add s5p-mfc-v6-v2 firmware

PATCH Ben Hutchings 3 participants 8 messages Jun 3, 2014 – Jun 15, 2014 2 messages not in the archive Arm Samsung Exynos

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Ben Hutchings

author Applied
#1 lore raw
Quoted 10 lines · Arun Kumar K

This is the newer version of mfc-v6 firmware which can be used in exynos5250 based boards. This has many bug fixes and enhancements. To maintain backward compatibility, the older firmware file is still retained and the new file is added with the name s5p-mfc-v6-v2.fw. This new firmware handling is supported with the below patches in s5p-mfc driver:
s5p-mfc: Support multiple firmware sub-versions
s5p-mfc: Add init buffer cmd to MFCV6

Quoted 8 lines

---
Changes from v1
- Made into a new file instead of upgrading old v6 firmware

---
 WHENCE                   |    7 ++++---
 s5p-mfc/s5p-mfc-v6-v2.fw |  Bin 0 -> 343756 bytes
 2 files changed, 4 insertions(+), 3 deletions(-)
 create mode 100644 s5p-mfc/s5p-mfc-v6-v2.fw

[...]

Applied, thanks.

Ben.

Signature · 2 lines
Ben Hutchings
If more than one person is responsible for a bug, no one is at fault.

A message that is not in the archive (sent off-list or not yet received): [email protected]

author Applied
#3 lore raw

Re: [PATCH v2 2/2] s5p-mfc: Adding MFC v7 and v8 firmwares

Quoted 8 lines · Arun Kumar K

Adding the following firmware files for MFC
s5p-mfc-v7.fw: Used in exynos 5420
s5p-mfc-v8.fw: Used in exynos 5800

---
Changes from v1
- None

Quoted 7 lines
---
 WHENCE                |    2 ++
 s5p-mfc/s5p-mfc-v7.fw |  Bin 0 -> 382724 bytes
 s5p-mfc/s5p-mfc-v8.fw |  Bin 0 -> 360576 bytes
 3 files changed, 2 insertions(+)
 create mode 100644 s5p-mfc/s5p-mfc-v7.fw
 create mode 100644 s5p-mfc/s5p-mfc-v8.fw

[...]

Applied, thanks.

Ben.

Signature · 2 lines
Ben Hutchings
If more than one person is responsible for a bug, no one is at fault.
#4 lore raw

Re: [PATCH v2 2/2] s5p-mfc: Adding MFC v7 and v8 firmwares

Quoted 16 lines · Ben Hutchings
Quoted 8 lines · Arun Kumar K

Adding the following firmware files for MFC
s5p-mfc-v7.fw: Used in exynos 5420
s5p-mfc-v8.fw: Used in exynos 5800

---
Changes from v1
- None

Quoted 7 lines
---
 WHENCE                |    2 ++
 s5p-mfc/s5p-mfc-v7.fw |  Bin 0 -> 382724 bytes
 s5p-mfc/s5p-mfc-v8.fw |  Bin 0 -> 360576 bytes
 3 files changed, 2 insertions(+)
 create mode 100644 s5p-mfc/s5p-mfc-v7.fw
 create mode 100644 s5p-mfc/s5p-mfc-v8.fw
Quoted 3 lines

[...]

Applied, thanks.

Just noticed a problem with all the s5p-mfc firmware: you are putting it in the s5p-mfc subdirectory, so distribution packages will install them in /lib/firmware/s5p-mfc. However, unless I'm mistaken your driver requests it with a bare filename (e.g. "s5p-mfc-v7.fw") so it won't be found.

Ben.

Signature · 2 lines
Ben Hutchings
Experience is what causes a person to make new mistakes instead of old ones.
#5 lore raw

Re: [PATCH v2 2/2] s5p-mfc: Adding MFC v7 and v8 firmwares

Hi Ben,

Quoted 19 lines · Ben Hutchings
Quoted 18 lines · Ben Hutchings
Quoted 15 lines · Arun Kumar K

Adding the following firmware files for MFC
s5p-mfc-v7.fw: Used in exynos 5420
s5p-mfc-v8.fw: Used in exynos 5800

---
Changes from v1
- None

---
 WHENCE                |    2 ++
 s5p-mfc/s5p-mfc-v7.fw |  Bin 0 -> 382724 bytes
 s5p-mfc/s5p-mfc-v8.fw |  Bin 0 -> 360576 bytes
 3 files changed, 2 insertions(+)
 create mode 100644 s5p-mfc/s5p-mfc-v7.fw
 create mode 100644 s5p-mfc/s5p-mfc-v8.fw

[...]

Quoted 8 lines
Quoted 1 line

Applied, thanks.

Just noticed a problem with all the s5p-mfc firmware: you are putting it in the s5p-mfc subdirectory, so distribution packages will install them in /lib/firmware/s5p-mfc. However, unless I'm mistaken your driver requests it with a bare filename (e.g. "s5p-mfc-v7.fw") so it won't be found.

Yes this issue is there.
Kamil, are you ok with changing the fw load path to s5p-mfc/s5p-mfc*.fw in the driver?

Regards
Arun

Quoted 5 lines

Ben.

--
Ben Hutchings
Experience is what causes a person to make new mistakes instead of old ones.

#6 lore raw

RE: [PATCH v2 2/2] s5p-mfc: Adding MFC v7 and v8 firmwares

Hi Arun, Ben,

Quoted 36 lines

From: [email protected] [mailto:[email protected]] On Behalf Of Arun Kumar K
Sent: Wednesday, June 04, 2014 7:32 AM

Hi Ben,

Quoted 19 lines · Ben Hutchings
Quoted 18 lines · Ben Hutchings
Quoted 15 lines · Arun Kumar K

Adding the following firmware files for MFC
s5p-mfc-v7.fw: Used in exynos 5420
s5p-mfc-v8.fw: Used in exynos 5800

---
Changes from v1
- None

---
 WHENCE                |    2 ++
 s5p-mfc/s5p-mfc-v7.fw |  Bin 0 -> 382724 bytes
s5p-mfc/s5p-mfc-v8.fw |  Bin 0 -> 360576 bytes
 3 files changed, 2 insertions(+)
 create mode 100644 s5p-mfc/s5p-mfc-v7.fw  create mode 100644

s5p-mfc/s5p-mfc-v8.fw

[...]

Quoted 8 lines
Quoted 1 line

Applied, thanks.

Just noticed a problem with all the s5p-mfc firmware: you are putting it in the s5p-mfc subdirectory, so distribution packages will install them in /lib/firmware/s5p-mfc. However, unless I'm mistaken your driver requests it with a bare filename (e.g. "s5p-mfc-v7.fw") so it won't be found.

Quoted 3 lines

Yes this issue is there.
Kamil, are you ok with changing the fw load path to s5p-mfc/s5p-mfc*.fw in the driver?

We have two options here:
1) Change the driver to request s5p-mfc/sp5-mfc-fw*
2) Move the files in the firmware repository

I would opt for the second option. The driver was uploaded before the firmware. I see that there are many firmware files in the root folder of the repository

Ben, what is your opinion? Which is preferred: creating subdirectories or storing firmware in the root folder?

Best wishes,

Signature · 2 lines
Kamil Debski
Samsung R&D Institute Poland
Quoted 10 lines

Regards
Arun

Quoted 5 lines

Ben.

--
Ben Hutchings
Experience is what causes a person to make new mistakes instead of

old ones.

#7 lore raw

Re: [PATCH v2 2/2] s5p-mfc: Adding MFC v7 and v8 firmwares

Quoted 47 lines · Kamil Debski

Hi Arun, Ben,

Quoted 36 lines

From: [email protected] [mailto:[email protected]] On Behalf Of Arun Kumar K
Sent: Wednesday, June 04, 2014 7:32 AM

Hi Ben,

Quoted 19 lines · Ben Hutchings
Quoted 18 lines · Ben Hutchings
Quoted 15 lines · Arun Kumar K

Adding the following firmware files for MFC
s5p-mfc-v7.fw: Used in exynos 5420
s5p-mfc-v8.fw: Used in exynos 5800

---
Changes from v1
- None

---
 WHENCE                |    2 ++
 s5p-mfc/s5p-mfc-v7.fw |  Bin 0 -> 382724 bytes
s5p-mfc/s5p-mfc-v8.fw |  Bin 0 -> 360576 bytes
 3 files changed, 2 insertions(+)
 create mode 100644 s5p-mfc/s5p-mfc-v7.fw  create mode 100644

s5p-mfc/s5p-mfc-v8.fw

[...]

Quoted 8 lines
Quoted 1 line

Applied, thanks.

Just noticed a problem with all the s5p-mfc firmware: you are putting it in the s5p-mfc subdirectory, so distribution packages will install them in /lib/firmware/s5p-mfc. However, unless I'm mistaken your driver requests it with a bare filename (e.g. "s5p-mfc-v7.fw") so it won't be found.

Quoted 3 lines

Yes this issue is there.
Kamil, are you ok with changing the fw load path to s5p-mfc/s5p-mfc*.fw in the driver?

We have two options here:
1) Change the driver to request s5p-mfc/sp5-mfc-fw*
2) Move the files in the firmware repository

Quoted 6 lines

I would opt for the second option. The driver was uploaded before the firmware. I see that there are many firmware files in the root folder of the repository

Ben, what is your opinion? Which is preferred: creating subdirectories or storing firmware in the root folder?

I prefer subdirectories, but compatibility wins. So I'll apply the following patch if no-one objects.

Ben.

---
Subject: Move the s5p-mfc firmware out of its subdirectory

The driver does not include this subdirectory name when requesting firmware.

---
 WHENCE                                       |  10 +++++-----
 s5p-mfc/s5p-mfc-v6-v2.fw => s5p-mfc-v6-v2.fw | Bin
 s5p-mfc/s5p-mfc-v6.fw => s5p-mfc-v6.fw       | Bin
 s5p-mfc/s5p-mfc-v7.fw => s5p-mfc-v7.fw       | Bin
 s5p-mfc/s5p-mfc-v8.fw => s5p-mfc-v8.fw       | Bin
 s5p-mfc/s5p-mfc.fw => s5p-mfc.fw             | Bin
 6 files changed, 5 insertions(+), 5 deletions(-)
 rename s5p-mfc/s5p-mfc-v6-v2.fw => s5p-mfc-v6-v2.fw (100%)
 rename s5p-mfc/s5p-mfc-v6.fw => s5p-mfc-v6.fw (100%)
 rename s5p-mfc/s5p-mfc-v7.fw => s5p-mfc-v7.fw (100%)
 rename s5p-mfc/s5p-mfc-v8.fw => s5p-mfc-v8.fw (100%)
 rename s5p-mfc/s5p-mfc.fw => s5p-mfc.fw (100%)
WHENCE +5 -5
index 6a64fc2..a172f5f 100644
@@ -2250,11 +2250,11 @@ Licence: Redistributable. See LICENCE.atheros_firmware for details
 
 Driver: s5p-mfc - Samsung MFC video encoder/decoder driver
 
-File: s5p-mfc/s5p-mfc.fw
-File: s5p-mfc/s5p-mfc-v6.fw
-File: s5p-mfc/s5p-mfc-v6-v2.fw
-File: s5p-mfc/s5p-mfc-v7.fw
-File: s5p-mfc/s5p-mfc-v8.fw
+File: s5p-mfc.fw
+File: s5p-mfc-v6.fw
+File: s5p-mfc-v6-v2.fw
+File: s5p-mfc-v7.fw
+File: s5p-mfc-v8.fw
 
 Licence:
 Samsung grants permission to use and redistribute aforementioned firmware
s5p-mfc-v6-v2.fw renamed from s5p-mfc/s5p-mfc-v6-v2.fw +0 -0
similarity index 100%
rename from s5p-mfc/s5p-mfc-v6-v2.fw
rename to s5p-mfc-v6-v2.fw
s5p-mfc-v6.fw renamed from s5p-mfc/s5p-mfc-v6.fw +0 -0
similarity index 100%
rename from s5p-mfc/s5p-mfc-v6.fw
rename to s5p-mfc-v6.fw
s5p-mfc-v7.fw renamed from s5p-mfc/s5p-mfc-v7.fw +0 -0
similarity index 100%
rename from s5p-mfc/s5p-mfc-v7.fw
rename to s5p-mfc-v7.fw
s5p-mfc-v8.fw renamed from s5p-mfc/s5p-mfc-v8.fw +0 -0
similarity index 100%
rename from s5p-mfc/s5p-mfc-v8.fw
rename to s5p-mfc-v8.fw
s5p-mfc.fw renamed from s5p-mfc/s5p-mfc.fw +0 -0
similarity index 100%
rename from s5p-mfc/s5p-mfc.fw
rename to s5p-mfc.fw
Signature · 2 lines
Ben Hutchings
Experience is what causes a person to make new mistakes instead of old ones.
#8 lore raw

Re: [PATCH v2 2/2] s5p-mfc: Adding MFC v7 and v8 firmwares

Hi Ben,

s5p-mfc.fw

Quoted 124 lines · Ben Hutchings
Quoted 47 lines · Kamil Debski

Hi Arun, Ben,

Quoted 36 lines

From: [email protected] [mailto:[email protected]] On Behalf Of Arun Kumar K
Sent: Wednesday, June 04, 2014 7:32 AM

Hi Ben,

Quoted 19 lines · Ben Hutchings
Quoted 18 lines · Ben Hutchings
Quoted 15 lines · Arun Kumar K

Adding the following firmware files for MFC
s5p-mfc-v7.fw: Used in exynos 5420
s5p-mfc-v8.fw: Used in exynos 5800

---
Changes from v1
- None

---
 WHENCE                |    2 ++
 s5p-mfc/s5p-mfc-v7.fw |  Bin 0 -> 382724 bytes
s5p-mfc/s5p-mfc-v8.fw |  Bin 0 -> 360576 bytes
 3 files changed, 2 insertions(+)
 create mode 100644 s5p-mfc/s5p-mfc-v7.fw  create mode 100644

s5p-mfc/s5p-mfc-v8.fw

[...]

Quoted 8 lines
Quoted 1 line

Applied, thanks.

Just noticed a problem with all the s5p-mfc firmware: you are putting it in the s5p-mfc subdirectory, so distribution packages will install them in /lib/firmware/s5p-mfc. However, unless I'm mistaken your driver requests it with a bare filename (e.g. "s5p-mfc-v7.fw") so it won't be found.

Quoted 3 lines

Yes this issue is there.
Kamil, are you ok with changing the fw load path to s5p-mfc/s5p-mfc*.fw in the driver?

We have two options here:
1) Change the driver to request s5p-mfc/sp5-mfc-fw*
2) Move the files in the firmware repository

Quoted 6 lines

I would opt for the second option. The driver was uploaded before the firmware. I see that there are many firmware files in the root folder of the repository

Ben, what is your opinion? Which is preferred: creating subdirectories or storing firmware in the root folder?

I prefer subdirectories, but compatibility wins. So I'll apply the following patch if no-one objects.

Ben.

---
Subject: Move the s5p-mfc firmware out of its subdirectory

The driver does not include this subdirectory name when requesting firmware.

---
 WHENCE                                       |  10 +++++-----
 s5p-mfc/s5p-mfc-v6-v2.fw => s5p-mfc-v6-v2.fw | Bin
 s5p-mfc/s5p-mfc-v6.fw => s5p-mfc-v6.fw       | Bin
 s5p-mfc/s5p-mfc-v7.fw => s5p-mfc-v7.fw       | Bin
 s5p-mfc/s5p-mfc-v8.fw => s5p-mfc-v8.fw       | Bin
 s5p-mfc/s5p-mfc.fw => s5p-mfc.fw             | Bin
 6 files changed, 5 insertions(+), 5 deletions(-)
 rename s5p-mfc/s5p-mfc-v6-v2.fw => s5p-mfc-v6-v2.fw (100%)
 rename s5p-mfc/s5p-mfc-v6.fw => s5p-mfc-v6.fw (100%)
 rename s5p-mfc/s5p-mfc-v7.fw => s5p-mfc-v7.fw (100%)
 rename s5p-mfc/s5p-mfc-v8.fw => s5p-mfc-v8.fw (100%)
 rename s5p-mfc/s5p-mfc.fw => s5p-mfc.fw (100%)
WHENCE +5 -5
index 6a64fc2..a172f5f 100644
@@ -2250,11 +2250,11 @@ Licence: Redistributable. See LICENCE.atheros_firmware for details
 
 Driver: s5p-mfc - Samsung MFC video encoder/decoder driver
 
-File: s5p-mfc/s5p-mfc.fw
-File: s5p-mfc/s5p-mfc-v6.fw
-File: s5p-mfc/s5p-mfc-v6-v2.fw
-File: s5p-mfc/s5p-mfc-v7.fw
-File: s5p-mfc/s5p-mfc-v8.fw
+File: s5p-mfc.fw
+File: s5p-mfc-v6.fw
+File: s5p-mfc-v6-v2.fw
+File: s5p-mfc-v7.fw
+File: s5p-mfc-v8.fw
 
 Licence:
 Samsung grants permission to use and redistribute aforementioned firmware
s5p-mfc-v6-v2.fw renamed from s5p-mfc/s5p-mfc-v6-v2.fw +0 -0
similarity index 100%
rename from s5p-mfc/s5p-mfc-v6-v2.fw
rename to s5p-mfc-v6-v2.fw
s5p-mfc-v6.fw renamed from s5p-mfc/s5p-mfc-v6.fw +0 -0
similarity index 100%
rename from s5p-mfc/s5p-mfc-v6.fw
rename to s5p-mfc-v6.fw
s5p-mfc-v7.fw renamed from s5p-mfc/s5p-mfc-v7.fw +0 -0
similarity index 100%
rename from s5p-mfc/s5p-mfc-v7.fw
rename to s5p-mfc-v7.fw
s5p-mfc-v8.fw renamed from s5p-mfc/s5p-mfc-v8.fw +0 -0
similarity index 100%
rename from s5p-mfc/s5p-mfc-v8.fw
rename to s5p-mfc-v8.fw
s5p-mfc.fw renamed from s5p-mfc/s5p-mfc.fw +0 -0
similarity index 100%
rename from s5p-mfc/s5p-mfc.fw
rename to s5p-mfc.fw

Looks good to me.

Regards
Arun

Quoted 3 lines

--
Ben Hutchings
Experience is what causes a person to make new mistakes instead of old ones.

#9 lore raw

Re: [PATCH v2 2/2] s5p-mfc: Adding MFC v7 and v8 firmwares

Quoted 14 lines · Arun Kumar K

Hi Ben,

Quoted 11 lines · Ben Hutchings
Quoted 10 lines · Kamil Debski

Hi Arun, Ben,

Quoted 7 lines

From: [email protected] [mailto:[email protected]] On Behalf Of Arun Kumar K
Sent: Wednesday, June 04, 2014 7:32 AM

Hi Ben,

On Wed, Jun 4, 2014 at 4:56 AM, Ben Hutchings <[email protected]>

[...]

Quoted 47 lines
Quoted 47 lines
Quoted 15 lines
Quoted 10 lines
Quoted 6 lines

Just noticed a problem with all the s5p-mfc firmware: you are putting it in the s5p-mfc subdirectory, so distribution packages will install them in /lib/firmware/s5p-mfc. However, unless I'm mistaken your driver requests it with a bare filename (e.g. "s5p-mfc-v7.fw") so it won't be found.

Yes this issue is there.
Kamil, are you ok with changing the fw load path to s5p-mfc/s5p-mfc*.fw in the driver?

We have two options here:
1) Change the driver to request s5p-mfc/sp5-mfc-fw*
2) Move the files in the firmware repository

Quoted 6 lines

I would opt for the second option. The driver was uploaded before the firmware. I see that there are many firmware files in the root folder of the repository

Ben, what is your opinion? Which is preferred: creating subdirectories or storing firmware in the root folder?

I prefer subdirectories, but compatibility wins. So I'll apply the following patch if no-one objects.

Ben.

---
Subject: Move the s5p-mfc firmware out of its subdirectory

The driver does not include this subdirectory name when requesting firmware.

---
 WHENCE                                       |  10 +++++-----
 s5p-mfc/s5p-mfc-v6-v2.fw => s5p-mfc-v6-v2.fw | Bin
 s5p-mfc/s5p-mfc-v6.fw => s5p-mfc-v6.fw       | Bin
 s5p-mfc/s5p-mfc-v7.fw => s5p-mfc-v7.fw       | Bin
 s5p-mfc/s5p-mfc-v8.fw => s5p-mfc-v8.fw       | Bin
 s5p-mfc/s5p-mfc.fw => s5p-mfc.fw             | Bin
 6 files changed, 5 insertions(+), 5 deletions(-)
 rename s5p-mfc/s5p-mfc-v6-v2.fw => s5p-mfc-v6-v2.fw (100%)
 rename s5p-mfc/s5p-mfc-v6.fw => s5p-mfc-v6.fw (100%)
 rename s5p-mfc/s5p-mfc-v7.fw => s5p-mfc-v7.fw (100%)
 rename s5p-mfc/s5p-mfc-v8.fw => s5p-mfc-v8.fw (100%)
 rename s5p-mfc/s5p-mfc.fw => s5p-mfc.fw (100%)

[...]

Quoted 1 line

Looks good to me.

I've made this change.

Ben.

Signature · 2 lines
Ben Hutchings
When in doubt, use brute force. - Ken Thompson