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 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C42F7C3DA4A for ; Tue, 20 Aug 2024 21:33:23 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4WpN4L0Dw0z2yFD; Wed, 21 Aug 2024 07:33:22 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=landley.net Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2607:f8b0:4864:20::1133" Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=landley-net.20230601.gappssmtp.com header.i=@landley-net.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=3AwHfVM7; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=landley.net (client-ip=2607:f8b0:4864:20::1133; helo=mail-yw1-x1133.google.com; envelope-from=rob@landley.net; receiver=lists.ozlabs.org) Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4WpMjs48SFz2y8l for ; Wed, 21 Aug 2024 07:17:19 +1000 (AEST) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-68d30057ae9so56109737b3.1 for ; Tue, 20 Aug 2024 14:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20230601.gappssmtp.com; s=20230601; t=1724188637; x=1724793437; darn=lists.ozlabs.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GOcODjceGC7ZkW4fB/YT/SWFmfr0YR2DkMYRyu0vLoM=; b=3AwHfVM79yst6TGSsRIJrYp6biBm637FkCfjquSgoSNZEJVQZLkH5k1ZWAE4YvGfCV xBjqZmbWS13hgBrgDBdZ9nzgU90XOsFRCoHdu2rM+umZAaye+lP6Tla9lsHG9fOPS8gc fK8us50pop6DeSFq4DPHS5M9NU2OemDVjJXJAK6qr1dJyGtKRIBzAQjfxITU4tOeItgN XLuUUwOuluDAbm1KysNItuVYAqXXHbECyTZJW+FtCHdLfiNV/4gd5zWvaHqaukcWNxJi Wp7h5Vl1kVu+cajFzaBjX/A0mxlnL9/ig75NTM9HCVVtbDIscU5fuEyY01D5bC1f1YLe IgCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724188637; x=1724793437; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GOcODjceGC7ZkW4fB/YT/SWFmfr0YR2DkMYRyu0vLoM=; b=Q/X/+nOYkRQ29FCoGfD1/BYqQ/CxjFYPQZEKE/nDRpn6/8kMEYlo4g6h5MWjYKxZRw uTNaGAT/k4pEehCvGcb57jiMFv271nqzly9SIrNvg9mvWX6sFisG5lqwCFwWENGkevwO S02AQ+bkHVlWB/WY9wVbPCQ+mT82bdLX3+bRy1TQe7iFo54RehQ/v5qTROSu1W9goRxF lRmq1Jtx9u7Ph5w9s+wZa/UTIUNh6eEvOztak4nDswpQ127sK/S5vXYggypc0K62BMk1 eVgdrMxSaGnMeNckF/nT22Ppo/3vIJ4IQpwrYVhwUCHC/6pC9KqjIB0VKrIoe4apzZDs SRCw== X-Forwarded-Encrypted: i=1; AJvYcCWomkxt9Jo9DZNY8eg/jMI+Vgd5ZOtcFmOErI5XZtF3vQJGt/hUyBVm7+IpLvedySUzW0zfUVYM9UJW5T8=@lists.ozlabs.org X-Gm-Message-State: AOJu0Yw1ocjh8r+/uJJ7uGVowQLNIzkHPvEhppj2gVO4i+oc7VlrqctA QGgOw5lULdMztn8XW/Rq2sJJC9zEcGiUhtr3m3NPR1318xgGn+nupljB+W/rH7Q= X-Google-Smtp-Source: AGHT+IH694ptJUT+W4npveoCOkWoEd/Bd4Fd/tTcyPr4LbEtrypfJeZqkWp1OWOohPWwkgyUxuRYrg== X-Received: by 2002:a05:690c:6591:b0:6ad:ba92:1731 with SMTP id 00721157ae682-6c0a0ae8507mr6885217b3.41.1724188637088; Tue, 20 Aug 2024 14:17:17 -0700 (PDT) Received: from [172.16.32.83] ([198.232.126.202]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a66f388703sm62392285a.25.2024.08.20.14.17.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Aug 2024 14:17:16 -0700 (PDT) Message-ID: Date: Tue, 20 Aug 2024 16:31:13 -0500 X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Post: List-Subscribe: , , List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 1/4] mm: Add optional close() to struct vm_special_mapping Content-Language: en-US To: Linus Torvalds , Michael Ellerman Cc: Nathan Chancellor , Guo Ren , Brian Cain , Dinh Nguyen , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Richard Weinberger , Anton Ivanov , Johannes Berg , linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, akpm@linux-foundation.org, christophe.leroy@csgroup.eu, jeffxu@google.com, Liam.Howlett@oracle.com, linux-kernel@vger.kernel.org, npiggin@gmail.com, oliver.sang@intel.com, pedro.falcato@gmail.com, linux-um@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon , Linux-sh list References: <20240812082605.743814-1-mpe@ellerman.id.au> <20240819185253.GA2333884@thelio-3990X> <20240819195120.GA1113263@thelio-3990X> <87y14rso9o.fsf@mail.lhotse> From: Rob Landley In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/20/24 10:31, Linus Torvalds wrote: > On Mon, 19 Aug 2024 at 23:26, Michael Ellerman wrote: >> >> Linus Torvalds writes: >> > +static struct vm_special_mapping vdso_mapping = { >> > + .name = "[vdso]", >> > + .pages = syscall_pages; >> ^ >> should be , > > Ack. Changed here locally. Hexagon also has &&vdso_page which I don't understand (but have a toolchain for somewhere to at least smoketest...) > But I assume you also don't actually test sh... But I do. Aside: arch/sh smoketests easily under qemu, here's a relocatable binary toolchain: wget https://landley.net/bin/toolchains/latest/sh4-linux-musl-cross.tar.xz tar xvf sh4-linux-musl-cross-tar.xz CROSS_COMPILE=$PWD/sh4-linux-musl-cross/bin/sh4-linux-musl- And https://landley.net/bin/mkroot/latest/sh4.tgz is a tiny qemu-system-sh4 system with kernel + initramfs.cpio.gz + run-qemu.sh with the config used to build it under docs/ and as the first three lines of docs/linux-miniconfig record, the kernel is arch/sh/boot/zImage. You can keep the initramfs.cpio.gz and run-qemu.sh and swap out the kernel for a quick boot to shell prompt under qemu. Serial console is qemu's stdin/stdout, "exit" to shut down the emulator. The build script, if you care, is 400 lines of bash: https://github.com/landley/toybox/blob/master/mkroot/mkroot.sh > It would be good to get acks from the architectures that still used > the legacy interface. I'll give arch/sh a whirl. Can somebody answer my above hexagon question? > Linus Rob