From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id ED221A0548; Thu, 11 Aug 2022 10:25:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C08A42C0E; Thu, 11 Aug 2022 10:24:49 +0200 (CEST) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by mails.dpdk.org (Postfix) with ESMTP id CD1254068E for ; Wed, 10 Aug 2022 08:02:59 +0200 (CEST) Received: by mail-lf1-f43.google.com with SMTP id z6so12380004lfu.9 for ; Tue, 09 Aug 2022 23:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=mIMEGdGYfcGBG0v/nYv66Vh7geirtU/RLF1aa0WLi2o=; b=HLYtAvGiXygKPz2HSF3kZli1qor0H/Vp8Q4VE4RRpLSt54jtS107wswIvEF6lhFVpl CL/hgkICUtRYK3s8yiZBrPdXsRJVAYLM80eZlcqoL4ttPzrUjosQdaNdGZzZ2HlXxIEh SWF8OKDfwqVZv0nTh6a2JWWiTUXBFtk66o1jBt3BjnHcd+DYo5vBwdwUKRzZuCYcMCnn nQ2Q2BHuNzrMRvwfO3nRIkhPORGPcFwjz3jg4/N+c0Jbfb6v1rx91obh9wSpn6AZqqkB o8CDRjq2DXE4Zov096GUCL/g5yXA094G70/M5XCaHW/E2KE1qaVle2rBkfZFyBrLUt+d nllw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=mIMEGdGYfcGBG0v/nYv66Vh7geirtU/RLF1aa0WLi2o=; b=OLZfZr1/ULSJgPboVTGRXNBo5gRLx6nD1nj/E/H9CzzanUgnO01QL/lpM2N43Zgypu 4TUnwIFES4WUH1+FQRyayedWVlgivQpDZpHbKrvna6FkLoCrmrv/Y+Hook4P++BgbP1c zw7e32ryON3Fgkgpglp9Vc7U9c6UeZip2p8+A/rADGAqq9cmzhFaqk+ZBDunTYgHRnwA n+fxWtC6NqA0rpswzextHwOchhu8skMf7Dbeo86XfdhxvSEYYAllMe7H0R7Hg6ouwRLJ 6RgrSHoM7theuo5YgxTAccxq0o8kIVfRddn7Ach7xznzFM6nZqhL8Xc6HhgbrOpGggYN s7ig== X-Gm-Message-State: ACgBeo2jGq/xkhsneyBb7979jF7Wjwdo5Qge/csOn6O+mKefZwXrtAnN sUCl778xBh5k+qTwpgpQftZ2zA== X-Google-Smtp-Source: AA6agR5BYE6A7ANv19goWF1bZoUCZeT7+kUcEXEZpEVAhR2Smp0hQ4HWCE4JHvHD13LZZkh+wIQo/w== X-Received: by 2002:a05:6512:284:b0:48a:eb43:127 with SMTP id j4-20020a056512028400b0048aeb430127mr8761647lfp.582.1660111379367; Tue, 09 Aug 2022 23:02:59 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id c2-20020ac24142000000b00489e2156285sm213551lfi.104.2022.08.09.23.02.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Aug 2022 23:02:58 -0700 (PDT) Message-ID: Date: Wed, 10 Aug 2022 09:02:57 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] usertools: fix bind failure from dpdk to kernel Content-Language: en-US To: Stephen Hemminger , "lihuisong (C)" Cc: dev@dpdk.org, andrew.rybchenko@oktetlabs.ru, thomas@monjalon.net, ferruh.yigit@xilinx.com, huangdaode@huawei.com, liudongdong3@huawei.com References: <20220805031022.9795-1-lihuisong@huawei.com> <20220805083529.5ca3233e@hermes.local> <20220809105852.42051ed4@hermes.local> From: Krzysztof Kozlowski In-Reply-To: <20220809105852.42051ed4@hermes.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 11 Aug 2022 10:24:41 +0200 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 09/08/2022 20:58, Stephen Hemminger wrote: >> >> However, due to the patch[1] merged into 5.19 kernel, 'driver_override' >> in the pci_dev is no longer NULL by writing '\00' to driver_override file. >> This causes PCI match device failure and the device will never be bound to >> their kernel driver. > > > Linux kernel does not look favorably on API changes and that looks like > the kernel changed behavior. That should be reported and fixed there. To clarify around this issue: There were no API changes. Linux kernel follows the API exactly how it is described in the API document since 2014: Documentation/ABI/testing/sysfs-bus-pci There was no change in kernel API. There was a change in undocumented, unsupported and wrong usage of driver_override API. Best regards, Krzysztof