[PATCH] drm/amdgpu: fix DRM_INFO flood if display core is not supported (bug 210921)

2021-01-07 Thread Alexandre Demers
This fix bug 210921 where DRM_INFO floods log when hitting an unsupported ASIC in amdgpu_device_asic_has_dc_support(). This info should be only called once. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

AMDGPU VCE 1: some info needed

2021-01-07 Thread Alexandre Demers
f it applies? 5- Any chance to have some code reviewed even if it still doesn't work if I send it on this list? 6- I have some patches on the side to help document the code and define variables (even for Radeon), a few typos fixed, etc. Should I send them on this list? Cheers Alexandre De

Re: AMDGPU VCE 1: some info needed

2021-01-08 Thread Alexandre Demers
On Fri, 2021-01-08 at 10:28 -0500, Alex Deucher wrote: > On Fri, Jan 8, 2021 at 3:11 AM Christian König > wrote: > > > > Hi Alexandre, > > > > Am 08.01.21 um 05:20 schrieb Alexandre Demers: > > > Hi there, > > > > > > Some of you may

Re: AMDGPU VCE 1: some info needed

2021-01-08 Thread Alexandre Demers
On Fri, 2021-01-08 at 15:00 -0500, Alex Deucher wrote: > On Fri, Jan 8, 2021 at 2:37 PM Alexandre Demers > wrote: > > > > > > On Fri, 2021-01-08 at 10:28 -0500, Alex Deucher wrote: > > > On Fri, Jan 8, 2021 at 3:11 AM Christian König > >

Re: [RFC 0/7] UVD support for SI in amdgpu

2020-01-04 Thread Alexandre Demers
nd people missing the UVD and VCE features should be the ones overriding the default choice. But this may not work for the majority (I don't know) and I understand that radeon is still the default for GCN 1.0/1.1. Cheers, Alexandre Demers On 2019-12-05 10:32, Deucher, Alexander w

[PATCH] drm/amdgpu/powerplay: enable LEDs on Fiji boards

2017-02-23 Thread Alexandre Demers
config(hwmgr); *>* + PP_ASSERT_WITH_CODE(0 == result, *>* + "Failed to setup dpm led config", return result); * will always lead to "result" being set to 0... Am I missing something? Alexandre Demers __

Re: [PATCH] drm/amdgpu/powerplay: enable LEDs on Fiji boards

2017-02-23 Thread Alexandre Demers
On Thursday, February 23, 2017, Alex Deucher wrote: > On Thu, Feb 23, 2017 at 5:50 PM, Alexandre Demers > > wrote: > > First, sorry for not replying directly as I should normally, but I'm not > on > > my usual computer, so I can't. That being said... > > &

[PATCH drm/amdgpu] Use correct mask in dce_v8_0_afmt_setmode() and fix comment typos.

2016-08-21 Thread Alexandre Demers
We were using the same mask twice. Looking at radeon, it seems we should be using HDMI_AVI_INFO_CONT instead as the second mask. Being there, fix typos in comments and improved readability. I haven't looked at other DCEs, the mask may also be wrong for them. Signed-off-by: Alexandre D

[PATCH drm/amdgpu] Fix indentation in dce_v8_0_audio_write_sad_regs()

2016-08-21 Thread Alexandre Demers
Fixed indentation for readability. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c index 3ff1258..c7e5d5f

Re: [PATCH drm/amdgpu] Fix indentation in dce_v8_0_audio_write_sad_regs()

2016-08-22 Thread Alexandre Demers
@lists.freedesktop.org] On Behalf > > Of Alexandre Demers > > Sent: Sunday, August 21, 2016 8:38 PM > > To: amd-gfx@lists.freedesktop.org > > Subject: [PATCH drm/amdgpu] Fix indentation in > > dce_v8_0_audio_write_sad_regs() > > For these and future patches,

amdgpu's dce_vX_0_afmt_setmode(): why so different from radeon's

2016-08-22 Thread Alexandre Demers
ces in the step order and even a few more registry read and write calls. Any clue will be welcomed. Cheers. -- Alexandre Demers ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Question about porting VCE1 to amdgpu

2017-06-14 Thread Alexandre Demers
e the last modifications need to be done? Thank you! Alexandre Demers ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Re: Question about porting VCE1 to amdgpu

2017-06-14 Thread Alexandre Demers
On Wed, 14 Jun 2017 at 13:09 Deucher, Alexander wrote: > > > *From:* amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] *On Behalf > Of *Christian König > *Sent:* Wednesday, June 14, 2017 12:37 PM > *To:* Alexandre Demers; Freedesktop - AMD-gfx > *Subject:* Re: Question

Re: Question about porting VCE1 to amdgpu

2017-06-27 Thread Alexandre Demers
keep you up to date. Alexandre On Wed, 14 Jun 2017 at 14:22 Deucher, Alexander wrote: > > > *From:* Alexandre Demers [mailto:alexandre.f.dem...@gmail.com] > *Sent:* Wednesday, June 14, 2017 1:30 PM > *To:* Deucher, Alexander; Christian König; Freedesktop - AMD-gfx > > > *

Re: [PATCH 0/1] [rfc] Port UVD from radeon for SI

2017-09-03 Thread Alexandre Demers
ig one. It is easier to review, comment, test and isolate problems. Also, about the header you added to the UVD firmware, this is one way to do it, or you could backport how it is done under radeon. This is the path I've chosen for now under VCE. I'll give a look at yo

[PATCH 0/6] Ground foundation for VCE 1 implementation

2017-09-07 Thread Alexandre Demers
nce I don't have as much time as I'd like to work on VCE 1 for now, but this could help others to help me on the task. If you are not satisfied with this first series, this can also be considered as a RFC. Please, comment as needed. Alexandre Demers (6): Add initial VCE_V1_0 file

[PATCH 4/6] Moving read and write pointer functions from radeon to amdgpu

2017-09-07 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/vce_v1_0.c | 62 --- 1 file changed, 36 insertions(+), 26 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v1_0.c index f541a4b5ac51..ab3b834758c6

[PATCH 3/6] Small precision when failing to load legacy firmware.

2017-09-07 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- drivers/gpu/drm/radeon/radeon_uvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_uvd.c b/drivers/gpu/drm/radeon/radeon_uvd.c index 7431eb4a11b7..b4fb07ad9f4a 100644 --- a/drivers/gpu/drm/radeon/radeon_uvd.c

[PATCH 2/6] Reorganize, rename, move and split some VCE 1 defines.

2017-09-07 Thread Alexandre Demers
For consistency with other files under amdgpu driver. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si.c| 15 +++- drivers/gpu/drm/amd/amdgpu/si_dma.c| 5 +- drivers/gpu/drm/amd/amdgpu/si_ih.c | 21 +++--- drivers/gpu/drm/amd

[PATCH 6/6] Fix indentation.

2017-09-07 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 08998639daeb..bb860faa8a95 100644 --- a/drivers/gpu/drm/amd/amdgpu/si.c +++ b/drivers

[PATCH 1/6] Add initial VCE_V1_0 files.

2017-09-07 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/vce_v1_0.c | 384 ++ drivers/gpu/drm/amd/amdgpu/vce_v1_0.h | 29 +++ 2 files changed, 413 insertions(+) create mode 100644 drivers/gpu/drm/amd/amdgpu/vce_v1_0.c create mode 100644 drivers/gpu/drm

[PATCH 5/6] Add support for SI's VCE firmwares (with and without header)

2017-09-07 Thread Alexandre Demers
Inspired on how it is done under radeon for UVD firmwares. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 100 1 file changed, 75 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu

Re: [PATCH 0/6] Ground foundation for VCE 1 implementation

2017-09-08 Thread Alexandre Demers
ost the next series in the next few days as a RFC so others can help me go through. I just need to split the code in a few patches. Cheers, Alex > > Thanks, > Christian. > > Am 08.09.2017 um 04:48 schrieb Alexandre Demers: >> This is the foundation for VCE 1 implementation, mostl

Re: [PATCH 0/6] Ground foundation for VCE 1 implementation

2017-09-08 Thread Alexandre Demers
Oh and patch 3 "Small precision when failing to load legacy firmware" should have been a standalone patch, it is related to the radeon driver. I'll send it as so with drm/radeon in the title. Alexandre Demers On 2017-09-08 07:55, Alexandre Demers wrote: > Hi Christian! >

[PATCH] drm/radeon: Small precision when failing to load UVD legacy firmware.

2017-09-08 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- drivers/gpu/drm/radeon/radeon_uvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_uvd.c b/drivers/gpu/drm/radeon/radeon_uvd.c index 7431eb4a11b7..b4fb07ad9f4a 100644 --- a/drivers/gpu/drm/radeon/radeon_uvd.c

[amdgpu] script to generate a VCE 1.0 amdgpu compatible firmware

2017-11-22 Thread Alexandre Demers
D could release a new UVD firmware with header and correct 40bit addressing, could you ask if an official VCE 1.0 firmware with an official header (and whatever else could be needed) be released at the same time? Cheers -- Alexandre Demers ___ amd

Re: [amdgpu] script to generate a VCE 1.0 amdgpu compatible firmware

2017-11-28 Thread Alexandre Demers
On 2017-11-23 00:53, Alexandre Demers wrote: > Hi, > > I just want to let you know that I'm still alive and still committed to > porting VCE 1.0 from radeon to amdgpu. However, for many reasons, I've > been pretty much unable to work on the code since my last communica

Re: [PATCH] amdgpu: expose the AMDGPU_GEM_CREATE_VRAM_CLEARED flag

2016-07-21 Thread Alexandre Demers
Hi Flora. I suppose this addition preceeds AMDGPU_GEM_CREATE_VRAM_CLEARED's usage that will be introduced in upcoming patches? Could you fix the commit message VARM -> VRAM? With that fixed, you can add my Reviewed-by: Alexandre Demers Alexandre Demers On 2016-07-22 00:02, F

Re: [PATCH] amdgpu: expose the AMDGPU_GEM_CREATE_VRAM_CLEARED flag

2016-07-21 Thread Alexandre Demers
Forget my question, I just saw your other patches. ;) Alexandre Demers On 2016-07-22 02:32, Alexandre Demers wrote: Hi Flora. I suppose this addition preceeds AMDGPU_GEM_CREATE_VRAM_CLEARED's usage that will be introduced in upcoming patches? Could you fix the commit message VARM -&

Re: [PATCH 1/3] drm/amdgpu: add bypass mode for vce3.0

2016-07-24 Thread Alexandre Demers
Please, keep a similar syntax to other functions and to the file name. "vce_v3_set_bypass_mode" should be "vce_v3_0_set_bypass_mode". Alexandre Demers On 2016-07-21 20:10, Eric Huang wrote: Looks good to me. Reviewed-by: Eric Huang Regards, Eric On 07/18/2016 12:

Re: [PATCH] drm/radeon: drop confusing message about backlight control

2016-07-27 Thread Alexandre Demers
Reviewed-by: Alexandre Demers Alexandre Demers On 2016-07-27 16:44, Alex Deucher wrote: The message is harmless and confusing. On PX systems, there is one ATIF method, but potentially multiple GPUs leading to an error on the GPU with no backlight control. Bug: https://bugzilla.kernel.org

Any chance of seeing a merge from drm-next-4.8-wip-si?

2016-07-31 Thread Alexandre Demers
me to do it in comparison. Now, if I can be of any help, let me know, my R9 280X is waiting for some tests. Cheers, -- Alexandre Demers ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Re: Any chance of seeing a merge from drm-next-4.8-wip-si?

2016-08-01 Thread Alexandre Demers
Thank you for the update. I'll have a go on it and I'll be following what goes in it. Alexandre Demers On 2016-08-01 17:14, Alex Deucher wrote: On Mon, Aug 1, 2016 at 2:29 AM, Alexandre Demers wrote: Hi Alex, I'd like to know if there is any chance to see a merge / pull req

Re: Any chance of seeing a merge from drm-next-4.8-wip-si?

2016-08-03 Thread Alexandre Demers
t and/or track with people working on bringing GCN 1.0 (and 1.1) to the amdgpu driver (I'm able to compare the result of using radeon+modesetting VS amdgpu+modesetting to put aside bugs that could be related to modesetting itself). Cheers Alexandre Demers On 2016-08-01 17:14, Alex De

[PATCH] Standardizing the info message for unimplemented functions

2016-08-07 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c index 07e0475..9e327be 100644 --- a/drivers/gpu

Re: [PATCH] Standardizing the info message for unimplemented functions

2016-08-08 Thread Alexandre Demers
On Mon, 8 Aug 2016 at 01:22 Huang Rui wrote: > On Sun, Aug 07, 2016 at 05:17:41PM -0400, Alexandre Demers wrote: > > Signed-off-by: Alexandre Demers > > > > --- > > drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 22 +++--- > > 1 file change

Implementations of missing dce6 functions: how should patches be organized?

2016-08-08 Thread Alexandre Demers
functions)? Thanks for your input. Alexandre Demers ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Wrong shift in dce_v8_0_afmt_update_ACR() under dce_v8_0.c?

2016-08-08 Thread Alexandre Demers
of the same value): WREG32(mmHDMI_ACR_32_0 + offset, (acr.cts_32khz << HDMI_ACR_32_0__HDMI_ACR_CTS_32__SHIFT)); Cheers -- Alexandre Demers ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

[PATCH drm/amdgpu] Fixing copy-paste errors and removing unneeded newlines

2016-08-10 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c index 4fdfab1..3ff1258 100644 --- a/drivers/gpu/drm/amd/amdgpu

radeon VS amdgpu: _afmt_init() behavior if kzalloc fails

2016-08-12 Thread Alexandre Demers
h is already ready if needed, I could send it later from home if the amdgpu's behavior is the one that we are looking for. Cheers, Alexandre Demers ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Re: radeon VS amdgpu: _afmt_init() behavior if kzalloc fails

2016-08-12 Thread Alexandre Demers
eaking if you fail to kmalloc a few bytes you've got bigger > problems to worry about than your audio not working ideally. > > > Tom > > > ------ > *From:* amd-gfx on behalf of > Alexandre Demers > *Sent:* Friday, August 12, 2016 11:43 > *To

Re: radeon VS amdgpu: _afmt_init() behavior if kzalloc fails

2016-08-12 Thread Alexandre Demers
lly speaking if during > module init a kmalloc of 100 bytes fails something bad is happening and you > want to abort init anyways (so failing to load just because part of DCE > fails is probably a good thing). > > > Tom > > > > > >

Re: radeon VS amdgpu: _afmt_init() behavior if kzalloc fails

2016-08-12 Thread Alexandre Demers
that amdgpu is > meant to support and it's not a critical bugfix (or API update) maybe time > is better spent getting support on the amdgpu side going for that hardware > instead. > > > Cheers, > > Tom > > > -- > *From:* Alexandre

[AMDGPU/PM/legacy] PATCH SI/CIK: suspend / resume gpu hang [issue 2524]

2025-02-05 Thread Alexandre Demers
egression I could find if requested. Alexandre Demers >From e62461803e84c181d6d237e27a215b788d72fa41 Mon Sep 17 00:00:00 2001 From: "chr[]" Date: Sun, 23 Apr 2023 06:13:47 +0200 Subject: [PATCH] amdgpu: fix suspend/resume issues resume and irq handler happily races in set_p

[PATCH 14/18] drm/amdgpu: move si_dma.c away from sid.h and si_enums.h

2025-03-17 Thread Alexandre Demers
Taking the opportunity to add some comments from cik_sdma.c Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si_dma.c | 108 drivers/gpu/drm/amd/amdgpu/sid.h| 36 -- 2 files changed, 61 insertions(+), 83 deletions(-) diff --git a/drivers

[PATCH 07/18] drm/amdgpu: move DCE6 away from sid.h and si_enums.h defines

2025-03-17 Thread Alexandre Demers
This cleans up DCE6. I added some minor tweaks taken from CIK to exit early Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 154 +++ drivers/gpu/drm/amd/amdgpu/si_enums.h | 14 -- drivers/gpu/drm/amd/amdgpu/sid.h | 275

Re: [PATCH 11/18] drm/pm/legacy-dpm: move SI away from sid.h and si_enums.h

2025-03-19 Thread Alexandre Demers
On Mon, Mar 17, 2025 at 11:04 AM Alex Deucher wrote: > > On Mon, Mar 17, 2025 at 2:38 AM Alexandre Demers > wrote: > > > > Signed-off-by: Alexandre Demers > > --- > > drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 338 +++-- > > drivers/g

[PATCH 16/18] drm/amdgpu: keep removing sid.h dependency from si_dma.c

2025-03-23 Thread Alexandre Demers
Move and rename DMA_SEM_INCOMPLETE_TIMER_CNTL and DMA_SEM_WAIT_FAIL_TIMER_CNTL in oss_1_0_d.h Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si_dma.c | 6 +++--- drivers/gpu/drm/amd/amdgpu/sid.h | 2 -- drivers/gpu/drm/amd/include/asic_reg

[PATCH 11/18] drm/pm/legacy-dpm: move SI away from sid.h and si_enums.h

2025-03-21 Thread Alexandre Demers
Replace defines for the ones under smu_6_0_d.h and smu_6_0_sh_mask.h Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 338 +++-- drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c | 36 +-- 2 files changed, 190 insertions(+), 184 deletions(-) diff --git

[PATCH 10/18] drm/amdgpu: add missing SMU6 defines, shifts and masks

2025-03-21 Thread Alexandre Demers
They will be used later when switching away from sid.h/si_enums.h. To prevent redefinition clashes, comment out the ones in sid.h. They will be removed later. Signed-off-by: Alexandre Demers --- .../drm/amd/include/asic_reg/smu/smu_6_0_d.h | 44 .../include/asic_reg/smu

[PATCH 01/18] drm/amdgpu: move GFX6 defines into gfx_v6_0.c

2025-03-21 Thread Alexandre Demers
Send a few GFX6 defines where it's used in GFX6. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 3 +++ drivers/gpu/drm/amd/amdgpu/si_enums.h | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/driver

[PATCH 05/18] drm/admgpu: move si_ih.c away from sid.h defines

2025-03-21 Thread Alexandre Demers
They are properly defined under oss_1_0_d.h Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si_ih.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_ih.c b/drivers/gpu/drm/amd/amdgpu/si_ih.c index 94468c87122a

[PATCH 09/18] drm/amdgpu: add missing GFX6 defines

2025-03-21 Thread Alexandre Demers
They will be used later when switching away from sid.h/si_enums.h. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/include/asic_reg/gca/gfx_6_0_d.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/include/asic_reg/gca/gfx_6_0_d.h b/drivers/gpu/drm/amd/include

[PATCH 14/18] drm/amdgpu: move si_dma.c away from sid.h and si_enums.h

2025-03-21 Thread Alexandre Demers
Replace defines for the ones in oss_1_0_d.h and oss_1_0_sh_mask.h Taking the opportunity to add some comments taken from cik_sdma.c Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si_dma.c | 108 drivers/gpu/drm/amd/amdgpu/sid.h| 36

[PATCH 3/5] drm/amdgpu: small cleanup to CIK SDMA

2025-03-22 Thread Alexandre Demers
Tidy cik_sdma_hw_init() by returning directly cik_sdma_start()'s result. Keep amdgpu_cik_gpu_check_soft_reset() early declaration with others. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-)

[PATCH 6/5] drm/amdgpu: fix style in dce_v8_0.c and in vi.c

2025-03-22 Thread Alexandre Demers
Bring things on a single line and fix spacing. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 10 +++--- drivers/gpu/drm/amd/amdgpu/vi.c | 8 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b

[PATCH 1/5] drm/amdgpu: use gmc_v7_0_is_idle() since it is available under GMC7

2025-03-22 Thread Alexandre Demers
gmc_v7_0_is_idle() does exactly what we need, so use it. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c index

[PATCH 0/5] Small tidy up of CIK code

2025-03-22 Thread Alexandre Demers
This series tidy up CIK code a bit. It uses some functions already available to remove redundant code in GMC7 and CIK SDMA. Some GOLDEN defines are moved into GFX7, the only place where they are used. It fixes coding style in VI and DCE8. Alexandre Demers (5): drm/amdgpu: use gmc_v7_0_is_idle

[PATCH 2/5] drm/amdgpu: use cik_sdma_is_idle() in CIK SDMA

2025-03-22 Thread Alexandre Demers
cik_sdma_is_idle() does exactly what we need, so use it. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c index

Re: [PATCH 6/5] drm/amdgpu: fix style in dce_v8_0.c and in vi.c

2025-03-22 Thread Alexandre Demers
This should be titled patch 5/5. There was initially another one in the lot about radeon. However, it was removed from the series and sent alone. Alexandre On Sat, Mar 22, 2025 at 2:37 PM Alexandre Demers wrote: > > Bring things on a single line and fix spacing. > > Signed-off-b

Re: [PATCH 5/6] drm/radeon: fix MAX_POWER_SHIFT value

2025-03-22 Thread Alexandre Demers
The title's prefix should only indicate [PATCH]. It was part of the series just sent a moment ago, but it was removed from it because it concerned drm/radeon. Alexandre On Sat, Mar 22, 2025 at 2:39 PM Alexandre Demers wrote: > > While I don't think it is being used anywhere, if

[PATCH 13/18] drm/amdgpu: move si.c away from sid.h

2025-03-21 Thread Alexandre Demers
Replace defines by the ones added earlier to GFX6, SMU6 and DCE6 Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si.c | 369 1 file changed, 185 insertions(+), 184 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd

[PATCH 08/18] drm/amdgpu: add missing DMA defines, shifts and masks

2025-03-21 Thread Alexandre Demers
They will be used later when switching away from sid.h/si_enums.h. Signed-off-by: Alexandre Demers --- .../drm/amd/include/asic_reg/oss/oss_1_0_d.h | 21 +++-- .../include/asic_reg/oss/oss_1_0_sh_mask.h| 43 +++ 2 files changed, 61 insertions(+), 3 deletions(-) diff

[PATCH 17/18] drm/amdgpu: cleanup DCE6 a bit more

2025-03-21 Thread Alexandre Demers
Use shifts already available in DCE6's defines, masks and shifts. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/sid.h | 8 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/a

[PATCH 4/5] drm/amdgpu: move X_GB_ADDR_CONFIG_GOLDEN in GFX7

2025-03-22 Thread Alexandre Demers
[BONAIRE|HAWAII]_GB_ADDR_CONFIG_GOLDEN are only used by GFX7. So keep them where they are needed. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/cikd.h | 3 --- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a

[PATCH 5/6] drm/radeon: fix MAX_POWER_SHIFT value

2025-03-22 Thread Alexandre Demers
While I don't think it is being used anywhere, if it were used, it would be wrong. We can base this assumption on MAX_POWER_MASK, where the shift is by 16 bits. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/radeon/sid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: [PATCH v2 00/18] Properly wire defines, shifts and masks in SI and cleanup

2025-03-22 Thread Alexandre Demers
I should have written "v2" in the title Alexandre On Fri., Mar. 21, 2025, 21:47 Alexandre Demers, < alexandre.f.dem...@gmail.com> wrote: > The following series is intented to remove duplicated defines, shifts and > masks or > to classify them where they belong. si_e

[PATCH 10/18] drm/amdgpu: add missing SMU6 defines, shifts and masks

2025-03-17 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- .../drm/amd/include/asic_reg/smu/smu_6_0_d.h | 44 .../include/asic_reg/smu/smu_6_0_sh_mask.h| 190 +- 2 files changed, 230 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/include/asic_reg/smu/smu_6_0_d.h b/drivers

[PATCH 01/18] drm/amdgpu: move GFX6 defines into gfx_v6_0.c

2025-03-16 Thread Alexandre Demers
Send a few GFX6 defines where it's used in GFX6. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 3 +++ drivers/gpu/drm/amd/amdgpu/si_enums.h | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/driver

[PATCH 11/18] drm/pm/legacy-dpm: move SI away from sid.h and si_enums.h

2025-03-16 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 338 +++-- drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c | 36 +-- 2 files changed, 190 insertions(+), 184 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c b/drivers/gpu/drm/amd

[PATCH 03/18] drm/amdgpu: use proper defines, shifts and masks in DCE6 code

2025-03-16 Thread Alexandre Demers
By replacing VGA_VSTATUS_CNTL by VGA_RENDER_CONTROL__VGA_VSTATUS_CNTL_MASK, we also need to fix its usage in GMC6. Note: VGA_VSTATUS_CNTL's binary value was inverted in dce_6_0_sh_mask.h, so we need to invert its value where it was used. Signed-off-by: Alexandre Demers --- drivers/gpu/dr

[PATCH 08/18] drm/amdgpu: add missing DMA defines, shifts and masks

2025-03-16 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- .../drm/amd/include/asic_reg/oss/oss_1_0_d.h | 21 +++-- .../include/asic_reg/oss/oss_1_0_sh_mask.h| 43 +++ 2 files changed, 61 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/include/asic_reg/oss/oss_1_0_d.h b

[PATCH 06/18] drm/amdgpu: use GRPH_SECONDARY_SURFACE_ADDRESS_MASK with GRPH_SECONDARY_SURFACE_ADDRESS in DCE6

2025-03-16 Thread Alexandre Demers
It seems a copy-paste error: since we are working with mmGRPH_SECONDARY_SURFACE_ADDRESS, GRPH_SECONDARY_SURFACE_ADDRESS__GRPH_SECONDARY_SURFACE_ADDRESS_MASK should be used. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 17/18] drm/amdgpu: cleanup DCE6 a bit more

2025-03-16 Thread Alexandre Demers
Use shifts already available in DCE6's defines, masks and shifts. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/sid.h | 8 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/a

[PATCH 12/18] drm/amdgpu: fix GFX6 variables for sid.h cleanup

2025-03-16 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c index 5f85c3b63971..f34980c79a7e 100644 --- a/drivers/gpu/drm

[PATCH 00/18] Properly wire defines, shifts and masks in SI and cleanup

2025-03-16 Thread Alexandre Demers
ported to DCE6, GFX6 and GMC6 defines, shifts and masks. There location was based on CIK and later. However, most of them were already available, but not used where they could be. This series is running on my PITCAIRN setup without any visible drawbacks. Alexandre Demers (18): drm/amdgpu: move

[PATCH 09/18] drm/amdgpu: add missing GFX6 defines

2025-03-16 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/include/asic_reg/gca/gfx_6_0_d.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/include/asic_reg/gca/gfx_6_0_d.h b/drivers/gpu/drm/amd/include/asic_reg/gca/gfx_6_0_d.h index c75aee25619e..a1240dd430aa 100644

[PATCH 15/18] drm/amdgpu: huge sid.h cleanup, drop substituted defines.

2025-03-16 Thread Alexandre Demers
Now that we are using the proper defines, cleanup useless old "substituted" defines. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/sid.h | 1219 +- 1 file changed, 9 insertions(+), 1210 deletions(-) diff --git a/drivers/gpu/drm/amd/amdg

[PATCH 04/18] drm/amdgpu: remove PACKET3 duplicated defines from si_enums.h

2025-03-16 Thread Alexandre Demers
PACKET3 is already in sid.h, as it is done under cikd.h for CIK Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si_enums.h | 123 -- 1 file changed, 123 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_enums.h b/drivers/gpu/drm/amd/amdgpu

[PATCH 18/18] drm/amdgpu: continue cleaning up sid.h and si_enums.h

2025-03-16 Thread Alexandre Demers
Remove more duplicated defines and move some in sid.h for coherence with CIK. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si_enums.h | 90 +-- drivers/gpu/drm/amd/amdgpu/sid.h | 16 - 2 files changed, 14 insertions(+), 92 deletions(-) diff

[PATCH 16/18] drm/amdgpu: keep removing sid.h dependency from si_dma.c

2025-03-16 Thread Alexandre Demers
Move and rename DMA_SEM_INCOMPLETE_TIMER_CNTL and DMA_SEM_WAIT_FAIL_TIMER_CNTL in oss_1_0_d.h Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si_dma.c | 6 +++--- drivers/gpu/drm/amd/amdgpu/sid.h | 2 -- drivers/gpu/drm/amd/include/asic_reg

[PATCH 05/18] drm/admgpu: move si_ih.c away from sid.h defines

2025-03-16 Thread Alexandre Demers
They are properly defined under oss_1_0_d.h Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si_ih.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_ih.c b/drivers/gpu/drm/amd/amdgpu/si_ih.c index 94468c87122a

[PATCH 13/18] drm/amdgpu: move si.c away from sid.h

2025-03-16 Thread Alexandre Demers
Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si.c | 369 1 file changed, 185 insertions(+), 184 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 75d3b7471c68..3b8c65a966b9 100644 --- a/drivers

[PATCH 04/18] drm/amdgpu: remove PACKET3 duplicated defines from si_enums.h

2025-04-04 Thread Alexandre Demers
PACKET3 is already in sid.h, as it is done under cikd.h for CIK Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si_enums.h | 123 -- 1 file changed, 123 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_enums.h b/drivers/gpu/drm/amd/amdgpu

[PATCH 12/18] drm/amdgpu: make GFX6 easier to read

2025-04-05 Thread Alexandre Demers
Just fix the style and add a comment for reading easiness Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c

[PATCH 18/18] drm/amdgpu: continue cleaning up sid.h and si_enums.h

2025-04-05 Thread Alexandre Demers
Remove more duplicated defines and move some in sid.h for coherence with CIK. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si_enums.h | 90 +-- drivers/gpu/drm/amd/amdgpu/sid.h | 16 - 2 files changed, 14 insertions(+), 92 deletions(-) diff

[PATCH 13/18] drm/amdgpu: move si.c away from sid.h

2025-04-05 Thread Alexandre Demers
Replace defines by the ones added earlier to GFX6, SMU6 and DCE6 Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si.c | 369 1 file changed, 185 insertions(+), 184 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd

[PATCH 0/2] drm/amdgpu: better complete DCE6 and GMC6

2025-04-05 Thread Alexandre Demers
First patch moves some DCE files around so they are distributed as are other DCE files Second patch implements gmc_v6_0_set_clockgating_state(), which was mostly there, but commented out. A few tweeks were needed to make it work under amdgpu. Alexandre Demers (2): drm/amd/display/dc

[PATCH 07/18] drm/amdgpu: move DCE6 away from sid.h and si_enums.h defines

2025-04-05 Thread Alexandre Demers
This cleans up DCE6. I added some minor tweaks taken from CIK to exit early Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 154 +++ drivers/gpu/drm/amd/amdgpu/si_enums.h | 14 -- drivers/gpu/drm/amd/amdgpu/sid.h | 275

[PATCH] drm/amdgpu: still cleanup sid.h

2025-04-06 Thread Alexandre Demers
The defines, shifts and masks are already available in dce_6_0_d.h, dce_6_0_sh_mask.h. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/si.c | 26 +- drivers/gpu/drm/amd/amdgpu/sid.h | 16 2 files changed, 13 insertions(+), 29 deletions

Re: [PATCH 6/5] drm/amdgpu: fix style in dce_v8_0.c and in vi.c

2025-03-26 Thread Alexandre Demers
On Mon, Mar 24, 2025 at 2:21 PM Alex Deucher wrote: > > On Sat, Mar 22, 2025 at 2:48 PM Alexandre Demers > wrote: > > > > Bring things on a single line and fix spacing. > > > > Signed-off-by: Alexandre Demers > > --- > > drivers/gpu/drm/amd/amdgp

Re: [PATCH 10/18] drm/amdgpu: add missing SMU6 defines, shifts and masks

2025-03-26 Thread Alexandre Demers
On Mon, Mar 24, 2025 at 3:03 PM Alex Deucher wrote: > > On Fri, Mar 21, 2025 at 9:48 PM Alexandre Demers > wrote: > > > > They will be used later when switching away from sid.h/si_enums.h. > > > > To prevent redefinition clashes, comment out the ones in sid.

[PATCH 15/18] drm/amdgpu: huge sid.h cleanup, drop substituted defines.

2025-03-27 Thread Alexandre Demers
Now that we are using the proper defines, cleanup useless old "substituted" defines. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/sid.h | 1219 +- 1 file changed, 9 insertions(+), 1210 deletions(-) diff --git a/drivers/gpu/drm/amd/amdg

[PATCH V3 00/18] Properly wire defines, shifts and masks in SI and cleanup

2025-03-27 Thread Alexandre Demers
atches 11, 13 and 15: Correct accordingly to patch 10 Alexandre Demers (18): drm/amdgpu: move GFX6 defines into gfx_v6_0.c drm/amdgpu: wire up defines, shifts and masks through SI code drm/amdgpu: use proper defines, shifts and masks in DCE6 code drm/amdgpu: remove PACKET3 duplicated def

[PATCH 10/18] drm/amdgpu: add missing SMU6 defines, shifts and masks

2025-03-27 Thread Alexandre Demers
They will be used later when switching away from sid.h/si_enums.h. Signed-off-by: Alexandre Demers --- .../drm/amd/include/asic_reg/smu/smu_6_0_d.h | 44 .../include/asic_reg/smu/smu_6_0_sh_mask.h| 190 +- 2 files changed, 230 insertions(+), 4 deletions(-) diff --git

[PATCH 11/18] drm/pm/legacy-dpm: move SI away from sid.h and si_enums.h

2025-03-27 Thread Alexandre Demers
Replace defines for the ones under smu_6_0_d.h and smu_6_0_sh_mask.h Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 338 +++-- drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c | 36 +-- 2 files changed, 190 insertions(+), 184 deletions(-) diff --git

[PATCH 0/6] drm/amdgpu and drm/radeon: a slew of small fixes

2025-04-07 Thread Alexandre Demers
This series goes from fixing typos in amdgpu and radeon to renaming functions in DCE11.0 so it follows the convention of using a DCE/DCN version prefix for naming functions. Alexandre Demers (6): drm/amdgpu: rename function to follow naming convention in dce110 drm/amdgpu: add missing

[PATCH 3/6] drm/amdgpu: fix typo in atombios.h

2025-04-07 Thread Alexandre Demers
"aligned" not "aligend" Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/include/atombios.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/atombios.h b/drivers/gpu/drm/amd/include/atombios.h index b78360a71bc9..52bac

[PATCH 5/6] drm/amdgpu: fix duplicated value setting in dce100_resource_construct()

2025-04-07 Thread Alexandre Demers
i2c_speed_in_khz was set twice with the same values. Looking at other DCE versions, we probably wanted to set the value for i2c_speed_in_khz_hdcp. Signed-off-by: Alexandre Demers --- .../gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c| 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 1/6] drm/amdgpu: rename function to follow naming convention in dce110

2025-04-07 Thread Alexandre Demers
The prefix dce110 is used on all functions, but init_pipes() and init_hw(). Under DCN, these sames functions are prefixed. Let's keep thing coherent. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c | 8 1 file changed, 4 insertions(

  1   2   >