From: Yazen Ghannam <yazen.ghannam@amd.com>
To: kernel test robot <lkp@intel.com>,
bp@alien8.de, linux-edac@vger.kernel.org, tony.luck@intel.com
Cc: yazen.ghannam@amd.com, oe-kbuild-all@lists.linux.dev,
linux-kernel@vger.kernel.org, avadhut.naik@amd.com,
john.allen@amd.com, william.roche@oracle.com
Subject: Re: [PATCH v2 1/2] RAS: Introduce AMD Address Translation Library
Date: Tue, 24 Oct 2023 11:30:01 -0400 [thread overview]
Message-ID: <935d6e08-3754-4c06-ab25-69bda3fd8ea1@amd.com> (raw)
In-Reply-To: <202310162015.fuitGuiJ-lkp@intel.com>
On 10/16/2023 8:28 AM, kernel test robot wrote:
> Hi Yazen,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on ras/edac-for-next]
> [also build test ERROR on linus/master v6.6-rc6 next-20231016]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> https://git-scm.com/docs/git-format-patch#_base_tree_information]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Yazen-Ghannam/RAS-Introduce-AMD-Address-Translation-Library/20231006-014458
> base: https://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git edac-for-next
> patch link: https://lore.kernel.org/r/20231005173526.42831-2-yazen.ghannam%40amd.com
> patch subject: [PATCH v2 1/2] RAS: Introduce AMD Address Translation Library
> config: i386-buildonly-randconfig-002-20231016 (https://download.01.org/0day-ci/archive/20231016/202310162015.fuitGuiJ-lkp@intel.com/config)
> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231016/202310162015.fuitGuiJ-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202310162015.fuitGuiJ-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> ld: drivers/ras/amd/atl/denormalize.o: in function `denormalize_address':
>>> denormalize.c:(.text+0x84f): undefined reference to `__umoddi3'
>
This is the code of interest:
addr_mod = temp_addr_b % 3;
"temp_addr_b" is a u64 value.
__umoddi3() takes "unsigned long" values as input. This works on x86_64
where "unsigned long" is 64-bits, but will fail on i386 where "unsigned
long" is 32-bits. I *think* __umodti3() should be used which takes
"unsigned long long" values as input. This would work on both i386 and
x86_64, since "unsigned long long" will be 64-bits.
I was able to reproduce the issue with GCC 9 and 10, and the issue is
not present with GCC 11 and 12.
I'm assuming a compiler/linker issue at the moment. In particular, I
wonder if gcc and ld need to be matched. I'm using a newer ld version
(2.38), and this works with newer gcc versions (11 and 12) but fails
with the older versions (9 and 10).
Any thoughts?
Thanks,
Yazen
next prev parent reply other threads:[~2023-10-24 15:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-05 17:35 [PATCH v2 0/2] AMD Address Translation Library Yazen Ghannam
2023-10-05 17:35 ` [PATCH v2 1/2] RAS: Introduce " Yazen Ghannam
2023-10-11 17:35 ` Borislav Petkov
2023-10-16 13:47 ` Yazen Ghannam
2023-10-25 10:53 ` Borislav Petkov
2023-10-16 12:28 ` kernel test robot
2023-10-24 15:30 ` Yazen Ghannam [this message]
2023-11-07 12:02 ` Borislav Petkov
2023-10-05 17:35 ` [PATCH v2 2/2] EDAC/amd64: Use new " Yazen Ghannam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=935d6e08-3754-4c06-ab25-69bda3fd8ea1@amd.com \
--to=yazen.ghannam@amd.com \
--cc=avadhut.naik@amd.com \
--cc=bp@alien8.de \
--cc=john.allen@amd.com \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tony.luck@intel.com \
--cc=william.roche@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox