RE: [PATCH] drm/amd/powerplay: added vega20 overdrive support

2018-08-30 Thread Quan, Evan
Make sense to me. I will update the patch accordingly. Regards, Evan > -Original Message- > From: Alex Deucher > Sent: 2018年8月31日 12:19 > To: Quan, Evan > Cc: amd-gfx list ; Deucher, Alexander > ; Zhu, Rex > Subject: Re: [PATCH] drm/amd/powerplay: added vega20 overdrive support > > On

Re: [PATCH 06/17] drm/amd/display: remove dead dc vbios code

2018-08-30 Thread Alex Deucher
On Thu, Aug 30, 2018 at 5:34 PM Bhawanpreet Lakha wrote: > > From: Dmytro Laktyushkin > > Change-Id: Id1e7c39db419f13cf478c6a0c6f4b84c039acffe > Signed-off-by: Dmytro Laktyushkin > Reviewed-by: Charlene Liu > Acked-by: Bhawanpreet Lakha > --- >

Re: [PATCH] drm/amd/powerplay: added vega20 overdrive support

2018-08-30 Thread Alex Deucher
On Thu, Aug 30, 2018 at 11:47 PM Quan, Evan wrote: > > > If so, we should separate them and > > use something like my earlier proposal where we separate the voltage > > curve from the clk settings. > There is one more thing. Previously these OD APIs mix clock and voltage > settings together. >

[PATCH v2 01/12] fbdev: show fbdev number for debugging

2018-08-30 Thread Michał Mirosław
Signed-off-by: Michał Mirosław Acked-by: Bartlomiej Zolnierkiewicz Acked-by: Daniel Vetter --- drivers/video/fbdev/core/fbmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c index

[PATCH v2 07/12] drm/mgag200: use simpler remove_conflicting_pci_framebuffers()

2018-08-30 Thread Michał Mirosław
Remove duplicated call, while at it. Signed-off-by: Michał Mirosław Acked-by: Daniel Vetter --- drivers/gpu/drm/mgag200/mgag200_drv.c | 21 + drivers/gpu/drm/mgag200/mgag200_main.c | 9 - 2 files changed, 1 insertion(+), 29 deletions(-) diff --git

[PATCH v2 04/12] drm/amdgpu: use simpler remove_conflicting_pci_framebuffers()

2018-08-30 Thread Michał Mirosław
Signed-off-by: Michał Mirosław Acked-by: Alex Deucher Acked-by: Daniel Vetter --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 24 +--- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

[PATCH v2 02/12] fbdev: allow apertures == NULL in remove_conflicting_framebuffers()

2018-08-30 Thread Michał Mirosław
Interpret (otherwise-invalid) NULL apertures argument to mean all-memory range. This will allow to remove several duplicates of this code from drivers in following patches. Signed-off-by: Michał Mirosław [for v1] Acked-by: Bartlomiej Zolnierkiewicz --- v2: added kerneldoc to corresponding DRM

[PATCH v2 06/12] drm/cirrus: use simpler remove_conflicting_pci_framebuffers()

2018-08-30 Thread Michał Mirosław
Signed-off-by: Michał Mirosław Acked-by: Daniel Vetter --- drivers/gpu/drm/cirrus/cirrus_drv.c | 23 +-- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.c b/drivers/gpu/drm/cirrus/cirrus_drv.c index 69c4e352dd78..85ed8657c862

[PATCH v2 10/12] drm/vc4: use simpler remove_conflicting_framebuffers(NULL)

2018-08-30 Thread Michał Mirosław
Use remove_conflicting_framebuffers(NULL) instead of open-coding it. Signed-off-by: Michał Mirosław Acked-by: Eric Anholt Acked-by: Daniel Vetter --- drivers/gpu/drm/vc4/vc4_drv.c | 20 +--- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git

[PATCH v2 11/12] drm/sun4i: use simpler remove_conflicting_framebuffers(NULL)

2018-08-30 Thread Michał Mirosław
Use remove_conflicting_framebuffers(NULL) instead of duplicating it. Signed-off-by: Michał Mirosław Acked-by: Maxime Ripard Acked-by: Daniel Vetter --- drivers/gpu/drm/sun4i/sun4i_drv.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git

[PATCH v2 12/12] drm/tegra: kick out simplefb

2018-08-30 Thread Michał Mirosław
Kick out firmware fb when loading Tegra driver. Signed-off-by: Michał Mirosław Acked-by: Daniel Vetter --- drivers/gpu/drm/tegra/drm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 7afe2f635f74..b51ec138fed2 100644 ---

[PATCH v2 00/12] remove_conflicting_framebuffers() cleanup

2018-08-30 Thread Michał Mirosław
This series cleans up duplicated code for replacing firmware FB driver with proper DRI driver and adds handover support to Tegra driver. This is a sligtly updated version of a series sent on 24 Nov 2017. v2: - rebased on current drm-next - dropped staging/sm750fb changes - added kernel docs

[PATCH v2 03/12] fbdev: add remove_conflicting_pci_framebuffers()

2018-08-30 Thread Michał Mirosław
Almost all PCI drivers using remove_conflicting_framebuffers() wrap it with the same code. Signed-off-by: Michał Mirosław [for v1] Acked-by: Bartlomiej Zolnierkiewicz --- v2: add kerneldoc for DRM helper --- drivers/video/fbdev/core/fbmem.c | 22 ++

[PATCH v2 08/12] drm/radeon: use simpler remove_conflicting_pci_framebuffers()

2018-08-30 Thread Michał Mirosław
Signed-off-by: Michał Mirosław Acked-by: Alex Deucher Acked-by: Daniel Vetter --- drivers/gpu/drm/radeon/radeon_drv.c | 23 +-- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index

[PATCH v2 09/12] drm/virtio: use simpler remove_conflicting_pci_framebuffers()

2018-08-30 Thread Michał Mirosław
Signed-off-by: Michał Mirosław Acked-by: Daniel Vetter --- drivers/gpu/drm/virtio/virtgpu_drm_bus.c | 24 +++- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_drm_bus.c b/drivers/gpu/drm/virtio/virtgpu_drm_bus.c index

RE: [PATCH] drm/amd/powerplay: added vega20 overdrive support

2018-08-30 Thread Quan, Evan
> If so, we should separate them and > use something like my earlier proposal where we separate the voltage > curve from the clk settings. There is one more thing. Previously these OD APIs mix clock and voltage settings together. That is "s/m level clock voltage". Do you think whether we should

RE: [PATCH] drm/amd/powerplay: added vega20 overdrive support

2018-08-30 Thread Quan, Evan
Hi Alex, comment inline > -Original Message- > From: Alex Deucher > Sent: 2018年8月30日 23:25 > To: Quan, Evan > Cc: amd-gfx list ; Deucher, Alexander > ; Zhu, Rex > Subject: Re: [PATCH] drm/amd/powerplay: added vega20 overdrive support > > On Thu, Aug 30, 2018 at 1:56 AM Quan, Evan

Re: [PATCH 1/4] drm/amdgpu/gmc9: rework stolen vga memory handling

2018-08-30 Thread Zhang, Jerry (Junwei)
On 08/30/2018 10:53 PM, Alex Deucher wrote: No functional change, just rework it in order to adjust the behavior on a per asic level. The problem is that on vega10, something corrupts the lower 8 MB of vram on the second resume from S3. This does not seem to affect Raven, other gmc9 based

Re: [PATCH 2/4] drm/amdgpu/gmc9: don't keep stolen memory on Raven

2018-08-30 Thread Zhang, Jerry (Junwei)
On 08/30/2018 10:53 PM, Alex Deucher wrote: Raven does not appear to be affected by the same issue as vega10. Enable the full stolen memory handling on Raven. Reserve the appropriate size at init time to avoid display artifacts and then free it at the end of init once the new FB is up and

Re: [PATCH 1/6] drm/amdgpu: correctly sign extend 48bit addresses v3

2018-08-30 Thread Zhang, Jerry (Junwei)
Patch 1~5 are Reviewed-by: Junwei Zhang Patch 6 is Acked-by: Junwei Zhang BTW, [PATCH 4/6] drm/amdgpu: manually map the shadow BOs again with this patch, the user cannot create a shadow bo with gart address. anyway, I cannot image that use case either. Regards, Jerry On 08/30/2018 08:14

Re: [PATCH 4/7] drm/amdgpu: use the AGP aperture for system memory access v2

2018-08-30 Thread Zhang, Jerry (Junwei)
On 08/30/2018 08:15 PM, Christian König wrote: Am 30.08.2018 um 05:20 schrieb Zhang, Jerry (Junwei): On 08/29/2018 10:08 PM, Christian König wrote: Start to use the old AGP aperture for system memory access. v2: Move that to amdgpu_ttm_alloc_gart Signed-off-by: Christian König ---

[PATCH 13/17] drm/amd/display: dc 3.1.65

2018-08-30 Thread Bhawanpreet Lakha
From: Tony Cheng Change-Id: I3f84e63a59d037656f50f51870eb67c941b344cd Signed-off-by: Tony Cheng Reviewed-by: Steven Chiu Acked-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h

[PATCH 10/17] drm/amd/display: num of sw i2c/aux engines less than num of connectors

2018-08-30 Thread Bhawanpreet Lakha
From: Hersen Wu [why] AMD Stoney reference board, there are only 2 pipes (not include underlay), and 3 connectors. resource creation, only 2 I2C/AUX engines are created. Within dc_link_aux_transfer, when pin_data_en =2, refer to enengines[ddc_pin->pin_data->en] = NULL. NULL point is referred

[PATCH 11/17] drm/amd/display: Use DRM helper for best_encoder

2018-08-30 Thread Bhawanpreet Lakha
From: Leo Li [Why] Our implementation is functionally identical to DRM's Note that instead of checking if the provided id is 0, the helper follows through with the mode object search. However, It will still return NULL, since 0 is not a valid object id, and missed searches will return NULL.

[PATCH 08/17] drm/amd/display: add disconnect_delay to dc_panel_patch

2018-08-30 Thread Bhawanpreet Lakha
From: Derek Lai Some display need disconnect delay. Adding this parameter for future use Change-Id: I0075cf2be0fe658f07425f80d23c592726929a76 Signed-off-by: Derek Lai Reviewed-by: Charlene Liu Acked-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/dc_types.h | 1 + 1 file changed, 1

[PATCH 04/17] drm/amd/display: Fix DAL217 tests modify DTN logs for other tests

2018-08-30 Thread Bhawanpreet Lakha
From: Gary Kattan [Why]Update Code to get DTN golden log check to pass for tests run after DAL217 tests. [How]Change how dcn10_log_hw_state function prints HW state info (CM_GAMUT_REMAP_Cx_Cx registers) when GAMUT REMAP is in bypass mode. Change-Id: I2c116ab220a7c2582c011474f6e5d7ab3018cde6

[PATCH 16/17] drm/amd/display: clean code for transition event log.

2018-08-30 Thread Bhawanpreet Lakha
From: Chiawen Huang [Why] There are same purpose transition events. [How] remove the redundant event log. Change-Id: I90faf48f7c0c492b7b753ebbeb819a08c5f074e5 Signed-off-by: Chiawen Huang Reviewed-by: Tony Cheng Acked-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/dm_event_log.h

[PATCH 15/17] drm/amd/display: Remove call to amdgpu_pm_compute_clocks

2018-08-30 Thread Bhawanpreet Lakha
From: David Francis [Why] The extraneous call to amdgpu_pm_compute_clocks is deprecated. [How] Remove it. Change-Id: I0bfee7f1aca4184b441c39efbdc580394bdd1020 Signed-off-by: David Francis Signed-off-by: Leo Li Reviewed-by: David Francis Acked-by: Bhawanpreet Lakha ---

[PATCH 12/17] drm/amd/display: Reorder resource_pool to put i2c with aux

2018-08-30 Thread Bhawanpreet Lakha
From: David Francis [Why] The i2c and aux engines are similar, and should be placed next to eachother for readability [How] Reorder the elements of the resource_pool struct Change-Id: I74bb54c9bd8d08cf51013fc597c54d33e379f8a5 Signed-off-by: David Francis Reviewed-by: Tony Cheng Acked-by:

[PATCH 06/17] drm/amd/display: remove dead dc vbios code

2018-08-30 Thread Bhawanpreet Lakha
From: Dmytro Laktyushkin Change-Id: Id1e7c39db419f13cf478c6a0c6f4b84c039acffe Signed-off-by: Dmytro Laktyushkin Reviewed-by: Charlene Liu Acked-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 1177

[PATCH 14/17] drm/amd/display: use link type to decide stream enc acquisition

2018-08-30 Thread Bhawanpreet Lakha
From: Eric Yang [Why] Virtual sink is used when set mode happens on a disconnected display to allow the mode set to proceed. This did not work with MST because the logic for acquiring stream encoder uses stream signal to determine the special handling is required, and stream signal is virtual

[PATCH 00/17] DC Patches Aug 30, 2018

2018-08-30 Thread Bhawanpreet Lakha
Summary of Changes *Add DP YCbCr 4:2:0 support *Clean up unused code *Refactor code in DM Bhawanpreet Lakha (1): drm/amd/display: Build stream update and plane updates in dm Chiawen Huang (2): drm/amd/display: add aux transition event log. drm/amd/display: clean code for transition event

[PATCH 05/17] drm/amd/display: Add driver-side parsing for CM

2018-08-30 Thread Bhawanpreet Lakha
From: Jun Lei Although 4 unique register values exist for gamma modes, two are actually the same (the two RAMs) It’s not possible for caller to understand this HW specific behavior, so some parsing is necessary in driver Change-Id: I073e0f67aed5c9bc8760e89d7755e6399b3687e2 Signed-off-by: Jun

[PATCH 01/17] drm/amd/display: dc 3.1.64

2018-08-30 Thread Bhawanpreet Lakha
From: Tony Cheng Change-Id: I4b6cd9df9e84fb000df61aba22d42dc64b45ca70 Signed-off-by: Tony Cheng --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index

[PATCH 03/17] drm/amd/display: Add DP YCbCr 4:2:0 support

2018-08-30 Thread Bhawanpreet Lakha
From: Eric Bernstein [Why] For supporting DP YCbCr 4:2:0 output. [How] Update mod_build_vsc_infopacket to support Pixel Encoding/Colorimetry Format indication for VSC SDP rev5. Change-Id: Id6035c6a954bc698e379fe43cc8079e29d7dd765 Signed-off-by: Eric Bernstein Reviewed-by: Dmytro Laktyushkin

[PATCH 07/17] drm/amd/display: remove unused clk_src code

2018-08-30 Thread Bhawanpreet Lakha
From: Dmytro Laktyushkin Change-Id: I54e39a4387c5abeec56a53e1a0a094a51b9839fe Signed-off-by: Dmytro Laktyushkin Reviewed-by: Charlene Liu Acked-by: Bhawanpreet Lakha --- .../gpu/drm/amd/display/dc/dce/dce_clock_source.c | 87 +-

[PATCH 02/17] drm/amd/display: Build stream update and plane updates in dm

2018-08-30 Thread Bhawanpreet Lakha
[Why] We currently lock modeset by setting a boolean in dm. We want to lock Based on what DC tells us. [How] Build stream_updates and plane_update based on what changed. Then we call check_update_surfaces_for_stream() to get the update type We lock only if update_type is not fast Change-Id:

[PATCH 09/17] drm/amd/display: add aux transition event log.

2018-08-30 Thread Bhawanpreet Lakha
From: Chiawen Huang [Why] Enhance aux transition debugging information. [How] Added Aux request and reply event log. Change-Id: I19f3fd904089f57f0eaebbcc0cb613430c11b5b0 Signed-off-by: Chiawen Huang Reviewed-by: Tony Cheng Acked-by: Bhawanpreet Lakha ---

Re: [PATCH 2/6] drm/amdgpu: add amdgpu_gmc_agp_location v3

2018-08-30 Thread Felix Kuehling
This patch is Reviewed-by: Felix Kuehling The rest of the series is Acked-by me. Regards,   Felix On 2018-08-30 08:14 AM, Christian König wrote: > Helper to figure out the location of the AGP BAR. > > v2: fix a couple of bugs > v3: correctly add one to vram_end > > Signed-off-by: Christian

Re: [PATCH] drm/amd/powerplay: added vega20 overdrive support

2018-08-30 Thread Alex Deucher
On Thu, Aug 30, 2018 at 1:56 AM Quan, Evan wrote: > > Hi Alex, > > OK, I got your concern. Then how about the followings? > > If user want to change the FMin and FMax, they just need to pass in the new > clock values. > E.g, "s 0 350 10" will update the Fmin to 350Mhz and increase its voltage by

[PATCH 4/4] drm/amdgpu/gmc9: don't keep stolen memory on vega20

2018-08-30 Thread Alex Deucher
Vega20 does not appear to be affected by the same issue as vega10. Enable the full stolen memory handling on vega20. Reserve the appropriate size at init time to avoid display artifacts and then free it at the end of init once the new FB is up and running. Signed-off-by: Alex Deucher --- Can

[PATCH 3/4] drm/amdgpu/gmc9: don't keep stolen memory on vega12

2018-08-30 Thread Alex Deucher
vega12 does not appear to be affected by the same issue as vega10. Enable the full stolen memory handling on vega12. Reserve the appropriate size at init time to avoid display artifacts and then free it at the end of init once the new FB is up and running. Signed-off-by: Alex Deucher --- Can

[PATCH 2/4] drm/amdgpu/gmc9: don't keep stolen memory on Raven

2018-08-30 Thread Alex Deucher
Raven does not appear to be affected by the same issue as vega10. Enable the full stolen memory handling on Raven. Reserve the appropriate size at init time to avoid display artifacts and then free it at the end of init once the new FB is up and running. Bug:

[PATCH 1/4] drm/amdgpu/gmc9: rework stolen vga memory handling

2018-08-30 Thread Alex Deucher
No functional change, just rework it in order to adjust the behavior on a per asic level. The problem is that on vega10, something corrupts the lower 8 MB of vram on the second resume from S3. This does not seem to affect Raven, other gmc9 based asics need testing. Signed-off-by: Alex Deucher

Re: [PATCH] drm/amdgpu: fix "move PD/PT bos on LRU again""

2018-08-30 Thread Michel Dänzer
On 2018-08-30 1:51 p.m., Christian König wrote: > Fixes the LRU corruption, we accidentially tried to move things on the > LRU after dropping the reservation lock. > > Signed-off-by: Christian König While this patch survived piglit significantly longer than before, it doesn't fully fix the

Re: [PATCH] drm/amdgpu: fix "move PD/PT bos on LRU again""

2018-08-30 Thread Christian König
Michel can you give this one a try as well? If I'm not completely mistaken it should fix the LRU problems. Christian. Am 30.08.2018 um 13:51 schrieb Christian König: Fixes the LRU corruption, we accidentially tried to move things on the LRU after dropping the reservation lock. Signed-off-by:

Re: [PATCH 5/7] drm/amdgpu: manually map the shadow BOs again

2018-08-30 Thread Christian König
Am 30.08.2018 um 05:29 schrieb Zhang, Jerry (Junwei): On 08/29/2018 10:08 PM, Christian König wrote: Otherwise we won't be able to use the AGP aperture. do you mean we use AGP for GTT shadow only now? No, on older hw generations the page tables are usually larger than one PAGE. So we

Re: [PATCH 4/7] drm/amdgpu: use the AGP aperture for system memory access v2

2018-08-30 Thread Christian König
Am 30.08.2018 um 05:20 schrieb Zhang, Jerry (Junwei): On 08/29/2018 10:08 PM, Christian König wrote: Start to use the old AGP aperture for system memory access. v2: Move that to amdgpu_ttm_alloc_gart Signed-off-by: Christian König ---   drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 23 ++

[PATCH 4/6] drm/amdgpu: manually map the shadow BOs again

2018-08-30 Thread Christian König
Otherwise we won't be able to use the AGP aperture. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 5 + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 5 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git

[PATCH 3/6] drm/amdgpu: use the AGP aperture for system memory access v2

2018-08-30 Thread Christian König
Start to use the old AGP aperture for system memory access. v2: Move that to amdgpu_ttm_alloc_gart Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 23 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 58

[PATCH 2/6] drm/amdgpu: add amdgpu_gmc_agp_location v3

2018-08-30 Thread Christian König
Helper to figure out the location of the AGP BAR. v2: fix a couple of bugs v3: correctly add one to vram_end Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 43 + drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h | 5 +++ 2 files changed, 48

[PATCH 1/6] drm/amdgpu: correctly sign extend 48bit addresses v3

2018-08-30 Thread Christian König
Correct sign extend the GMC addresses to 48bit. v2: sign extending turned out easier than thought. v3: clean up the defines and move them into amdgpu_gmc.h as well Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

[PATCH 5/6] drm/amdgpu: enable AGP aperture for GMC9

2018-08-30 Thread Christian König
Enable the old AGP aperture to avoid GART mappings. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 10 +- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c| 1 + drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 10 +- 3 files changed, 11 insertions(+), 10

[PATCH 6/6] drm/amdgpu: try to make kernel allocations USWC

2018-08-30 Thread Christian König
Not 100% sure if that is a good idea or not. In theory only the writeback BO should be read most of the time, but who knows? Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH] drm/amdgpu: fix "move PD/PT bos on LRU again""

2018-08-30 Thread Christian König
Fixes the LRU corruption, we accidentially tried to move things on the LRU after dropping the reservation lock. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 5 ++--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-)

Re: [PATCH] drm/amdgpu: fix "Revert "drm/amdgpu: move PD/PT bos on LRU again""

2018-08-30 Thread Christian König
Am 30.08.2018 um 10:49 schrieb Michel Dänzer: On 2018-08-30 10:08 a.m., Christian König wrote: This reverts commit 1156da3d4034957e7927ea68007b981942f5cbd5. We should review reverts as well cause that one only added an incomplete band aided to the problem. Sorry about that. I didn't notice

Re: [PATCH 5/5] [RFC]drm: add syncobj timeline support v3

2018-08-30 Thread Christian König
[SNIP] + +struct drm_syncobj_wait_pt { +    struct drm_syncobj_stub_fence base; +    u64    value; +    struct rb_node   node; +}; +struct drm_syncobj_signal_pt { +    struct drm_syncobj_stub_fence base; +    struct dma_fence *signal_fence; +    struct dma_fence *pre_pt_base; +    struct

Re: [PATCH 5/5] [RFC]drm: add syncobj timeline support v3

2018-08-30 Thread zhoucm1
On 2018年08月30日 15:25, Christian König wrote: Am 30.08.2018 um 05:50 schrieb zhoucm1: On 2018年08月29日 19:42, Christian König wrote: Am 29.08.2018 um 12:44 schrieb Chunming Zhou: VK_KHR_timeline_semaphore: This extension introduces a new type of semaphore that has an integer payload

Re: [PATCH 0/2] Provide init/release functions for struct ttm_bo_global

2018-08-30 Thread Thomas Zimmermann
Am 30.08.2018 um 08:45 schrieb Christian König: [...] >> or create their private instance. > > That doesn't sounds good. Drivers should not be allowed to create their > own private instance of that. OK, will be changed in the patchset. Best regards Thomas > > Thanks for doing this, >

[PATCH libdrm] amdgpu: add error return value for finding bo by cpu mapping (v2)

2018-08-30 Thread Junwei Zhang
If nothing is found, error should be returned. v2: udpate the error value different from parameter check Signed-off-by: Junwei Zhang Reviewed-by: Christian König Reviewed-by: Michel Dänzer --- amdgpu/amdgpu_bo.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] drm/amdgpu: Revert "kmap PDs/PTs in amdgpu_vm_update_directories"

2018-08-30 Thread Zhang, Jerry (Junwei)
On 08/30/2018 03:50 PM, Christian König wrote: This reverts commit a7f91061c60ad9cac2e6a03b642be6a4f88b3662. Felix pointed out that we need to have the BOs mapped even before amdgpu_vm_update_directories is called. Signed-off-by: Christian König Acked-by: Junwei Zhang ---

Re: [PATCH libdrm] amdgpu: add error return value for finding bo by cpu mapping

2018-08-30 Thread Zhang, Jerry (Junwei)
On 08/30/2018 04:57 PM, Michel Dänzer wrote: On 2018-08-30 10:50 a.m., Junwei Zhang wrote: If nothing is found, error should be returned. Signed-off-by: Junwei Zhang [...] @@ -577,10 +578,11 @@ int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, } else {

RE: [PATCH] drm/amd/powerplay: added vega20 overdrive support

2018-08-30 Thread Quan, Evan
I just sent out a V2 patch which adds the clock overdrive and fixes some minor issues pointed out by Paul. Regards, Evan > -Original Message- > From: Quan, Evan > Sent: 2018年8月30日 13:56 > To: 'Alex Deucher' > Cc: amd-gfx list ; Deucher, Alexander > ; Zhu, Rex > Subject: RE: [PATCH]

[PATCH] drm/amd/powerplay: added vega20 overdrive support V2

2018-08-30 Thread Evan Quan
Added vega20 overdrive support based on existing OD sysfs APIs. However, the OD logics are simplified on vega20. So, the behavior will be a little different and works only on some limited levels. V2: fix typo fix commit description revise error logs add support for clock OD

Re: [PATCH libdrm] amdgpu: add error return value for finding bo by cpu mapping

2018-08-30 Thread Michel Dänzer
On 2018-08-30 10:50 a.m., Junwei Zhang wrote: > If nothing is found, error should be returned. > > Signed-off-by: Junwei Zhang > > [...] > > @@ -577,10 +578,11 @@ int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle > dev, > } else { > *buf_handle = NULL; >

Re: [PATCH libdrm] amdgpu: add error return value for finding bo by cpu mapping

2018-08-30 Thread Christian König
Am 30.08.2018 um 10:50 schrieb Junwei Zhang: If nothing is found, error should be returned. Signed-off-by: Junwei Zhang Reviewed-by: Christian König --- amdgpu/amdgpu_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c

[PATCH libdrm] amdgpu: add error return value for finding bo by cpu mapping

2018-08-30 Thread Junwei Zhang
If nothing is found, error should be returned. Signed-off-by: Junwei Zhang --- amdgpu/amdgpu_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c index 2f4f90f..3812c5e 100644 --- a/amdgpu/amdgpu_bo.c +++ b/amdgpu/amdgpu_bo.c @@

Re: [PATCH] drm/amdgpu: fix "Revert "drm/amdgpu: move PD/PT bos on LRU again""

2018-08-30 Thread Michel Dänzer
On 2018-08-30 10:08 a.m., Christian König wrote: > This reverts commit 1156da3d4034957e7927ea68007b981942f5cbd5. > > We should review reverts as well cause that one only added an incomplete band > aided to the problem. Sorry about that. I didn't notice any issues with the same testing procedure

Re: How to gracefully handle pci remove

2018-08-30 Thread Daniel Vetter
On Wed, Aug 29, 2018 at 8:28 PM, Andrey Grodzovsky wrote: > Actually, I've just spotted this drm_dev_unplug, does it make sense to use > it in our pci_driver.remove hook > > instead of explicitly doing drm_dev_unregister and drm_dev_put(dev) ? > > This way at least any following IOCTL will fail

[PATCH] drm/amdgpu: fix "Revert "drm/amdgpu: move PD/PT bos on LRU again""

2018-08-30 Thread Christian König
This reverts commit 1156da3d4034957e7927ea68007b981942f5cbd5. We should review reverts as well cause that one only added an incomplete band aided to the problem. Correctly disable bulk moves until we have figured out why they corrupt the lists. Signed-off-by: Christian König ---

[PATCH] drm/amdgpu: Revert "kmap PDs/PTs in amdgpu_vm_update_directories"

2018-08-30 Thread Christian König
This reverts commit a7f91061c60ad9cac2e6a03b642be6a4f88b3662. Felix pointed out that we need to have the BOs mapped even before amdgpu_vm_update_directories is called. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 13 - 1 file changed, 4 insertions(+),

Re: [PATCH] drm/amdgpu: correctly sign extend 48bit addresses v3

2018-08-30 Thread Zhang, Jerry (Junwei)
On 08/30/2018 02:48 PM, Christian König wrote: Am 30.08.2018 um 04:43 schrieb Zhang, Jerry (Junwei): On 08/29/2018 05:39 PM, Christian König wrote: Am 29.08.2018 um 04:03 schrieb Zhang, Jerry (Junwei): On 08/28/2018 08:17 PM, Christian König wrote: Correct sign extend the GMC addresses to

Re: [PATCH 1/5] drm: fix syncobj null_fence_enable_signaling

2018-08-30 Thread Christian König
Am 30.08.2018 um 08:48 schrieb Chunming Zhou: That is certainly totally nonsense. dma_fence_enable_sw_signaling() is the function who is calling this callback. Signed-off-by: Chunming Zhou Cc: Jason Ekstrand Reviewed-by: Christian König Acked-by: Daniel Vetter If there are no objections

Re: [PATCH 5/5] [RFC]drm: add syncobj timeline support v3

2018-08-30 Thread Christian König
Am 30.08.2018 um 05:50 schrieb zhoucm1: On 2018年08月29日 19:42, Christian König wrote: Am 29.08.2018 um 12:44 schrieb Chunming Zhou: VK_KHR_timeline_semaphore: This extension introduces a new type of semaphore that has an integer payload identifying a point in a timeline. Such timeline

Re: [PATCH] drm/amdgpu: correctly sign extend 48bit addresses v3

2018-08-30 Thread Christian König
Am 30.08.2018 um 04:43 schrieb Zhang, Jerry (Junwei): On 08/29/2018 05:39 PM, Christian König wrote: Am 29.08.2018 um 04:03 schrieb Zhang, Jerry (Junwei): On 08/28/2018 08:17 PM, Christian König wrote: Correct sign extend the GMC addresses to 48bit. Could you explain a bit more why to

[PATCH 4/5] drm: expand replace_fence to support timeline point v2

2018-08-30 Thread Chunming Zhou
we can place a fence to a timeline point after expanded. v2: change func parameter order Signed-off-by: Chunming Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 14 --

[PATCH 3/5] drm: expand drm_syncobj_find_fence to support timeline point v2

2018-08-30 Thread Chunming Zhou
we can fetch timeline point fence after expanded. v2: The parameter fence is the result of the function and should come last. Signed-off-by: Chunming Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 5 +++--

[PATCH 2/5] drm: rename null fence to stub fence in syncobj v2

2018-08-30 Thread Chunming Zhou
moved to front of file. stub fence will be used by timeline syncobj as well. Signed-off-by: Chunming Zhou Cc: Jason Ekstrand Reviewed-by: Christian König --- drivers/gpu/drm/drm_syncobj.c | 53 +++ 1 file changed, 29 insertions(+), 24 deletions(-) diff --git

[PATCH 5/5] [RFC]drm: add syncobj timeline support v3

2018-08-30 Thread Chunming Zhou
VK_KHR_timeline_semaphore: This extension introduces a new type of semaphore that has an integer payload identifying a point in a timeline. Such timeline semaphores support the following operations: * CPU query - A host operation that allows querying the payload of the timeline semaphore.

[PATCH 1/5] drm: fix syncobj null_fence_enable_signaling

2018-08-30 Thread Chunming Zhou
That is certainly totally nonsense. dma_fence_enable_sw_signaling() is the function who is calling this callback. Signed-off-by: Chunming Zhou Cc: Jason Ekstrand Reviewed-by: Christian König Acked-by: Daniel Vetter --- drivers/gpu/drm/drm_syncobj.c | 1 - 1 file changed, 1 deletion(-) diff

Re: When to kmap PT BOs?

2018-08-30 Thread Christian König
Hi Felix, ah, crap you are right. I moved the kmap to amdgpu_vm_update_directories() because I thought that it would be cleaner to have that closer where it is used. But that sounds like it doesn't work as intended. Going to revert that patch. Thanks, Christian. Am 30.08.2018 um 00:30

Re: [PATCH 0/2] Provide init/release functions for struct ttm_bo_global

2018-08-30 Thread Christian König
Hi Thomas, Am 30.08.2018 um 08:34 schrieb Thomas Zimmermann: Hi Christian, I just wanted to ask if there's something else required to get this patch set reviewed and landed. I just need to find some time to review them. On top of these two patches, I have a patch set that replaces the

Re: [PATCH 01/10] drm/amdgpu: use only the lower address space on GMC9

2018-08-30 Thread Christian König
As explained before we don't need a GART mapping any more for small allocations. Additional to that we want it to support early bringup where no VRAM is attached to the ASIC. Regards, Christian. Am 30.08.2018 um 05:48 schrieb Xiao, Jack: Can you explain what the benefits can be gained from

Re: [PATCH 0/2] Provide init/release functions for struct ttm_bo_global

2018-08-30 Thread Thomas Zimmermann
Hi Christian, I just wanted to ask if there's something else required to get this patch set reviewed and landed. On top of these two patches, I have a patch set that replaces the driver-specific global-bo-and-mem combos with a single struct ttm_global structure. It further merges struct