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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92117C636D7 for ; Wed, 15 Feb 2023 19:24:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229485AbjBOTY3 (ORCPT ); Wed, 15 Feb 2023 14:24:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbjBOTY2 (ORCPT ); Wed, 15 Feb 2023 14:24:28 -0500 Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8F9E3B660 for ; Wed, 15 Feb 2023 11:24:27 -0800 (PST) Received: by mail-il1-x134.google.com with SMTP id h5so2066800ilq.6 for ; Wed, 15 Feb 2023 11:24:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; t=1676489067; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=V737+82UztDqRXOsZgjCAejGa80LjL4mvCIlvHGcjzU=; b=UMTwGsKFHs34tW1mqclfsE3xAjQJ0TRw/+iKLyN20+T6xoFhTmpiMANJud7Z1J+b8f zw9TgyJtX5hHPuv529mQ+WHmauijSL5JCPj6oeDWYH6MJtMEr5h0sXzPA2X5GzQ+u4Wn cCr4Wpvuv8Hob+mC3qCKAGaqTc5jfEsohyMvX1BTC94RDn0rYIeaqfc02zVpHMEqTBp4 sQh5ZZoxbHlmLkcpFELmkU+mQLI+cqiET/23FSkaeH2CNDpT0L9T8YoNUvkyG5Pv6r70 VjaOWazfsPDn6N6t4Xu/eVngFmQvs3juoWILHHbPN9hTLTsZ+fA2jlZFA3QKNSdJKXIA FxGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1676489067; h=content-transfer-encoding:in-reply-to:from:references: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=V737+82UztDqRXOsZgjCAejGa80LjL4mvCIlvHGcjzU=; b=jXxJviGiNeIi1Tbuf8Dj4DrbBJojWE0+yPUZkOvvLNyVqNtJxhvPzOeSS0zDJCggLo cMl1KNPc2a793WdDgNieIuchi938QcCTQ4nrle7H+Mlxoy2IqhAx2ac+R3C98DIaCpYP Fpdr/m7RVPnzylXbAWelbkB3CuB2+gdsCqWqczclBkMOysCQaK4aIK9nf5fmbfR6t1JS TIpg5z2jLOX0Iw+q+6ehNXlteQxVIg9cNGttgGa9bxFFBgTKpBKg5ON4CFTU1A9jLfxM Tc2L3DRg4Tgplrp5SPZfdmKVFSqh4mFY29KMevdYDgaK/GYFs0braZ3V5om0+MQOF9qO GqWA== X-Gm-Message-State: AO0yUKVJ++ZCB+/OojECW3X7CyVjJKKEf78H2TVYi8CCj4TcdpFzZAp2 JFqbD/DCWQDa0fWRdrcizK7pFdPmJH50hswk X-Google-Smtp-Source: AK7set/CEiA+tFuczFeVKVatV5b4tcu51VfHTUTgxNRqR30VX4GIhvWqQ4OimcqF2aZm49BF4lI5TQ== X-Received: by 2002:a05:6e02:1a64:b0:314:9f2b:f63b with SMTP id w4-20020a056e021a6400b003149f2bf63bmr3070529ilv.2.1676489067067; Wed, 15 Feb 2023 11:24:27 -0800 (PST) Received: from [192.168.1.94] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id f10-20020a056e0212aa00b003156ff79e2dsm751623ilr.64.2023.02.15.11.24.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Feb 2023 11:24:26 -0800 (PST) Message-ID: <5a4975df-32ea-910a-3018-ecb13d5d1b45@kernel.dk> Date: Wed, 15 Feb 2023 12:24:25 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: io_uring failure on parisc with VIPT caches Content-Language: en-US To: John David Anglin , Helge Deller , io-uring@vger.kernel.org, linux-parisc@vger.kernel.org, James Bottomley References: <006e8db4-336f-6717-ecb0-d01a0e9bc483@kernel.dk> <626cee6f-f542-b7eb-16ca-1cf4e3808ca6@bell.net> <5f02fa8b-7fd8-d98f-4876-f1a89024b888@kernel.dk> <2b89f252-c430-1c44-7b30-02d927d2c7cb@gmx.de> <0bfe6cdb-2749-c08d-a1b2-ef46fed1ded3@bell.net> <07810314-94f6-0e9a-984b-0a286cbb59d3@kernel.dk> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 2/15/23 12:20 PM, John David Anglin wrote: > On 2023-02-15 2:00 p.m., Jens Axboe wrote: >> accept.t: setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)); >> fails here, no idea why. > The socket call fails, so fd is -1. Yeah, see followup. I dug further into it, and it looks like a bug in the test in that it uses O_NONBLOCK rather than SOCK_NONBLOCK. Most other platforms have those the same, but not parisc. I fixed up the test and now accept works fine: root@debian:~/liburing# test/accept.t root@debian:~/liburing# echo $? 0 -- Jens Axboe