drm/arm/malidp: Setting QoS priority for 4k to avoid flicker issue
Subsystems (3)
PATCH 2/2 drm/arm/malidp: Setting QoS priority for 4k to avoid flicker issue
When we running DDR benchmark test will able to observed flicker issue in 4k@60 resolution on monitor. In LS1028A SoC, need increasing DP500 priority to avoid that issue.
--- drivers/gpu/drm/arm/malidp_hw.c | 13 +++++++++++++ drivers/gpu/drm/arm/malidp_regs.h | 8 ++++++++ 2 files changed, 21 insertions(+)
drivers/gpu/drm/arm/malidp_hw.c +13 -0
@@ -378,6 +378,19 @@ static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode *malidp_hw_setbits (hwdev,MALIDP_DISP_FUNC_ILACED ,MALIDP_DE_DISPLAY_FUNC ); elsemalidp_hw_clearbits (hwdev ,MALIDP_DISP_FUNC_ILACED ,MALIDP_DE_DISPLAY_FUNC ); + +#ifdef CONFIG_ARCH_LAYERSCAPE +/* Setting QoS for 4k resolution to avoid flicker issue */ +if (mode->hactive ==3840 + && mode->vactive ==2160 ) +malidp_hw_setbits (hwdev,GREEN_ARQOS_CONFIG + |RED_ARQOS_CONFIG ,MALIDP500_RQOS_QUALITY ); +else +malidp_hw_clearbits (hwdev,GREEN_ARQOS_CONFIG + |RED_ARQOS_CONFIG ,MALIDP500_RQOS_QUALITY ); + +malidp_hw_setbits (hwdev,CONFIG_VALID ,MALIDP500_CONFIG_VALID ); +#endif }int malidp_format_get_bpp (u32 fmt)
drivers/gpu/drm/arm/malidp_regs.h +8 -0
@@ -213,6 +213,14 @@#define MALIDP500_DC_IRQ_BASE 0x00f00#define MALIDP500_CONFIG_VALID 0x00f00#define MALIDP500_CONFIG_ID 0x00fd4 +#ifdef CONFIG_ARCH_LAYERSCAPE +#define MALIDP500_RQOS_QUALITY 0x00500 +/* Increasing QoS level signal */ +#define GREEN_ARQOS_CONFIG (0xd << 28) +/* Close to underflow QoS level signal */ +#define RED_ARQOS_CONFIG (0xd << 12) +#define CONFIG_VALID 0x3 +#endif /* register offsets and bits specific to DP550/DP650 */ #define MALIDP550_ADDR_SPACE_SIZE 0x10000
Signature · 6 lines
2.17.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[email protected]
maintainerHi Wen,
Quoted 15 lines · Wen He
When we running DDR benchmark test will able to observed flicker issue in 4k@60 resolution on monitor. In LS1028A SoC, need increasing DP500 priority to avoid that issue.
Signed-off-by Wen He <[email protected]>--- drivers/gpu/drm/arm/malidp_hw.c | 13 +++++++++++++ drivers/gpu/drm/arm/malidp_regs.h | 8 ++++++++ 2 files changed, 21 insertions(+)drivers/gpu/drm/arm/malidp_hw.c +0
-0
drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode * · line 385
Quoted 8 lines
drivers/gpu/drm/arm/malidp_hw.c +5
-0@@ -378,6 +378,19 @@ static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode *malidp_hw_setbits (hwdev,MALIDP_DISP_FUNC_ILACED ,MALIDP_DE_DISPLAY_FUNC ); elsemalidp_hw_clearbits (hwdev ,MALIDP_DISP_FUNC_ILACED ,MALIDP_DE_DISPLAY_FUNC ); + +#ifdef CONFIG_ARCH_LAYERSCAPE +/* Setting QoS for 4k resolution to avoid flicker issue */ +if (mode->hactive ==3840 + && mode->vactive ==2160 )
I'm not keen on this check, it only enables this for one 3840x2160. What if the output is 2160x3840? Does it matter what pixel clock you use? Can the same issue be seen if (for example) you use 120Hz refresh rate but on a smaller output resolution?
I think it's worth thinking this in terms of bandwidth and not hardcode for one resolution.
Also, I think setting the QoS bits should be a bit more generic, i.e if the modeset requires a certain bandwidth you should write a value read from a device tree, for example?
drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode * · line 392
Quoted 7 lines
drivers/gpu/drm/arm/malidp_hw.c +7
-0+malidp_hw_setbits (hwdev,GREEN_ARQOS_CONFIG + |RED_ARQOS_CONFIG ,MALIDP500_RQOS_QUALITY ); + else + malidp_hw_clearbits(hwdev, GREEN_ARQOS_CONFIG + | RED_ARQOS_CONFIG, MALIDP500_RQOS_QUALITY); + +malidp_hw_setbits (hwdev,CONFIG_VALID ,MALIDP500_CONFIG_VALID );
malidp500_modeset() will be called with MALIDP_CFG_VALID set anyway, so you should not need this. I don't know what bit 1 in MALIDP500_CONFIG_VALID does for LS1028A, I don't have that spec.
Quoted 9 lines
drivers/gpu/drm/arm/malidp_hw.c +1
-0+#endif }int malidp_format_get_bpp (u32 fmt)drivers/gpu/drm/arm/malidp_regs.h +0
-0
drivers/gpu/drm/arm/malidp_regs.h line 222
Quoted 10 lines
drivers/gpu/drm/arm/malidp_regs.h +7
-0@@ -213,6 +213,14 @@#define MALIDP500_DC_IRQ_BASE 0x00f00#define MALIDP500_CONFIG_VALID 0x00f00#define MALIDP500_CONFIG_ID 0x00fd4 +#ifdef CONFIG_ARCH_LAYERSCAPE +#define MALIDP500_RQOS_QUALITY 0x00500 +/* Increasing QoS level signal */ +#define GREEN_ARQOS_CONFIG (0xd << 28) +/* Close to underflow QoS level signal */ +#define RED_ARQOS_CONFIG (0xd << 12) +#define CONFIG_VALID 0x3
What are these values? Is it something NXP has added to the DP500? If so, I think these should have some LAYERSCAPE (or LS) in their name. Also, rather than hardcoding the values, would it not be better to read them form device tree, to allow for fine tuning or variability between IP deployments?
Best regards,
Liviu
Quoted 7 lines
drivers/gpu/drm/arm/malidp_regs.h +1
-0+#endif /* register offsets and bits specific to DP550/DP650 */ #define MALIDP550_ADDR_SPACE_SIZE 0x10000Signature · 1 line
2.17.1
Signature · 12 lines
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-develQuoted 33 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 2019年3月29日 0:39
To: Wen He <[email protected]>
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/2] drm/arm/malidp: Setting QoS priority for 4k to avoid flicker issueHi Wen,
drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct
Quoted 16 lines · Wen He
When we running DDR benchmark test will able to observed flicker issue in 4k@60 resolution on monitor. In LS1028A SoC, need increasing DP500 priority to avoid that issue.
Signed-off-by Wen He <[email protected]>--- drivers/gpu/drm/arm/malidp_hw.c | 13 +++++++++++++ drivers/gpu/drm/arm/malidp_regs.h | 8 ++++++++ 2 files changed, 21 insertions(+)(quoted diff) +0
-0
b/drivers/gpu/drm/arm/malidp_hw.cindex8df12e9a33bb..a5263488eb02100644drivers/gpu/drm/arm/malidp_hw.c +0
-0@@ -378,6 +378,19 @@ static void malidp500_modeset(struct
malidp_hw_device*hwdev, struct videomode *drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct · line 378
Quoted 1 line
drivers/gpu/drm/arm/malidp_hw.c +0
-0malidp_hw_setbits(hwdev, MALIDP_DISP_FUNC_ILACED,
MALIDP_DE_DISPLAY_FUNC);
Quoted 14 lines
drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode * · line 385
Quoted 8 lines
drivers/gpu/drm/arm/malidp_hw.c +5
-0else malidp_hw_clearbits (hwdev,MALIDP_DISP_FUNC_ILACED ,MALIDP_DE_DISPLAY_FUNC ); + +#ifdef CONFIG_ARCH_LAYERSCAPE +/* Setting QoS for 4k resolution to avoid flicker issue */ +if (mode->hactive ==3840 + && mode->vactive ==2160 )I'm not keen on this check, it only enables this for one 3840x2160. What if the output is 2160x3840? Does it matter what pixel clock you use? Can the same issue be seen if (for example) you use 120Hz refresh rate but on a smaller output resolution?
Hi liviu,
Let me clearly it.
Currently, we only supported four resolutions (480p@60, 720p@60, 1080@60, 4k@60) for LS1028A Display port. All of the refresh rate is 60MHz. so that impossible will be there resolution output's 2160x3840 and refresh rate is 120MHz.
Quoted 3 lines
I think it's worth thinking this in terms of bandwidth and not hardcode for one resolution.
Yes, you are right.
But only 4k resolution have the flicker issue, so this is a special problem. I think that hardcode is better than dynamically adjusting bandwidth.
Quoted 4 lines
Also, I think setting the QoS bits should be a bit more generic, i.e if the modeset requires a certain bandwidth you should write a value read from a device tree, for example?
Quoted 12 lines
drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode * · line 392
Quoted 7 lines
drivers/gpu/drm/arm/malidp_hw.c +7
-0+malidp_hw_setbits (hwdev,GREEN_ARQOS_CONFIG + |RED_ARQOS_CONFIG ,MALIDP500_RQOS_QUALITY ); + else + malidp_hw_clearbits(hwdev, GREEN_ARQOS_CONFIG + | RED_ARQOS_CONFIG, MALIDP500_RQOS_QUALITY); + +malidp_hw_setbits (hwdev,CONFIG_VALID ,MALIDP500_CONFIG_VALID );
malidp500_modeset()will be called withMALIDP_CFG_VALIDset anyway, so you should not need this. I don't know what bit 1 inMALIDP500_CONFIG_VALIDdoes for LS1028A, I don't have that spec.
About this, I got this step from our design team, So just to make sure the configuration works that writing value 0x3 to MALIDP500_CONFIG_VALID.
Is there can always to valid configuration? If yes, I can remove this line.
Quoted 27 lines
Quoted 11 lines
drivers/gpu/drm/arm/malidp_hw.c +1
-0+#endif }int
malidp_format_get_bpp(u32 fmt)drivers/gpu/drm/arm/malidp_regs.h +0
-0drivers/gpu/drm/arm/malidp_regs.h line 222
Quoted 10 lines
drivers/gpu/drm/arm/malidp_regs.h +7
-0@@ -213,6 +213,14 @@#define MALIDP500_DC_IRQ_BASE 0x00f00#define MALIDP500_CONFIG_VALID 0x00f00#define MALIDP500_CONFIG_ID 0x00fd4 +#ifdef CONFIG_ARCH_LAYERSCAPE +#define MALIDP500_RQOS_QUALITY 0x00500 +/* Increasing QoS level signal */ +#define GREEN_ARQOS_CONFIG (0xd << 28) +/* Close to underflow QoS level signal */ +#define RED_ARQOS_CONFIG (0xd << 12) +#define CONFIG_VALID 0x3What are these values? Is it something NXP has added to the DP500? If so, I think these should have some LAYERSCAPE (or LS) in their name. Also, rather than hardcoding the values, would it not be better to read them form device tree, to allow for fine tuning or variability between IP deployments?
Quoted 3 lines
Best regards,
Liviu
These values are QoS registers of DP500.
I have already put CONFIG_ARCH_LAYERSCAPE definition to specify architecture.
Regarding your suggestion, I think device tree also can meet this, but that is Non-standard writing in here, because not have any properties define to describe QoS in arm,malidp device bindings file.
Best Regards,
Wen
Quoted 11 lines
Quoted 8 lines
drivers/gpu/drm/arm/malidp_regs.h +1
-1+#endif /* register offsets and bits specific to DP550/DP650 */ #define MALIDP550_ADDR_SPACE_SIZE 0x10000 --2.17.1
--
====================
Quoted 7 lines
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
[email protected]
maintainerQuoted 48 lines · Wen He
Quoted 33 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 2019年3月29日 0:39
To: Wen He <[email protected]>
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/2] drm/arm/malidp: Setting QoS priority for 4k to avoid flicker issueHi Wen,
drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct
Quoted 16 lines · Wen He
When we running DDR benchmark test will able to observed flicker issue in 4k@60 resolution on monitor. In LS1028A SoC, need increasing DP500 priority to avoid that issue.
Signed-off-by Wen He <[email protected]>--- drivers/gpu/drm/arm/malidp_hw.c | 13 +++++++++++++ drivers/gpu/drm/arm/malidp_regs.h | 8 ++++++++ 2 files changed, 21 insertions(+)(quoted diff) +0
-0
b/drivers/gpu/drm/arm/malidp_hw.cindex8df12e9a33bb..a5263488eb02100644drivers/gpu/drm/arm/malidp_hw.c +0
-0@@ -378,6 +378,19 @@ static void malidp500_modeset(struct
malidp_hw_device*hwdev, struct videomode *drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct · line 378
Quoted 1 line
drivers/gpu/drm/arm/malidp_hw.c +0
-0malidp_hw_setbits(hwdev, MALIDP_DISP_FUNC_ILACED,
MALIDP_DE_DISPLAY_FUNC);Quoted 14 lines
drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode * · line 385
Quoted 8 lines
drivers/gpu/drm/arm/malidp_hw.c +5
-0else malidp_hw_clearbits (hwdev,MALIDP_DISP_FUNC_ILACED ,MALIDP_DE_DISPLAY_FUNC ); + +#ifdef CONFIG_ARCH_LAYERSCAPE +/* Setting QoS for 4k resolution to avoid flicker issue */ +if (mode->hactive ==3840 + && mode->vactive ==2160 )I'm not keen on this check, it only enables this for one 3840x2160. What if the output is 2160x3840? Does it matter what pixel clock you use? Can the same issue be seen if (for example) you use 120Hz refresh rate but on a smaller output resolution?
Quoted 1 line
Hi liviu,
Hi Wen,
Quoted 4 lines
Let me clearly it.
Currently, we only supported four resolutions (480p@60, 720p@60, 1080@60, 4k@60) for LS1028A Display port. All of the refresh rate is 60MHz. so that impossible will be there resolution output's 2160x3840 and refresh rate is 120MHz.
Yes, but you are asking to merge this into the mainline driver which supports more resolutions than that.
Quoted 8 lines
Quoted 4 lines
I think it's worth thinking this in terms of bandwidth and not hardcode for one resolution.
Yes, you are right.
But only 4k resolution have the flicker issue, so this is a special problem. I think that hardcode is better than dynamically adjusting bandwidth.
If you want to do that for your BSP, then it's fine. For mainline, I think we can do better and think in more generic terms.
Quoted 18 lines
Quoted 5 lines
Also, I think setting the QoS bits should be a bit more generic, i.e if the modeset requires a certain bandwidth you should write a value read from a device tree, for example?
Quoted 12 lines
drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode * · line 392
Quoted 7 lines
drivers/gpu/drm/arm/malidp_hw.c +7
-0+malidp_hw_setbits (hwdev,GREEN_ARQOS_CONFIG + |RED_ARQOS_CONFIG ,MALIDP500_RQOS_QUALITY ); + else + malidp_hw_clearbits(hwdev, GREEN_ARQOS_CONFIG + | RED_ARQOS_CONFIG, MALIDP500_RQOS_QUALITY); + +malidp_hw_setbits (hwdev,CONFIG_VALID ,MALIDP500_CONFIG_VALID );
malidp500_modeset()will be called withMALIDP_CFG_VALIDset anyway, so you should not need this. I don't know what bit 1 inMALIDP500_CONFIG_VALIDdoes for LS1028A, I don't have that spec.
Quoted 2 lines
About this, I got this step from our design team, So just to make sure the configuration works that writing value
0x3toMALIDP500_CONFIG_VALID.
Bit 1 in MALIDP500_CONFIG_VALID is not defined in the Arm spec, so don't know what the NXP design team has done there, might be worth talking to them.
Quoted 2 lines
Is there can always to valid configuration? If yes, I can remove this line.
Yes, before we enter modeset we set bit 0 of MALIDP500_CONFIG_VALID and we clear it after modeset is finished. DP500 is a bit weird, you need to look at CONFIG_VALID as somewhat inverted as a signal from the software point of view. It is probably easier to think of it in the way the code was written, i.e. we "enter config mode" before modeset and then "exit config mode" afterwards.
Quoted 32 lines
Quoted 28 lines
Quoted 12 lines
drivers/gpu/drm/arm/malidp_hw.c +1
-0+#endif }int
malidp_format_get_bpp(u32 fmt)drivers/gpu/drm/arm/malidp_regs.h +0
-0drivers/gpu/drm/arm/malidp_regs.h line 222
Quoted 10 lines
drivers/gpu/drm/arm/malidp_regs.h +7
-0@@ -213,6 +213,14 @@#define MALIDP500_DC_IRQ_BASE 0x00f00#define MALIDP500_CONFIG_VALID 0x00f00#define MALIDP500_CONFIG_ID 0x00fd4 +#ifdef CONFIG_ARCH_LAYERSCAPE +#define MALIDP500_RQOS_QUALITY 0x00500 +/* Increasing QoS level signal */ +#define GREEN_ARQOS_CONFIG (0xd << 28) +/* Close to underflow QoS level signal */ +#define RED_ARQOS_CONFIG (0xd << 12) +#define CONFIG_VALID 0x3What are these values? Is it something NXP has added to the DP500? If so, I think these should have some LAYERSCAPE (or LS) in their name. Also, rather than hardcoding the values, would it not be better to read them form device tree, to allow for fine tuning or variability between IP deployments?
Quoted 3 lines
Best regards,
Liviu
Quoted 6 lines
These values are QoS registers of DP500.
I have already putCONFIG_ARCH_LAYERSCAPEdefinition to specify architecture.Regarding your suggestion, I think device tree also can meet this, but that is Non-standard writing in here, because not have any properties define to describe QoS in arm,malidp device bindings file.
What I was thinking was that you could add the properties and the documentation ;)
Best regards,
Liviu
Quoted 21 lines
Best Regards,
WenQuoted 18 lines
Quoted 8 lines
drivers/gpu/drm/arm/malidp_regs.h +1
-1+#endif /* register offsets and bits specific to DP550/DP650 */ #define MALIDP550_ADDR_SPACE_SIZE 0x10000 --2.17.1
--
====================| I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯
Signature · 12 lines
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-develQuoted 117 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: 2019年3月30日 0:11
To: Wen He <[email protected]>
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/2] drm/arm/malidp: Setting QoS priority for 4k to avoid flicker issueQuoted 18 lines · Wen He
Quoted 18 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 2019年3月29日 0:39
To: Wen He <[email protected]>
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/2] drm/arm/malidp: Setting QoS priority for 4k to avoid flicker issueHi Wen,
Quoted 4 lines · Wen He
When we running DDR benchmark test will able to observed flicker issue in 4k@60 resolution on monitor. In LS1028A SoC, need increasing DP500 priority to avoid that issue.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Signed-off-by Wen He <[email protected]>--- drivers/gpu/drm/arm/malidp_hw.c | 13 +++++++++++++ drivers/gpu/drm/arm/malidp_regs.h | 8 ++++++++ 2 files changed, 21 insertions(+)(quoted diff) +0
-0
b/drivers/gpu/drm/arm/malidp_hw.cindex
8df12e9a33bb..a5263488eb02Quoted 22 lines
Quoted 7 lines
drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct
Quoted 4 lines
100644
drivers/gpu/drm/arm/malidp_hw.c +0
-0@@ -378,6 +378,19 @@ static void malidp500_modeset(struct
malidp_hw_device*hwdev, struct videomode *drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct · line 378
Quoted 1 line
drivers/gpu/drm/arm/malidp_hw.c +0
-0malidp_hw_setbits(hwdev, MALIDP_DISP_FUNC_ILACED,
MALIDP_DE_DISPLAY_FUNC);Quoted 14 lines
drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode * · line 385
Quoted 8 lines
drivers/gpu/drm/arm/malidp_hw.c +5
-0else malidp_hw_clearbits (hwdev,MALIDP_DISP_FUNC_ILACED ,MALIDP_DE_DISPLAY_FUNC ); + +#ifdef CONFIG_ARCH_LAYERSCAPE +/* Setting QoS for 4k resolution to avoid flicker issue */ +if (mode->hactive ==3840 + && mode->vactive ==2160 )I'm not keen on this check, it only enables this for one 3840x2160. What if the output is 2160x3840? Does it matter what pixel clock you use? Can the same issue be seen if (for example) you use 120Hz refresh rate but on a smaller output resolution?
Quoted 1 line
Hi liviu,
Hi Wen,
Quoted 3 lines
Let me clearly it.
Currently, we only supported four resolutions (480p@60, 720p@60,1080@60, 4k@60) for LS1028A Display port.
Quoted 1 line
All of the refresh rate is 60MHz. so that impossible will be there resolution
output's 2160x3840 and refresh rate is 120MHz.
Yes, but you are asking to merge this into the mainline driver which supports more resolutions than that.
Quoted 8 lines
Quoted 4 lines
I think it's worth thinking this in terms of bandwidth and not hardcode for one resolution.
Yes, you are right.
But only 4k resolution have the flicker issue, so this is a special problem. I think that hardcode is better than dynamically adjusting bandwidth.If you want to do that for your BSP, then it's fine. For mainline, I think we can do better and think in more generic terms.
Quoted 5 lines
Quoted 5 lines
Also, I think setting the QoS bits should be a bit more generic, i.e if the modeset requires a certain bandwidth you should write a value read from a device tree, for example?
Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode *
Quoted 7 lines
drivers/gpu/drm/arm/malidp_hw.c +7
-0+malidp_hw_setbits (hwdev,GREEN_ARQOS_CONFIG + |RED_ARQOS_CONFIG ,MALIDP500_RQOS_QUALITY ); + else + malidp_hw_clearbits(hwdev, GREEN_ARQOS_CONFIG + | RED_ARQOS_CONFIG, MALIDP500_RQOS_QUALITY); + + malidp_hw_setbits(hwdev, CONFIG_VALID,
MALIDP500_CONFIG_VALID);Quoted 8 lines
Quoted 5 lines
malidp500_modeset()will be called withMALIDP_CFG_VALIDset anyway, so you should not need this. I don't know what bit 1 inMALIDP500_CONFIG_VALIDdoes for LS1028A, I don't have that spec.About this, I got this step from our design team, So just to make sure the configuration works that writing value
0x3to
MALIDP500_CONFIG_VALID.Bit 1 in
MALIDP500_CONFIG_VALIDis not defined in the Arm spec, so don't know what the NXP design team has done there, might be worth talking to them.Quoted 2 lines
Is there can always to valid configuration? If yes, I can remove this line.
Quoted 7 lines
Yes, before we enter modeset we set bit 0 of
MALIDP500_CONFIG_VALIDand we clear it after modeset is finished. DP500 is a bit weird, you need to look atCONFIG_VALIDas somewhat inverted as a signal from the software point of view.
It is probably easier to think of it in the way the code was written, i.e. we "enter config mode" before modeset and then "exit config mode" afterwards.
Hi Liviu,
This patch is not a rigorous implementation for the mainline, I will use the new Implementation to send next version of the patch.
Thanks for these comments.
Best Regards,
Wen
Quoted 72 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
drivers/gpu/drm/arm/malidp_hw.c +1
-0+#endif }int
malidp_format_get_bpp(u32 fmt)diff --gita/drivers/gpu/drm/arm/malidp_regs.hb/drivers/gpu/drm/arm/malidp_regs.h
indexa0dd6e1676a8..8dcf7e9f46ce100644drivers/gpu/drm/arm/malidp_regs.h +4
-0@@ -213,6 +213,14 @@#define MALIDP500_DC_IRQ_BASE 0x00f00#define MALIDP500_CONFIG_VALID 0x00f00#define MALIDP500_CONFIG_ID 0x00fd4 +#ifdef CONFIG_ARCH_LAYERSCAPE +#define MALIDP500_RQOS_QUALITY 0x00500 +/* Increasing QoS level signal */ +#define GREEN_ARQOS_CONFIG (0xd << 28)Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/arm/malidp_regs.h line 222
Quoted 3 lines
drivers/gpu/drm/arm/malidp_regs.h +3
-0+/* Close to underflow QoS level signal */ +#define RED_ARQOS_CONFIG (0xd << 12) +#define CONFIG_VALID 0x3What are these values? Is it something NXP has added to the DP500? If so, I think these should have some LAYERSCAPE (or LS) in their name. Also, rather than hardcoding the values, would it not be better to read them form device tree, to allow for fine tuning or variability
between IP deployments?
Quoted 7 lines
Quoted 4 lines
Best regards,
LiviuThese values are QoS registers of DP500.
I have already putCONFIG_ARCH_LAYERSCAPEdefinition to specifyarchitecture.
Quoted 4 lines
Regarding your suggestion, I think device tree also can meet this, but that is Non-standard writing in here, because not have any properties define to describe QoS in arm,malidp device bindings file.
What I was thinking was that you could add the properties and the documentation ;)
Best regards,
LiviuQuoted 21 lines
Best Regards,
WenQuoted 18 lines
Quoted 8 lines
drivers/gpu/drm/arm/malidp_regs.h +1
-1+#endif /* register offsets and bits specific to DP550/DP650 */ #define MALIDP550_ADDR_SPACE_SIZE 0x10000 --2.17.1
--
====================| I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯--
====================
Quoted 7 lines
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel