Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1110419rwb; Sat, 13 Aug 2022 17:24:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR7gzK1wXq+GASA4WK1x97owLGciegm8e+OGZw3o6IkymO1h0HzQDtA6xIa72dDxbPe3Dg6a X-Received: by 2002:a05:6a00:1a91:b0:52f:29e7:c32c with SMTP id e17-20020a056a001a9100b0052f29e7c32cmr10466451pfv.10.1660436652818; Sat, 13 Aug 2022 17:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660436652; cv=none; d=google.com; s=arc-20160816; b=wYvpFURSY8tOXW+kibBvjJNexEfMH9MiObzcr5zyhy3Lgp/8XHuDyiXb57q6hdngSX Q7Z0TokLlz6vH19CAvIyWi/NAof6ERSzpSWLpR6p/SXdnhSSk1E64Nd5BCHLPtN1RYHM OPtK6qrsfGVAHduOjbr8Iz7GSW63BEQaZZxDm0O5Y1mtsPrtM8dW7jy9UeYhh2BeC7E7 7qy6ZPip1gznkgut6UUabkwnGTRNFJm7oqtZhtIOhypOHJxnyhkiMffvGVflHLbr4tKp mMOARrtUAawOb6ci/4wJc8G6OeOR8Cw3nrkzprb8WUj1FEnDsxvpjUyOVUxng+dbU4ZV wp4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kkKPPK+HDZbPpa+TIDZomj291XHXO/6mULXZ+OB7erM=; b=TIpp6DK+IgXy6y3IYebcrPKlug0k4bsw737fKwbwpDguImYdnWdsHS26n31dXvaaM5 FaqRLCLi6I6BDphqbEtx9ajkm4bk+7bQ2lzaQEB2rLLPBjBV/gx6f5MY2GlIoiDu23TL eoMvQlrkLIz0iGq+I3NJlMWYJhhJqp12RkgHiN/pBNwdOc8q4KpSdlc+HrAmCyGFJJ5w ddE9QfnUkOSzWjdLejxD8opsDs9kau77b2jptChbzT0SPaiDrtWt+UvC20bHvLX+7oBt 3brFQFCfsygqBFJ8MytHk9ind+KhXxJMjdwz6SuLmVQQ3sDVDs/tge08kxSWEtL2HDDD YhLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Np4Z0EnS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q20-20020a170902bd9400b001713df0c8b2si5972823pls.213.2022.08.13.17.24.01; Sat, 13 Aug 2022 17:24:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Np4Z0EnS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240068AbiHNABo (ORCPT + 99 others); Sat, 13 Aug 2022 20:01:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbiHNABm (ORCPT ); Sat, 13 Aug 2022 20:01:42 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78CA518B03; Sat, 13 Aug 2022 17:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660435300; x=1691971300; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7ki15VuR/ZcrHb6KOsI4Hb28mSfS0dHDolz9tJFyhME=; b=Np4Z0EnSBaSouKZRCiG3j10gJ8VaArpWHEqS6HVtjliIeBL905Ej61ba tJmeN+nsgAkTynBHLA2bsi8N0jgn+npKpEv4o0bn2vp7/1+E1ZrQOhyPx 6MKdYy/h34uTgWtT0mkP8nY9GeEjkHUkzLTWKLmBrz041HcMsED/friEl bjS4CacaUrkLtW4Vwzpu4/BXy1SadvI467OVoYcgrf3fQduwS4SZWASev zX4YwZ+iL/L7u+SLCY/WZ+q/oieB8BaJMyivAjclRaeSEQMYk++7nnVey 0RFbf7Ln50WdObKU1TDe3OoHOM8qlmBDJlM8DxNiebNQM4JBi+wK3n9Re w==; X-IronPort-AV: E=McAfee;i="6400,9594,10437"; a="274839294" X-IronPort-AV: E=Sophos;i="5.93,236,1654585200"; d="scan'208";a="274839294" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2022 17:01:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,236,1654585200"; d="scan'208";a="851912119" Received: from lkp-server02.sh.intel.com (HELO 8745164cafc7) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 13 Aug 2022 17:01:34 -0700 Received: from kbuild by 8745164cafc7 with local (Exim 4.96) (envelope-from ) id 1oN14P-0002Cw-1K; Sun, 14 Aug 2022 00:01:33 +0000 Date: Sun, 14 Aug 2022 08:01:04 +0800 From: kernel test robot To: Markuss Broks , linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Markuss Broks , Jonathan Corbet , Ard Biesheuvel , Greg Kroah-Hartman , Jiri Slaby , Helge Deller , "Paul E. McKenney" , Borislav Petkov , Kees Cook , Andrew Morton , Linux Memory Management List , Randy Dunlap , Damien Le Moal , Thomas Zimmermann , Michal Suchanek , Javier Martinez Canillas , Arnd Bergmann , Maarten Lankhorst , Wei Ming Chen , Bartlomiej Zolnierkiewicz , Tony Lindgren , linux-doc@vger.kernel.org, linux-efi@vger.kernel.org, linux-serial@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 3/3] efi: earlycon: Add support for generic framebuffers and move to console subsystem Message-ID: <202208140705.bU9i1c1t-lkp@intel.com> References: <20220806163255.10404-4-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220806163255.10404-4-markuss.broks@gmail.com> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Markuss, I love your patch! Perhaps something to improve: [auto build test WARNING on tty/tty-testing] [also build test WARNING on efi/next staging/staging-testing usb/usb-testing linus/master v5.19 next-20220812] [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/Markuss-Broks/Add-generic-framebuffer-support-to-EFI-earlycon-driver/20220807-003646 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing config: loongarch-randconfig-s031-20220807 (https://download.01.org/0day-ci/archive/20220814/202208140705.bU9i1c1t-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/97dfc2aa69b065de769a191352afe2099c52fedb git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Markuss-Broks/Add-generic-framebuffer-support-to-EFI-earlycon-driver/20220807-003646 git checkout 97dfc2aa69b065de769a191352afe2099c52fedb # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/video/console/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/video/console/earlycon.c:43:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *static [toplevel] virt_base @@ got void * @@ drivers/video/console/earlycon.c:43:24: sparse: expected void [noderef] __iomem *static [toplevel] virt_base drivers/video/console/earlycon.c:43:24: sparse: got void * >> drivers/video/console/earlycon.c:53:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem *static [toplevel] virt_base @@ drivers/video/console/earlycon.c:53:30: sparse: expected void *addr drivers/video/console/earlycon.c:53:30: sparse: got void [noderef] __iomem *static [toplevel] virt_base >> drivers/video/console/earlycon.c:63:39: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void * @@ got void [noderef] __iomem * @@ drivers/video/console/earlycon.c:63:39: sparse: expected void * drivers/video/console/earlycon.c:63:39: sparse: got void [noderef] __iomem * >> drivers/video/console/earlycon.c:74:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void *addr @@ drivers/video/console/earlycon.c:74:24: sparse: expected void [noderef] __iomem *addr drivers/video/console/earlycon.c:74:24: sparse: got void *addr vim +43 drivers/video/console/earlycon.c 29 30 static int __init simplefb_earlycon_remap_fb(void) 31 { 32 unsigned long mapping; 33 /* bail if there is no bootconsole or it has been disabled already */ 34 if (!earlycon_console || !(earlycon_console->flags & CON_ENABLED)) 35 return 0; 36 37 if (region_intersects(info.phys_base, info.size, 38 IORESOURCE_SYSTEM_RAM, IORES_DESC_NONE) == REGION_INTERSECTS) 39 mapping = MEMREMAP_WB; 40 else 41 mapping = MEMREMAP_WC; 42 > 43 info.virt_base = memremap(info.phys_base, info.size, mapping); 44 45 return info.virt_base ? 0 : -ENOMEM; 46 } 47 early_initcall(simplefb_earlycon_remap_fb); 48 49 static int __init simplefb_earlycon_unmap_fb(void) 50 { 51 /* unmap the bootconsole fb unless keep_bootcon has left it enabled */ 52 if (info.virt_base && !(earlycon_console->flags & CON_ENABLED)) > 53 memunmap(info.virt_base); 54 return 0; 55 } 56 late_initcall(simplefb_earlycon_unmap_fb); 57 58 static __ref void *simplefb_earlycon_map(unsigned long start, unsigned long len) 59 { 60 pgprot_t fb_prot; 61 62 if (info.virt_base) > 63 return info.virt_base + start; 64 65 fb_prot = PAGE_KERNEL; 66 return early_memremap_prot(info.phys_base + start, len, pgprot_val(fb_prot)); 67 } 68 69 static __ref void simplefb_earlycon_unmap(void *addr, unsigned long len) 70 { 71 if (info.virt_base) 72 return; 73 > 74 early_memunmap(addr, len); 75 } 76 -- 0-DAY CI Kernel Test Service https://01.org/lkp