From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by gnuweeb.org (Postfix) with ESMTPS id D57AA800C8 for ; Wed, 29 Jun 2022 14:50:11 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=kernel-dk.20210112.gappssmtp.com header.i=@kernel-dk.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=5DJZ+ebF; dkim-atps=neutral Received: by mail-pg1-f175.google.com with SMTP id v126so11373747pgv.11 for ; Wed, 29 Jun 2022 07:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=V6ALSktArJeWLZ9Uwj0gLwIghi058dq5hVzYEwG4P/U=; b=5DJZ+ebFHmcdevPYm7DflTsxdyuEC6x+tTqRw7Zl8hm/XFbp3wuH1DoQijNNBRsRRJ vQdgJKWfzlGs4q5XihxOAQHmMMvKjegGHX8AH+v9jQ3eTanWnzozWYOCB1JKUz2JboJ2 cqSsMENcjbZOzv5Dk4CbU0OLqeY5UFGZ/O7Xx8vm0YoNTbqFsBSqBLDe8TpYTWVSv8TW K+w6BA8WiED1fT0si12MU/+3dEZfRp05GflOv0SFXLVOVR8OVk2GeneoxLDWiQSjQw2k XL9eyu0qG6JzSUPAFtQG3VZ0QypFvgurNDO5AHKeH4DJuHmq7PsNZEvCmuJLF0oPRi/I wGUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=V6ALSktArJeWLZ9Uwj0gLwIghi058dq5hVzYEwG4P/U=; b=GZ/+pzk5ltFdMUOeXMj/QdBKOmZFXWkFZ3bhGN8+0+YpohyAFa66w09rHl1OisJfN4 NCjl05ZcCHB1Jaa1bvJ8wEYEPGemHbN9Py8aIpnQtvSQ2tLC1/4yA6nl/gVUw2bWDK1N EXSvMPXZqyHvs6OiNbTJt5BkiH5U63LqZOfKES0Zyz2Q0nzcKlSi7qy76q4UJolf/S8O BK4K6fj9h64hqZO/P04nVxokzAjdOAb2JIfwrV+6krklONoqk65AA7WrN3AKKS2NfMmn 43UNHTH554k5g127t44fKZ6mVHRj7Q1ndqTwD+E/KrHOCCnkIeahIGDSzACib3uXxzQh GpTw== X-Gm-Message-State: AJIora/ArQgbSh/xQpbDhPkYNa8v7IouI/A7y3p6fNgnR/ZC15vVxtxl gVv9OwEmuLMYhV/4/CKzSMG88Q== X-Google-Smtp-Source: AGRyM1tDiOdgVmQ2EEhTGYovau8QmlaEs9blCQz4nuPjIJmrpVWobUT4viSiqasOB2g2p1zbVraxNw== X-Received: by 2002:a05:6a00:2495:b0:525:a822:d732 with SMTP id c21-20020a056a00249500b00525a822d732mr10544383pfv.46.1656514151458; Wed, 29 Jun 2022 07:49:11 -0700 (PDT) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id j17-20020a056a00175100b00525119428f8sm11590342pfc.209.2022.06.29.07.49.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jun 2022 07:49:11 -0700 (PDT) Message-ID: <8bfba71c-55d7-fb49-6593-4d0f9d9c3611@kernel.dk> Date: Wed, 29 Jun 2022 08:49:09 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH liburing v1 7/9] arch/arm64: Add `get_page_size()` function Content-Language: en-US To: Ammar Faizi Cc: Alviro Iskandar Setiawan , Fernanda Ma'rouf , Pavel Begunkov , Hao Xu , io-uring Mailing List , GNU/Weeb Mailing List References: <20220629002028.1232579-1-ammar.faizi@intel.com> <20220629002028.1232579-8-ammar.faizi@intel.com> From: Jens Axboe In-Reply-To: <20220629002028.1232579-8-ammar.faizi@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: On 6/28/22 6:27 PM, Ammar Faizi wrote: > From: Ammar Faizi > > This is a preparation patch to add aarch64 nolibc support. > > aarch64 supports three values of page size: 4K, 16K, and 64K which are > selected at kernel compilation time. Therefore, we can't hard code the > page size for this arch. Utilize open(), read() and close() syscall to > find the page size from /proc/self/auxv. For more details about the > auxv data structure, check the link below. We should probably cache this value if already read? At least I don't think we have systems where the page size would differ between applications. -- Jens Axboe