Re: [PATCH v2 00/14] Remove clang's -Qunused-arguments from KBUILD_CPPFLAGS

2023-01-22 Thread Masahiro Yamada
On Thu, Jan 12, 2023 at 12:05 PM Nathan Chancellor wrote: > > Hi all, > > Clang can emit a few different warnings when it encounters a flag that it > recognizes but does not support internally. These warnings are elevated to > errors within {as,cc}-option via -Werror to catch unsupported flags tha

Re: [PATCH] drm/amd/display: Simplify same effect if/else blocks

2023-01-22 Thread Deepak R Varma
On Sun, Jan 15, 2023 at 12:52:10PM -0800, Joe Perches wrote: > On Sun, 2023-01-15 at 15:30 +0530, Deepak R Varma wrote: > > The if / else block code has same effect irrespective of the logical > > evaluation. Hence, simply the implementation by removing the unnecessary > > conditional evaluation.

Re: [PATCH v2] drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11

2023-01-22 Thread Greg KH
On Sat, Jan 21, 2023 at 10:49:55AM +0800, Tim Huang wrote: > PMFW will handle that properly for gpu reset case. Driver involvement > may cause some unexpected issues. > > Signed-off-by: Tim Huang > --- > drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 14 ++ > 1 file changed, 14 insertio

Re: [PATCH RESEND] drm/amdgpu: skip psp suspend for IMU enabled ASICs mode2 reset

2023-01-22 Thread Greg KH
On Sat, Jan 21, 2023 at 10:12:16AM +0800, Tim Huang wrote: > The psp suspend & resume should be skipped to avoid destroy > the TMR and reload FWs again for IMU enabled APU ASICs. > > Signed-off-by: Tim Huang > Acked-by: Alex Deucher > Reviewed-by: Mario Limonciello > --- > drivers/gpu/drm/amd/

Re: Calculating array sizes in C - was: Re: Build regressions/improvements in v6.2-rc1

2023-01-22 Thread John Paul Adrian Glaubitz
Hi! On 1/20/23 20:29, Michael Karcher wrote: Hello Adrian, Could you post a kernel patch for that? I would be happy to test it on my SH-7785CLR board. Also, I'm going to file a bug report against GCC. I filed the bug already. It's https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108483. The dif

Re: [PATCH 0/4] drm/amd/display: Use min()/max() helper macros

2023-01-22 Thread Deepak R Varma
On Sun, Jan 15, 2023 at 02:48:45AM +0530, Deepak R Varma wrote: > This patch series proposes using standard min() / max() helper macros instead > of > direct variable comparison using the ternary operator or if/else evaluations. > I > have tested the change using a dummy module and similar simula