From: kernel test robot <lkp@intel.com>
To: "Christian König" <ckoenig.leichtzumerken@gmail.com>,
bhelgaas@google.com
Cc: kbuild-all@lists.01.org, linux-pci@vger.kernel.org,
amd-gfx@lists.freedesktop.org,
clang-built-linux@googlegroups.com,
dri-devel@lists.freedesktop.org, devspam@moreofthesa.me.uk
Subject: Re: [PATCH 4/4] PCI: add a REBAR size quirk for Sapphire RX 5600 XT Pulse.
Date: Wed, 6 Jan 2021 01:28:00 +0800 [thread overview]
Message-ID: <202101060135.iyLcESHb-lkp@intel.com> (raw)
In-Reply-To: <20210105134404.1545-5-christian.koenig@amd.com>
[-- Attachment #1: Type: text/plain, Size: 3109 bytes --]
Hi "Christian,
I love your patch! Perhaps something to improve:
[auto build test WARNING on pci/next]
[also build test WARNING on linus/master v5.11-rc2 next-20210104]
[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]
url: https://github.com/0day-ci/linux/commits/Christian-K-nig/pci-export-pci_rebar_get_possible_sizes/20210105-224446
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-randconfig-r006-20210105 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5c951623bc8965fa1e89660f2f5f4a2944e4981a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/6838a45fc2394ec88455e1fb3998ac865a077168
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christian-K-nig/pci-export-pci_rebar_get_possible_sizes/20210105-224446
git checkout 6838a45fc2394ec88455e1fb3998ac865a077168
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/pci/pci.c:3611:7: warning: equality comparison result unused [-Wunused-comparison]
cap == 0x7f00;
~~~~^~~~~~~~~
drivers/pci/pci.c:3611:7: note: use '=' to turn this equality comparison into an assignment
cap == 0x7f00;
^~
=
1 warning generated.
vim +3611 drivers/pci/pci.c
3587
3588 /**
3589 * pci_rebar_get_possible_sizes - get possible sizes for BAR
3590 * @pdev: PCI device
3591 * @bar: BAR to query
3592 *
3593 * Get the possible sizes of a resizable BAR as bitmask defined in the spec
3594 * (bit 0=1MB, bit 19=512GB). Returns 0 if BAR isn't resizable.
3595 */
3596 u32 pci_rebar_get_possible_sizes(struct pci_dev *pdev, int bar)
3597 {
3598 int pos;
3599 u32 cap;
3600
3601 pos = pci_rebar_find_pos(pdev, bar);
3602 if (pos < 0)
3603 return 0;
3604
3605 pci_read_config_dword(pdev, pos + PCI_REBAR_CAP, &cap);
3606 cap = (cap & PCI_REBAR_CAP_SIZES) >> 4;
3607
3608 /* Sapphire RX 5600 XT Pulse has an invalid cap dword for BAR 0 */
3609 if (pdev->vendor == PCI_VENDOR_ID_ATI && pdev->device == 0x731f &&
3610 bar == 0 && cap == 0x700)
> 3611 cap == 0x7f00;
3612
3613 return cap;
3614 }
3615 EXPORT_SYMBOL(pci_rebar_get_possible_sizes);
3616
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32841 bytes --]
[-- Attachment #3: Type: text/plain, Size: 154 bytes --]
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: "Christian König" <ckoenig.leichtzumerken@gmail.com>,
bhelgaas@google.com
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
devspam@moreofthesa.me.uk, linux-pci@vger.kernel.org,
dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 4/4] PCI: add a REBAR size quirk for Sapphire RX 5600 XT Pulse.
Date: Wed, 6 Jan 2021 01:28:00 +0800 [thread overview]
Message-ID: <202101060135.iyLcESHb-lkp@intel.com> (raw)
In-Reply-To: <20210105134404.1545-5-christian.koenig@amd.com>
[-- Attachment #1: Type: text/plain, Size: 3109 bytes --]
Hi "Christian,
I love your patch! Perhaps something to improve:
[auto build test WARNING on pci/next]
[also build test WARNING on linus/master v5.11-rc2 next-20210104]
[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]
url: https://github.com/0day-ci/linux/commits/Christian-K-nig/pci-export-pci_rebar_get_possible_sizes/20210105-224446
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-randconfig-r006-20210105 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5c951623bc8965fa1e89660f2f5f4a2944e4981a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/6838a45fc2394ec88455e1fb3998ac865a077168
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christian-K-nig/pci-export-pci_rebar_get_possible_sizes/20210105-224446
git checkout 6838a45fc2394ec88455e1fb3998ac865a077168
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/pci/pci.c:3611:7: warning: equality comparison result unused [-Wunused-comparison]
cap == 0x7f00;
~~~~^~~~~~~~~
drivers/pci/pci.c:3611:7: note: use '=' to turn this equality comparison into an assignment
cap == 0x7f00;
^~
=
1 warning generated.
vim +3611 drivers/pci/pci.c
3587
3588 /**
3589 * pci_rebar_get_possible_sizes - get possible sizes for BAR
3590 * @pdev: PCI device
3591 * @bar: BAR to query
3592 *
3593 * Get the possible sizes of a resizable BAR as bitmask defined in the spec
3594 * (bit 0=1MB, bit 19=512GB). Returns 0 if BAR isn't resizable.
3595 */
3596 u32 pci_rebar_get_possible_sizes(struct pci_dev *pdev, int bar)
3597 {
3598 int pos;
3599 u32 cap;
3600
3601 pos = pci_rebar_find_pos(pdev, bar);
3602 if (pos < 0)
3603 return 0;
3604
3605 pci_read_config_dword(pdev, pos + PCI_REBAR_CAP, &cap);
3606 cap = (cap & PCI_REBAR_CAP_SIZES) >> 4;
3607
3608 /* Sapphire RX 5600 XT Pulse has an invalid cap dword for BAR 0 */
3609 if (pdev->vendor == PCI_VENDOR_ID_ATI && pdev->device == 0x731f &&
3610 bar == 0 && cap == 0x700)
> 3611 cap == 0x7f00;
3612
3613 return cap;
3614 }
3615 EXPORT_SYMBOL(pci_rebar_get_possible_sizes);
3616
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32841 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 4/4] PCI: add a REBAR size quirk for Sapphire RX 5600 XT Pulse.
Date: Wed, 06 Jan 2021 01:28:00 +0800 [thread overview]
Message-ID: <202101060135.iyLcESHb-lkp@intel.com> (raw)
In-Reply-To: <20210105134404.1545-5-christian.koenig@amd.com>
[-- Attachment #1: Type: text/plain, Size: 3188 bytes --]
Hi "Christian,
I love your patch! Perhaps something to improve:
[auto build test WARNING on pci/next]
[also build test WARNING on linus/master v5.11-rc2 next-20210104]
[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]
url: https://github.com/0day-ci/linux/commits/Christian-K-nig/pci-export-pci_rebar_get_possible_sizes/20210105-224446
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-randconfig-r006-20210105 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5c951623bc8965fa1e89660f2f5f4a2944e4981a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/6838a45fc2394ec88455e1fb3998ac865a077168
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christian-K-nig/pci-export-pci_rebar_get_possible_sizes/20210105-224446
git checkout 6838a45fc2394ec88455e1fb3998ac865a077168
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/pci/pci.c:3611:7: warning: equality comparison result unused [-Wunused-comparison]
cap == 0x7f00;
~~~~^~~~~~~~~
drivers/pci/pci.c:3611:7: note: use '=' to turn this equality comparison into an assignment
cap == 0x7f00;
^~
=
1 warning generated.
vim +3611 drivers/pci/pci.c
3587
3588 /**
3589 * pci_rebar_get_possible_sizes - get possible sizes for BAR
3590 * @pdev: PCI device
3591 * @bar: BAR to query
3592 *
3593 * Get the possible sizes of a resizable BAR as bitmask defined in the spec
3594 * (bit 0=1MB, bit 19=512GB). Returns 0 if BAR isn't resizable.
3595 */
3596 u32 pci_rebar_get_possible_sizes(struct pci_dev *pdev, int bar)
3597 {
3598 int pos;
3599 u32 cap;
3600
3601 pos = pci_rebar_find_pos(pdev, bar);
3602 if (pos < 0)
3603 return 0;
3604
3605 pci_read_config_dword(pdev, pos + PCI_REBAR_CAP, &cap);
3606 cap = (cap & PCI_REBAR_CAP_SIZES) >> 4;
3607
3608 /* Sapphire RX 5600 XT Pulse has an invalid cap dword for BAR 0 */
3609 if (pdev->vendor == PCI_VENDOR_ID_ATI && pdev->device == 0x731f &&
3610 bar == 0 && cap == 0x700)
> 3611 cap == 0x7f00;
3612
3613 return cap;
3614 }
3615 EXPORT_SYMBOL(pci_rebar_get_possible_sizes);
3616
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32841 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: "Christian König" <ckoenig.leichtzumerken@gmail.com>,
bhelgaas@google.com
Cc: kbuild-all@lists.01.org, linux-pci@vger.kernel.org,
amd-gfx@lists.freedesktop.org,
clang-built-linux@googlegroups.com,
dri-devel@lists.freedesktop.org, devspam@moreofthesa.me.uk
Subject: Re: [PATCH 4/4] PCI: add a REBAR size quirk for Sapphire RX 5600 XT Pulse.
Date: Wed, 6 Jan 2021 01:28:00 +0800 [thread overview]
Message-ID: <202101060135.iyLcESHb-lkp@intel.com> (raw)
In-Reply-To: <20210105134404.1545-5-christian.koenig@amd.com>
[-- Attachment #1: Type: text/plain, Size: 3109 bytes --]
Hi "Christian,
I love your patch! Perhaps something to improve:
[auto build test WARNING on pci/next]
[also build test WARNING on linus/master v5.11-rc2 next-20210104]
[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]
url: https://github.com/0day-ci/linux/commits/Christian-K-nig/pci-export-pci_rebar_get_possible_sizes/20210105-224446
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-randconfig-r006-20210105 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5c951623bc8965fa1e89660f2f5f4a2944e4981a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/6838a45fc2394ec88455e1fb3998ac865a077168
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christian-K-nig/pci-export-pci_rebar_get_possible_sizes/20210105-224446
git checkout 6838a45fc2394ec88455e1fb3998ac865a077168
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/pci/pci.c:3611:7: warning: equality comparison result unused [-Wunused-comparison]
cap == 0x7f00;
~~~~^~~~~~~~~
drivers/pci/pci.c:3611:7: note: use '=' to turn this equality comparison into an assignment
cap == 0x7f00;
^~
=
1 warning generated.
vim +3611 drivers/pci/pci.c
3587
3588 /**
3589 * pci_rebar_get_possible_sizes - get possible sizes for BAR
3590 * @pdev: PCI device
3591 * @bar: BAR to query
3592 *
3593 * Get the possible sizes of a resizable BAR as bitmask defined in the spec
3594 * (bit 0=1MB, bit 19=512GB). Returns 0 if BAR isn't resizable.
3595 */
3596 u32 pci_rebar_get_possible_sizes(struct pci_dev *pdev, int bar)
3597 {
3598 int pos;
3599 u32 cap;
3600
3601 pos = pci_rebar_find_pos(pdev, bar);
3602 if (pos < 0)
3603 return 0;
3604
3605 pci_read_config_dword(pdev, pos + PCI_REBAR_CAP, &cap);
3606 cap = (cap & PCI_REBAR_CAP_SIZES) >> 4;
3607
3608 /* Sapphire RX 5600 XT Pulse has an invalid cap dword for BAR 0 */
3609 if (pdev->vendor == PCI_VENDOR_ID_ATI && pdev->device == 0x731f &&
3610 bar == 0 && cap == 0x700)
> 3611 cap == 0x7f00;
3612
3613 return cap;
3614 }
3615 EXPORT_SYMBOL(pci_rebar_get_possible_sizes);
3616
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32841 bytes --]
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2021-01-05 17:29 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-05 13:44 A PCI quirk for resizeable BAR 0 on Navi10 Christian König
2021-01-05 13:44 ` Christian König
2021-01-05 13:44 ` Christian König
2021-01-05 13:44 ` [PATCH 1/4] pci: export pci_rebar_get_possible_sizes Christian König
2021-01-05 13:44 ` Christian König
2021-01-05 13:44 ` Christian König
2021-01-09 9:25 ` Christoph Hellwig
2021-01-09 9:25 ` Christoph Hellwig
2021-01-05 13:44 ` [PATCH 2/4] pci: add BAR bytes->size helper & expose size->bytes helper v2 Christian König
2021-01-05 13:44 ` Christian König
2021-01-05 13:44 ` Christian König
2021-01-05 13:44 ` [PATCH 3/4] amdgpu: resize BAR0 to the maximum available size, even if it doesn't cover VRAM (v6) Christian König
2021-01-05 13:44 ` Christian König
2021-01-05 13:44 ` Christian König
2021-01-05 13:44 ` [PATCH 4/4] PCI: add a REBAR size quirk for Sapphire RX 5600 XT Pulse Christian König
2021-01-05 13:44 ` Christian König
2021-01-05 13:44 ` Christian König
2021-01-05 16:11 ` Ilia Mirkin
2021-01-05 16:11 ` Ilia Mirkin
2021-01-05 16:11 ` Ilia Mirkin
2021-01-05 17:43 ` Christian König
2021-01-05 17:43 ` Christian König
2021-01-05 17:43 ` Christian König
2021-01-05 17:28 ` kernel test robot [this message]
2021-01-05 17:28 ` kernel test robot
2021-01-05 17:28 ` kernel test robot
2021-01-05 17:28 ` kernel test robot
2021-01-05 18:41 ` [kbuild] " Dan Carpenter
2021-01-05 18:41 ` Dan Carpenter
2021-01-05 18:41 ` Dan Carpenter
2021-01-05 18:41 ` Dan Carpenter
2021-01-05 18:41 ` [kbuild] " Dan Carpenter
2021-01-05 21:42 ` A PCI quirk for resizeable BAR 0 on Navi10 Bjorn Helgaas
2021-01-05 21:42 ` Bjorn Helgaas
2021-01-05 21:42 ` Bjorn Helgaas
-- strict thread matches above, loose matches on Subject: below --
2021-01-05 17:34 [PATCH 4/4] PCI: add a REBAR size quirk for Sapphire RX 5600 XT Pulse kernel test robot
2021-01-07 17:50 [PATCH 0/4] A PCI quirk for resizable BAR 0 on Navi10 Nirmoy Das
2021-01-07 17:50 ` [PATCH 4/4] PCI: Add a REBAR size quirk for Sapphire RX 5600 XT Pulse Nirmoy Das
2021-01-07 17:50 ` Nirmoy Das
2021-01-07 21:32 ` Bjorn Helgaas
2021-01-07 21:32 ` Bjorn Helgaas
2021-01-07 20:25 ` Christian König
2021-01-07 20:25 ` Christian König
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=202101060135.iyLcESHb-lkp@intel.com \
--to=lkp@intel.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=bhelgaas@google.com \
--cc=ckoenig.leichtzumerken@gmail.com \
--cc=clang-built-linux@googlegroups.com \
--cc=devspam@moreofthesa.me.uk \
--cc=dri-devel@lists.freedesktop.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-pci@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.