From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B1F8C433DF for ; Tue, 19 May 2020 02:50:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D81AA2072C for ; Tue, 19 May 2020 02:50:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NmFcTqcm"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VlxgfkqF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D81AA2072C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OTEGTyKXL6LDJ4682iH1A+K/sAQE02CbhU21WHGJf+g=; b=NmFcTqcmJlcv2q UhCHsNSutkCw5156SSzbbg8NcGjJkOC+7qkqw1B/Gtjh9JzDV+OWgnH04KWF55fuMc5i25/PJFvTA hw4En/DqfwFv84FgrSKYS58Em0vkDnCNKVj2j/4997PVQC6umQkN0mq16SoDwAun+GNzrDK9CcK7x ZEbdd2K/Wxo739eD7dF8MPtRbyJgOYCd66I/gErLySCtrnPvBfpmM9rAy3eoainMW3dVCyURKAkoP VP82w1qeuhqNX4/XDtnP3EMgPq5zntAym3bD3oDT8iZ+YUDkCCld44x2C1rBmkkc4FYsEDQypMAvw 4ZRpiDT8jkodaeZJ1MAw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jasLF-00058X-CT; Tue, 19 May 2020 02:50:53 +0000 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jasL4-0004yg-DZ; Tue, 19 May 2020 02:50:44 +0000 Received: by mail-pj1-x1044.google.com with SMTP id l73so644687pjb.1; Mon, 18 May 2020 19:50:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Um0MqAkT2AlqVBUz0LYl439Zam1W4yGyACS/84j23pE=; b=VlxgfkqFfgs2apfaHWWzr3g6t+6/wCR2VJC7ihA4e0l96IgCbjQktpnPgecT+Sv7vY R6EhRJvVj9HRsZsqdfzbSQDoj0FxQyENTy1PaQ3jfbPF9Anj2c/e7w3YFCiNWHWEG7AE IQWB+ljTEmCh/JbiDhP8pITX8gCTE13vaQI5fC68J/0nzbwlh/s50UdehSHjgYt79Km4 C3Un28P8iJkovjp8wkEcJqyuskbdRYyIEqCo0IqMt5udz8lUnEkPIDEUo5BRNZ/xNRwb GVnrRl5jt+QVlTqsEfqDY9c6anPu+OnsYBU32yOshZI4hLBu17zheYIb0ag81v/WjxIh ooFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Um0MqAkT2AlqVBUz0LYl439Zam1W4yGyACS/84j23pE=; b=J1k1PulXrVXqoSQ6bvF5MlKSfaI0GSAi3y2QqWGawGRUcv+sSI3Fl4FTGSHA9M+wp8 3P7pkwXGZXEGF0Gza5VMiIrEASMSHNqnRSNQBAi0cjqorj8np7jsatbp/6VLaXrtrjY6 gYSA3VdcZayf/hvQpcuLX+unBjmec/YZJhCriv9y/VZe1lJVZFcU0O5tN+jWi4tv0wtJ +z/3W+RKY1nLVmchhxEtv3TggQCW4QbRfUDVysQ828RomkBQPC+QT6Em/EdLEHqyujci M0xXXI4Rx9xkvnWKmFPgaAszPSEdP+1c7dwPNuLBkDkASZ3cipiR4eq8s56VgppBG10s 38lQ== X-Gm-Message-State: AOAM530ob/d2mp0Bw3cl2Sigc9cwTivBECpKunjDW9E4UTBBPphQpwNt lSyEUZieFsaOYqJU9lg0CDU= X-Google-Smtp-Source: ABdhPJxUEb40eUAEJc/TR1ypP/gVIih2peaEeOHrNggdWNiZOeiW6/A7lE1LV83bcEZdcDNdsiy/5g== X-Received: by 2002:a17:902:b712:: with SMTP id d18mr18073790pls.143.1589856641522; Mon, 18 May 2020 19:50:41 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id w23sm18485pgc.78.2020.05.18.19.50.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 May 2020 19:50:39 -0700 (PDT) Subject: Re: [PATCH V3 07/15] arch/kunmap_atomic: Consolidate duplicate code To: Ira Weiny References: <20200507150004.1423069-1-ira.weiny@intel.com> <20200507150004.1423069-8-ira.weiny@intel.com> <20200516223306.GA161252@roeck-us.net> <20200518034938.GA3023182@iweiny-DESK2.sc.intel.com> <20200518042932.GA59205@roeck-us.net> <20200519000352.GF3025231@iweiny-DESK2.sc.intel.com> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR2+D+AMon8NULuLBHiEUQARAQABzTJHdWVudGVyIFJv ZWNrIChMaW51eCBhY2NvdW50KSA8bGludXhAcm9lY2stdXMubmV0PsLBgQQT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HHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: <47757f51-15f2-3abe-9035-abdb3ba5816e@roeck-us.net> Date: Mon, 18 May 2020 19:50:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200519000352.GF3025231@iweiny-DESK2.sc.intel.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200518_195042_474948_53D392C1 X-CRM114-Status: GOOD ( 24.79 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Zijlstra , Benjamin Herrenschmidt , Dave Hansen , dri-devel@lists.freedesktop.org, linux-mips@vger.kernel.org, "James E.J. Bottomley" , Max Filippov , Paul Mackerras , "H. Peter Anvin" , sparclinux@vger.kernel.org, Dan Williams , Helge Deller , x86@kernel.org, linux-csky@vger.kernel.org, Christoph Hellwig , Ingo Molnar , linux-snps-arc@lists.infradead.org, linux-xtensa@linux-xtensa.org, Borislav Petkov , Al Viro , Andy Lutomirski , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Chris Zankel , Thomas Bogendoerfer , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Koenig , Andrew Morton , linuxppc-dev@lists.ozlabs.org, "David S. Miller" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org Hi Ira, On 5/18/20 5:03 PM, Ira Weiny wrote: > On Sun, May 17, 2020 at 09:29:32PM -0700, Guenter Roeck wrote: >> On Sun, May 17, 2020 at 08:49:39PM -0700, Ira Weiny wrote: >>> On Sat, May 16, 2020 at 03:33:06PM -0700, Guenter Roeck wrote: >>>> On Thu, May 07, 2020 at 07:59:55AM -0700, ira.weiny@intel.com wrote: >>>>> From: Ira Weiny >>>>> >>>>> Every single architecture (including !CONFIG_HIGHMEM) calls... >>>>> >>>>> pagefault_enable(); >>>>> preempt_enable(); >>>>> >>>>> ... before returning from __kunmap_atomic(). Lift this code into the >>>>> kunmap_atomic() macro. >>>>> >>>>> While we are at it rename __kunmap_atomic() to kunmap_atomic_high() to >>>>> be consistent. >>>>> >>>>> Reviewed-by: Christoph Hellwig >>>>> Signed-off-by: Ira Weiny >>>> >>>> This patch results in: >>>> >>>> Starting init: /bin/sh exists but couldn't execute it (error -14) >>>> >>>> when trying to boot microblazeel:petalogix-ml605 in qemu. >>> >>> Thanks for the report. I'm not readily seeing the issue. >>> >>> Do you have a kernel config? Specifically is CONFIG_HIGHMEM set? >>> >> See below. Yes, CONFIG_HIGHMEM is set. >> >> The scripts used to build and boot the image are at: >> >> https://github.com/groeck/linux-build-test/tree/master/rootfs/microblazeel > > Despite finding the obvious error earlier today I've still been trying to get > this to work. > > I had to make some slight modifications to use the 0-day cross compile build > and my local qemu build. But those were pretty minor modifications. I'm > running on x86_64 host. > > With those slight mods to the scripts I get the following error even without my > patch set on 5.7-rc4. I have 1 cpu pegged at 100% while it is running... Is > there anything I can do to get more debug output? Perhaps I just need to let > it run longer? > I don't think so. Try running it with "-d" parameter (run-qemu-microblazeel.sh -d petalogix-s3adsp1800); that gives you the qemu command line. Once it says "running", abort the script and execute qemu directly. Oh, and please update the repository; turns out I didn't push for a while and made a number of changes. My compiler was compiled with buildroot (a long time ago). I don't recall if it needed something special in the configuration, unfortunately. Guenter > Thanks, > Ira > > 16:46:54 > ../linux-build-test/rootfs/microblazeel/run-qemu-microblazeel.sh > Build reference: v5.7-rc4-2-g7c2411d7fb6a > > Building microblaze:petalogix-s3adsp1800:qemu_microblazeel_defconfig ... > running ................ failed (silent) > ------------ > qemu log: > qemu-system-microblazeel: terminating on signal 15 from pid 3277686 (/bin/bash) > ------------ > Building microblaze:petalogix-ml605:qemu_microblazeel_ml605_defconfig ... > running ................ failed (silent) > ------------ > qemu log: > qemu-system-microblazeel: terminating on signal 15 from pid 3277686 (/bin/bash) > ------------ > > > 16:47:23 > git di > diff --git a/rootfs/microblazeel/run-qemu-microblazeel.sh b/rootfs/microblazeel/run-qemu-microblazeel.sh > index 68d4de39ab50..0d6a4f85308f 100755 > --- a/rootfs/microblazeel/run-qemu-microblazeel.sh > +++ b/rootfs/microblazeel/run-qemu-microblazeel.sh > @@ -3,7 +3,8 @@ > dir=$(cd $(dirname $0); pwd) > . ${dir}/../scripts/common.sh > > -QEMU=${QEMU:-${QEMU_BIN}/qemu-system-microblazeel} > +#QEMU=${QEMU:-${QEMU_BIN}/qemu-system-microblazeel} > +QEMU=/home/iweiny/dev/qemu/microblazeel-softmmu/qemu-system-microblazeel > PREFIX=microblazeel-linux- > ARCH=microblaze > PATH_MICROBLAZE=/opt/kernel/microblazeel/gcc-4.9.1/usr/bin > diff --git a/rootfs/scripts/common.sh b/rootfs/scripts/common.sh > index 8fa6a9be2b2f..c4550a27beaa 100644 > --- a/rootfs/scripts/common.sh > +++ b/rootfs/scripts/common.sh > @@ -1,5 +1,9 @@ > #!/bin/bash > > +# Set up make.cross > +export COMPILER_INSTALL_PATH=$HOME/0day > +export GCC_VERSION=6.5.0 > + > # Set the following variable to true to skip DC395/AM53C97 build tests > __skip_dc395=0 > > @@ -569,7 +573,7 @@ doclean() > then > git clean -x -d -f -q > else > - make ARCH=${ARCH} mrproper >/dev/null 2>&1 > + make.cross ARCH=${ARCH} mrproper >/dev/null 2>&1 > fi > } > > @@ -669,7 +673,7 @@ __setup_config() > cp ${__progdir}/${defconfig} arch/${arch}/configs > fi > > - if ! make ARCH=${ARCH} CROSS_COMPILE=${PREFIX} ${defconfig} >/dev/null 2>&1 + if ! make.cross ARCH=${ARCH} ${defconfig} >/dev/null 2>&1 return 2 > fi > > @@ -687,7 +691,7 @@ __setup_config() > if [[ "${rel}" = "v3.16" ]]; then > target="oldconfig" > fi > - if ! make ARCH=${ARCH} CROSS_COMPILE=${PREFIX} ${target} >/dev/null 2>&1 + if ! make.cross ARCH=${ARCH} ${target} >/dev/null 2>&1 return 1 > fi > fi > @@ -1038,7 +1042,7 @@ dosetup() > rootfs="$(setup_rootfs ${dynamic} ${rootfs})" > __common_fixups "${fixups}" "${rootfs}" > > - make -j${maxload} ARCH=${ARCH} CROSS_COMPILE=${PREFIX} ${EXTRAS} /dev/null 2>${logfile} > + make.cross -j${maxload} ARCH=${ARCH} ${EXTRAS} /dev/null 2>${logfile} > rv=$? > if [ ${rv} -ne 0 ] > then > > > _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc