[PATCH] drm/ast: Fix NO EDID on DP501

2022-08-18 Thread KuoHsiang Chou
1. Corrected the definition of AST_DP501_PNP_CONNECTED. 2. Created the Base address for DP501 MCU. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_dp501.c | 10 -- drivers/gpu/drm/ast/ast_drv.h | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH v1] drm/ast: Fixed the casting issue reported by sparse

2022-06-23 Thread KuoHsiang Chou
V1: 1.Fixed sparse:cast truncates bits form constant value ()cast truncates bits from constant value (ff00 becomes 0) Reported-by: kernel test robot Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_dp.c | 8 drivers/gpu/drm/ast/ast_drv.h | 2 +- 2 files changed

[PATCH v5] drm/ast: Create the driver for ASPEED proprietory Display-Port

2022-06-07 Thread KuoHsiang Chou
-off-by: KuoHsiang Chou Reported-by: kernel test robot --- drivers/gpu/drm/ast/Makefile | 2 +- drivers/gpu/drm/ast/ast_dp.c | 282 + drivers/gpu/drm/ast/ast_drv.h | 115 ++ drivers/gpu/drm/ast/ast_main.c | 5 +- drivers/gpu/drm/ast/ast_mode.c

[PATCH v4] drm/ast: Create the driver for ASPEED proprietory Display-Port

2022-04-28 Thread KuoHsiang Chou
of 'u8', revise to 'bool' on swwitch of PHY and video. 10.Correct typo 11.Remove the duplicated copy of TX definition. 12.Use EDID_LENGTH as the constant of 128. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/Makefile | 2 +- drivers/gpu/drm/ast/ast_dp.c | 282

[PATCH] drm/ast: Create threshold values for AST2600

2022-01-17 Thread KuoHsiang Chou
The threshold value is used for AST2600 only. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_mode.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 1c7a57a03..7f2e248a6 100644 --- a/drivers

[PATCH v3] drm/ast: Create the driver for ASPEED proprietory Display-Port

2022-01-04 Thread KuoHsiang Chou
-off-by: KuoHsiang Chou Reported-by: kernel test robot --- drivers/gpu/drm/ast/Makefile | 2 +- drivers/gpu/drm/ast/ast_dp.c | 292 + drivers/gpu/drm/ast/ast_drv.h | 127 ++ drivers/gpu/drm/ast/ast_main.c | 5 +- drivers/gpu/drm/ast/ast_mode.c

[PATCH] drm/ast: Enable the supporting of wide screen on AST2600

2021-12-29 Thread KuoHsiang Chou
Enable the supporting of wide sscreen on AST2600, so that the resolution of 16:9 and 16:10 are able to be selected on Display Settings. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers

[PATCH v2] drm/ast: Create the driver for ASPEED proprietory Display-Port

2021-12-27 Thread KuoHsiang Chou
// ast_dp_read_edid() 4. Resolution switch// ast_dp_SetOutput() Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/Makefile | 2 +- drivers/gpu/drm/ast/ast_dp.c | 292 + drivers/gpu/drm/ast/ast_drv.h | 127

[PATCH] drm/ast: Create the driver for ASPEED proprietory Display-Port

2021-11-22 Thread KuoHsiang Chou
-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/Makefile | 2 +- drivers/gpu/drm/ast/ast_dp.c | 286 + drivers/gpu/drm/ast/ast_drv.h | 13 ++ drivers/gpu/drm/ast/ast_main.c | 7 +- drivers/gpu/drm/ast/ast_mode.c | 50 +- drivers/gpu/drm/ast/ast_post.c

[PATCH] drm/ast: Atomic CR/SR reg R/W

2021-09-17 Thread KuoHsiang Chou
1. Avoid IO-index racing 2. IO-index racing happened on resolustion switching and mouse moving at the same time 3. System hung while IO-index racing occurred. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_main.c | 48 +- 1 file changed, 36

[PATCH v5] drm/ast: Disable fast reset after DRAM initial

2021-07-09 Thread KuoHsiang Chou
unknown device issue ast_post.c Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_drv.h | 6 +++ drivers/gpu/drm/ast/ast_main.c | 5 ++ drivers/gpu/drm/ast/ast_post.c | 91 -- 3 files changed, 76 insertions(+), 26 deletions(-) diff --git a/drivers/gpu

[PATCH v4] drm/ast: Disable fast reset after DRAM initial

2021-05-07 Thread KuoHsiang Chou
condition and restore WDT default setting again, before Fast-reset clearing. V4: repatch after "error : could not build fake ancestor" resolved. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_drv.h | 1 + drivers/gpu/drm/ast/ast_main.c | 4 ++ drivers/gpu/drm/ast/ast_p

[PATCH v5] drm/ast: Fixed CVE for DP501

2021-04-21 Thread KuoHsiang Chou
"pci_iomap_range()" maps to DP501's FW that stored on the end of FB (Frame Buffer). In this case, FrameBuffer reserves the last 2MB used for the image of DP501. Signed-off-by: KuoHsiang Chou Reported-by: kernel test robot --- drivers/gpu/drm/ast/ast_dp5

[PATCH v4] drm/ast: Fixed CVE for DP501

2021-04-08 Thread KuoHsiang Chou
"pci_iomap_range()" maps to DP501's FW that stored on the end of FB (Frame Buffer). In this case, FrameBuffer reserves the last 2MB used for the image of DP501. Signed-off-by: KuoHsiang Chou Reported-by: kernel test robot --- drivers/gpu/drm/ast/ast_dp5

[PATCH V3] drm/ast: Disable fast reset after DRAM initial

2021-03-19 Thread KuoHsiang Chou
condition and restore WDT default setting again, before Fast-reset clearing. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_drv.h | 1 + drivers/gpu/drm/ast/ast_main.c | 5 +++ drivers/gpu/drm/ast/ast_post.c | 68 +- 3 files changed, 48 insertions

[PATCH] drm/ast: Update the sequence of Clearing Fast-reset

2021-01-18 Thread KuoHsiang Chou
[Bug][AST2500] If SCU00 is not unlocked, just enter its password again. It is unnecessary to clear AHB lock condition and restore WDT default setting again, before Fast-reset clearing. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_post.c | 5 + 1 file changed, 1 insertion(+), 4

[PATCH v2] drm/ast: Disable fast reset after DRAM initial

2021-01-11 Thread KuoHsiang Chou
. Once Fast reset is checked as enabling, WDT (Watch Dog Timer) should be first enabled to avoid system deadlock before disable fast reset mode. V2: Use to_pci_dev() to get revision of PCI configuration. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_drv.h | 1 + drivers/gpu/drm/ast

[PATCH] drm/ast: Disable fast reset after DRAM initial

2021-01-10 Thread KuoHsiang Chou
Fast reset is checked as enabling, WDT (Watch Dog Timer) should be first enabled to avoid system deadlock before disable fast reset mode. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_drv.h | 1 + drivers/gpu/drm/ast/ast_main.c | 4 ++ drivers/gpu/drm/ast/ast_post.c | 72

[PATCH V3] drm/ast: Fixed CVE for DP501

2020-12-27 Thread KuoHsiang Chou
"pci_iomap_range()" maps to DP501's FW that stored on the end of FB (Frame Buffer). 0In this case, FrameBuffer reserves the last 2MB used for the image of DP501. Signed-off-by: KuoHsiang Chou Reported-by: kernel test robot --- drivers/gpu/drm/ast/ast_dp5

[PATCH V3] drm/ast: Fixed CVE for DP501

2020-12-27 Thread KuoHsiang Chou
"pci_iomap_range()" maps to DP501's FW that stored on the end of FB (Frame Buffer). 0In this case, FrameBuffer reserves the last 2MB used for the image of DP501. Signed-off-by: KuoHsiang Chou Reported-by: kernel test robot --- drivers/gpu/drm/ast/ast_dp5

[PATCH v2] drm/ast: Fixed CVE for DP501

2020-12-11 Thread KuoHsiang Chou
"pci_iomap_range()" maps to DP501's FW that stored on the end of FB (Frame Buffer). In this case, FrameBuffer reserves the last 2MB used for the image of DP501. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_dp501.c | 136 +++- drivers/gpu/drm/ast/ast_drv

[PATCH] drm/ast: Fixed CVE for DP501

2020-11-25 Thread KuoHsiang Chou
[Bug][DP501] 1. For security concerning, P2A have to be disabled by CVE regulation. 2. FrameBuffer reverses last 2MB used for the image of DP501. 3. If P2A is disallowed, the default "ioremap()" behavior is non-cached and could be an alternative accessing on the image of DP501. ---

[PATCH] drm/ast: Create chip AST2600

2020-11-09 Thread KuoHsiang Chou
[New] Support AST2600 Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_drv.h | 1 + drivers/gpu/drm/ast/ast_main.c | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h index 467049ca8430..6b9e3b94a712

[PATCH] drm/ast: Fixed 1920x1080 sync. polarity issue

2020-11-05 Thread KuoHsiang Chou
[Bug] Change the vertical synchroous polary of 1920x1080 @60Hz from Negtive to Positive Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_tables.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_tables.h b/drivers/gpu/drm/ast

[PATCH] drm/ast: Support 1600x900 with 108MHz PCLK

2020-10-30 Thread KuoHsiang Chou
[New] Create the setting for 1600x900 @60Hz refresh rate by 108MHz pixel-clock. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_tables.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/ast/ast_tables.h b/drivers/gpu/drm/ast/ast_tables.h index d665dd5af5dd

[PATCH] drm/ast: Avoid to access BMC addressing when P2A is disabled

2020-10-16 Thread KuoHsiang Chou
The patch is upstreamed 1. For RHEL7.x, because its native kernel is suggested to update from 3.10 to 4.9 on 2 ODM's platform. 2. For AST2600. 3. For ASTDP. 4. v1.11 Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/Makefile | 2 +- drivers/gpu/drm/ast/ast_dp.c | 233