mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/gpu/drm/ast/ast_cursor.c:250:26: sparse: sparse: multiple address spaces given: __iomem & __iomem
Date: Thu, 20 Aug 2020 22:31:12 +0800	[thread overview]
Message-ID: <20200820143112.GA4084@xsang-OptiPlex-9020> (raw)

[-- Attachment #1: Type: text/plain, Size: 3975 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
commit: 0d384eec10ea723f39df9736a04966e047850cfb drm/ast: Keep cursor HW BOs mapped
date:   6 weeks ago
:::::: branch date: 16 hours ago
:::::: commit date: 6 weeks ago
config: i386-randconfig-s002-20200818 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-183-gaa6ede3b-dirty
        git checkout 0d384eec10ea723f39df9736a04966e047850cfb
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/ast/ast_cursor.c:250:26: sparse: sparse: duplicate [noderef]
>> drivers/gpu/drm/ast/ast_cursor.c:250:26: sparse: sparse: multiple address spaces given: __iomem & __iomem

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0d384eec10ea723f39df9736a04966e047850cfb
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0d384eec10ea723f39df9736a04966e047850cfb
vim +250 drivers/gpu/drm/ast/ast_cursor.c

81039adc92cd7a Thomas Zimmermann 2020-07-02  245  
0d384eec10ea72 Thomas Zimmermann 2020-07-02  246  void ast_cursor_show(struct ast_private *ast, int x, int y,
81039adc92cd7a Thomas Zimmermann 2020-07-02  247  		     unsigned int offset_x, unsigned int offset_y)
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  248  {
81039adc92cd7a Thomas Zimmermann 2020-07-02  249  	u8 x_offset, y_offset;
0d384eec10ea72 Thomas Zimmermann 2020-07-02 @250  	u8 __iomem *dst, __iomem *sig;
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  251  	u8 jreg;
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  252  
0d384eec10ea72 Thomas Zimmermann 2020-07-02  253  	dst = ast->cursor.vaddr[ast->cursor.next_index];
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  254  
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  255  	sig = dst + AST_HWC_SIZE;
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  256  	writel(x, sig + AST_HWC_SIGNATURE_X);
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  257  	writel(y, sig + AST_HWC_SIGNATURE_Y);
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  258  
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  259  	if (x < 0) {
81039adc92cd7a Thomas Zimmermann 2020-07-02  260  		x_offset = (-x) + offset_x;
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  261  		x = 0;
81039adc92cd7a Thomas Zimmermann 2020-07-02  262  	} else {
81039adc92cd7a Thomas Zimmermann 2020-07-02  263  		x_offset = offset_x;
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  264  	}
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  265  	if (y < 0) {
81039adc92cd7a Thomas Zimmermann 2020-07-02  266  		y_offset = (-y) + offset_y;
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  267  		y = 0;
81039adc92cd7a Thomas Zimmermann 2020-07-02  268  	} else {
81039adc92cd7a Thomas Zimmermann 2020-07-02  269  		y_offset = offset_y;
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  270  	}
81039adc92cd7a Thomas Zimmermann 2020-07-02  271  
81039adc92cd7a Thomas Zimmermann 2020-07-02  272  	ast_cursor_set_location(ast, x, y, x_offset, y_offset);
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  273  
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  274  	/* dummy write to fire HWC */
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  275  	jreg = 0x02 |
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  276  	       0x01; /* enable ARGB4444 cursor */
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  277  	ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xcb, 0xfc, jreg);
2ccebf561e4a90 Thomas Zimmermann 2020-07-02  278  }
c91eadd110463f Thomas Zimmermann 2020-07-02  279  

---
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: 34580 bytes --]

                 reply	other threads:[~2020-08-20 14:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20200820143112.GA4084@xsang-OptiPlex-9020 \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tzimmermann@suse.de \
    /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

all inboxes | Powered by JetHome®