Content-Type: multipart/mixed; boundary="===============5321184778779027153==" MIME-Version: 1.0 From: Dave Jiang Subject: [Accel-config] Re: [PATCH v1 1/2] accel-config: Remove cdev related code Date: Tue, 18 May 2021 11:52:56 -0700 Message-ID: <3b0a62d8-e888-460b-8998-c24a23fafa64@intel.com> In-Reply-To: BYAPR11MB25355D804EED928D32681A35ED2C9@BYAPR11MB2535.namprd11.prod.outlook.com To: accel-config@lists.01.org List-ID: --===============5321184778779027153== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 5/18/2021 11:31 AM, Thomas, Ramesh wrote: > On Tue, May 18, 2021 at 08:07:04AM -0700, Dave Jiang > wrote: >> On 5/17/2021 2:50 PM, ramesh.thomas(a)intel.com wrote: >>> From: Ramesh Thomas >>> >>> cdev major/minor method of opening idxd char dev will be deprecated. >>> Currently even in non uacce mode the char dev is opened using the device >>> name at /dev/dsa that is returned by accfg_wq_get_user_dev_path() >> I'm concerned about backward compatibility for apps (Intel user libs) >> that may still use minor/major API. Do we need to provide some sort of >> backward compatibility (maybe with warnings?) until they get off this >> train? Especially they have been doing releases already. > I think we can leave the API for now as long as driver has backward > compatibility. Driver was returning error (-6) when cdev_minor was > accessed. The library was trying to validate cdev_minor after enabling a > wq and setting cdev_minor =3D -1 after wq was disabled. Do you think we > can remove that code? I think so. Basically lets leave the API call and provide the info if = available. But no need to do checking. > -Ramesh --===============5321184778779027153==--