[PATCH] drm/amdgpu: define macros for retire page reservation

2019-10-21 Thread Chen, Guchun
Easy for maintainance. Signed-off-by: Guchun Chen --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index

[PATCH v5 14/14] drm/dp_mst: Add topology ref history tracking for debugging

2019-10-21 Thread Lyude Paul
For very subtle mistakes with topology refs, it can be rather difficult to trace them down with the debugging info that we already have. I had one such issue recently while trying to implement suspend/resume reprobing for MST, and ended up coming up with this. Inspired by Chris Wilson's wakeref

[PATCH v5 13/14] drm/dp_mst: Add basic topology reprobing when resuming

2019-10-21 Thread Lyude Paul
Finally! For a very long time, our MST helpers have had one very annoying issue: They don't know how to reprobe the topology state when coming out of suspend. This means that if a user has a machine connected to an MST topology and decides to suspend their machine, we lose all topology changes

[PATCH v5 11/14] drm/amdgpu: Iterate through DRM connectors correctly

2019-10-21 Thread Lyude Paul
Currently, every single piece of code in amdgpu that loops through connectors does it incorrectly and doesn't use the proper list iteration helpers, drm_connector_list_iter_begin() and drm_connector_list_iter_end(). Yeesh. So, do that. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry

[PATCH v5 12/14] drm/amdgpu/dm: Resume short HPD IRQs before resuming MST topology

2019-10-21 Thread Lyude Paul
Since we're going to be reprobing the entire topology state on resume now using sideband transactions, we need to ensure that we actually have short HPD irqs enabled before calling drm_dp_mst_topology_mgr_resume(). So, do that. Changes since v3: * Fix typo in comments Cc: Juston Li Cc: Imre

[PATCH v5 08/14] drm/dp_mst: Lessen indenting in drm_dp_mst_topology_mgr_resume()

2019-10-21 Thread Lyude Paul
Does what it says on the tin. Cc: Juston Li Cc: Imre Deak Cc: Ville Syrjälä Cc: Harry Wentland Cc: Daniel Vetter Reviewed-by: Sean Paul Signed-off-by: Lyude Paul --- drivers/gpu/drm/drm_dp_mst_topology.c | 59 +-- 1 file changed, 29 insertions(+), 30 deletions(-)

[PATCH v5 06/14] drm/dp_mst: Protect drm_dp_mst_port members with locking

2019-10-21 Thread Lyude Paul
This is a complicated one. Essentially, there's currently a problem in the MST core that hasn't really caused any issues that we're aware of (emphasis on "that we're aware of"): locking. When we go through and probe the link addresses and path resources in a topology, we hold no locks when

[PATCH v5 07/14] drm/dp_mst: Don't forget to update port->input in drm_dp_mst_handle_conn_stat()

2019-10-21 Thread Lyude Paul
This probably hasn't caused any problems up until now since it's probably nearly impossible to encounter this in the wild, however if we were to receive a connection status notification from the MST hub after resume while we're in the middle of reprobing the link addresses for a topology then

[PATCH v5 09/14] drm/nouveau: Don't grab runtime PM refs for HPD IRQs

2019-10-21 Thread Lyude Paul
In order for suspend/resume reprobing to work, we need to be able to perform sideband communications during suspend/resume, along with runtime PM suspend/resume. In order to do so, we also need to make sure that nouveau doesn't bother grabbing a runtime PM reference to do so, since otherwise we'll

[PATCH v5 10/14] drm/nouveau: Resume hotplug interrupts earlier

2019-10-21 Thread Lyude Paul
Currently, we enable hotplug detection only after we re-enable the display. However, this is too late if we're planning on sending sideband messages during the resume process - which we'll need to do in order to reprobe the topology on resume. So, enable hotplug events before reinitializing the

[PATCH v5 01/14] drm/dp_mst: Destroy MSTBs asynchronously

2019-10-21 Thread Lyude Paul
When reprobing an MST topology during resume, we have to account for the fact that while we were suspended it's possible that mstbs may have been removed from any ports in the topology. Since iterating downwards in the topology requires that we hold >lock, destroying MSTBs from this context would

[PATCH v5 00/14] DP MST Refactors + debugging tools + suspend/resume reprobing

2019-10-21 Thread Lyude Paul
This is the final portion of the large series for adding MST suspend/resume reprobing that I've been working on for quite a while now. In addition, I: * Refactored and cleaned up any code I ended up digging through in the process of understanding how some parts of these helpers worked. * Added

[PATCH v5 03/14] drm/dp_mst: Refactor pdt setup/teardown, add more locking

2019-10-21 Thread Lyude Paul
Since we're going to be implementing suspend/resume reprobing very soon, we need to make sure we are extra careful to ensure that our locking actually protects the topology state where we expect it to. Turns out this isn't the case with drm_dp_port_setup_pdt() and drm_dp_port_teardown_pdt(), both

[PATCH v5 05/14] drm/dp_mst: Add probe_lock

2019-10-21 Thread Lyude Paul
Currently, MST lacks locking in a lot of places that really should have some sort of locking. Hotplugging and link address code paths are some of the offenders here, as there is actually nothing preventing us from running a link address probe while at the same time handling a connection status

[PATCH v5 04/14] drm/dp_mst: Handle UP requests asynchronously

2019-10-21 Thread Lyude Paul
Once upon a time, hotplugging devices on MST branches actually worked in DRM. Now, it only works in amdgpu (likely because of how it's hotplug handlers are implemented). On both i915 and nouveau, hotplug notifications from MST branches are noticed - but trying to respond to them causes messaging

[PATCH v5 02/14] drm/dp_mst: Remove PDT teardown in drm_dp_destroy_port() and refactor

2019-10-21 Thread Lyude Paul
This will allow us to add some locking for port->* members, in particular the PDT and ->connector, which can't be done from drm_dp_destroy_port() since we don't know what locks the caller might be holding. Note that we already do this in delayed_destroy_work (renamed from destroy_connector_work

[PATCH] drm/amdgpu: refine reboot debugfs operation in ras case (v3)

2019-10-21 Thread Chen, Guchun
Ras reboot debugfs node allows user one easy control to avoid gpu recovery hang problem and directly reboot system per card basis, after ras uncorrectable error happens. However, it is one common entry, which should get rid of ras_ctrl node and remove ip dependence when inputting by user. So add

RE: [PATCH] drm/amdkfd: don't use dqm lock during device reset/suspend/resume

2019-10-21 Thread Zeng, Oak
If we decline the queue creation request in suspend state by returning -EAGAIN, then this approach works for both hws and non-hws. This way the driver is clean but application need to re-create queue later when it get a EAGAIN. Currently application is not aware of the suspend/resume state, so

Re: [PATCH] drm/amdkfd: don't use dqm lock during device reset/suspend/resume

2019-10-21 Thread Kuehling, Felix
On 2019-10-21 5:04 p.m., Yang, Philip wrote: > If device reset/suspend/resume failed for some reason, dqm lock is > hold forever and this causes deadlock. Below is a kernel backtrace when > application open kfd after suspend/resume failed. > > Instead of holding dqm lock in pre_reset and

RE: [PATCH] drm/amdkfd: don't use dqm lock during device reset/suspend/resume

2019-10-21 Thread Zeng, Oak
Nice fix. Reviewed-by: Oak Zeng Regards, Oak -Original Message- From: amd-gfx On Behalf Of Yang, Philip Sent: Monday, October 21, 2019 5:05 PM To: amd-gfx@lists.freedesktop.org Cc: Yang, Philip Subject: [PATCH] drm/amdkfd: don't use dqm lock during device reset/suspend/resume If

[PATCH] drm/amdkfd: don't use dqm lock during device reset/suspend/resume

2019-10-21 Thread Yang, Philip
If device reset/suspend/resume failed for some reason, dqm lock is hold forever and this causes deadlock. Below is a kernel backtrace when application open kfd after suspend/resume failed. Instead of holding dqm lock in pre_reset and releasing dqm lock in post_reset, add dqm->device_stopped flag

Re: [PATCH hmm 02/15] mm/mmu_notifier: add an interval tree notifier

2019-10-21 Thread Jerome Glisse
On Mon, Oct 21, 2019 at 07:24:53PM +, Jason Gunthorpe wrote: > On Mon, Oct 21, 2019 at 03:11:57PM -0400, Jerome Glisse wrote: > > > Since that reader is not locked we need release semantics here to > > > ensure the unlocked reader sees a fully initinalized mmu_notifier_mm > > > structure when

[PATCH v2] drm/amdgpu: Add DC feature mask to disable fractional pwm

2019-10-21 Thread sunpeng.li
From: Leo Li [Why] Some LED panel drivers might not like fractional PWM. In such cases, backlight flickering may be observed. [How] Add a DC feature mask to disable fractional PWM, and associate it with the preexisting dc_config flag. The flag is only plumbed through the dmcu firmware, so

[PATCH] drm/amdgpu: Add DC feature mask to disable fractional pwm

2019-10-21 Thread sunpeng.li
From: Leo Li [Why] Some LED panel drivers might not like fractional PWM. In such cases, backlight flickering may be observed. [How] Add a DC feature mask to disable fractional PWM, and associate it with the preexisting dc_config flag. The flag is only plumbed through the dmcu firmware, so

[PATCH] drm/amd/display: Change Navi14's DWB flag to 1

2019-10-21 Thread Liu, Zhan
[PATCH] drm/amd/display: Change Navi14's DWB flag to 1 [Why] DWB (Display Writeback) flag needs to be enabled as 1, or system will throw out a few warnings when creating dcn20 resource pool. Also, Navi14's dwb setting needs to match Navi10's, which has already been set to 1. [How] Change value

Re: [PATCH hmm 15/15] mm/hmm: remove hmm_mirror and related

2019-10-21 Thread Jerome Glisse
On Mon, Oct 21, 2019 at 06:57:42PM +, Jason Gunthorpe wrote: > On Mon, Oct 21, 2019 at 02:38:24PM -0400, Jerome Glisse wrote: > > On Tue, Oct 15, 2019 at 03:12:42PM -0300, Jason Gunthorpe wrote: > > > From: Jason Gunthorpe > > > > > > The only two users of this are now converted to use

Re: [PATCH hmm 02/15] mm/mmu_notifier: add an interval tree notifier

2019-10-21 Thread Jerome Glisse
On Mon, Oct 21, 2019 at 06:54:25PM +, Jason Gunthorpe wrote: > On Mon, Oct 21, 2019 at 02:30:56PM -0400, Jerome Glisse wrote: > > > > +/** > > > + * mmu_range_read_retry - End a read side critical section against a VA > > > range > > > + * mrn: The range under lock > > > + * seq: The return

Re: [PATCH hmm 00/15] Consolidate the mmu notifier interval_tree and locking

2019-10-21 Thread Jerome Glisse
On Tue, Oct 15, 2019 at 03:12:27PM -0300, Jason Gunthorpe wrote: > From: Jason Gunthorpe > > 8 of the mmu_notifier using drivers (i915_gem, radeon_mn, umem_odp, hfi1, > scif_dma, vhost, gntdev, hmm) drivers are using a common pattern where > they only use invalidate_range_start/end and

Re: [PATCH hmm 15/15] mm/hmm: remove hmm_mirror and related

2019-10-21 Thread Jerome Glisse
On Tue, Oct 15, 2019 at 03:12:42PM -0300, Jason Gunthorpe wrote: > From: Jason Gunthorpe > > The only two users of this are now converted to use mmu_range_notifier, > delete all the code and update hmm.rst. I guess i should point out that the reasons for hmm_mirror and hmm was for: 1) Maybe

Re: [PATCH hmm 03/15] mm/hmm: allow hmm_range to be used with a mmu_range_notifier or hmm_mirror

2019-10-21 Thread Jerome Glisse
On Tue, Oct 15, 2019 at 03:12:30PM -0300, Jason Gunthorpe wrote: > From: Jason Gunthorpe > > hmm_mirror's handling of ranges does not use a sequence count which > results in this bug: > > CPU0 CPU1 >

Re: [PATCH hmm 01/15] mm/mmu_notifier: define the header pre-processor parts even if disabled

2019-10-21 Thread Jerome Glisse
On Tue, Oct 15, 2019 at 03:12:28PM -0300, Jason Gunthorpe wrote: > From: Jason Gunthorpe > > Now that we have KERNEL_HEADER_TEST all headers are generally compile > tested, so relying on makefile tricks to avoid compiling code that depends > on CONFIG_MMU_NOTIFIER is more annoying. > > Instead

Re: [PATCH hmm 02/15] mm/mmu_notifier: add an interval tree notifier

2019-10-21 Thread Jerome Glisse
On Tue, Oct 15, 2019 at 03:12:29PM -0300, Jason Gunthorpe wrote: > From: Jason Gunthorpe > > Of the 13 users of mmu_notifiers, 8 of them use only > invalidate_range_start/end() and immediately intersect the > mmu_notifier_range with some kind of internal list of VAs. 4 use an > interval tree

Re: [PATCH hmm 04/15] mm/hmm: define the pre-processor related parts of hmm.h even if disabled

2019-10-21 Thread Jerome Glisse
On Tue, Oct 15, 2019 at 03:12:31PM -0300, Jason Gunthorpe wrote: > From: Jason Gunthorpe > > Only the function calls are stubbed out with static inlines that always > fail. This is the standard way to write a header for an optional component > and makes it easier for drivers that only optionally

Re: [PATCH v2] drm/amdkfd: kfd open return failed if device is locked

2019-10-21 Thread Kuehling, Felix
On 2019-10-18 6:54 p.m., Zeng, Oak wrote: > In current implementation, even dqm is stopped, user can still create (and > start) new queue. This is not correct. We should forbid user create/start new > queue if dqm is stopped - stop means stopping the current executing queues > and stop

Re: [PATCH 5/5] ionic: Use debugfs_create_bool() to export bool

2019-10-21 Thread Shannon Nelson
On 10/21/19 7:51 AM, Geert Uytterhoeven wrote: Currently bool ionic_cq.done_color is exported using debugfs_create_u8(), which requires a cast, preventing further compiler checks. Fix this by switching to debugfs_create_bool(), and dropping the cast. Signed-off-by: Geert Uytterhoeven

RE: [PATCH] drm/amdgpu: refine reboot debugfs operation in ras case

2019-10-21 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx On Behalf Of > Chen, Guchun > Sent: Monday, October 21, 2019 5:33 AM > To: amd-gfx@lists.freedesktop.org; Koenig, Christian > ; Zhang, Hawking > ; Li, Dennis ; > Grodzovsky, Andrey ; Zhou1, Tao > > Cc: Li, Candice ; Chen, Guchun > > Subject: [PATCH]

Re: [PATCH] drm: Fix DSC throughput mode 0 mask definition

2019-10-21 Thread Harry Wentland
On 2019-10-21 11:03 a.m., Siqueira, Rodrigo wrote: > Commit d7cd0e05 introduced a change at DP_DSC_THROUGHPUT_MODE_0_170 > which is not aligned with the spec. This commit replace 15 << 4 by > 15 << 0 for DP_DSC_THROUGHPUT_MODE_0_170 in order to make it follow the > specification. > > Cc: Harry

[PATCH] drm: Fix DSC throughput mode 0 mask definition

2019-10-21 Thread Siqueira, Rodrigo
Commit d7cd0e05 introduced a change at DP_DSC_THROUGHPUT_MODE_0_170 which is not aligned with the spec. This commit replace 15 << 4 by 15 << 0 for DP_DSC_THROUGHPUT_MODE_0_170 in order to make it follow the specification. Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: Nikola Cornij Cc:

[PATCH 1/5] crypto: nx - Improve debugfs_create_u{32,64}() handling for atomics

2019-10-21 Thread Geert Uytterhoeven
Variables of type atomic{,64}_t can be used fine with debugfs_create_u{32,64}, when passing a pointer to the embedded counter. This allows to get rid of the casts, which prevented compiler checks. Signed-off-by: Geert Uytterhoeven --- drivers/crypto/nx/nx_debugfs.c | 18 +- 1

[PATCH 2/5] cxgb4/cxgb4vf: Remove superfluous void * cast in debugfs_create_file() call

2019-10-21 Thread Geert Uytterhoeven
There is no need to cast a typed pointer to a void pointer when calling a function that accepts the latter. Remove it, as the cast prevents further compiler checks. Signed-off-by: Geert Uytterhoeven --- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH 0/5] debugfs: Remove casts in debugfs_create_*() callers

2019-10-21 Thread Geert Uytterhoeven
Hi all, Casting parameters in debugfs_create_*() calls prevents the compiler from performing some checks. Hence this patch series removes superfluous casts, or reworks code to no longer need the casts. All patches can be applied independently, there are no dependencies. Thanks for your

[PATCH 3/5] drm/amdgpu: Remove superfluous void * cast in debugfs_create_file() call

2019-10-21 Thread Geert Uytterhoeven
There is no need to cast a typed pointer to a void pointer when calling a function that accepts the latter. Remove it, as the cast prevents further compiler checks. Signed-off-by: Geert Uytterhoeven --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 4/5] power: avs: smartreflex: Remove superfluous cast in debugfs_create_file() call

2019-10-21 Thread Geert Uytterhoeven
There is no need to cast a typed pointer to a void pointer when calling a function that accepts the latter. Remove it, as the cast prevents further compiler checks. Signed-off-by: Geert Uytterhoeven --- drivers/power/avs/smartreflex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 5/5] ionic: Use debugfs_create_bool() to export bool

2019-10-21 Thread Geert Uytterhoeven
Currently bool ionic_cq.done_color is exported using debugfs_create_u8(), which requires a cast, preventing further compiler checks. Fix this by switching to debugfs_create_bool(), and dropping the cast. Signed-off-by: Geert Uytterhoeven --- drivers/net/ethernet/pensando/ionic/ionic_debugfs.c

Re: [PATCH hmm 00/15] Consolidate the mmu notifier interval_tree and locking

2019-10-21 Thread Koenig, Christian
Am 21.10.19 um 15:57 schrieb Jason Gunthorpe: > On Sun, Oct 20, 2019 at 02:21:42PM +, Koenig, Christian wrote: >> Am 18.10.19 um 22:36 schrieb Jason Gunthorpe: >>> On Thu, Oct 17, 2019 at 04:47:20PM +, Koenig, Christian wrote: >>> [SNIP] >>> So again how are they serialized? >>>

RE: [PATCH] drm/amdgpu: refine reboot debugfs operation in ras case

2019-10-21 Thread Chen, Guchun
Thanks Christian. Your suggestion is excellent, this can help get rid of parsing input code in this patch. I will prepare patch v3 soon. Regards, Guchun -Original Message- From: Christian König Sent: Monday, October 21, 2019 7:14 PM To: Chen, Guchun ; amd-gfx@lists.freedesktop.org;

RE: [PATCH] drm/amdgpu: refine reboot debugfs operation in ras case

2019-10-21 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx On Behalf Of > Chen, Guchun > Sent: Monday, October 21, 2019 5:08 AM > To: amd-gfx@lists.freedesktop.org; Zhang, Hawking > ; Li, Dennis ; > Grodzovsky, Andrey ; Zhou1, Tao > > Cc: Li, Candice ; Chen, Guchun > > Subject: [PATCH] drm/amdgpu: refine

RE: [PATCH 2/4] drm/amd/powerplay: Add EEPROM I2C read/write support to Arcturus.

2019-10-21 Thread Deucher, Alexander
> -Original Message- > From: Li, Dennis > Sent: Sunday, October 20, 2019 11:02 PM > To: Grodzovsky, Andrey ; amd- > g...@lists.freedesktop.org > Cc: Grodzovsky, Andrey ; Chen, Guchun > ; Zhou1, Tao ; noreply- > conflue...@amd.com; Deucher, Alexander > ; Quan, Evan > Subject: RE: [PATCH

RE: [PATCH 1/3] drm/amd/powerplay: add lock protection for swSMU APIs V2

2019-10-21 Thread Deucher, Alexander
> -Original Message- > From: Quan, Evan > Sent: Sunday, October 20, 2019 10:48 PM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander ; Grodzovsky, > Andrey ; Xu, Feifei ; > Quan, Evan ; Grodzovsky, Andrey > ; Xu, Feifei > Subject: [PATCH 1/3] drm/amd/powerplay: add lock

RE: [PATCH 2/3] drm/amd/powerplay: split out those internal used swSMU APIs V2

2019-10-21 Thread Deucher, Alexander
> -Original Message- > From: Quan, Evan > Sent: Sunday, October 20, 2019 10:48 PM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander ; Grodzovsky, > Andrey ; Xu, Feifei ; > Quan, Evan > Subject: [PATCH 2/3] drm/amd/powerplay: split out those internal used > swSMU APIs V2 > >

RE: [PATCH 4/4] drm/amdgpu: Move amdgpu_ras_recovery_init to after SMU ready.

2019-10-21 Thread Deucher, Alexander
> -Original Message- > From: Andrey Grodzovsky > Sent: Friday, October 18, 2019 4:49 PM > To: amd-gfx@lists.freedesktop.org > Cc: Chen, Guchun ; Zhou1, Tao > ; Deucher, Alexander > ; noreply-conflue...@amd.com; Quan, > Evan ; Grodzovsky, Andrey > > Subject: [PATCH 4/4] drm/amdgpu: Move

RE: [PATCH 2/4] drm/amd/powerplay: Add EEPROM I2C read/write support to Arcturus.

2019-10-21 Thread Deucher, Alexander
> -Original Message- > From: Andrey Grodzovsky > Sent: Friday, October 18, 2019 4:48 PM > To: amd-gfx@lists.freedesktop.org > Cc: Chen, Guchun ; Zhou1, Tao > ; Deucher, Alexander > ; noreply-conflue...@amd.com; Quan, > Evan ; Grodzovsky, Andrey > > Subject: [PATCH 2/4] drm/amd/powerplay:

RE: [PATCH 3/4] drm/amdgpu: Use ARCTURUS in RAS EEPROM.

2019-10-21 Thread Deucher, Alexander
> -Original Message- > From: Andrey Grodzovsky > Sent: Friday, October 18, 2019 4:49 PM > To: amd-gfx@lists.freedesktop.org > Cc: Chen, Guchun ; Zhou1, Tao > ; Deucher, Alexander > ; noreply-conflue...@amd.com; Quan, > Evan ; Grodzovsky, Andrey > > Subject: [PATCH 3/4] drm/amdgpu: Use

RE: [PATCH 1/4] drm/amd/powerplay: Add interface for I2C transactions to SMU.

2019-10-21 Thread Deucher, Alexander
> -Original Message- > From: Andrey Grodzovsky > Sent: Friday, October 18, 2019 4:48 PM > To: amd-gfx@lists.freedesktop.org > Cc: Chen, Guchun ; Zhou1, Tao > ; Deucher, Alexander > ; noreply-conflue...@amd.com; Quan, > Evan ; Grodzovsky, Andrey > > Subject: [PATCH 1/4] drm/amd/powerplay:

Re: [PATCH] UPSTREAM: drm/amd/display: Fix Apple dongle cannot be successfully detected

2019-10-21 Thread Kazlauskas, Nicholas
On 2019-10-21 3:54 a.m., Louis Li wrote: > [Why] > External monitor cannot be displayed consistently, if connecting > via this Apple dongle (A1621, USB Type-C to HDMI). > By experiments, it is confirmed that the dongle needs 200ms at least > to be ready for communication, after it sets HPD signal

Re: [PATCH] drm/amdgpu: refine reboot debugfs operation in ras case

2019-10-21 Thread Christian König
Am 21.10.19 um 11:33 schrieb Chen, Guchun: Ras reboot debugfs node allows user one easy control to avoid gpu recovery hang problem and directly reboot system per card basis, after ras uncorrectable error happens. However, it is one common entry, which should get rid of ras_ctrl node and remove

[PATCH] drm/amdgpu: refine reboot debugfs operation in ras case

2019-10-21 Thread Chen, Guchun
Ras reboot debugfs node allows user one easy control to avoid gpu recovery hang problem and directly reboot system per card basis, after ras uncorrectable error happens. However, it is one common entry, which should get rid of ras_ctrl node and remove ip dependence when inputting by user. So add

RE: [PATCH] drm/amdgpu: refine reboot debugfs operation in ras case

2019-10-21 Thread Chen, Guchun
Thanks Christian. Let me update commit body in v2. Regards, Guchun -Original Message- From: Christian König Sent: Monday, October 21, 2019 5:12 PM To: Chen, Guchun ; amd-gfx@lists.freedesktop.org; Zhang, Hawking ; Li, Dennis ; Grodzovsky, Andrey ; Zhou1, Tao Cc: Li, Candice

Re: [PATCH] drm/amdgpu: refine reboot debugfs operation in ras case

2019-10-21 Thread Christian König
Am 21.10.19 um 11:08 schrieb Chen, Guchun: Reboot operation for ras recovery is one common debugfs entry, which should get rid of ras_ctrl node and remove ip dependence when inputting by user. So add one new auto_reboot node in ras debugfs dir to achieve this. We need some justification why

[PATCH] drm/amdgpu: refine reboot debugfs operation in ras case

2019-10-21 Thread Chen, Guchun
Reboot operation for ras recovery is one common debugfs entry, which should get rid of ras_ctrl node and remove ip dependence when inputting by user. So add one new auto_reboot node in ras debugfs dir to achieve this. Signed-off-by: Guchun Chen --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 55

[PATCH] UPSTREAM: drm/amd/display: Fix Apple dongle cannot be successfully detected

2019-10-21 Thread Louis Li
[Why] External monitor cannot be displayed consistently, if connecting via this Apple dongle (A1621, USB Type-C to HDMI). By experiments, it is confirmed that the dongle needs 200ms at least to be ready for communication, after it sets HPD signal high. [How] When receiving HPD IRQ, delay 500ms at