lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 14 Apr 2016 03:27:19 +0000
From:	"Du, Changbin" <changbin.du@...el.com>
To:	Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
	"balbi@...nel.org" <balbi@...nel.org>
CC:	"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
	"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH v4 2/2] usb: dwc3: add debugfs node to dump FIFO/Queue
 available space

Hello, Sergei,
> > From: "Du, Changbin" <changbin.du@...el.com>
> >
> > For DWC3 USB controller, the Global Debug Queue/FIFO Space Available
> > Register(GDBGFIFOSPACE) can be used to dump FIFO/Queue available
> space.
> 
>     Space needed before (.

Okay.

> 
> > This can be used to check some special issues, like whether data is
> > successfully copied from memory to fifo when a trb is blocked.
> >
> > Signed-off-by: Du, Changbin <changbin.du@...el.com>
> > ---
> > v4:
> >    Do not fail silently, but print error.
> [...]
> > diff --git a/drivers/usb/dwc3/debugfs.c b/drivers/usb/dwc3/debugfs.c
> > index 615d4dc..83e5bc1 100644
> > --- a/drivers/usb/dwc3/debugfs.c
> > +++ b/drivers/usb/dwc3/debugfs.c
> [...]
> > @@ -642,10 +681,15 @@ void dwc3_debugfs_init(struct dwc3 *dwc)
> >   	dwc->regset->nregs = ARRAY_SIZE(dwc3_regs);
> >   	dwc->regset->base = dwc->regs;
> >
> > +
> 
>     Why?

Thanks for point out, I will remove this additional line.

> 
> >   	file = debugfs_create_regset32("regdump", S_IRUGO, root, dwc-
> >regset);
> >   	if (!file)
> >   		dev_err(dwc->dev, "Can't create debugfs regdump\n");
> >
> > +	file = debugfs_create_file("fifo", S_IRUGO, root, dwc,
> &dwc3_fifo_fops);
> > +	if (!file)
> > +		dev_err(dwc->dev, "Can't create debugfs fifo\n");
> > +
> >   	if (IS_ENABLED(CONFIG_USB_DWC3_DUAL_ROLE)) {
> >   		file = debugfs_create_file("mode", S_IRUGO | S_IWUSR,
> root,
> >   				dwc, &dwc3_mode_fops);
> 
> MBR, Sergei

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ