RE: [PATCH] drm/amdgpu: fix the doorbell missing when in CGPG issue for renoir.

2021-07-28 Thread Chen, Jiansong (Simon)
[AMD Official Use Only] A coding style issue, "Do not unnecessarily use braces where a single statement will do." Regards, Jiansong -Original Message- From: amd-gfx On Behalf Of Yifan Zhang Sent: Wednesday, July 28, 2021 11:40 AM To: amd-gfx@lists.freedesktop.org Cc: Zhang, Yifan Subje

RE: [PATCH 2/3] drm/amdgpu: Fix a printing message

2021-07-14 Thread Chen, Jiansong (Simon)
[Public] Ok, I see. Thanks! Regards, Jiansong From: Deucher, Alexander Sent: Thursday, July 15, 2021 10:55 AM To: Chen, Jiansong (Simon) ; Alex Deucher ; Zeng, Oak Cc: Xu, Feifei ; Kuehling, Felix ; Liu, Leo ; amd-gfx list ; Zhang, Hawking Subject: Re: [PATCH 2/3] drm/amdgpu: Fix a

RE: [PATCH 2/3] drm/amdgpu: Fix a printing message

2021-07-14 Thread Chen, Jiansong (Simon)
[Public] Hi Alex, Is DRM_DEV_INFO more suitable than dev_info as far as DRM subsystem is concerned? Thanks! Regards, Jiansong -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Wednesday, July 14, 2021 11:48 PM To: Zeng, Oak Cc: Xu, Feifei ; Kuehling, Felix ; Liu, Leo ;

RE: [PATCH] drm/amd/display: avoid printing ERROR for unknown CEA parse

2021-07-13 Thread Chen, Jiansong (Simon)
[AMD Official Use Only] Is DRM_WARN more suitable for the case? Regards, Jiansong -Original Message- From: amd-gfx On Behalf Of Guchun Chen Sent: Tuesday, July 13, 2021 1:56 PM To: amd-gfx@lists.freedesktop.org; Wang, Chao-kai (Stylon) ; Kazlauskas, Nicholas ; Siqueira, Rodrigo ; Yin,

RE: [PATCH] drm/amd/pm: Fix BACO state setting for Beige_Goby

2021-07-09 Thread Chen, Jiansong (Simon)
[AMD Official Use Only] Reviewed-by: Jiansong Chen -Original Message- From: Chengming Gui Sent: Friday, July 9, 2021 4:29 PM To: amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao ; Chen, Jiansong (Simon) ; Chen, Guchun ; Feng, Kenneth ; Zhang, Hawking ; Gui, Jack Subject: [PATCH] drm

RE: [PATCH] SWDEV-291099 - Use a percise function name

2021-07-06 Thread Chen, Jiansong (Simon)
[AMD Official Use Only] Internal ticket number is not appropriate to appear in upstream patch, and percise->precise in the subject? Regards, Jiansong -Original Message- From: amd-gfx On Behalf Of Roy Sun Sent: Monday, July 5, 2021 6:24 PM To: amd-gfx@lists.freedesktop.org Cc: Sun, Roy

RE: [PATCH 2/2] drm/amdkfd: Walk thorugh list with dqm lock hold

2021-06-16 Thread Chen, Jiansong (Simon)
[AMD Official Use Only] BTW, there is an obvious typo in the subject, Walk thorugh => Walk through. Regards, Jiansong -Original Message- From: amd-gfx On Behalf Of Felix Kuehling Sent: Thursday, June 17, 2021 7:09 AM To: Pan, Xinhui ; amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander

RE: [PATCH] drm/amdgpu: refine amdgpu_fru_get_product_info

2021-05-25 Thread Chen, Jiansong (Simon)
I think we still could keep them to be more informative for the moment. Regards, Jiansong -Original Message- From: Chen, Guchun Sent: Tuesday, May 25, 2021 3:47 PM To: Chen, Jiansong (Simon) ; amd-gfx@lists.freedesktop.org Cc: Chen, Jiansong (Simon) Subject: RE: [PATCH] drm/amdgpu

RE: [PATCH] drm/amdgpu: refine amdgpu_fru_get_product_info

2021-05-24 Thread Chen, Jiansong (Simon)
[AMD Official Use Only] Please ignore the patch, will resend after removing multiple assignments. -Original Message- From: Jiansong Chen Sent: Tuesday, May 25, 2021 2:17 PM To: amd-gfx@lists.freedesktop.org Cc: Chen, Jiansong (Simon) Subject: [PATCH] drm/amdgpu: refine

RE: [PATCH] drm/amd/pm: Update PPTable struct for beige_goby

2021-05-20 Thread Chen, Jiansong (Simon)
[AMD Official Use Only] Reviewed-by: Jiansong Chen -Original Message- From: Chengming Gui Sent: Thursday, May 20, 2021 3:55 PM To: amd-gfx@lists.freedesktop.org Cc: Gui, Jack ; Zhou1, Tao ; Chen, Jiansong (Simon) ; Zhang, Hawking ; Feng, Kenneth Subject: [PATCH] drm/amd/pm: Update

RE: [PATCH] drm/amdgpu: optimize to drop preamble IB for old GPUs

2021-05-17 Thread Chen, Jiansong (Simon)
if (AMDGPU_PREAMBLE_IB_PRESENT_FIRST & flags) dw2 |= 0x1000; } -Original Message- From: Christian König Sent: Monday, May 17, 2021 2:56 PM To: Chen, Jiansong (Simon) ; Koenig, Christian ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu

RE: [PATCH] drm/amdgpu: optimize to drop preamble IB for old GPUs

2021-05-16 Thread Chen, Jiansong (Simon)
From: Koenig, Christian Sent: Monday, May 17, 2021 2:42 PM To: Chen, Jiansong (Simon) ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu: optimize to drop preamble IB for old GPUs Well NAK, as discussed checking the global flag is more flexible since it will still enable the pre

RE: [PATCH] drm/amd/pm: enable ASPM by default

2021-05-11 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Better to make the commit msg more specific, eg. Change predicate accordingly since aspm is enabled by default. Either way, Reviewed-by: Jiansong Chen Regards, Jiansong -Original Message- From: amd-gfx On Behalf Of Kenneth Feng Sent

RE: [PATCH] drm/amdgpu: Add graphics cache rinse packet for sdma 5.0

2021-04-29 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Hi Alex, I notice there is already similar logic in sdma_v5_0_ring_emit_ib, do we need remove it? Regards, Jiansong @@ -410,6 +410,18 @@ static void sdma_v5_0_ring_emit_ib(struct amdgpu_ring *ring, unsigned vmid = AMDGPU_JOB_GET_VMID

RE: [PATCH 6/6] drm/amdgpu: Fix driver unload issue

2021-03-29 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] I still wonder how the issue takes place? According to my humble knowledge in driver model, the reference count of the kobject for the device will not reach zero when there is still some device mem access, and shutdown should not happen. Rega

RE: [PATCH] drm/amd/pm: fix Navi1x runtime resume failure V2

2021-03-18 Thread Chen, Jiansong (Simon)
We still need reserve "return 0", otherwise may trigger warning "not all control paths return a value". Regards, Jiansong -Original Message- From: amd-gfx On Behalf Of Chen, Guchun Sent: Thursday, March 18, 2021 5:28 PM To: Quan, Evan ; amd-gfx@lists.freedesktop.org Cc: Lazar, Lijo ; Qua

RE: [PATCH] drm/amdgpu: block hardware accessed by other threads when doing gpu recovery

2021-03-01 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] For all the "locked = likely(!amdgpu_in_recovery_thread(adev)) & !in_irq();", logical operator "&&" should be used, Regards, Jiansong -Original Message- From: amd-gfx On Behalf Of Dennis Li Sent: Monday, March 1, 2021 7:12 PM To: amd

RE: [PATCH] drm/amdgpu: enable gpu recovery for dimgrey_cavefish

2021-02-07 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Jiansong Chen -Original Message- From: Zhou1, Tao Sent: Sunday, February 7, 2021 4:52 PM To: Chen, Jiansong (Simon) ; Gui, Jack ; Zhang, Hawking ; amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao Subject: [PATCH] drm

RE: [PATCH 1/2] drm/amd/pm: fulfill the API for navi1x gfxoff state retrieving(V2)

2021-01-18 Thread Chen, Jiansong (Simon)
If it's just for dev usage, why don't use UMR tool instead? ~/tools$ sudo ./umr -r *.mp*.mmMP1_SMN_EXT_SCRATCH0 0x0040 -Original Message- From: amd-gfx On Behalf Of Quan, Evan Sent: Monday, January 18, 2021 2:06 PM To: Lazar, Lijo ; amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander

RE: [PATCH 1/2] drm/amd/pm: fulfill the API for navi1x gfxoff state retrieving

2021-01-15 Thread Chen, Jiansong (Simon)
[AMD Public Use] Can you help explain why we need introduce such a callback? Seems it has presupposed pmfw's internal Implementation. Regards, Jiansong -Original Message- From: amd-gfx On Behalf Of Evan Quan Sent: Friday, January 15, 2021 5:34 PM To: amd-gfx@lists.freedesktop.org Cc: D

RE: [PATCH] drm/amd/display: fix the system memory page fault because of copy overflow

2021-01-15 Thread Chen, Jiansong (Simon)
[AMD Public Use] Hi Rui, Seems the change has violated the kernel coding style😊, please help check. https://www.kernel.org/doc/html/latest/process/coding-style.html Allocating memory .. The preferred form for passing a size of a struct is the following: p = kmalloc(sizeof(*p), ...); The alte

RE: [PATCH] drm/amdgpu: enable gpu recovery for navy_flounder

2021-01-11 Thread Chen, Jiansong (Simon)
! Regards, Jiansong -Original Message- From: Paul Menzel Sent: Monday, January 11, 2021 7:58 PM To: Chen, Jiansong (Simon) Cc: Zhou1, Tao ; Zhang, Hawking ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu: enable gpu recovery for navy_flounder Dear Jiansong, Am 11.01.21 um 10

RE: [PATCH] drm/amdgpu: correct releasing the same sdma fw repeatedly

2020-12-30 Thread Chen, Jiansong (Simon)
Ok, I will send another patch. Regards, Jiansong -Original Message- From: Zhang, Hawking Sent: Wednesday, December 30, 2020 6:02 PM To: Chen, Jiansong (Simon) ; amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao ; Chen, Jiansong (Simon) Subject: RE: [PATCH] drm/amdgpu: correct releasing

RE: [PATCH] drm/amdgpu: fix a memory protection fault when remove amdgpu device

2020-12-29 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] -Original Message- From: amd-gfx On Behalf Of Dennis Li Sent: Wednesday, December 30, 2020 2:46 PM To: amd-gfx@lists.freedesktop.org; Clements, John ; Zhang, Hawking ; Koenig, Christian Cc: Li, Dennis Subject: [PATCH] drm/amdgpu: fi

RE: [PATCH] drm/amdgpu: print mmhub client name for dimgrey_cavefish

2020-12-15 Thread Chen, Jiansong (Simon)
[AMD Public Use] Reviewed-by: Jiansong Chen -Original Message- From: Zhou1, Tao Sent: Wednesday, December 16, 2020 11:40 AM To: Chen, Jiansong (Simon) ; Gui, Jack ; Zhang, Hawking ; amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao Subject: [PATCH] drm/amdgpu: print mmhub client name for

RE: [PATCH] drm/amdgpu: set mode1 reset as default for dimgrey_cavefish

2020-12-15 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Jiansong Chen -Original Message- From: Zhou1, Tao Sent: Tuesday, December 15, 2020 6:23 PM To: Chen, Jiansong (Simon) ; Gui, Jack ; Zhang, Hawking ; amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao Subject: [PATCH] drm

Recall: [PATCH 5/5] drm/amd/pm: fulfill sienna cichlid 2nd usb2.0 port workaround

2020-12-09 Thread Chen, Jiansong (Simon)
Chen, Jiansong (Simon) would like to recall the message, "[PATCH 5/5] drm/amd/pm: fulfill sienna cichlid 2nd usb2.0 port workaround". ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

RE: [PATCH 5/5] drm/amd/pm: fulfill sienna cichlid 2nd usb2.0 port workaround

2020-12-09 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Hi Evan, Besides Navi21, other Navi2x Asics reuse sienna_cichlid_ppt.c and the callbacks, have you taken their user cases into consideration? Thanks! Regards, Jiansong -Original Message- From: amd-gfx On Behalf Of Evan Quan Sent: Wedn

RE: [PATCH] drm/amd/pm: update driver if version for dimgrey_cavefish

2020-12-07 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Jiansong Chen -Original Message- From: Zhou1, Tao Sent: Monday, December 7, 2020 2:06 PM To: Chen, Jiansong (Simon) ; Gui, Jack ; Zhang, Hawking ; amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao Subject: [PATCH] drm/amd

RE: [PATCH] drm/amdgpu: update GC golden setting for dimgrey_cavefish

2020-11-26 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Jiansong Chen -Original Message- From: Zhou1, Tao Sent: Friday, November 27, 2020 12:28 PM To: Chen, Jiansong (Simon) ; Gui, Jack ; Zhang, Hawking ; amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao Subject: [PATCH] drm

RE: [PATCH] drm/amd/pm: support runtime PPTable update for dimgrey_cavefish

2020-11-17 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Jiansong Chen -Original Message- From: Zhou1, Tao Sent: Tuesday, November 17, 2020 3:33 PM To: Chen, Jiansong (Simon) ; Gui, Jack ; Zhang, Hawking ; amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao Subject: [PATCH] drm

RE: [PATCH] drm/amd/pm: retire dimgrey_cavefish hardcode for the use of soft PTable

2020-11-16 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] In the subject Ptable->pptable, except that, Reviewed-by: Jiansong Chen -Original Message- From: Zhou1, Tao Sent: Tuesday, November 17, 2020 11:32 AM To: Chen, Jiansong (Simon) ; Gui, Jack ; Zhang, Hawking ; amd-

RE: [PATCH] drm/amd/pm: update driver if version for dimgrey_cavefish

2020-11-13 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Jiansong Chen -Original Message- From: Zhou1, Tao Sent: Friday, November 13, 2020 4:51 PM To: Chen, Jiansong (Simon) ; Gui, Jack ; Zhang, Hawking ; amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao Subject: [PATCH] drm/amd

RE: [PATCH] drm/amdgpu: update gfx golden setting for dimgrey_cavefish

2020-11-09 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Jiansong Chen -Original Message- From: Zhou1, Tao Sent: Tuesday, November 10, 2020 2:30 PM To: Chen, Jiansong (Simon) ; Gui, Jack ; Zhang, Hawking ; amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao Subject: [PATCH] drm

RE: [PATCH v2] drm/amdgpu: disable gfxoff if VCN is busy

2020-10-30 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Please ignore the change. -Original Message- From: Jiansong Chen Sent: Friday, October 30, 2020 10:57 PM To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Zhu, James ; Liu, Leo ; Zhou1, Tao ; Chen, Jiansong (Simon) Subject

RE: [PATCH] drm/amdgpu: disable gfxoff if VCN is busy

2020-10-30 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Hi James, Thanks for your input, v2 patch is sent out. Regards, Jiansong -Original Message- From: Zhu, James Sent: Friday, October 30, 2020 9:06 PM To: Chen, Jiansong (Simon) ; amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Zhu

RE: [PATCH] drm/amd/pm: update driver if file for sienna cichlid

2020-09-21 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Jiansong Chen -Original Message- From: amd-gfx On Behalf Of Likun Gao Sent: Tuesday, September 22, 2020 11:17 AM To: amd-gfx@lists.freedesktop.org Cc: Gao, Likun ; Feng, Kenneth ; Zhang, Hawking Subject: [PATCH] drm/amd

RE: [PATCH] drm/amd/pm: support runtime pptable update for sienna_cichlid etc.

2020-09-14 Thread Chen, Jiansong (Simon)
It makes nonsense to call gfxoff when smu failure has happened. Regards, Jiansong -Original Message- From: Chen, Guchun Sent: Monday, September 14, 2020 4:14 PM To: Chen, Jiansong (Simon) ; amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao ; Feng, Kenneth ; Quan, Evan ; Chen, Jiansong

RE: [PATCH] drm/amd/pm: update driver if file for sienna cichlid

2020-09-10 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Jiansong Chen -Original Message- From: Gao, Likun Sent: Thursday, September 10, 2020 4:27 PM To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Feng, Kenneth ; Chen, Jiansong (Simon) ; Gao, Likun Subject: [PATCH

RE: [PATCH] drm/amdgpu: add asd fw check before loading asd

2020-08-24 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Jiansong Chen -Original Message- From: Zhou1, Tao Sent: Tuesday, August 25, 2020 11:20 AM To: amd-gfx@lists.freedesktop.org; Zhang, Hawking ; Chen, Jiansong (Simon) ; Gui, Jack Cc: Zhou1, Tao Subject: [PATCH] drm

RE: [PATCH v2] drm/amd/pm: fix is_dpm_running() run error on 32bit system

2020-08-24 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Jiansong Chen -Original Message- From: Wang, Kevin(Yang) Sent: Monday, August 24, 2020 8:41 PM To: amd-gfx@lists.freedesktop.org Cc: Huang, Ray ; Deucher, Alexander ; Chen, Jiansong (Simon) ; Wang, Kevin(Yang) ; Chen

RE: [PATCH] drm/amd/pm: fix is_dpm_running() run error on 32bit system

2020-08-24 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Good point, but I wonder whether the outmost uint64_t cast is necessary? Regards, Jiansong -Original Message- From: amd-gfx On Behalf Of Kevin Sent: Monday, August 24, 2020 4:59 PM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexan

RE: [PATCH] drm/amd/powerplay: update driver if file for sienna_cichlid

2020-07-24 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] See my comments below. -Original Message- From: Gao, Likun Sent: Friday, July 24, 2020 5:39 PM To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Feng, Kenneth ; Chen, Jiansong (Simon) ; Gao, Likun Subject: [PATCH] drm/amd

RE: [PATCH] drm/amd/powerplay: skip invalid msg when smu set mp1 state

2020-07-21 Thread Chen, Jiansong (Simon)
[AMD Official Use Only - Internal Distribution Only] Then why we don't handle it directly in smu_cmn_send_smc_msg_with_param where is more near to the source of the problem. And there is similar logic already. if (index < 0) return index == -EACCES ? 0 : index; Regards, Jiansong -Original Me