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=-5.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 E1E5BC433E3 for ; Fri, 22 May 2020 06:56:56 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 9B13E2065C for ; Fri, 22 May 2020 06:56:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XHJ890HH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B13E2065C 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=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 703116E98B; Fri, 22 May 2020 06:56:16 +0000 (UTC) Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by gabe.freedesktop.org (Postfix) with ESMTPS id B49956E29A for ; Fri, 22 May 2020 01:11:13 +0000 (UTC) Received: by mail-pl1-x642.google.com with SMTP id m7so3743324plt.5 for ; Thu, 21 May 2020 18:11:13 -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=tSo4NoTuRxDTr+YPCjcACPFp+Eah2j+hAJOrlQ361pk=; b=XHJ890HHDoAKe+yk8IzwTWP4yxeaKrOCJgkw0pq6nnPqlA2XR5GCF9RPBqhw9fk5jk Ol4XAOBCZkYTw7wU710QTE+ugrYeKtQzd1GoFF44W9/OgMgkyqAyf/DdPozUGPF5TbKO QEOatvtnAxolp1ev6K0bp0m4d1BfJNUfe8yCU5/4KmxaG0/K/Oc76VsgNidn1ZISuzhm gDDbPrKV0TOKikLQIHTO7byIOdfAHlZe/u3R755Ecxdiu6zqXQK5RUbUdyLBlUaBNZid Dn2mY39/6XR82gwd7KzqHOhh3b6GvKEp3B9q2oabz0Gk0gop9Z5jHPHaF1k5P80xfdpr FOfw== 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=tSo4NoTuRxDTr+YPCjcACPFp+Eah2j+hAJOrlQ361pk=; b=IRyekCbBAmE3N5+GaMvprSlYyeXPQLVUA9a5Pv1vfm3g8LCaHyCm4vOhLbWHw6p471 AWYheyV7OUD+X3LeASTIlhGKRaeKyECSLFf4J+rSIt1YSTyxaFU8I2U0yGYDGFi3GbK0 NGhTvRXAW5u+I87IbfDmSBLLrQDyMxKViVeqSMJv9QjqQSVf4qcgVPE9Ak+h5Ai9RBrn ta4M6utB09TuledmXCrSd8fzlIvtaJnWUcVlS/SHF4z+4UZ5xRj5wVFdA95K3xUVYGNh us/AJhm/31VXK9Oe5HBNpsD1sPQTXTc/SEpPw0KNnErI7RwDAq5/2MXI3etnPHZtc9+d hhcA== X-Gm-Message-State: AOAM533wh1/NzwGpKRlzi3WWFWZezgmTF4COu1D5uv4mBf8lTSHIxLod 31kTjd4UnxSD76j06UdwXdvNuaL3 X-Google-Smtp-Source: ABdhPJwICBU4niNtPQuz9RcHNkUJF280bbLGpjPfNFBjmEPr1b13gwA/RHJHxo2gkN9ypjOGh41Iww== X-Received: by 2002:a17:902:9007:: with SMTP id a7mr12934539plp.194.1590109873119; Thu, 21 May 2020 18:11:13 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id y75sm5442903pfb.212.2020.05.21.18.11.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2020 18:11:12 -0700 (PDT) Subject: Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice To: Al Viro References: <20200507150004.1423069-8-ira.weiny@intel.com> <20200518184843.3029640-1-ira.weiny@intel.com> <20200519165422.GA5838@roeck-us.net> <20200521172704.GF23230@ZenIV.linux.org.uk> <20200521224612.GJ23230@ZenIV.linux.org.uk> <20200522004618.GA3151350@ZenIV.linux.org.uk> 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 kwu2KgIgmkRBb3cp2vIB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aztQ0H nsDLSLElVROxCd9m8CAUuHplgmR3seYCOrT4jriMFBtKNPtj2EE4DNV4s7k0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: <970857bd-bb56-7b2e-833e-ca74a82fa9b5@roeck-us.net> Date: Thu, 21 May 2020 18:11:08 -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: <20200522004618.GA3151350@ZenIV.linux.org.uk> Content-Language: en-US X-Mailman-Approved-At: Fri, 22 May 2020 06:56:07 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Zijlstra , 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, ira.weiny@intel.com, 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 , 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 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 5/21/20 5:46 PM, Al Viro wrote: > On Thu, May 21, 2020 at 11:46:12PM +0100, Al Viro wrote: >> On Thu, May 21, 2020 at 03:20:46PM -0700, Guenter Roeck wrote: >>> On 5/21/20 10:27 AM, Al Viro wrote: >>>> On Tue, May 19, 2020 at 09:54:22AM -0700, Guenter Roeck wrote: >>>>> On Mon, May 18, 2020 at 11:48:43AM -0700, ira.weiny@intel.com wrote: >>>>>> From: Ira Weiny >>>>>> >>>>>> The kunmap_atomic clean up failed to remove one set of pagefault/preempt >>>>>> enables when vaddr is not in the fixmap. >>>>>> >>>>>> Fixes: bee2128a09e6 ("arch/kunmap_atomic: consolidate duplicate code") >>>>>> Signed-off-by: Ira Weiny >>>>> >>>>> microblazeel works with this patch, as do the nosmp sparc32 boot tests, >>>>> but sparc32 boot tests with SMP enabled still fail with lots of messages >>>>> such as: >>>> >>>> BTW, what's your setup for sparc32 boot tests? IOW, how do you manage to >>>> shrink the damn thing enough to have the loader cope with it? I hadn't >>>> been able to do that for the current mainline ;-/ >>>> >>> >>> defconfig seems to work just fine, even after enabling various debug >>> and file system options. >> >> The hell? How do you manage to get the kernel in? sparc32_defconfig >> ends up with 5316876 bytes unpacked... > > Incidentally, trying to load it via -kernel/-initrd leads to > Configuration device id QEMU version 1 machine id 64 > Probing SBus slot 0 offset 0 > Probing SBus slot 1 offset 0 > Probing SBus slot 2 offset 0 > Probing SBus slot 3 offset 0 > Probing SBus slot 15 offset 0 > Invalid FCode start byte > CPUs: 1 x TI,TMS390Z55 > UUID: 00000000-0000-0000-0000-000000000000 > Welcome to OpenBIOS v1.1 built on Dec 27 2018 19:17 > Type 'help' for detailed information > [sparc] Kernel already loaded > switching to new context: > PROMLIB: obio_ranges 1 > PROMLIB: Sun Boot Prom Version 3 Revision 2 > Linux version 5.7.0-rc1-00002-gcf51e129b968 (al@duke) (gcc version 6.3.0 20170516 (Debian 6.3.0-18), GNU ld (GNU Binutils for Debian) 2.28) #32 Thu May 21 18:36:07 EDT 2020 > printk: bootconsole [earlyprom0] enabled > ARCH: SUN4M > TYPE: Sun4m SparcStation10/20 > Ethernet address: 52:54:00:12:34:56 > 303MB HIGHMEM available. > OF stdout device is: /obio/zs@0,100000:a > PROM: Built device tree with 30051 bytes of memory. > Booting Linux... > Power off control detected. > Kernel panic - not syncing: Failed to allocate memory for percpu areas. > CPU: 0 PID: 0 Comm: swapper Not tainted 5.7.0-rc1-00002-gcf51e129b968 #32 > [f04f92a8 : > setup_per_cpu_areas+0x58/0x90 ] > [f04edbf4 : > start_kernel+0xc0/0x4a0 ] > [f04ed43c : > continue_boot+0x324/0x334 ] > [00000000 : > 0x0 ] > > Press Stop-A (L1-A) from sun keyboard or send break > twice on console to return to the boot prom > ---[ end Kernel panic - not syncing: Failed to allocate memory for percpu areas. ]--- > > Giving guest more RAM doesn't change the outcome (well, the number HIGHMEM line is > obviously higher, but that's it). > > So which sparc32 kernel have you booted with defconfig and how have you done > that? > Mainline, with: qemu-system-sparc -M SS-4 -kernel arch/sparc/boot/zImage -no-reboot \ -snapshot -drive file=rootfs.ext2,format=raw,if=scsi \ -append "panic=-1 slub_debug=FZPUA root=/dev/sda console=ttyS0" -nographic -monitor none The machine doesn't really matter, though. The root file system is built with buildroot. Note that I carry two reverts in my qemu images. Revert "tcx: switch to load_image_mr() and remove prom_addr hack" Revert "cg3: switch to load_image_mr() and remove prom-addr hack" I have been carrying those since ~2017. I didn't check recently if they are still needed. If sparc32 is no longer supported in the upstream kernel, would it possibly make sense remove its support ? Guenter _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel