[PATCH 6/7] drm/amdgpu: define amdgpu_ras_late_init to call all ras blocks' .ras_late_init

2022-02-14 Thread yipechai
Define amdgpu_ras_late_init to call all ras blocks' .ras_late_init. Signed-off-by: yipechai --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c| 44 -- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c| 18 + drivers/gpu/drm/am

[PATCH 7/7] drm/amdgpu: Remove redundant .ras_late_init initialization in some ras blocks

2022-02-14 Thread yipechai
1. Define amdgpu_ras_block_late_init_default in amdgpu_ras.c as .ras_late_init common function, which is called when .ras_late_init of ras block doesn't initialize. 2. Remove the code of using amdgpu_ras_block_late_init to initialize .ras_late_init in ras blocks. Signed-off-by: yipechai

[PATCH 4/7] drm/amdgpu: Remove redundant calls of ras_late_init in mca ras block

2022-02-14 Thread yipechai
Remove redundant calls of ras_late_init in mca ras block. Signed-off-by: yipechai --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 6 +++--- drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 6 -- drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h | 3 --- drivers/gpu/drm/amd/amdgpu/mca_v3_0.c | 21 +++--

[PATCH 5/7] drm/amdgpu: Optimize xxx_ras_late_init function of each ras block

2022-02-14 Thread yipechai
1. Move calling ras block instance members from module internal function to the top calling xxx_ras_late_init. 2. Module internal function calls can only use parameter variables of xxx_ras_late_init instead of ras block instance members. Signed-off-by: yipechai --- drivers/gpu/drm/amd/amdg

[PATCH 1/7] drm/amdgpu: Modify .ras_late_init function pointer parameter

2022-02-14 Thread yipechai
Modify .ras_late_init function pointer parameter so that it can remove redundant intermediate calls in some ras blocks. Signed-off-by: yipechai --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c | 2 +-

[PATCH 3/7] drm/amdgpu: Remove redundant calls of ras_late_init in mmhub ras block

2022-02-14 Thread yipechai
Remove redundant calls of ras_late_init in mmhub ras block. Signed-off-by: yipechai --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.c | 5 - drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h | 1 - drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +- 4 file

[PATCH 2/7] drm/amdgpu: Remove redundant calls of ras_late_init in hdp ras block

2022-02-14 Thread yipechai
Remove redundant calls of ras_late_init in hdp ras block. Signed-off-by: yipechai --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c | 5 - drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/

Re: [PATCH v4 00/10] Overhaul `is_thunderbolt`

2022-02-14 Thread Lukas Wunner
On Mon, Feb 14, 2022 at 06:01:50PM -0600, Mario Limonciello wrote: > drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +- > drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c | 2 +- > drivers/gpu/drm/nouveau/nouveau_vga.c | 4 +- > drivers/gpu/drm/radeon/radeon_device.c | 4 +- > drivers/gpu/drm/radeon/ra

Re: [PATCH] drm/amdgpu: make cyan skillfish support code more consistent

2022-02-14 Thread Huang Rui
On Mon, Feb 14, 2022 at 03:48:47PM -0500, Alex Deucher wrote: > Since this is an existing asic, adjust the code to follow > the same logic as previously so the driver state is consistent. > > No functional change intended. > > Signed-off-by: Alex Deucher Acked-by: Huang Rui > --- > drivers/g

Re: [PATCH] drm/amd/pm: enable pm sysfs write for one VF mode

2022-02-14 Thread Yao, Yiqing(James)
On 2/14/2022 10:54 AM, Liu, Monk wrote: [AMD Official Use Only] Reviewed-by: monk@amd.com Thanks --- Monk Liu | Cloud GPU & Virtualization Solution | AMD On 1/24/2022 6:01 PM, Yiqing Yao wrote: [why] pm sysfs should be

RE: Regression from 3c196f056666 ("drm/amdgpu: always reset the asic in suspend (v2)") on suspend?

2022-02-14 Thread Quan, Evan
[AMD Official Use Only] > -Original Message- > From: Salvatore Bonaccorso On Behalf > Of Salvatore Bonaccorso > Sent: Sunday, February 13, 2022 2:24 AM > To: Deucher, Alexander > Cc: Dominique Dumont ; 1005...@bugs.debian.org; > Tuikov, Luben ; Quan, Evan > ; Sasha Levin ; Koenig, Chri

[PATCH v4 06/10] PCI: Drop the `is_thunderbolt` attribute from PCI core

2022-02-14 Thread Mario Limonciello
The `is_thunderbolt` attribute originally had a well defined list of quirks that it existed for, but it has been overloaded with more meaning. Instead use the driver core removable attribute to indicate the detail a device is attached to a thunderbolt or USB4 chain. Signed-off-by: Mario Limonciel

[PATCH v4 10/10] PCI: drop `pci_is_thunderbolt_attached`

2022-02-14 Thread Mario Limonciello
Currently `pci_is_thunderbolt_attached` is used to indicate a device is connected externally. As all drivers now look at the removable attribute, drop this function. Signed-off-by: Mario Limonciello --- include/linux/pci.h | 22 -- 1 file changed, 22 deletions(-) diff --git

[PATCH v4 09/10] drm/radeon: drop the use of `pci_is_thunderbolt_attached`

2022-02-14 Thread Mario Limonciello
Currently `pci_is_thunderbolt_attached` is used to indicate a device is connected externally. The PCI core now marks such devices as removable and downstream drivers can use this instead. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/radeon/radeon_device.c | 4 ++-- drivers/gpu/drm/radeo

[PATCH v4 08/10] drm/nouveau: drop the use of `pci_is_thunderbolt_attached`

2022-02-14 Thread Mario Limonciello
Currently `pci_is_thunderbolt_attached` is used to indicate a device is connected externally. The PCI core now marks such devices as removable and downstream drivers can use this instead. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/nouveau/nouveau_vga.c | 4 ++-- 1 file changed, 2 inse

[PATCH v4 05/10] PCI: Move check for old Apple Thunderbolt controllers into a quirk

2022-02-14 Thread Mario Limonciello
`pci_bridge_d3_possible` currently checks explicitly for a Thunderbolt controller to indicate that D3 is possible. This is used solely for older Apple systems, due to a variety of factors: * Apple used SW connection manager from the beginning, other manufacturers used a FW connection manager (IC

[PATCH v4 07/10] drm/amd: drop the use of `pci_is_thunderbolt_attached`

2022-02-14 Thread Mario Limonciello
Currently `pci_is_thunderbolt_attached` is used to indicate a device is connected externally. The PCI core now marks such devices as removable and downstream drivers can use this instead. Reviewed-by: Macpaul Lin Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2

[PATCH v4 04/10] PCI: Detect PCIe root ports for discrete USB4 controllers

2022-02-14 Thread Mario Limonciello
Discrete USB4 controllers won't have ACPI nodes specifying which root ports they are linked with when the software connection manager creates tunnels. These PCIe root ports should be marked as external so that existing logic will mark tunneled devices as removable. In order to set the external at

[PATCH v4 03/10] PCI: Detect root port of internal USB4 controllers

2022-02-14 Thread Mario Limonciello
The root port used for PCIe tunneling is the root of the hierarchy used for all PCIe devices that are connected downstream. Tunnels are created and destroyed by the USB4 SW CM. So this port should be marked as external meaning all devices connected to it are appropriately marked as removable for

[PATCH v4 02/10] PCI: Move `is_thunderbolt` check for lack of command completed to a quirk

2022-02-14 Thread Mario Limonciello
The `is_thunderbolt` check is currently used to indicate the lack of command completed support for a number of older Thunderbolt devices. This however is heavy handed and should have been done via a quirk. Move the affected devices outlined in commit 493fb50e958c ("PCI: pciehp: Assume NoCompl+ fo

[PATCH v4 01/10] PCI: Add USB4 class definition

2022-02-14 Thread Mario Limonciello
This PCI class definition of the USB4 device is currently located only in the thunderbolt driver. It will be needed by a few other drivers for upcoming changes. Move it into the common include file. Acked-by: Bjorn Helgaas Acked-by: Alex Deucher Acked-by: Mika Westerberg Signed-off-by: Mario L

[PATCH v4 00/10] Overhaul `is_thunderbolt`

2022-02-14 Thread Mario Limonciello
Various drivers in the kernel use `is_thunderbolt` or `pci_is_thunderbolt_attached` to designate behaving differently from a device that is internally in the machine. This relies upon checks for a specific capability only set on Intel controllers. Non-Intel USB4 designs should also match this desi

[PATCH] drm/amdgpu: Add "harvest" to IP discovery sysfs

2022-02-14 Thread Luben Tuikov
Add the "harvest" field to the IP attributes in the IP discovery sysfs visualization, as this field is present in the binary data. Cc: Alex Deucher Signed-off-by: Luben Tuikov --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/g

[PATCH] drm/amdgpu: Add "harvest" to IP discovery sysfs

2022-02-14 Thread Luben Tuikov
Add the "harvest" field to the IP attributes in the IP discovery sysfs visualization, as this field is present in the binary data. --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/

[PATCH] drm/amdgpu: set new revision id for 10.3.7 GC

2022-02-14 Thread Alex Deucher
From: Prike Liang Add new revision ID for GC 10.3.7 and set cg/pg flags. Signed-off-by: Prike Liang Reviewed-by: Huang Rui Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/dr

[PATCH] drm/amdgpu/discovery: set sw common init for GC 10.3.7

2022-02-14 Thread Alex Deucher
From: Prike Liang Set nv_common_ip_block for GC 10.3.7. Signed-off-by: Prike Liang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/driv

[PATCH] drm/amdgpu/discovery: Add 13.0.9 SMUIO block

2022-02-14 Thread Alex Deucher
From: Prike Liang Add SMUIO sw function for the new SMUIO block. Signed-off-by: Prike Liang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.

[PATCH] drm/amdgpu/discovery: add nbio sw func for 7.5.1 nbio

2022-02-14 Thread Alex Deucher
From: Prike Liang add nbio sw func for the new 7.5.1 nbio block. Signed-off-by: Prike Liang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.

Re: Regression from 3c196f056666 ("drm/amdgpu: always reset the asic in suspend (v2)") on suspend?

2022-02-14 Thread Alex Deucher
On Sat, Feb 12, 2022 at 1:23 PM Salvatore Bonaccorso wrote: > > Hi Alex, hi all > > In Debian we got a regression report from Dominique Dumont, CC'ed in > https://bugs.debian.org/1005005 that afer an update to 5.15.15 based > kernel, his machine noe longer suspends correctly, after screen going >

RE: [PATCH 00/11] DC Patches Feburary 14, 2022

2022-02-14 Thread Wheeler, Daniel
[AMD Official Use Only] Hi all, This week this patchset was tested on the following systems: Lenovo Thinkpad T14s Gen2 with AMD Ryzen 5 5650U, with the following display types: eDP 1080p 60hz, 4k 60hz (via USB-C to DP/HDMI), 1440p 144hz (via USB-C to DP/HDMI), 1680*1050 60hz (via USB-C to D

RE: [PATCH] drm/amdgpu: Fix wait for RLCG command completion

2022-02-14 Thread Zhang, Bokun
[AMD Official Use Only] Tested-by: Bokun Zhang The test configuration is 8VF with 100 loops of VM reboot. -Original Message- From: amd-gfx On Behalf Of Victor Skvortsov Sent: Thursday, February 3, 2022 4:25 PM To: amd-gfx@lists.freedesktop.org Cc: Skvortsov, Victor Subject: [PATCH] d

[PATCH] drm/amdgpu: make cyan skillfish support code more consistent

2022-02-14 Thread Alex Deucher
Since this is an existing asic, adjust the code to follow the same logic as previously so the driver state is consistent. No functional change intended. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 1 + drivers/

Re: [PATCH] drm/amdgpu: check return status before using stable_pstate

2022-02-14 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Feb 14, 2022 at 1:22 PM wrote: > > From: Tom Rix > > Clang static analysis reports this problem > amdgpu_ctx.c:616:26: warning: Assigned value is garbage > or undefined > args->out.pstate.flags = stable_pstate; > ^ ~ > amdg

[PATCH] drm/amdgpu: check return status before using stable_pstate

2022-02-14 Thread trix
From: Tom Rix Clang static analysis reports this problem amdgpu_ctx.c:616:26: warning: Assigned value is garbage or undefined args->out.pstate.flags = stable_pstate; ^ ~ amdgpu_ctx_stable_pstate can fail without setting stable_pstate. So check. Fixes: 8c

Re: [PATCH] drm/amd/display: Protect update_bw_bounding_box FPU code.

2022-02-14 Thread Alex Deucher
Applied. Thanks! Alex On Sat, Feb 12, 2022 at 10:40 AM Bas Nieuwenhuizen wrote: > > For DCN3/3.01/3.02 at least these use the fpu. > > Signed-off-by: Bas Nieuwenhuizen > --- > drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c | 2 ++ > drivers/gpu/drm/amd/display/dc/core/dc.c

Re: AMDGPU: RX 6500 XT: System reset when loading module

2022-02-14 Thread Cal Peake
Hi Christian, Thanks for the reply. On Mon, 14 Feb 2022, Christian König wrote: > well that sounds strongly like some hardware problem. What power supply do you > have in that system? > Right now, I've got it hooked up to a Corsair VX550W. It's on a test bench so the only things hanging off t

Re: [PATCH 09/27] mm: generalize the pgmap based page_free infrastructure

2022-02-14 Thread Logan Gunthorpe
On 2022-02-10 12:28 a.m., Christoph Hellwig wrote: > Key off on the existence of ->page_free to prepare for adding support for > more pgmap types that are device managed and thus need the free callback. > > Signed-off-by: Christoph Hellwig Great! This makes my patch simpler. Reviewed-by: Log

Re: [PATCH v3 05/12] PCI: Detect root port of internal USB4 devices by `usb4-host-interface`

2022-02-14 Thread Mika Westerberg
On Mon, Feb 14, 2022 at 01:11:05PM +0200, Mika Westerberg wrote: > > > It is used to identify "tunneled" ports (whether PCIe, USB 3.x or > > > DisplayPort). Tunnels are created by software (in Linux it is the > > > Thunderbolt driver) and are dynamic in nature. The USB4 links go over > > > USB Type

Re: Regression from 3c196f056666 ("drm/amdgpu: always reset the asic in suspend (v2)") on suspend?

2022-02-14 Thread Thorsten Leemhuis
[TLDR: I'm adding the regression report below to regzbot, the Linux kernel regression tracking bot; all text you find below is compiled from a few templates paragraphs you might have encountered already already from similar mails.] Hi, this is your Linux kernel regression tracker speaking. CCin

Re: [PATCH v3 05/12] PCI: Detect root port of internal USB4 devices by `usb4-host-interface`

2022-02-14 Thread Mika Westerberg
On Mon, Feb 14, 2022 at 09:52:02AM +0100, Lukas Wunner wrote: > On Mon, Feb 14, 2022 at 09:34:26AM +0200, Mika Westerberg wrote: > > On Fri, Feb 11, 2022 at 03:45:46PM -0600, Bjorn Helgaas wrote: > > > My expectation is that "USB" (like "PCI" and "PCIe") tells me > > > something about how a device

Re: [PATCH v3 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-14 Thread Christian König
Am 14.02.22 um 14:15 schrieb Somalapuram, Amaranath: On 2/14/2022 2:59 PM, Christian König wrote: Am 14.02.22 um 10:16 schrieb Somalapuram Amaranath: List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath ---   drivers/gpu/drm/amd/amdgpu/a

Re: [PATCH v3 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-14 Thread Somalapuram, Amaranath
On 2/14/2022 2:59 PM, Christian König wrote: Am 14.02.22 um 10:16 schrieb Somalapuram Amaranath: List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath ---   drivers/gpu/drm/amd/amdgpu/amdgpu.h |  4 ++   drivers/gpu/drm/amd/amdgpu/

Re: [PATCH 1/2] edid: parse DRM VESA dsc bpp target

2022-02-14 Thread Jani Nikula
Subject prefix should be drm/edid. On Sun, 13 Feb 2022, Yaroslav Bolyukin wrote: > As per DisplayID v2.0 Errata E9 spec Please be more elaborate about the changes. You also need to update drm_reset_display_info(). BR, Jani. > Signed-off-by: Yaroslav Bolyukin > --- > drivers/gpu/drm/drm_ed

Re: [PATCH v3 2/2] drm/amdgpu: add reset register dump trace function on GPU reset

2022-02-14 Thread Christian König
Am 14.02.22 um 10:16 schrieb Somalapuram Amaranath: Dump the list of register values to trace event on GPU reset. Signed-off-by: Somalapuram Amaranath One nit pick below, with that fixed Reviewed-by: Christian König . --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 17 -

Re: [PATCH v3 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-14 Thread Christian König
Am 14.02.22 um 10:16 schrieb Somalapuram Amaranath: List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 80 + 2

[PATCH v3 2/2] drm/amdgpu: add reset register dump trace function on GPU reset

2022-02-14 Thread Somalapuram Amaranath
Dump the list of register values to trace event on GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 17 - drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 16 2 files changed, 32 insertions(+), 1 deletion(-) diff --git

[PATCH v3 1/2] drm/amdgpu: add debugfs for reset registers list

2022-02-14 Thread Somalapuram Amaranath
List of register populated for dump collection during the GPU reset. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 80 + 2 files changed, 84 insertions(+) diff --git a/drivers/gpu/d

Re: [PATCH v12 1/5] drm: improve drm_buddy_alloc function

2022-02-14 Thread Christian König
Am 14.02.22 um 09:36 schrieb Matthew Auld: On Mon, 14 Feb 2022 at 06:32, Christian König wrote: Am 13.02.22 um 09:52 schrieb Arunpravin: - Make drm_buddy_alloc a single function to handle range allocation and non-range allocation demands - Implemented a new function alloc_range() which

Re: [PATCH v3 05/12] PCI: Detect root port of internal USB4 devices by `usb4-host-interface`

2022-02-14 Thread Lukas Wunner
On Mon, Feb 14, 2022 at 09:34:26AM +0200, Mika Westerberg wrote: > On Fri, Feb 11, 2022 at 03:45:46PM -0600, Bjorn Helgaas wrote: > > My expectation is that "USB" (like "PCI" and "PCIe") tells me > > something about how a device is electrically connected and how > > software can operate it. It doe

Re: [PATCH v2 2/3] mm/gup.c: Migrate device coherent pages when pinning instead of failing

2022-02-14 Thread Alistair Popple
John Hubbard writes: > On 2/11/22 18:51, Alistair Popple wrote: […] >>> See below… >>> + } + + pages[i] = migrate_device_page(head, gup_flags); >> migrate_device_page() will return a new page that has been correctly pinned >> with gup_flags by tr

AMDGPU: RX 6500 XT: System reset when loading module

2022-02-14 Thread Cal Peake
Hi, I'm trying to get my shiny new Sapphire 6500 XT (PCI 1002:743f rev c1, subsys 1da2:e457) up and running, but upon loading the amdgpu driver, the system does a hard reset. If I pass test=1, it will delay the reset -- that is, the framebuffer code will kick in and the resolution of the conso

Re: [PATCH v6 01/10] mm: add zone device coherent type memory support

2022-02-14 Thread Alistair Popple
Felix Kuehling writes: > Am 2022-02-11 um 11:15 schrieb David Hildenbrand: >> On 01.02.22 16:48, Alex Sierra wrote: >>> Device memory that is cache coherent from device and CPU point of view. >>> This is used on platforms that have an advanced system bus (like CAPI >>> or CXL). Any page of a proc

Regression from 3c196f056666 ("drm/amdgpu: always reset the asic in suspend (v2)") on suspend?

2022-02-14 Thread Salvatore Bonaccorso
Hi Alex, hi all In Debian we got a regression report from Dominique Dumont, CC'ed in https://bugs.debian.org/1005005 that afer an update to 5.15.15 based kernel, his machine noe longer suspends correctly, after screen going black as usual it comes back. The Debian bug above contians a trace. Domi

Re: [PATCH v2 3/9] PCI: drop `is_thunderbolt` attribute

2022-02-14 Thread Mika Westerberg
Hi, On Sun, Feb 13, 2022 at 09:39:28AM +0100, Lukas Wunner wrote: > On Fri, Feb 11, 2022 at 12:23:51PM +0200, Mika Westerberg wrote: > > On Thu, Feb 10, 2022 at 04:43:23PM -0600, Mario Limonciello wrote: > > > @@ -2955,7 +2955,7 @@ bool pci_bridge_d3_possible(struct pci_dev *bridge) > > >

Re: [PATCH v2 2/3] mm/gup.c: Migrate device coherent pages when pinning instead of failing

2022-02-14 Thread Alistair Popple
On Saturday, 12 February 2022 1:10:29 PM AEDT John Hubbard wrote: > On 2/6/22 20:26, Alistair Popple wrote: > > Currently any attempts to pin a device coherent page will fail. This is > > because device coherent pages need to be managed by a device driver, and > > pinning them would prevent a drive

Re: [PATCH V2 00/13] use time_is_xxx() instead of jiffies judgment

2022-02-14 Thread Theodore Ts'o
On Thu, Feb 10, 2022 at 06:30:23PM -0800, Qing Wang wrote: > From: Wang Qing > > It is better to use time_is_xxx() directly instead of jiffies judgment > for understanding. Hi Wang, "judgement" doesn't really make sense as a description to an English speaker. The following a commit desription

Re: [PATCH v3 05/12] PCI: Detect root port of internal USB4 devices by `usb4-host-interface`

2022-02-14 Thread Mika Westerberg
Hi Bjorn, On Fri, Feb 11, 2022 at 03:45:46PM -0600, Bjorn Helgaas wrote: > On Fri, Feb 11, 2022 at 01:32:43PM -0600, Mario Limonciello wrote: > > The root port used for PCIe tunneling should be marked as removable to > > ensure that the entire chain is marked removable. > > > > This can be done b

[PATCH 1/2] edid: parse DRM VESA dsc bpp target

2022-02-14 Thread Yaroslav Bolyukin
As per DisplayID v2.0 Errata E9 spec Signed-off-by: Yaroslav Bolyukin --- drivers/gpu/drm/drm_edid.c | 31 --- include/drm/drm_connector.h | 6 ++ include/drm/drm_displayid.h | 4 3 files changed, 30 insertions(+), 11 deletions(-) diff --git a/drivers/gpu

Re: [RFC] Upstreaming Linux for Nintendo Wii U

2022-02-14 Thread Ash Logan
Hi Christophe, On 12/2/22 00:11, Christophe Leroy wrote: Hi Ash, Le 11/02/2022 à 12:29, Michael Ellerman a écrit : Ash Logan writes: - Like the Wii before it, the Wii U has a small amount of RAM at address zero, a gap, then a large amount of RAM at a higher address. Instead of the "map every

Re: [PATCH v3 03/12] PCI: Move check for old Apple Thunderbolt controllers into a quirk

2022-02-14 Thread Mika Westerberg
Hi Lukas, On Sun, Feb 13, 2022 at 10:19:20AM +0100, Lukas Wunner wrote: > On Fri, Feb 11, 2022 at 01:32:41PM -0600, Mario Limonciello wrote: > > `pci_bridge_d3_possible` currently checks explicitly for a Thunderbolt > > controller to indicate that D3 is possible. As this is used solely > > for ol

Re: [PATCH v2 2/3] mm/gup.c: Migrate device coherent pages when pinning instead of failing

2022-02-14 Thread John Hubbard
On 2/6/22 20:26, Alistair Popple wrote: Currently any attempts to pin a device coherent page will fail. This is because device coherent pages need to be managed by a device driver, and pinning them would prevent a driver from migrating them off the device. However this is no reason to fail pinni

Re: [PATCH v3 04/12] PCI: Drop the `is_thunderbolt` attribute from PCI core

2022-02-14 Thread Mika Westerberg
Hi Mario, On Sun, Feb 13, 2022 at 11:26:56AM -0600, Limonciello, Mario wrote: > On 2/13/2022 02:20, Lukas Wunner wrote: > > On Fri, Feb 11, 2022 at 01:32:42PM -0600, Mario Limonciello wrote: > > > The `is_thunderbolt` attribute is currently a dumping ground for a > > > variety of things. > > > >

Re: [PATCH v3 03/12] PCI: Move check for old Apple Thunderbolt controllers into a quirk

2022-02-14 Thread Mika Westerberg
Hi, On Fri, Feb 11, 2022 at 04:06:20PM -0600, Limonciello, Mario wrote: > On 2/11/2022 15:35, Bjorn Helgaas wrote: > > On Fri, Feb 11, 2022 at 01:32:41PM -0600, Mario Limonciello wrote: > > > `pci_bridge_d3_possible` currently checks explicitly for a Thunderbolt > > > controller to indicate that D

Re: [PATCH v2 2/3] mm/gup.c: Migrate device coherent pages when pinning instead of failing

2022-02-14 Thread John Hubbard
On 2/11/22 18:51, Alistair Popple wrote: ... @@ -1888,15 +1942,40 @@ static long check_and_migrate_movable_pages(unsigned long nr_pages, continue; prev_head = head; /* -* If we get a movable page, since we are going to be pi

[PATCH 2/2] drm/amd: use fixed dsc bits-per-pixel from edid

2022-02-14 Thread Yaroslav Bolyukin
VESA vendor header from DisplayID spec may contain fixed bit per pixel rate, it should be respected by drm driver Signed-off-by: Yaroslav Bolyukin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 2 ++ drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 3 ++- drivers/gpu/

RE: [PATCH V2 00/13] use time_is_xxx() instead of jiffies judgment

2022-02-14 Thread 王擎
  >>On Thu, Feb 10, 2022 at 06:30:23PM -0800, Qing Wang wrote: >> From: Wang Qing >> >> It is better to use time_is_xxx() directly instead of jiffies judgment >> for understanding. > >Hi Wang, > >"judgement" doesn't really make sense as a description to an English >speaker.  The following a commi

Re: [RFC] Upstreaming Linux for Nintendo Wii U

2022-02-14 Thread Ash Logan
Thanks for your response! On 11/2/22 22:29, Michael Ellerman wrote: Ash Logan writes: Hello, Hi Ash, I can't really answer all your questions, but I can chime in on one or two things ... - Right now I've made a new platform (like ps3) rather than joining the GameCube and Wii in embedded6x

RE: [PATCH Review 1/1] drm/amdgpu: print more error info

2022-02-14 Thread Zhang, Hawking
[AMD Official Use Only] There might be some miscommunication. Anyway, let's keep the message to inform poison creation event - dev_info(obj->adev->dev, - "Poison is created, no user action is needed.\n"); While remove "

Re: [PATCH v12 1/5] drm: improve drm_buddy_alloc function

2022-02-14 Thread Matthew Auld
On Mon, 14 Feb 2022 at 06:32, Christian König wrote: > > Am 13.02.22 um 09:52 schrieb Arunpravin: > > - Make drm_buddy_alloc a single function to handle > >range allocation and non-range allocation demands > > > > - Implemented a new function alloc_range() which allocates > >the requested

[PATCH Review 1/1] drm/amdgpu: print more error info

2022-02-14 Thread Stanley . Yang
print more error info when deferred uncorrectable ras error changed from V1: move Defferred error msg into query uncorrectable error count function. Signed-off-by: Stanley.Yang --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +- drivers/gpu/drm/amd/amdgpu/umc_v6_7.c | 72