Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1980582pxb; Mon, 13 Sep 2021 09:23:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl0fwUiGHAtmGKwvMsHFf8yt+I9KaRw2Vv76e9EdTsOrJfUeWs6OmldL5xRFiobY7PwKuV X-Received: by 2002:a05:6402:26d2:: with SMTP id x18mr13926114edd.195.1631550202840; Mon, 13 Sep 2021 09:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631550202; cv=none; d=google.com; s=arc-20160816; b=NtCkg58cV48JOkjre2r9I3/olon5MHAhUPjAGS+seIq21DhbNpxWWP4IFb0z3/AHOz g3iq1LUrOVfPoHCyvmWQAGmGbf3h7sadHOk3ybZU7MsgiisaZ8AgyvM+DY+Gt5sN5fZy xkpBWRYgsOmDXR2XXkZ6riRFnp94kSKoYbPGVPyopdXufqvxY/1vPkckcRx72Kmj5V63 3C7J6Q9g+Bm049rUWGzwEFUN7aPNqMVUxQnGW/jvky2AXLlKM3ptioEizH6Thvck3NGt OT6Xawg08QTuEDRMGYw+Mof4lUWumriuo9uf5AU6tKIhFz5fnn3n+XIxdERR1IrTQWGn wlsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=N/xWzsBvqbn7jaeScL3f3s2ZA+9ZXt9gbvH0hh2wYqs=; b=bJgLs2I5/N8v/Hpxj5OHB9aoSRETEet+8K/gcgpcuPbTD5KWmVHeNPE+EK6cLMTMFp thG4DZUudDgXIEcQCXwhx9HB9CFopxynQcfshN0jcOK4WS4MZrmR0D9H+nYzrRllSHa4 XxKf80pFP0ylY2iUWm0cZ+DXU7uDXJ0vAUgaHiIG0sJdORCLCwOaHbPjMGRvuK7PeIvL PnJQ3Sm/k146Tyrj1ZsxRSsMJxE8rq8GiAUMFl589DviQ13UDMWQ9HAl4QF9MdOMhPDL 9EZZj+Nq5jXHh5/vFtZCXVCaCwIjtIwc2FExcCGcYJF2BvfeB+GL/ocXcYW6ZByRBA9E gvwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RQ7hh2BP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si8200307edy.476.2021.09.13.09.22.59; Mon, 13 Sep 2021 09:23:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RQ7hh2BP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232160AbhIMQU0 (ORCPT + 99 others); Mon, 13 Sep 2021 12:20:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbhIMQUZ (ORCPT ); Mon, 13 Sep 2021 12:20:25 -0400 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75048C061574; Mon, 13 Sep 2021 09:19:09 -0700 (PDT) Received: by mail-oi1-x22b.google.com with SMTP id bd1so14744560oib.5; Mon, 13 Sep 2021 09:19:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=N/xWzsBvqbn7jaeScL3f3s2ZA+9ZXt9gbvH0hh2wYqs=; b=RQ7hh2BPtVQZCJRpUOs9J8RxaFes0UR5KxWnf1sYxhufmrjNmW2didexyDITFZdsxC Kvghcihb327Yic4NNqHkQyNXtCmj8oSYQhjONbUbocrdgBxlGaKHrDE5SWd4I9YquUc0 WenkrxhySOFXNmrd8Vj7BM+jehzX+H40j5ioqeaw34F5FPyARB7L7HgurPoa2CG7WlsO qWkbVVfRUgGmnC1CnbVCLRTFiXOdiEjVccsieju0hDofc4gktQJjl2/U6F6d67tMQIFb VmOZiXxeB7i1a7f4y02oiA0OLralUSa22zrW8QKQwjJqzvioMuAh1Q3NIeq6ChX1Nsvz +reg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=N/xWzsBvqbn7jaeScL3f3s2ZA+9ZXt9gbvH0hh2wYqs=; b=sUyg+G81/4GvJvpfuIU0fK/mpEp8VWOOQf0GTLFXbiYTrjqjV0zpCVMxxNo9D3fkMa 4i+hyJJwKM+dvcYBLvcJqumGEdK5d5vPhRdtxbpRXoKXhRguinZSWtglZvVXd5FjnWPi Ft0TsJ+5XqMXu2QogeC+uXFiPSxkZYr0BVgNQNp0PF+lmpUqvhunzl5BRbeiueiL/bEE Ky+JonKaklUgNDsjHL3L7gDEW6LkAH22R5CsXZljz13Kfc+Ig+yCAKKqfaWRwqaAneaA SHLyxsbbuxXtjwlkQvinanl/MjmsJQiM0kB+X52HvCTcS2U42U7737dW6wKVLomA6p76 iorQ== X-Gm-Message-State: AOAM531IBGM6VVoy6LdlVGSd8E5vFTFlW0K2A0wsn+Yd+yHyhsx4TJA1 cSMMrgHO9GeJ82bCKe8px68= X-Received: by 2002:a05:6808:3a3:: with SMTP id n3mr8437749oie.41.1631549948824; Mon, 13 Sep 2021 09:19:08 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id w12sm1789648oie.41.2021.09.13.09.19.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 09:19:08 -0700 (PDT) Sender: Guenter Roeck Date: Mon, 13 Sep 2021 09:19:07 -0700 From: Guenter Roeck To: Viresh Kumar Cc: Jason Wang , "Michael S. Tsirkin" , Rob Herring , Arnd Bergmann , Jean-Philippe Brucker , Vincent Guittot , Bill Mills , Alex =?iso-8859-1?Q?Benn=E9e?= , "Enrico Weigelt, metux IT consult" , Jie Deng , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Arnd Bergmann Subject: Re: [PATCH V3 5/5] virtio: Bind virtio device to device-tree node Message-ID: <20210913161907.GA176753@roeck-us.net> References: <454a58f998b0d16847d72a97b32192829fab2c8c.1627273794.git.viresh.kumar@linaro.org> <20210913144905.GA1267554@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210913144905.GA1267554@roeck-us.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2021 at 07:49:07AM -0700, Guenter Roeck wrote: > On Mon, Jul 26, 2021 at 10:21:45AM +0530, Viresh Kumar wrote: > > Bind the virtio devices with their of_node. This will help users of the > > virtio devices to mention their dependencies on the device in the DT > > itself. Like GPIO pin users can use the phandle of the device node, or > > the node may contain more subnodes to add i2c or spi eeproms and other > > users. > > > > Reviewed-by: Arnd Bergmann > > Signed-off-by: Viresh Kumar > > This patch causes a boot failure on sparc64: The virtio device no longer > instantiates. Reverting this patch fixes the problem. Bisect log attached. > In case it matters: The problem is here: + if (!of_device_is_compatible(np, compat)) { + ret = -EINVAL; + goto out; + } Guenter > Guenter > > --- > # bad: [6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f] Linux 5.15-rc1 > # good: [926de8c4326c14fcf35f1de142019043597a4fac] Merge tag 'acpi-5.15-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm > git bisect start 'HEAD' '926de8c4326c' > # good: [8177a5c96229ff24da1e362789e359b68b4f34f5] Merge tag 'libata-5.15-2021-09-11' of git://git.kernel.dk/linux-block > git bisect good 8177a5c96229ff24da1e362789e359b68b4f34f5 > # bad: [78e709522d2c012cb0daad2e668506637bffb7c2] Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost > git bisect bad 78e709522d2c012cb0daad2e668506637bffb7c2 > # bad: [7bc7f61897b66bef78bb5952e3d1e9f3aaf9ccca] Documentation: Add documentation for VDUSE > git bisect bad 7bc7f61897b66bef78bb5952e3d1e9f3aaf9ccca > # bad: [41116599a0731f4cd451e9d191d879ab45e31945] virtio/vsock: add 'VIRTIO_VSOCK_SEQ_EOR' bit. > git bisect bad 41116599a0731f4cd451e9d191d879ab45e31945 > # good: [5262912ef3cfc5e518892c3d67fb36412cb813e2] vdpa/mlx5: Add support for control VQ and MAC setting > git bisect good 5262912ef3cfc5e518892c3d67fb36412cb813e2 > # good: [7f815fce08d563006e43d1b7d2f9a0a4f3b832f3] dt-bindings: i2c: Add bindings for i2c-virtio > git bisect good 7f815fce08d563006e43d1b7d2f9a0a4f3b832f3 > # good: [d5a8680dfab0547a4ecd708b1fe9de48598a6757] uapi: virtio_ids: Sync ids with specification > git bisect good d5a8680dfab0547a4ecd708b1fe9de48598a6757 > # bad: [9af8f1061646e8e22b66413bedf7b3e2ab3d69e5] virtio/vsock: rename 'EOR' to 'EOM' bit. > git bisect bad 9af8f1061646e8e22b66413bedf7b3e2ab3d69e5 > # bad: [694a1116b405d887c893525a6766b390989c8606] virtio: Bind virtio device to device-tree node > git bisect bad 694a1116b405d887c893525a6766b390989c8606 > # first bad commit: [694a1116b405d887c893525a6766b390989c8606] virtio: Bind virtio device to device-tree node