Re: [PATCH] drm/amdgpu: Mark mmhub_v1_8_mmea_err_status_reg as __maybe_unused

2023-05-25 Thread Nick Desaulniers
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c > > > >> b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c > > > >> index 3648994724c2..cba087e529c0 100644 > > > >> --- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c > > > >> +++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c > > > >> @@ -701,6 +701,7 @@ static void > > > >> mmhub_v1_8_reset_ras_error_count(struct amdgpu_device *adev) > > > >>mmhub_v1_8_inst_reset_ras_error_count(adev, i); > > > >> } > > > >> > > > >> +__maybe_unused > > > >> static const uint32_t mmhub_v1_8_mmea_err_status_reg[] = { > > > >>regMMEA0_ERR_STATUS, > > > >>regMMEA1_ERR_STATUS, > > > >> -- > > > >> 2.25.1 > > > >> > > > > -- Thanks, ~Nick Desaulniers

Re: [PATCH] drm/amd/pm: remove unused num_of_active_display variable

2023-04-08 Thread Nick Desaulniers
ive_display = 0; > ^ > This variable is not used so remove it. > > Signed-off-by: Tom Rix Thanks for the patch! Fixes: commit 75145aab7a0d ("drm/amdgpu/swsmu: clean up a bunch of stale interfaces") Reviewed-by: Nick Desaulniers > --- > drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

Re: [PATCH] drm/amd/display: remove unused matching_stream_ptrs variable

2023-04-08 Thread Nick Desaulniers
if (assignment.stream != state->streams[i]) > valid_stream_ptrs = false; > } > } > -- > 2.27.0 > -- Thanks, ~Nick Desaulniers

Re: [PATCH] drm/amd/display: remove unused matching_stream_ptrs variable

2023-04-08 Thread Nick Desaulniers
On Fri, Apr 7, 2023 at 10:52 AM Nick Desaulniers wrote: > > Jimmy, can you review? > > The change LGTM; but I'm not sure if there was something else intended here. Nevermind, Jimmy's email address bounced. Reviewed-by: Nick Desaulniers > > On Sat, Mar 25, 2023 at 6:45

Re: [PATCH] drm/amdgpu: make DRM_AMD_DC x86-only again

2020-12-08 Thread Nick Desaulniers
Right, looking at my latest randconfig logs, I see the same problem on x86 > builds with clang as well, though I'm not entirely sure which other > configuration > options are needed to trigger it. > > So my patch can be disregarded, but I agree this needs a better fix, > either in clang or in the dcn driver. If you could give https://github.com/ClangBuiltLinux/frame-larger-than a spin again, I would appreciate any feedback. -- Thanks, ~Nick Desaulniers ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Re: [Intel-wired-lan] [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-25 Thread Nick Desaulniers
r way to entrust co-maintainers especially when they find their workload becomes too high. And reviewing/picking up trivial patches is probably a great way to get started. If we allow too much knowledge of any one subsystem to collect with one maintainer, what happens when that maintainer leaves the

Re: [PATCH] drm/amdgpu/dc: don't pass -mhard-float to clang

2020-05-05 Thread Nick Desaulniers
00644 > --- a/drivers/gpu/drm/amd/display/dc/dsc/Makefile > +++ b/drivers/gpu/drm/amd/display/dc/dsc/Makefile > @@ -3,14 +3,15 @@ > # Makefile for the 'dsc' sub-component of DAL. > > ifdef CONFIG_X86 > -dsc_ccflags := -mhard-float -msse > +dsc_ccflags := -msse > end

Re: [PATCH] amdgpu: fix integer overflow on 32-bit architectures

2020-05-05 Thread Nick Desaulniers
; To unsubscribe from this group and stop receiving emails from it, send an > email to clang-built-linux+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/clang-built-linux/e4a852b2-807b-bc73-7328-bcc399341085%40amd.com. -- Thanks, ~Nick Desaulniers ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Re: [PATCH] drm/amdgpu: Initialize shadow to false in gfx_v9_0_rlcg_wreg

2020-03-18 Thread Nick Desaulniers
else if (offset == grbm_idx) > > > -- > You received this message because you are subscribed to the Google Groups > "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clang-built-linux+un

Re: [PATCH] drm/amdgpu: Initialize shadow to false in gfx_v9_0_rlcg_wreg

2020-03-18 Thread Nick Desaulniers
;^ > = 0 > 1 warning generated. > > It is not wrong so initialize shadow to false to ensure shadow is always > used initialized. Yep, thanks for the patch. Reviewed-by: Nick Desaulniers > > Fixes: 2e0cc4d48b91 ("drm/amdgpu: revise R

Re: [CI-NOTIFY]: TCWG Bisect tcwg_kernel/llvm-release-aarch64-next-allmodconfig - Build # 48 - Successful!

2019-12-17 Thread Nick Desaulniers
ctx->unexpected_event = 1; > + goto out; > + } > + > + if (!mod_hdcp_execute_and_set(mod_hdcp_hdcp2_prepare_eks, > + >e

Re: [PATCH 0/3] drm/amdgpu: fix stack alignment ABI mismatch

2019-10-25 Thread Nick Desaulniers
On Wed, Oct 16, 2019 at 4:02 PM Nick Desaulniers wrote: > > The x86 kernel is compiled with an 8B stack alignment via > `-mpreferred-stack-boundary=3` for GCC since 3.6-rc1 via > commit d9b0cde91c60 ("x86-64, gcc: Use -mpreferred-stack-boundary=3 if > supported")

Re: AMDGPU and 16B stack alignment

2019-10-16 Thread Nick Desaulniers
On Wed, Oct 16, 2019 at 11:55 AM Arvind Sankar wrote: > > On Tue, Oct 15, 2019 at 06:51:26PM -0700, Nick Desaulniers wrote: > > On Tue, Oct 15, 2019 at 1:26 PM Arvind Sankar wrote: > > > > > > On Tue, Oct 15, 2019 at 11:05:56AM -0700, Nick Desaulniers wrote: >

[PATCH 2/3] drm/amdgpu: fix stack alignment ABI mismatch for GCC 7.1+

2019-10-16 Thread Nick Desaulniers
this code building for pre-GCC 7.1 users. The version check for GCC is broken into two conditionals, both because cc-ifversion is currently GCC specific, and it simplifies a subsequent patch. Signed-off-by: Nick Desaulniers --- drivers/gpu/drm/amd/display/dc/calcs/Makefile | 9 + drivers

[PATCH 0/3] drm/amdgpu: fix stack alignment ABI mismatch

2019-10-16 Thread Nick Desaulniers
we'd mark the driver broken for pre-GCC 7.1. Pragmatically, "if it ain't broke, don't fix it." Nick Desaulniers (3): drm/amdgpu: fix stack alignment ABI mismatch for Clang drm/amdgpu: fix stack alignment ABI mismatch for GCC 7.1+ drm/amdgpu: enable -msse2 for GCC 7.1+ users

[PATCH 3/3] drm/amdgpu: enable -msse2 for GCC 7.1+ users

2019-10-16 Thread Nick Desaulniers
use a 16B aligned stack in these translation units. This is only a functional change for GCC 7.1+ users, and should be boot tested. Link: https://bugs.freedesktop.org/show_bug.cgi?id=109487 Signed-off-by: Nick Desaulniers --- drivers/gpu/drm/amd/display/dc/calcs/Makefile | 4 +--- drivers/gpu/drm/a

[PATCH 1/3] drm/amdgpu: fix stack alignment ABI mismatch for Clang

2019-10-16 Thread Nick Desaulniers
iler flags, as it will result in runtime GPFs when built with Clang. Cleanups for GCC will be sent in later patches in the series. Link: https://github.com/ClangBuiltLinux/linux/issues/735 Debugged-by: Yuxuan Shui Reported-by: Shirish S Reported-by: Yuxuan Shui Suggested-by: Andrew Cooper Signed-of

Re: AMDGPU and 16B stack alignment

2019-10-15 Thread Nick Desaulniers
On Tue, Oct 15, 2019 at 1:26 PM Arvind Sankar wrote: > > On Tue, Oct 15, 2019 at 11:05:56AM -0700, Nick Desaulniers wrote: > > Hmmm...I would have liked to remove it outright, as it is an ABI > > mismatch that is likely to result in instability and non-fun-to-debug

Re: AMDGPU and 16B stack alignment

2019-10-15 Thread Nick Desaulniers
On Tue, Oct 15, 2019 at 11:30 AM Alex Deucher wrote: > > On Tue, Oct 15, 2019 at 2:07 PM Nick Desaulniers > wrote: > > > > On Tue, Oct 15, 2019 at 12:19 AM Arnd Bergmann wrote: > > > > > > On Tue, Oct 15, 2019 at 9:08 AM S, Shirish wrote: > > >

Re: AMDGPU and 16B stack alignment

2019-10-15 Thread Nick Desaulniers
On Tue, Oct 15, 2019 at 11:05 AM Nick Desaulniers wrote: > > On Tue, Oct 15, 2019 at 12:19 AM Arnd Bergmann wrote: > > > > On Tue, Oct 15, 2019 at 9:08 AM S, Shirish wrote: > > > On 10/15/2019 3:52 AM, Nick Desaulniers wrote: > > > >

Re: AMDGPU and 16B stack alignment

2019-10-15 Thread Nick Desaulniers
On Tue, Oct 15, 2019 at 12:19 AM Arnd Bergmann wrote: > > On Tue, Oct 15, 2019 at 9:08 AM S, Shirish wrote: > > On 10/15/2019 3:52 AM, Nick Desaulniers wrote: > > > My gcc build fails with below errors: > > > > dcn_calcs.c:1:0: error: -mpreferred-stack-b

AMDGPU and 16B stack alignment

2019-10-14 Thread Nick Desaulniers
w up patch, but I'd need help testing). -- Thanks, ~Nick Desaulniers

Re: [PATCH 4/6] drm/amd/display: fix dcn21 Makefile for clang

2019-10-02 Thread Nick Desaulniers
On Wed, Oct 2, 2019 at 2:24 PM Alex Deucher wrote: > > On Wed, Oct 2, 2019 at 5:19 PM Nick Desaulniers > wrote: > > > > Alex, do you know why the AMDGPU driver uses a different stack > > alignment (16B) than the rest of the x86 kernel? (see > > arch/x86/Makef

Re: [PATCH 4/6] drm/amd/display: fix dcn21 Makefile for clang

2019-10-02 Thread Nick Desaulniers
ergmann Thanks for the patch! Reviewed-by: Nick Desaulniers Tested-by: Nick Desaulniers (Though I think it's already been merged) Alex, do you know why the AMDGPU driver uses a different stack alignment (16B) than the rest of the x86 kernel? (see arch/x86/Makefile which uses 8B stack alignment). >

Re: [PATCH 6/6] [RESEND] drm/amdgpu: work around llvm bug #42576

2019-10-02 Thread Nick Desaulniers
On Wed, Oct 2, 2019 at 10:07 AM Nathan Chancellor wrote: > > On Wed, Oct 02, 2019 at 09:51:37AM -0700, 'Nick Desaulniers' via Clang Built > Linux wrote: > > > Apparently this bug is still present in both the released clang-9 > > > and the current development v

Re: [PATCH 6/6] [RESEND] drm/amdgpu: work around llvm bug #42576

2019-10-02 Thread Nick Desaulniers
> Apparently this bug is still present in both the released clang-9 > and the current development version of clang-10. > I was hoping we would not need a workaround in clang-9+, but > it seems that we do. I think I'd rather: 1. mark AMDGPU BROKEN if CC_IS_CLANG. There are numerous other issues

Re: [PATCH] drm/amd/display: build failed for DCN2.1

2019-09-17 Thread Nick Desaulniers
On Mon, Sep 16, 2019 at 2:03 AM Xinpeng Liu wrote: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/Makefile:70: *** missing > `endif'. Stop. > make[4]: *** [drivers/gpu/drm/amd/amdgpu] Error 2 > > Signed-off-by: Xinpeng Liu Tested-by: Nick Desaulniers + Mark I think

Re: [PATCH] drm/amd/display: Support clang option for stack alignment

2019-07-12 Thread Nick Desaulniers
ed-stack-boundary=4 > +else ifneq ($(call cc-option, -mstack-alignment=16),) > + cc_stack_align := -mstack-alignment=16 > +endif > + > +dsc_ccflags := -mhard-float -msse $(cc_stack_align) > + > +CFLAGS_rc_calc.o := $(dsc_ccflags) > +CFLAGS_rc_calc_dpi.o := $(dsc_ccflags) > +CFLAGS_codec_main_amd.o := $(dsc_ccflags) > +CFLAGS_dc_dsc.o := $(dsc_ccflags) -- Thanks, ~Nick Desaulniers

Re: Clang warning in drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

2019-03-20 Thread Nick Desaulniers
kernel-wide for most cases. -Wenum-conversion has spotted many bugs. While the enums in question today are not different, they MIGHT eventually diverge and lead to bugs, like the others we've found and fixed throughout the kernel. So I would recommend fixing now,

Re: [PATCH] drm/amd/powerplay: Zero initialize num_of_levels in vega20_set_single_dpm_table

2019-03-20 Thread Nick Desaulniers
lback were > ever to disappear, num_of_levels would never be initialized. Just > zero initialize it to ensure that the intent behind this code > remains the same. Thanks for the simple fix. Reviewed-by: Nick Desaulniers > > Fixes: 870b996f955f ("drm/amd/powerplay: set defalut dp

Re: [PATCH] drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines

2019-01-29 Thread Nick Desaulniers
thub.com/ClangBuiltLinux/linux/issues/327 > >>>> Cc: sta...@vger.kernel.org # 4.19 > >>>> Reported-by: S, Shirish > >>>> Reported-by: Matthias Kaehlcke > >>>> Suggested-by: James Y Knight > >>>> Suggested-by: Nathan Chancello

Re: [Linux-v4.18-rc6] modpost-errors when compiling with clang-7 and CONFIG_DRM_AMDGPU=m

2019-01-25 Thread Nick Desaulniers
gt; > > > > Looks good to me. > > > > Reviewed-by: Harry Wentland > > > > And applied. > > > > Thanks. > > Can you point me to the commit and Git tree? I suspect the tree it will be pushed to is: https://cgit.freedesktop.org/~agd5f/linux/ But I sus

Re: [PATCH] drm/amd/display: Pass app_tf by value rather than by reference

2018-12-11 Thread Nick Desaulniers
On Tue, Dec 11, 2018 at 2:24 PM Nathan Chancellor wrote: > On Tue, Dec 11, 2018 at 02:07:31PM -0800, Nick Desaulniers wrote: > > On Tue, Dec 11, 2018 at 1:42 PM Nathan Chancellor > > wrote: > > > > > > On Tue, Dec 11, 2018 at 01:25:00PM -0800, Nick Desaulni

Re: [PATCH] drm/amd/display: Pass app_tf by value rather than by reference

2018-12-11 Thread Nick Desaulniers
On Tue, Dec 11, 2018 at 1:42 PM Nathan Chancellor wrote: > > On Tue, Dec 11, 2018 at 01:25:00PM -0800, Nick Desaulniers wrote: > > On Mon, Dec 10, 2018 at 3:42 PM Nathan Chancellor > > wrote: > > > > > > Clang warns when an expression that equals zero is u

Re: [PATCH] drm/amd/display: Pass app_tf by value rather than by reference

2018-12-11 Thread Nick Desaulniers
ers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c#4949: - NULL, + transfer_func_unknown, Maybe at that point the `if (app_tf != NULL)` could be replaced with `if (app_tf != transfer_func_unknown)` hoisted from `build_vrr_infopac

Re: [PATCH v2] drm/amd/display: Use proper enums in process_channel_reply

2018-09-27 Thread Nick Desaulniers
ferent enumeration type 'enum > > aux_transaction_reply' [-Wenum-conversion] > > reply->status = AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON; > > ~ ^~~ > > > > The current enum is incorrect, it should be fr

Re: [PATCH] drm/amd/display: Change status's type in aux_reply_transaction_data

2018-09-24 Thread Nick Desaulniers
ge status to type uint8_t (since its max size is 255) which avoids > this construct altogether. > > Reported-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor > --- > drivers/gpu/drm/amd/display/dc/dc_ddc_types.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > d

Re: [PATCH] drm/amd/powerplay: Change id parameter type in pp_atomfwctrl_get_clk_information_by_clkid

2018-09-24 Thread Nick Desaulniers
plicitly casting these values, change id's type to uint8_t > in pp_atomfwctrl_get_clk_information_by_clkid so no conversion happens. > > Reported-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor > --- > drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 3 ++- > drive

Re: [PATCH] drm/amdgpu: Add braces to initialize task_info subojects

2018-09-12 Thread Nick Desaulniers
On Wed, Sep 12, 2018 at 1:24 PM Richard Smith wrote: > > On Wed, Sep 12, 2018 at 10:38 AM Nick Desaulniers > wrote: >> >> On Tue, Sep 11, 2018 at 5:26 PM Nathan Chancellor >> wrote: >> > >> > Clang warns if there are missing braces around a subobjec

Re: [PATCH] drm/amdgpu: Add braces to initialize task_info subojects

2018-09-12 Thread Nick Desaulniers
lization of subobject [-Wmissing-braces] > struct amdgpu_task_info task_info = { 0 }; > ^ > {} > 1 warning generated. > > Reported-by: Nick Desaulniers > Si